$.fn.jquery&&$.fn.uniqueId&&$.widget&&$.ui.mouse&&$.ui.draggable&&$.ui.resizable?console.log("Loaded: jQuery "+$.fn.jquery+", jQuery UI "+$.ui.version+"\nUI core: "+$.isFunction($.fn.uniqueId)+", UI widget: "+$.isFunction($.widget)+", UI mouse: "+$.isFunction($.ui.mouse)+", UI draggable: "+$.isFunction($.ui.draggable)+", UI resizable: "+$.isFunction($.ui.resizable)):console.log("Error: jQuery or at least one jQuery UI component is not loaded! You need at least jQuery 1.9.1 and jQuery UI 1.9.2 (modules Core, Mouse, Widget, Draggable and Resizable).");
var jsPanel={version:"2.6.0 2015-12-04 14:15",device:function(){try{var a=new MobileDetect(window.navigator.userAgent),c=a.mobile(),b=a.phone(),d=a.tablet(),e=a.os(),f=a.userAgent();return{mobile:c,tablet:d,phone:b,os:e,userAgent:f}}catch(h){return console.log(h+"; Seems like mobile-detect.js is not loaded"),{mobile:void 0,tablet:void 0,phone:void 0,os:void 0,userAgent:void 0}}}(),ID:0,widthForMinimized:180,template:'
',
addToolbar:function(a,c,b){"header"===c?this.configToolbar(b,a.header.toolbar,a):"footer"===c&&(a.footer.css({display:"block"}),this.configToolbar(b,a.footer,a));a.header.toolbar.css("font-family",a.header.title.css("font-family"));return a},ajax:function(a){var c=a.option.ajax,b=a.content;$.ajax(c).done(function(d,e,f){c.autoload&&c.url&&b.empty().append(d);$.isFunction(c.done)&&c.done.call(b,d,e,f,a)}).fail(function(d,e,f){$.isFunction(c.fail)&&c.fail.call(b,d,e,f,a)}).always(function(d,e,f){b.css("width",
function(){return b.outerWidth()});$.isFunction(c.always)&&c.always.call(b,d,e,f,a);jsPanel.resizeTitle(a);jsPanel.updateOptionSize(a,a.option.size)}).then(function(d,e,f){c.then&&$.isArray(c.then)&&($.isFunction(c.then[0])&&c.then[0].call(b,d,e,f,a),jsPanel.resizeTitle(a),jsPanel.updateOptionSize(a,a.option.size))},function(d,e,f){c.then&&$.isArray(c.then)&&($.isFunction(c.then[1])&&c.then[1].call(b,d,e,f,a),jsPanel.resizeTitle(a))});a.data("ajaxURL",c.url)},autoclose:function(a){window.setTimeout(function(){a&&
a.fadeOut("slow",function(){a.close()})},a.option.autoclose)},calcPanelposition:function(a){var c={};a.option.size.width=$(a).outerWidth();a.option.size.height=$(a).innerHeight();a.option.position.bottom&&delete a.option.position.top;a.option.position.right&&delete a.option.position.left;if(a.option.position.bottom||0===a.option.position.bottom)this.calcPos("bottom",a);else if(a.option.position.top||0===a.option.position.top)"center"===a.option.position.top?a.option.position.top=this.calcPosCenter(a.option).top:
c.top=this.calcPos("top",a);if(a.option.position.right||0===a.option.position.right)this.calcPos("right",a);else if(a.option.position.left||0===a.option.position.left)"center"===a.option.position.left?a.option.position.left=this.calcPosCenter(a.option).left:c.left=this.calcPos("left",a);a.option.position.top?c.top=parseInt(a.option.position.top,10)+a.option.offset.top:c.bottom=parseInt(a.option.position.bottom,10)+a.option.offset.top;a.option.position.left?c.left=parseInt(a.option.position.left,10)+
a.option.offset.left:c.right=parseInt(a.option.position.right,10)+a.option.offset.left;a.css(c);a.option.position={top:a.css("top"),left:a.css("left")}},calcPos:function(a,c){var b=c.option.position;"auto"===b[a]?c.option.position[a]=30*c.count:$.isFunction(b[a])?c.option.position[a]=b[a](c):c.option.position[a]=0===b[a]?"0":parseInt(b[a],10);"body"===c.option.selector&&("top"===a?c.option.position.top=parseInt(b.top,10)+$(window).scrollTop():"bottom"===a?c.option.position.bottom=parseInt(b.bottom,
10)-$(window).scrollTop():"left"===a?c.option.position.left=parseInt(b.left,10)+$(window).scrollLeft():"right"===a&&(c.option.position.right=parseInt(b.right,10)-$(window).scrollLeft()));return c.option.position[a]},calcPosCenter:function(a){var c=a.selector;a=a.size;var b=$(c).outerWidth()/2-parseInt(a.width,10)/2;return{top:"body"===c?$(window).outerHeight()/2-(parseInt(a.height,10)/2-$(window).scrollTop()):$(c).outerHeight()/2-parseInt(a.height,10)/2,left:b}},calcPosmaxtoScreen:function(a){var c=
a.offset();return{top:parseInt(a.css("top"))-(c.top-$(document).scrollTop())+5,left:parseInt(a.css("left"))-(c.left-$(document).scrollLeft())+5}},calcPosTooltipLeft:function(a,c){var b=a.outerWidth(),d=parseInt(a.css("margin-left")),e=c.offset.left||0,f=c.paneltype.position;return"top"===f||"bottom"===f?(b-c.size.width)/2+d+e:"left"===f?-c.size.width+d+e:"right"===f?b+d+e:!1},calcPosTooltipTop:function(a,c){var b=a.innerHeight(),d=parseInt(a.css("margin-top")),e=c.offset.top||0,f=c.paneltype.position;
return"left"===f||"right"===f?-(c.size.height/2)+b/2+d+e:"top"===f?-(c.size.height+e)+d:"bottom"===f?b+d+e:!1},calcToooltipPosition:function(a,c){return{top:this.calcPosTooltipTop(a,c),left:this.calcPosTooltipLeft(a,c)}},calcVerticalOffset:function(a){return Math.floor(a.offset().top-$(window).scrollTop())},close:function(a){var c=a.parent(),b=a.attr("id");a.trigger("jspanelbeforeclose",b);if($.isFunction(a.option.onbeforeclose)&&!1===a.option.onbeforeclose.call(a,a))return a;this.closeChildpanels(a);
c.hasClass("jsPanel-tooltip-wrapper")&&a.unwrap();a.remove();$("body").trigger("jspanelclosed",b);"modal"===a.option.paneltype.type&&$(".jsPanel-backdrop").remove();this.reposMinimized(this.widthForMinimized);"hint"===a.option.paneltype.type&&(a.hasClass("jsPanel-hint-tl")?jsPanel.reposHints("jsPanel-hint-tl",a.parentElmtTagname):a.hasClass("jsPanel-hint-tc")?jsPanel.reposHints("jsPanel-hint-tc",a.parentElmtTagname):a.hasClass("jsPanel-hint-tr")&&jsPanel.reposHints("jsPanel-hint-tr",a.parentElmtTagname));
$.isFunction(a.option.onclosed)&&a.option.onclosed.call(a,a);return c},closeallTooltips:function(){$(".jsPanel-tt").each(function(){$(this).unwrap().remove();$("body").trigger("jspanelclosed",$(this).attr("id"))})},closeChildpanels:function(a){$(".jsPanel",a).each(function(){a.trigger("jspanelbeforeclose",$(this).attr("id"));$(this).remove();$("body").trigger("jspanelclosed",$(this).attr("id"))});return a},configControls:function(a){"closeonly"===a.option.controls.buttons?($("div:not('.jsPanel-btn-close')",
a.header.controls).remove(),a.header.title.css("width","calc(100% - 30px)")):"none"===a.option.controls.buttons&&($("*",a.header.controls).remove(),a.header.title.css("width","100%"));["close","maximize","minimize","normalize","smallify"].forEach(function(c){a.option.controls[c]&&a.control("disable",c)})},configIconfont:function(a){var c="close max norm min small smallrev".split(" "),b="remove fullscreen resize-full minus chevron-up chevron-down".split(" "),d="times arrows-alt expand minus chevron-up chevron-down".split(" "),
e=a.option.controls.iconfont,f=a.header.controls;$("*",f).css("background-image","none");"bootstrap"===e?c.forEach(function(a,c){$(".jsPanel-btn-"+a,f).empty().append('')}):"font-awesome"===e&&c.forEach(function(a,b){$(".jsPanel-btn-"+a,f).empty().append('')})},configToolbar:function(a,c,b){var d;a.forEach(function(a){if("object"===typeof a&&(d=$(a.item),"string"===typeof a.btntext&&d.append(a.btntext),"string"===
typeof a.btnclass&&d.addClass(a.btnclass),c.append(d),$.isFunction(a.callback)))d.on(a.event,b,a.callback)})},control:function(a,c,b){var d=a.header.controls,e;3===arguments.length&&("disable"===arguments[1]?("close"===b?e=$(".jsPanel-btn-close",d):"maximize"===b?e=$(".jsPanel-btn-max",d):"minimize"===b?e=$(".jsPanel-btn-min",d):"normalize"===b?e=$(".jsPanel-btn-norm",d):"smallify"===b&&(e=$(".jsPanel-btn-small",d)),e.off().css({opacity:.5,cursor:"default"})):"enable"===arguments[1]&&("close"===b?
e=$(".jsPanel-btn-close",d):"maximize"===b?e=$(".jsPanel-btn-max",d):"minimize"===b?e=$(".jsPanel-btn-min",d):"normalize"===b?e=$(".jsPanel-btn-norm",d):"smallify"===b&&(e=$(".jsPanel-btn-small",d)),e.on("click",function(c){c.preventDefault();a[b]()}).css({opacity:1,cursor:"pointer"})));return a},dblclickhelper:function(a,c){if("string"===typeof a)if("maximize"===a||"normalize"===a)"normalized"===c.status||"normalized"===c.option.panelstatus?c.maximize():c.normalize();else if("minimize"===a||"smallify"===
a||"close"===a)c[a]()},exportPanels:function(){var a,c,b,d,e,f,h,l=[],k;$(".jsPanel").not(".jsPanel-tt, .jsPanel-hint, .jsPanel-modal").each(function(m,g){k={panelstatus:$(g).data("panelstatus"),id:$(g).prop("id"),title:$(".jsPanel-title",g).html(),custom:$(g).data("custom"),offset:{top:0,left:0},content:$(g).data("content")};"normalized"!==$(g).data("panelstatus")&&$(".jsPanel-btn-norm",g).trigger("click");h=$(g).data("selector");a=$(g).offset();c=$(g).position();"body"===h.toLowerCase()?(b=Math.floor(a.top-
$(window).scrollTop())+"px",d=Math.floor(a.left-$(window).scrollLeft())+"px"):(b=Math.floor(c.top)+"px",d=Math.floor(c.left)+"px");e=$(g).css("width");f=$(".jsPanel-content",g).css("height");k.size={width:e,height:f};k.position={top:b,left:d};$(g).data("loadURL")&&(k.load={},k.load.url=$(g).data("loadURL"));$(g).data("ajaxURL")&&(k.ajax={},k.ajax.url=$(g).data("ajaxURL"));if($(g).data("iframeDOC")||$(g).data("iframeSRC"))k.iframe={},$(g).data("iframeDOC")&&(k.iframe.srcdoc=$(g).data("iframeDOC")),
$(g).data("iframeSRC")&&(k.iframe.src=$(g).data("iframeSRC"));l.push(k);switch(k.panelstatus){case "minimized":$(".jsPanel-btn-min",g).trigger("click");break;case "maximized":$(".jsPanel-btn-max",g).trigger("click");break;case "smallified":$(".jsPanel-btn-small",g).trigger("click");break;case "smallifiedMax":$(".jsPanel-btn-small",g).trigger("click")}});window.localStorage.setItem("jspanels",JSON.stringify(l));return l},importPanels:function(a){var c,b,d;c=JSON.parse(localStorage.jspanels)||{};d=
a["default"]||{};c.forEach(function(c){b="string"===typeof c.custom.config?$.extend(!0,{},d,a[c.custom.config],c):$.extend(!0,{},d,c);$.jsPanel(b)})},fixPosition:function(a){var c=a.offset().top-$(window).scrollTop();a.jsPanelfixPos=function(){a.css("top",$(window).scrollTop()+c)};$(window).on("scroll",a.jsPanelfixPos)},getMargins:function(a){var c,b,d,e,f=a.option.paneltype.shiftwithin;e=$(window).outerWidth();b=$(window).outerHeight();var h=a.outerWidth(),l=a.outerHeight();f&&"body"!==f?(b=$(f).offset(),
c=a.offset(),d=$(f).outerWidth()-parseInt(a.css("width"))-(c.left-b.left),e=c.left-b.left,a=$(f).outerHeight()-(c.top-b.top)-parseInt(a.css("height")),c=c.top-b.top):(c=a.offset(),d=e-c.left-h+$(window).scrollLeft(),e=e-h-d,a=b-c.top-l+$(window).scrollTop(),c=b-l-a);return{marginTop:parseInt(c),marginRight:parseInt(d),marginBottom:parseInt(a),marginLeft:parseInt(e)}},getMaxOfArray:function(a){return Math.max.apply(null,a)},getMaxpanelshift:function(a){var c=a.outerWidth(),b=a.outerHeight(),d=parseInt(c/
2)+parseInt(a.parent().outerWidth()/2)-20;a=parseInt(b/2)+parseInt(a.parent().outerHeight()/2)-20;c=parseInt(c/2)-16;b=parseInt(b/2)-16;return{maxshiftH:d,maxshiftV:a,maxCornerH:c,maxCornerV:b}},hideControls:function(a,c){var b=c.header.controls;$("*",b).css("display","block");$(a,b).css("display","none")},hintTop:function(a){var c=0;$("."+a).each(function(){c+=$(this).outerHeight(!0)});return"jsPanel-hint-tr"===a?{top:c,right:0}:"jsPanel-hint-tl"===a?{top:c,left:0}:"jsPanel-hint-tc"===a?{top:c,left:"center"}:
{top:0,left:0}},iframe:function(a){var c=$("");a.option.iframe.srcdoc&&(c.prop("srcdoc",a.option.iframe.srcdoc),a.data("iframeDOC",a.option.iframe.srcdoc));a.option.iframe.src&&(c.prop("src",a.option.iframe.src),a.data("iframeSRC",a.option.iframe.src));"auto"===a.option.size.width||a.option.iframe.width?"string"===typeof a.option.iframe.width&&"%"===a.option.iframe.width.slice(-1)?c.prop("width",a.option.iframe.width):c.prop("width",parseInt(a.option.iframe.width)+"px"):c.prop("width",
"100%");"auto"===a.option.size.height||a.option.iframe.height?"string"===typeof a.option.iframe.height&&"%"===a.option.iframe.height.slice(-1)?c.prop("height",a.option.iframe.height):c.prop("height",parseInt(a.option.iframe.height)+"px"):c.prop("height","100%");"string"===typeof a.option.iframe.name&&c.prop("name",a.option.iframe.name);"string"===typeof a.option.iframe.id&&c.prop("id",a.option.iframe.id);a.option.iframe.seamless&&c.prop("seamless","seamless");"string"===typeof a.option.iframe.sandbox&&
c.prop("sandox",a.option.iframe.sandbox);$.isPlainObject(a.option.iframe.style)&&c.css(a.option.iframe.style);"string"===typeof a.option.iframe.classname?c.addClass(a.option.iframe.classname):$.isFunction(a.option.iframe.classname)&&c.addClass(a.option.iframe.classname());a.content.empty().append(c)},insertModalBackdrop:function(){var a='';$("body").append(a)},isBootstrapTheme:function(a){return-1<$.inArray(a,"default primary info success warning danger".split(" "))?
a:"default"},load:function(a){a.content.load(a.option.load.url,a.option.load.data||void 0,function(c,b,d){$.isFunction(a.option.load.complete)&&a.option.load.complete.call(a.content,c,b,d,a);jsPanel.resizeTitle(a);jsPanel.updateOptionSize(a,a.option.size);a.content.css("width",function(){return a.content.outerWidth()})});a.data("loadURL",a.option.load.url)},maxWithinBody:function(a){var c,b;"maximized"===a.status&&"maximized"===a.option.panelstatus||"default"===a.option.paneltype.mode||($(window).off("scroll",
a.jsPanelfixPos),"minimized"!==a.status&&"minimized"!==a.option.panelstatus||this.restoreFromMinimized(a),!0===a.option.controls.maxtoScreen?(c=this.calcPosmaxtoScreen(a),b=c.top+parseInt(a.option.maximizedMargin.top),c=c.left+parseInt(a.option.maximizedMargin.left)):(b=$(window).scrollTop()+parseInt(a.option.maximizedMargin.top),c=$(window).scrollLeft()+parseInt(a.option.maximizedMargin.left)),a.css({top:b,left:c,width:$(window).outerWidth()-parseInt(a.option.maximizedMargin.left)-parseInt(a.option.maximizedMargin.right),
height:$(window).outerHeight()-parseInt(a.option.maximizedMargin.top)-parseInt(a.option.maximizedMargin.bottom)}),(!a.option.controls.maxtoScreen||a.option.controls.maxtoScreen&&"body"===a.option.selector)&&this.fixPosition(a))},maxWithinElement:function(a){"maximized"===a.status&&"maximized"===a.option.panelstatus||"default"===a.option.paneltype.mode||("minimized"!==a.status&&"minimized"!==a.option.panelstatus||this.restoreFromMinimized(a),a.css({top:parseInt(a.option.maximizedMargin.top),left:parseInt(a.option.maximizedMargin.left),
width:parseInt(a.parent().outerWidth(),10)-parseInt(a.option.maximizedMargin.left)-parseInt(a.option.maximizedMargin.right),height:parseInt(a.parent().outerHeight(),10)-parseInt(a.option.maximizedMargin.top)-parseInt(a.option.maximizedMargin.bottom)}))},maximize:function(a){a.trigger("jspanelbeforemaximize",a.attr("id"));if($.isFunction(a.option.onbeforemaximize)&&!1===a.option.onbeforemaximize.call(a,a))return a;"body"===a.parentElmtTagname||!0===a.option.controls.maxtoScreen?this.maxWithinBody(a):
this.maxWithinElement(a);a.trigger("jspanelmaximized",a.attr("id"));a.trigger("jspanelstatechange",a.attr("id"));$.isFunction(a.option.onmaximized)&&a.option.onmaximized.call(a,a);return a},minimize:function(a){a.trigger("jspanelbeforeminimize",a.attr("id"));if($.isFunction(a.option.onbeforeminimize)&&!1===a.option.onbeforeminimize.call(a,a))return a;a.data({paneltop:parseInt(a.option.position.top),panelleft:parseInt(a.option.position.left),panelwidth:parseInt(a.option.size.width),panelheight:parseInt($(".jsPanel-content",
a).css("height"))});if("normalized"===a.status||"normalized"===a.option.panelstatus)a.option.size.width=a.outerWidth(),a.option.size.height=a.outerHeight();a.animate({opacity:0},{duration:400,complete:function(){a.animate({width:jsPanel.widthForMinimized+"px",height:"28px"},{duration:100,complete:function(){jsPanel.movetoMinified(a);jsPanel.resizeTitle(a);a.css("opacity",1)}})}});$.isFunction(a.option.onminimized)&&a.option.onminimized.call(a,a);return a},movetoMinified:function(a){0===$("#jsPanel-min-container").length&&
$("body").append('');if("minimized"!==a.status||"minimized"!==a.option.panelstatus)a.css({left:$(".jsPanel","#jsPanel-min-container").length*jsPanel.widthForMinimized,top:0,opacity:1}).appendTo("#jsPanel-min-container").resizable({disabled:!0}).draggable({disabled:!0}),a.trigger("jspanelminimized",a.attr("id")),a.trigger("jspanelstatechange",a.attr("id"))},normalize:function(a){var c;a.trigger("jspanelbeforenormalize",a.attr("id"));if($.isFunction(a.option.onbeforenormalize)&&
!1===a.option.onbeforenormalize.call(a,a))return a;$(window).off("scroll",a.jsPanelfixPos);"minimized"!==a.status&&"minimized"!==a.option.panelstatus||this.restoreFromMinimized(a);c="body"===a.parentElmtTagname?$(window).scrollTop()+a.verticalOffset:a.option.position.top;a.css({width:a.option.size.width,height:a.option.size.height,top:c,left:a.option.position.left});["resizable","draggable"].forEach(function(b){"disabled"!==a.option[b]&&(a[b]("enable"),$(".ui-icon-gripsmall-diagonal-se",a).css({"background-image":"none",
"text-indent":0}),$(".ui-resizable-handle",a).css({cursor:""}))});a.trigger("jspanelnormalized",a.attr("id"));a.trigger("jspanelstatechange",a.attr("id"));"body"===a.parentElmtTagname&&this.fixPosition(a);$.isFunction(a.option.onnormalized)&&a.option.onnormalized.call(a,a);return a},replaceCSSBottomRight:function(a){var c=a.position();a.css("bottom")&&(a.css({top:parseInt(c.top,10),bottom:""}),a.option.position.top=parseInt(c.top,10));a.css("right")&&(a.css({left:parseInt(c.left,10),right:""}),a.option.position.left=
parseInt(c.left,10))},reposHints:function(a,c){var b;b="body"===c?$(window).scrollTop():0;$("."+a).each(function(){$(this).animate({top:b});b+=$(this).outerHeight(!0)})},reposHintsScroll:function(a){var c=a.offset().top-$(window).scrollTop();$(window).scroll(function(){a.css("top",$(window).scrollTop()+c)})},reposition:function(a,c,b){b&&"string"===typeof b&&(a.option.selector=b,a.appendTo(b),a.parentElmt=$(b).first(),a.parentElmtTagname=a.parentElmt[0].tagName.toLowerCase());"tooltip"!==a.option.paneltype.type&&
"hint"!==a.option.paneltype.type&&(a.option.position=jsPanel.rewriteOPosition(c),a.css({top:"",right:"",bottom:"",left:""}),this.calcPanelposition(a),a.verticalOffset=jsPanel.calcVerticalOffset(a)||0,this.replaceCSSBottomRight(a),"body"===a.parentElmtTagname?this.fixPosition(a):$(window).off("scroll",a.jsPanelfixPos),this.updateOptionPosition(a));return a},reposMinimized:function(){$(".jsPanel","#jsPanel-min-container").each(function(a,c){$(c).animate({left:a*jsPanel.widthForMinimized})})},resize:function(a,
c,b){"minimized"!==a.option.panelstatus&&(c&&null!==c?a.css("width",c):a.css("width",a.content.css("width")),b&&null!==b&&a.css("height",b),this.resizeContent(a),this.resizeTitle(a))},resizeContent:function(a){var c;c="none"===a.footer.css("display")?a.header.outerHeight():a.header.outerHeight()+a.footer.outerHeight();a.content.css({height:a.outerHeight()-c,width:a.outerWidth()});return a},resizeTitle:function(a){var c=a.outerWidth()-$(a.header.controls).outerWidth()-15;a.header.title.css("width",
c)},restoreFromMinimized:function(a){"minimized"!==a.status&&"minimized"!==a.option.panelstatus||a.appendTo(a.option.selector);["resizable","draggable"].forEach(function(c){"disabled"!==a.option[c]&&(a[c]("enable"),$(".ui-icon-gripsmall-diagonal-se",a).css({"background-image":"none","text-indent":0}),$(".ui-resizable-handle",a).css({cursor:""}))});this.reposMinimized(jsPanel.widthForMinimized)},rewriteOPaneltype:function(a){return"modal"===a?{type:"modal",mode:"default"}:"tooltip"===a?{type:"tooltip",
position:"top"}:"hint"===a?{type:"hint"}:"modal"===a.type?{type:"modal",mode:a.mode||"default"}:"tooltip"===a.type?{type:"tooltip",mode:a.mode||!1,position:a.position||!1,shiftwithin:a.shiftwithin||"body",solo:a.solo||!1,cornerBG:a.cornerBG||!1,cornerOX:a.cornerOX||!1,cornerOY:a.cornerOY||!1}:{paneltype:!1}},rewriteOPosition:function(a){if("center"===a)return{top:"center",left:"center"};if("auto"===a)return{top:"auto",left:"auto"};if("top left"===a)return{top:"0",left:"0"};if("top center"===a)return{top:"0",
left:"center"};if("top right"===a)return{top:"0",right:"0"};if("center right"===a)return{top:"center",right:"0"};if("bottom right"===a)return{bottom:"0",right:"0"};if("bottom center"===a)return{bottom:"0",left:"center"};if("bottom left"===a)return{bottom:"0",left:"0"};if("center left"===a)return{top:"center",left:"0"};"center"===a.bottom&&(delete a.bottom,a.top="center");"center"===a.right&&(delete a.right,a.left="center");return a},rewriteOSize:function(a){"string"===typeof a&&"auto"===a&&(a={width:"auto",
height:"auto"});return a},setHintDefaults:function(a){a.option.resizable=!1;a.option.draggable=!1;a.option.removeHeader=!0;a.option.toolbarFooter=!1;a.option.show="fadeIn";a.addClass("jsPanel-hint");a.content.addClass("jsPanel-hint-content");a.option.autoclose?0>a.option.autoclose&&(a.option.autoclose=!1):a.option.autoclose=8E3;a.content.addClass("jsPanel-hint-"+a.option.theme);a.content.append('')},setModalDefaults:function(a){a.option.selector=
"body";a.option.show="fadeIn";a.addClass("jsPanel-modal");"default"===a.option.paneltype.mode&&(a.option.resizable=!1,a.option.draggable=!1,a.option.removeHeader=!1,a.option.position={top:"center",left:"center"},a.option.offset={top:0,left:0},a.option.controls.buttons="closeonly",$(".jsPanel-btn-min, .jsPanel-btn-norm, .jsPanel-btn-max, .jsPanel-btn-small, .jsPanel-btn-smallrev",a).remove(),$(a.header,a.header.title,a.footer).css("cursor","default"),$(".jsPanel-title",a).css("cursor","inherit"))},
setRTL:function(a){[a.header.title,a.content,a.header.toolbar,a.footer].forEach(function(c){c.prop("dir","rtl");a.option.rtl.lang&&c.prop("lang",a.option.rtl.lang)});a.header.title.css("text-align","right");$(".jsPanel-btn-close",a.header.controls).insertAfter($(".jsPanel-btn-min",a.header.controls));$(".jsPanel-btn-max",a.header.controls).insertAfter($(".jsPanel-btn-min",a.header.controls));$(".jsPanel-btn-small",a.header.controls).insertBefore($(".jsPanel-btn-min",a.header.controls));$(".jsPanel-btn-smallrev",
a.header.controls).insertBefore($(".jsPanel-btn-min",a.header.controls));$(".jsPanel-hdr-r",a).css({left:"0px",right:"",position:"relative","float":"left"});$(".jsPanel-hint-close",a).css("float","left");$(".jsPanel-title",a).css("float","right");$(".jsPanel-ftr",a).append('');$("button",a.footer).css("float","left")},setTooltipDefaults:function(a){a.option.position={};a.option.resizable=!1;a.option.draggable=!1;a.option.show="fadeIn";a.option.controls.buttons=
"closeonly";a.header.title.css("cursor","inherit");a.footer.css("cursor","inherit");a.addClass("jsPanel-tt")},setZi:function(a){var c,b=[];c="string"===typeof a?$(a):a;$(".jsPanel:not('.jsPanel-modal, .jsPanel-nofront')").each(function(a,e){c.attr("id")!==$(e).attr("id")&&b.push($(e).css("z-index"))});return this.getMaxOfArray(b)+1},shiftTooltipHorizontal:function(a){var c=this.getMargins(a),b,d=this.getMaxpanelshift(a),e=d.maxshiftH,d=d.maxCornerH,f=b=0;0>c.marginLeft&&0c.marginRight&&0c.marginLeft&&0c.marginRight&&0c.marginTop&&0c.marginBottom&&0c.marginTop&&0c.marginBottom&&
0a(".jsPanel-backdrop").length&&jsPanel.insertModalBackdrop();else if("tooltip"===b.option.paneltype.type){if(jsPanel.setTooltipDefaults(b),b.option.paneltype.solo&&jsPanel.closeallTooltips(),
b.option.position=jsPanel.calcToooltipPosition(b.parentElmt,b.option),b.css({top:b.option.position.top,left:b.option.position.left}),b.parentElmt.parent().hasClass("jsPanel-tooltip-wrapper")||(b.parentElmt.wrap('