1 var $jscomp={scope:{},getGlobal:function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a}};$jscomp.global=$jscomp.getGlobal(this);$jscomp.initSymbol=function(){$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol);$jscomp.initSymbol=function(){}};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return"jscomp_symbol_"+a+$jscomp.symbolCounter_++};
2 $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();$jscomp.global.Symbol.iterator||($jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));$jscomp.initSymbolIterator=function(){}};$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();if(a[$jscomp.global.Symbol.iterator])return a[$jscomp.global.Symbol.iterator]();var b=0;return{next:function(){return b==a.length?{done:!0}:{done:!1,value:a[b++]}}}};
3 $jscomp.arrayFromIterator=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};
4 $jscomp.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var e in b)if($jscomp.global.Object.defineProperties){var d=$jscomp.global.Object.getOwnPropertyDescriptor(b,e);d&&$jscomp.global.Object.defineProperty(a,e,d)}else a[e]=b[e]};$jscomp.array=$jscomp.array||{};$jscomp.array.done_=function(){return{done:!0,value:void 0}};
5 $jscomp.array.arrayIterator_=function(a,b){a instanceof String&&(a=String(a));var c=0;$jscomp.initSymbol();$jscomp.initSymbolIterator();var e={},d=(e.next=function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=$jscomp.array.done_;return $jscomp.array.done_()},e[Symbol.iterator]=function(){return d},e);return d};
6 $jscomp.array.findInternal_=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<e;d++){var f=a[d];if(b.call(c,f,d,a))return{i:d,v:f}}return{i:-1,v:void 0}};
7 $jscomp.array.from=function(a,b,c){b=void 0===b?function(a){return a}:b;var e=[];$jscomp.initSymbol();$jscomp.initSymbolIterator();if(a[Symbol.iterator]){$jscomp.initSymbol();$jscomp.initSymbolIterator();a=a[Symbol.iterator]();for(var d;!(d=a.next()).done;)e.push(b.call(c,d.value))}else{d=a.length;for(var f=0;f<d;f++)e.push(b.call(c,a[f]))}return e};$jscomp.array.of=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return $jscomp.array.from(b)};
8 $jscomp.array.entries=function(){return $jscomp.array.arrayIterator_(this,function(a,b){return[a,b]})};$jscomp.array.installHelper_=function(a,b){!Array.prototype[a]&&Object.defineProperties&&Object.defineProperty&&Object.defineProperty(Array.prototype,a,{configurable:!0,enumerable:!1,writable:!0,value:b})};$jscomp.array.entries$install=function(){$jscomp.array.installHelper_("entries",$jscomp.array.entries)};$jscomp.array.keys=function(){return $jscomp.array.arrayIterator_(this,function(a){return a})};
9 $jscomp.array.keys$install=function(){$jscomp.array.installHelper_("keys",$jscomp.array.keys)};$jscomp.array.values=function(){return $jscomp.array.arrayIterator_(this,function(a,b){return b})};$jscomp.array.values$install=function(){$jscomp.array.installHelper_("values",$jscomp.array.values)};
10 $jscomp.array.copyWithin=function(a,b,c){var e=this.length;a=Number(a);b=Number(b);c=Number(null!=c?c:e);if(a<b)for(c=Math.min(c,e);b<c;)b in this?this[a++]=this[b++]:(delete this[a++],b++);else for(c=Math.min(c,e+b-a),a+=c-b;c>b;)--c in this?this[--a]=this[c]:delete this[a];return this};$jscomp.array.copyWithin$install=function(){$jscomp.array.installHelper_("copyWithin",$jscomp.array.copyWithin)};
11 $jscomp.array.fill=function(a,b,c){null!=c&&a.length||(c=this.length||0);c=Number(c);for(b=Number((void 0===b?0:b)||0);b<c;b++)this[b]=a;return this};$jscomp.array.fill$install=function(){$jscomp.array.installHelper_("fill",$jscomp.array.fill)};$jscomp.array.find=function(a,b){return $jscomp.array.findInternal_(this,a,b).v};$jscomp.array.find$install=function(){$jscomp.array.installHelper_("find",$jscomp.array.find)};
12 $jscomp.array.findIndex=function(a,b){return $jscomp.array.findInternal_(this,a,b).i};$jscomp.array.findIndex$install=function(){$jscomp.array.installHelper_("findIndex",$jscomp.array.findIndex)};$jscomp.Map=function(a){a=void 0===a?[]:a;this.data_={};this.head_=$jscomp.Map.createHead_();this.size=0;if(a){a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.set(b[0],b[1])}};
13 $jscomp.Map.checkBrowserConformance_=function(){var a=$jscomp.global.Map;if(!a||!a.prototype.entries||!Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var e=c.entries(),d=e.next();if(d.done||d.value[0]!=b||"s"!=d.value[1])return!1;d=e.next();return d.done||4!=d.value[0].x||"t"!=d.value[1]||!e.next().done?!1:!0}catch(f){return!1}};
14 $jscomp.Map.createHead_=function(){var a={};return a.previous=a.next=a.head=a};$jscomp.Map.getId_=function(a){if(!(a instanceof Object))return String(a);$jscomp.Map.key_ in a||a instanceof Object&&Object.isExtensible&&Object.isExtensible(a)&&$jscomp.Map.defineProperty_(a,$jscomp.Map.key_,++$jscomp.Map.index_);return $jscomp.Map.key_ in a?a[$jscomp.Map.key_]:" "+a};
15 $jscomp.Map.prototype.set=function(a,b){var c=this.maybeGetEntry_(a),e=c.id,d=c.list,c=c.entry;d||(d=this.data_[e]=[]);c?c.value=b:(c={next:this.head_,previous:this.head_.previous,head:this.head_,key:a,value:b},d.push(c),this.head_.previous.next=c,this.head_.previous=c,this.size++);return this};
16 $jscomp.Map.prototype["delete"]=function(a){var b=this.maybeGetEntry_(a);a=b.id;var c=b.list,e=b.index;return(b=b.entry)&&c?(c.splice(e,1),c.length||delete this.data_[a],b.previous.next=b.next,b.next.previous=b.previous,b.head=null,this.size--,!0):!1};$jscomp.Map.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=$jscomp.Map.createHead_();this.size=0};$jscomp.Map.prototype.has=function(a){return!!this.maybeGetEntry_(a).entry};
17 $jscomp.Map.prototype.get=function(a){return(a=this.maybeGetEntry_(a).entry)&&a.value};$jscomp.Map.prototype.maybeGetEntry_=function(a){var b=$jscomp.Map.getId_(a),c=this.data_[b];if(c)for(var e=0;e<c.length;e++){var d=c[e];if(a!==a&&d.key!==d.key||a===d.key)return{id:b,list:c,index:e,entry:d}}return{id:b,list:c,index:-1,entry:void 0}};$jscomp.Map.prototype.entries=function(){return this.iter_(function(a){return[a.key,a.value]})};$jscomp.Map.prototype.keys=function(){return this.iter_(function(a){return a.key})};
18 $jscomp.Map.prototype.values=function(){return this.iter_(function(a){return a.value})};$jscomp.Map.prototype.forEach=function(a,b){for(var c=$jscomp.makeIterator(this.entries()),e=c.next();!e.done;e=c.next())e=e.value,a.call(b,e[1],e[0],this)};
19 $jscomp.Map.prototype.iter_=function(a){var b=this,c=this.head_;$jscomp.initSymbol();$jscomp.initSymbolIterator();var e={};return e.next=function(){if(c){for(;c.head!=b.head_;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:a(c)};c=null}return{done:!0,value:void 0}},e[Symbol.iterator]=function(){return this},e};$jscomp.Map.index_=0;$jscomp.Map.defineProperty_=Object.defineProperty?function(a,b,c){Object.defineProperty(a,b,{value:String(c)})}:function(a,b,c){a[b]=String(c)};
20 $jscomp.Map.Entry_=function(){};$jscomp.Map.ASSUME_NO_NATIVE=!1;$jscomp.Map$install=function(){$jscomp.initSymbol();$jscomp.initSymbolIterator();!$jscomp.Map.ASSUME_NO_NATIVE&&$jscomp.Map.checkBrowserConformance_()?$jscomp.Map=$jscomp.global.Map:($jscomp.initSymbol(),$jscomp.initSymbolIterator(),$jscomp.Map.prototype[Symbol.iterator]=$jscomp.Map.prototype.entries,$jscomp.initSymbol(),$jscomp.Map.key_=Symbol("map-id-key"));$jscomp.Map$install=function(){}};$jscomp.math=$jscomp.math||{};
21 $jscomp.math.clz32=function(a){a=Number(a)>>>0;if(0===a)return 32;var b=0;0===(a&4294901760)&&(a<<=16,b+=16);0===(a&4278190080)&&(a<<=8,b+=8);0===(a&4026531840)&&(a<<=4,b+=4);0===(a&3221225472)&&(a<<=2,b+=2);0===(a&2147483648)&&b++;return b};$jscomp.math.imul=function(a,b){a=Number(a);b=Number(b);var c=a&65535,e=b&65535;return c*e+((a>>>16&65535)*e+c*(b>>>16&65535)<<16>>>0)|0};$jscomp.math.sign=function(a){a=Number(a);return 0===a||isNaN(a)?a:0<a?1:-1};
22 $jscomp.math.log10=function(a){return Math.log(a)/Math.LN10};$jscomp.math.log2=function(a){return Math.log(a)/Math.LN2};$jscomp.math.log1p=function(a){a=Number(a);if(.25>a&&-.25<a){for(var b=a,c=1,e=a,d=0,f=1;d!=e;)b*=a,f*=-1,e=(d=e)+f*b/++c;return e}return Math.log(1+a)};$jscomp.math.expm1=function(a){a=Number(a);if(.25>a&&-.25<a){for(var b=a,c=1,e=a,d=0;d!=e;)b*=a/++c,e=(d=e)+b;return e}return Math.exp(a)-1};$jscomp.math.cosh=function(a){a=Number(a);return(Math.exp(a)+Math.exp(-a))/2};
23 $jscomp.math.sinh=function(a){a=Number(a);return 0===a?a:(Math.exp(a)-Math.exp(-a))/2};$jscomp.math.tanh=function(a){a=Number(a);if(0===a)return a;var b=Math.exp(2*-Math.abs(a)),b=(1-b)/(1+b);return 0>a?-b:b};$jscomp.math.acosh=function(a){a=Number(a);return Math.log(a+Math.sqrt(a*a-1))};$jscomp.math.asinh=function(a){a=Number(a);if(0===a)return a;var b=Math.log(Math.abs(a)+Math.sqrt(a*a+1));return 0>a?-b:b};
24 $jscomp.math.atanh=function(a){a=Number(a);return($jscomp.math.log1p(a)-$jscomp.math.log1p(-a))/2};
25 $jscomp.math.hypot=function(a,b,c){for(var e=[],d=2;d<arguments.length;++d)e[d-2]=arguments[d];a=Number(a);b=Number(b);for(var f=Math.max(Math.abs(a),Math.abs(b)),h=$jscomp.makeIterator(e),d=h.next();!d.done;d=h.next())f=Math.max(f,Math.abs(d.value));if(1E100<f||1E-100>f){a/=f;b/=f;h=a*a+b*b;e=$jscomp.makeIterator(e);for(d=e.next();!d.done;d=e.next())d=d.value,d=Number(d)/f,h+=d*d;return Math.sqrt(h)*f}f=a*a+b*b;e=$jscomp.makeIterator(e);for(d=e.next();!d.done;d=e.next())d=d.value,d=Number(d),f+=
26 d*d;return Math.sqrt(f)};$jscomp.math.trunc=function(a){a=Number(a);if(isNaN(a)||Infinity===a||-Infinity===a||0===a)return a;var b=Math.floor(Math.abs(a));return 0>a?-b:b};$jscomp.math.cbrt=function(a){if(0===a)return a;a=Number(a);var b=Math.pow(Math.abs(a),1/3);return 0>a?-b:b};$jscomp.number=$jscomp.number||{};$jscomp.number.isFinite=function(a){return"number"!==typeof a?!1:!isNaN(a)&&Infinity!==a&&-Infinity!==a};
27 $jscomp.number.isInteger=function(a){return $jscomp.number.isFinite(a)?a===Math.floor(a):!1};$jscomp.number.isNaN=function(a){return"number"===typeof a&&isNaN(a)};$jscomp.number.isSafeInteger=function(a){return $jscomp.number.isInteger(a)&&Math.abs(a)<=$jscomp.number.MAX_SAFE_INTEGER};$jscomp.number.EPSILON=Math.pow(2,-52);$jscomp.number.MAX_SAFE_INTEGER=9007199254740991;$jscomp.number.MIN_SAFE_INTEGER=-9007199254740991;$jscomp.object=$jscomp.object||{};
28 $jscomp.object.assign=function(a,b){for(var c=[],e=1;e<arguments.length;++e)c[e-1]=arguments[e];c=$jscomp.makeIterator(c);for(e=c.next();!e.done;e=c.next())if(e=e.value)for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&(a[d]=e[d]);return a};$jscomp.object.is=function(a,b){return a===b?0!==a||1/a===1/b:a!==a&&b!==b};$jscomp.Set=function(a){a=void 0===a?[]:a;this.map_=new $jscomp.Map;if(a){a=$jscomp.makeIterator(a);for(var b=a.next();!b.done;b=a.next())this.add(b.value)}this.size=this.map_.size};
29 $jscomp.Set.checkBrowserConformance_=function(){var a=$jscomp.global.Set;if(!a||!a.prototype.entries||!Object.seal)return!1;var b=Object.seal({x:4}),a=new a($jscomp.makeIterator([b]));if(a.has(b)||1!=a.size||a.add(b)!=a||1!=a.size||a.add({x:4})!=a||2!=a.size)return!1;var a=a.entries(),c=a.next();if(c.done||c.value[0]!=b||c.value[1]!=b)return!1;c=a.next();return c.done||c.value[0]==b||4!=c.value[0].x||c.value[1]!=c.value[0]?!1:a.next().done};
30 $jscomp.Set.prototype.add=function(a){this.map_.set(a,a);this.size=this.map_.size;return this};$jscomp.Set.prototype["delete"]=function(a){a=this.map_["delete"](a);this.size=this.map_.size;return a};$jscomp.Set.prototype.clear=function(){this.map_.clear();this.size=0};$jscomp.Set.prototype.has=function(a){return this.map_.has(a)};$jscomp.Set.prototype.entries=function(){return this.map_.entries()};$jscomp.Set.prototype.values=function(){return this.map_.values()};
31 $jscomp.Set.prototype.forEach=function(a,b){var c=this;this.map_.forEach(function(e){return a.call(b,e,e,c)})};$jscomp.Set.ASSUME_NO_NATIVE=!1;$jscomp.Set$install=function(){!$jscomp.Set.ASSUME_NO_NATIVE&&$jscomp.Set.checkBrowserConformance_()?$jscomp.Set=$jscomp.global.Set:($jscomp.Map$install(),$jscomp.initSymbol(),$jscomp.initSymbolIterator(),$jscomp.Set.prototype[Symbol.iterator]=$jscomp.Set.prototype.values);$jscomp.Set$install=function(){}};$jscomp.string=$jscomp.string||{};
32 $jscomp.string.noNullOrUndefined_=function(a,b){if(null==a)throw new TypeError("The 'this' value for String.prototype."+b+" must not be null or undefined");};$jscomp.string.noRegExp_=function(a,b){if(a instanceof RegExp)throw new TypeError("First argument to String.prototype."+b+" must not be a regular expression");};
33 $jscomp.string.fromCodePoint=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];for(var c="",b=$jscomp.makeIterator(b),e=b.next();!e.done;e=b.next()){e=e.value;e=+e;if(0>e||1114111<e||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);65535>=e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c};
34 $jscomp.string.repeat=function(a){$jscomp.string.noNullOrUndefined_(this,"repeat");var b=String(this);if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var c="";a;)if(a&1&&(c+=b),a>>>=1)b+=b;return c};$jscomp.string.repeat$install=function(){String.prototype.repeat||(String.prototype.repeat=$jscomp.string.repeat)};
35 $jscomp.string.codePointAt=function(a){$jscomp.string.noNullOrUndefined_(this,"codePointAt");var b=String(this),c=b.length;a=Number(a)||0;if(0<=a&&a<c){a|=0;var e=b.charCodeAt(a);if(55296>e||56319<e||a+1===c)return e;a=b.charCodeAt(a+1);return 56320>a||57343<a?e:1024*(e-55296)+a+9216}};$jscomp.string.codePointAt$install=function(){String.prototype.codePointAt||(String.prototype.codePointAt=$jscomp.string.codePointAt)};
36 $jscomp.string.includes=function(a,b){b=void 0===b?0:b;$jscomp.string.noRegExp_(a,"includes");$jscomp.string.noNullOrUndefined_(this,"includes");return-1!==String(this).indexOf(a,b)};$jscomp.string.includes$install=function(){String.prototype.includes||(String.prototype.includes=$jscomp.string.includes)};
37 $jscomp.string.startsWith=function(a,b){b=void 0===b?0:b;$jscomp.string.noRegExp_(a,"startsWith");$jscomp.string.noNullOrUndefined_(this,"startsWith");var c=String(this);a+="";for(var e=c.length,d=a.length,f=Math.max(0,Math.min(b|0,c.length)),h=0;h<d&&f<e;)if(c[f++]!=a[h++])return!1;return h>=d};$jscomp.string.startsWith$install=function(){String.prototype.startsWith||(String.prototype.startsWith=$jscomp.string.startsWith)};
38 $jscomp.string.endsWith=function(a,b){$jscomp.string.noRegExp_(a,"endsWith");$jscomp.string.noNullOrUndefined_(this,"endsWith");var c=String(this);a+="";void 0===b&&(b=c.length);for(var e=Math.max(0,Math.min(b|0,c.length)),d=a.length;0<d&&0<e;)if(c[--e]!=a[--d])return!1;return 0>=d};$jscomp.string.endsWith$install=function(){String.prototype.endsWith||(String.prototype.endsWith=$jscomp.string.endsWith)};$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();
39 var _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};
40 Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(a){if(void 0===a||null===a)throw new TypeError("Cannot convert first argument to object");for(var b=Object(a),c=1;c<arguments.length;c++){var e=arguments[c];if(void 0!==e&&null!==e)for(var e=Object(e),d=Object.keys(Object(e)),f=0,h=d.length;f<h;f++){var l=d[f],m=Object.getOwnPropertyDescriptor(e,l);void 0!==m&&m.enumerable&&(b[l]=e[l])}}return b}});
41 Array.prototype.find||(Array.prototype.find=function(a,b){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof a)throw new TypeError("predicate must be a function");for(var c=Object(this),e=c.length>>>0,d,f=0;f<e;f++)if(d=c[f],a.call(b,d,f,c))return d});
42 Array.prototype.findIndex||(Array.prototype.findIndex=function(a,b){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!==typeof a)throw new TypeError("predicate must be a function");for(var c=Object(this),e=c.length>>>0,d,f=0;f<e;f++)if(d=c[f],a.call(b,d,f,c))return f;return-1});
43 Array.prototype.includes||(Array.prototype.includes=function(a,b){var c=Object(this),e=parseInt(c.length)||0;if(0===e)return!1;var d=parseInt(b)||0;0<=d||(d=e+d,0>d&&(d=0));for(var f;d<e;){f=c[d];if(a===f||a!==a&&f!==f)return!0;d++}return!1});String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)});
44 var jsPanel={version:"3.4.1",date:"2016-11-04 10:07",id:0,ziBase:100,zi:100,modalcount:0,autopositionSpacing:5,pbTreshold:.556,lastbeforeclose:!1,template:'<div class="jsPanel">\n <div class="jsPanel-hdr">\n <div class="jsPanel-headerbar">\n <div class="jsPanel-headerlogo"></div>\n <div class="jsPanel-titlebar">\n <h3 class="jsPanel-title"></h3>\n </div>\n <div class="jsPanel-controlbar">\n <div class="jsPanel-btn jsPanel-btn-smallify"><span class="jsglyph jsglyph-chevron-up"></span></div>\n <div class="jsPanel-btn jsPanel-btn-smallifyrev"><span class="jsglyph jsglyph-chevron-down"></span></div>\n <div class="jsPanel-btn jsPanel-btn-minimize"><span class="jsglyph jsglyph-minimize"></span></div>\n <div class="jsPanel-btn jsPanel-btn-normalize"><span class="jsglyph jsglyph-normalize"></span></div>\n <div class="jsPanel-btn jsPanel-btn-maximize"><span class="jsglyph jsglyph-maximize"></span></div>\n <div class="jsPanel-btn jsPanel-btn-close"><span class="jsglyph jsglyph-close"></span></div>\n </div>\n </div>\n <div class="jsPanel-hdr-toolbar"></div>\n </div>\n <div class="jsPanel-content"></div>\n <div class="jsPanel-minimized-box"></div>\n <div class="jsPanel-ftr"></div>\n </div>',
45 replacementTemplate:'<div class="jsPanel-replacement">\n <div class="jsPanel-hdr">\n <div class="jsPanel-headerbar">\n <div class="jsPanel-titlebar">\n <h3 class="jsPanel-title"></h3>\n </div>\n <div class="jsPanel-controlbar">\n <div class="jsPanel-btn jsPanel-btn-normalize"><span class="jsglyph jsglyph-normalize"></span></div>\n <div class="jsPanel-btn jsPanel-btn-maximize"><span class="jsglyph jsglyph-maximize"></span></div>\n <div class="jsPanel-btn jsPanel-btn-close"><span class="jsglyph jsglyph-close"></span></div>\n </div>\n </div>\n </div>\n </div>',
46 themes:"default primary info success warning danger".split(" "),mdbthemes:["secondary","elegant","stylish","unique","special"],controls:"close maximize normalize minimize smallify smallifyrev".split(" "),tplHeaderOnly:'<div class="jsPanel">\n <div class="jsPanel-hdr">\n <div class="jsPanel-headerbar">\n <div class="jsPanel-headerlogo"></div>\n <div class="jsPanel-titlebar">\n <h3 class="jsPanel-title"></h3>\n </div>\n <div class="jsPanel-controlbar">\n <div class="jsPanel-btn jsPanel-btn-close"><span class="jsglyph jsglyph-close"></span></div>\n </div>\n </div>\n <div class="jsPanel-hdr-toolbar"></div>\n </div>\n </div>',
47 tplContentOnly:'<div class="jsPanel">\n <div class="jsPanel-content jsPanel-content-noheader jsPanel-content-nofooter"></div>\n <div class="jsPanel-minimized-box"></div>\n </div>',activePanels:{list:[],getPanel:function(a){return"string"===typeof a?document.getElementById(a).jspanel.noop():document.getElementById(this.list[a]).jspanel.noop()}},closeOnEscape:!1,isIE:function(){return navigator.appVersion.includes("Trident")}(),isEdge:function(){return navigator.appVersion.includes("Edge")}(),
48 addConnector:function(a){var b=a.option.paneltype.connectorBG||null;a.hasClass("jsPanel-tooltip-top")?(a.append('<div class="jsPanel-connector jsPanel-connector-top">'),$(".jsPanel-connector-top",a).css("border-top-color",b||this.calcConnectorBg(a,"top")),a.option.position.offsetY=a.option.position.offsetY-10||-10):a.hasClass("jsPanel-tooltip-bottom")?(a.append('<div class="jsPanel-connector jsPanel-connector-bottom">'),$(".jsPanel-connector-bottom",a).css("border-bottom-color",b||this.calcConnectorBg(a,
49 "bottom")),a.option.position.offsetY=a.option.position.offsetY+10||10):a.hasClass("jsPanel-tooltip-left")?(a.append('<div class="jsPanel-connector jsPanel-connector-left">'),$(".jsPanel-connector-left",a).css("border-left-color",b||this.calcConnectorBg(a,"left")),a.option.position.offsetX=a.option.position.offsetX-12||-12):a.hasClass("jsPanel-tooltip-right")?(a.append('<div class="jsPanel-connector jsPanel-connector-right">'),$(".jsPanel-connector-right",a).css("border-right-color",b||this.calcConnectorBg(a,
50 "right")),a.option.position.offsetX=a.option.position.offsetX+12||12):a.hasClass("jsPanel-tooltip-lefttopcorner")?(a.append('<div class="jsPanel-connector jsPanel-connector-lefttopcorner">'),$(".jsPanel-connector-lefttopcorner",a).css("background-color",b||this.calcConnectorBg(a,"lefttopcorner"))):a.hasClass("jsPanel-tooltip-righttopcorner")?(a.append('<div class="jsPanel-connector jsPanel-connector-righttopcorner">'),$(".jsPanel-connector-righttopcorner",a).css("background-color",b||this.calcConnectorBg(a,
51 "righttopcorner"))):a.hasClass("jsPanel-tooltip-rightbottomcorner")?(a.append('<div class="jsPanel-connector jsPanel-connector-rightbottomcorner">'),$(".jsPanel-connector-rightbottomcorner",a).css("background-color",b||this.calcConnectorBg(a,"rightbottomcorner"))):a.hasClass("jsPanel-tooltip-leftbottomcorner")?(a.append('<div class="jsPanel-connector jsPanel-connector-leftbottomcorner">'),$(".jsPanel-connector-leftbottomcorner",a).css("background-color",b||this.calcConnectorBg(a,"leftbottomcorner"))):
52 a.hasClass("jsPanel-tooltip-lefttop")?(a.append('<div class="jsPanel-connector jsPanel-connector-lefttop">'),$(".jsPanel-connector-lefttop",a).css("border-left-color",b||this.calcConnectorBg(a,"lefttop")),a.option.position.offsetX=a.option.position.offsetX-12||-12):a.hasClass("jsPanel-tooltip-leftbottom")?(a.append('<div class="jsPanel-connector jsPanel-connector-leftbottom">'),$(".jsPanel-connector-leftbottom",a).css("border-left-color",b||this.calcConnectorBg(a,"leftbottom")),a.option.position.offsetX=
53 a.option.position.offsetX-12||-12):a.hasClass("jsPanel-tooltip-topleft")?(a.append('<div class="jsPanel-connector jsPanel-connector-topleft">'),$(".jsPanel-connector-topleft",a).css("border-top-color",b||this.calcConnectorBg(a,"topleft")),a.option.position.offsetY=a.option.position.offsetY-10||-10):a.hasClass("jsPanel-tooltip-topright")?(a.append('<div class="jsPanel-connector jsPanel-connector-topright">'),$(".jsPanel-connector-topright",a).css("border-top-color",b||this.calcConnectorBg(a,"topright")),
54 a.option.position.offsetY=a.option.position.offsetY-10||-10):a.hasClass("jsPanel-tooltip-righttop")?(a.append('<div class="jsPanel-connector jsPanel-connector-righttop">'),$(".jsPanel-connector-righttop",a).css("border-right-color",b||this.calcConnectorBg(a,"righttop")),a.option.position.offsetX=a.option.position.offsetX+12||12):a.hasClass("jsPanel-tooltip-rightbottom")?(a.append('<div class="jsPanel-connector jsPanel-connector-rightbottom">'),$(".jsPanel-connector-rightbottom",a).css("border-right-color",
55 b||this.calcConnectorBg(a,"rightbottom")),a.option.position.offsetX=a.option.position.offsetX+12||12):a.hasClass("jsPanel-tooltip-bottomleft")?(a.append('<div class="jsPanel-connector jsPanel-connector-bottomleft">'),$(".jsPanel-connector-bottomleft",a).css("border-bottom-color",b||this.calcConnectorBg(a,"bottomleft")),a.option.position.offsetY=a.option.position.offsetY+10||10):a.hasClass("jsPanel-tooltip-bottomright")&&(a.append('<div class="jsPanel-connector jsPanel-connector-bottomright">'),$(".jsPanel-connector-bottomright",
56 a).css("border-bottom-color",b||this.calcConnectorBg(a,"bottomright")),a.option.position.offsetY=a.option.position.offsetY+10||10)},addCustomTheme:function(a){this.themes.includes(a)||this.themes.push(a)},ajax:function(a){var b=a.option.contentAjax;b.then&&(b.then[0]&&(b.done=b.then[0]),b.then[1]&&(b.fail=b.then[1]));$.ajax(b).done(function(c,e,d){b.autoload&&a.content.append(c);$.isFunction(b.done)&&b.done.call(a,c,e,d,a)}).fail(function(c,e,d){$.isFunction(b.fail)&&b.fail.call(a,c,e,d,a)}).always(function(c,
57 e,d){$.isFunction(b.always)&&b.always.call(a,c,e,d,a)});a.data("ajaxURL",b.url)},applyBuiltInTheme:function(a,b){a.addClass("jsPanel-theme-"+b.color).header.addClass("jsPanel-theme-"+b.color);"filled"===b.filling?a.content.css("background","").addClass("jsPanel-content-filled"):"filledlight"===b.filling&&a.content.css("background","").addClass("jsPanel-content-filledlight");a.option.headerToolbar||a.content.css({borderTop:"1px solid "+a.header.title.css("color")})},applyArbitraryTheme:function(a,
58 b){a.header.css("background-color",b.colors[0]);$(".jsPanel-headerlogo, .jsPanel-title, .jsPanel-controlbar .jsPanel-btn .jsglyph, .jsPanel-hdr-toolbar",a).css({color:b.colors[3]});a.option.headerToolbar?a.header.toolbar.css({boxShadow:"0 0 1px "+b.colors[3]+" inset",width:"calc(100% + 4px)",marginLeft:"-1px"}):a.content.css({borderTop:"1px solid "+b.colors[3]});"filled"===b.filling?a.content.css({backgroundColor:b.colors[0],color:b.colors[3]}):"filledlight"===b.filling&&a.content.css({backgroundColor:b.colors[1]})},
59 applyBootstrapTheme:function(a,b){var c=void 0;a.addClass("panel panel-"+b.bstheme+" card card-inverse card-"+b.bstheme).header.addClass("panel-heading").title.addClass("panel-title");"mdb"===b.bs&&(c=b.bstheme+"-color",b.mdbStyle&&(c+="-dark"),a.removeClass("panel panel-"+b.bstheme).addClass(c));a.content.addClass("panel-body").css("border-top-color",function(){return a.header.css("border-top-color")});a.footer.addClass("panel-footer card-footer");var c="transparent"===$(".panel-heading",a).css("background-color")?
60 a.css("background-color").replace(/\s+/g,""):$(".panel-heading",a).css("background-color").replace(/\s+/g,""),e=this.calcColors(c);$(".jsPanel-headerlogo, .jsPanel-title, .jsPanel-controlbar .jsPanel-btn, .jsPanel-hdr-toolbar",a.header).css("color",e[3]);a.option.headerToolbar?a.header.toolbar.css({boxShadow:"0 0 1px "+e[3]+" inset",width:"calc(100% + 4px)",marginLeft:"-1px"}):a.content.css({borderTop:"1px solid "+e[3]});"filled"===b.filling?a.content.css({backgroundColor:c,color:e[3]}):"filledlight"===
61 b.filling&&a.content.css({backgroundColor:e[1],color:"#000000"})},applyThemeBorder:function(a,b){var c=a.option.border.split(" ");a.css({borderWidth:c[0],borderStyle:c[1],borderColor:c[2]});a.header.css({"border-top-left-radius":0,"border-top-right-radius":0});if(b.bs){var e;e="transparent"===$(".panel-heading",a).css("background-color")?a.css("background-color").replace(/\s+/g,""):$(".panel-heading",a).css("background-color").replace(/\s+/g,"");c[2]?a.css("border-color",c[2]):a.css("border-color",
62 e)}else this.themes.includes(b.color)||(c[2]?a.css("border-color",c[2]):a.css("border-color",b.colors[0]))},calcColors:function(a){var b=this.color(a),c=this.lighten(a,.81),e=this.darken(a,.5);a=this.perceivedBrightness(a)<=this.pbTreshold?"#ffffff":"#000000";var d=this.perceivedBrightness(c)<=this.pbTreshold?"#ffffff":"#000000",f=this.perceivedBrightness(e)<=this.pbTreshold?"#000000":"#ffffff";return[b.hsl.css,c,e,a,d,f]},calcConnectorBg:function(a,b){var c=a.content.css("background-color"),e=a.footer.css("background-color"),
63 d=a.header.css("background-color");if(b.match(/^(top|topleft|topright|lefttopcorner|righttopcorner|leftbottom|rightbottom)$/))return"none"!==a.footer.css("display")?e:0<parseFloat(a.option.contentSize.height)?c:d;if(b.match(/^(bottom|bottomleft|bottomright|leftbottomcorner|rightbottomcorner)$/))if(a.option.headerRemove){if(0<parseFloat(a.option.contentSize.height))return c;if("none"!==a.footer.css("display"))return e}else return d;else{if(b.match(/^(lefttop|righttop)$/))return a.option.headerRemove?
64 c:d;if(b.match(/^(left|right)$/)){if(0<parseFloat(a.option.contentSize.height))return c;if(!a.option.headerRemove)return d;if("none"!==a.footer.css("display"))return e}}},clearTheme:function(a){this.themes.concat(this.mdbthemes).forEach(function(b){a.removeClass("panel card card-inverse jsPanel-theme-"+b+" panel-"+b+" card-"+b+" "+b+"-color");a.header.removeClass("panel-heading jsPanel-theme-"+b)});$(".jsPanel-content",a).removeClass("jsPanel-content-filled jsPanel-content-filledlight");a.css({borderWidth:"",
65 borderStyle:"",borderColor:""});$(".jsPanel-hdr, .jsPanel-content",a).css({background:""});$(".jsPanel-headerlogo, .jsPanel-title, .jsPanel-controlbar .jsPanel-btn .jsglyph, .jsPanel-hdr-toolbar, .jsPanel-content",a).css({color:""});a.header.title.removeClass("panel-title");a.header.toolbar.css({boxShadow:"",width:"",marginLeft:""});a.content.removeClass("panel-body").css({borderTop:"",borderTopColor:""});a.footer.removeClass("panel-footer card-footer")},close:function(a){function b(a){for(var b=
66 arguments.length,d=Array(1<b?b-1:0),c=1;c<b;c++)d[c-1]=arguments[c];d=l;b=a.option.position;if(b.autoposition||"string"===typeof b&&b.match(/DOWN|RIGHT|UP|LEFT/))if(b=$(a).parent(),c=document.getElementById(f).className.match(/left-top|center-top|right-top|left-center|center|right-center|left-bottom|center-bottom|right-bottom/))jsPanel.lastbeforeclose={parent:b,"class":c[0]};a.closeChildpanels().remove();$("#"+f).length||function(){var b=jsPanel.activePanels.list.findIndex(function(a){return a===
67 f});-1<b&&jsPanel.activePanels.list.splice(b,1);jsPanel.remMinReplacement(a);"modal"===a.option.paneltype&&jsPanel.removeModalBackdrop(a);a.option.paneltype.tooltip&&$(h).removeClass("hasTooltip");$(document).trigger("jspanelclosed",f);$(document).trigger("jspanelstatuschange",f);var c=b=b=void 0;jsPanel.lastbeforeclose&&(b=jsPanel.lastbeforeclose.parent,b=$("."+jsPanel.lastbeforeclose["class"],b),c=jsPanel.lastbeforeclose["class"]);b&&(b.each(function(a,b){$(b).removeClass(c)}),b.each(function(b,
68 d){jsPanel.position(d,a.option.position)}));jsPanel.lastbeforeclose=!1;!0===d[2]?$.noop():$.isFunction(a.option.onclosed)&&a.option.onclosed.call(a,a);d[0]&&$.isFunction(d[0])&&d[0].call(a,a);jsPanel.resetZis()}()}for(var c=arguments.length,e=Array(1<c?c-1:0),d=1;d<c;d++)e[d-1]=arguments[d];var f=a.attr("id"),h=this.setTrigger(a.option.position),c=a.option.delayClose,l=e;$(document).trigger("jspanelbeforeclose",f);if($.isFunction(a.option.onbeforeclose))if(!0===e[1])$.noop();else if(!1===a.option.onbeforeclose.call(a,
69 a))return a;c?"number"===typeof c&&0<c?window.setTimeout(function(){b(a,e[0],e[2])},c):b(a,e[0],e[2]):b(a,e[0],e[2])},closeChildpanels:function(a){$(".jsPanel",a).each(function(a,c){c.jspanel.close()});return a},closeTooltips:function(){$(".jsPanel-tooltip").each(function(a,b){b.jspanel&&b.jspanel.close()})},calcPositionFactors:function(a){"body"===a.option.container?(a.hf=parseInt(a.css("left"),10)/($(window).outerWidth()-a.outerWidth()),a.vf=parseInt(a.css("top"),10)/($(window).outerHeight()-a.outerHeight())):
70 (a.hf=parseInt(a.css("left"),10)/(a.parent().outerWidth()-a.outerWidth()),a.vf=parseInt(a.css("top"),10)/(a.parent().outerHeight()-a.outerHeight()))},color:function(a){var b=a.toLowerCase(),c,e,d;a={};c=/^rgba?\(([0-9]{1,3}),([0-9]{1,3}),([0-9]{1,3}),?(0|1|0\.[0-9]{1,2}|\.[0-9]{1,2})?\)$/gi;e=/^hsla?\(([0-9]{1,3}),([0-9]{1,3}\%),([0-9]{1,3}\%),?(0|1|0\.[0-9]{1,2}|\.[0-9]{1,2})?\)$/gi;d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",
71 black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",
72 darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",
73 khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",
74 mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",
75 peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",
76 wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};d[b]&&(b=d[b]);null!==b.match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/gi)?(b=b.replace("#",""),1===b.length%2?(c=String(b.substr(0,1))+b.substr(0,1),e=String(b.substr(1,1))+b.substr(1,1),b=String(b.substr(2,1))+b.substr(2,1),a.rgb={r:parseInt(c,16),g:parseInt(e,16),b:parseInt(b,16)},a.hex="#"+c+e+b):(a.rgb={r:parseInt(b.substr(0,2),16),g:parseInt(b.substr(2,2),16),b:parseInt(b.substr(4,2),16)},a.hex="#"+b),b=this.rgbToHsl(a.rgb.r,
77 a.rgb.g,a.rgb.b),a.hsl=b,a.rgb.css="rgb("+a.rgb.r+","+a.rgb.g+","+a.rgb.b+")"):b.match(c)?(c=c.exec(b),a.rgb={css:b,r:c[1],g:c[2],b:c[3]},a.hex=this.rgbToHex(c[1],c[2],c[3]),b=this.rgbToHsl(c[1],c[2],c[3]),a.hsl=b):b.match(e)?(c=e.exec(b),b=c[1]/360,e=c[2].substr(0,c[2].length-1)/100,d=c[3].substr(0,c[3].length-1)/100,b=this.hslToRgb(b,e,d),a.rgb={css:"rgb("+b[0]+","+b[1]+","+b[2]+")",r:b[0],g:b[1],b:b[2]},a.hex=this.rgbToHex(a.rgb.r,a.rgb.g,a.rgb.b),a.hsl={css:"hsl("+c[1]+","+c[2]+","+c[3]+")",h:c[1],
78 s:c[2],l:c[3]}):(a.hex="#f5f5f5",a.rgb={css:"rgb(245,245,245)",r:245,g:245,b:245},a.hsl={css:"hsl(0,0%,96.08%)",h:0,s:"0%",l:"96.08%"});return a},configIconfont:function(a){var b="remove fullscreen resize-full minus chevron-up chevron-down".split(" "),c="times fa-window-close;arrows-alt fa-window-maximize;expand fa-window-restore;minus fa-window-minimize;chevron-up;chevron-down".split(";"),e="close fullscreen fullscreen_exit call_received expand_less expand_more".split(" "),d=a.option.headerControls.iconfont,
79 f=a.header.headerbar;"bootstrap"===d||"glyphicon"===d?this.controls.forEach(function(a,d){$(".jsPanel-btn-"+a+" span",f).removeClass().addClass("glyphicon glyphicon-"+b[d])}):"font-awesome"===d?this.controls.forEach(function(a,b){$(".jsPanel-btn-"+a+" span",f).removeClass().addClass("fa fa-"+c[b])}):"material-icons"===d&&this.controls.forEach(function(a,b){$(".jsPanel-btn-"+a+" span",f).removeClass().addClass("material-icons").text(e[b])})},configToolbar:function(a,b,c){a.forEach(function(a){if("object"===
80 ("undefined"===typeof a?"undefined":_typeof(a))){var d=$(a.item);"string"===typeof a.btntext&&d.append(a.btntext);"string"===typeof a.btnclass&&d.addClass(a.btnclass);b.append(d);if($.isFunction(a.callback))d.on(a.event||"click",c,a.callback)}})},contentReload:function(a,b){a.option.content?a.content.empty().append(a.option.content):a.option.contentAjax?(a.content.empty(),this.ajax(a)):a.option.contentIframe&&(a.content.empty(),this.iframe(a));b&&$.isFunction(b)&&b.call(a,a);return a},contentResize:function(a,
81 b){var c=a.footer.hasClass("active")?a.header.outerHeight()+a.footer.outerHeight():a.header.outerHeight(),e=parseInt(a.css("border-top-width"),10)+parseInt(a.css("border-bottom-width"),10);a.content.css({height:a.outerHeight()-c-e});b&&$.isFunction(b)&&b.call(a,a);return a},createMinimizedReplacement:function(a){var b=$(this.replacementTemplate),c=a.header.title.css("color"),e;e="transparent"===a.header.css("background-color")?a.css("background-color"):a.header.css("background-color");a.css("left",
82 "-9999px").data("status","minimized");b.css({backgroundColor:e}).prop("id",a.prop("id")+"-min").find("h3").css({color:c}).prop("title",a.header.title[0].textContent).html(a.headerTitle());a.header.logo.children().length&&$(".jsPanel-headerbar",b).prepend(a.header.logo.clone());a=a.option.headerControls.iconfont;"font-awesome"===a?($(".jsglyph.jsglyph-normalize",b).removeClass().addClass("fa fa-expand fa-window-restore"),$(".jsglyph.jsglyph-maximize",b).removeClass().addClass("fa fa-arrows-alt fa-window-maximize"),
83 $(".jsglyph.jsglyph-close",b).removeClass().addClass("fa fa-times fa-window-close")):"bootstrap"===a||"glyphicon"===a?($(".jsglyph.jsglyph-normalize",b).removeClass().addClass("glyphicon glyphicon-resize-full"),$(".jsglyph.jsglyph-maximize",b).removeClass().addClass("glyphicon glyphicon-fullscreen"),$(".jsglyph.jsglyph-close",b).removeClass().addClass("glyphicon glyphicon-remove")):"material-icons"===a&&($(".jsglyph.jsglyph-normalize",b).removeClass().addClass("material-icons").text("call_made"),
84 $(".jsglyph.jsglyph-maximize",b).removeClass().addClass("material-icons").text("fullscreen"),$(".jsglyph.jsglyph-close",b).removeClass().addClass("material-icons").text("close"));$(".jsPanel-btn span",b).css({color:c});return b},darken:function(a,b){var c=this.color(a).hsl,e=parseFloat(c.l);return"hsl("+c.h+","+c.s+","+(e-e*b+"%")+")"},dblclickhelper:function(a,b){if("string"===typeof a)if("maximize"===a||"normalize"===a)"normalized"===b.data("status")?b.maximize():b.normalize();else if("minimize"===
85 a||"smallify"===a||"close"===a)b[a]()},exportPanels:function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".jsPanel",b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"jspanels",c=[],a=$(".jsPanel").not(".jsPanel-tooltip, .jsPanel-hint, .jsPanel-modal").filter(a);a.each(function(a,b){"normalized"!==$(b).data("status")&&$(".jsPanel-btn-normalize",b).trigger("click")});a.each(function(a,b){var f,h,l,m;f=$(b).data("container");h=$(b).offset();l=$(b).position();"minimized"===
86 $(b).data("status")?("body"===f.toLowerCase()?(f=$(b).data("paneltop")-$(window).scrollTop(),h=$(b).data("panelleft")-$(window).scrollLeft()):(f=$(b).data("paneltop"),h=$(b).data("panelleft")),l=$(b).data("panelwidth"),m=$(b).data("panelheight")):("body"===f.toLowerCase()?(f=Math.floor(h.top-$(window).scrollTop()),h=Math.floor(h.left-$(window).scrollLeft())):(f=Math.floor(l.top),h=Math.floor(l.left)),l=$(b).css("width"),m=$(".jsPanel-content",b).css("height"));f={status:$(b).data("status"),id:$(b).prop("id"),
87 headerTitle:$(".jsPanel-title",b).html(),custom:$(b).data("custom"),content:$(b).data("content"),contentSize:{width:l,height:m},position:{my:"left-top",at:"left-top",offsetX:h,offsetY:f}};$(b).data("ajaxURL")&&(f.contentAjax={url:$(b).data("ajaxURL"),autoload:!0});if($(b).data("iframeDOC")||$(b).data("iframeSRC"))f.contentIframe={src:$(b).data("iframeSRC")||"",srcdoc:$(b).data("iframeDOC")||""};c.push(f);switch(f.status){case "minimized":$(".jsPanel-btn-minimize",b).trigger("click");break;case "maximized":$(".jsPanel-btn-maximize",
88 b).trigger("click");break;case "smallified":$(".jsPanel-btn-smallify",b).trigger("click");break;case "smallifiedMax":$(".jsPanel-btn-smallify",b).trigger("click")}});window.localStorage.setItem(b,JSON.stringify(c));return c},front:function(a,b){a.css("z-index",this.setZi(a));this.resetZis();$(document).trigger("jspanelfronted",a.prop("id"));if($.isFunction(a.option.onfronted)){if(!1===a.option.onfronted.call(a,a))return a;a.option.onfronted.call(a,a)}b&&$.isFunction(b)&&b.call(a,a);return a},getThemeDetails:function(a){var b=
89 {color:!1,colors:!1,filling:!1,bs:!1,bstheme:!1};"filled"===a.substr(-6,6)?(b.filling="filled",b.color=a.substr(0,a.length-6)):"filledlight"===a.substr(-11,11)?(b.filling="filledlight",b.color=a.substr(0,a.length-11)):(b.filling="",b.color=a);b.colors=this.calcColors(b.color);b.color.match("-")&&(a=b.color.split("-"),b.bs=a[0],b.bstheme=a[1],b.mdbStyle=a[2]||void 0);return b},getTopmostPanel:function(){var a=[];$(".jsPanel:not(.jsPanel-tooltip):not(.jsPanel-hint)").each(function(b,c){a.push(c)});
90 a.sort(function(a,c){return $(c).css("z-index")-$(a).css("z-index")});return a[0].getAttribute("id")},headerTitle:function(a,b){return b?(a.header.title.empty().append(b),a):a.header.title.html()},headerControl:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"enable";b?this.setControlStatus(a,b,c):this.controls.forEach(function(b){jsPanel.setControlStatus(a,b)});return a},hslToRgb:function(a,b,c){if(0===b)c=b=a=c;else{var e=function(a,b,c){0>c&&(c+=1);1<c&&--c;return c<
91 1/6?a+6*(b-a)*c:.5>c?b:c<2/3?a+(b-a)*(2/3-c)*6:a},d=.5>c?c*(1+b):c+b-c*b,f=2*c-d;c=e(f,d,a+1/3);b=e(f,d,a);a=e(f,d,a-1/3)}return[Math.round(255*c),Math.round(255*b),Math.round(255*a)]},iframe:function(a){var b=$("<iframe></iframe>"),c=a.option.contentIframe;c.srcdoc&&(b.prop("srcdoc",c.srcdoc),a.data("iframeDOC",c.srcdoc));c.src&&(b.prop("src",c.src),a.data("iframeSRC",c.src));"auto"===a.option.contentSize.width||c.width?b.prop("width",c.width):b.css("width","100%");"auto"===a.option.contentSize.height||
92 c.height?b.prop("height",c.height):b.css("height","100%");c.name&&b.prop("name",c.name);c.sandbox&&b.prop("sandox",c.sandbox);c.id&&b.prop("id",c.id);$.isPlainObject(c.style)&&b.css(c.style);"string"===typeof c.classname?b.addClass(c.classname):$.isFunction(c.classname)&&b.addClass(c.classname());a.content.append(b)},importPanels:function(a){var b=JSON.parse(localStorage[1<arguments.length&&void 0!==arguments[1]?arguments[1]:"jspanels"]),c=a["default"]||{},e=void 0;b.forEach(function(b){e="string"===
93 typeof b.custom.config?$.extend(!0,{},c,a[b.custom.config],b):$.extend(!0,{},c,b);$.jsPanel(e)})},insertModalBackdrop:function(a){var b=0===$(".jsPanel-modal-backdrop").length?"jsPanel-modal-backdrop":"jsPanel-modal-backdrop jsPanel-modal-backdrop-multi",b='<div id="jsPanel-modal-backdrop-'+a.attr("id")+'" class="'+b+'" style="z-index:'+(this.modalcount+9999)+'"></div>';$("body").append(b);this.modalcount+=1;$("#jsPanel-modal-backdrop-"+a.attr("id")).animate({opacity:.65},750)},lighten:function(a,
94 b){var c=this.color(a).hsl,e=parseFloat(c.l);return"hsl("+c.h+","+c.s+","+(e+(100-e)*b+"%")+")"},maximize:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!0,e=a.option.maximizedMargin,d=a[0].parentNode,f=a.attr("id");"normalized"===a.data("status")&&a.updateCachedData();$(document).trigger("jspanelbeforemaximize",f);if($.isFunction(a.option.onbeforemaximize)&&!1===a.option.onbeforemaximize.call(a,a))return a;a.css("overflow","visible");d===document.body?(a.css({width:document.documentElement.clientWidth-
95 e.left-e.right+"px",height:document.documentElement.clientHeight-e.top-e.bottom+"px",left:e.left+"px",top:e.top+"px"}),!1===a.option.position.fixed&&a.css({left:window.pageXOffset+e.left+"px",top:window.pageYOffset+e.top+"px"})):a.css({width:d.clientWidth-e.left-e.right+"px",height:d.clientHeight-e.top-e.bottom+"px",left:e.left+"px",top:e.top+"px"});a.contentResize().data("status","maximized");c&&a.css("z-index",this.setZi(a));a.hideControls(".jsPanel-btn-maximize, .jsPanel-btn-smallifyrev");this.remMinReplacement(a);
96 $(document).trigger("jspanelmaximized",f);$(document).trigger("jspanelstatuschange",f);$.isFunction(a.option.onmaximized)&&a.option.onmaximized.call(a,a);b&&$.isFunction(b)&&b.call(a,a);return a},minimize:function(a,b){var c=a.attr("id");if("minimized"===a.data("status"))return a;$(document).trigger("jspanelbeforeminimize",c);if($.isFunction(a.option.onbeforeminimize)&&!1===a.option.onbeforeminimize.call(a,a))return a;var e=a.data("status");"normalized"===e?a.updateCachedData():"smallified"===e&&
97 (a.cachedData.top=a.css("top"),a.cachedData.left=a.css("left"));var e=this.createMinimizedReplacement(a),d=$(a.option.container).closest(".jsPanel-content");if(d.length){var f=".jsPanel-minimized-box";a.option.minimizeTo&&("string"===typeof a.option.minimizeTo?(f=a.option.minimizeTo,$(f).append(e)):$(f,d.parent()).append(e))}else d="#jsPanel-replacement-container",a.option.minimizeTo&&("string"===typeof a.option.minimizeTo&&(d=a.option.minimizeTo),$(d).append(e));$(document).trigger("jspanelminimized",
98 c);$(document).trigger("jspanelstatuschange",c);$.isFunction(a.option.onminimized)&&a.option.onminimized.call(a,a);b&&$.isFunction(b)&&b.call(a,a);$(".jsPanel-btn-normalize",e).css("display","block").on("click",function(){return a.normalize()});"disabled"===a[0].dataset.btnnormalize?$(".jsPanel-btn-normalize",e).css({pointerEvents:"none",opacity:.5,cursor:"default"}):"removed"===a[0].dataset.btnnormalize&&$(".jsPanel-btn-normalize",e).remove();$(".jsPanel-btn-maximize",e).on("click",function(){return a.maximize()});
99 "disabled"===a[0].dataset.btnmaximize?$(".jsPanel-btn-maximize",e).css({pointerEvents:"none",opacity:.5,cursor:"default"}):"removed"===a[0].dataset.btnmaximize&&$(".jsPanel-btn-maximize",e).remove();$(".jsPanel-btn-close",e).on("click",function(){return a.close()});"disabled"===a[0].dataset.btnclose&&$(".jsPanel-btn-close",e).css({pointerEvents:"none",opacity:.5,cursor:"default"});return a},normalize:function(a,b){var c=a.attr("id");if("normalized"===a.data("status"))return a;$(document).trigger("jspanelbeforenormalize",
100 c);if($.isFunction(a.option.onbeforenormalize)&&!1===a.option.onbeforenormalize.call(a,a))return a;if("smallified"===a.data("status"))return a.smallify(),$(document).trigger("jspanelnormalized",c),$(document).trigger("jspanelstatuschange",c),$.isFunction(a.option.onnormalized)&&a.option.onnormalized.call(a,a),a;a.css({left:a.cachedData.left,top:a.cachedData.top,width:a.cachedData.width,height:a.cachedData.height,zIndex:function(){jsPanel.setZi(a)},overflow:"visible"}).data("status","normalized").contentResize();
101 a.hideControls(".jsPanel-btn-normalize, .jsPanel-btn-smallifyrev");this.remMinReplacement(a);$(document).trigger("jspanelnormalized",c);$(document).trigger("jspanelstatuschange",c);$.isFunction(a.option.onnormalized)&&a.option.onnormalized.call(a,a);b&&$.isFunction(b)&&b.call(a,a);return a},perceivedBrightness:function(a){a=this.color(a).rgb;return a.r/255*.2627+a.g/255*.678+a.b/255*.0593},position:function(a,b){function c(a){var b={};z.includes(a)?b.left=window.pageXOffset:t.includes(a)?b.left=window.pageXOffset+
102 document.documentElement.clientWidth/2:w.includes(a)?b.left=window.pageXOffset+document.documentElement.clientWidth:b.left=window.pageXOffset;x.includes(a)?b.top=window.pageYOffset:v.includes(a)?b.top=window.pageYOffset+window.innerHeight/2:u.includes(a)?b.top=window.pageYOffset+window.innerHeight:b.top=window.pageYOffset;return b}function e(a){var b={},c=h(g.of);z.includes(a)?b.left=c.left:t.includes(a)?b.left=c.left+c.width/2:w.includes(a)?b.left=c.left+c.width:b.left=c.left;x.includes(a)?b.top=
103 c.top:v.includes(a)?b.top=c.top+c.height/2:u.includes(a)?b.top=c.top+c.height:b.top=c.top;return b}function d(a){var b={},c=r.getBoundingClientRect();z.includes(a)?b.left=0:t.includes(a)?b.left=c.width/2:w.includes(a)?b.left=c.width:b.left=0;x.includes(a)?b.top=0:v.includes(a)?b.top=c.height/2:u.includes(a)?b.top=c.height:b.top=0;return b}function f(a){var b={},c=r.getBoundingClientRect(),d=document.querySelector(g.of).getBoundingClientRect(),e=d.left-c.left,c=d.top-c.top;z.includes(a)?b.left=e:t.includes(a)?
104 b.left=e+d.width/2:w.includes(a)?b.left=e+d.width:b.left=e;x.includes(a)?b.top=c:v.includes(a)?b.top=c+d.height/2:u.includes(a)?b.top=c+d.height:b.top=c;return b}function h(a){a=a.jquery?a[0].getBoundingClientRect():"string"===typeof a?document.querySelector(a).getBoundingClientRect():a.getBoundingClientRect();return{width:Math.round(a.width),height:Math.round(a.height),left:Math.round(a.left+window.pageXOffset),top:Math.round(a.top+window.pageYOffset)}}var l=void 0,m=void 0,g=void 0,r=void 0,p=0,
105 n=0,k=m=m=void 0,z=["left-top","left-center","left-bottom"],t=["center-top","center","center-bottom"],w=["right-top","right-center","right-bottom"],x=["left-top","center-top","right-top"],v=["left-center","center","right-center"],u=["left-bottom","center-bottom","right-bottom"];if("string"===typeof b){var l=b.match(/\b[a-z]{4,6}-{1}[a-z]{3,6}\b/),m=b.match(/DOWN|UP|RIGHT|LEFT/),k=b.match(/[+-]?\d+\.?\d*%?/g),q=void 0,q=$.isArray(l)?{my:l[0],at:l[0]}:{my:"center",at:"center"};$.isArray(m)&&(q.autoposition=
106 m[0]);$.isArray(k)&&(q.offsetX=k[0],2===k.length&&(q.offsetY=k[1]));b=q}else l=0===b.left||b.left?!0:!1,m=0===b.top||b.top?!0:!1,k=0===b.right||b.right?!0:!1,q=0===b.bottom||b.bottom?!0:!1,l&&m?(b.my="left-top",b.at="left-top",b.offsetX=b.left,b.offsetY=b.top):l&&q?(b.my="left-bottom",b.at="left-bottom",b.offsetX=b.left,b.offsetY=-b.bottom):k&&m?(b.my="right-top",b.at="right-top",b.offsetX=-b.right,b.offsetY=b.top):k&&q&&(b.my="right-bottom",b.at="right-bottom",b.offsetX=-b.right,b.offsetY=-b.bottom);
107 g=Object.assign({my:"center",at:"center",offsetX:0,offsetY:0,modify:!1,fixed:"true"},b);l="string"===typeof a?document.querySelector(a):a.jquery?a[0]:a;r=l.parentElement||document.body;g.of||(r===document.body?g.of="window":g.of=r);m=h(l);"string"===typeof g.offsetX&&"%"===g.offsetX.slice(-1)?g.offsetX="window"===g.of?window.innerWidth*(parseInt(g.offsetX,10)/100):r.clientWidth*(parseInt(g.offsetX,10)/100):"string"===typeof g.offsetX?g.offsetX=parseFloat(g.offsetX):$.isFunction(g.offsetX)&&(g.offsetX=
108 parseInt(g.offsetX.call(a,a),10));"string"===typeof g.offsetY&&"%"===g.offsetY.slice(-1)?g.offsetY="window"===g.of?window.innerHeight*(parseInt(g.offsetY,10)/100):r.clientHeight*(parseInt(g.offsetY,10)/100):"string"===typeof g.offsetY?g.offsetY=parseFloat(g.offsetY):$.isFunction(g.offsetY)&&(g.offsetY=parseInt(g.offsetY.call(a,a),10));k=parseInt(window.getComputedStyle(r)["border-left-width"],10)||0;z.includes(g.my)?p=k:t.includes(g.my)?p=m.width/2+k:w.includes(g.my)&&(p=m.width+k);k=parseInt(window.getComputedStyle(r)["border-top-width"],
109 10)||0;x.includes(g.my)?n=k:v.includes(g.my)?n=m.height/2+k:u.includes(g.my)&&(n=m.height+k);l.parentElement===document.body?"window"===g.of?(k=c(g.at),g.fixed?(m=k.left-p+g.offsetX-window.pageXOffset,k=k.top-n+g.offsetY-window.pageYOffset):(m=k.left-p+g.offsetX,k=k.top-n+g.offsetY)):(k=e(g.at),m=k.left-p+g.offsetX,k=k.top-n+g.offsetY):(m=k=void 0,m="string"===typeof g.of?document.querySelector(g.of):g.of.jquery?g.of[0]:g.of,k=r===m?d(g.at):f(g.at),m=k.left-p+g.offsetX,k=k.top-n+g.offsetY);if(g.autoposition){n=
110 void 0;p=[];g.my===g.at&&(n=g.my);l.classList.add(n);n=document.getElementsByClassName(n);for(q=0;q<n.length;q++)n[q].parentElement===r&&p.push(n[q]);if("DOWN"===g.autoposition)for(n=0;n<p.length-1;n++)k+=p[n].getBoundingClientRect().height+this.autopositionSpacing;else if("UP"===g.autoposition)for(n=0;n<p.length-1;n++)k-=p[n].getBoundingClientRect().height+this.autopositionSpacing;else if("RIGHT"===g.autoposition)for(n=0;n<p.length-1;n++)m+=p[n].getBoundingClientRect().width+this.autopositionSpacing;
111 else if("LEFT"===g.autoposition)for(n=0;n<p.length-1;n++)m-=p[n].getBoundingClientRect().width+this.autopositionSpacing}m={left:m,top:k};"function"===typeof g.modify&&(m=g.modify.call(m,m));l.style.position="absolute";l.style.left=m.left+"px";l.style.top=m.top+"px";l.style.opacity=1;"window"===g.of&&g.fixed&&r===document.body&&(l.style.position="fixed");return l},remMinReplacement:function(a){$('[id^="'+a.prop("id")+'-min"]').remove()},removeModalBackdrop:function(a){$("#jsPanel-modal-backdrop-"+
112 a.attr("id")).animate({opacity:0},{duration:500,done:function(){$(this).remove()}})},reposition:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a.option.position,c=arguments[2];if("minimized"!==a.data("status")){a.option.position=b;if(a.option.paneltype.tooltip){var e=a.attr("class").split(" ");$.each(e,function(b,c){0===c.indexOf("jsPanel-tooltip-")&&a.removeClass(c)});this.setTooltipClass(a);$(".jsPanel-connector",a).remove();a.option.paneltype.connector&&this.addConnector(a)}this.position(a,
113 b)}c&&$.isFunction(c)&&c.call(a,a);return a},resetZis:function(){var a=[];$(".jsPanel:not(.jsPanel-modal):not(.jsPanel-hint)").each(function(b,c){a.push(c)});a.sort(function(a,c){return $(a).css("z-index")-$(c).css("z-index")}).forEach(function(a,c){(jsPanel.zi+=1)>$(a).css("z-index")&&$(a).css("z-index",jsPanel.ziBase+c)});this.zi=this.ziBase-1+a.length},resize:function(a,b){if("minimized"!==a.data("status")){if($.isFunction(a.option.onbeforeresize)&&!1===a.option.onbeforeresize.call(a,a))return a;
114 if($.isPlainObject(b)){var c=$.extend({},!1,$.jsPanel.resizedefaults,b),e,d;c.width&&"auto"===c.width?(a.content.css("width","auto"),a.css("width","auto"),a.css("width",a.outerWidth())):c.width&&a.css("width",c.width);c.height&&"auto"===c.height?(a.content.css("height","auto"),a.css("height","auto")):c.height&&a.css("height",c.height);e=a.outerWidth();d=a.outerHeight();c.minwidth&&e<c.minwidth&&a.css("width",c.minwidth);c.maxwidth&&e>c.maxwidth&&a.css("width",c.maxwidth);c.minheight&&d<c.minheight&&
115 a.css("height",c.minheight);c.maxheight&&d>c.maxheight&&a.css("height",c.maxheight);this.contentResize(a);if($.isFunction(a.option.onresized)&&!1===a.option.onresized.call(a,a))return a;c.callback&&$.isFunction(c.callback)&&c.callback.call(a,a)}}return a},rgbToHsl:function(a,b,c){a/=255;b/=255;c/=255;var e=Math.max(a,b,c),d=Math.min(a,b,c),f,h=(e+d)/2;if(e===d)f=d=0;else{var l=e-d,d=.5<h?l/(2-e-d):l/(e+d);switch(e){case a:f=(b-c)/l+(b<c?6:0);break;case b:f=(c-a)/l+2;break;case c:f=(a-b)/l+4}f/=6}f*=
116 360;d=100*d+"%";h=100*h+"%";return{css:"hsl("+f+","+d+","+h+")",h:f,s:d,l:h}},rgbToHex:function(a,b,c){a=Number(a).toString(16);b=Number(b).toString(16);c=Number(c).toString(16);1===a.length&&(a="0"+a);1===b.length&&(b="0"+b);1===c.length&&(c="0"+c);return"#"+a+b+c},setControlStatus:function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"enable",e=a.header.headerbar,d=a[0];"disable"===c?"removed"!==d.getAttribute("data-btn"+b)&&(d.setAttribute("data-btn"+b,"disabled"),$(".jsPanel-btn-"+
117 b,e).css({pointerEvents:"none",opacity:.4,cursor:"default"})):"enable"===c?"removed"!==d.getAttribute("data-btn"+b)&&(d.setAttribute("data-btn"+b,"enabled"),$(".jsPanel-btn-"+b,e).css({pointerEvents:"auto",opacity:1,cursor:"pointer"})):"remove"===c&&($(".jsPanel-btn-"+b,e).remove(),d.setAttribute("data-btn"+b,"removed"))},setTooltipClass:function(a){var b=a.option.position.my+a.option.position.at;"center-bottomcenter-top"===b?a.addClass("jsPanel-tooltip-top"):"left-bottomright-top"===b?a.addClass("jsPanel-tooltip-righttopcorner"):
118 "left-centerright-center"===b?a.addClass("jsPanel-tooltip-right"):"left-topright-bottom"===b?a.addClass("jsPanel-tooltip-rightbottomcorner"):"center-topcenter-bottom"===b?a.addClass("jsPanel-tooltip-bottom"):"right-topleft-bottom"===b?a.addClass("jsPanel-tooltip-leftbottomcorner"):"right-centerleft-center"===b?a.addClass("jsPanel-tooltip-left"):"right-bottomleft-top"===b?a.addClass("jsPanel-tooltip-lefttopcorner"):"centercenter"===b?a.addClass("jsPanel-tooltip-center"):"right-topleft-top"===b?a.addClass("jsPanel-tooltip-lefttop"):
119 "right-bottomleft-bottom"===b?a.addClass("jsPanel-tooltip-leftbottom"):"left-bottomleft-top"===b?a.addClass("jsPanel-tooltip-topleft"):"right-bottomright-top"===b?a.addClass("jsPanel-tooltip-topright"):"left-topright-top"===b?a.addClass("jsPanel-tooltip-righttop"):"left-bottomright-bottom"===b?a.addClass("jsPanel-tooltip-rightbottom"):"left-topleft-bottom"===b?a.addClass("jsPanel-tooltip-bottomleft"):"right-topright-bottom"===b&&a.addClass("jsPanel-tooltip-bottomright")},setTooltipMode:function(a,
120 b){"semisticky"===a.option.paneltype.mode?a.hover(function(){return $.noop()},function(){a.close();$(b).removeClass("hasTooltip")}):"sticky"===a.option.paneltype.mode?$.noop():$(b).mouseout(function(){a.close();$(b).removeClass("hasTooltip")})},setTrigger:function(a){a=a.of||"window";return"string"===typeof a?document.querySelector(a):a.jquery?a[0]:a},setZi:function(a){a.hasClass("jsPanel-modal")||(this.zi+=1)>a.css("z-index")&&a.css("z-index",this.zi)},smallify:function(a,b){var c=a.attr("id");if("normalized"===
121 a.data("status")||"maximized"===a.data("status")){if("smallified"!==a.data("status")&&"smallifiedMax"!==a.data("status")){$(document).trigger("jspanelbeforesmallify",c);if($.isFunction(a.option.onbeforesmallify)&&!1===a.option.onbeforesmallify.call(a,a))return a;a.smallify.height=a.outerHeight();a.css("overflow","hidden");a.animate({height:a.header.headerbar.outerHeight()+"px"},{done:function(){"maximized"===a.data("status")?(a.hideControls(".jsPanel-btn-maximize, .jsPanel-btn-smallify"),a.data("status",
122 "smallifiedMax"),$(document).trigger("jspanelsmallifiedmax",c)):(a.hideControls(".jsPanel-btn-normalize, .jsPanel-btn-smallify"),a.data("status","smallified"),$(document).trigger("jspanelsmallified",c));$.isFunction(a.option.onsmallified)&&a.option.onsmallified.call(a,a);$(document).trigger("jspanelstatuschange",c)}})}}else if("minimized"!==a.data("status")){$(document).trigger("jspanelbeforeunsmallify",c);if($.isFunction(a.option.onbeforeunsmallify)&&!1===a.option.onbeforeunsmallify.call(a,a))return a;
123 a.css("overflow","visible");a.animate({height:a.smallify.height},{done:function(){"smallified"===a.data("status")?(a.hideControls(".jsPanel-btn-normalize, .jsPanel-btn-smallifyrev"),a.data("status","normalized"),$(document).trigger("jspanelnormalized",c)):(a.hideControls(".jsPanel-btn-maximize, .jsPanel-btn-smallifyrev"),a.data("status","maximized"),$(document).trigger("jspanelmaximized",c));a.contentResize();$(document).trigger("jspanelunsmallified",c);$(document).trigger("jspanelstatuschange",c);
124 $.isFunction(a.option.onunsmallified)&&a.option.onunsmallified.call(a,a)}})}a.css("z-index",this.setZi(a));b&&$.isFunction(b)&&b.call(a,a);return a},toolbarAdd:function(a,b,c,e){"header"===b?(a.header.toolbar.addClass("active"),$.isArray(c)?this.configToolbar(c,a.header.toolbar,a):$.isFunction(c)?a.header.toolbar.append(c(a.header)):a.header.toolbar.append(c)):"footer"===b&&(a.content.removeClass("jsPanel-content-nofooter"),a.footer.addClass("active"),"none"===a.option.theme&&a.footer.css({background:"transparent",
125 borderTop:"none"}),$.isArray(c)?this.configToolbar(c,a.footer,a):$.isFunction(c)?a.footer.append(c(a.footer)):a.footer.append(c));this.contentResize(a);e&&$.isFunction(e)&&e.call(a,a);return a}};
126 (function(a){a.jsPanel=function(b){var c;b=b||{};var e=a.extend(!0,{},b.config||{},b),d=a(b.template||jsPanel.template),f;e.position&&a.isFunction(e.position)&&(e.position=e.position());"tooltip"===e.paneltype&&(e.paneltype={tooltip:!0});e.paneltype?"modal"===e.paneltype?d.option=a.extend(!0,{},a.jsPanel.defaults,a.jsPanel.modaldefaults,e):e.paneltype.tooltip?d.option=a.extend(!0,{},a.jsPanel.defaults,a.jsPanel.tooltipdefaults,e):"hint"===e.paneltype&&(d.option=a.extend(!0,{},a.jsPanel.defaults,a.jsPanel.hintdefaults,
127 e)):d.option=a.extend(!0,{},a.jsPanel.defaults,e);var h=d.option;b=h.autoclose;var l=h.border,e=h.callback,m=h.container,g=h.content,r=h.contentAjax,p=h.contentIframe,n=h.contentOverflow,k=h.contentSize,z=h.custom,t=h.dblclicks,w=h.draggable,x=h.footerToolbar,v=h.headerControls,u=h.headerLogo,q=h.headerRemove,J=h.headerTitle,G=h.headerToolbar,A=h.id,B=h.onwindowresize,y=h.paneltype,C=h.position,D=h.resizable,E=h.rtl,F=h.setstatus,H=h.show,I=h.theme;if(y.tooltip&&(f=jsPanel.setTrigger(C),a(f).hasClass("hasTooltip")))return!1;
128 "string"===typeof A?c=A:a.isFunction(A)&&(c=A());if(0<a("#"+c).length)return console.warn("jsPanel Error: No jsPanel created - id attribute passed with option.id already exists in document"),!1;d.attr("id",c);d.data("custom",z);d.header=a(".jsPanel-hdr",d);d.header.headerbar=a(".jsPanel-headerbar",d.header);d.header.logo=a(".jsPanel-headerlogo",d.header.headerbar);d.header.title=a(".jsPanel-title",d.header.headerbar);d.header.controls=a(".jsPanel-controlbar",d.header.headerbar);d.header.toolbar=a(".jsPanel-hdr-toolbar",
129 d.header);d.content=a(".jsPanel-content",d);d.footer=a(".jsPanel-ftr",d);d.data("status","initialized");d.cachedData={};d.close=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];return jsPanel.close.apply(jsPanel,[d].concat(b))};d.closeChildpanels=function(){return jsPanel.closeChildpanels(d)};d.contentReload=function(a){return jsPanel.contentReload(d,a)};d.contentResize=function(a){return jsPanel.contentResize(d,a)};d.front=function(a){return jsPanel.front(d,a)};d.headerControl=
130 function(a,b){return jsPanel.headerControl(d,a,b)};d.headerTitle=function(a){return jsPanel.headerTitle(d,a)};d.hideControls=function(b){var c=d.header.controls;a("div",c).css("display","block");a(b,c).css("display","none")};d.maximize=function(a){return jsPanel.maximize(d,a)};d.minimize=function(a){return jsPanel.minimize(d,a)};d.normalize=function(a){return jsPanel.normalize(d,a)};d.reposition=function(a,b){return jsPanel.reposition(d,a,b)};d.resize=function(){var b=0<arguments.length&&void 0!==
131 arguments[0]?arguments[0]:a.jsPanel.resizedefaults.width,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:a.jsPanel.resizedefaults.height,e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:a.jsPanel.resizedefaults.callback,f={},g=b;a.isPlainObject(g)?"content"===g.resize&&(String(g.height).match(/[^0-9\.]/)||(g.height+="px"),String(g.width).match(/[^0-9\.]/)||(g.width+="px"),g.height="calc("+g.height+" + "+(d.header.outerHeight()+"px")+" + "+d.css("border-top-width")+" + "+d.css("border-bottom-width")+
132 ")",g.width="calc("+g.width+" + "+d.css("border-left-width")+" + "+d.css("border-right-width")+")"):(f.width=b,f.height=c,f.callback=e,g=a.extend({},!1,a.jsPanel.resizedefaults,f));jsPanel.resize(d,g);return d};d.setTheme=function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:I.toLowerCase().replace(/ /g,""),c=arguments[1],b=b.toLowerCase().replace(/ /g,"");jsPanel.clearTheme(d);if("none"===I)return d.css("background-color","white"),d;b=jsPanel.getThemeDetails(b);b.bs?jsPanel.applyBootstrapTheme(d,
133 b):jsPanel.themes.includes(b.color)?jsPanel.applyBuiltInTheme(d,b):jsPanel.applyArbitraryTheme(d,b);l?jsPanel.applyThemeBorder(d,b):d.css({borderWidth:"",borderStyle:"",borderColor:""});c&&a.isFunction(c)&&c.call(d,d);return d};d.smallify=function(a){return jsPanel.smallify(d,a)};d.toolbarAdd=function(a,b,c){return jsPanel.toolbarAdd(d,a,b,c)};d.updateCachedData=function(){d.cachedData.top=d.css("top");d.cachedData.left=d.css("left");d.cachedData.width=d.css("width");d.cachedData.height=d.css("height")};
134 a(".jsPanel-btn-close",d).on("click",function(a){a.preventDefault();jsPanel.close(d)});a(".jsPanel-btn-minimize",d).on("click",function(a){a.preventDefault();jsPanel.minimize(d)});a(".jsPanel-btn-maximize",d).on("click",function(a){a.preventDefault();jsPanel.maximize(d)});a(".jsPanel-btn-normalize",d).on("click",function(a){a.preventDefault();jsPanel.normalize(d)});a(".jsPanel-btn-smallify, .jsPanel-btn-smallifyrev",d).on("click",function(a){a.preventDefault();jsPanel.smallify(d)});d.appendTo(a(m)[0]);
135 jsPanel.activePanels.list.push(c);a(document).trigger("jspanelloaded",c);d.data("container",m);d.setTheme();q?(d.header.remove(),d.content.addClass("jsPanel-content-noheader"),jsPanel.controls.forEach(function(a){d[0].setAttribute("data-btn"+a,"removed")})):("closeonly"===v.controls?jsPanel.controls.forEach(function(a){"close"!==a&&jsPanel.setControlStatus(d,a,"remove")}):"none"===v.controls?jsPanel.controls.forEach(function(a){jsPanel.setControlStatus(d,a,"remove")}):jsPanel.controls.forEach(function(a){"disable"===
136 v[a]?jsPanel.setControlStatus(d,a,"disable"):"remove"===v[a]?jsPanel.setControlStatus(d,a,"remove"):d[0].setAttribute("data-btn"+a,"enabled")}),u&&("string"===typeof u&&"<"!==u.substring(0,1)?d.header.logo.append('<img src="'+u+'" height="38" alt="logo">'):d.header.logo.append(u)));(q||1>a(".jsPanel-hdr").length)&&d.content.css("border","none");jsPanel.configIconfont(d);"modal"===y?(jsPanel.insertModalBackdrop(d),d.addClass("jsPanel-modal").css("z-index",jsPanel.modalcount+9999)):"hint"===y?d.addClass("jsPanel-hint").css("z-index",
137 1E4):y.tooltip&&(f=jsPanel.setTrigger(C),d.addClass("jsPanel-tooltip"),jsPanel.setTooltipClass(d),y.solo&&jsPanel.closeTooltips(),jsPanel.setTooltipMode(d,f));y.tooltip&&a(f).addClass("hasTooltip");G&&!q&&d.toolbarAdd("header",G);x&&d.toolbarAdd("footer",x);g&&(d.content.append(g),d.data("content",g));r&&("string"===typeof r&&(d.option.contentAjax={url:r,autoload:!0}),jsPanel.ajax(d));a.isPlainObject(p)&&(p.src||p.srcdoc)&&jsPanel.iframe(d);y.connector&&jsPanel.addConnector(d);"string"===typeof k&&
138 (f=k.trim().split(" "),k={width:f[0],height:f[f.length-1]});0===k.height&&(k.height="0");d.content.css({width:k.width||a.jsPanel.defaults.contentSize.width,height:k.height||a.jsPanel.defaults.contentSize.height});d.css({width:function(){return 0<a(".jsPanel-content",d).length?d.content.outerWidth()+"px":k.width||a.jsPanel.defaults.contentSize.width},zIndex:function(){jsPanel.setZi(d)}});d.content.css("width","100%");jsPanel.position(d,C);jsPanel.calcPositionFactors(d);d.data("status","normalized");
139 a(document).trigger("jspanelstatuschange",c);if(!y&&t){if(t.title)d.header.headerbar.on("dblclick",function(a){a.preventDefault();jsPanel.dblclickhelper(t.title,d)});if(t.content)d.content.on("dblclick",function(a){a.preventDefault();jsPanel.dblclickhelper(t.content,d)});if(t.footer)d.footer.on("dblclick",function(a){a.preventDefault();jsPanel.dblclickhelper(t.footer,d)})}"string"===typeof n?d.content.css("overflow",n):a.isPlainObject(n)&&d.content.css({"overflow-y":n.vertical||n["overflow-y"],"overflow-x":n.horizontal||
140 n["overflow-x"]});a.isPlainObject(w)?d.draggable(w):"disabled"===w?(a(".jsPanel-titlebar, .jsPanel-ftr",d).css("cursor","default"),d.draggable({disabled:!0})):a(".jsPanel-titlebar, .jsPanel-ftr",d).css("cursor","default");a.isPlainObject(D)?d.resizable(D):"disabled"===D&&(d.resizable({disabled:!0}),a(".ui-icon-gripsmall-diagonal-se, .ui-resizable-handle.ui-resizable-sw",d).css({"background-image":"none","text-indent":-9999}),a(".ui-resizable-handle",d).css({cursor:"inherit"}));!0===E.rtl&&(a(".jsPanel-hdr, .jsPanel-headerbar, .jsPanel-titlebar, .jsPanel-controlbar, .jsPanel-hdr-toolbar, .jsPanel-ftr",
141 d).addClass("jsPanel-rtl"),[d.header.title,d.content,a("*",d.header.toolbar),a("*",d.footer)].forEach(function(a){a.prop("dir","rtl");E.lang&&a.prop("lang",E.lang)}),a(".ui-icon-gripsmall-diagonal-se",d).css({backgroundImage:"none",textIndent:-9999}));"string"===typeof H&&d.addClass(H).css("opacity",1);d.header.title.empty().prepend(J);d.updateCachedData();"string"===typeof F&&("maximize smallify"===F?d.maximize().smallify():d[F]());"number"===typeof b&&0<b&&window.setTimeout(function(){d&&d.close()},
142 b);d.on("resize",function(){return jsPanel.contentResize(d)});d.on("resizestop",function(b,e){("smallified"===d.data("status")||"smallifiedMax"===d.data("status"))&&d.outerHeight()>e.originalSize.height&&(d.hideControls(".jsPanel-btn-normalize, .jsPanel-btn-smallifyrev"),d.data("status","normalized"),a(document).trigger("jspanelnormalized",c),a(document).trigger("jspanelstatuschange",c));jsPanel.calcPositionFactors(d)});d.on("dragstop",function(){return jsPanel.calcPositionFactors(d)});d.on("mousedown",
143 function(b){a(b.target).hasClass("jsglyph-close")||a(b.target).hasClass("jsglyph-minimize")||(b=a(b.target).closest(".jsPanel").css("z-index"),!d.hasClass("jsPanel-modal")&&b<=jsPanel.zi&&d.front())});B&&a(window).resize(function(b){if(b.target===window){var c=d.data("status");if("maximized"===c&&!a.isFunction(B))d.maximize(!1,!1);else if("normalized"===c||"smallified"===c||"maximized"===c)a.isFunction(B)?B.call(d,b,d):d.reposition({left:function(){var b;b="body"===this.option.container?(a(window).outerWidth()-
144 this.outerWidth())*this.hf:(this.parent().outerWidth()-this.outerWidth())*this.hf;return 0>=b?0:b},top:function(){var b;b="body"===this.option.container?(a(window).outerHeight()-this.outerHeight())*this.vf:(this.parent().outerHeight()-this.outerHeight())*this.vf;return 0>=b?0:b}})}});d[0].jspanel={options:d.option,close:function(){jsPanel.close(d,(0>=arguments.length?void 0:arguments[0])||!1,(1>=arguments.length?void 0:arguments[1])||!1,(2>=arguments.length?void 0:arguments[2])||!1)},normalize:function(a){return jsPanel.normalize(d,
145 a)},maximize:function(a){return jsPanel.maximize(d,a)},minimize:function(a){return jsPanel.minimize(d,a)},smallify:function(a){return jsPanel.smallify(d,a)},front:function(a){return jsPanel.front(d,a)},closeChildpanels:function(){return jsPanel.closeChildpanels(d)},reposition:function(a,b){return jsPanel.reposition(d,a,b)},resize:function(a,b,c){return d.resize(a,b,c)},contentResize:function(a){return jsPanel.contentResize(d,a)},contentReload:function(a){return jsPanel.contentReload(d,a)},headerTitle:function(a){return jsPanel.headerTitle(d,
146 a)},headerControl:function(a,b){return jsPanel.headerControl(d,a,b)},toolbarAdd:function(a,b,c){return jsPanel.toolbarAdd(d,a,b,c)},setTheme:function(a,b){return d.setTheme(a,b)},noop:function(){return d}};e&&a.isFunction(e)?e.call(d,d):a.isArray(e)&&e.forEach(function(b){a.isFunction(b)&&b.call(d,d)});return d};a.jsPanel.defaults={autoclose:!1,border:!1,callback:!1,container:"body",content:!1,contentAjax:!1,contentIframe:!1,contentOverflow:"hidden",contentSize:{width:400,height:200},custom:!1,dblclicks:!1,
147 delayClose:0,draggable:{handle:"div.jsPanel-titlebar, div.jsPanel-ftr",opacity:.8},footerToolbar:!1,headerControls:{close:!1,maximize:!1,minimize:!1,normalize:!1,smallify:!1,controls:"all",iconfont:"jsglyph"},headerLogo:!1,headerRemove:!1,headerTitle:"jsPanel",headerToolbar:!1,id:function(){return"jsPanel-"+(jsPanel.id+=1)},maximizedMargin:{top:5,right:5,bottom:5,left:5},minimizeTo:!0,onbeforeclose:!1,onbeforemaximize:!1,onbeforeminimize:!1,onbeforenormalize:!1,onbeforesmallify:!1,onbeforeunsmallify:!1,
148 onclosed:!1,onmaximized:!1,onminimized:!1,onnormalized:!1,onbeforeresize:!1,onresized:!1,onsmallified:!1,onunsmallified:!1,onfronted:!1,onwindowresize:!1,paneltype:!1,position:"center",resizable:{handles:"n, e, s, w, ne, se, sw, nw",autoHide:!1,minWidth:40,minHeight:40},rtl:!1,setstatus:!1,show:!1,template:!1,theme:"default"};a.jsPanel.modaldefaults={draggable:"disabled",headerControls:{controls:"closeonly"},position:"center",resizable:"disabled",onwindowresize:!0};a.jsPanel.tooltipdefaults={draggable:!1,
149 headerControls:{controls:"closeonly"},position:{fixed:!1},resizable:!1};a.jsPanel.hintdefaults={autoclose:8E3,draggable:!1,headerControls:{controls:"closeonly"},resizable:!1};a.jsPanel.resizedefaults={width:null,height:null,minwidth:!1,maxwidth:!1,minheight:!1,maxheight:!1,resize:!1,callback:!1};a(document).ready(function(){document.body.addEventListener("click",function(b){1>a(b.target).closest(".jsPanel").length&&!a(b.target).hasClass("hasTooltip")&&(jsPanel.closeTooltips(),a(".hasTooltip").removeClass("hasTooltip"))},
150 !1);a("body").css("-ms-overflow-style","scrollbar").append('<div id="jsPanel-replacement-container">');window.addEventListener("keydown",function(a){a=a.key||a.code;("Escape"===a||"Esc"===a)&&jsPanel.closeOnEscape&&jsPanel.activePanels.getPanel(jsPanel.getTopmostPanel()).close()},!1)})})(jQuery);