!function n(s,o,a){function r(e,t){if(!o[e]){if(!s[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(l)return l(e,!0);throw(i=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",i}i=o[e]={exports:{}},s[e][0].call(i.exports,function(t){return r(s[e][1][t]||t)},i,i.exports,n,s,o,a)}return o[e].exports}for(var l="function"==typeof require&&require,t=0;t<a.length;t++)r(a[t]);return r}({1:[function(t,e,i){var n,s;n=this,s=function(t){var o,a,e,i,s,r,l,c,h,u,d,n,p,f,m,g,v,b,y,_,w,x,k,C,T,S,D,P,A,I,M,E,$,H,O,N,z,L,W,j,F,q,R,B,Y,U,K,V,X,Q,G,Z,J,tt,et,it,nt,st,ot,at,rt,lt,ct,ht,ut,dt,pt,ft,mt,gt,vt,bt,yt,_t,wt,xt,kt,Ct,Tt,St,Dt,Pt,At,It,Mt,Et,$t,Ht,Ot,Nt,zt,Lt,Wt,jt,Ft,qt,Rt,Bt,Yt,Ut,Kt,Vt,Xt,Qt,Gt,Zt,Jt,te,ee,ie,ne,se,oe,ae,re,le,ce,he,ue,de;function pe(t,e,i){return t<e&&(t=e),i<t&&(t=i),t}return de="6.1.8",(oe=t)[ue="mmenu"]&&oe[ue].version>de||(oe[ue]=function(t,e,i){return this.$menu=t,this._api=["bind","getInstance","initPanels","openPanel","closePanel","closeAllPanels","setSelected"],this.opts=e,this.conf=i,this.vars={},this.cbck={},this.mtch={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initAddons(),this._initExtensions(),this._initMenu(),this._initPanels(),this._initOpened(),this._initAnchors(),this._initMatchMedia(),"function"==typeof this.___debug&&this.___debug(),this},oe[ue].version=de,oe[ue].addons={},oe[ue].uniqueId=0,oe[ue].defaults={extensions:[],initMenu:function(){},initPanels:function(){},navbar:{add:!0,title:"Menu",titleLink:"parent"},onClick:{setSelected:!0},slidingSubmenus:!0},oe[ue].configuration={classNames:{divider:"Divider",inset:"Inset",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},oe[ue].prototype={getInstance:function(){return this},initPanels:function(t){this._initPanels(t)},openPanel:function(t,e){if(this.trigger("openPanel:before",t),t&&t.length&&(t.is("."+ae.panel)||(t=t.closest("."+ae.panel)),t.is("."+ae.panel))){var i=this;if("boolean"!=typeof e&&(e=!0),t.hasClass(ae.vertical))t.add(t.parents("."+ae.vertical)).removeClass(ae.hidden).parent("li").addClass(ae.opened),this.openPanel(t.parents("."+ae.panel).not("."+ae.vertical).first()),this.trigger("openPanel:start",t),this.trigger("openPanel:finish",t);else{if(t.hasClass(ae.opened))return;var n=this.$pnls.children("."+ae.panel),s=n.filter("."+ae.opened);if(!oe[ue].support.csstransitions)return s.addClass(ae.hidden).removeClass(ae.opened),t.removeClass(ae.hidden).addClass(ae.opened),this.trigger("openPanel:start",t),void this.trigger("openPanel:finish",t);n.not(t).removeClass(ae.subopened);for(var o=t.data(re.parent);o;)(o=o.closest("."+ae.panel)).is("."+ae.vertical)||o.addClass(ae.subopened),o=o.data(re.parent);n.removeClass(ae.highest).not(s).not(t).addClass(ae.hidden),t.removeClass(ae.hidden),this.openPanelStart=function(){s.removeClass(ae.opened),t.addClass(ae.opened),t.hasClass(ae.subopened)?(s.addClass(ae.highest),t.removeClass(ae.subopened)):(s.addClass(ae.subopened),t.addClass(ae.highest)),this.trigger("openPanel:start",t)},this.openPanelFinish=function(){s.removeClass(ae.highest).addClass(ae.hidden),t.removeClass(ae.highest),this.trigger("openPanel:finish",t)},e&&!t.hasClass(ae.noanimation)?setTimeout(function(){i.__transitionend(t,function(){i.openPanelFinish.call(i)},i.conf.transitionDuration),i.openPanelStart.call(i)},i.conf.openingInterval):(this.openPanelStart.call(this),this.openPanelFinish.call(this))}this.trigger("openPanel:after",t)}},closePanel:function(t){this.trigger("closePanel:before",t);var e=t.parent();e.hasClass(ae.vertical)&&(e.removeClass(ae.opened),this.trigger("closePanel",t)),this.trigger("closePanel:after",t)},closeAllPanels:function(t){this.trigger("closeAllPanels:before"),this.$pnls.find("."+ae.listview).children().removeClass(ae.selected).filter("."+ae.vertical).removeClass(ae.opened);var e=this.$pnls.children("."+ae.panel),e=t&&t.length?t:e.first();this.$pnls.children("."+ae.panel).not(e).removeClass(ae.subopened).removeClass(ae.opened).removeClass(ae.highest).addClass(ae.hidden),this.openPanel(e,!1),this.trigger("closeAllPanels:after")},togglePanel:function(t){var e=t.parent();e.hasClass(ae.vertical)&&this[e.hasClass(ae.opened)?"closePanel":"openPanel"](t)},setSelected:function(t){this.trigger("setSelected:before",t),this.$menu.find("."+ae.listview).children("."+ae.selected).removeClass(ae.selected),t.addClass(ae.selected),this.trigger("setSelected:after",t)},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var i=0,n=this.cbck[e].length;i<n;i++)this.cbck[e][i].apply(this,t)},matchMedia:function(t,e,i){i={yes:e,no:i};this.mtch[t]=this.mtch[t]||[],this.mtch[t].push(i)},_initAddons:function(){for(var t in this.trigger("initAddons:before"),oe[ue].addons)oe[ue].addons[t].add.call(this),oe[ue].addons[t].add=function(){};for(t in oe[ue].addons)oe[ue].addons[t].setup.call(this);this.trigger("initAddons:after")},_initExtensions:function(){this.trigger("initExtensions:before");var t,e=this;for(t in this.opts.extensions.constructor===Array&&(this.opts.extensions={all:this.opts.extensions}),this.opts.extensions)this.opts.extensions[t]=this.opts.extensions[t].length?"mm-"+this.opts.extensions[t].join(" mm-"):"",this.opts.extensions[t]&&function(t){e.matchMedia(t,function(){this.$menu.addClass(this.opts.extensions[t])},function(){this.$menu.removeClass(this.opts.extensions[t])})}(t);this.trigger("initExtensions:after")},_initMenu:function(){this.trigger("initMenu:before"),this.conf.clone&&(this.$orig=this.$menu,this.$menu=this.$orig.clone(),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){oe(this).attr("id",ae.mm(oe(this).attr("id")))})),this.opts.initMenu.call(this,this.$menu,this.$orig),this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.$pnls=oe('<div class="'+ae.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu);var t=[ae.menu];this.opts.slidingSubmenus||t.push(ae.vertical),this.$menu.addClass(t.join(" ")).parent().addClass(ae.wrapper),this.trigger("initMenu:after")},_initPanels:function(t){this.trigger("initPanels:before",t),t=t||this.$pnls.children(this.conf.panelNodetype);var e=oe(),i=this,n=function(t){t.filter(this.conf.panelNodetype).each(function(){var t=i._initPanel(oe(this));t&&(i._initNavbar(t),i._initListview(t),e=e.add(t),(t=t.children("."+ae.listview).children("li").children(i.conf.panelNodeType).add(t.children("."+i.conf.classNames.panel))).length&&n.call(i,t))})};n.call(this,t),this.opts.initPanels.call(this,e),this.trigger("initPanels:after",e)},_initPanel:function(t){if(this.trigger("initPanel:before",t),t.hasClass(ae.panel))return t;if(this.__refactorClass(t,this.conf.classNames.panel,"panel"),this.__refactorClass(t,this.conf.classNames.nopanel,"nopanel"),this.__refactorClass(t,this.conf.classNames.vertical,"vertical"),this.__refactorClass(t,this.conf.classNames.inset,"inset"),t.filter("."+ae.inset).addClass(ae.nopanel),t.hasClass(ae.nopanel))return!1;var e=t.hasClass(ae.vertical)||!this.opts.slidingSubmenus;t.removeClass(ae.vertical);var i=t.attr("id")||this.__getUniqueId();t.removeAttr("id"),t.is("ul, ol")&&(t.wrap("<div />"),t=t.parent()),t.addClass(ae.panel+" "+ae.hidden).attr("id",i);i=t.parent("li");return e?t.add(i).addClass(ae.vertical):t.appendTo(this.$pnls),i.length&&(i.data(re.child,t),t.data(re.parent,i)),this.trigger("initPanel:after",t),t},_initNavbar:function(t){if(this.trigger("initNavbar:before",t),!t.children("."+ae.navbar).length){var e=t.data(re.parent),i=oe('<div class="'+ae.navbar+'" />'),n=oe[ue].i18n(this.opts.navbar.title),s="";if(e&&e.length){if(e.hasClass(ae.vertical))return;var o,a=(e=(o=(o=e.parent().is("."+ae.listview)?e.children("a, span").not("."+ae.next):e.closest("."+ae.panel).find('a[href="#'+t.attr("id")+'"]')).first()).closest("."+ae.panel)).attr("id"),n=o.text();switch(this.opts.navbar.titleLink){case"anchor":s=o.attr("href");break;case"parent":s="#"+a}i.append('<a class="'+ae.btn+" "+ae.prev+'" href="#'+a+'" />')}else if(!this.opts.navbar.title)return;this.opts.navbar.add&&t.addClass(ae.hasnavbar),i.append('<a class="'+ae.title+'"'+(s.length?' href="'+s+'"':"")+">"+n+"</a>").prependTo(t),this.trigger("initNavbar:after",t)}},_initListview:function(t){this.trigger("initListview:before",t);var e=this.__childAddBack(t,"ul, ol");this.__refactorClass(e,this.conf.classNames.nolistview,"nolistview"),e.filter("."+this.conf.classNames.inset).addClass(ae.nolistview);var i=e.not("."+ae.nolistview).addClass(ae.listview).children();this.__refactorClass(i,this.conf.classNames.selected,"selected"),this.__refactorClass(i,this.conf.classNames.divider,"divider"),this.__refactorClass(i,this.conf.classNames.spacer,"spacer");e=t.data(re.parent);e&&e.parent().is("."+ae.listview)&&!e.children("."+ae.next).length&&(i=e.children("a, span").first(),e=oe('<a class="'+ae.next+'" href="#'+t.attr("id")+'" />').insertBefore(i),i.is("span")&&e.addClass(ae.fullsubopen)),this.trigger("initListview:after",t)},_initOpened:function(){this.trigger("initOpened:before");var t=this.$pnls.find("."+ae.listview).children("."+ae.selected).removeClass(ae.selected).last().addClass(ae.selected),t=t.length?t.closest("."+ae.panel):this.$pnls.children("."+ae.panel).first();this.openPanel(t,!1),this.trigger("initOpened:after")},_initAnchors:function(){var l=this;ce.$body.on(le.click+"-oncanvas","a[href]",function(t){var e,i=oe(this),n=!1,s=l.$menu.find(i).length;for(e in oe[ue].addons)if(oe[ue].addons[e].clickAnchor.call(l,i,s)){n=!0;break}var o,a=i.attr("href");if(!n&&s&&1<a.length&&"#"==a.slice(0,1))try{var r=oe(a,l.$menu);r.is("."+ae.panel)&&(n=!0,l[i.parent().hasClass(ae.vertical)?"togglePanel":"openPanel"](r))}catch(t){}n&&t.preventDefault(),n||!s||!i.is("."+ae.listview+" > li > a")||i.is('[rel="external"]')||i.is('[target="_blank"]')||(l.__valueOrFn(l.opts.onClick.setSelected,i)&&l.setSelected(oe(t.target).parent()),(o=l.__valueOrFn(l.opts.onClick.preventDefault,i,"#"==a.slice(0,1)))&&t.preventDefault(),l.__valueOrFn(l.opts.onClick.close,i,o)&&l.opts.offCanvas&&"function"==typeof l.close&&l.close())})},_initMatchMedia:function(){var e=this;this._fireMatchMedia(),ce.$wndw.on(le.resize,function(t){e._fireMatchMedia()})},_fireMatchMedia:function(){for(var t in this.mtch)for(var e=window.matchMedia&&window.matchMedia(t).matches?"yes":"no",i=0;i<this.mtch[t].length;i++)this.mtch[t][i][e].call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return this.conf.clone&&t&&t.length&&(t=ae.umm(t)),t},__api:function(){var i=this,n={};return oe.each(this._api,function(t){var e=this;n[e]=function(){var t=i[e].apply(i,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,i){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==i?i:t},__refactorClass:function(t,e,i){return t.filter("."+e).removeClass(e).addClass(ae[i])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__childAddBack:function(t,e){return t.children(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+ae.divider).not("."+ae.hidden)},__filterListItemAnchors:function(t){return this.__filterListItems(t).children("a").not("."+ae.next)},__transitionend:function(e,i,t){function n(t){void 0!==t&&t.target!=e[0]||(s||(e.off(le.transitionend),e.off(le.webkitTransitionEnd),i.call(e[0])),s=!0)}var s=!1;e.on(le.transitionend,n),e.on(le.webkitTransitionEnd,n),setTimeout(n,1.1*t)},__getUniqueId:function(){return ae.mm(oe[ue].uniqueId++)}},oe.fn[ue]=function(e,i){oe[ue].glbl||(ce={$wndw:oe(window),$docu:oe(document),$html:oe("html"),$body:oe("body")},ae={},re={},le={},oe.each([ae,re,le],function(t,n){n.add=function(t){for(var e=0,i=(t=t.split(" ")).length;e<i;e++)n[t[e]]=n.mm(t[e])}}),ae.mm=function(t){return"mm-"+t},ae.add("wrapper menu panels panel nopanel highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen noanimation"),ae.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.slice(3)),t},re.mm=function(t){return"mm-"+t},re.add("parent child"),le.mm=function(t){return t+".mm"},le.add("transitionend webkitTransitionEnd click scroll resize keydown mousedown mouseup touchstart touchmove touchend orientationchange"),oe[ue]._c=ae,oe[ue]._d=re,oe[ue]._e=le,oe[ue].glbl=ce),e=oe.extend(!0,{},oe[ue].defaults,e),i=oe.extend(!0,{},oe[ue].configuration,i);var n=oe();return this.each(function(){var t=oe(this);t.data(ue)||((t=new oe[ue](t,e,i)).$menu.data(ue,t.__api()),n=n.add(t.$menu))}),n},oe[ue].i18n=(he={},function(t){switch(typeof t){case"object":return oe.extend(he,t),he;case"string":return he[t]||t;case"undefined":default:return he}}),oe[ue].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:"undefined"==typeof Modernizr||void 0===Modernizr.csstransitions||Modernizr.csstransitions,csstransforms:"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms||Modernizr.csstransforms,csstransforms3d:"undefined"==typeof Modernizr||void 0===Modernizr.csstransforms3d||Modernizr.csstransforms3d}),se="offCanvas",(Zt=t)[ne="mmenu"].addons[se]={setup:function(){var n,t,s,o;this.opts[se]&&(t=(n=this).opts[se],s=this.conf[se],ie=Zt[ne].glbl,this._api=Zt.merge(this._api,["open","close","setPage"]),"object"!=typeof t&&(t={}),"top"!=t.position&&"bottom"!=t.position||(t.zposition="front"),t=this.opts[se]=Zt.extend(!0,{},Zt[ne].defaults[se],t),"string"!=typeof s.pageSelector&&(s.pageSelector="> "+s.pageNodetype),this.vars.opened=!1,o=[Jt.offcanvas],"left"!=t.position&&o.push(Jt.mm(t.position)),"back"!=t.zposition&&o.push(Jt.mm(t.zposition)),Zt[ne].support.csstransforms||o.push(Jt["no-csstransforms"]),Zt[ne].support.csstransforms3d||o.push(Jt["no-csstransforms3d"]),this.bind("initMenu:after",function(){var t=this;this.setPage(ie.$page),this._initBlocker(),this["_initWindow_"+se](),this.$menu.addClass(o.join(" ")).parent("."+Jt.wrapper).removeClass(Jt.wrapper),this.$menu[s.menuInsertMethod](s.menuInsertSelector);var e,i=window.location.hash;!i||(e=this._getOriginalMenuId())&&e==i.slice(1)&&setTimeout(function(){t.open()},1e3)}),this.bind("initExtensions:after",function(){for(var e=[Jt.mm("widescreen"),Jt.mm("iconbar")],t=0;t<e.length;t++)for(var i in this.opts.extensions)if(-1<this.opts.extensions[i].indexOf(e[t])){!function(t){n.matchMedia(i,function(){ie.$html.addClass(e[t])},function(){ie.$html.removeClass(e[t])})}(t);break}}),this.bind("open:start:sr-aria",function(){this.__sr_aria(this.$menu,"hidden",!1)}),this.bind("close:finish:sr-aria",function(){this.__sr_aria(this.$menu,"hidden",!0)}),this.bind("initMenu:after:sr-aria",function(){this.__sr_aria(this.$menu,"hidden",!0)}))},add:function(){Jt=Zt[ne]._c,te=Zt[ne]._d,ee=Zt[ne]._e,Jt.add("offcanvas slideout blocking modal background opening blocker page no-csstransforms3d"),te.add("style")},clickAnchor:function(t,e){var i=this;if(this.opts[se]){var n=this._getOriginalMenuId();if(n&&t.is('[href="#'+n+'"]')){if(e)return!0;var s=t.closest("."+Jt.menu);if(s.length){e=s.data("mmenu");if(e&&e.close)return e.close(),i.__transitionend(s,function(){i.open()},i.conf.transitionDuration),!0}return this.open(),!0}if(ie.$page)return(n=ie.$page.first().attr("id"))&&t.is('[href="#'+n+'"]')?(this.close(),!0):void 0}}},Zt[ne].defaults[se]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},Zt[ne].configuration[se]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuInsertMethod:"prependTo",menuInsertSelector:"body"},Zt[ne].prototype.open=function(){var t;this.trigger("open:before"),this.vars.opened||((t=this)._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open:after"))},Zt[ne].prototype._openSetup=function(){var t=this,e=this.opts[se];this.closeAllOthers(),ie.$page.each(function(){Zt(this).data(te.style,Zt(this).attr("style")||"")}),ie.$wndw.trigger(ee.resize+"-"+se,[!0]);var i=[Jt.opened];e.blockUI&&i.push(Jt.blocking),"modal"==e.blockUI&&i.push(Jt.modal),e.moveBackground&&i.push(Jt.background),"left"!=e.position&&i.push(Jt.mm(this.opts[se].position)),"back"!=e.zposition&&i.push(Jt.mm(this.opts[se].zposition)),ie.$html.addClass(i.join(" ")),setTimeout(function(){t.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(Jt.opened)},Zt[ne].prototype._openFinish=function(){var t=this;this.__transitionend(ie.$page.first(),function(){t.trigger("open:finish")},this.conf.transitionDuration),this.trigger("open:start"),ie.$html.addClass(Jt.opening)},Zt[ne].prototype.close=function(){var e;this.trigger("close:before"),this.vars.opened&&((e=this).__transitionend(ie.$page.first(),function(){e.$menu.removeClass(Jt.opened);var t=[Jt.opened,Jt.blocking,Jt.modal,Jt.background,Jt.mm(e.opts[se].position),Jt.mm(e.opts[se].zposition)];ie.$html.removeClass(t.join(" ")),ie.$page.each(function(){Zt(this).attr("style",Zt(this).data(te.style))}),e.vars.opened=!1,e.trigger("close:finish")},this.conf.transitionDuration),this.trigger("close:start"),ie.$html.removeClass(Jt.opening),this.trigger("close:after"))},Zt[ne].prototype.closeAllOthers=function(){ie.$body.find("."+Jt.menu+"."+Jt.offcanvas).not(this.$menu).each(function(){var t=Zt(this).data(ne);t&&t.close&&t.close()})},Zt[ne].prototype.setPage=function(t){this.trigger("setPage:before",t);var e=this,i=this.conf[se];t&&t.length||(t=ie.$body.find(i.pageSelector),i.noPageSelector.length&&(t=t.not(i.noPageSelector.join(", "))),1<t.length&&i.wrapPageIfNeeded&&(t=t.wrapAll("<"+this.conf[se].pageNodetype+" />").parent())),t.each(function(){Zt(this).attr("id",Zt(this).attr("id")||e.__getUniqueId())}),t.addClass(Jt.page+" "+Jt.slideout),ie.$page=t,this.trigger("setPage:after",t)},Zt[ne].prototype["_initWindow_"+se]=function(){ie.$wndw.off(ee.keydown+"-"+se).on(ee.keydown+"-"+se,function(t){if(ie.$html.hasClass(Jt.opened)&&9==t.keyCode)return t.preventDefault(),!1});var n=0;ie.$wndw.off(ee.resize+"-"+se).on(ee.resize+"-"+se,function(t,e){var i;1==ie.$page.length&&(e||ie.$html.hasClass(Jt.opened))&&(i=ie.$wndw.height(),!e&&i==n||(n=i,ie.$page.css("minHeight",i)))})},Zt[ne].prototype._initBlocker=function(){var e=this;this.opts[se].blockUI&&(ie.$blck||(ie.$blck=Zt('<div id="'+Jt.blocker+'" class="'+Jt.slideout+'" />')),ie.$blck.appendTo(ie.$body).off(ee.touchstart+"-"+se+" "+ee.touchmove+"-"+se).on(ee.touchstart+"-"+se+" "+ee.touchmove+"-"+se,function(t){t.preventDefault(),t.stopPropagation(),ie.$blck.trigger(ee.mousedown+"-"+se)}).off(ee.mousedown+"-"+se).on(ee.mousedown+"-"+se,function(t){t.preventDefault(),ie.$html.hasClass(Jt.modal)||(e.closeAllOthers(),e.close())}))},Gt="scrollBugFix",(Ut=t)[Qt="mmenu"].addons[Gt]={setup:function(){var t=this.opts[Gt];this.conf[Gt],Xt=Ut[Qt].glbl,Ut[Qt].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof t&&(t={fix:t}),"object"!=typeof t&&(t={}),(t=this.opts[Gt]=Ut.extend(!0,{},Ut[Qt].defaults[Gt],t)).fix&&(this.bind("open:start",function(){this.$pnls.children("."+Kt.opened).scrollTop(0)}),this.bind("initMenu:after",function(){this["_initWindow_"+Gt]()})))},add:function(){Kt=Ut[Qt]._c,Ut[Qt]._d,Vt=Ut[Qt]._e},clickAnchor:function(t,e){}},Ut[Qt].defaults[Gt]={fix:!0},Ut[Qt].prototype["_initWindow_"+Gt]=function(){var t=this;Xt.$docu.off(Vt.touchmove+"-"+Gt).on(Vt.touchmove+"-"+Gt,function(t){Xt.$html.hasClass(Kt.opened)&&t.preventDefault()});var e=!1;Xt.$body.off(Vt.touchstart+"-"+Gt).on(Vt.touchstart+"-"+Gt,"."+Kt.panels+"> ."+Kt.panel,function(t){Xt.$html.hasClass(Kt.opened)&&(e||(e=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&--t.currentTarget.scrollTop,e=!1))}).off(Vt.touchmove+"-"+Gt).on(Vt.touchmove+"-"+Gt,"."+Kt.panels+"> ."+Kt.panel,function(t){Xt.$html.hasClass(Kt.opened)&&Ut(this)[0].scrollHeight>Ut(this).innerHeight()&&t.stopPropagation()}),Xt.$wndw.off(Vt.orientationchange+"-"+Gt).on(Vt.orientationchange+"-"+Gt,function(){t.$pnls.children("."+Kt.opened).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})},Yt="screenReader",(Ft=t)[Bt="mmenu"].addons[Yt]={setup:function(){var n=this,t=this.opts[Yt],s=this.conf[Yt];Ft[Bt].glbl,"boolean"==typeof t&&(t={aria:t,text:t}),"object"!=typeof t&&(t={}),(t=this.opts[Yt]=Ft.extend(!0,{},Ft[Bt].defaults[Yt],t)).aria&&(this.bind("initAddons:after",function(){this.bind("initMenu:after",function(){this.trigger("initMenu:after:sr-aria")}),this.bind("initNavbar:after",function(){this.trigger("initNavbar:after:sr-aria",arguments[0])}),this.bind("openPanel:start",function(){this.trigger("openPanel:start:sr-aria",arguments[0])}),this.bind("close:start",function(){this.trigger("close:start:sr-aria")}),this.bind("close:finish",function(){this.trigger("close:finish:sr-aria")}),this.bind("open:start",function(){this.trigger("open:start:sr-aria")}),this.bind("open:finish",function(){this.trigger("open:finish:sr-aria")})}),this.bind("updateListview",function(){this.$pnls.find("."+qt.listview).children().each(function(){n.__sr_aria(Ft(this),"hidden",Ft(this).is("."+qt.hidden))})}),this.bind("openPanel:start",function(t){var e=this.$menu.find("."+qt.panel).not(t).not(t.parents("."+qt.panel)),t=t.add(t.find("."+qt.vertical+"."+qt.opened).children("."+qt.panel));this.__sr_aria(e,"hidden",!0),this.__sr_aria(t,"hidden",!1)}),this.bind("closePanel",function(t){this.__sr_aria(t,"hidden",!0)}),this.bind("initPanels:after",function(t){t=t.find("."+qt.prev+", ."+qt.next).each(function(){n.__sr_aria(Ft(this),"owns",Ft(this).attr("href").replace("#",""))});this.__sr_aria(t,"haspopup",!0)}),this.bind("initNavbar:after",function(t){var e=t.children("."+qt.navbar);this.__sr_aria(e,"hidden",!t.hasClass(qt.hasnavbar))}),t.text&&(this.bind("initlistview:after",function(t){t=t.find("."+qt.listview).find("."+qt.fullsubopen).parent().children("span");this.__sr_aria(t,"hidden",!0)}),"parent"==this.opts.navbar.titleLink&&this.bind("initNavbar:after",function(t){var e=t.children("."+qt.navbar),t=!!e.children("."+qt.prev).length;this.__sr_aria(e.children("."+qt.title),"hidden",t)}))),t.text&&(this.bind("initAddons:after",function(){this.bind("setPage:after",function(){this.trigger("setPage:after:sr-text",arguments[0])})}),this.bind("initNavbar:after",function(t){var e=t.children("."+qt.navbar),i=e.children("."+qt.title).text(),t=Ft[Bt].i18n(s.text.closeSubmenu);i&&(t+=" ("+i+")"),e.children("."+qt.prev).html(this.__sr_text(t))}),this.bind("initListview:after",function(t){var e,i=t.data(Rt.parent);i&&i.length&&(t=(e=i.children("."+qt.next)).nextAll("span, a").first().text(),i=Ft[Bt].i18n(s.text[e.parent().is("."+qt.vertical)?"toggleSubmenu":"openSubmenu"]),t&&(i+=" ("+t+")"),e.html(n.__sr_text(i)))}))},add:function(){qt=Ft[Bt]._c,Rt=Ft[Bt]._d,Ft[Bt]._e,qt.add("sronly")},clickAnchor:function(t,e){}},Ft[Bt].defaults[Yt]={aria:!0,text:!0},Ft[Bt].configuration[Yt]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}},Ft[Bt].prototype.__sr_aria=function(t,e,i){t.prop("aria-"+e,i)[i?"attr":"removeAttr"]("aria-"+e,i)},Ft[Bt].prototype.__sr_text=function(t){return'<span class="'+qt.sronly+'">'+t+"</span>"},jt="autoHeight",(Nt=t)[Wt="mmenu"].addons[jt]={setup:function(){var t,s=this.opts[jt];this.conf[jt],Nt[Wt].glbl,"boolean"==typeof s&&s&&(s={height:"auto"}),"string"==typeof s&&(s={height:s}),"object"!=typeof s&&(s={}),"auto"!=(s=this.opts[jt]=Nt.extend(!0,{},Nt[Wt].defaults[jt],s)).height&&"highest"!=s.height||(this.bind("initMenu:after",function(){this.$menu.addClass(zt.autoheight)}),t=function(t){var e,i,n;this.opts.offCanvas&&!this.vars.opened||(e=Math.max(parseInt(this.$pnls.css("top"),10),0)||0,i=Math.max(parseInt(this.$pnls.css("bottom"),10),0)||0,n=0,this.$menu.addClass(zt.measureheight),"auto"==s.height?((t=t||this.$pnls.children("."+zt.opened)).is("."+zt.vertical)&&(t=t.parents("."+zt.panel).not("."+zt.vertical)),t.length||(t=this.$pnls.children("."+zt.panel)),n=t.first().outerHeight()):"highest"==s.height&&this.$pnls.children().each(function(){var t=Nt(this);t.is("."+zt.vertical)&&(t=t.parents("."+zt.panel).not("."+zt.vertical).first()),n=Math.max(n,t.outerHeight())}),this.$menu.height(n+e+i).removeClass(zt.measureheight))},this.opts.offCanvas&&this.bind("open:start",t),"highest"==s.height&&this.bind("initPanels:after",t),"auto"==s.height&&(this.bind("updateListview",t),this.bind("openPanel:start",t),this.bind("closePanel",t)))},add:function(){zt=Nt[Wt]._c,Nt[Wt]._d,Lt=Nt[Wt]._e,zt.add("autoheight measureheight"),Lt.add("resize")},clickAnchor:function(t,e){}},Nt[Wt].defaults[jt]={height:"default"},Ot="backButton",(Mt=t)[Ht="mmenu"].addons[Ot]={setup:function(){var e,t,i;this.opts.offCanvas&&(t=(e=this).opts[Ot],this.conf[Ot],$t=Mt[Ht].glbl,"boolean"==typeof t&&(t={close:t}),"object"!=typeof t&&(t={}),(t=Mt.extend(!0,{},Mt[Ht].defaults[Ot],t)).close&&(i="#"+e.$menu.attr("id"),this.bind("open:finish",function(t){location.hash!=i&&history.pushState(null,document.title,i)}),Mt(window).on("popstate",function(t){$t.$html.hasClass(Et.opened)?(t.stopPropagation(),e.close()):location.hash==i&&(t.stopPropagation(),e.open())})))},add:function(){return window.history&&window.history.pushState?(Et=Mt[Ht]._c,Mt[Ht]._d,void Mt[Ht]._e):void(Mt[Ht].addons[Ot].setup=function(){})},clickAnchor:function(t,e){}},Mt[Ht].defaults[Ot]={close:!1},It="counters",(St=t)[At="mmenu"].addons[It]={setup:function(){var t,i=this,e=this.opts[It];this.conf[It],St[At].glbl,"boolean"==typeof e&&(e={add:e,update:e}),"object"!=typeof e&&(e={}),e=this.opts[It]=St.extend(!0,{},St[At].defaults[It],e),this.bind("initListview:after",function(t){this.__refactorClass(St("em",t),this.conf.classNames[It].counter,"counter")}),e.add&&this.bind("initListview:after",function(t){t="panels"===e.addTo?t:t.filter(e.addTo);t.each(function(){var t=St(this).data(Pt.parent);t&&(t.children("em."+Dt.counter).length||t.prepend(St('<em class="'+Dt.counter+'" />')))})}),e.update&&(t=function(t){(t=t||this.$pnls.children("."+Dt.panel)).each(function(){var t=St(this),e=t.data(Pt.parent);e&&(!(e=e.children("em."+Dt.counter)).length||(t=t.children("."+Dt.listview)).length&&e.html(i.__filterListItems(t.children()).length))})},this.bind("initListview:after",t),this.bind("updateListview",t))},add:function(){Dt=St[At]._c,Pt=St[At]._d,St[At]._e,Dt.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},St[At].defaults[It]={add:!1,addTo:"panels",count:!1},St[At].configuration.classNames[It]={counter:"Counter"},Tt="columns",(wt=t)[Ct="mmenu"].addons[Tt]={setup:function(){var i=this.opts[Tt];if(this.conf[Tt],kt=wt[Ct].glbl,"boolean"==typeof i&&(i={add:i}),"number"==typeof i&&(i={add:!0,visible:i}),"object"!=typeof i&&(i={}),"number"==typeof i.visible&&(i.visible={min:i.visible,max:i.visible}),(i=this.opts[Tt]=wt.extend(!0,{},wt[Ct].defaults[Tt],i)).add){i.visible.min=Math.max(1,Math.min(6,i.visible.min)),i.visible.max=Math.max(i.visible.min,Math.min(6,i.visible.max));for(var n=this.opts.offCanvas?this.$menu.add(kt.$html):this.$menu,s="",t=0;t<=i.visible.max;t++)s+=" "+xt.columns+"-"+t;s.length&&(s=s.slice(1));this.bind("initMenu:after",function(){this.$menu.addClass(xt.columns)}),this.bind("openPanel:start",function(t){var e=this.$pnls.children("."+xt.subopened).length;t&&!t.hasClass(xt.subopened)&&e++,e=Math.min(i.visible.max,Math.max(i.visible.min,e)),n.removeClass(s).addClass(xt.columns+"-"+e)}),this.bind("openPanel:start",function(t){t=t||this.$pnls.children("."+xt.opened),this.$pnls.children("."+xt.panel).removeClass(s).filter("."+xt.subopened).add(t).slice(-i.visible.max).each(function(t){wt(this).addClass(xt.columns+"-"+t)})})}},add:function(){xt=wt[Ct]._c,wt[Ct]._d,wt[Ct]._e,xt.add("columns")},clickAnchor:function(t,e){if(!this.opts[Tt].add)return!1;if(e){var i=t.attr("href");if(1<i.length&&"#"==i.slice(0,1))try{if(wt(i,this.$menu).is("."+xt.panel))for(var n=parseInt(t.closest("."+xt.panel).attr("class").split(xt.columns+"-")[1].split(" ")[0],10)+1;0<n;){var s=this.$pnls.children("."+xt.columns+"-"+n);if(!s.length){n=-1;break}n++,s.removeClass(xt.subopened).removeClass(xt.opened).removeClass(xt.highest).addClass(xt.hidden)}}catch(t){}}}},wt[Ct].defaults[Tt]={add:!1,visible:{min:1,max:3}},_t="dividers",(gt=t)[yt="mmenu"].addons[_t]={setup:function(){var i,n=this,e=this.opts[_t];this.conf[_t],gt[yt].glbl,"boolean"==typeof e&&(e={add:e,fixed:e}),"object"!=typeof e&&(e={}),e=this.opts[_t]=gt.extend(!0,{},gt[yt].defaults[_t],e),this.bind("initListview:after",function(t){this.__refactorClass(t.find("li"),this.conf.classNames[_t].collapsed,"collapsed")}),e.add&&this.bind("initListview:after",function(t){t="panels"===e.addTo?t:t.filter(e.addTo);t.length&&t.find("."+vt.listview).find("."+vt.divider).remove().end().each(function(){var e="";n.__filterListItems(gt(this).children()).each(function(){var t=gt.trim(gt(this).children("a, span").text()).slice(0,1).toLowerCase();t!=e&&t.length&&(e=t,gt('<li class="'+vt.divider+'">'+t+"</li>").insertBefore(this))})})}),e.collapse&&this.bind("initListview:after",function(t){t.find("."+vt.divider).each(function(){var t=gt(this);t.nextUntil("."+vt.divider,"."+vt.collapsed).length&&(t.children("."+vt.next).length||(t.wrapInner("<span />"),t.prepend('<a href="#" class="'+vt.next+" "+vt.fullsubopen+'" />')))})}),e.fixed&&(this.bind("initPanels:after",function(){void 0===this.$fixeddivider&&(this.$fixeddivider=gt('<ul class="'+vt.listview+" "+vt.fixeddivider+'"><li class="'+vt.divider+'"></li></ul>').prependTo(this.$pnls).children())}),i=function(t){var e,i,n;(t=t||this.$pnls.children("."+vt.opened)).is(":hidden")||(e=t.children("."+vt.listview).children("."+vt.divider).not("."+vt.hidden),i=t.scrollTop()||0,n="",e.each(function(){gt(this).position().top+i<i+1&&(n=gt(this).text())}),this.$fixeddivider.text(n),this.$pnls[n.length?"addClass":"removeClass"](vt.hasdividers))},this.bind("open:start",i),this.bind("openPanel:start",i),this.bind("updateListview",i),this.bind("initPanel:after",function(e){e.off(bt.scroll+"-"+_t+" "+bt.touchmove+"-"+_t).on(bt.scroll+"-"+_t+" "+bt.touchmove+"-"+_t,function(t){i.call(n,e)})}))},add:function(){vt=gt[yt]._c,gt[yt]._d,bt=gt[yt]._e,vt.add("collapsed uncollapsed fixeddivider hasdividers"),bt.add("scroll")},clickAnchor:function(t,e){if(this.opts[_t].collapse&&e){e=t.parent();if(e.is("."+vt.divider)){t=e.nextUntil("."+vt.divider,"."+vt.collapsed);return e.toggleClass(vt.opened),t[e.hasClass(vt.opened)?"addClass":"removeClass"](vt.uncollapsed),!0}}return!1}},gt[yt].defaults[_t]={add:!1,addTo:"panels",fixed:!1,collapse:!1},gt[yt].configuration.classNames[_t]={collapsed:"Collapsed"},mt="drag",(ht=t)[ft="mmenu"].addons[mt]={setup:function(){var e,i;this.opts.offCanvas&&(e=this.opts[mt],i=this.conf[mt],pt=ht[ft].glbl,"boolean"==typeof e&&(e={menu:e,panels:e}),"object"!=typeof e&&(e={}),"boolean"==typeof e.menu&&(e.menu={open:e.menu}),"object"!=typeof e.menu&&(e.menu={}),"boolean"==typeof e.panels&&(e.panels={close:e.panels}),"object"!=typeof e.panels&&(e.panels={}),(e=this.opts[mt]=ht.extend(!0,{},ht[ft].defaults[mt],e)).menu.open&&this.bind("setPage:after",function(){(function(e,i,n){var s,o=this,a={events:"panleft panright",typeLower:"x",typeUpper:"X",open_dir:"right",close_dir:"left",negative:!1},r="width",l=a.open_dir,c=function(t){t<=e.maxStartPos&&(u=1)},h=function(){return ht("."+ut.slideout)},u=0,d=0,p=0;switch(this.opts.offCanvas.position){case"top":case"bottom":a.events="panup pandown",a.typeLower="y",a.typeUpper="Y",r="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":a.negative=!0,c=function(t){t>=n.$wndw[r]()-e.maxStartPos&&(u=1)}}switch(this.opts.offCanvas.position){case"left":break;case"right":a.open_dir="left",a.close_dir="right";break;case"top":a.open_dir="down",a.close_dir="up";break;case"bottom":a.open_dir="up",a.close_dir="down"}"front"===this.opts.offCanvas.zposition&&(h=function(){return this.$menu});var t=this.__valueOrFn(e.node,this.$menu,n.$page);"string"==typeof t&&(t=ht(t)),(t=new Hammer(t[0],this.opts[mt].vendors.hammer)).on("panstart",function(t){c(t.center[a.typeLower]),n.$slideOutNodes=h(),l=a.open_dir}),t.on(a.events+" panend",function(t){0<u&&t.preventDefault()}),t.on(a.events,function(t){if(s=t["delta"+a.typeUpper],a.negative&&(s=-s),s!=d&&(l=d<=s?a.open_dir:a.close_dir),(d=s)>e.threshold&&1==u){if(n.$html.hasClass(ut.opened))return;u=2,o._openSetup(),o.trigger("open:start"),n.$html.addClass(ut.dragging),p=pe(n.$wndw[r]()*i[r].perc,i[r].min,i[r].max)}2==u&&(s=pe(d,10,p)-("front"==o.opts.offCanvas.zposition?p:0),a.negative&&(s=-s),s="translate"+a.typeUpper+"("+s+"px )",n.$slideOutNodes.css({"-webkit-transform":"-webkit-"+s,transform:s}))}),t.on("panend",function(t){2==u&&(n.$html.removeClass(ut.dragging),n.$slideOutNodes.css("transform",""),o[l==a.open_dir?"_openFinish":"close"]()),u=0})}).call(this,e.menu,i.menu,pt)}),e.panels.close&&this.bind("initPanel:after",function(t){(function(t,e,i,n){var s,o=this,a=t.data(dt.parent);a&&(a=a.closest("."+ut.panel),t=new Hammer(t[0],o.opts[mt].vendors.hammer),s=null,t.on("panright",function(t){s||(o.openPanel(a),s=setTimeout(function(){clearTimeout(s),s=null},o.conf.openingInterval+o.conf.transitionDuration))}))}).call(this,t,e.panels,i.panels,pt)}))},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?(ht[ft].addons[mt].add=function(){},void(ht[ft].addons[mt].setup=function(){})):(ut=ht[ft]._c,dt=ht[ft]._d,ht[ft]._e,void ut.add("dragging"))},clickAnchor:function(t,e){}},ht[ft].defaults[mt]={menu:{open:!1,maxStartPos:100,threshold:50},panels:{close:!1},vendors:{hammer:{}}},ht[ft].configuration[mt]={menu:{width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}},panels:{}},ct="dropdown",(nt=t)[lt="mmenu"].addons[ct]={setup:function(){var e,f,m,g,i,n;this.opts.offCanvas&&(f=(e=this).opts[ct],m=this.conf[ct],rt=nt[lt].glbl,"boolean"==typeof f&&f&&(f={drop:f}),"object"!=typeof f&&(f={}),"string"==typeof f.position&&(f.position={of:f.position}),(f=this.opts[ct]=nt.extend(!0,{},nt[lt].defaults[ct],f)).drop&&(this.bind("initMenu:after",function(){var t;this.$menu.addClass(st.dropdown),f.tip&&this.$menu.addClass(st.tip),"string"!=typeof f.position.of&&(t=this._getOriginalMenuId())&&t.length&&(f.position.of='[href="#'+t+'"]'),"string"==typeof f.position.of&&(g=nt(f.position.of),f.event=f.event.split(" "),1==f.event.length&&(f.event[1]=f.event[0]),"hover"==f.event[0]&&g.on(at.mouseenter+"-"+ct,function(){e.open()}),"hover"==f.event[1]&&this.$menu.on(at.mouseleave+"-"+ct,function(){e.close()}))}),this.bind("open:start",function(){this.$menu.data(ot.style,this.$menu.attr("style")||""),rt.$html.addClass(st.dropdown)}),this.bind("close:finish",function(){this.$menu.attr("style",this.$menu.data(ot.style)),rt.$html.removeClass(st.dropdown)}),i=function(t,e){var i,n,s=e[0],o=e[1],a="x"==t?"scrollLeft":"scrollTop",r="x"==t?"outerWidth":"outerHeight",l="x"==t?"left":"top",c="x"==t?"right":"bottom",h="x"==t?"width":"height",u="x"==t?"maxWidth":"maxHeight",d=null,p=rt.$wndw[a](),e=g.offset()[l]-=p,a=e+g[r](),p=rt.$wndw[h](),r=m.offset.button[t]+m.offset.viewport[t];if(f.position[t])switch(f.position[t]){case"left":case"bottom":d="after";break;case"right":case"top":d="before"}return null===d&&(d=e+(a-e)/2<p/2?"after":"before"),"after"==d?(n=p-((i="x"==t?e:a)+r),s[l]=i+m.offset.button[t],s[c]="auto",o.push(st["x"==t?"tipleft":"tiptop"])):(n=(i="x"==t?a:e)-r,s[c]="calc( 100% - "+(i-m.offset.button[t])+"px )",s[l]="auto",o.push(st["x"==t?"tipright":"tipbottom"])),s[u]=Math.min(m[h].max,n),[s,o]},n=function(t){var e;this.vars.opened&&(this.$menu.attr("style",this.$menu.data(ot.style)),e=i.call(this,"y",e=[{},[]]),e=i.call(this,"x",e),this.$menu.css(e[0]),f.tip&&this.$menu.removeClass(st.tipleft+" "+st.tipright+" "+st.tiptop+" "+st.tipbottom).addClass(e[1].join(" ")))},this.bind("open:start",n),rt.$wndw.on(at.resize+"-"+ct,function(t){n.call(e)}),this.opts.offCanvas.blockUI||rt.$wndw.on(at.scroll+"-"+ct,function(t){n.call(e)})))},add:function(){st=nt[lt]._c,ot=nt[lt]._d,at=nt[lt]._e,st.add("dropdown tip tipleft tipright tiptop tipbottom"),at.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},nt[lt].defaults[ct]={drop:!1,event:"click",position:{},tip:!0},nt[lt].configuration[ct]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}},it="fixedElements",(Z=t)[et="mmenu"].addons[it]={setup:function(){var s;this.opts.offCanvas&&(this.opts[it],s=this.conf[it],tt=Z[et].glbl,this.bind("setPage:after",function(t){var e=this.conf.classNames[it].fixed,i=t.find("."+e);this.__refactorClass(i,e,"slideout"),i[s.elemInsertMethod](s.elemInsertSelector);var i=this.conf.classNames[it].sticky,n=t.find("."+i);this.__refactorClass(n,i,"sticky"),(n=t.find("."+J.sticky)).length&&(this.bind("open:before",function(){var t=tt.$wndw.scrollTop()+s.sticky.offset;n.each(function(){Z(this).css("top",parseInt(Z(this).css("top"),10)+t)})}),this.bind("close:finish",function(){n.css("top","")}))}))},add:function(){J=Z[et]._c,Z[et]._d,Z[et]._e,J.add("sticky")},clickAnchor:function(t,e){}},Z[et].configuration[it]={sticky:{offset:0},elemInsertMethod:"appendTo",elemInsertSelector:"body"},Z[et].configuration.classNames[it]={fixed:"Fixed",sticky:"Sticky"},G="iconPanels",(V=t)[Q="mmenu"].addons[G]={setup:function(){var e=this,i=this.opts[G];if(this.conf[G],V[Q].glbl,"boolean"==typeof i&&(i={add:i}),"number"==typeof i&&(i={add:!0,visible:i}),"object"!=typeof i&&(i={}),(i=this.opts[G]=V.extend(!0,{},V[Q].defaults[G],i)).visible++,i.add){for(var n="",t=0;t<=i.visible;t++)n+=" "+X.iconpanel+"-"+t;n.length&&(n=n.slice(1));function s(t){t.hasClass(X.vertical)||e.$pnls.children("."+X.panel).removeClass(n).filter("."+X.subopened).removeClass(X.hidden).add(t).not("."+X.vertical).slice(-i.visible).each(function(t){V(this).addClass(X.iconpanel+"-"+t)})}this.bind("initMenu:after",function(){this.$menu.addClass(X.iconpanel)}),this.bind("openPanel:start",s),this.bind("initPanels:after",function(t){s.call(e,e.$pnls.children("."+X.opened))}),this.bind("initListview:after",function(t){t.hasClass(X.vertical)||t.children("."+X.subblocker).length||t.prepend('<a href="#'+t.closest("."+X.panel).attr("id")+'" class="'+X.subblocker+'" />')})}},add:function(){X=V[Q]._c,V[Q]._d,V[Q]._e,X.add("iconpanel subblocker")},clickAnchor:function(t,e){}},V[Q].defaults[G]={add:!1,visible:3},function(o){function n(t,e){t=t||this.$pnls.children("."+l.opened);var i=o(),n=this.$menu.children("."+l.mm("navbars-top")+", ."+l.mm("navbars-bottom")).children("."+l.navbar);n.find(d).filter(":focus").length||("default"==e&&((i=t.children("."+l.listview).find("a[href]").not("."+l.hidden)).length||(i=t.find(d).not("."+l.hidden)),i.length||(i=n.find(d).not("."+l.hidden))),i.length||(i=this.$menu.children("."+l.tabstart)),i.first().focus())}function s(t){t=t||this.$pnls.children("."+l.opened),this.$pnls.children("."+l.panel).not(t).find(d).attr("tabindex",-1),t.find(d).attr("tabindex",0),t.find("."+l.mm("toggle")+", ."+l.mm("check")).attr("tabindex",-1),t.children("."+l.navbar).children("."+l.title).attr("tabindex",-1)}var a="mmenu",r="keyboardNavigation";o[a].addons[r]={setup:function(){var e,t,i;o[a].support.touch||(e=this.opts[r],this.conf[r],u=o[a].glbl,"boolean"!=typeof e&&"string"!=typeof e||(e={enable:e}),"object"!=typeof e&&(e={}),(e=this.opts[r]=o.extend(!0,{},o[a].defaults[r],e)).enable&&(t=o('<button class="'+l.tabstart+'" tabindex="0" type="button" />'),i=o('<button class="'+l.tabend+'" tabindex="0" type="button" />'),this.bind("initMenu:after",function(){e.enhance&&this.$menu.addClass(l.keyboardfocus),this["_initWindow_"+r](e.enhance)}),this.bind("initOpened:before",function(){this.$menu.prepend(t).append(i).children("."+l.mm("navbars-top")+", ."+l.mm("navbars-bottom")).children("."+l.navbar).children("a."+l.title).attr("tabindex",-1)}),this.bind("open:start",function(){s.call(this)}),this.bind("open:finish",function(){n.call(this,null,e.enable)}),this.bind("openPanel:start",function(t){s.call(this,t)}),this.bind("openPanel:finish",function(t){n.call(this,t,e.enable)}),this.bind("initOpened:after",function(){this.__sr_aria(this.$menu.children("."+l.mm("tabstart")+", ."+l.mm("tabend")),"hidden",!0)})))},add:function(){l=o[a]._c,c=o[a]._d,h=o[a]._e,l.add("tabstart tabend keyboardfocus"),h.add("focusin keydown")},clickAnchor:function(t,e){}},o[a].defaults[r]={enable:!1,enhance:!1},o[a].configuration[r]={},o[a].prototype["_initWindow_"+r]=function(t){u.$wndw.off(h.keydown+"-offCanvas"),u.$wndw.off(h.focusin+"-"+r).on(h.focusin+"-"+r,function(t){!u.$html.hasClass(l.opened)||(t=o(t.target)).is("."+l.tabend)&&t.parent().find("."+l.tabstart).focus()}),u.$wndw.off(h.keydown+"-"+r).on(h.keydown+"-"+r,function(t){var e=o(t.target),i=e.closest("."+l.menu);if(i.length&&(i.data("mmenu"),!e.is("input, textarea")))switch(t.keyCode){case 13:(e.is(".mm-toggle")||e.is(".mm-check"))&&e.trigger(h.click);break;case 32:case 37:case 38:case 39:case 40:t.preventDefault()}}),t&&u.$wndw.off(h.keydown+"-"+r).on(h.keydown+"-"+r,function(t){var e=o(t.target),i=e.closest("."+l.menu);if(i.length){var n=i.data("mmenu");if(e.is("input, textarea"))27===t.keyCode&&e.val("");else switch(t.keyCode){case 8:var s=e.closest("."+l.panel).data(c.parent);s&&s.length&&n.openPanel(s.closest("."+l.panel));break;case 27:i.hasClass(l.offcanvas)&&n.close()}}})};var l,c,h,u,d="input, select, textarea, button, label, a[href]"}(t),K="lazySubmenus",(R=t)[U="mmenu"].addons[K]={setup:function(){var t=this.opts[K];this.conf[K],R[U].glbl,"boolean"==typeof t&&(t={load:t}),"object"!=typeof t&&(t={}),(t=this.opts[K]=R.extend(!0,{},R[U].defaults[K],t)).load&&(this.bind("initMenu:after",function(){this.$pnls.find("li").children(this.conf.panelNodetype).not("."+B.inset).not("."+B.nolistview).not("."+B.nopanel).addClass(B.lazysubmenu+" "+B.nolistview+" "+B.nopanel)}),this.bind("initPanels:before",function(t){t=t||this.$pnls.children(this.conf.panelNodetype),this.__findAddBack(t,"."+B.lazysubmenu).not("."+B.lazysubmenu+" ."+B.lazysubmenu).removeClass(B.lazysubmenu+" "+B.nolistview+" "+B.nopanel)}),this.bind("initOpened:before",function(){var t=this.$pnls.find("."+this.conf.classNames.selected).parents("."+B.lazysubmenu);t.length&&(t.removeClass(B.lazysubmenu+" "+B.nolistview+" "+B.nopanel),this.initPanels(t.last()))}),this.bind("openPanel:before",function(t){t=this.__findAddBack(t,"."+B.lazysubmenu).not("."+B.lazysubmenu+" ."+B.lazysubmenu);t.length&&this.initPanels(t)}))},add:function(){B=R[U]._c,Y=R[U]._d,R[U]._e,B.add("lazysubmenu"),Y.add("lazysubmenu")},clickAnchor:function(t,e){}},R[U].defaults[K]={load:!1},R[U].configuration[K]={},q="navbars",(W=t)[F="mmenu"].addons[q]={setup:function(){var l,c,h=this,u=this.opts[q],d=this.conf[q];W[F].glbl,void 0!==u&&(u instanceof Array||(u=[u]),l={},c={},u.length&&(W.each(u,function(t){var e=u[t];"boolean"==typeof e&&e&&(e={}),"object"!=typeof e&&(e={}),void 0===e.content&&(e.content=["prev","title"]),e.content instanceof Array||(e.content=[e.content]),e=W.extend(!0,{},h.opts.navbar,e);var i=W('<div class="'+j.navbar+'" />'),n=e.height;"number"!=typeof n&&(n=1),n=Math.min(4,Math.max(1,n)),i.addClass(j.navbar+"-size-"+n);t=e.position;"bottom"!=t&&(t="top"),l[t]||(l[t]=0),l[t]+=n,c[t]||(c[t]=W('<div class="'+j.navbars+"-"+t+'" />')),c[t].append(i);for(var s=0,o=0,a=e.content.length;o<a;o++){var r=W[F].addons[q][e.content[o]]||!1;r?s+=r.call(h,i,e,d):((r=e.content[o])instanceof W||(r=W(e.content[o])),i.append(r))}1<(s+=Math.ceil(i.children().not("."+j.btn).length/n))&&i.addClass(j.navbar+"-content-"+s),i.children("."+j.btn).length&&i.addClass(j.hasbtns)}),this.bind("initMenu:after",function(){for(var t in l)this.$menu.addClass(j.hasnavbar+"-"+t+"-"+l[t]),this.$menu["bottom"==t?"append":"prepend"](c[t])})))},add:function(){j=W[F]._c,W[F]._d,W[F]._e,j.add("navbars close hasbtns")},clickAnchor:function(t,e){}},W[F].configuration[q]={breadcrumbSeparator:"/"},W[F].configuration.classNames[q]={},(z=t)[L="mmenu"].addons.navbars.breadcrumbs=function(t,e,a){var i=this,r=z[L]._c,l=z[L]._d;r.add("breadcrumbs separator");var n=z('<span class="'+r.breadcrumbs+'" />').appendTo(t);return this.bind("initNavbar:after",function(t){t.removeClass(r.hasnavbar);for(var e,i=[],n=z('<span class="'+r.breadcrumbs+'"></span>'),s=t,o=!0;s&&s.length;)s.is("."+r.panel)||(s=s.closest("."+r.panel)),s.hasClass(r.vertical)||(e=s.children("."+r.navbar).children("."+r.title).text(),i.unshift(o?"<span>"+e+"</span>":'<a href="#'+s.attr("id")+'">'+e+"</a>"),o=!1),s=s.data(l.parent);n.append(i.join('<span class="'+r.separator+'">'+a.breadcrumbSeparator+"</span>")).appendTo(t.children("."+r.navbar))}),this.bind("openPanel:start",function(t){n.html(t.children("."+r.navbar).children("."+r.breadcrumbs).html()||"")}),this.bind("initNavbar:after:sr-aria",function(t){t.children("."+r.navbar).children("."+r.breadcrumbs).children("a").each(function(){i.__sr_aria(z(this),"owns",z(this).attr("href").slice(1))})}),0},(O=t)[N="mmenu"].addons.navbars.close=function(t,e){var i=O[N]._c,n=(O[N].glbl,O('<a class="'+i.close+" "+i.btn+'" href="#" />').appendTo(t));return this.bind("setPage:after",function(t){n.attr("href","#"+t.attr("id"))}),this.bind("setPage:after:sr-text",function(t){n.html(this.__sr_text(O[N].i18n(this.conf.screenReader.text.closeMenu))),this.__sr_aria(n,"owns",n.attr("href").slice(1))}),-1},H="navbars",(E=t)[$="mmenu"].addons[H].next=function(t,e){var i,n,s=E[$]._c,o=E('<a class="'+s.next+" "+s.btn+'" href="#" />').appendTo(t);return this.bind("openPanel:start",function(t){n=t.find("."+this.conf.classNames[H].panelNext),i=n.attr("href"),n=n.html(),i?o.attr("href",i):o.removeAttr("href"),o[i||n?"removeClass":"addClass"](s.hidden),o.html(n)}),this.bind("openPanel:start:sr-aria",function(t){this.__sr_aria(o,"hidden",o.hasClass(s.hidden)),this.__sr_aria(o,"owns",(o.attr("href")||"").slice(1))}),-1},E[$].configuration.classNames[H].panelNext="Next",M="navbars",(A=t)[I="mmenu"].addons[M].prev=function(t,e){var i,n,s=A[I]._c,o=A('<a class="'+s.prev+" "+s.btn+'" href="#" />').appendTo(t);return this.bind("initNavbar:after",function(t){t.removeClass(s.hasnavbar)}),this.bind("openPanel:start",function(t){t.hasClass(s.vertical)||((n=t.find("."+this.conf.classNames[M].panelPrev)).length||(n=t.children("."+s.navbar).children("."+s.prev)),i=n.attr("href"),n=n.html(),i?o.attr("href",i):o.removeAttr("href"),o[i||n?"removeClass":"addClass"](s.hidden),o.html(n))}),this.bind("initNavbar:after:sr-aria",function(t){t=t.children("."+s.navbar);this.__sr_aria(t,"hidden",!0)}),this.bind("openPanel:start:sr-aria",function(t){this.__sr_aria(o,"hidden",o.hasClass(s.hidden)),this.__sr_aria(o,"owns",(o.attr("href")||"").slice(1))}),-1},A[I].configuration.classNames[M].panelPrev="Prev",(P=t).mmenu.addons.navbars.searchfield=function(t,e){var i=P.mmenu._c,t=P('<div class="'+i.search+'" />').appendTo(t);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=t,0},D="navbars",(T=t)[S="mmenu"].addons[D].title=function(t,e){var i,n,s,o=T[S]._c,a=T('<a class="'+o.title+'" />').appendTo(t);return this.bind("openPanel:start",function(t){t.hasClass(o.vertical)||((n=t.find("."+this.conf.classNames[D].panelTitle)).length||(n=t.children("."+o.navbar).children("."+o.title)),i=n.attr("href"),n=n.html()||e.title,i?a.attr("href",i):a.removeAttr("href"),a[i||n?"removeClass":"addClass"](o.hidden),a.html(n))}),this.bind("openPanel:start:sr-aria",function(t){var e;this.opts.screenReader.text&&(s=s||this.$menu.children("."+o.navbars+"-top, ."+o.navbars+"-bottom").children("."+o.navbar).children("."+o.prev)).length&&(e=!0,"parent"==this.opts.navbar.titleLink&&(e=!s.hasClass(o.hidden)),this.__sr_aria(a,"hidden",e))}),0},T[S].configuration.classNames[D].panelTitle="Title",function(r){function l(t){n&&n.length&&n.is(":visible")&&p.$html.add(p.$body).animate({scrollTop:n.offset().top+t}),n=!1}function c(t){try{return"#"!=t&&"#"==t.slice(0,1)&&p.$page.find(t).length}catch(t){return}}var i="mmenu",h="pageScroll";r[i].addons[h]={setup:function(){var e,n,s,o=this,t=this.opts[h],a=this.conf[h];p=r[i].glbl,"boolean"==typeof t&&(t={scroll:t}),(t=this.opts[h]=r.extend(!0,{},r[i].defaults[h],t)).scroll&&this.bind("close:finish",function(){l(a.scrollOffset)}),t.update&&(e=[],n=[],(o=this).bind("initListview:after",function(t){o.__filterListItemAnchors(t.find("."+u.listview).children("li")).each(function(){var t=r(this).attr("href");c(t)&&e.push(t)}),n=e.reverse()}),s=-1,p.$wndw.on(d.scroll+"-"+h,function(t){for(var e=p.$wndw.scrollTop(),i=0;i<n.length;i++)if(r(n[i]).offset().top<e+a.updateOffset){s!==i&&(s=i,o.setSelected(o.__filterListItemAnchors(o.$pnls.children("."+u.opened).find("."+u.listview).children("li")).filter('[href="'+n[i]+'"]').parent()));break}}))},add:function(){u=r[i]._c,r[i]._d,d=r[i]._e},clickAnchor:function(t,e){var i;n=!1,e&&this.opts[h].scroll&&this.opts.offCanvas&&p.$page&&p.$page.length&&c(i=t.attr("href"))&&(n=r(i),p.$html.hasClass(u.mm("widescreen"))&&l(this.conf[h].scrollOffset))}},r[i].defaults[h]={scroll:!1,update:!1};var u,d,p,n=!(r[i].configuration[h]={scrollOffset:0,updateOffset:50})}(t),(w=t)[C="mmenu"].addons.rtl={setup:function(){var t=this.opts.rtl;this.conf.rtl,k=w[C].glbl,"object"!=typeof t&&(t={use:t}),"boolean"!=typeof(t=this.opts.rtl=w.extend(!0,{},w[C].defaults.rtl,t)).use&&(t.use="rtl"==(k.$html.attr("dir")||"").toLowerCase()),t.use&&this.bind("initMenu:after",function(){this.$menu.addClass(x.rtl)})},add:function(){x=w[C]._c,w[C]._d,w[C]._e,x.add("rtl")},clickAnchor:function(t,e){}},w[C].defaults.rtl={use:"detect"},_="searchfield",(m=t)[y="mmenu"].addons[_]={setup:function(){var d=this,p=this.opts[_],l=this.conf[_];m[y].glbl,"boolean"==typeof p&&(p={add:p}),"object"!=typeof p&&(p={}),"boolean"==typeof p.resultsPanel&&(p.resultsPanel={add:p.resultsPanel}),p=this.opts[_]=m.extend(!0,{},m[y].defaults[_],p),l=this.conf[_]=m.extend(!0,{},m[y].configuration[_],l),this.bind("close:start",function(){this.$menu.find("."+g.search).find("input").blur()}),this.bind("initPanels:after",function(t){var u;p.add&&(("panels"===p.addTo?t:this.$menu.find(p.addTo)).each(function(){var t=m(this);if(!t.is("."+g.panel)||!t.is("."+g.vertical)){if(!t.children("."+g.search).length){var e,i=d.__valueOrFn(l.clear,t),n=d.__valueOrFn(l.form,t),s=d.__valueOrFn(l.input,t),o=d.__valueOrFn(l.submit,t),a=m("<"+(n?"form":"div")+' class="'+g.search+'" />'),r=m('<input placeholder="'+m[y].i18n(p.placeholder)+'" type="text" autocomplete="off" />');if(a.append(r),s)for(e in s)r.attr(e,s[e]);if(i&&m('<a class="'+g.btn+" "+g.clear+'" href="#" />').appendTo(a).on(b.click+"-searchfield",function(t){t.preventDefault(),r.val("").trigger(b.keyup+"-searchfield")}),n){for(e in n)a.attr(e,n[e]);o&&!i&&m('<a class="'+g.btn+" "+g.next+'" href="#" />').appendTo(a).on(b.click+"-searchfield",function(t){t.preventDefault(),a.submit()})}t.hasClass(g.search)?t.replaceWith(a):t.prepend(a).addClass(g.hassearch)}p.noResults&&(t.closest("."+g.panel).length||(t=d.$pnls.children("."+g.panel).first()),t.children("."+g.noresultsmsg).length||(i=t.children("."+g.listview).first(),m('<div class="'+g.noresultsmsg+" "+g.hidden+'" />').append(m[y].i18n(p.noResults))[i.length?"insertAfter":"prependTo"](i.length?i:t)))}}),p.search&&(p.resultsPanel.add&&(p.showSubPanels=!1,(u=this.$pnls.children("."+g.resultspanel)).length||(u=m('<div class="'+g.resultspanel+" "+g.noanimation+" "+g.hidden+'" />').appendTo(this.$pnls).append('<div class="'+g.navbar+" "+g.hidden+'"><a class="'+g.title+'">'+m[y].i18n(p.resultsPanel.title)+"</a></div>").append('<ul class="'+g.listview+'" />').append(this.$pnls.find("."+g.noresultsmsg).first().clone()),this._initPanel(u))),this.$menu.find("."+g.search).each(function(){var i,t=m(this),n=t.closest("."+g.panel).length,s=n?i=t.closest("."+g.panel):(i=d.$pnls.find("."+g.panel),d.$menu);p.resultsPanel.add&&(i=i.not(u));function e(){var e,t=o.val().toLowerCase();t!=c&&(c=t,p.resultsPanel.add&&u.children("."+g.listview).empty(),i.scrollTop(0),l.add(r).addClass(g.hidden).find("."+g.fullsubopensearch).removeClass(g.fullsubopen+" "+g.fullsubopensearch),l.each(function(){var t=m(this),e="a";(p.showTextItems||p.showSubPanels&&t.find("."+g.next))&&(e="a, span"),-1<(t.data(v.searchtext)||t.children(e).not("."+g.next).text()).toLowerCase().indexOf(c)&&t.add(t.prevAll("."+g.divider).first()).removeClass(g.hidden)}),p.showSubPanels&&i.each(function(t){var e=m(this);d.__filterListItems(e.find("."+g.listview).children()).each(function(){var t=m(this),e=t.data(v.child);t.removeClass(g.nosubresults),e&&e.find("."+g.listview).children().removeClass(g.hidden)})}),p.resultsPanel.add?""===c?this.closeAllPanels(this.$pnls.children("."+g.subopened).last()):(e=m(),i.each(function(){var t=d.__filterListItems(m(this).find("."+g.listview).children()).not("."+g.hidden).clone(!0);t.length&&(p.resultsPanel.dividers&&(e=e.add('<li class="'+g.divider+'">'+m(this).children("."+g.navbar).children("."+g.title).text()+"</li>")),t.children("."+g.mm("toggle")+", ."+g.mm("check")).remove(),e=e.add(t))}),e.find("."+g.next).remove(),u.children("."+g.listview).append(e),this.openPanel(u)):m(i.get().reverse()).each(function(t){var e=m(this),i=e.data(v.parent);i&&(d.__filterListItems(e.find("."+g.listview).children()).length?(i.hasClass(g.hidden)&&i.children("."+g.next).not("."+g.fullsubopen).addClass(g.fullsubopen).addClass(g.fullsubopensearch),i.removeClass(g.hidden).removeClass(g.nosubresults).prevAll("."+g.divider).first().removeClass(g.hidden)):n||((e.hasClass(g.opened)||e.hasClass(g.subopened))&&setTimeout(function(){d.openPanel(i.closest("."+g.panel))},(t+1)*(1.5*d.conf.openingInterval)),i.addClass(g.nosubresults)))}),s.find("."+g.noresultsmsg)[l.not("."+g.hidden).length?"addClass":"removeClass"](g.hidden),this.trigger("updateListview"))}var o=t.children("input"),a=d.__findAddBack(i,"."+g.listview).children("li"),r=a.filter("."+g.divider),l=d.__filterListItems(a),c="";o.off(b.keyup+"-"+_+" "+b.change+"-"+_).on(b.keyup+"-"+_,function(t){!function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return 1}}(t.keyCode)&&e.call(d)}).on(b.change+"-"+_,function(t){e.call(d)});var h=t.children("."+g.btn);h.length&&o.on(b.keyup+"-"+_,function(t){h[o.val().length?"removeClass":"addClass"](g.hidden)}),o.trigger(b.keyup+"-"+_)})))})},add:function(){g=m[y]._c,v=m[y]._d,b=m[y]._e,g.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),v.add("searchtext"),b.add("change keyup")},clickAnchor:function(t,e){}},m[y].defaults[_]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},m[y].configuration[_]={clear:!1,form:!1,input:!1,submit:!1},f="sectionIndexer",(u=t)[p="mmenu"].addons[f]={setup:function(){var a=this,e=this.opts[f];this.conf[f],u[p].glbl,"boolean"==typeof e&&(e={add:e}),"object"!=typeof e&&(e={}),e=this.opts[f]=u.extend(!0,{},u[p].defaults[f],e),this.bind("initPanels:after",function(t){e.add&&(("panels"===e.addTo?t:u(e.addTo,this.$menu).filter("."+d.panel)).find("."+d.divider).closest("."+d.panel).addClass(d.hasindexer),this.$indexer||(this.$indexer=u('<div class="'+d.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(n.mouseover+"-"+f+" "+n.touchstart+"-"+f,function(t){var e=u(this).attr("href").slice(1),i=a.$pnls.children("."+d.opened),n=i.find("."+d.listview),s=-1,o=i.scrollTop();i.scrollTop(0),n.children("."+d.divider).not("."+d.hidden).each(function(){s<0&&e==u(this).text().slice(0,1).toLowerCase()&&(s=u(this).position().top)}),i.scrollTop(-1<s?s:o)})),t=function(t){t=t||this.$pnls.children("."+d.opened),this.$menu[(t.hasClass(d.hasindexer)?"add":"remove")+"Class"](d.hasindexer)},this.bind("openPanel:start",t),this.bind("initPanels:after",t))})},add:function(){d=u[p]._c,u[p]._d,n=u[p]._e,d.add("indexer hasindexer"),n.add("mouseover")},clickAnchor:function(t,e){if(t.parent().is("."+d.indexer))return!0}},u[p].defaults[f]={add:!1,addTo:"panels"},h="setSelected",(s=t)[c="mmenu"].addons[h]={setup:function(){var i,n=this,t=this.opts[h];this.conf[h],s[c].glbl,"boolean"==typeof t&&(t={hover:t,parent:t}),"object"!=typeof t&&(t={}),"detect"==(t=this.opts[h]=s.extend(!0,{},s[c].defaults[h],t)).current?(i=function(t){t=t.split("?")[0].split("#")[0];var e=n.$menu.find('a[href="'+t+'"], a[href="'+t+'/"]');e.length?n.setSelected(e.parent(),!0):(t=t.split("/").slice(0,-1)).length&&i(t.join("/"))},this.bind("initMenu:after",function(){i(window.location.href)})):t.current||this.bind("initListview:after",function(t){this.$pnls.find("."+r.listview).children("."+r.selected).removeClass(r.selected)}),t.hover&&this.bind("initMenu:after",function(){this.$menu.addClass(r.hoverselected)}),t.parent&&(this.bind("openPanel:finish",function(t){this.$pnls.find("."+r.listview).find("."+r.next).removeClass(r.selected);for(var e=t.data(l.parent);e;)e.not("."+r.vertical).children("."+r.next).addClass(r.selected),e=e.closest("."+r.panel).data(l.parent)}),this.bind("initMenu:after",function(){this.$menu.addClass(r.parentselected)}))},add:function(){r=s[c]._c,l=s[c]._d,s[c]._e,r.add("hoverselected parentselected")},clickAnchor:function(t,e){}},s[c].defaults[h]={current:!0,hover:!1,parent:!1},i="toggles",(o=t)[e="mmenu"].addons[i]={setup:function(){var s=this;this.opts[i],this.conf[i],o[e].glbl,this.bind("initListview:after",function(t){this.__refactorClass(t.find("input"),this.conf.classNames[i].toggle,"toggle"),this.__refactorClass(t.find("input"),this.conf.classNames[i].check,"check"),t.find("input."+a.toggle+", input."+a.check).each(function(){var t=o(this),e=t.closest("li"),i=t.hasClass(a.toggle)?"toggle":"check",n=t.attr("id")||s.__getUniqueId();e.children('label[for="'+n+'"]').length||(t.attr("id",n),e.prepend(t),o('<label for="'+n+'" class="'+a[i]+'"></label>').insertBefore(e.children("a, span").last()))})})},add:function(){a=o[e]._c,o[e]._d,o[e]._e,a.add("toggle check")},clickAnchor:function(t,e){}},o[e].configuration.classNames[i]={toggle:"Toggle",check:"Check"},!0},"function"==typeof define&&define.amd?define(["jquery"],s):"object"==typeof i?e.exports=s(t("jquery")):n.jquery_mmenu_all_js=s(n.jQuery)},{jquery:2}],2:[function(t,i,e){!function(t,e){"use strict";"object"==typeof i&&"object"==typeof i.exports?i.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(x,t){"use strict";function m(t){return null!=t&&t===t.window}var e=[],i=Object.getPrototypeOf,r=e.slice,g=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,s=e.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,c=a.call(Object),b={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},k=x.document,h={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,i){var n,s,o=(i=i||k).createElement("script");if(o.text=t,e)for(n in h)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[o.call(t)]||"object":typeof t}var C=function(t,e){return new C.fn.init(t,e)};function u(t){var e=!!t&&"length"in t&&t.length,i=f(t);return!y(t)&&!m(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}C.fn=C.prototype={jquery:"3.5.1",constructor:C,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=C.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return C.each(this,t)},map:function(i){return this.pushStack(C.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},C.extend=C.fn.extend=function(){var t,e,i,n,s,o=arguments[0]||{},a=1,r=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===r&&(o=this,a--);a<r;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&o!==i&&(l&&i&&(C.isPlainObject(i)||(n=Array.isArray(i)))?(s=o[e],s=n&&!Array.isArray(s)?[]:n||C.isPlainObject(s)?s:{},n=!1,o[e]=C.extend(l,s,i)):void 0!==i&&(o[e]=i));return o},C.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==o.call(t))&&(!(t=i(t))||"function"==typeof(t=v.call(t,"constructor")&&t.constructor)&&a.call(t)===c)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,i){_(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(u(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(u(Object(t))?C.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:s.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,a=!i;s<o;s++)!e(t[s],s)!=a&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,a=[];if(u(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&a.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&a.push(s);return g(a)},guid:1,support:b}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=e[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){n["[object "+e+"]"]=e.toLowerCase()});var d=function(i){function u(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function n(){x()}var t,p,_,o,s,f,d,m,w,l,c,x,k,a,C,g,r,h,v,T="sizzle"+ +new Date,b=i.document,S=0,y=0,D=lt(),P=lt(),A=lt(),I=lt(),M=function(t,e){return t===e&&(c=!0),0},E={}.hasOwnProperty,e=[],$=e.pop,H=e.push,O=e.push,N=e.slice,z=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",W="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+W+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+W+"*("+j+")(?:"+W+"*([*^$|!~]?=)"+W+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+W+"*\\]",q=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",R=new RegExp(W+"+","g"),B=new RegExp("^"+W+"+|((?:^|[^\\\\])(?:\\\\.)*)"+W+"+$","g"),Y=new RegExp("^"+W+"*,"+W+"*"),U=new RegExp("^"+W+"*([>+~]|"+W+")"+W+"*"),K=new RegExp(W+"|>"),V=new RegExp(q),X=new RegExp("^"+j+"$"),Q={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+W+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,it=/[+~]/,nt=new RegExp("\\\\[\\da-fA-F]{1,6}"+W+"?|\\\\([^\\r\\n\\f])","g"),st=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},at=bt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{O.apply(e=N.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(t){O={apply:e.length?function(t,e){H.apply(t,N.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function rt(e,t,i,n){var s,o,a,r,l,c,h,u=t&&t.ownerDocument,d=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return i;if(!n&&(x(t),t=t||k,C)){if(11!==d&&(l=et.exec(e)))if(s=l[1]){if(9===d){if(!(a=t.getElementById(s)))return i;if(a.id===s)return i.push(a),i}else if(u&&(a=u.getElementById(s))&&v(t,a)&&a.id===s)return i.push(a),i}else{if(l[2])return O.apply(i,t.getElementsByTagName(e)),i;if((s=l[3])&&p.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(s)),i}if(p.qsa&&!I[e+" "]&&(!g||!g.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(h=e,u=t,1===d&&(K.test(e)||U.test(e))){for((u=it.test(e)&&mt(t.parentNode)||t)===t&&p.scope||((r=t.getAttribute("id"))?r=r.replace(st,ot):t.setAttribute("id",r=T)),o=(c=f(e)).length;o--;)c[o]=(r?"#"+r:":scope")+" "+vt(c[o]);h=c.join(",")}try{return O.apply(i,u.querySelectorAll(h)),i}catch(t){I(e,!0)}finally{r===T&&t.removeAttribute("id")}}}return m(e.replace(B,"$1"),t,i,n)}function lt(){var i=[];function n(t,e){return i.push(t+" ")>_.cacheLength&&delete n[i.shift()],n[t+" "]=e}return n}function ct(t){return t[T]=!0,t}function ht(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var i=t.split("|"),n=i.length;n--;)_.attrHandle[i[n]]=e}function dt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function pt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&at(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(a){return ct(function(o){return o=+o,ct(function(t,e){for(var i,n=a([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=rt.support={},s=rt.isXML=function(t){var e=t.namespaceURI,t=(t.ownerDocument||t).documentElement;return!G.test(e||t&&t.nodeName||"HTML")},x=rt.setDocument=function(t){var e,t=t?t.ownerDocument||t:b;return t!=k&&9===t.nodeType&&t.documentElement&&(a=(k=t).documentElement,C=!s(k),b!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",n,!1):e.attachEvent&&e.attachEvent("onunload",n)),p.scope=ht(function(t){return a.appendChild(t).appendChild(k.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),p.attributes=ht(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=ht(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=tt.test(k.getElementsByClassName),p.getById=ht(function(t){return a.appendChild(t).id=T,!k.getElementsByName||!k.getElementsByName(T).length}),p.getById?(_.filter.ID=function(t){var e=t.replace(nt,u);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&C){t=e.getElementById(t);return t?[t]:[]}}):(_.filter.ID=function(t){var e=t.replace(nt,u);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),_.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},_.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&C)return e.getElementsByClassName(t)},r=[],g=[],(p.qsa=tt.test(k.querySelectorAll))&&(ht(function(t){var e;a.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+W+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+W+"*(?:value|"+L+")"),t.querySelectorAll("[id~="+T+"-]").length||g.push("~="),(e=k.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+W+"*name"+W+"*="+W+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ht(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+W+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(p.matchesSelector=tt.test(h=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ht(function(t){p.disconnectedMatch=h.call(t,"*"),h.call(t,"[s!='']:x"),r.push("!=",q)}),g=g.length&&new RegExp(g.join("|")),r=r.length&&new RegExp(r.join("|")),e=tt.test(a.compareDocumentPosition),v=e||tt.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(i.contains?i.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},M=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===i?t==k||t.ownerDocument==b&&v(b,t)?-1:e==k||e.ownerDocument==b&&v(b,e)?1:l?z(l,t)-z(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,a=[t],r=[e];if(!s||!o)return t==k?-1:e==k?1:s?-1:o?1:l?z(l,t)-z(l,e):0;if(s===o)return dt(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)r.unshift(i);for(;a[n]===r[n];)n++;return n?dt(a[n],r[n]):a[n]==b?-1:r[n]==b?1:0}),k},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if(x(t),p.matchesSelector&&C&&!I[e+" "]&&(!r||!r.test(e))&&(!g||!g.test(e)))try{var i=h.call(t,e);if(i||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){I(e,!0)}return 0<rt(e,k,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!=k&&x(t),v(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!=k&&x(t);var i=_.attrHandle[e.toLowerCase()],i=i&&E.call(_.attrHandle,e.toLowerCase())?i(t,e,!C):void 0;return void 0!==i?i:p.attributes||!C?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},rt.escape=function(t){return(t+"").replace(st,ot)},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,i=[],n=0,s=0;if(c=!p.detectDuplicates,l=!p.sortStable&&t.slice(0),t.sort(M),c){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return l=null,t},o=rt.getText=function(t){var e,i="",n=0,s=t.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(_=rt.selectors={cacheLength:50,createPseudo:ct,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(nt,u),t[3]=(t[3]||t[4]||t[5]||"").replace(nt,u),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=f(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(nt,u).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=D[t+" "];return e||(e=new RegExp("(^|"+W+")"+t+"("+W+"|$)"))&&D(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(t){t=rt.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===n:"!="===i?t!==n:"^="===i?n&&0===t.indexOf(n):"*="===i?n&&-1<t.indexOf(n):"$="===i?n&&t.slice(-n.length)===n:"~="===i?-1<(" "+t.replace(R," ")+" ").indexOf(n):"|="===i&&(t===n||t.slice(0,n.length+1)===n+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),b="last"!==f.slice(-4),y="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,i){var n,s,o,a,r,l,c=v!=b?"nextSibling":"previousSibling",h=t.parentNode,u=y&&t.nodeName.toLowerCase(),d=!i&&!y,p=!1;if(h){if(v){for(;c;){for(a=t;a=a[c];)if(y?a.nodeName.toLowerCase()===u:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[b?h.firstChild:h.lastChild],b&&d){for(p=(r=(n=(s=(o=(a=h)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===S&&n[1])&&n[2],a=r&&h.childNodes[r];a=++r&&a&&a[c]||(p=r=0)||l.pop();)if(1===a.nodeType&&++p&&a===t){s[f]=[S,r,p];break}}else if(d&&(p=r=(n=(s=(o=(a=t)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===S&&n[1]),!1===p)for(;(a=++r&&a&&a[c]||(p=r=0)||l.pop())&&((y?a.nodeName.toLowerCase()!==u:1!==a.nodeType)||!++p||(d&&((s=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[S,p]),a!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,o){var e,a=_.pseudos[t]||_.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return a[T]?a(o):1<a.length?(e=[t,t,"",o],_.setFilters.hasOwnProperty(t.toLowerCase())?ct(function(t,e){for(var i,n=a(t,o),s=n.length;s--;)t[i=z(t,n[s])]=!(e[i]=n[s])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ct(function(t){var n=[],s=[],r=d(t.replace(B,"$1"));return r[T]?ct(function(t,e,i,n){for(var s,o=r(t,null,n,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))}):function(t,e,i){return n[0]=t,r(n,null,i,s),n[0]=null,!s.pop()}}),has:ct(function(e){return function(t){return 0<rt(e,t).length}}),contains:ct(function(e){return e=e.replace(nt,u),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:ct(function(i){return X.test(i||"")||rt.error("unsupported lang: "+i),i=i.replace(nt,u).toLowerCase(),function(t){var e;do{if(e=C?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ft(function(){return[0]}),last:ft(function(t,e){return[e-1]}),eq:ft(function(t,e,i){return[i<0?i+e:i]}),even:ft(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:ft(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:ft(function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t}),gt:ft(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=function(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}(t);function gt(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function bt(a,t,e){var r=t.dir,l=t.next,c=l||r,h=e&&"parentNode"===c,u=y++;return t.first?function(t,e,i){for(;t=t[r];)if(1===t.nodeType||h)return a(t,e,i);return!1}:function(t,e,i){var n,s,o=[S,u];if(i){for(;t=t[r];)if((1===t.nodeType||h)&&a(t,e,i))return!0}else for(;t=t[r];)if(1===t.nodeType||h)if(n=(s=t[T]||(t[T]={}))[t.uniqueID]||(s[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[r]||t;else{if((s=n[c])&&s[0]===S&&s[1]===u)return o[2]=s[2];if((n[c]=o)[2]=a(t,e,i))return!0}return!1}}function yt(s){return 1<s.length?function(t,e,i){for(var n=s.length;n--;)if(!s[n](t,e,i))return!1;return!0}:s[0]}function _t(t,e,i,n,s){for(var o,a=[],r=0,l=t.length,c=null!=e;r<l;r++)(o=t[r])&&(i&&!i(o,n,s)||(a.push(o),c&&e.push(r)));return a}function wt(p,f,m,g,v,t){return g&&!g[T]&&(g=wt(g)),v&&!v[T]&&(v=wt(v,t)),ct(function(t,e,i,n){var s,o,a,r=[],l=[],c=e.length,h=t||function(t,e,i){for(var n=0,s=e.length;n<s;n++)rt(t,e[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),u=!p||!t&&f?h:_t(h,r,p,i,n),d=m?v||(t?p:c||g)?[]:e:u;if(m&&m(u,d,i,n),g)for(s=_t(d,l),g(s,[],i,n),o=s.length;o--;)(a=s[o])&&(d[l[o]]=!(u[l[o]]=a));if(t){if(v||p){if(v){for(s=[],o=d.length;o--;)(a=d[o])&&s.push(u[o]=a);v(null,d=[],s,n)}for(o=d.length;o--;)(a=d[o])&&-1<(s=v?z(t,a):r[o])&&(t[s]=!(e[s]=a))}}else d=_t(d===e?d.splice(c,d.length):d),v?v(null,e,d,n):O.apply(e,d)})}function xt(g,v){function t(t,e,i,n,s){var o,a,r,l=0,c="0",h=t&&[],u=[],d=w,p=t||y&&_.find.TAG("*",s),f=S+=null==d?1:Math.random()||.1,m=p.length;for(s&&(w=e==k||e||s);c!==m&&null!=(o=p[c]);c++){if(y&&o){for(a=0,e||o.ownerDocument==k||(x(o),i=!C);r=g[a++];)if(r(o,e||k,i)){n.push(o);break}s&&(S=f)}b&&((o=!r&&o)&&l--,t&&h.push(o))}if(l+=c,b&&c!==l){for(a=0;r=v[a++];)r(h,u,e,i);if(t){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=$.call(n));u=_t(u)}O.apply(n,u),s&&!t&&0<u.length&&1<l+v.length&&rt.uniqueSort(n)}return s&&(S=f,w=d),h}var b=0<v.length,y=0<g.length;return b?ct(t):t}return gt.prototype=_.filters=_.pseudos,_.setFilters=new gt,f=rt.tokenize=function(t,e){var i,n,s,o,a,r,l,c=P[t+" "];if(c)return e?0:c.slice(0);for(a=t,r=[],l=_.preFilter;a;){for(o in i&&!(n=Y.exec(a))||(n&&(a=a.slice(n[0].length)||a),r.push(s=[])),i=!1,(n=U.exec(a))&&(i=n.shift(),s.push({value:i,type:n[0].replace(B," ")}),a=a.slice(i.length)),_.filter)!(n=Q[o].exec(a))||l[o]&&!(n=l[o](n))||(i=n.shift(),s.push({value:i,type:o,matches:n}),a=a.slice(i.length));if(!i)break}return e?a.length:a?rt.error(t):P(t,r).slice(0)},d=rt.compile=function(t,e){var i,n=[],s=[],o=A[t+" "];if(!o){for(i=(e=e||f(t)).length;i--;)((o=function t(e){for(var n,i,s,o=e.length,a=_.relative[e[0].type],r=a||_.relative[" "],l=a?1:0,c=bt(function(t){return t===n},r,!0),h=bt(function(t){return-1<z(n,t)},r,!0),u=[function(t,e,i){return i=!a&&(i||e!==w)||((n=e).nodeType?c:h)(t,e,i),n=null,i}];l<o;l++)if(i=_.relative[e[l].type])u=[bt(yt(u),i)];else{if((i=_.filter[e[l].type].apply(null,e[l].matches))[T]){for(s=++l;s<o&&!_.relative[e[s].type];s++);return wt(1<l&&yt(u),1<l&&vt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),i,l<s&&t(e.slice(l,s)),s<o&&t(e=e.slice(s)),s<o&&vt(e))}u.push(i)}return yt(u)}(e[i]))[T]?n:s).push(o);(o=A(t,xt(s,n))).selector=t}return o},m=rt.select=function(t,e,i,n){var s,o,a,r,l,c="function"==typeof t&&t,h=!n&&f(t=c.selector||t);if(i=i||[],1===h.length){if(2<(o=h[0]=h[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===e.nodeType&&C&&_.relative[o[1].type]){if(!(e=(_.find.ID(a.matches[0].replace(nt,u),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=Q.needsContext.test(t)?0:o.length;s--&&(a=o[s],!_.relative[r=a.type]);)if((l=_.find[r])&&(n=l(a.matches[0].replace(nt,u),it.test(o[0].type)&&mt(e.parentNode)||e))){if(o.splice(s,1),!(t=n.length&&vt(o)))return O.apply(i,n),i;break}}return(c||d(t,h))(n,e,!C,i,!e||it.test(t)&&mt(e.parentNode)||e),i},p.sortStable=T.split("").sort(M).join("")===T,p.detectDuplicates=!!c,x(),p.sortDetached=ht(function(t){return 1&t.compareDocumentPosition(k.createElement("fieldset"))}),ht(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&ht(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ht(function(t){return null==t.getAttribute("disabled")})||ut(L,function(t,e,i){if(!i)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),rt}(x);C.find=d,C.expr=d.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=d.uniqueSort,C.text=d.getText,C.isXMLDoc=d.isXML,C.contains=d.contains,C.escapeSelector=d.escape;function p(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&C(t).is(i))break;n.push(t)}return n}function w(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}var T=C.expr.match.needsContext;function S(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,i,n){return y(i)?C.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?C.grep(t,function(t){return t===i!==n}):"string"!=typeof i?C.grep(t,function(t){return-1<s.call(i,t)!==n}):C.filter(i,t,n)}C.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?C.find.matchesSelector(n,t)?[n]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<n;e++)if(C.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)C.find(t,s[e],i);return 1<n?C.uniqueSort(i):i},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&T.test(t)?C(t):t||[],!1).length}});var A,I=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,i){if(!t)return this;if(i=i||A,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==i.ready?i.ready(t):t(C):C.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:I.exec(t))||!n[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:k,!0)),D.test(n[1])&&C.isPlainObject(e))for(var n in e)y(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(t=k.getElementById(n[2]))&&(this[0]=t,this.length=1),this}).prototype=C.fn,A=C(k);var M=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,o=[],a="string"!=typeof t&&C(t);if(!T.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&C.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(1<o.length?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(C(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return p(t,"parentNode")},parentsUntil:function(t,e,i){return p(t,"parentNode",i)},next:function(t){return $(t,"nextSibling")},prev:function(t){return $(t,"previousSibling")},nextAll:function(t){return p(t,"nextSibling")},prevAll:function(t){return p(t,"previousSibling")},nextUntil:function(t,e,i){return p(t,"nextSibling",i)},prevUntil:function(t,e,i){return p(t,"previousSibling",i)},siblings:function(t){return w((t.parentNode||{}).firstChild,t)},children:function(t){return w(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(S(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(n,s){C.fn[n]=function(t,e){var i=C.map(this,s,t);return"Until"!==n.slice(-5)&&(e=t),e&&"string"==typeof e&&(i=C.filter(e,i)),1<this.length&&(E[n]||C.uniqueSort(i),M.test(n)&&i.reverse()),this.pushStack(i)}});var H=/[^\x20\t\r\n\f]+/g;function O(t){return t}function N(t){throw t}function z(t,e,i,n){var s;try{t&&y(s=t.promise)?s.call(t).done(e).fail(i):t&&y(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}C.Callbacks=function(n){var t,i;n="string"==typeof n?(t=n,i={},C.each(t.match(H)||[],function(t,e){i[e]=!0}),i):C.extend({},n);function s(){for(r=r||n.once,a=o=!0;c.length;h=-1)for(e=c.shift();++h<l.length;)!1===l[h].apply(e[0],e[1])&&n.stopOnFalse&&(h=l.length,e=!1);n.memory||(e=!1),o=!1,r&&(l=e?[]:"")}var o,e,a,r,l=[],c=[],h=-1,u={add:function(){return l&&(e&&!o&&(h=l.length-1,c.push(e)),function i(t){C.each(t,function(t,e){y(e)?n.unique&&u.has(e)||l.push(e):e&&e.length&&"string"!==f(e)&&i(e)})}(arguments),e&&!o&&s()),this},remove:function(){return C.each(arguments,function(t,e){for(var i;-1<(i=C.inArray(e,l,i));)l.splice(i,1),i<=h&&h--}),this},has:function(t){return t?-1<C.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return r=c=[],l=e="",this},disabled:function(){return!l},lock:function(){return r=c=[],e||o||(l=e=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),o||s()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!a}};return u},C.extend({Deferred:function(t){var o=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],s="pending",a={state:function(){return s},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var s=arguments;return C.Deferred(function(n){C.each(o,function(t,e){var i=y(s[e[4]])&&s[e[4]];r[e[1]](function(){var t=i&&i.apply(this,arguments);t&&y(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),s=null}).promise()},then:function(e,i,n){var l=0;function c(s,o,a,r){return function(){function t(){var t,e;if(!(s<l)){if((t=a.apply(i,n))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,y(e)?r?e.call(t,c(l,o,O,r),c(l,o,N,r)):(l++,e.call(t,c(l,o,O,r),c(l,o,N,r),c(l,o,O,o.notifyWith))):(a!==O&&(i=void 0,n=[t]),(r||o.resolveWith)(i,n))}}var i=this,n=arguments,e=r?t:function(){try{t()}catch(t){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(t,e.stackTrace),l<=s+1&&(a!==N&&(i=void 0,n=[t]),o.rejectWith(i,n))}};s?e():(C.Deferred.getStackHook&&(e.stackTrace=C.Deferred.getStackHook()),x.setTimeout(e))}}return C.Deferred(function(t){o[0][3].add(c(0,t,y(n)?n:O,t.notifyWith)),o[1][3].add(c(0,t,y(e)?e:O)),o[2][3].add(c(0,t,y(i)?i:N))}).promise()},promise:function(t){return null!=t?C.extend(t,a):a}},r={};return C.each(o,function(t,e){var i=e[2],n=e[5];a[e[1]]=i.add,n&&i.add(function(){s=n},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),i.add(e[3].fire),r[e[0]]=function(){return r[e[0]+"With"](this===r?void 0:this,arguments),this},r[e[0]+"With"]=i.fireWith}),a.promise(r),t&&t.call(r,r),r},when:function(t){function e(e){return function(t){s[e]=this,o[e]=1<arguments.length?r.call(arguments):t,--i||a.resolveWith(s,o)}}var i=arguments.length,n=i,s=Array(n),o=r.call(arguments),a=C.Deferred();if(i<=1&&(z(t,a.done(e(n)).resolve,a.reject,!i),"pending"===a.state()||y(o[n]&&o[n].then)))return a.then();for(;n--;)z(o[n],e(n),a.reject);return a.promise()}});var L=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&L.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){x.setTimeout(function(){throw t})};var W=C.Deferred();function j(){k.removeEventListener("DOMContentLoaded",j),x.removeEventListener("load",j),C.ready()}C.fn.ready=function(t){return W.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0)!==t&&0<--C.readyWait||W.resolveWith(k,[C])}}),C.ready.then=W.then,"complete"===k.readyState||"loading"!==k.readyState&&!k.documentElement.doScroll?x.setTimeout(C.ready):(k.addEventListener("DOMContentLoaded",j),x.addEventListener("load",j));var F=function(t,e,i,n,s,o,a){var r=0,l=t.length,c=null==i;if("object"===f(i))for(r in s=!0,i)F(t,e,r,i[r],!0,o,a);else if(void 0!==n&&(s=!0,y(n)||(a=!0),c&&(e=a?(e.call(t,n),null):(c=e,function(t,e,i){return c.call(C(t),i)})),e))for(;r<l;r++)e(t[r],i,a?n:n.call(t[r],r,e(t[r],i)));return s?t:c?e.call(t):l?e(t[0],i):o},q=/^-ms-/,R=/-([a-z])/g;function B(t,e){return e.toUpperCase()}function Y(t){return t.replace(q,"ms-").replace(R,B)}function U(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function K(){this.expando=C.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},U(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[Y(e)]=i;else for(n in e)s[Y(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in n?[e]:e.match(H)||[]).length;for(;i--;)delete n[e[i]]}void 0!==e&&!C.isEmptyObject(n)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var V=new K,X=new K,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,G=/[A-Z]/g;function Z(t,e,i){var n,s;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(G,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:Q.test(s)?JSON.parse(s):s)}catch(t){}X.set(t,e,i)}else i=void 0;return i}C.extend({hasData:function(t){return X.hasData(t)||V.hasData(t)},data:function(t,e,i){return X.access(t,e,i)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,i){return V.access(t,e,i)},_removeData:function(t,e){V.remove(t,e)}}),C.fn.extend({data:function(i,t){var e,n,s,o=this[0],a=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){X.set(this,i)}):F(this,function(t){var e;return o&&void 0===t?void 0!==(e=X.get(o,i))||void 0!==(e=Z(o,i))?e:void 0:void this.each(function(){X.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(s=X.get(o),1===o.nodeType&&!V.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(n=a[e].name).indexOf("data-")&&(n=Y(n.slice(5)),Z(o,n,s[n]));V.set(o,"hasDataAttrs",!0)}return s},removeData:function(t){return this.each(function(){X.remove(this,t)})}}),C.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=V.get(t,e),i&&(!n||Array.isArray(i)?n=V.access(t,e,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=C.queue(t,e),n=i.length,s=i.shift(),o=C._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){C.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return V.get(t,i)||V.access(t,i,{empty:C.Callbacks("once memory").add(function(){V.remove(t,[e+"queue",i])})})}}),C.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?C.queue(this[0],e):void 0===i?this:this.each(function(){var t=C.queue(this,e,i);C._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&C.dequeue(this,e)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--s||o.resolveWith(a,[a])}var n,s=1,o=C.Deferred(),a=this,r=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(n=V.get(a[r],t+"queueHooks"))&&n.empty&&(s++,n.empty.add(i));return i(),o.promise(e)}});var J=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tt=new RegExp("^(?:([+-])=|)("+J+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],it=k.documentElement,nt=function(t){return C.contains(t.ownerDocument,t)},st={composed:!0};it.getRootNode&&(nt=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var ot=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&nt(t)&&"none"===C.css(t,"display")};function at(t,e,i,n){var s,o,a=20,r=n?function(){return n.cur()}:function(){return C.css(t,e,"")},l=r(),c=i&&i[3]||(C.cssNumber[e]?"":"px"),h=t.nodeType&&(C.cssNumber[e]||"px"!==c&&+l)&&tt.exec(C.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;a--;)C.style(t,e,h+c),(1-o)*(1-(o=r()/l||.5))<=0&&(a=0),h/=o;h*=2,C.style(t,e,h+c),i=i||[]}return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}var rt={};function lt(t,e){for(var i,n,s,o,a,r=[],l=0,c=t.length;l<c;l++)(n=t[l]).style&&(i=n.style.display,e?("none"===i&&(r[l]=V.get(n,"display")||null,r[l]||(n.style.display="")),""===n.style.display&&ot(n)&&(r[l]=(a=o=void 0,o=(s=n).ownerDocument,a=s.nodeName,(s=rt[a])||(o=o.body.appendChild(o.createElement(a)),s=C.css(o,"display"),o.parentNode.removeChild(o),"none"===s&&(s="block"),rt[a]=s)))):"none"!==i&&(r[l]="none",V.set(n,"display",i)));for(l=0;l<c;l++)null!=r[l]&&(t[l].style.display=r[l]);return t}C.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ot(this)?C(this).show():C(this).hide()})}});var ct=/^(?:checkbox|radio)$/i,ht=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ut=/^$|^module$|\/(?:java|ecma)script/i;Xe=k.createDocumentFragment().appendChild(k.createElement("div")),(d=k.createElement("input")).setAttribute("type","radio"),d.setAttribute("checked","checked"),d.setAttribute("name","t"),Xe.appendChild(d),b.checkClone=Xe.cloneNode(!0).cloneNode(!0).lastChild.checked,Xe.innerHTML="<textarea>x</textarea>",b.noCloneChecked=!!Xe.cloneNode(!0).lastChild.defaultValue,Xe.innerHTML="<option></option>",b.option=!!Xe.lastChild;var dt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pt(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&S(t,e)?C.merge([t],i):i}function ft(t,e){for(var i=0,n=t.length;i<n;i++)V.set(t[i],"globalEval",!e||V.get(e[i],"globalEval"))}dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,b.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var mt=/<|&#?\w+;/;function gt(t,e,i,n,s){for(var o,a,r,l,c,h=e.createDocumentFragment(),u=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===f(o))C.merge(u,o.nodeType?[o]:o);else if(mt.test(o)){for(a=a||h.appendChild(e.createElement("div")),r=(ht.exec(o)||["",""])[1].toLowerCase(),r=dt[r]||dt._default,a.innerHTML=r[1]+C.htmlPrefilter(o)+r[2],c=r[0];c--;)a=a.lastChild;C.merge(u,a.childNodes),(a=h.firstChild).textContent=""}else u.push(e.createTextNode(o));for(h.textContent="",d=0;o=u[d++];)if(n&&-1<C.inArray(o,n))s&&s.push(o);else if(l=nt(o),a=pt(h.appendChild(o),"script"),l&&ft(a),i)for(c=0;o=a[c++];)ut.test(o.type||"")&&i.push(o);return h}var vt=/^key/,bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,yt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function wt(){return!1}function xt(t,e){return t===function(){try{return k.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,i,n,s,o){var a,r;if("object"==typeof e){for(r in"string"!=typeof i&&(n=n||i,i=void 0),e)kt(t,r,i,n,e[r],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=wt;else if(!s)return t;return 1===o&&(a=s,(s=function(t){return C().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),t.each(function(){C.event.add(this,e,s,n,i)})}function Ct(t,s,o){o?(V.set(t,s,!1),C.event.add(t,s,{namespace:!1,handler:function(t){var e,i,n=V.get(this,s);if(1&t.isTrigger&&this[s]){if(n.length)(C.event.special[s]||{}).delegateType&&t.stopPropagation();else if(n=r.call(arguments),V.set(this,s,n),e=o(this,s),this[s](),n!==(i=V.get(this,s))||e?V.set(this,s,!1):i={},n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else n.length&&(V.set(this,s,{value:C.event.trigger(C.extend(n[0],C.Event.prototype),n.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===V.get(t,s)&&C.event.add(t,s,_t)}C.event={global:{},add:function(e,t,i,n,s){var o,a,r,l,c,h,u,d,p,f=V.get(e);if(U(e))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&C.find.matchesSelector(it,s),i.guid||(i.guid=C.guid++),(r=f.events)||(r=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(H)||[""]).length;l--;)u=p=(c=yt.exec(t[l])||[])[1],d=(c[2]||"").split(".").sort(),u&&(h=C.event.special[u]||{},u=(s?h.delegateType:h.bindType)||u,h=C.event.special[u]||{},c=C.extend({type:u,origType:p,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:d.join(".")},o),(p=r[u])||((p=r[u]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,d,a)||e.addEventListener&&e.addEventListener(u,a)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=i.guid)),s?p.splice(p.delegateCount++,0,c):p.push(c),C.event.global[u]=!0)},remove:function(t,e,i,n,s){var o,a,r,l,c,h,u,d,p,f,m,g=V.hasData(t)&&V.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(H)||[""]).length;c--;)if(p=m=(r=yt.exec(e[c])||[])[1],f=(r[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},d=l[p=(n?u.delegateType:u.bindType)||p]||[],r=r[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)h=d[o],!s&&m!==h.origType||i&&i.guid!==h.guid||r&&!r.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(o,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(t,h));a&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||C.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)C.event.remove(t,p+e[c],i,n,!0);C.isEmptyObject(l)&&V.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,a=new Array(arguments.length),r=C.event.fix(t),l=(V.get(this,"events")||Object.create(null))[r.type]||[],t=C.event.special[r.type]||{};for(a[0]=r,e=1;e<arguments.length;e++)a[e]=arguments[e];if(r.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,r)){for(o=C.event.handlers.call(this,r,l),e=0;(n=o[e++])&&!r.isPropagationStopped();)for(r.currentTarget=n.elem,i=0;(s=n.handlers[i++])&&!r.isImmediatePropagationStopped();)r.rnamespace&&!1!==s.namespace&&!r.rnamespace.test(s.namespace)||(r.handleObj=s,r.data=s.data,void 0!==(s=((C.event.special[s.origType]||{}).handle||s.handler).apply(n.elem,a))&&!1===(r.result=s)&&(r.preventDefault(),r.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,r),r.result}},handlers:function(t,e){var i,n,s,o,a,r=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},i=0;i<l;i++)void 0===a[s=(n=e[i]).selector+" "]&&(a[s]=n.needsContext?-1<C(s,this).index(c):C.find(s,this,null,[c]).length),a[s]&&o.push(n);o.length&&r.push({elem:c,handlers:o})}return c=this,l<e.length&&r.push({elem:c,handlers:e.slice(l)}),r},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ct.test(t.type)&&t.click&&S(t,"input")&&Ct(t,"click",_t),!1},trigger:function(t){t=this||t;return ct.test(t.type)&&t.click&&S(t,"input")&&Ct(t,"click"),!0},_default:function(t){t=t.target;return ct.test(t.type)&&t.click&&S(t,"input")&&V.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},C.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:wt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:wt,isPropagationStopped:wt,isImmediatePropagationStopped:wt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&vt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&bt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(t,e){C.event.special[t]={setup:function(){return Ct(this,t,xt),!1},trigger:function(){return Ct(this,t),!0},delegateType:e}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,s){C.event.special[t]={delegateType:s,bindType:s,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||C.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=s),e}}}),C.fn.extend({on:function(t,e,i,n){return kt(this,t,e,i,n)},one:function(t,e,i,n){return kt(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,C(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=wt),this.each(function(){C.event.remove(this,t,i,e)});for(s in t)this.off(s,e,t[s]);return this}});var Tt=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pt(t,e){return S(t,"table")&&S(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function It(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Mt(t,e){var i,n,s,o;if(1===e.nodeType){if(V.hasData(t)&&(o=V.get(t).events))for(s in V.remove(e,"handle events"),o)for(i=0,n=o[s].length;i<n;i++)C.event.add(e,s,o[s][i]);X.hasData(t)&&(t=X.access(t),t=C.extend({},t),X.set(e,t))}}function Et(i,n,s,o){n=g(n);var t,e,a,r,l,c,h=0,u=i.length,d=u-1,p=n[0],f=y(p);if(f||1<u&&"string"==typeof p&&!b.checkClone&&St.test(p))return i.each(function(t){var e=i.eq(t);f&&(n[0]=p.call(this,t,e.html())),Et(e,n,s,o)});if(u&&(e=(t=gt(n,i[0].ownerDocument,!1,i,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(r=(a=C.map(pt(t,"script"),At)).length;h<u;h++)l=t,h!==d&&(l=C.clone(l,!0,!0),r&&C.merge(a,pt(l,"script"))),s.call(i[h],l,h);if(r)for(c=a[a.length-1].ownerDocument,C.map(a,It),h=0;h<r;h++)l=a[h],ut.test(l.type||"")&&!V.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):_(l.textContent.replace(Dt,""),l,c))}return i}function $t(t,e,i){for(var n,s=e?C.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||C.cleanData(pt(n)),n.parentNode&&(i&&nt(n)&&ft(pt(n,"script")),n.parentNode.removeChild(n));return t}C.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,s,o,a,r,l,c,h=t.cloneNode(!0),u=nt(t);if(!(b.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(a=pt(h),n=0,s=(o=pt(t)).length;n<s;n++)r=o[n],l=a[n],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ct.test(r.type)?l.checked=r.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=r.defaultValue);if(e)if(i)for(o=o||pt(t),a=a||pt(h),n=0,s=o.length;n<s;n++)Mt(o[n],a[n]);else Mt(t,h);return 0<(a=pt(h,"script")).length&&ft(a,!u&&pt(t,"script")),h},cleanData:function(t){for(var e,i,n,s=C.event.special,o=0;void 0!==(i=t[o]);o++)if(U(i)){if(e=i[V.expando]){if(e.events)for(n in e.events)s[n]?C.event.remove(i,n):C.removeEvent(i,n,e.handle);i[V.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),C.fn.extend({detach:function(t){return $t(this,t,!0)},remove:function(t){return $t(this,t)},text:function(t){return F(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Et(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pt(this,t).appendChild(t)})},prepend:function(){return Et(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Pt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return Et(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Et(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return F(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!dt[(ht.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(C.cleanData(pt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Et(this,arguments,function(t){var e=this.parentNode;C.inArray(this,i)<0&&(C.cleanData(pt(this)),e&&e.replaceChild(t,this))},i)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){C.fn[t]=function(t){for(var e,i=[],n=C(t),s=n.length-1,o=0;o<=s;o++)e=o===s?this:this.clone(!0),C(n[o])[a](e),l.apply(i,e.get());return this.pushStack(i)}});function Ht(t,e,i){var n,s={};for(n in e)s[n]=t.style[n],t.style[n]=e[n];for(n in i=i.call(t),e)t.style[n]=s[n];return i}var Ot,Nt,zt,Lt,Wt,jt,Ft,qt,Rt=new RegExp("^("+J+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=x),e.getComputedStyle(t)},Yt=new RegExp(et.join("|"),"i");function Ut(){var t;qt&&(Ft.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",qt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(Ft).appendChild(qt),t=x.getComputedStyle(qt),Ot="1%"!==t.top,jt=12===Kt(t.marginLeft),qt.style.right="60%",Lt=36===Kt(t.right),Nt=36===Kt(t.width),qt.style.position="absolute",zt=12===Kt(qt.offsetWidth/3),it.removeChild(Ft),qt=null)}function Kt(t){return Math.round(parseFloat(t))}function Vt(t,e,i){var n,s,o=t.style;return(i=i||Bt(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||nt(t)||(s=C.style(t,e)),!b.pixelBoxStyles()&&Rt.test(s)&&Yt.test(e)&&(n=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=t,o.maxWidth=e)),void 0!==s?s+"":s}function Xt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Ft=k.createElement("div"),(qt=k.createElement("div")).style&&(qt.style.backgroundClip="content-box",qt.cloneNode(!0).style.backgroundClip="",b.clearCloneStyle="content-box"===qt.style.backgroundClip,C.extend(b,{boxSizingReliable:function(){return Ut(),Nt},pixelBoxStyles:function(){return Ut(),Lt},pixelPosition:function(){return Ut(),Ot},reliableMarginLeft:function(){return Ut(),jt},scrollboxSize:function(){return Ut(),zt},reliableTrDimensions:function(){var t,e,i;return null==Wt&&(t=k.createElement("table"),i=k.createElement("tr"),e=k.createElement("div"),t.style.cssText="position:absolute;left:-11111px",i.style.height="1px",e.style.height="9px",it.appendChild(t).appendChild(i).appendChild(e),i=x.getComputedStyle(i),Wt=3<parseInt(i.height),it.removeChild(t)),Wt}}));var Qt=["Webkit","Moz","ms"],Gt=k.createElement("div").style,Zt={};function Jt(t){var e=C.cssProps[t]||Zt[t];return e||(t in Gt?t:Zt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Qt.length;i--;)if((t=Qt[i]+e)in Gt)return t}(t)||t)}var te=/^(none|table(?!-c[ea]).+)/,ee=/^--/,ie={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function se(t,e,i){var n=tt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function oe(t,e,i,n,s,o){var a="width"===e?1:0,r=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=C.css(t,i+et[a],!0,s)),n?("content"===i&&(l-=C.css(t,"padding"+et[a],!0,s)),"margin"!==i&&(l-=C.css(t,"border"+et[a]+"Width",!0,s))):(l+=C.css(t,"padding"+et[a],!0,s),"padding"!==i?l+=C.css(t,"border"+et[a]+"Width",!0,s):r+=C.css(t,"border"+et[a]+"Width",!0,s));return!n&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-r-.5))||0),l}function ae(t,e,i){var n=Bt(t),s=(!b.boxSizingReliable()||i)&&"border-box"===C.css(t,"boxSizing",!1,n),o=s,a=Vt(t,e,n),r="offset"+e[0].toUpperCase()+e.slice(1);if(Rt.test(a)){if(!i)return a;a="auto"}return(!b.boxSizingReliable()&&s||!b.reliableTrDimensions()&&S(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===C.css(t,"display",!1,n))&&t.getClientRects().length&&(s="border-box"===C.css(t,"boxSizing",!1,n),(o=r in t)&&(a=t[r])),(a=parseFloat(a)||0)+oe(t,e,i||(s?"border":"content"),o,n,a)+"px"}function re(t,e,i,n,s){return new re.prototype.init(t,e,i,n,s)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Vt(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,a,r=Y(e),l=ee.test(e),c=t.style;if(l||(e=Jt(r)),a=C.cssHooks[e]||C.cssHooks[r],void 0===i)return a&&"get"in a&&void 0!==(s=a.get(t,!1,n))?s:c[e];"string"===(o=typeof i)&&(s=tt.exec(i))&&s[1]&&(i=at(t,e,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(C.cssNumber[r]?"":"px")),b.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var s,o=Y(e);return ee.test(e)||(e=Jt(o)),(o=C.cssHooks[e]||C.cssHooks[o])&&"get"in o&&(s=o.get(t,!0,i)),void 0===s&&(s=Vt(t,e,n)),"normal"===s&&e in ne&&(s=ne[e]),""===i||i?(e=parseFloat(s),!0===i||isFinite(e)?e||0:s):s}}),C.each(["height","width"],function(t,r){C.cssHooks[r]={get:function(t,e,i){if(e)return!te.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ae(t,r,i):Ht(t,ie,function(){return ae(t,r,i)})},set:function(t,e,i){var n,s=Bt(t),o=!b.scrollboxSize()&&"absolute"===s.position,a=(o||i)&&"border-box"===C.css(t,"boxSizing",!1,s),i=i?oe(t,r,i,a,s):0;return a&&o&&(i-=Math.ceil(t["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(s[r])-oe(t,r,"border",!1,s)-.5)),i&&(n=tt.exec(e))&&"px"!==(n[3]||"px")&&(t.style[r]=e,e=C.css(t,r)),se(0,e,i)}}}),C.cssHooks.marginLeft=Xt(b.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||t.getBoundingClientRect().left-Ht(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(s,o){C.cssHooks[s+o]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[s+et[e]+o]=n[e]||n[e-2]||n[0];return i}},"margin"!==s&&(C.cssHooks[s+o].set=se)}),C.fn.extend({css:function(t,e){return F(this,function(t,e,i){var n,s,o={},a=0;if(Array.isArray(e)){for(n=Bt(t),s=e.length;a<s;a++)o[e[a]]=C.css(t,e[a],!1,n);return o}return void 0!==i?C.style(t,e,i):C.css(t,e)},t,e,1<arguments.length)}}),(C.Tween=re).prototype={constructor:re,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(C.cssNumber[i]?"":"px")},cur:function(){var t=re.propHooks[this.prop];return(t&&t.get?t:re.propHooks._default).get(this)},run:function(t){var e,i=re.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:re.propHooks._default).set(this),this}},re.prototype.init.prototype=re.prototype,re.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=C.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[Jt(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},re.propHooks.scrollTop=re.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=re.prototype.init,C.fx.step={};var le,ce,he=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function de(){ce&&(!1===k.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(de):x.setTimeout(de,C.fx.interval),C.fx.tick())}function pe(){return x.setTimeout(function(){le=void 0}),le=Date.now()}function fe(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=et[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function me(t,e,i){for(var n,s=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),o=0,a=s.length;o<a;o++)if(n=s[o].call(i,e,t))return n}function ge(s,t,e){var i,o,n=0,a=ge.prefilters.length,r=C.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=le||pe(),t=Math.max(0,c.startTime+c.duration-t),e=1-(t/c.duration||0),i=0,n=c.tweens.length;i<n;i++)c.tweens[i].run(e);return r.notifyWith(s,[c,e,t]),e<1&&n?t:(n||r.notifyWith(s,[c,1,0]),r.resolveWith(s,[c]),!1)},c=r.promise({elem:s,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},e),originalProperties:t,originalOptions:e,startTime:le||pe(),duration:e.duration,tweens:[],createTween:function(t,e){t=C.Tween(s,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(t),t},stop:function(t){var e=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;e<i;e++)c.tweens[e].run(1);return t?(r.notifyWith(s,[c,1,0]),r.resolveWith(s,[c,t])):r.rejectWith(s,[c,t]),this}}),h=c.props;for(!function(t,e){var i,n,s,o,a;for(i in t)if(s=e[n=Y(i)],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(a=C.cssHooks[n])&&"expand"in a)for(i in o=a.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(h,c.opts.specialEasing);n<a;n++)if(i=ge.prefilters[n].call(c,s,h,c.opts))return y(i.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return C.map(h,me,c),y(c.opts.start)&&c.opts.start.call(s,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:s,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(ge,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return at(i.elem,t,tt.exec(e),i),i}]},tweener:function(t,e){for(var i,n=0,s=(t=y(t)?(e=t,["*"]):t.match(H)).length;n<s;n++)i=t[n],ge.tweeners[i]=ge.tweeners[i]||[],ge.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,a,r,l,c,h="width"in e||"height"in e,u=this,d={},p=t.style,f=t.nodeType&&ot(t),m=V.get(t,"fxshow");for(n in i.queue||(null==(a=C._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,r=a.empty.fire,a.empty.fire=function(){a.unqueued||r()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,C.queue(t,"fx").length||a.empty.fire()})})),e)if(s=e[n],he.test(s)){if(delete e[n],o=o||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;f=!0}d[n]=m&&m[n]||C.style(t,n)}if((l=!C.isEmptyObject(e))||!C.isEmptyObject(d))for(n in h&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=V.get(t,"display")),"none"===(h=C.css(t,"display"))&&(c?h=c:(lt([t],!0),c=t.style.display||c,h=C.css(t,"display"),lt([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===C.css(t,"float")&&(l||(u.done(function(){p.display=c}),null==c&&(h=p.display,c="none"===h?"":h)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,d)l||(m?"hidden"in m&&(f=m.hidden):m=V.access(t,"fxshow",{display:c}),o&&(m.hidden=!f),f&&lt([t],!0),u.done(function(){for(n in f||lt([t]),V.remove(t,"fxshow"),d)C.style(t,n,d[n])})),l=me(f?m[n]:0,n,u),n in m||(m[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ge.prefilters.unshift(t):ge.prefilters.push(t)}}),C.speed=function(t,e,i){var n=t&&"object"==typeof t?C.extend({},t):{complete:i||!i&&e||y(t)&&t,duration:t,easing:i&&e||e&&!y(e)&&e};return C.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in C.fx.speeds?n.duration=C.fx.speeds[n.duration]:n.duration=C.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){y(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(t,e,i,n){return this.filter(ot).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var s=C.isEmptyObject(e),o=C.speed(t,i,n),n=function(){var t=ge(this,C.extend({},e),o);(s||V.get(this,"finish"))&&t.stop(!0)};return n.finish=n,s||!1===o.queue?this.each(n):this.queue(o.queue,n)},stop:function(s,t,o){function a(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof s&&(o=t,t=s,s=void 0),t&&this.queue(s||"fx",[]),this.each(function(){var t=!0,e=null!=s&&s+"queueHooks",i=C.timers,n=V.get(this);if(e)n[e]&&n[e].stop&&a(n[e]);else for(e in n)n[e]&&n[e].stop&&ue.test(e)&&a(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=s&&i[e].queue!==s||(i[e].anim.stop(o),t=!1,i.splice(e,1));!t&&o||C.dequeue(this,s)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=V.get(this),i=e[a+"queue"],n=e[a+"queueHooks"],s=C.timers,o=i?i.length:0;for(e.finish=!0,C.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===a&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),C.each(["toggle","show","hide"],function(t,n){var s=C.fn[n];C.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?s.apply(this,arguments):this.animate(fe(n,!0),t,e,i)}}),C.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){C.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),C.timers=[],C.fx.tick=function(){var t,e=0,i=C.timers;for(le=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||C.fx.stop(),le=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ce||(ce=!0,de())},C.fx.stop=function(){ce=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(n,t){return n=C.fx&&C.fx.speeds[n]||n,t=t||"fx",this.queue(t,function(t,e){var i=x.setTimeout(t,n);e.stop=function(){x.clearTimeout(i)}})},Xe=k.createElement("input"),J=k.createElement("select").appendChild(k.createElement("option")),Xe.type="checkbox",b.checkOn=""!==Xe.value,b.optSelected=J.selected,(Xe=k.createElement("input")).value="t",Xe.type="radio",b.radioValue="t"===Xe.value;var ve,be=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return F(this,C.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?C.prop(t,e,i):(1===o&&C.isXMLDoc(t)||(s=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?ve:void 0)),void 0!==i?null===i?void C.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):!(s&&"get"in s&&null!==(n=s.get(t,e)))&&null==(n=C.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!b.radioValue&&"radio"===e&&S(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(H);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),ve={set:function(t,e,i){return!1===e?C.removeAttr(t,i):t.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var a=be[e]||C.find.attr;be[e]=function(t,e,i){var n,s,o=e.toLowerCase();return i||(s=be[o],be[o]=n,n=null!=a(t,e,i)?o:null,be[o]=s),n}});var ye=/^(?:input|select|textarea|button)$/i,_e=/^(?:a|area)$/i;function we(t){return(t.match(H)||[]).join(" ")}function xe(t){return t.getAttribute&&t.getAttribute("class")||""}function ke(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(H)||[]}C.fn.extend({prop:function(t,e){return F(this,C.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,s=C.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||_e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),b.optSelected||(C.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,i,n,s,o,a,r=0;if(y(e))return this.each(function(t){C(this).addClass(e.call(this,t,xe(this)))});if((t=ke(e)).length)for(;i=this[r++];)if(a=xe(i),n=1===i.nodeType&&" "+we(a)+" "){for(o=0;s=t[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a!==(a=we(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,s,o,a,r=0;if(y(e))return this.each(function(t){C(this).removeClass(e.call(this,t,xe(this)))});if(!arguments.length)return this.attr("class","");if((t=ke(e)).length)for(;i=this[r++];)if(a=xe(i),n=1===i.nodeType&&" "+we(a)+" "){for(o=0;s=t[o++];)for(;-1<n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");a!==(a=we(n))&&i.setAttribute("class",a)}return this},toggleClass:function(s,e){var o=typeof s,a="string"==o||Array.isArray(s);return"boolean"==typeof e&&a?e?this.addClass(s):this.removeClass(s):y(s)?this.each(function(t){C(this).toggleClass(s.call(this,t,xe(this),e),e)}):this.each(function(){var t,e,i,n;if(a)for(e=0,i=C(this),n=ke(s);t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==s&&"boolean"!=o||((t=xe(this))&&V.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==s&&V.get(this,"__className__")||""))})},hasClass:function(t){for(var e,i=0,n=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+we(xe(e))+" ").indexOf(n))return!0;return!1}});var Ce=/\r/g;C.fn.extend({val:function(e){var i,t,n,s=this[0];return arguments.length?(n=y(e),this.each(function(t){1===this.nodeType&&(null==(t=n?e.call(this,t,C(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=C.map(t,function(t){return null==t?"":t+""})),(i=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):s?(i=C.valHooks[s.type]||C.valHooks[s.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(s,"value"))?t:"string"==typeof(t=s.value)?t.replace(Ce,""):null==t?"":t:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:we(C.text(t))}},select:{get:function(t){for(var e,i=t.options,n=t.selectedIndex,s="select-one"===t.type,o=s?null:[],a=s?n+1:i.length,r=n<0?a:s?n:0;r<a;r++)if(((e=i[r]).selected||r===n)&&!e.disabled&&(!e.parentNode.disabled||!S(e.parentNode,"optgroup"))){if(e=C(e).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var i,n,s=t.options,o=C.makeArray(e),a=s.length;a--;)((n=s[a]).selected=-1<C.inArray(C.valHooks.option.get(n),o))&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<C.inArray(C(t).val(),e)}},b.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),b.focusin="onfocusin"in x;function Te(t){t.stopPropagation()}var Se=/^(?:focusinfocus|focusoutblur)$/;C.extend(C.event,{trigger:function(t,e,i,n){var s,o,a,r,l,c,h,u=[i||k],d=v.call(t,"type")?t.type:t,p=v.call(t,"namespace")?t.namespace.split("."):[],f=h=o=i=i||k;if(3!==i.nodeType&&8!==i.nodeType&&!Se.test(d+C.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),r=d.indexOf(":")<0&&"on"+d,(t=t[C.expando]?t:new C.Event(d,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:C.makeArray(e,[t]),c=C.event.special[d]||{},n||!c.trigger||!1!==c.trigger.apply(i,e))){if(!n&&!c.noBubble&&!m(i)){for(a=c.delegateType||d,Se.test(a+d)||(f=f.parentNode);f;f=f.parentNode)u.push(f),o=f;o===(i.ownerDocument||k)&&u.push(o.defaultView||o.parentWindow||x)}for(s=0;(f=u[s++])&&!t.isPropagationStopped();)h=f,t.type=1<s?a:c.bindType||d,(l=(V.get(f,"events")||Object.create(null))[t.type]&&V.get(f,"handle"))&&l.apply(f,e),(l=r&&f[r])&&l.apply&&U(f)&&(t.result=l.apply(f,e),!1===t.result&&t.preventDefault());return t.type=d,n||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),e)||!U(i)||r&&y(i[d])&&!m(i)&&((o=i[r])&&(i[r]=null),C.event.triggered=d,t.isPropagationStopped()&&h.addEventListener(d,Te),i[d](),t.isPropagationStopped()&&h.removeEventListener(d,Te),C.event.triggered=void 0,o&&(i[r]=o)),t.result}},simulate:function(t,e,i){t=C.extend(new C.Event,i,{type:t,isSimulated:!0});C.event.trigger(t,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return C.event.trigger(t,e,i,!0)}}),b.focusin||C.each({focus:"focusin",blur:"focusout"},function(i,n){function s(t){C.event.simulate(n,t.target,C.event.fix(t))}C.event.special[n]={setup:function(){var t=this.ownerDocument||this.document||this,e=V.access(t,n);e||t.addEventListener(i,s,!0),V.access(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=V.access(t,n)-1;e?V.access(t,n,e):(t.removeEventListener(i,s,!0),V.remove(t,n))}}});var De=x.location,Pe={guid:Date.now()},Ae=/\?/;C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e};var Ie=/\[\]$/,Me=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,$e=/^(?:input|select|textarea|keygen)/i;C.param=function(t,e){function i(t,e){e=y(e)?e():e,s[s.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var n,s=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){i(this.name,this.value)});else for(n in t)!function i(n,t,s,o){if(Array.isArray(t))C.each(t,function(t,e){s||Ie.test(n)?o(n,e):i(n+"["+("object"==typeof e&&null!=e?t:"")+"]",e,s,o)});else if(s||"object"!==f(t))o(n,t);else for(var e in t)i(n+"["+e+"]",t[e],s,o)}(n,t[n],e,i);return s.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&$e.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!ct.test(t))}).map(function(t,e){var i=C(this).val();return null==i?null:Array.isArray(i)?C.map(i,function(t){return{name:e.name,value:t.replace(Me,"\r\n")}}):{name:e.name,value:i.replace(Me,"\r\n")}}).get()}});var He=/%20/g,Oe=/#.*$/,Ne=/([?&])_=[^&]*/,ze=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,We=/^\/\//,je={},Fe={},qe="*/".concat("*"),Re=k.createElement("a");function Be(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,s=t.toLowerCase().match(H)||[];if(y(e))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(o[i]=o[i]||[]).unshift(e)):(o[i]=o[i]||[]).push(e)}}function Ye(e,n,s,o){var a={},r=e===Fe;function l(t){var i;return a[t]=!0,C.each(e[t]||[],function(t,e){e=e(n,s,o);return"string"!=typeof e||r||a[e]?r?!(i=e):void 0:(n.dataTypes.unshift(e),l(e),!1)}),i}return l(n.dataTypes[0])||!a["*"]&&l("*")}function Ue(t,e){var i,n,s=C.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n=n||{})[i]=e[i]);return n&&C.extend(!0,t,n),t}Re.href=De.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:De.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(De.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,C.ajaxSettings),e):Ue(C.ajaxSettings,t)},ajaxPrefilter:Be(je),ajaxTransport:Be(Fe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var l,c,h,i,u,n,d,p,s,f=C.ajaxSetup({},e),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),b=C.Callbacks("once memory"),y=f.statusCode||{},o={},a={},r="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(d){if(!i)for(i={};e=ze.exec(h);)i[e[1].toLowerCase()+" "]=(i[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=i[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return d?h:null},setRequestHeader:function(t,e){return null==d&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,o[t]=e),this},overrideMimeType:function(t){return null==d&&(f.mimeType=t),this},statusCode:function(t){if(t)if(d)_.always(t[_.status]);else for(var e in t)y[e]=[y[e],t[e]];return this},abort:function(t){t=t||r;return l&&l.abort(t),w(0,t),this}};if(v.promise(_),f.url=((t||f.url||De.href)+"").replace(We,De.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(H)||[""],null==f.crossDomain){n=k.createElement("a");try{n.href=f.url,n.href=n.href,f.crossDomain=Re.protocol+"//"+Re.host!=n.protocol+"//"+n.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Ye(je,f,e,_),d)return _;for(s in(p=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Le.test(f.type),c=f.url.replace(Oe,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(He,"+")):(t=f.url.slice(c.length),f.data&&(f.processData||"string"==typeof f.data)&&(c+=(Ae.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(c=c.replace(Ne,"$1"),t=(Ae.test(c)?"&":"?")+"_="+Pe.guid+++t),f.url=c+t),f.ifModified&&(C.lastModified[c]&&_.setRequestHeader("If-Modified-Since",C.lastModified[c]),C.etag[c]&&_.setRequestHeader("If-None-Match",C.etag[c])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qe+"; q=0.01":""):f.accepts["*"]),f.headers)_.setRequestHeader(s,f.headers[s]);if(f.beforeSend&&(!1===f.beforeSend.call(m,_,f)||d))return _.abort();if(r="abort",b.add(f.complete),_.done(f.success),_.fail(f.error),l=Ye(Fe,f,e,_)){if(_.readyState=1,p&&g.trigger("ajaxSend",[_,f]),d)return _;f.async&&0<f.timeout&&(u=x.setTimeout(function(){_.abort("timeout")},f.timeout));try{d=!1,l.send(o,w)}catch(t){if(d)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,e,i,n){var s,o,a,r=e;d||(d=!0,u&&x.clearTimeout(u),l=void 0,h=n||"",_.readyState=0<t?4:0,n=200<=t&&t<300||304===t,i&&(a=function(t,e,i){for(var n,s,o,a,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in r)if(r[s]&&r[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}a=a||s}o=o||a}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,_,i)),!n&&-1<C.inArray("script",f.dataTypes)&&(f.converters["text script"]=function(){}),a=function(t,e,i,n){var s,o,a,r,l,c={},h=t.dataTypes.slice();if(h[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=h.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(s in c)if(r=s.split(" "),r[1]===o&&(a=c[l+" "+r[0]]||c["* "+r[0]])){!0===a?a=c[s]:!0!==c[s]&&(o=r[0],h.unshift(r[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,a,_,n),n?(f.ifModified&&((i=_.getResponseHeader("Last-Modified"))&&(C.lastModified[c]=i),(i=_.getResponseHeader("etag"))&&(C.etag[c]=i)),204===t||"HEAD"===f.type?r="nocontent":304===t?r="notmodified":(r=a.state,s=a.data,n=!(o=a.error))):(o=r,!t&&r||(r="error",t<0&&(t=0))),_.status=t,_.statusText=(e||r)+"",n?v.resolveWith(m,[s,r,_]):v.rejectWith(m,[_,r,o]),_.statusCode(y),y=void 0,p&&g.trigger(n?"ajaxSuccess":"ajaxError",[_,f,n?s:o]),b.fireWith(m,[_,r]),p&&(g.trigger("ajaxComplete",[_,f]),--C.active||C.event.trigger("ajaxStop")))}return _},getJSON:function(t,e,i){return C.get(t,e,i,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,s){C[s]=function(t,e,i,n){return y(e)&&(n=n||i,i=e,e=void 0),C.ajax(C.extend({url:t,type:s,dataType:n,data:e,success:i},C.isPlainObject(t)&&t))}}),C.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),C._evalUrl=function(t,e,i){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,i)}})},C.fn.extend({wrapAll:function(t){return this[0]&&(y(t)&&(t=t.call(this[0])),t=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return y(i)?this.each(function(t){C(this).wrapInner(i.call(this,t))}):this.each(function(){var t=C(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=y(e);return this.each(function(t){C(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},Ve=C.ajaxSettings.xhr();b.cors=!!Ve&&"withCredentials"in Ve,b.ajax=Ve=!!Ve,C.ajaxTransport(function(s){var o,a;if(b.cors||Ve&&!s.crossDomain)return{send:function(t,e){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);o=function(t){return function(){o&&(o=a=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(Ke[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),a=n.onerror=n.ontimeout=o("error"),void 0!==n.onabort?n.onabort=a:n.onreadystatechange=function(){4===n.readyState&&x.setTimeout(function(){o&&a()})},o=o("abort");try{n.send(s.hasContent&&s.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(i){var n,s;if(i.crossDomain||i.scriptAttrs)return{send:function(t,e){n=C("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),k.head.appendChild(n[0])},abort:function(){s&&s()}}});var Xe,Qe=[],Ge=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Qe.pop()||C.expando+"_"+Pe.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,a=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ge,"$1"+n):!1!==t.jsonp&&(t.url+=(Ae.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||C.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=x[n],x[n]=function(){o=arguments},i.always(function(){void 0===s?C(x).removeProp(n):x[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,Qe.push(n)),o&&y(s)&&s(o[0]),o=s=void 0}),"script"}),b.createHTMLDocument=((Xe=k.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xe.childNodes.length),C.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(b.createHTMLDocument?((n=(e=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,e.head.appendChild(n)):e=k),n=!i&&[],(i=D.exec(t))?[e.createElement(i[1])]:(i=gt([t],e,n),n&&n.length&&C(n).remove(),C.merge([],i.childNodes)));var n},C.fn.load=function(t,e,i){var n,s,o,a=this,r=t.indexOf(" ");return-1<r&&(n=we(t.slice(r)),t=t.slice(0,r)),y(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),0<a.length&&C.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(n?C("<div>").append(C.parseHTML(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(t,e,i){var n,s,o,a,r=C.css(t,"position"),l=C(t),c={};"static"===r&&(t.style.position="relative"),o=l.offset(),n=C.css(t,"top"),a=C.css(t,"left"),a=("absolute"===r||"fixed"===r)&&-1<(n+a).indexOf("auto")?(s=(r=l.position()).top,r.left):(s=parseFloat(n)||0,parseFloat(a)||0),y(e)&&(e=e.call(t,i,C.extend({},o))),null!=e.top&&(c.top=e.top-o.top+s),null!=e.left&&(c.left=e.left-o.left+a),"using"in e?e.using.call(t,c):("number"==typeof c.top&&(c.top+="px"),"number"==typeof c.left&&(c.left+="px"),l.css(c))}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===C.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),s.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-C.css(n,"marginTop",!0),left:e.left-s.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||it})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;C.fn[e]=function(t){return F(this,function(t,e,i){var n;return m(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i?n?n[s]:t[e]:void(n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i)},e,t,arguments.length)}}),C.each(["top","left"],function(t,i){C.cssHooks[i]=Xt(b.pixelPosition,function(t,e){if(e)return e=Vt(t,i),Rt.test(e)?C(t).position()[i]+"px":e})}),C.each({Height:"height",Width:"width"},function(a,r){C.each({padding:"inner"+a,content:r,"":"outer"+a},function(n,o){C.fn[o]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return F(this,function(t,e,i){var n;return m(t)?0===o.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+a],n["scroll"+a],t.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?C.css(t,e,s):C.style(t,e,i,s)},r,i?t:void 0,i)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){C.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}});var Ze=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(t,e){var i,n;if("string"==typeof e&&(n=t[e],e=t,t=n),y(t))return i=r.call(arguments,2),(n=function(){return t.apply(e||this,i.concat(r.call(arguments)))}).guid=t.guid=t.guid||C.guid++,n},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=S,C.isFunction=y,C.isWindow=m,C.camelCase=Y,C.type=f,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},C.trim=function(t){return null==t?"":(t+"").replace(Ze,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C});var Je=x.jQuery,ti=x.$;return C.noConflict=function(t){return x.$===C&&(x.$=ti),t&&x.jQuery===C&&(x.jQuery=Je),C},void 0===t&&(x.jQuery=x.$=C),C})},{}],3:[function(e,i,n){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):void 0!==n?i.exports=t(e("jquery")):t(jQuery)}(function(c){"use strict";var n,a=window.Slick||{};n=0,(a=function(t,e){var i=this;i.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},i.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(i,i.initials),i.activeBreakpoint=null,i.animType=null,i.animProp=null,i.breakpoints=[],i.breakpointSettings=[],i.cssTransitions=!1,i.focussed=!1,i.interrupted=!1,i.hidden="hidden",i.paused=!0,i.positionProp=null,i.respondTo=null,i.rowCount=1,i.shouldClick=!0,i.$slider=c(t),i.$slidesCache=null,i.transformType=null,i.transitionType=null,i.visibilityChange="visibilitychange",i.windowWidth=0,i.windowTimer=null,t=c(t).data("slick")||{},i.options=c.extend({},i.defaults,e,t),i.currentSlide=i.options.initialSlide,i.originalSettings=i.options,void 0!==document.mozHidden?(i.hidden="mozHidden",i.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(i.hidden="webkitHidden",i.visibilityChange="webkitvisibilitychange"),i.autoPlay=c.proxy(i.autoPlay,i),i.autoPlayClear=c.proxy(i.autoPlayClear,i),i.autoPlayIterator=c.proxy(i.autoPlayIterator,i),i.changeSlide=c.proxy(i.changeSlide,i),i.clickHandler=c.proxy(i.clickHandler,i),i.selectHandler=c.proxy(i.selectHandler,i),i.setPosition=c.proxy(i.setPosition,i),i.swipeHandler=c.proxy(i.swipeHandler,i),i.dragHandler=c.proxy(i.dragHandler,i),i.keyHandler=c.proxy(i.keyHandler,i),i.instanceUid=n++,i.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,i.registerBreakpoints(),i.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},a.prototype.addSlide=a.prototype.slickAdd=function(t,e,i){var n=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=n.slideCount)return!1;n.unload(),"number"==typeof e?0===e&&0===n.$slides.length?c(t).appendTo(n.$slideTrack):i?c(t).insertBefore(n.$slides.eq(e)):c(t).insertAfter(n.$slides.eq(e)):!0===i?c(t).prependTo(n.$slideTrack):c(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},a.prototype.animateHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.animate({height:t},e.options.speed))},a.prototype.animateSlide=function(t,e){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,e):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,e):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate("+t+"px, 0px)":i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate3d("+t+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(i),e&&setTimeout(function(){n.disableTransition(),e.call()},n.options.speed))},a.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=c(t).not(this.$slider)),t},a.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},a.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(i)},a.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},a.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},a.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},a.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},a.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(c("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},a.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},a.prototype.buildRows=function(){var t,e,i,n=this,s=document.createDocumentFragment(),o=n.$slider.children();if(0<n.options.rows){for(i=n.options.slidesPerRow*n.options.rows,e=Math.ceil(o.length/i),t=0;t<e;t++){for(var a=document.createElement("div"),r=0;r<n.options.rows;r++){for(var l=document.createElement("div"),c=0;c<n.options.slidesPerRow;c++){var h=t*i+(r*n.options.slidesPerRow+c);o.get(h)&&l.appendChild(o.get(h))}a.appendChild(l)}s.appendChild(a)}n.$slider.empty().append(s),n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}},a.prototype.checkResponsive=function(t,e){var i,n,s,o=this,a=!1,r=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?s=l:"slider"===o.respondTo?s=r:"min"===o.respondTo&&(s=Math.min(l,r)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in n=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?s<o.breakpoints[i]&&(n=o.breakpoints[i]):s>o.breakpoints[i]&&(n=o.breakpoints[i]));null!==n?null!==o.activeBreakpoint&&n===o.activeBreakpoint&&!e||(o.activeBreakpoint=n,"unslick"===o.breakpointSettings[n]?o.unslick(n):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[n]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=n):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),a=n),t||!1===a||o.$slider.trigger("breakpoint",[o,a])}},a.prototype.changeSlide=function(t,e){var i,n=this,s=c(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,t.data.message){case"previous":o=0==i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-o,!1,e);break;case"next":o=0==i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+o,!1,e);break;case"index":var o=0===t.data.index?0:t.data.index||s.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(o),!1,e),s.children().trigger("focus");break;default:return}},a.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),i=0;if(t>e[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},a.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},a.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",c.proxy(t.interrupt,t,!1))},a.prototype.cleanUpRows=function(){var t;0<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},a.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},a.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},a.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},a.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},a.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},a.prototype.filterSlides=a.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},a.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},a.prototype.getCurrent=a.prototype.slickCurrentSlide=function(){return this.currentSlide},a.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},a.prototype.getLeft=function(t){var e,i,n=this,s=0;return n.slideOffset=0,e=n.$slides.first().outerHeight(!0),!0===n.options.infinite?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=n.slideWidth*n.options.slidesToShow*-1,i=-1,!0===n.options.vertical&&!0===n.options.centerMode&&(2===n.options.slidesToShow?i=-1.5:1===n.options.slidesToShow&&(i=-2)),s=e*n.options.slidesToShow*i),n.slideCount%n.options.slidesToScroll!=0&&t+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(s=t>n.slideCount?(n.slideOffset=(n.options.slidesToShow-(t-n.slideCount))*n.slideWidth*-1,(n.options.slidesToShow-(t-n.slideCount))*e*-1):(n.slideOffset=n.slideCount%n.options.slidesToScroll*n.slideWidth*-1,n.slideCount%n.options.slidesToScroll*e*-1))):t+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(t+n.options.slidesToShow-n.slideCount)*n.slideWidth,s=(t+n.options.slidesToShow-n.slideCount)*e),n.slideCount<=n.options.slidesToShow&&(s=n.slideOffset=0),!0===n.options.centerMode&&n.slideCount<=n.options.slidesToShow?n.slideOffset=n.slideWidth*Math.floor(n.options.slidesToShow)/2-n.slideWidth*n.slideCount/2:!0===n.options.centerMode&&!0===n.options.infinite?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:!0===n.options.centerMode&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),e=!1===n.options.vertical?t*n.slideWidth*-1+n.slideOffset:t*e*-1+s,!0===n.options.variableWidth&&(s=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow),e=!0===n.options.rtl?s[0]?-1*(n.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,!0===n.options.centerMode&&(s=n.slideCount<=n.options.slidesToShow||!1===n.options.infinite?n.$slideTrack.children(".slick-slide").eq(t):n.$slideTrack.children(".slick-slide").eq(t+n.options.slidesToShow+1),e=!0===n.options.rtl?s[0]?-1*(n.$slideTrack.width()-s[0].offsetLeft-s.width()):0:s[0]?-1*s[0].offsetLeft:0,e+=(n.$list.width()-s.outerWidth())/2)),e},a.prototype.getOption=a.prototype.slickGetOption=function(t){return this.options[t]},a.prototype.getNavigableIndexes=function(){for(var t=this,e=0,i=0,n=[],s=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,2*t.slideCount);e<s;)n.push(e),e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},a.prototype.getSlick=function(){return this},a.prototype.getSlideCount=function(){var i,n=this,s=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0;return!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-s+c(e).outerWidth()/2>-1*n.swipeLeft)return i=e,!1}),Math.abs(c(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},a.prototype.goTo=a.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},a.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},a.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),s=i.getNavigableIndexes().filter(function(t){return 0<=t&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=s.indexOf(t);c(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&(e="slick-slide-control"+i.instanceUid+e,c("#"+e).length&&c(this).attr({"aria-describedby":e}))}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=s[t];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.options.focusOnChange?i.$slides.eq(t).attr({tabindex:"0"}):i.$slides.eq(t).removeAttr("tabindex");i.activateADA()},a.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},a.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},a.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",c.proxy(t.interrupt,t,!1)))},a.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(t.setPosition)},a.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},a.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},a.prototype.lazyLoad=function(){var t,e,i,o=this;function n(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),i=c(this).attr("data-srcset"),n=c(this).attr("data-sizes")||o.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0},100,function(){i&&(t.attr("srcset",i),n&&t.attr("sizes",n)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,e])})},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},s.src=e})}if(!0===o.options.centerMode?i=!0===o.options.infinite?(e=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(e=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(e=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,i=Math.ceil(e+o.options.slidesToShow),!0===o.options.fade&&(0<e&&e--,i<=o.slideCount&&i++)),t=o.$slider.find(".slick-slide").slice(e,i),"anticipated"===o.options.lazyLoad)for(var s=e-1,a=i,r=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)s<0&&(s=o.slideCount-1),t=(t=t.add(r.eq(s))).add(r.eq(a)),s--,a++;n(t),o.slideCount<=o.options.slidesToShow?n(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?n(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&n(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},a.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},a.prototype.next=a.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},a.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},a.prototype.pause=a.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},a.prototype.play=a.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},a.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&c(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},a.prototype.prev=a.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},a.prototype.preventDefault=function(t){t.preventDefault()},a.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,n,s,o=this,a=c("img[data-lazy]",o.$slider);a.length?(e=a.first(),i=e.attr("data-lazy"),n=e.attr("data-srcset"),s=e.attr("data-sizes")||o.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){n&&(e.attr("srcset",n),s&&e.attr("sizes",s)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,e,i]),o.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout(function(){o.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,i]),o.progressiveLazyLoad())},a.src=i):o.$slider.trigger("allImagesLoaded",[o])},a.prototype.refresh=function(t){var e=this,i=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>i&&(e.currentSlide=i),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),i=e.currentSlide,e.destroy(!0),c.extend(e,e.initials,{currentSlide:i}),e.init(),t||e.changeSlide({data:{message:"index",index:i}},!1)},a.prototype.registerBreakpoints=function(){var t,e,i,n=this,s=n.options.responsive||null;if("array"===c.type(s)&&s.length){for(t in n.respondTo=n.options.respondTo||"window",s)if(i=n.breakpoints.length-1,s.hasOwnProperty(t)){for(e=s[t].breakpoint;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=s[t].settings}n.breakpoints.sort(function(t,e){return n.options.mobileFirst?t-e:e-t})}},a.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},a.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},a.prototype.removeSlide=a.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),(!0===i?n.$slideTrack.children():n.$slideTrack.children(this.options.slide).eq(t)).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},a.prototype.setCSS=function(t){var e,i,n=this,s={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",s[n.positionProp]=t,!1===n.transformsEnabled||(!(s={})===n.cssTransitions?s[n.animType]="translate("+e+", "+i+")":s[n.animType]="translate3d("+e+", "+i+", 0px)"),n.$slideTrack.css(s)},a.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},a.prototype.setFade=function(){var i,n=this;n.$slides.each(function(t,e){i=n.slideWidth*t*-1,!0===n.options.rtl?c(e).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):c(e).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},a.prototype.setHeight=function(){var t,e=this;1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical&&(t=e.$slides.eq(e.currentSlide).outerHeight(!0),e.$list.css("height",t))},a.prototype.setOption=a.prototype.slickSetOption=function(){var t,e,i,n,s,o=this,a=!1;if("object"===c.type(arguments[0])?(i=arguments[0],a=arguments[1],s="multiple"):"string"===c.type(arguments[0])&&(n=arguments[1],a=arguments[2],"responsive"===(i=arguments[0])&&"array"===c.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)o.options[i]=n;else if("multiple"===s)c.each(i,function(t,e){o.options[t]=e});else if("responsive"===s)for(e in n)if("array"!==c.type(o.options.responsive))o.options.responsive=[n[e]];else{for(t=o.options.responsive.length-1;0<=t;)o.options.responsive[t].breakpoint===n[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(n[e])}a&&(o.unload(),o.reinit())},a.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},a.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},a.prototype.setSlideClasses=function(t){var e,i,n,s=this,o=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");s.$slides.eq(t).addClass("slick-current"),!0===s.options.centerMode?(i=s.options.slidesToShow%2==0?1:0,n=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(n<=t&&t<=s.slideCount-1-n?s.$slides.slice(t-n+i,t+n+1).addClass("slick-active").attr("aria-hidden","false"):(e=s.options.slidesToShow+t,o.slice(e-n+1+i,e+n+2).addClass("slick-active").attr("aria-hidden","false")),0===t?o.eq(o.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&o.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")):0<=t&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):o.length<=s.options.slidesToShow?o.addClass("slick-active").attr("aria-hidden","false"):(n=s.slideCount%s.options.slidesToShow,e=!0===s.options.infinite?s.options.slidesToShow+t:t,(s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?o.slice(e-(s.options.slidesToShow-n),e+n):o.slice(e,e+s.options.slidesToShow)).addClass("slick-active").attr("aria-hidden","false")),"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},a.prototype.setupInfinite=function(){var t,e,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(e=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-i;--t)e=t-1,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<i+n.slideCount;t+=1)e=t,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},a.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},a.prototype.selectHandler=function(t){t=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(t,!1,!0):this.slideHandler(t)},a.prototype.slideHandler=function(t,e,i){var n,s,o,a,r=this;if(e=e||!1,!(!0===r.animating&&!0===r.options.waitForAnimate||!0===r.options.fade&&r.currentSlide===t))if(!1===e&&r.asNavFor(t),n=t,o=r.getLeft(n),e=r.getLeft(r.currentSlide),r.currentLeft=null===r.swipeLeft?e:r.swipeLeft,!1===r.options.infinite&&!1===r.options.centerMode&&(t<0||t>r.getDotCount()*r.options.slidesToScroll))!1===r.options.fade&&(n=r.currentSlide,!0!==i&&r.slideCount>r.options.slidesToShow?r.animateSlide(e,function(){r.postSlide(n)}):r.postSlide(n));else if(!1===r.options.infinite&&!0===r.options.centerMode&&(t<0||t>r.slideCount-r.options.slidesToScroll))!1===r.options.fade&&(n=r.currentSlide,!0!==i&&r.slideCount>r.options.slidesToShow?r.animateSlide(e,function(){r.postSlide(n)}):r.postSlide(n));else{if(r.options.autoplay&&clearInterval(r.autoPlayTimer),s=n<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+n:n>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:n-r.slideCount:n,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,s]),e=r.currentSlide,r.currentSlide=s,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(a=(a=r.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(r.currentSlide),r.updateDots(),r.updateArrows(),!0===r.options.fade)return!0!==i?(r.fadeSlideOut(e),r.fadeSlide(s,function(){r.postSlide(s)})):r.postSlide(s),void r.animateHeight();!0!==i&&r.slideCount>r.options.slidesToShow?r.animateSlide(o,function(){r.postSlide(s)}):r.postSlide(s)}},a.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},a.prototype.swipeDirection=function(){var t=this,e=t.touchObject.startX-t.touchObject.curX,i=t.touchObject.startY-t.touchObject.curY,e=Math.atan2(i,e),e=Math.round(180*e/Math.PI);return e<0&&(e=360-Math.abs(e)),e<=45&&0<=e||e<=360&&315<=e?!1===t.options.rtl?"left":"right":135<=e&&e<=225?!1===t.options.rtl?"right":"left":!0===t.options.verticalSwiping?35<=e&&e<=135?"down":"up":"vertical"},a.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1;if(n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},a.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},a.prototype.swipeMove=function(t){var e,i,n=this,s=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!n.dragging||n.scrolling||s&&1!==s.length)&&(e=n.getLeft(n.currentSlide),n.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,n.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,n.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(n.touchObject.curX-n.touchObject.startX,2))),i=Math.round(Math.sqrt(Math.pow(n.touchObject.curY-n.touchObject.startY,2))),!n.options.verticalSwiping&&!n.swiping&&4<i?!(n.scrolling=!0):(!0===n.options.verticalSwiping&&(n.touchObject.swipeLength=i),s=n.swipeDirection(),void 0!==t.originalEvent&&4<n.touchObject.swipeLength&&(n.swiping=!0,t.preventDefault()),i=(!1===n.options.rtl?1:-1)*(n.touchObject.curX>n.touchObject.startX?1:-1),!0===n.options.verticalSwiping&&(i=n.touchObject.curY>n.touchObject.startY?1:-1),t=n.touchObject.swipeLength,(n.touchObject.edgeHit=!1)===n.options.infinite&&(0===n.currentSlide&&"right"===s||n.currentSlide>=n.getDotCount()&&"left"===s)&&(t=n.touchObject.swipeLength*n.options.edgeFriction,n.touchObject.edgeHit=!0),!1===n.options.vertical?n.swipeLeft=e+t*i:n.swipeLeft=e+t*(n.$list.height()/n.listWidth)*i,!0===n.options.verticalSwiping&&(n.swipeLeft=e+t*i),!0!==n.options.fade&&!1!==n.options.touchMove&&(!0===n.animating?(n.swipeLeft=null,!1):void n.setCSS(n.swipeLeft))))},a.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},a.prototype.unfilterSlides=a.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},a.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},a.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},a.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2);!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},a.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},a.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var t,e=this,i=arguments[0],n=Array.prototype.slice.call(arguments,1),s=e.length,o=0;o<s;o++)if("object"==typeof i||void 0===i?e[o].slick=new a(e[o],i):t=e[o].slick[i].apply(e[o].slick,n),void 0!==t)return t;return e}})},{jquery:2}],4:[function(t,e,i){window.jQuery=window.$=t("jquery"),t("./jquery-ui"),t("slick-carousel"),t("jquery.mmenu"),t("./vendor/jquery-stickit"),t("./vendor/scrollspy"),t("./vendor/jquery-lazy"),t("./vendor/jquery.sticky"),t("./vendor/jquery.hoverDelay"),t("./custom/accessible-slider"),t("./custom/accordion"),t("./custom/slick-slider"),t("./custom/mobile-search"),t("./custom/share-btn"),t("./custom/scroll-top"),t("./custom/quick-nav"),t("./custom/filter-results"),t("./custom/language-select"),t("./custom/lazy-load"),t("./custom/megamenu"),t("./custom/banner-pods"),t("./custom/footer-menu"),t("./custom/sidebar-nav"),t("./custom/sidebar-nav-mobile"),t("./custom/disciplinary-search"),t("./custom/date-picker"),t("./custom/ada-menu"),t("./custom/references"),t("./custom/sticky"),t("./custom/scrollspy--init")},{"./custom/accessible-slider":5,"./custom/accordion":6,"./custom/ada-menu":7,"./custom/banner-pods":8,"./custom/date-picker":9,"./custom/disciplinary-search":10,"./custom/filter-results":11,"./custom/footer-menu":12,"./custom/language-select":13,"./custom/lazy-load":14,"./custom/megamenu":15,"./custom/mobile-search":16,"./custom/quick-nav":17,"./custom/references":18,"./custom/scroll-top":19,"./custom/scrollspy--init":20,"./custom/share-btn":21,"./custom/sidebar-nav":23,"./custom/sidebar-nav-mobile":22,"./custom/slick-slider":24,"./custom/sticky":25,"./jquery-ui":26,"./vendor/jquery-lazy":27,"./vendor/jquery-stickit":28,"./vendor/jquery.hoverDelay":29,"./vendor/jquery.sticky":30,"./vendor/scrollspy":31,jquery:2,"jquery.mmenu":1,"slick-carousel":3}],5:[function(t,e,i){var n,s,o,a,r,l,c,h,u,d,p=!1,f=0;function m(){p?(o.classList.add("is-visible"),a.classList.remove("is-visible"),p=!1):g()}function g(){o.classList.remove("is-visible"),a.classList.add("is-visible"),p=!0}function v(){f<h.length-1?b(f+1):b(0)}function b(t){var e=n.getBoundingClientRect().width;$(c).animate({scrollLeft:e*t},{duration:500,start:function(){h.forEach(function(t){t.removeAttribute("aria-hidden")}),u.forEach(function(t){t.removeAttribute("aria-current")}),u[t].setAttribute("aria-current",!0)},complete:function(){_()}}),f=t}function y(){p||v()}function _(){h.forEach(function(t){t.setAttribute("aria-hidden",!0)}),d.forEach(function(t){t.setAttribute("tabindex",-1)}),h[f].removeAttribute("aria-hidden"),h[f].querySelectorAll("a, button").forEach(function(t){t.removeAttribute("tabindex")})}window.addEventListener("DOMContentLoaded",function(t){null!=(n=document.querySelector(".c-ada-carousel"))&&(s=document.querySelector(".controls .rotation-button"),o=document.querySelector(".controls .rotation-button .pause-container"),a=document.querySelector(".controls .rotation-button .resume-container"),r=document.querySelector(".controls .previous-button"),l=document.querySelector(".controls .next-button"),c=document.querySelector(".slides"),h=document.querySelectorAll(".slides .slide"),d=document.querySelectorAll(".slides a, .slides button"),document.querySelectorAll(".navigation .slide-dot"),u=document.querySelectorAll(".navigation .slide-dot .slide-dot-button"),s.addEventListener("click",m),r.addEventListener("click",function(t){g(),b(0<f?f-1:h.length-1)}),l.addEventListener("click",function(t){g(),v()}),u.forEach(function(e){e.addEventListener("click",function(t){g(),b(Array.prototype.slice.call(u).indexOf(e))})}),setInterval(y,1e4),_())})},{}],6:[function(t,e,i){jQuery(function(t){t(".c-accordion").accordion({heightStyle:"content",header:".c-accordion__block > h4",collapsible:!0,active:!1,animate:240})}),window.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".c-ada-accordion .c-ada-accordion--header button").forEach(function(t){t.addEventListener("click",function(){"true"===t.getAttribute("aria-expanded")?t.setAttribute("aria-expanded",!1):t.setAttribute("aria-expanded",!0),$("#"+t.getAttribute("aria-controls")).slideToggle()})})})},{}],7:[function(t,e,i){var n,s,o,a,r,l,c,h,u,d=!1;function p(){$(a).animate({width:0},function(){$(o).css("display","none"),n.focus(),d=!1,$(l).css("left","250px"),l.querySelectorAll(".ada-menu").forEach(function(t){$(t).css("display","none")}),$(r).css("display","block"),$(r).css("left","0")}),$(s).animate({left:0})}document.addEventListener("DOMContentLoaded",function(t){a=document.querySelector(".menu-container"),n=document.querySelector(".c-menu-btn"),s=document.querySelector(".close-button"),o=document.querySelector("#mobile-menu-modal"),r=o.querySelector(".menu-level-0"),l=o.querySelector(".menu-level-1"),c=o.querySelector(".menu-level-2"),h=s,u=r.querySelector(".last-focusable-element"),n.addEventListener("click",function(t){$(o).show(),$("body").addClass("menu-active"),$(a).animate({width:250},function(){s.focus(),d=!0}),$(s).animate({left:250})}),s.addEventListener("click",function(t){p(),$("body").removeClass("menu-active")}),r.querySelectorAll("button").forEach(function(e){e.addEventListener("click",function(){var t=document.getElementById(e.getAttribute("aria-controls"));$(t).css("display","block"),$(l).animate({left:0},function(){u=t.querySelector(".last-focusable-element"),t.querySelector(".back-button").focus()}),$(r).animate({left:-250},function(){$(r).css("display","none")})})}),l.querySelectorAll("button").forEach(function(e){e.classList.contains("back-button")||e.addEventListener("click",function(){var t=document.getElementById(e.getAttribute("aria-controls"));$(t).css("display","block"),null!=c&&$(c).animate({left:0},function(){u=t.querySelector(".last-focusable-element"),t.querySelector(".back-button").focus()}),$(l).animate({left:-250},function(){$(l).css("display","none")})})}),l.querySelectorAll(".ada-menu .back-button").forEach(function(t){t.addEventListener("click",function(){$(l).animate({left:250},function(){$(t).closest(".ada-menu").css("display","none")}),$(r).show().animate({left:0},function(){u=r.querySelector(".last-focusable-element"),r.querySelector("ul li:first-of-type a").focus()})})}),null!=c&&c.querySelectorAll(".ada-menu .back-button").forEach(function(e){e.addEventListener("click",function(){$(c).animate({left:250},function(){$(e).closest(".ada-menu").css("display","none")});var t=document.getElementById(e.getAttribute("data-parentid"));$(t).css("display","block"),$(l).css("display","block"),$(l).show().animate({left:0},function(){u=t.querySelector(".last-focusable-element"),t.querySelector(".back-button").focus()})})}),o.addEventListener("keydown",function(t){d&&("Tab"==t.key&&(t.shiftKey?document.activeElement==h&&(u.focus(),t.preventDefault()):document.activeElement==u&&(h.focus(),t.preventDefault())),"Escape"==t.key&&p())})})},{}],8:[function(t,e,i){jQuery(document).ready(function(t){t(".c-banner-pod--content .moon-plus3").click(function(){t(this).parent(".c-banner-pod--content").toggleClass("active")})})},{}],9:[function(t,e,i){jQuery(document).ready(function(t){t(function(){t(".c-datepicker").datepicker()})})},{}],10:[function(t,e,i){jQuery(document).ready(function(t){t(".c-disciplinary-search__box .moon-plus3").click(function(){t(this).parent(".c-disciplinary-search__box").toggleClass("active")})})},{}],11:[function(t,e,i){jQuery(document).ready(function(t){t(".c-filter--btn").click(function(){t(this).toggleClass("active"),t(this).next("UL").toggleClass("active")}),t(".c-filter").click(function(){t(this).removeClass("active"),t(".c-filter--btn").removeClass("active")})})},{}],12:[function(t,e,i){jQuery(document).ready(function(t){t(".footer-menu .col h3 span").click(function(){t(this).parent("h3").toggleClass("active"),t(this).parent("h3").next("ul").toggleClass("active")})})},{}],13:[function(t,e,i){jQuery(document).ready(function(e){e(".c-country-selector > a").click(function(t){t.stopPropagation(),e(this).next("ul").toggleClass("active")}),e(document).click(function(t){e(t.target).closest(".c-country-selector ul").length||e(".c-country-selector ul").is(":visible")&&e(".c-country-selector ul").removeClass("active")})})},{}],14:[function(t,e,i){$(function(){$(".lazy").lazy({afterLoad:function(t){t.addClass("loaded")}})})},{}],15:[function(t,e,i){$(document).click(function(t){!$(t.target).closest(".child").length&&$(".child").is(":visible")&&($(".child").removeClass("active"),$(".child").children("button").attr("aria-expanded",function(t,e){return"false"==e}))}),jQuery(document).ready(function(t){t(".c-main-nav > ul > li.drop-menu button").click(function(){t(this).parent("li").hasClass("active")?(t(".child").removeClass("active"),t(".c-main-nav > ul > li.drop-menu button").attr("aria-expanded","false"),t(".c-ada-mega-menu--btn").attr("aria-expanded","false")):(t(".child").removeClass("active"),t(this).parent("li").addClass("active"),t(".c-main-nav > ul > li.drop-menu button").attr("aria-expanded","false"),t(".c-ada-mega-menu--btn").attr("aria-expanded","false"),t(this).attr("aria-expanded","true"))})}),jQuery(document).ready(function(i){i(".c-ada-mega-menu--btn").on("click",function(){i(this).parent("li").hasClass("active")?(i(".child").removeClass("active"),i(".c-main-nav > ul > li.drop-menu button").attr("aria-expanded","false"),i(".c-ada-mega-menu--btn").attr("aria-expanded","false")):(i(".child").removeClass("active"),i(this).parent("li").addClass("active"),i(".c-main-nav > ul > li.drop-menu button").attr("aria-expanded","false"),i(".c-ada-mega-menu--btn").attr("aria-expanded","false"),i(this).attr("aria-expanded","true"),i(this).parent().find(".sidenav > li:nth-child(2)").addClass("active"),i(this).parent().find(".sidenav > li:nth-child(2) > button").attr("aria-expanded","true"))}),i(".sidenav > li").hoverDelay({delayIn:100,delayOut:250,handlerIn:function(t){i(".sidenav > li").removeClass("active"),t.addClass("active"),t.find(".c-mega-menu--main").addClass("active"),t.find("button").attr("aria-expanded",function(t,e){return i(this).parent("li").hasClass("active")?"true":"false"})},handlerOut:function(t){t.removeClass("active"),t.find(".c-mega-menu--main").removeClass("active"),t.find("button").attr("aria-expanded",function(t,e){return"false"})}}),i(".c-ada-mega-menu--close").on("click",function(){i(".c-ada-mega-menu--btn").removeClass("active"),i(".child").removeClass("active"),i(".c-ada-mega-menu--btn").attr("aria-expanded",function(t,e){return"false"==e})}),i(".c-ada-mega-menu--close").keypress(function(t){13==t.which&&(i(".c-ada-mega-menu--btn").removeClass("active"),i(".child").removeClass("active"),i(".c-ada-mega-menu--btn").attr("aria-expanded",function(t,e){return"false"==e}))}),i(".sidenav > li > button").click(function(){i(this).parent("li").hasClass("active")||(i(".sidenav li").removeClass("active"),i(".c-mega-menu--main").removeClass("active"),i(this).parent("li").addClass("active"),i(this).parent().find(".c-mega-menu--main").addClass("active")),i(this).attr("aria-expanded",function(t,e){return i(".sidenav > li > button").attr("aria-expanded","false"),i(this).parent("li").hasClass("active")?"true":"false"})})})},{}],16:[function(t,e,i){jQuery(document).ready(function(t){t(".c-search-btn").click(function(){t(this).toggleClass("active"),t(".c-search-drop").toggleClass("active"),t(".c-search-drop .search-box").focus()}),t(".c-search--close").click(function(){t(".c-search-btn").removeClass("active"),t(".c-search-drop").removeClass("active"),t(".c-search-drop .search-box").val("")});var e=document.querySelector(".c-search-drop"),i=e.querySelector(".first-focusable-element"),n=e.querySelector(".last-focusable-element");e.addEventListener("keydown",function(t){t.target==i&&"Tab"==t.key&&t.shiftKey?(t.preventDefault(),n.focus()):t.target!=n||"Tab"!=t.key||t.shiftKey||(t.preventDefault(),i.focus())})})},{}],17:[function(t,e,i){jQuery(document).ready(function(t){1023<t(window).width()&&t("nav.quick-nav").stickit({top:0})}),jQuery(document).ready(function(t){t(".scroll-nav").scrollspy({offset:-124})})},{}],18:[function(t,e,i){jQuery(document).ready(function(t){t(".c-references--btn").click(function(){t(this).toggleClass("active"),t(this).text("More References"==t(this).text()?"Less References":"More References").fadeIn(),t(".c-references").toggleClass("active"),t(".c-references").hasClass("active")&&(0<t(".c-references > ol").length?t(".c-references > ol > li"):t(".c-references > ul > li")).eq(3).focus()}),t(".c-references > ul > li").length+t(".c-references > ol > li").length<4&&t(".c-references--btn").hide()})},{}],19:[function(t,e,i){jQuery(document).ready(function(t){window.onscroll=function(){s()};var e=document.getElementById("header"),i=document.getElementsByTagName("BODY")[0],n=121;function s(){window.pageYOffset>n?(e.classList.add("sticky"),i.classList.add("stickybody")):(e.classList.remove("sticky"),i.classList.remove("stickybody"))}s()})},{}],20:[function(t,e,i){},{}],21:[function(t,e,i){jQuery(document).ready(function(e){e(".c-share").click(function(){e(this).children("ul").toggleClass("active");var t=e(this).children("button").first();"true"===t.attr("aria-expanded")?t.attr("aria-expanded","false"):t.attr("aria-expanded","true")})})},{}],22:[function(t,e,i){jQuery(document).ready(function(t){t(".c-sidebar-nav--btn").click(function(){t(this).toggleClass("active"),t(this).next("ul").toggleClass("active"),t(".c-sidebar-nav_sub").toggleClass("active")})})},{}],23:[function(t,e,i){jQuery(document).ready(function(e){e(".c-sidebar-nav > ul li span.moon-arrow-down2").attr("tabindex","0"),e(".c-sidebar-nav > ul > li span.moon-arrow-down2").click(function(){e(this).parent("li").toggleClass("active"),"true"===e(this).attr("aria-expanded")?e(this).attr("aria-expanded","false"):e(this).attr("aria-expanded","true")}),e(".c-sidebar-nav > ul > li span.moon-arrow-down2").on("keypress",function(t){13==t.which&&e(this).trigger("click")})})},{}],24:[function(t,e,i){jQuery(document).ready(function(t){t(".c-carousel-3").slick({autoplay:!1,autoplaySpeed:4e3,speed:800,pauseOnHover:!0,arrows:!0,dots:!0,infinite:!1,slidesToShow:3,slidesToScroll:1,responsive:[{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1,fade:!1,arrows:!1,dots:!0,speed:800}},{breakpoint:420,settings:{slidesToShow:1,slidesToScroll:1,fade:!1,arrows:!1,dots:!0,speed:800}}]})}),jQuery(document).ready(function(t){t(".c-carousel-4").slick({autoplay:!1,autoplaySpeed:4e3,speed:800,pauseOnHover:!0,arrows:!0,dots:!0,infinite:!1,slidesToShow:4,slidesToScroll:1,responsive:[{breakpoint:1023,settings:{slidesToShow:3,slidesToScroll:1,fade:!1,arrows:!0,dots:!0,speed:800}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1,fade:!1,arrows:!1,dots:!0,speed:800}},{breakpoint:420,settings:{slidesToShow:1,slidesToScroll:1,fade:!1,arrows:!1,dots:!0,speed:800}}]})}),jQuery(document).ready(function(t){t(".c-contact-slider").slick({autoplay:!1,speed:500,arrows:!1,dots:!1,fade:!0,infinite:!0,slidesToShow:1,slidesToScroll:1,draggable:!1,swipe:!1,asNavFor:".c-contact-slider--nav"}),t(".c-contact-slider--nav").slick({autoplay:!1,speed:500,arrows:!0,dots:!1,infinite:!0,slidesToShow:5,slidesToScroll:1,asNavFor:".c-contact-slider",centerMode:!0,focusOnSelect:!0,swipe:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:1,fade:!1}},{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,fade:!1}}]})})},{}],25:[function(t,e,i){$(document).ready(function(){$(".c-footer").height();$(".c-sticky").sticky({topSpacing:45,bottomSpacing:750})})},{}],26:[function(t,e,i){var n;n=function(x){x.ui=x.ui||{};x.ui.version="1.12.1";var s,i=0,r=Array.prototype.slice;x.cleanData=(s=x.cleanData,function(t){for(var e,i,n=0;null!=(i=t[n]);n++)try{(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove")}catch(t){}s(t)}),x.widget=function(t,i,e){var n,s,o,a={},r=t.split(".")[0],l=r+"-"+(t=t.split(".")[1]);return e||(e=i,i=x.Widget),x.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr[":"][l.toLowerCase()]=function(t){return!!x.data(t,l)},x[r]=x[r]||{},n=x[r][t],s=x[r][t]=function(t,e){if(!this._createWidget)return new s(t,e);arguments.length&&this._createWidget(t,e)},x.extend(s,n,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(e,function(e,n){function s(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}x.isFunction(n)?a[e]=function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=o,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}:a[e]=n}),s.prototype=x.widget.extend(o,{widgetEventPrefix:n&&o.widgetEventPrefix||t},a,{constructor:s,namespace:r,widgetName:t,widgetFullName:l}),n?(x.each(n._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,s,e._proto)}),delete n._childConstructors):i._childConstructors.push(s),x.widget.bridge(t,s),s},x.widget.extend=function(t){for(var e,i,n=r.call(arguments,1),s=0,o=n.length;s<o;s++)for(e in n[s])i=n[s][e],n[s].hasOwnProperty(e)&&void 0!==i&&(x.isPlainObject(i)?t[e]=x.isPlainObject(t[e])?x.widget.extend({},t[e],i):x.widget.extend({},i):t[e]=i);return t},x.widget.bridge=function(o,e){var a=e.prototype.widgetFullName||o;x.fn[o]=function(i){var t="string"==typeof i,n=r.call(arguments,1),s=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=x.data(this,a);return"instance"===i?(s=e,!1):e?x.isFunction(e[i])&&"_"!==i.charAt(0)?(t=e[i].apply(e,n))!==e&&void 0!==t?(s=t&&t.jquery?s.pushStack(t.get()):t,!1):void 0:x.error("no such method '"+i+"' for "+o+" widget instance"):x.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+i+"'")}):s=void 0:(n.length&&(i=x.widget.extend.apply(null,[i].concat(n))),this.each(function(){var t=x.data(this,a);t?(t.option(i||{}),t._init&&t._init()):x.data(this,a,new e(i,this))})),s}},x.Widget=function(){},x.Widget._childConstructors=[],x.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=x.widget.extend({},this.options[t]),s=0;s<i.length-1;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(t=i.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=e}return this._setOptions(o),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,n;for(e in t)n=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&n&&n.length&&(i=x(n.get()),this._removeClass(n,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(s){var o=[],a=this;function t(t,e){for(var i,n=0;n<t.length;n++)i=a.classesElementLookup[t[n]]||x(),i=s.add?x(x.unique(i.get().concat(s.element.get()))):x(i.not(s.element).get()),a.classesElementLookup[t[n]]=i,o.push(t[n]),e&&s.classes[t[n]]&&o.push(s.classes[t[n]])}return s=x.extend({element:this.element,classes:this.options.classes||{}},s),this._on(s.element,{remove:"_untrackClassesElement"}),s.keys&&t(s.keys.match(/\S+/g)||[],!0),s.extra&&t(s.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var n=this;x.each(n.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(n.classesElementLookup[t]=x(e.not(i.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof t||null===t,t={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n};return t.element.toggleClass(this._classes(t),n),this},_on:function(s,o,t){var a,r=this;"boolean"!=typeof s&&(t=o,o=s,s=!1),t?(o=a=x(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,a=this.widget()),x.each(t,function(t,e){function i(){if(s||!0!==r.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?r[e]:e).apply(r,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var n=t.match(/^([\w:-]*)\s*(.*)$/),t=n[1]+r.eventNamespace,n=n[2];n?a.on(t,n,i):o.on(t,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e).off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var n,s,o=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],s=e.originalEvent)for(n in s)n in e||(e[n]=s[n]);return this.element.trigger(e,i),!(x.isFunction(o)&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,a){x.Widget.prototype["_"+o]=function(e,t,i){var n;"string"==typeof t&&(t={effect:t});var s=t?!0!==t&&"number"!=typeof t&&t.effect||a:o;"number"==typeof(t=t||{})&&(t={duration:t}),n=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),n&&x.effects&&x.effects.effect[s]?e[o](t):s!==o&&e[s]?e[s](t.duration,t.easing,i):e.queue(function(t){x(this)[o](),i&&i.call(e[0]),t()})}});var n,k,C,o,a,l,c,h,T;x.widget;function S(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function D(t,e){return parseInt(x.css(t,e),10)||0}k=Math.max,C=Math.abs,o=/left|center|right/,a=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,h=/%$/,T=x.fn.position,x.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,e=x("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?x.position.scrollbarWidth():0,height:e?x.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=x(t||window),i=x.isWindow(e[0]),n=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:n,offset:!i&&!n?x(t).offset():{left:0,top:0},scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},x.fn.position=function(u){if(!u||!u.of)return T.apply(this,arguments);u=x.extend({},u);var d,p,f,m,g,t,v=x(u.of),b=x.position.getWithinInfo(u.within),y=x.position.getScrollInfo(b),_=(u.collision||"flip").split(" "),w={},e=9===(t=(e=v)[0]).nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:x.isWindow(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()};return v[0].preventDefault&&(u.at="left top"),p=e.width,f=e.height,m=e.offset,g=x.extend({},m),x.each(["my","at"],function(){var t,e,i=(u[this]||"").split(" ");1===i.length&&(i=o.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=o.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),w[this]=[t?t[0]:0,e?e[0]:0],u[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===u.at[0]?g.left+=p:"center"===u.at[0]&&(g.left+=p/2),"bottom"===u.at[1]?g.top+=f:"center"===u.at[1]&&(g.top+=f/2),d=S(w.at,p,f),g.left+=d[0],g.top+=d[1],this.each(function(){var i,t,a=x(this),r=a.outerWidth(),l=a.outerHeight(),e=D(this,"marginLeft"),n=D(this,"marginTop"),s=r+e+D(this,"marginRight")+y.width,o=l+n+D(this,"marginBottom")+y.height,c=x.extend({},g),h=S(w.my,a.outerWidth(),a.outerHeight());"right"===u.my[0]?c.left-=r:"center"===u.my[0]&&(c.left-=r/2),"bottom"===u.my[1]?c.top-=l:"center"===u.my[1]&&(c.top-=l/2),c.left+=h[0],c.top+=h[1],i={marginLeft:e,marginTop:n},x.each(["left","top"],function(t,e){x.ui.position[_[t]]&&x.ui.position[_[t]][e](c,{targetWidth:p,targetHeight:f,elemWidth:r,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:o,offset:[d[0]+h[0],d[1]+h[1]],my:u.my,at:u.at,within:b,elem:a})}),u.using&&(t=function(t){var e=m.left-c.left,i=e+p-r,n=m.top-c.top,s=n+f-l,o={target:{element:v,left:m.left,top:m.top,width:p,height:f},element:{element:a,left:c.left,top:c.top,width:r,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};p<r&&C(e+i)<p&&(o.horizontal="center"),f<l&&C(n+s)<f&&(o.vertical="middle"),k(C(e),C(i))>k(C(n),C(s))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(x.extend(c,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,n=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,o=t.left-e.collisionPosition.marginLeft,a=n-o,r=o+e.collisionWidth-s-n;e.collisionWidth>s?0<a&&r<=0?(i=t.left+a+e.collisionWidth-s-n,t.left+=a-i):t.left=!(0<r&&a<=0)&&r<a?n+s-e.collisionWidth:n:0<a?t.left+=a:0<r?t.left-=r:t.left=k(t.left-o,t.left)},top:function(t,e){var i=e.within,n=i.isWindow?i.scrollTop:i.offset.top,s=e.within.height,o=t.top-e.collisionPosition.marginTop,a=n-o,r=o+e.collisionHeight-s-n;e.collisionHeight>s?0<a&&r<=0?(i=t.top+a+e.collisionHeight-s-n,t.top+=a-i):t.top=!(0<r&&a<=0)&&r<a?n+s-e.collisionHeight:n:0<a?t.top+=a:0<r?t.top-=r:t.top=k(t.top-o,t.top)}},flip:{left:function(t,e){var i=e.within,n=i.offset.left+i.scrollLeft,s=i.width,o=i.isWindow?i.scrollLeft:i.offset.left,a=t.left-e.collisionPosition.marginLeft,r=a-o,l=a+e.collisionWidth-s-o,c="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,i="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,a=-2*e.offset[0];r<0?((n=t.left+c+i+a+e.collisionWidth-s-n)<0||n<C(r))&&(t.left+=c+i+a):0<l&&(0<(o=t.left-e.collisionPosition.marginLeft+c+i+a-o)||C(o)<l)&&(t.left+=c+i+a)},top:function(t,e){var i=e.within,n=i.offset.top+i.scrollTop,s=i.height,o=i.isWindow?i.scrollTop:i.offset.top,a=t.top-e.collisionPosition.marginTop,r=a-o,l=a+e.collisionHeight-s-o,c="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,i="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,a=-2*e.offset[1];r<0?((n=t.top+c+i+a+e.collisionHeight-s-n)<0||n<C(r))&&(t.top+=c+i+a):0<l&&(0<(o=t.top-e.collisionPosition.marginTop+c+i+a-o)||C(o)<l)&&(t.top+=c+i+a)}},flipfit:{left:function(){x.ui.position.flip.left.apply(this,arguments),x.ui.position.fit.left.apply(this,arguments)},top:function(){x.ui.position.flip.top.apply(this,arguments),x.ui.position.fit.top.apply(this,arguments)}}};x.ui.position,x.extend(x.expr[":"],{data:x.expr.createPseudo?x.expr.createPseudo(function(e){return function(t){return!!x.data(t,e)}}):function(t,e,i){return!!x.data(t,i[3])}}),x.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t,u,d,p,f,e,m,g,v,b,y,_,w,P,A,I,M,E,$,H,O,N="ui-effects-",z="ui-effects-style",L="ui-effects-animated",W=x;function j(t,e,i){var n=v[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max<t?n.max:t)}function F(n){var s=m(),o=s._rgba=[];return n=n.toLowerCase(),y(e,function(t,e){var i=e.re.exec(n),i=i&&e.parse(i),e=e.space||"rgba";if(i)return i=s[e](i),s[g[e].cache]=i[g[e].cache],o=s._rgba=i._rgba,!1}),o.length?("0,0,0,0"===o.join()&&u.extend(o,p.transparent),s):p[n]}function q(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function R(t){var e,i,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[x.camelCase(e)]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function B(t,e,i,n){return x.isPlainObject(t)&&(t=(e=t).effect),t={effect:t},null==e&&(e={}),x.isFunction(e)&&(n=e,i=null,e={}),"number"!=typeof e&&!x.fx.speeds[e]||(n=i,i=e,e={}),x.isFunction(i)&&(n=i,i=null),e&&x.extend(t,e),i=i||e.duration,t.duration=x.fx.off?0:"number"==typeof i?i:i in x.fx.speeds?x.fx.speeds[i]:x.fx.speeds._default,t.complete=n||e.complete,t}function Y(t){return!t||"number"==typeof t||x.fx.speeds[t]||("string"==typeof t&&!x.effects.effect[t]||(x.isFunction(t)||"object"==typeof t&&!t.effect))}function U(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}x.effects={effect:{}},f=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],m=(u=W).Color=function(t,e,i,n){return new u.Color.fn.parse(t,e,i,n)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},v={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},b=m.support={},K=u("<p>")[0],y=u.each,K.style.cssText="background-color:rgba(1,1,1,.5)",b.rgba=-1<K.style.backgroundColor.indexOf("rgba"),y(g,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),m.fn=u.extend(m.prototype,{parse:function(s,t,e,i){if(s===d)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=u(s).css(t),t=d);var o=this,n=u.type(s),a=this._rgba=[];return t!==d&&(s=[s,t,e,i],n="array"),"string"===n?this.parse(F(s)||p._default):"array"===n?(y(g.rgba.props,function(t,e){a[e.idx]=j(s[e.idx],e)}),this):"object"===n?(y(g,s instanceof m?function(t,e){s[e.cache]&&(o[e.cache]=s[e.cache].slice())}:function(t,i){var n=i.cache;y(i.props,function(t,e){if(!o[n]&&i.to){if("alpha"===t||null==s[t])return;o[n]=i.to(o._rgba)}o[n][e.idx]=j(s[t],e,!0)}),o[n]&&u.inArray(null,o[n].slice(0,3))<0&&(o[n][3]=1,i.from&&(o._rgba=i.from(o[n])))}),this):void 0},is:function(t){var s=m(t),o=!0,a=this;return y(g,function(t,e){var i,n=s[e.cache];return n&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],y(e.props,function(t,e){if(null!=n[e.idx])return o=n[e.idx]===i[e.idx]})),o}),o},_space:function(){var i=[],n=this;return y(g,function(t,e){n[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var e=(c=m(t))._space(),i=g[e],t=0===this.alpha()?m("transparent"):this,r=t[i.cache]||i.to(t._rgba),l=r.slice(),c=c[i.cache];return y(i.props,function(t,e){var i=e.idx,n=r[i],s=c[i],o=v[e.type]||{};null!==s&&(null===n?l[i]=s:(o.mod&&(o.mod/2<s-n?n+=o.mod:o.mod/2<n-s&&(n-=o.mod)),l[i]=j((s-n)*a+n,e)))}),this[e](l)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=m(t)._rgba;return m(u.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=u.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=u.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+u.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),m.fn.parse.prototype=m.fn,g.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=t[3],o=Math.max(e,i,n),a=Math.min(e,i,n),r=o-a,l=o+a,t=.5*l,i=a===o?0:e===o?60*(i-n)/r+360:i===o?60*(n-e)/r+120:60*(e-i)/r+240,l=0==r?0:t<=.5?r/l:r/(2-l);return[Math.round(i)%360,l,t,null==s?1:s]},g.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],t=t[3],i=n<=.5?n*(1+i):n+i-n*i,n=2*n-i;return[Math.round(255*q(n,i,e+1/3)),Math.round(255*q(n,i,e)),Math.round(255*q(n,i,e-1/3)),t]},y(g,function(l,t){var o=t.props,a=t.cache,r=t.to,c=t.from;m.fn[l]=function(t){if(r&&!this[a]&&(this[a]=r(this._rgba)),t===d)return this[a].slice();var e,i=u.type(t),n="array"===i||"object"===i?t:arguments,s=this[a].slice();return y(o,function(t,e){t=n["object"===i?t:e.idx];null==t&&(t=s[e.idx]),s[e.idx]=j(t,e)}),c?((e=m(c(s)))[a]=s,e):m(s)},y(o,function(a,r){m.fn[a]||(m.fn[a]=function(t){var e,i=u.type(t),n="alpha"===a?this._hsla?"hsla":"rgba":l,s=this[n](),o=s[r.idx];return"undefined"===i?o:("function"===i&&(t=t.call(this,o),i=u.type(t)),null==t&&r.empty?this:("string"===i&&(e=f.exec(t))&&(t=o+parseFloat(e[2])*("+"===e[1]?1:-1)),s[r.idx]=t,this[n](s)))})})}),m.hook=function(t){t=t.split(" ");y(t,function(t,o){u.cssHooks[o]={set:function(t,e){var i,n,s="";if("transparent"!==e&&("string"!==u.type(e)||(i=F(e)))){if(e=m(i||e),!b.rgba&&1!==e._rgba[3]){for(n="backgroundColor"===o?t.parentNode:t;(""===s||"transparent"===s)&&n&&n.style;)try{s=u.css(n,"backgroundColor"),n=n.parentNode}catch(t){}e=e.blend(s&&"transparent"!==s?s:"_default")}e=e.toRgbaString()}try{t.style[o]=e}catch(t){}}},u.fx.step[o]=function(t){t.colorInit||(t.start=m(t.elem,o),t.end=m(t.end),t.colorInit=!0),u.cssHooks[o].set(t.elem,t.start.transition(t.end,t.pos))}})},m.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),u.cssHooks.borderColor={expand:function(i){var n={};return y(["Top","Right","Bottom","Left"],function(t,e){n["border"+e+"Color"]=i}),n}},p=u.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},A=["add","remove","toggle"],I={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},x.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){x.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(W.style(t.elem,e,t.end),t.setAttr=!0)}}),x.fn.addBack||(x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),x.effects.animateClass=function(s,t,e,i){var o=x.speed(t,e,i);return this.queue(function(){var i=x(this),t=i.attr("class")||"",e=(e=o.children?i.find("*").addBack():i).map(function(){return{el:x(this),start:R(this)}}),n=function(){x.each(A,function(t,e){s[e]&&i[e+"Class"](s[e])})};n(),e=e.map(function(){return this.end=R(this.el[0]),this.diff=function(t,e){var i,n,s={};for(i in e)n=e[i],t[i]!==n&&(I[i]||!x.fx.step[i]&&isNaN(parseFloat(n))||(s[i]=n));return s}(this.start,this.end),this}),i.attr("class",t),e=e.map(function(){var t=this,e=x.Deferred(),i=x.extend({},o,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),x.when.apply(x,e.get()).done(function(){n(),x.each(arguments,function(){var e=this.el;x.each(this.diff,function(t){e.css(t,"")})}),o.complete.call(i[0])})})},x.fn.extend({addClass:(P=x.fn.addClass,function(t,e,i,n){return e?x.effects.animateClass.call(this,{add:t},e,i,n):P.apply(this,arguments)}),removeClass:(w=x.fn.removeClass,function(t,e,i,n){return 1<arguments.length?x.effects.animateClass.call(this,{remove:t},e,i,n):w.apply(this,arguments)}),toggleClass:(_=x.fn.toggleClass,function(t,e,i,n,s){return"boolean"==typeof e||void 0===e?i?x.effects.animateClass.call(this,e?{add:t}:{remove:t},i,n,s):_.apply(this,arguments):x.effects.animateClass.call(this,{toggle:t},e,i,n)}),switchClass:function(t,e,i,n,s){return x.effects.animateClass.call(this,{add:e,remove:t},i,n,s)}}),x.expr&&x.expr.filters&&x.expr.filters.animated&&(x.expr.filters.animated=(M=x.expr.filters.animated,function(t){return!!x(t).data(L)||M(t)})),!1!==x.uiBackCompat&&x.extend(x.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(N+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(N+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=x("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return i.wrap(t),i[0]!==s&&!x.contains(i[0],s)||x(s).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):(x.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),x.each(["top","left","bottom","right"],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!x.contains(t[0],e)||x(e).trigger("focus")),t}}),x.extend(x.effects,{version:"1.12.1",define:function(t,e,i){return i||(i=e,e="effect"),x.effects.effect[t]=i,x.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1,e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*n,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1<e&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(z,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(z)||"",t.removeData(z)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),n=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=x("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(N+"placeholder",e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=N+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){x.effects.restoreStyle(t),x.effects.removePlaceholder(t)},setTransition:function(n,t,s,o){return o=o||{},x.each(t,function(t,e){var i=n.cssUnit(e);0<i[0]&&(o[e]=i[0]*s+i[1])}),o}}),x.fn.extend({effect:function(){function t(t){var e=x(this),i=x.effects.mode(e,r)||o;e.data(L,!0),l.push(i),o&&("show"===i||i===o&&"hide"===i)&&e.show(),o&&"none"===i||x.effects.saveStyle(e),x.isFunction(t)&&t()}var n=B.apply(this,arguments),s=x.effects.effect[n.effect],o=s.mode,e=n.queue,i=e||"fx",a=n.complete,r=n.mode,l=[];return x.fx.off||!s?r?this[r](n.duration,a):this.each(function(){a&&a.call(this)}):!1===e?this.each(t).each(c):this.queue(i,t).queue(i,c);function c(t){var e=x(this);function i(){x.isFunction(a)&&a.call(e[0]),x.isFunction(t)&&t()}n.mode=l.shift(),!1===x.uiBackCompat||o?"none"===n.mode?(e[r](),i()):s.call(e[0],n,function(){e.removeData(L),x.effects.cleanUp(e),"hide"===n.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===r:"show"===r)?(e[r](),i()):s.call(e[0],n,i)}},show:(H=x.fn.show,function(t){if(Y(t))return H.apply(this,arguments);var e=B.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:($=x.fn.hide,function(t){if(Y(t))return $.apply(this,arguments);var e=B.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(E=x.fn.toggle,function(t){if(Y(t)||"boolean"==typeof t)return E.apply(this,arguments);var e=B.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(t){var i=this.css(t),n=[];return x.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):U(this.css("clip"),this)},transfer:function(t,e){var i=x(this),n=x(t.to),s="fixed"===n.css("position"),o=x("body"),a=s?o.scrollTop():0,r=s?o.scrollLeft():0,o=n.offset(),o={top:o.top-a,left:o.left-r,height:n.innerHeight(),width:n.innerWidth()},n=i.offset(),l=x("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:n.top-a,left:n.left-r,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(o,t.duration,t.easing,function(){l.remove(),x.isFunction(e)&&e()})}}),x.fx.step.clip=function(t){t.clipInit||(t.start=x(t.elem).cssClip(),"string"==typeof t.end&&(t.end=U(t.end,t.elem)),t.clipInit=!0),x(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},O={},x.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){O[t]=function(t){return Math.pow(t,e+2)}}),x.extend(O,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),x.each(O,function(t,e){x.easing["easeIn"+t]=e,x.easing["easeOut"+t]=function(t){return 1-e(1-t)},x.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var K=x.effects;x.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=x(this),s=t.direction||"up",o=n.cssClip(),a={clip:x.extend({},o)},r=x.effects.createPlaceholder(n);a.clip[i[s][0]]=a.clip[i[s][1]],"show"===t.mode&&(n.cssClip(a.clip),r&&r.css(x.effects.clipToBox(a)),a.clip=o),r&&r.animate(x.effects.clipToBox(a),t.duration,t.easing),n.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("bounce",function(t,e){var i,n,s=x(this),o=t.mode,a="hide"===o,r="show"===o,l=t.direction||"up",c=t.distance,h=t.times||5,o=2*h+(r||a?1:0),u=t.duration/o,d=t.easing,p="up"===l||"down"===l?"top":"left",f="up"===l||"left"===l,m=0,t=s.queue().length;for(x.effects.createPlaceholder(s),l=s.css(p),c=c||s["top"==p?"outerHeight":"outerWidth"]()/3,r&&((n={opacity:1})[p]=l,s.css("opacity",0).css(p,f?2*-c:2*c).animate(n,u,d)),a&&(c/=Math.pow(2,h-1)),(n={})[p]=l;m<h;m++)(i={})[p]=(f?"-=":"+=")+c,s.animate(i,u,d).animate(n,u,d),c=a?2*c:c/2;a&&((i={opacity:0})[p]=(f?"-=":"+=")+c,s.animate(i,u,d)),s.queue(e),x.effects.unshift(s,t,1+o)}),x.effects.define("clip","hide",function(t,e){var i={},n=x(this),s=t.direction||"vertical",o="both"===s,a=o||"horizontal"===s,o=o||"vertical"===s,s=n.cssClip();i.clip={top:o?(s.bottom-s.top)/2:s.top,right:a?(s.right-s.left)/2:s.right,bottom:o?(s.bottom-s.top)/2:s.bottom,left:a?(s.right-s.left)/2:s.left},x.effects.createPlaceholder(n),"show"===t.mode&&(n.cssClip(i.clip),i.clip=s),n.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("drop","hide",function(t,e){var i=x(this),n="show"===t.mode,s=t.direction||"left",o="up"===s||"down"===s?"top":"left",a="up"===s||"left"===s?"-=":"+=",r="+="==a?"-=":"+=",l={opacity:0};x.effects.createPlaceholder(i),s=t.distance||i["top"==o?"outerHeight":"outerWidth"](!0)/2,l[o]=a+s,n&&(i.css(l),l[o]=r+s,l.opacity=1),i.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("explode","hide",function(t,e){var i,n,s,o,a,r,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=l,h=x(this),u="show"===t.mode,d=h.show().css("visibility","hidden").offset(),p=Math.ceil(h.outerWidth()/c),f=Math.ceil(h.outerHeight()/l),m=[];function g(){m.push(this),m.length===l*c&&(h.css({visibility:"visible"}),x(m).remove(),e())}for(i=0;i<l;i++)for(o=d.top+i*f,r=i-(l-1)/2,n=0;n<c;n++)s=d.left+n*p,a=n-(c-1)/2,h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*p,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:f,left:s+(u?a*p:0),top:o+(u?r*f:0),opacity:u?0:1}).animate({left:s+(u?0:a*p),top:o+(u?0:r*f),opacity:u?1:0},t.duration||500,t.easing,g)}),x.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;x(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("fold","hide",function(e,t){var i=x(this),n=e.mode,s="show"===n,o="hide"===n,a=e.size||15,r=/([0-9]+)%/.exec(a),l=!!e.horizFirst?["right","bottom"]:["bottom","right"],c=e.duration/2,h=x.effects.createPlaceholder(i),u=i.cssClip(),d={clip:x.extend({},u)},p={clip:x.extend({},u)},f=[u[l[0]],u[l[1]]],n=i.queue().length;r&&(a=parseInt(r[1],10)/100*f[o?0:1]),d.clip[l[0]]=a,p.clip[l[0]]=a,p.clip[l[1]]=0,s&&(i.cssClip(p.clip),h&&h.css(x.effects.clipToBox(p)),p.clip=u),i.queue(function(t){h&&h.animate(x.effects.clipToBox(d),c,e.easing).animate(x.effects.clipToBox(p),c,e.easing),t()}).animate(d,c,e.easing).animate(p,c,e.easing).queue(t),x.effects.unshift(i,n,4)}),x.effects.define("highlight","show",function(t,e){var i=x(this),n={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(n.opacity=0),x.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),x.effects.define("size",function(n,e){var s,i=x(this),t=["fontSize"],o=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],r=n.mode,l="effect"!==r,c=n.scale||"both",h=n.origin||["middle","center"],u=i.css("position"),d=i.position(),p=x.effects.scaledDimensions(i),f=n.from||p,m=n.to||x.effects.scaledDimensions(i,0);x.effects.createPlaceholder(i),"show"===r&&(r=f,f=m,m=r),s={from:{y:f.height/p.height,x:f.width/p.width},to:{y:m.height/p.height,x:m.width/p.width}},"box"!==c&&"both"!==c||(s.from.y!==s.to.y&&(f=x.effects.setTransition(i,o,s.from.y,f),m=x.effects.setTransition(i,o,s.to.y,m)),s.from.x!==s.to.x&&(f=x.effects.setTransition(i,a,s.from.x,f),m=x.effects.setTransition(i,a,s.to.x,m))),"content"!==c&&"both"!==c||s.from.y!==s.to.y&&(f=x.effects.setTransition(i,t,s.from.y,f),m=x.effects.setTransition(i,t,s.to.y,m)),h&&(h=x.effects.getBaseline(h,p),f.top=(p.outerHeight-f.outerHeight)*h.y+d.top,f.left=(p.outerWidth-f.outerWidth)*h.x+d.left,m.top=(p.outerHeight-m.outerHeight)*h.y+d.top,m.left=(p.outerWidth-m.outerWidth)*h.x+d.left),i.css(f),"content"!==c&&"both"!==c||(o=o.concat(["marginTop","marginBottom"]).concat(t),a=a.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=x(this),e=x.effects.scaledDimensions(t),i={height:e.height*s.from.y,width:e.width*s.from.x,outerHeight:e.outerHeight*s.from.y,outerWidth:e.outerWidth*s.from.x},e={height:e.height*s.to.y,width:e.width*s.to.x,outerHeight:e.height*s.to.y,outerWidth:e.width*s.to.x};s.from.y!==s.to.y&&(i=x.effects.setTransition(t,o,s.from.y,i),e=x.effects.setTransition(t,o,s.to.y,e)),s.from.x!==s.to.x&&(i=x.effects.setTransition(t,a,s.from.x,i),e=x.effects.setTransition(t,a,s.to.x,e)),l&&x.effects.saveStyle(t),t.css(i),t.animate(e,n.duration,n.easing,function(){l&&x.effects.restoreStyle(t)})})),i.animate(m,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=i.offset();0===m.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===u?"relative":u).offset(t),x.effects.saveStyle(i)),e()}})}),x.effects.define("scale",function(t,e){var i=x(this),n=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==n?0:100),n=x.extend(!0,{from:x.effects.scaledDimensions(i),to:x.effects.scaledDimensions(i,n,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(n.from.opacity=1,n.to.opacity=0),x.effects.effect.size.call(this,n,e)}),x.effects.define("puff","hide",function(t,e){t=x.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});x.effects.effect.scale.call(this,t,e)}),x.effects.define("pulsate","show",function(t,e){var i=x(this),n=t.mode,s="show"===n,n=s||"hide"===n,o=2*(t.times||5)+(n?1:0),a=t.duration/o,r=0,l=1,n=i.queue().length;for(!s&&i.is(":visible")||(i.css("opacity",0).show(),r=1);l<o;l++)i.animate({opacity:r},a,t.easing),r=1-r;i.animate({opacity:r},a,t.easing),i.queue(e),x.effects.unshift(i,n,1+o)}),x.effects.define("shake",function(t,e){var i=1,n=x(this),s=t.direction||"left",o=t.distance||20,a=t.times||3,r=2*a+1,l=Math.round(t.duration/r),c="up"===s||"down"===s?"top":"left",h="up"===s||"left"===s,u={},d={},p={},s=n.queue().length;for(x.effects.createPlaceholder(n),u[c]=(h?"-=":"+=")+o,d[c]=(h?"+=":"-=")+2*o,p[c]=(h?"-=":"+=")+2*o,n.animate(u,l,t.easing);i<a;i++)n.animate(d,l,t.easing).animate(p,l,t.easing);n.animate(d,l,t.easing).animate(u,l/2,t.easing).queue(e),x.effects.unshift(n,s,1+r)}),x.effects.define("slide","show",function(t,e){var i,n,s=x(this),o={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,r=t.direction||"left",l="up"===r||"down"===r?"top":"left",c="up"===r||"left"===r,h=t.distance||s["top"==l?"outerHeight":"outerWidth"](!0),u={};x.effects.createPlaceholder(s),i=s.cssClip(),n=s.position()[l],u[l]=(c?-1:1)*h+n,u.clip=s.cssClip(),u.clip[o[r][1]]=u.clip[o[r][0]],"show"===a&&(s.cssClip(u.clip),s.css(l,u[l]),u.clip=i,u[l]=n),s.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:e})});!1!==x.uiBackCompat&&(K=x.effects.define("transfer",function(t,e){x(this).transfer(t,e)}));x.ui.focusable=function(t,e){var i,n,s,o,a=t.nodeName.toLowerCase();return"area"===a?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&(0<(n=x("img[usemap='#"+n+"']")).length&&n.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(a)?(s=!t.disabled)&&(o=x(t).closest("fieldset")[0])&&(s=!o.disabled):s="a"===a&&t.href||e,s&&x(t).is(":visible")&&function(t){var e=t.css("visibility");for(;"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}(x(t)))},x.extend(x.expr[":"],{focusable:function(t){return x.ui.focusable(t,null!=x.attr(t,"tabindex"))}});x.ui.focusable,x.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):x(this[0].form)},x.ui.formResetMixin={_formResetHandler:function(){var e=x(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");x.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=this.element.form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice(x.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}};"1.7"===x.fn.jquery.substring(0,3)&&(x.each(["Width","Height"],function(t,i){var s="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),o={innerWidth:x.fn.innerWidth,innerHeight:x.fn.innerHeight,outerWidth:x.fn.outerWidth,outerHeight:x.fn.outerHeight};function a(t,e,i,n){return x.each(s,function(){e-=parseFloat(x.css(t,"padding"+this))||0,i&&(e-=parseFloat(x.css(t,"border"+this+"Width"))||0),n&&(e-=parseFloat(x.css(t,"margin"+this))||0)}),e}x.fn["inner"+i]=function(t){return void 0===t?o["inner"+i].call(this):this.each(function(){x(this).css(n,a(this,t)+"px")})},x.fn["outer"+i]=function(t,e){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){x(this).css(n,a(this,t,!0,e)+"px")})}}),x.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))});var V,X;x.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},x.ui.escapeSelector=(V=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(V,"\\$1")}),x.fn.labels=function(){var t,e,i;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+x.ui.escapeSelector(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e))},x.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=x(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:x(this[0].ownerDocument||document)},x.extend(x.expr[":"],{tabbable:function(t){var e=x.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&x.ui.focusable(t,i)}}),x.fn.extend({uniqueId:(X=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++X)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&x(this).removeAttr("id")})}}),x.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=x(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():x()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=x("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=x.ui.keyCode,i=this.headers.length,n=this.headers.index(t.target),s=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:s=this.headers[(n+1)%i];break;case e.LEFT:case e.UP:s=this.headers[(n-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:s=this.headers[0];break;case e.END:s=this.headers[i-1]}s&&(x(t.target).attr("tabIndex",-1),x(s).attr("tabIndex",0),x(s).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===x.ui.keyCode.UP&&t.ctrlKey&&x(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=x()):!1===t.active?this._activate(0):this.active.length&&!x.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=x()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,n=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=x(this),e=t.uniqueId().attr("id"),i=t.next(),n=i.uniqueId().attr("id");t.attr("aria-controls",n),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=n.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=x(this).outerHeight(!0)}),this.headers.next().each(function(){x(this).height(Math.max(0,i-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=x(this).is(":visible");t||x(this).show(),i=Math.max(i,x(this).css("height","").height()),t||x(this).hide()}).height(i))},_activate:function(t){t=this._findActive(t)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:x.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):x()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&x.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,n=x(t.currentTarget),s=n[0]===i[0],o=s&&e.collapsible,a=o?x():n.next(),r=i.next(),a={oldHeader:i,oldPanel:r,newHeader:o?x():n,newPanel:a};t.preventDefault(),s&&!e.collapsible||!1===this._trigger("beforeActivate",t,a)||(e.active=!o&&this.headers.index(n),this.active=s?x():n,this._toggle(a),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(i=i.children(".ui-accordion-header-icon"),this._removeClass(i,null,e.icons.activeHeader)._addClass(i,null,e.icons.header)),s||(this._removeClass(n,"ui-accordion-header-collapsed")._addClass(n,"ui-accordion-header-active","ui-state-active"),e.icons&&(s=n.children(".ui-accordion-header-icon"),this._removeClass(s,null,e.icons.header)._addClass(s,null,e.icons.activeHeader)),this._addClass(n.next(),"ui-accordion-content-active")))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt(x(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){var n,s,o,a=this,r=0,l=t.css("box-sizing"),c=t.length&&(!i.length||t.index()<i.index()),h=this.options.animate||{},u=c&&h.down||h,c=function(){a._toggleComplete(e)};return"number"==typeof u&&(o=u),"string"==typeof u&&(s=u),s=s||u.easing||h.easing,o=o||u.duration||h.duration,i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:o,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:s,complete:c,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===l&&(r+=e.now):"content"!==a.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-r),r=0)}})):i.animate(this.hideProps,o,s,c):t.animate(this.showProps,o,s,c)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),x.ui.safeActiveElement=function(e){var i;try{i=e.activeElement}catch(t){i=e.body}return(i=i||e.body).nodeName||(i=e.body),i},x.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var e,i;this.previousFilter||(e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,n,s=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:s=!1,e=this.previousFilter||"",n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?n=!0:i=e+i,e=this._filterMenuItems(i),(e=n&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,n=this,s=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("<span>").data("ui-menu-submenu-caret",!0);n._addClass(i,"ui-menu-icon","ui-icon "+s),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);n._isDivider(t)&&n._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,n;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-n,i=this.activeMenu.scrollTop(),n=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):n<e+t&&this.activeMenu.scrollTop(i+e-n+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=x.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:x(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!x(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(t){var e,i,n;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(e=x(this)).offset().top-i-n<0}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,n;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=x(this)).offset().top-i+n}),this.focus(t,e)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||x(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(x.trim(x(this).children(".ui-menu-item-wrapper").text()))})}});x.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,s,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:n=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!n){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(s)return s=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=x("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==x.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,e){var i;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});i=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),(i=e.item.attr("aria-label")||i.value)&&x.trim(i).length&&(this.liveRegion.children().hide(),x("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,n,s=this;x.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,e){s.xhr&&s.xhr.abort(),s.xhr=x.ajax({url:n,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||e||i)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return x.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:x.map(t,function(t){return"string"==typeof t?{label:t,value:t}:x.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position(x.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var n=this;x.each(t,function(t,e){n._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return x("<li>").append(x("<div>").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),x("<div>").text(e).appendTo(this.liveRegion))}});x.ui.autocomplete;var Q=/ui-corner-([a-z]){2,6}/g;x.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var o=this,a=[];x.each(this.options.items,function(n,t){var e,s={};if(t)return"controlgroupLabel"===n?((e=o.element.find(t)).each(function(){var t=x(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),o._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),void(a=a.concat(e.get()))):void(x.fn[n]&&(s=o["_"+n+"Options"]?o["_"+n+"Options"]("middle"):{classes:{}},o.element.find(t).each(function(){var t=x(this),e=t[n]("instance"),i=x.widget.extend({},s);"button"===n&&t.parent(".ui-spinner").length||((e=e||t[n]()[n]("instance"))&&(i.classes=o._resolveClassesValues(i.classes,e)),t[n](i),i=t[n]("widget"),x.data(i[0],"ui-controlgroup-data",e||t[n]("instance")),a.push(i[0]))})))}),this.childWidgets=x(x.unique(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=x(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){t=this._buildSimpleOptions(t,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,n){var s={};return x.each(i,function(t){var e=n.options.classes[t]||"",e=x.trim(e.replace(Q,""));s[t]=(e+" "+i[t]).replace(/\s+/g," ")}),s},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var s,o=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),s=this.childWidgets,this.options.onlyVisible&&(s=s.filter(":visible")),s.length&&(x.each(["first","last"],function(t,e){var i,n=s[e]().data("ui-controlgroup-data");n&&o["_"+n.widgetName+"Options"]?((i=o["_"+n.widgetName+"Options"](1===s.length?"only":e)).classes=o._resolveClassesValues(i.classes,n),n.element[n.widgetName](i)):o._updateCornerClass(s[e](),e)}),this._callChildMethod("refresh"))}});x.widget("ui.checkboxradio",[x.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this,i=this._super()||{};return this._readType(),t=this.element.labels(),this.label=x(t[t.length-1]),this.label.length||x.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){e.originalLabel+=3===this.nodeType?x(this).text():this.outerHTML}),this.originalLabel&&(i.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(i.disabled=t),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||x.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+x.ui.escapeSelector(t)+"']";return t?(this.form.length?x(this.form[0].elements).filter(e):x(e).filter(function(){return 0===x(this).form().length})).not(this.element):x([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=x(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=x("<span>"),this.iconSpace=x("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);var G;x.ui.checkboxradio;x.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===x.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var i="iconPosition"!==t,n=i?this.options.iconPosition:e,t="top"===n||"bottom"===n;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=x("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,e),this._attachIcon(n),t?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=x("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==x.uiBackCompat&&(x.widget("ui.button",x.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),x.fn.button=(G=x.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?G.apply(this,arguments):(x.ui.checkboxradio||x.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),x.fn.buttonset=function(){return x.ui.controlgroup||x.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});var Z;x.ui.button;function J(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},x.extend(this._defaults,this.regional[""]),this.regional.en=x.extend(!0,{},this.regional[""]),this.regional["en-US"]=x.extend(!0,{},this.regional.en),this.dpDiv=tt(x("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function tt(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){x(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,et)}function et(){x.datepicker._isDisabledDatepicker((Z.inline?Z.dpDiv.parent():Z.input)[0])||(x(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),x(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&x(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&x(this).addClass("ui-datepicker-next-hover"))}function it(t,e){for(var i in x.extend(t,e),e)null==e[i]&&(t[i]=e[i]);return t}x.extend(x.ui,{datepicker:{version:"1.12.1"}}),x.extend(J.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return it(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,n=t.nodeName.toLowerCase(),s="div"===n||"span"===n;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst(x(t),s)).settings=x.extend({},e||{}),"input"===n?this._connectDatepicker(t,i):s&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?tt(x("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=x(t);e.append=x([]),e.trigger=x([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),x.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,n=this._get(e,"appendText"),s=this._get(e,"isRTL");e.append&&e.append.remove(),n&&(e.append=x("<span class='"+this._appendClass+"'>"+n+"</span>"),t[s?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(i=this._get(e,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(n=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),e.trigger=x(this._get(e,"buttonImageOnly")?x("<img/>").addClass(this._triggerClass).attr({src:i,alt:n,title:n}):x("<button type='button'></button>").addClass(this._triggerClass).html(i?x("<img/>").attr({src:i,alt:n,title:n}):n)),t[s?"before":"after"](e.trigger),e.trigger.on("click",function(){return x.datepicker._datepickerShowing&&x.datepicker._lastInput===t[0]?x.datepicker._hideDatepicker():(x.datepicker._datepickerShowing&&x.datepicker._lastInput!==t[0]&&x.datepicker._hideDatepicker(),x.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,n,s,o,a;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(s=n=i=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(t,e){var i=x(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),x.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,n,s){var o,a=this._dialogInst;return a||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=x("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),x("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},x.data(this._dialogInput[0],"datepicker",a)),it(a.settings,n||{}),e=e&&e.constructor===Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(o=document.documentElement.clientWidth,n=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,s=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+e,n/2-150+s]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),x.blockUI&&x.blockUI(this.dpDiv),x.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var e,i=x(t),n=x.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),x.removeData(t,"datepicker"),"input"===e?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),Z===n&&(Z=null))},_enableDatepicker:function(e){var t,i=x(e),n=x.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=x(e),n=x.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((i=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=x.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return x.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var n,s,o,a,r=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?x.extend({},x.datepicker._defaults):r?"all"===e?x.extend({},r.settings):this._get(r,e):null;n=e||{},"string"==typeof e&&((n={})[e]=i),r&&(this._curInst===r&&this._hideDatepicker(),s=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(r,"min"),a=this._getMinMaxDate(r,"max"),it(r.settings,n),null!==o&&void 0!==n.dateFormat&&void 0===n.minDate&&(r.settings.minDate=this._formatDate(r,o)),null!==a&&void 0!==n.dateFormat&&void 0===n.maxDate&&(r.settings.maxDate=this._formatDate(r,a)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(x(t),r),this._autoSize(r),this._setDate(r,s),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){t=this._getInst(t);t&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){t=this._getInst(t);t&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){t=this._getInst(t);return t&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,n=x.datepicker._getInst(t.target),s=!0,o=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,x.datepicker._datepickerShowing)switch(t.keyCode){case 9:x.datepicker._hideDatepicker(),s=!1;break;case 13:return(i=x("td."+x.datepicker._dayOverClass+":not(."+x.datepicker._currentClass+")",n.dpDiv))[0]&&x.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,i[0]),(e=x.datepicker._get(n,"onSelect"))?(i=x.datepicker._formatDate(n),e.apply(n.input?n.input[0]:null,[i,n])):x.datepicker._hideDatepicker(),!1;case 27:x.datepicker._hideDatepicker();break;case 33:x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(n,"stepBigMonths"):-x.datepicker._get(n,"stepMonths"),"M");break;case 34:x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(n,"stepBigMonths"):+x.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&x.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&x.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,o?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?-x.datepicker._get(n,"stepBigMonths"):-x.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,o?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&x.datepicker._adjustDate(t.target,t.ctrlKey?+x.datepicker._get(n,"stepBigMonths"):+x.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&x.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?x.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=x.datepicker._getInst(t.target);if(x.datepicker._get(i,"constrainInput"))return e=x.datepicker._possibleChars(x.datepicker._get(i,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!e||-1<e.indexOf(i)},_doKeyUp:function(t){var e=x.datepicker._getInst(t.target);if(e.input.val()!==e.lastVal)try{x.datepicker.parseDate(x.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,x.datepicker._getFormatConfig(e))&&(x.datepicker._setDateFromField(e),x.datepicker._updateAlternate(e),x.datepicker._updateDatepicker(e))}catch(t){}return!0},_showDatepicker:function(t){var e,i,n,s;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=x("input",t.parentNode)[0]),x.datepicker._isDisabledDatepicker(t)||x.datepicker._lastInput===t||(s=x.datepicker._getInst(t),x.datepicker._curInst&&x.datepicker._curInst!==s&&(x.datepicker._curInst.dpDiv.stop(!0,!0),s&&x.datepicker._datepickerShowing&&x.datepicker._hideDatepicker(x.datepicker._curInst.input[0])),!1!==(i=(n=x.datepicker._get(s,"beforeShow"))?n.apply(t,[t,s]):{})&&(it(s.settings,i),s.lastVal=null,x.datepicker._lastInput=t,x.datepicker._setDateFromField(s),x.datepicker._inDialog&&(t.value=""),x.datepicker._pos||(x.datepicker._pos=x.datepicker._findPos(t),x.datepicker._pos[1]+=t.offsetHeight),e=!1,x(t).parents().each(function(){return!(e|="fixed"===x(this).css("position"))}),n={left:x.datepicker._pos[0],top:x.datepicker._pos[1]},x.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),x.datepicker._updateDatepicker(s),n=x.datepicker._checkOffset(s,n,e),s.dpDiv.css({position:x.datepicker._inDialog&&x.blockUI?"static":e?"fixed":"absolute",display:"none",left:n.left+"px",top:n.top+"px"}),s.inline||(i=x.datepicker._get(s,"showAnim"),n=x.datepicker._get(s,"duration"),s.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(x(t))+1),x.datepicker._datepickerShowing=!0,x.effects&&x.effects.effect[i]?s.dpDiv.show(i,x.datepicker._get(s,"showOptions"),n):s.dpDiv[i||"show"](i?n:null),x.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),x.datepicker._curInst=s)))},_updateDatepicker:function(t){this.maxRows=4,(Z=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),n=i[1],s=t.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&et.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&t.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===x.datepicker._curInst&&x.datepicker._datepickerShowing&&x.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),e=t.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(t,e,i){var n=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,r=document.documentElement.clientWidth+(i?0:x(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:x(document).scrollTop());return e.left-=this._get(t,"isRTL")?n-o:0,e.left-=i&&e.left===t.input.offset().left?x(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+a?x(document).scrollTop():0,e.left-=Math.min(e.left,e.left+n>r&&n<r?Math.abs(e.left+n-r):0),e.top-=Math.min(e.top,e.top+s>l&&s<l?Math.abs(s+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||x.expr.filters.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=x(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,n=this._curInst;!n||t&&n!==x.data(t,"datepicker")||this._datepickerShowing&&(e=this._get(n,"showAnim"),i=this._get(n,"duration"),t=function(){x.datepicker._tidyDialog(n)},x.effects&&(x.effects.effect[e]||x.effects[e])?n.dpDiv.hide(e,x.datepicker._get(n,"showOptions"),i,t):n.dpDiv["slideDown"===e?"slideUp":"fadeIn"===e?"fadeOut":"hide"](e?i:null,t),e||t(),this._datepickerShowing=!1,(t=this._get(n,"onClose"))&&t.apply(n.input?n.input[0]:null,[n.input?n.input.val():"",n]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),x.blockUI&&(x.unblockUI(),x("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;x.datepicker._curInst&&(e=x(t.target),t=x.datepicker._getInst(e[0]),(e[0].id===x.datepicker._mainDivId||0!==e.parents("#"+x.datepicker._mainDivId).length||e.hasClass(x.datepicker.markerClassName)||e.closest("."+x.datepicker._triggerClass).length||!x.datepicker._datepickerShowing||x.datepicker._inDialog&&x.blockUI)&&(!e.hasClass(x.datepicker.markerClassName)||x.datepicker._curInst===t)||x.datepicker._hideDatepicker())},_adjustDate:function(t,e,i){var n=x(t),t=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(t,e+("M"===i?this._get(t,"showCurrentAtPos"):0),i),this._updateDatepicker(t))},_gotoToday:function(t){var e=x(t),i=this._getInst(e[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(t=new Date,i.selectedDay=t.getDate(),i.drawMonth=i.selectedMonth=t.getMonth(),i.drawYear=i.selectedYear=t.getFullYear()),this._notifyChange(i),this._adjustDate(e)},_selectMonthYear:function(t,e,i){var n=x(t),t=this._getInst(n[0]);t["selected"+("M"===i?"Month":"Year")]=t["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(t),this._adjustDate(n)},_selectDay:function(t,e,i,n){var s=x(t);x(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||((s=this._getInst(s[0])).selectedDay=s.currentDay=x("a",n).html(),s.selectedMonth=s.currentMonth=e,s.selectedYear=s.currentYear=i,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){t=x(t);this._selectDate(t,"")},_selectDate:function(t,e){var i=x(t),t=this._getInst(i[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,n=this._get(t,"altField");n&&(e=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),t=this.formatDate(e,i,this._getFormatConfig(t)),x(n).val(t))},noWeekends:function(t){t=t.getDay();return[0<t&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,s,t){if(null==e||null==s)throw"Invalid arguments";if(""===(s="object"==typeof s?s.toString():s+""))return null;function o(t){return(t=w+1<e.length&&e.charAt(w+1)===t)&&w++,t}function i(t){var e=o(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(!(e=s.substring(h).match(e)))throw"Missing number at position "+h;return h+=e[0].length,parseInt(e[0],10)}function n(t,e,i){var n=-1,e=x.map(o(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(x.each(e,function(t,e){var i=e[1];if(s.substr(h,i.length).toLowerCase()===i.toLowerCase())return n=e[0],h+=i.length,!1}),-1!==n)return n+1;throw"Unknown name at position "+h}function a(){if(s.charAt(h)!==e.charAt(w))throw"Unexpected literal at position "+h;h++}for(var r,l,c,h=0,u=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),d=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,p=(t?t.dayNames:null)||this._defaults.dayNames,f=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,m=(t?t.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,b=-1,y=-1,_=!1,w=0;w<e.length;w++)if(_)"'"!==e.charAt(w)||o("'")?a():_=!1;else switch(e.charAt(w)){case"d":b=i("d");break;case"D":n("D",d,p);break;case"o":y=i("o");break;case"m":v=i("m");break;case"M":v=n("M",f,m);break;case"y":g=i("y");break;case"@":g=(c=new Date(i("@"))).getFullYear(),v=c.getMonth()+1,b=c.getDate();break;case"!":g=(c=new Date((i("!")-this._ticksTo1970)/1e4)).getFullYear(),v=c.getMonth()+1,b=c.getDate();break;case"'":o("'")?a():_=!0;break;default:a()}if(h<s.length&&(l=s.substr(h),!/^\s+/.test(l)))throw"Extra/unparsed characters found in date: "+l;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),-1<y)for(v=1,b=y;;){if(b<=(r=this._getDaysInMonth(g,v-1)))break;v++,b-=r}if((c=this._daylightSavingAdjust(new Date(g,v-1,b))).getFullYear()!==g||c.getMonth()+1!==v||c.getDate()!==b)throw"Invalid date";return c},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t){return(t=a+1<e.length&&e.charAt(a+1)===t)&&a++,t}function n(t,e,i){var n=""+e;if(s(t))for(;n.length<i;)n="0"+n;return n}function o(t,e,i,n){return(s(t)?n:i)[e]}var a,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,l=(i?i.dayNames:null)||this._defaults.dayNames,c=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,u="",d=!1;if(t)for(a=0;a<e.length;a++)if(d)"'"!==e.charAt(a)||s("'")?u+=e.charAt(a):d=!1;else switch(e.charAt(a)){case"d":u+=n("d",t.getDate(),2);break;case"D":u+=o("D",t.getDay(),r,l);break;case"o":u+=n("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=n("m",t.getMonth()+1,2);break;case"M":u+=o("M",t.getMonth(),c,h);break;case"y":u+=s("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":s("'")?u+="'":d=!0;break;default:u+=e.charAt(a)}return u},_possibleChars:function(e){function t(t){return(t=s+1<e.length&&e.charAt(s+1)===t)&&s++,t}for(var i="",n=!1,s=0;s<e.length;s++)if(n)"'"!==e.charAt(s)||t("'")?i+=e.charAt(s):n=!1;else switch(e.charAt(s)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":t("'")?i+="'":n=!0;break;default:i+=e.charAt(s)}return i},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),o=s,a=this._getFormatConfig(t);try{o=this.parseDate(i,n,a)||s}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(r,t,e){var i,n,t=null==t||""===t?e:"string"==typeof t?function(t){try{return x.datepicker.parseDate(x.datepicker._get(r,"dateFormat"),t,x.datepicker._getFormatConfig(r))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?x.datepicker._getDate(r):null)||new Date,i=e.getFullYear(),n=e.getMonth(),s=e.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=o.exec(t);a;){switch(a[2]||"d"){case"d":case"D":s+=parseInt(a[1],10);break;case"w":case"W":s+=7*parseInt(a[1],10);break;case"m":case"M":n+=parseInt(a[1],10),s=Math.min(s,x.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(a[1],10),s=Math.min(s,x.datepicker._getDaysInMonth(i,n))}a=o.exec(t)}return new Date(i,n,s)}(t):"number"==typeof t?isNaN(t)?e:(i=t,(n=new Date).setDate(n.getDate()+i),n):new Date(t.getTime());return(t=t&&"Invalid Date"===t.toString()?e:t)&&(t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)),this._daylightSavingAdjust(t)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),s===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){x.datepicker._adjustDate(i,-e,"M")},next:function(){x.datepicker._adjustDate(i,+e,"M")},hide:function(){x.datepicker._hideDatepicker()},today:function(){x.datepicker._gotoToday(i)},selectDay:function(){return x.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return x.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return x.datepicker._selectMonthYear(i,this,"Y"),!1}};x(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,s,o,a,r,l,c,h,u,d,p,f,m,g,v,b,y,_,w,x,k,C,T,S,D,P,A,I,M,E,$=new Date,H=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth(),$.getDate())),O=this._get(t,"isRTL"),N=this._get(t,"showButtonPanel"),z=this._get(t,"hideIfNoPrevNext"),L=this._get(t,"navigationAsDateFormat"),W=this._getNumberOfMonths(t),j=this._get(t,"showCurrentAtPos"),$=this._get(t,"stepMonths"),F=1!==W[0]||1!==W[1],q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),R=this._getMinMaxDate(t,"min"),B=this._getMinMaxDate(t,"max"),Y=t.drawMonth-j,U=t.drawYear;if(Y<0&&(Y+=12,U--),B)for(e=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth()-W[0]*W[1]+1,B.getDate())),e=R&&e<R?R:e;this._daylightSavingAdjust(new Date(U,Y,1))>e;)--Y<0&&(Y=11,U--);for(t.drawMonth=Y,t.drawYear=U,j=this._get(t,"prevText"),j=L?this.formatDate(j,this._daylightSavingAdjust(new Date(U,Y-$,1)),this._getFormatConfig(t)):j,i=this._canAdjustMonth(t,-1,U,Y)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+j+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"e":"w")+"'>"+j+"</span></a>":z?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+j+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"e":"w")+"'>"+j+"</span></a>",j=this._get(t,"nextText"),j=L?this.formatDate(j,this._daylightSavingAdjust(new Date(U,Y+$,1)),this._getFormatConfig(t)):j,n=this._canAdjustMonth(t,1,U,Y)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+j+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"w":"e")+"'>"+j+"</span></a>":z?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+j+"'><span class='ui-icon ui-icon-circle-triangle-"+(O?"w":"e")+"'>"+j+"</span></a>",z=this._get(t,"currentText"),j=this._get(t,"gotoCurrent")&&t.currentDay?q:H,z=L?this.formatDate(z,j,this._getFormatConfig(t)):z,L=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",L=N?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(O?L:"")+(this._isInRange(t,j)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+z+"</button>":"")+(O?"":L)+"</div>":"",s=parseInt(this._get(t,"firstDay"),10),s=isNaN(s)?0:s,o=this._get(t,"showWeek"),a=this._get(t,"dayNames"),r=this._get(t,"dayNamesMin"),l=this._get(t,"monthNames"),c=this._get(t,"monthNamesShort"),h=this._get(t,"beforeShowDay"),u=this._get(t,"showOtherMonths"),d=this._get(t,"selectOtherMonths"),p=this._getDefaultDate(t),f="",g=0;g<W[0];g++){for(v="",this.maxRows=4,b=0;b<W[1];b++){if(y=this._daylightSavingAdjust(new Date(U,Y,t.selectedDay)),_=" ui-corner-all",w="",F){if(w+="<div class='ui-datepicker-group",1<W[1])switch(b){case 0:w+=" ui-datepicker-group-first",_=" ui-corner-"+(O?"right":"left");break;case W[1]-1:w+=" ui-datepicker-group-last",_=" ui-corner-"+(O?"left":"right");break;default:w+=" ui-datepicker-group-middle",_=""}w+="'>"}for(w+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===g?O?n:i:"")+(/all|right/.test(_)&&0===g?O?i:n:"")+this._generateMonthYearHeader(t,Y,U,R,B,0<g||0<b,l,c)+"</div><table class='ui-datepicker-calendar'><thead><tr>",x=o?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",m=0;m<7;m++)x+="<th scope='col'"+(5<=(m+s+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+a[k=(m+s)%7]+"'>"+r[k]+"</span></th>";for(w+=x+"</tr></thead><tbody>",T=this._getDaysInMonth(U,Y),U===t.selectedYear&&Y===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,T)),C=(this._getFirstDayOfMonth(U,Y)-s+7)%7,T=Math.ceil((C+T)/7),S=F&&this.maxRows>T?this.maxRows:T,this.maxRows=S,D=this._daylightSavingAdjust(new Date(U,Y,1-C)),P=0;P<S;P++){for(w+="<tr>",A=o?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(D)+"</td>":"",m=0;m<7;m++)I=h?h.apply(t.input?t.input[0]:null,[D]):[!0,""],E=(M=D.getMonth()!==Y)&&!d||!I[0]||R&&D<R||B&&B<D,A+="<td class='"+(5<=(m+s+6)%7?" ui-datepicker-week-end":"")+(M?" ui-datepicker-other-month":"")+(D.getTime()===y.getTime()&&Y===t.selectedMonth&&t._keyEvent||p.getTime()===D.getTime()&&p.getTime()===y.getTime()?" "+this._dayOverClass:"")+(E?" "+this._unselectableClass+" ui-state-disabled":"")+(M&&!u?"":" "+I[1]+(D.getTime()===q.getTime()?" "+this._currentClass:"")+(D.getTime()===H.getTime()?" ui-datepicker-today":""))+"'"+(M&&!u||!I[2]?"":" title='"+I[2].replace(/'/g,"&#39;")+"'")+(E?"":" data-handler='selectDay' data-event='click' data-month='"+D.getMonth()+"' data-year='"+D.getFullYear()+"'")+">"+(M&&!u?"&#xa0;":E?"<span class='ui-state-default'>"+D.getDate()+"</span>":"<a class='ui-state-default"+(D.getTime()===H.getTime()?" ui-state-highlight":"")+(D.getTime()===q.getTime()?" ui-state-active":"")+(M?" ui-priority-secondary":"")+"' href='#'>"+D.getDate()+"</a>")+"</td>",D.setDate(D.getDate()+1),D=this._daylightSavingAdjust(D);w+=A+"</tr>"}11<++Y&&(Y=0,U++),v+=w+="</tbody></table>"+(F?"</div>"+(0<W[0]&&b===W[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}f+=v}return f+=L,t._keyEvent=!1,f},_generateMonthYearHeader:function(t,e,i,n,s,o,a,r){var l,c,h,u,d,p,f,m=this._get(t,"changeMonth"),g=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=n.getMonth())&&(!c||h<=s.getMonth())&&(y+="<option value='"+h+"'"+(h===e?" selected='selected'":"")+">"+r[h]+"</option>");y+="</select>"}if(v||(b+=y+(!o&&m&&g?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!g)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=(a=function(t){t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(t)?d:t})(u[0]),f=Math.max(p,a(u[1]||"")),p=n?Math.max(p,n.getFullYear()):p,f=s?Math.min(f,s.getFullYear()):f,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=f;p++)t.yearshtml+="<option value='"+p+"'"+(p===i?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),v&&(b+=(!o&&m&&g?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),t=this._getMinMaxDate(t,"max"),e=i&&e<i?i:e;return t&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){t=this._get(t,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=null,o=null,a=this._get(t,"yearRange");return a&&(t=a.split(":"),a=(new Date).getFullYear(),s=parseInt(t[0],10),o=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(s+=a),t[1].match(/[+\-].*/)&&(o+=a)),(!i||e.getTime()>=i.getTime())&&(!n||e.getTime()<=n.getTime())&&(!s||e.getFullYear()>=s)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),x.fn.datepicker=function(t){if(!this.length)return this;x.datepicker.initialized||(x(document).on("mousedown",x.datepicker._checkExternalClick),x.datepicker.initialized=!0),0===x("#"+x.datepicker._mainDivId).length&&x("body").append(x.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?x.datepicker["_"+t+"Datepicker"].apply(x.datepicker,[this].concat(e)):x.datepicker._attachDatepicker(this,t)})},x.datepicker=new J,x.datepicker.initialized=!1,x.datepicker.uuid=(new Date).getTime(),x.datepicker.version="1.12.1";x.datepicker,x.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var nt=!1;x(document).on("mouseup",function(){nt=!1});x.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===x.data(t.target,e.widgetName+".preventClickEvent"))return x.removeData(t.target,e.widgetName+".preventClickEvent"),t.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!nt){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var e=this,i=1===t.which,n=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&x(t.target).closest(this.options.cancel).length;return i&&!n&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===x.data(t.target,this.widgetName+".preventClickEvent")&&x.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),nt=!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(x.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&x.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,nt=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),x.ui.plugin={add:function(t,e,i){var n,s=x.ui[t].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)t.options[o[s][0]]&&o[s][1].apply(t.element,i)}},x.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&x(t).trigger("blur")};x.widget("ui.draggable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var e=this.options;return!(this.helper||e.disabled||0<x(t.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=x(this);return x("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var e=x.ui.safeActiveElement(this.document[0]);x(t.target).closest(e).length||x.ui.safeBlur(e)},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),x.ui.ddmanager&&(x.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===x(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),x.ui.ddmanager&&!e.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),x.ui.ddmanager&&x.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){e=this._uiHash();if(!1===this._trigger("drag",t,e))return this._mouseUp(new x.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return x.ui.ddmanager&&!this.options.dropBehaviour&&(i=x.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||x.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?x(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),x.ui.ddmanager&&x.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),x.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new x.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!x(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var e=this.options,i=x.isFunction(e.helper),t=i?x(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element;return t.parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),x.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i,n=this.options,s=this.document[0];this.relativeContainer=null,n.containment?"window"!==n.containment?"document"!==n.containment?n.containment.constructor!==Array?("parent"===n.containment&&(n.containment=this.helper[0].parentNode),(i=(e=x(n.containment))[0])&&(t=/(scroll|auto)/.test(e.css("overflow")),this.containment=[(parseInt(e.css("borderLeftWidth"),10)||0)+(parseInt(e.css("paddingLeft"),10)||0),(parseInt(e.css("borderTopWidth"),10)||0)+(parseInt(e.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(e.css("borderRightWidth"),10)||0)-(parseInt(e.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(e.css("borderBottomWidth"),10)||0)-(parseInt(e.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=e)):this.containment=n.containment:this.containment=[0,0,x(s).width()-this.helperProportions.width-this.margins.left,(x(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[x(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,x(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,x(window).scrollLeft()+x(window).width()-this.helperProportions.width-this.margins.left,x(window).scrollTop()+(x(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n=this.options,s=this._isRootNode(this.scrollParent[0]),o=t.pageX,a=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(a=i[3]+this.offset.click.top)),n.grid&&(t=n.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,a=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-n.grid[1]:t+n.grid[1],t=n.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-n.grid[0]:t+n.grid[0]),"y"===n.axis&&(o=this.originalPageX),"x"===n.axis&&(a=this.originalPageY)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,e,i){return i=i||this._uiHash(),x.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),x.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),x.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var n=x.extend({},t,{item:i.element});i.sortables=[],x(i.options.connectToSortable).each(function(){var t=x(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,n))})},stop:function(e,t,i){var n=x.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,x.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(i,n,s){x.each(s.sortables,function(){var t=!1,e=this;e.positionAbs=s.positionAbs,e.helperProportions=s.helperProportions,e.offset.click=s.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,x.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==e&&this._intersectsWith(this.containerCache)&&x.contains(e.element[0],this.element[0])&&(t=!1),t})),t?(e.isOver||(e.isOver=1,s._parent=n.helper.parent(),e.currentItem=n.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return n.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=s.offset.click.top,e.offset.click.left=s.offset.click.left,e.offset.parent.left-=s.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=s.offset.parent.top-e.offset.parent.top,s._trigger("toSortable",i),s.dropped=e.element,x.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,e.fromOutside=s),e.currentItem&&(e._mouseDrag(i),n.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,x.each(s.sortables,function(){this.refreshPositions()}))})}}),x.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var n=x("body"),i=i.options;n.css("cursor")&&(i._cursor=n.css("cursor")),n.css("cursor",i.cursor)},stop:function(t,e,i){i=i.options;i._cursor&&x("body").css("cursor",i._cursor)}}),x.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=x(e.helper),i=i.options;e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){i=i.options;i._opacity&&x(e.helper).css("opacity",i._opacity)}}),x.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var n=i.options,s=!1,o=i.scrollParentNotHidden[0],a=i.document[0];o!==a&&"HTML"!==o.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+o.offsetHeight-t.pageY<n.scrollSensitivity?o.scrollTop=s=o.scrollTop+n.scrollSpeed:t.pageY-i.overflowOffset.top<n.scrollSensitivity&&(o.scrollTop=s=o.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+o.offsetWidth-t.pageX<n.scrollSensitivity?o.scrollLeft=s=o.scrollLeft+n.scrollSpeed:t.pageX-i.overflowOffset.left<n.scrollSensitivity&&(o.scrollLeft=s=o.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(t.pageY-x(a).scrollTop()<n.scrollSensitivity?s=x(a).scrollTop(x(a).scrollTop()-n.scrollSpeed):x(window).height()-(t.pageY-x(a).scrollTop())<n.scrollSensitivity&&(s=x(a).scrollTop(x(a).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(t.pageX-x(a).scrollLeft()<n.scrollSensitivity?s=x(a).scrollLeft(x(a).scrollLeft()-n.scrollSpeed):x(window).width()-(t.pageX-x(a).scrollLeft())<n.scrollSensitivity&&(s=x(a).scrollLeft(x(a).scrollLeft()+n.scrollSpeed)))),!1!==s&&x.ui.ddmanager&&!n.dropBehaviour&&x.ui.ddmanager.prepareOffsets(i,t)}}),x.ui.plugin.add("draggable","snap",{start:function(t,e,i){var n=i.options;i.snapElements=[],x(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var t=x(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var n,s,o,a,r,l,c,h,u,d=i.options,p=d.snapTolerance,f=e.offset.left,m=f+i.helperProportions.width,g=e.offset.top,v=g+i.helperProportions.height,b=i.snapElements.length-1;0<=b;b--)l=(r=i.snapElements[b].left-i.margins.left)+i.snapElements[b].width,h=(c=i.snapElements[b].top-i.margins.top)+i.snapElements[b].height,m<r-p||l+p<f||v<c-p||h+p<g||!x.contains(i.snapElements[b].item.ownerDocument,i.snapElements[b].item)?(i.snapElements[b].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,x.extend(i._uiHash(),{snapItem:i.snapElements[b].item})),i.snapElements[b].snapping=!1):("inner"!==d.snapMode&&(n=Math.abs(c-v)<=p,s=Math.abs(h-g)<=p,o=Math.abs(r-m)<=p,a=Math.abs(l-f)<=p,n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r-i.helperProportions.width}).left),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),u=n||s||o||a,"outer"!==d.snapMode&&(n=Math.abs(c-g)<=p,s=Math.abs(h-v)<=p,o=Math.abs(r-f)<=p,a=Math.abs(l-m)<=p,n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),o&&(e.position.left=i._convertPositionTo("relative",{top:0,left:r}).left),a&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[b].snapping&&(n||s||o||a||u)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,x.extend(i._uiHash(),{snapItem:i.snapElements[b].item})),i.snapElements[b].snapping=n||s||o||a||u)}}),x.ui.plugin.add("draggable","stack",{start:function(t,e,i){var n,i=i.options,i=x.makeArray(x(i.stack)).sort(function(t,e){return(parseInt(x(t).css("zIndex"),10)||0)-(parseInt(x(e).css("zIndex"),10)||0)});i.length&&(n=parseInt(x(i[0]).css("zIndex"),10)||0,x(i).each(function(t){x(this).css("zIndex",n+t)}),this.css("zIndex",n+i.length))}}),x.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=x(e.helper),i=i.options;e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){i=i.options;i._zIndex&&x(e.helper).css("zIndex",i._zIndex)}});x.ui.draggable;x.widget("ui.resizable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){if("hidden"===x(t).css("overflow"))return!1;var i=e&&"left"===e?"scrollLeft":"scrollTop",e=!1;return 0<t[i]||(t[i]=1,e=0<t[i],t[i]=0,e)},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),x.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(x("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),e.autoHide&&x(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();function t(t){x(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var e;return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){this._super(t,e),"handles"===t&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var t,e,i,n,s,o=this.options,a=this;if(this.handles=o.handles||(x(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=x(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)n="ui-resizable-"+(t=x.trim(i[e])),s=x("<div>"),this._addClass(s,"ui-resizable-handle "+n),s.css({zIndex:o.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(s);this._renderAxis=function(t){var e,i,n;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=x(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=x(this.handles[e],this.element),n=/sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=s&&s[1]?s[1]:"se")}),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var e,i,n=!1;for(e in this.handles)(i=x(this.handles[e])[0])!==t.target&&!x.contains(i,t.target)||(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var e,i,n=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),n.containment&&(e+=x(n.containment).scrollLeft()||0,i+=x(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=x(".ui-resizable-"+this.axis).css("cursor"),x("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,n=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(e=i.apply(this,[t,n,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(e=this._updateRatio(e,t)),e=this._respectSize(e,t),this._updateCache(e),this._propagate("resize",t),e=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),x.isEmptyObject(e)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,n,s=this.options,o=this;return this._helper&&(n=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:o.sizeDiff.height,i=e?0:o.sizeDiff.width,e={width:o.helper.width()-i,height:o.helper.height()-n},i=parseFloat(o.element.css("left"))+(o.position.left-o.originalPosition.left)||null,n=parseFloat(o.element.css("top"))+(o.position.top-o.originalPosition.top)||null,s.animate||this.element.css(x.extend(e,{top:n,left:i})),o.helper.height(o.size.height),o.helper.width(o.size.width),this._helper&&!s.animate&&this._proportionallyResize()),x("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n=this.options,s={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||t)&&(e=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,t=s.maxWidth/this.aspectRatio,e>s.minWidth&&(s.minWidth=e),i>s.minHeight&&(s.minHeight=i),n<s.maxWidth&&(s.maxWidth=n),t<s.maxHeight&&(s.maxHeight=t)),this._vBoundaries=s},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&c&&(t.left=r-e.minWidth),n&&c&&(t.left=r-e.maxWidth),a&&i&&(t.top=l-e.minHeight),s&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||x("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return x.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return x.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return x.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return x.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){x.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),x.ui.plugin.add("resizable","animate",{stop:function(e){var i=x(this).resizable("instance"),t=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),o=s&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,s={width:i.size.width-a,height:i.size.height-o},a=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(x.extend(s,o&&a?{top:o,left:a}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&x(n[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),x.ui.plugin.add("resizable","containment",{start:function(){var i,n,s=x(this).resizable("instance"),t=s.options,e=s.element,o=t.containment,a=o instanceof x?o.get(0):/parent/.test(o)?e.parent().get(0):o;a&&(s.containerElement=x(a),/document/.test(o)||o===document?(s.containerOffset={left:0,top:0},s.containerPosition={left:0,top:0},s.parentData={element:x(document),left:0,top:0,width:x(document).width(),height:x(document).height()||document.body.parentNode.scrollHeight}):(i=x(a),n=[],x(["Top","Right","Left","Bottom"]).each(function(t,e){n[t]=s._num(i.css("padding"+e))}),s.containerOffset=i.offset(),s.containerPosition=i.position(),s.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},t=s.containerOffset,e=s.containerSize.height,o=s.containerSize.width,o=s._hasScroll(a,"left")?a.scrollWidth:o,e=s._hasScroll(a)?a.scrollHeight:e,s.parentData={element:a,left:t.left,top:t.top,width:o,height:e}))},resize:function(t){var e=x(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.position,o=e._aspectRatio||t.shiftKey,a={top:0,left:0},r=e.containerElement,t=!0;r[0]!==document&&/static/.test(r.css("position"))&&(a=n),s.left<(e._helper?n.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-n.left:e.position.left-a.left),o&&(e.size.height=e.size.width/e.aspectRatio,t=!1),e.position.left=i.helper?n.left:0),s.top<(e._helper?n.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-n.top:e.position.top),o&&(e.size.width=e.size.height*e.aspectRatio,t=!1),e.position.top=e._helper?n.top:0),i=e.containerElement.get(0)===e.element.parent().get(0),s=/relative|absolute/.test(e.containerElement.css("position")),i&&s?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),s=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-a.left:e.offset.left-n.left)),n=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-a.top:e.offset.top-n.top)),s+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-s,o&&(e.size.height=e.size.width/e.aspectRatio,t=!1)),n+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-n,o&&(e.size.width=e.size.height*e.aspectRatio,t=!1)),t||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=x(this).resizable("instance"),e=t.options,i=t.containerOffset,n=t.containerPosition,s=t.containerElement,o=x(t.helper),a=o.offset(),r=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(s.css("position"))&&x(this).css({left:a.left-n.left-i.left,width:r,height:o}),t._helper&&!e.animate&&/static/.test(s.css("position"))&&x(this).css({left:a.left-n.left-i.left,width:r,height:o})}}),x.ui.plugin.add("resizable","alsoResize",{start:function(){var t=x(this).resizable("instance").options;x(t.alsoResize).each(function(){var t=x(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=x(this).resizable("instance"),n=e.options,s=e.originalSize,o=e.originalPosition,a={height:e.size.height-s.height||0,width:e.size.width-s.width||0,top:e.position.top-o.top||0,left:e.position.left-o.left||0};x(n.alsoResize).each(function(){var t=x(this),n=x(this).data("ui-resizable-alsoresize"),s={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];x.each(e,function(t,e){var i=(n[e]||0)+(a[e]||0);i&&0<=i&&(s[e]=i||null)}),t.css(s)})},stop:function(){x(this).removeData("ui-resizable-alsoresize")}}),x.ui.plugin.add("resizable","ghost",{start:function(){var t=x(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==x.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=x(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=x(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),x.ui.plugin.add("resizable","grid",{resize:function(){var t,e=x(this).resizable("instance"),i=e.options,n=e.size,s=e.originalSize,o=e.originalPosition,a=e.axis,r="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=r[0]||1,c=r[1]||1,h=Math.round((n.width-s.width)/l)*l,u=Math.round((n.height-s.height)/c)*c,d=s.width+h,p=s.height+u,f=i.maxWidth&&i.maxWidth<d,m=i.maxHeight&&i.maxHeight<p,g=i.minWidth&&i.minWidth>d,n=i.minHeight&&i.minHeight>p;i.grid=r,g&&(d+=l),n&&(p+=c),f&&(d-=l),m&&(p-=c),/^(se|s|e)$/.test(a)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.top=o.top-u):/^(sw)$/.test(a)?(e.size.width=d,e.size.height=p,e.position.left=o.left-h):((p-c<=0||d-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<p-c?(e.size.height=p,e.position.top=o.top-u):(p=c-t.height,e.size.height=p,e.position.top=o.top+s.height-p),0<d-l?(e.size.width=d,e.position.left=o.left-h):(d=l-t.width,e.size.width=d,e.position.left=o.left+s.width-d))}});x.ui.resizable;x.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=x(this).css(t).offset().top;e<0&&x(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&x.fn.draggable&&this._makeDraggable(),this.options.resizable&&x.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?x(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:x.noop,enable:x.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||x.ui.safeBlur(x.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+x(this).css("z-index")}).get(),n=Math.max.apply(null,n);return n>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",n+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=x(x.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=t||this.element.find("[autofocus]")).length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(t){function e(){var t=x.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||x.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),e.call(this),this._delay(e)},_createWrapper:function(){this.uiDialog=x("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===x.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);var e,i,n;t.keyCode!==x.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.filter(":first"),n=e.filter(":last"),t.target!==n[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){n.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=x("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){x(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=x("<button type='button'></button>").button({label:x("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),t=x("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=x("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=x("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var n=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),x.isEmptyObject(t)||x.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(x.each(t,function(t,e){var i;e=x.isFunction(e)?{click:e,text:t}:e,e=x.extend({type:"button"},e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,x("<button></button>",e).button(t).appendTo(n.uiButtonSet).on("click",function(){i.apply(n.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var s=this,o=this.options;function a(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){s._addClass(x(this),"ui-dialog-dragging"),s._blockFrames(),s._trigger("dragStart",t,a(e))},drag:function(t,e){s._trigger("drag",t,a(e))},stop:function(t,e){var i=e.offset.left-s.document.scrollLeft(),n=e.offset.top-s.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:s.window},s._removeClass(x(this),"ui-dialog-dragging"),s._unblockFrames(),s._trigger("dragStop",t,a(e))}})},_makeResizable:function(){var s=this,o=this.options,t=o.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){s._addClass(x(this),"ui-dialog-resizing"),s._blockFrames(),s._trigger("resizeStart",t,a(e))},resize:function(t,e){s._trigger("resize",t,a(e))},stop:function(t,e){var i=s.uiDialog.offset(),n=i.left-s.document.scrollLeft(),i=i.top-s.document.scrollTop();o.height=s.uiDialog.height(),o.width=s.uiDialog.width(),o.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=i?"+":"")+i,of:s.window},s._removeClass(x(this),"ui-dialog-resizing"),s._unblockFrames(),s._trigger("resizeStop",t,a(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=x(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=x.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};x.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,e){var i,n=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:x("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=n.is(":data(ui-draggable)"))&&!e&&n.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((i=n.is(":data(ui-resizable)"))&&!e&&n.resizable("destroy"),i&&"string"==typeof e&&n.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=x(this);return x("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!x(t.target).closest(".ui-dialog").length||!!x(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var e;this.options.modal&&(e=!0,this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=x("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==x.uiBackCompat&&x.widget("ui.dialog",x.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});x.ui.dialog;x.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=x.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){x.ui.ddmanager.droppables[t]=x.ui.ddmanager.droppables[t]||[],x.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=x.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept=x.isFunction(e)?e:function(t){return t.is(e)}:"scope"===t&&(i=x.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=x.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=x.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=x.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||x.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=x(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&st(i,x.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(n=!0)}),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var st=x.ui.intersect=function(t,e,i,n){if(!e.offset)return!1;var s=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,a=s+t.helperProportions.width,r=o+t.helperProportions.height,l=e.offset.left,c=e.offset.top,h=l+e.proportions().width,u=c+e.proportions().height;switch(i){case"fit":return l<=s&&a<=h&&c<=o&&r<=u;case"intersect":return l<s+t.helperProportions.width/2&&a-t.helperProportions.width/2<h&&c<o+t.helperProportions.height/2&&r-t.helperProportions.height/2<u;case"pointer":return ot(n.pageY,c,e.proportions().height)&&ot(n.pageX,l,e.proportions().width);case"touch":return(c<=o&&o<=u||c<=r&&r<=u||o<c&&u<r)&&(l<=s&&s<=h||l<=a&&a<=h||s<l&&h<a);default:return!1}};function ot(t,e,i){return e<=t&&t<e+i}!(x.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,n,s=x.ui.ddmanager.droppables[t.options.scope]||[],o=e?e.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<s.length;i++)if(!(s[i].options.disabled||t&&!s[i].accept.call(s[i].element[0],t.currentItem||t.element))){for(n=0;n<a.length;n++)if(a[n]===s[i].element[0]){s[i].proportions().height=0;continue t}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===o&&s[i]._activate.call(s[i],e),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return x.each((x.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&st(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,e)))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)})},drag:function(s,o){s.options.refreshPositions&&x.ui.ddmanager.prepareOffsets(s,o),x.each(x.ui.ddmanager.droppables[s.options.scope]||[],function(){var t,e,i,n;this.options.disabled||this.greedyChild||!this.visible||(n=!(i=st(s,this,this.options.tolerance,o))&&this.isover?"isout":i&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return x(this).droppable("instance").options.scope===e})).length&&((t=x(i[0]).droppable("instance")).greedyChild="isover"===n)),t&&"isover"===n&&(t.isover=!1,t.isout=!0,t._out.call(t,o)),this[n]=!0,this["isout"===n?"isover":"isout"]=!1,this["isover"===n?"_over":"_out"].call(this,o),t&&"isout"===n&&(t.isout=!1,t.isover=!0,t._over.call(t,o)))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||x.ui.ddmanager.prepareOffsets(t,e)}})!==x.uiBackCompat&&x.widget("ui.droppable",x.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});x.ui.droppable,x.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=x("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=x("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),x.widget("ui.selectable",x.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=x(i.element[0]).offset(),i.selectees=x(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=x(this),e=t.offset(),e={left:e.left-i.elementPos.left,top:e.top-i.elementPos.top};x.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=x("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var n=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=x(this.element[0]).offset(),this.options.disabled||(this.selectees=x(t.filter,this.element[0]),this._trigger("start",i),x(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=x.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",i,{unselecting:t.element}))}),x(i.target).parents().addBack().each(function(){var t,e=x.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),n._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?n._trigger("selecting",i,{selecting:e.element}):n._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(n){if(this.dragged=!0,!this.options.disabled){var t,s=this,o=this.options,a=this.opos[0],r=this.opos[1],l=n.pageX,c=n.pageY;return l<a&&(t=l,l=a,a=t),c<r&&(t=c,c=r,r=t),this.helper.css({left:a,top:r,width:l-a,height:c-r}),this.selectees.each(function(){var t=x.data(this,"selectable-item"),e=!1,i={};t&&t.element!==s.element[0]&&(i.left=t.left+s.elementPos.left,i.right=t.right+s.elementPos.left,i.top=t.top+s.elementPos.top,i.bottom=t.bottom+s.elementPos.top,"touch"===o.tolerance?e=!(i.left>l||i.right<a||i.top>c||i.bottom<r):"fit"===o.tolerance&&(e=i.left>a&&i.right<l&&i.top>r&&i.bottom<c),e?(t.selected&&(s._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(s._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(s._addClass(t.$element,"ui-selecting"),t.selecting=!0,s._trigger("selecting",n,{selecting:t.element}))):(t.selecting&&((n.metaKey||n.ctrlKey)&&t.startselected?(s._removeClass(t.$element,"ui-selecting"),t.selecting=!1,s._addClass(t.$element,"ui-selected"),t.selected=!0):(s._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),s._trigger("unselecting",n,{unselecting:t.element}))),t.selected&&(n.metaKey||n.ctrlKey||t.startselected||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",n,{unselecting:t.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,x(".ui-unselecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),x(".ui-selecting",this.element[0]).each(function(){var t=x.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),x.widget("ui.selectmenu",[x.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=x()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=x("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=x("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=x("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=x("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._setSelection(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item");null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(x.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=x("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(n,t){var s=this,o="";x.each(t,function(t,e){var i;e.optgroup!==o&&(i=x("<li>",{text:e.optgroup}),s._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(n),o=e.optgroup),s._renderItemData(n,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=x("<li>"),n=x("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(n,e.label),i.append(n).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(x(t.target).closest(".ui-selectmenu-menu, #"+x.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case x.ui.keyCode.TAB:case x.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case x.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case x.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case x.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case x.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case x.ui.keyCode.LEFT:this._move("prev",t);break;case x.ui.keyCode.RIGHT:this._move("next",t);break;case x.ui.keyCode.HOME:case x.ui.keyCode.PAGE_UP:this._move("first",t);break;case x.ui.keyCode.END:case x.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,n=[];t.each(function(t,e){n.push(i._parseOption(x(e),t))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),x.widget("ui.slider",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),n=[],s=e.values&&e.values.length||1;for(i.length>s&&(i.slice(s).remove(),i=i.slice(0,s)),t=i.length;t<s;t++)n.push("<span tabindex='0'></span>");this.handles=i.add(x(n.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){x(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:x.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=x("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,n,s,o,e,a,r=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),a={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(a),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-r.values(t));(e<n||n===e&&(t===r._lastChangedValue||r.values(t)===l.min))&&(n=e,s=x(this),o=t)}),!1!==this._start(t,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),e=s.offset(),a=!x(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-e.left-s.width()/2,top:t.pageY-e.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=t/e;return 1<t&&(t=1),t<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),o[e]=i),i!==s&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,n,s;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!x.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,n=t,s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(t,e){var i,n=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),x.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e,t=t-i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,n,s,o=this.options.range,a=this.options,r=this,l=!this._animateOff&&a.animate,c={};this._hasMultipleValues()?this.handles.each(function(t){i=(r.values(t)-r._valueMin())/(r._valueMax()-r._valueMin())*100,c["horizontal"===r.orientation?"left":"bottom"]=i+"%",x(this).stop(1,1)[l?"animate":"css"](c,a.animate),!0===r.options.range&&("horizontal"===r.orientation?(0===t&&r.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===t&&r.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===t&&r.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(t=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(t-n)/(s-n)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,a.animate),"min"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===o&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===o&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var e,i,n,s=x(t.target).data("ui-slider-handle-index");switch(t.keyCode){case x.ui.keyCode.HOME:case x.ui.keyCode.END:case x.ui.keyCode.PAGE_UP:case x.ui.keyCode.PAGE_DOWN:case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(x(t.target),null,"ui-state-active"),!1===this._start(t,s)))return}switch(n=this.options.step,e=i=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case x.ui.keyCode.HOME:i=this._valueMin();break;case x.ui.keyCode.END:i=this._valueMax();break;case x.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case x.ui.keyCode.UP:case x.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+n);break;case x.ui.keyCode.DOWN:case x.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-n)}this._slide(t,s,i)},keyup:function(t){var e=x(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass(x(t.target),null,"ui-state-active"))}}}),x.widget("ui.sortable",x.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),x.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,n=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),x(t.target).parents().each(function(){if(x.data(this,s.widgetName+"-item")===s)return i=x(this),!1}),x.data(t.target,s.widgetName+"-item")===s&&(i=x(t.target)),!!i&&(!(this.options.handle&&!e&&(x(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,e,i){var n,s,o=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},x.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,o.cursorAt&&this._adjustOffsetFromHelper(o.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),o.containment&&this._setContainment(),o.cursor&&"auto"!==o.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",o.cursor),this.storedStylesheet=x("<style>*{ cursor: "+o.cursor+" !important; }</style>").appendTo(s)),o.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",o.opacity)),o.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",o.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return x.ui.ddmanager&&(x.ui.ddmanager.current=this),x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,i,n,s,o=this.options,a=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<o.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+o.scrollSpeed:t.pageY-this.overflowOffset.top<o.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-o.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<o.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+o.scrollSpeed:t.pageX-this.overflowOffset.left<o.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-o.scrollSpeed)):(t.pageY-this.document.scrollTop()<o.scrollSensitivity?a=this.document.scrollTop(this.document.scrollTop()-o.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<o.scrollSensitivity&&(a=this.document.scrollTop(this.document.scrollTop()+o.scrollSpeed)),t.pageX-this.document.scrollLeft()<o.scrollSensitivity?a=this.document.scrollLeft(this.document.scrollLeft()-o.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<o.scrollSensitivity&&(a=this.document.scrollLeft(this.document.scrollLeft()+o.scrollSpeed))),!1!==a&&x.ui.ddmanager&&!o.dropBehaviour&&x.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;0<=e;e--)if(i=this.items[e],n=i.item[0],s=this._intersectsWithPointer(i),s&&i.instance===this.currentContainer&&!(n===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===n||x.contains(this.placeholder[0],n)||"semi-dynamic"===this.options.type&&x.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),x.ui.ddmanager&&x.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,n,s,o;if(t)return x.ui.ddmanager&&!this.options.dropBehaviour&&x.ui.ddmanager.drop(this,t),this.options.revert?(n=(i=this).placeholder.offset(),o={},(s=this.options.axis)&&"x"!==s||(o.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(o.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,x(this.helper).animate(o,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new x.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),x.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?x(this.domPosition.prev).after(this.currentItem):x(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},x(t).each(function(){var t=(x(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push(x(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,l=r+t.height,c=this.offset.click.top,h=this.offset.click.left,c="x"===this.options.axis||r<n+c&&n+c<l,h="y"===this.options.axis||o<e+h&&e+h<a,h=c&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&r<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection(),this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),t=this._getDragHorizontalDirection();return this.floating&&t?"right"===t&&i||"left"===t&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,n,s,o=[],a=[],r=this._connectWith();if(r&&t)for(e=r.length-1;0<=e;e--)for(i=(n=x(r[e],this.document[0])).length-1;0<=i;i--)(s=x.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&a.push([x.isFunction(s.options.items)?s.options.items.call(s.element):x(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function l(){o.push(this)}for(a.push([x.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):x(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=a.length-1;0<=e;e--)a[e][0].each(l);return x(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=x.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,n,s,o,a,r,l,c=this.items,h=[[x.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):x(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(e=u.length-1;0<=e;e--)for(i=(n=x(u[e],this.document[0])).length-1;0<=i;i--)(s=x.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(h.push([x.isFunction(s.options.items)?s.options.items.call(s.element[0],t,{item:this.currentItem}):x(s.options.items,s.element),s]),this.containers.push(s));for(e=h.length-1;0<=e;e--)for(o=h[e][1],i=0,l=(a=h[e][0]).length;i<l;i++)(r=x(a[i])).data(this.widgetName+"-item",o),c.push({item:r,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var e,i,n,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),e=this.items.length-1;0<=e;e--)(i=this.items[e]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?x(this.options.toleranceElement,i.item):i.item,t||(i.width=n.outerWidth(),i.height=n.outerHeight()),s=n.offset(),i.left=s.left,i.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)s=this.containers[e].element.offset(),this.containers[e].containerCache.left=s.left,this.containers[e].containerCache.top=s.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var n,s=(i=i||this).options;s.placeholder&&s.placeholder.constructor!==String||(n=s.placeholder,s.placeholder={element:function(){var t=i.currentItem[0].nodeName.toLowerCase(),e=x("<"+t+">",i.document[0]);return i._addClass(e,"ui-sortable-placeholder",n||i.currentItem[0].className)._removeClass(e,"ui-sortable-helper"),"tbody"===t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),x("<tr>",i.document[0]).appendTo(e)):"tr"===t?i._createTrPlaceholder(i.currentItem,e):"img"===t&&e.attr("src",i.currentItem.attr("src")),n||e.css("visibility","hidden"),e},update:function(t,e){n&&!s.forcePlaceholderSize||(e.height()||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width()||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=x(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){x("<td>&#160;</td>",i.document[0]).attr("colspan",x(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,n,s,o,a,r,l,c,h=null,u=null,d=this.containers.length-1;0<=d;d--)x.contains(this.currentItem[0],this.containers[d].element[0])||(this._intersectsWith(this.containers[d].containerCache)?h&&x.contains(this.containers[d].element[0],h.element[0])||(h=this.containers[d],u=d):this.containers[d].containerCache.over&&(this.containers[d]._trigger("out",t,this._uiHash(this)),this.containers[d].containerCache.over=0));if(h)if(1===this.containers.length)this.containers[u].containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1);else{for(i=1e4,n=null,s=(l=h.floating||this._isFloating(this.currentItem))?"left":"top",o=l?"width":"height",c=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)x.contains(this.containers[u].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(a=this.items[e].item.offset()[s],r=!1,t[c]-a>this.items[e][o]/2&&(r=!0),Math.abs(t[c]-a)<i&&(i=Math.abs(t[c]-a),n=this.items[e],this.direction=r?"up":"down"));(n||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[u]?(n?this._rearrange(t,n,null,!0):this._rearrange(t,null,this.containers[u].element,!0),this._trigger("change",t,this._uiHash()),this.containers[u]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[u],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[u]._trigger("over",t,this._uiHash(this)),this.containers[u].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[u]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(t){var e=this.options,t=x.isFunction(e.helper)?x(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem;return t.parents("body").length||x("parent"!==e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),x.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&x.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=x(i.containment)[0],e=x(i.containment).offset(),i="hidden"!==x(t).css("overflow"),this.containment=[e.left+(parseInt(x(t).css("borderLeftWidth"),10)||0)+(parseInt(x(t).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(x(t).css("borderTopWidth"),10)||0)+(parseInt(x(t).css("paddingTop"),10)||0)-this.margins.top,e.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(x(t).css("borderLeftWidth"),10)||0)-(parseInt(x(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(x(t).css("borderTopWidth"),10)||0)-(parseInt(x(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,t=/(html|body)/i.test(n[0].tagName);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():t?0:n.scrollTop())*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():t?0:n.scrollLeft())*i}},_generatePosition:function(t){var e=this.options,i=t.pageX,n=t.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&x.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(n=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(n=this.containment[3]+this.offset.click.top)),e.grid&&(t=this.originalPageY+Math.round((n-this.originalPageY)/e.grid[1])*e.grid[1],n=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0])),{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,i,n){return function(t){n._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;0<=i;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===x.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||x([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}});function at(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}x.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var n=this._super(),s=this.element;return x.each(["min","max","step"],function(t,e){var i=s.attr(e);null!=i&&i.length&&(n[e]=i)}),n},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e;function i(){this.element[0]===x.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=e,this._delay(function(){this.previous=e}))}e=this.element[0]===x.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(t)&&this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(x(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,x(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=x.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?x.isFunction(e)?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),t=e.indexOf(".");return-1===t?0:e.length-t-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,n=t-i;return t=i+Math.round(n/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;if("culture"===t||"numberFormat"===t)return i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:at(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:at(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:at(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:at(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:at(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());at(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==x.uiBackCompat&&x.widget("ui.spinner",x.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});var rt;x.ui.spinner;x.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(rt=/#.*$/,function(t){var e=t.href.replace(rt,""),i=location.href.replace(rt,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),x.isArray(t.disabled)&&(t.disabled=x.unique(t.disabled.concat(x.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=x(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(t,e){if(x(e).attr("aria-controls")===n)return i=t,!1}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==i&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),!t&&!1===i&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):x()}},_tabKeydown:function(t){var e=x(x.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(e),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case x.ui.keyCode.RIGHT:case x.ui.keyCode.DOWN:i++;break;case x.ui.keyCode.UP:case x.ui.keyCode.LEFT:n=!1,i--;break;case x.ui.keyCode.END:i=this.anchors.length-1;break;case x.ui.keyCode.HOME:i=0;break;case x.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case x.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===x.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===x.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===x.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){var i=this.tabs.length-1;for(;-1!==x.inArray((i<t&&(t=0),t<0&&(t=i),t),this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=x.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!x.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=x()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=x()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){x(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){x(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return x("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=x(),this.anchors.each(function(t,e){var i,n,s,o=x(e).uniqueId().attr("id"),a=x(e).closest("li"),r=a.attr("aria-controls");l._isLocal(e)?(s=(i=e.hash).substring(1),n=l.element.find(l._sanitizeSelector(i))):(i="#"+(s=a.attr("aria-controls")||x({}).uniqueId()[0].id),(n=l.element.find(i)).length||(n=l._createPanel(s)).insertAfter(l.panels[t-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),r&&a.data("ui-tabs-aria-controls",r),a.attr({"aria-controls":s,"aria-labelledby":o}),n.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return x("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(x.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=x(e),!0===t||-1!==x.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&x.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=x(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=x(this).outerHeight(!0)}),this.panels.each(function(){x(this).height(Math.max(0,i-x(this).innerHeight()+x(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,x(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,n=x(t.currentTarget).closest("li"),s=n[0]===i[0],o=s&&e.collapsible,a=o?x():this._getPanelForTab(n),r=i.length?this._getPanelForTab(i):x(),i={oldTab:i,oldPanel:r,newTab:o?x():n,newPanel:a};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!o&&this.tabs.index(n),this.active=s?x():n,this.xhr&&this.xhr.abort(),r.length||a.length||x.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(n),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,n=e.newPanel,s=e.oldPanel;function o(){i.running=!1,i._trigger("activate",t,e)}function a(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),n.length&&i.options.show?i._show(n,i.options.show,o):(n.show(),o())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),a()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&s.length?e.oldTab.attr("tabIndex",-1):n.length&&this.tabs.filter(function(){return 0===x(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t.length||(t=this.active),t=t.find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:x.noop}))},_findActive:function(t){return!1===t?x():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+x.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){x.data(this,"ui-tabs-destroy")?x(this).remove():x(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=x(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),x.isArray(t)?x.map(t,function(t){return t!==i?t:null}):x.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==x.inArray(t,e))return;e=x.isArray(e)?x.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,n){t=this._getIndex(t);function s(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr}var o=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),r={tab:i,panel:a};this._isLocal(t[0])||(this.xhr=x.ajax(this._ajaxSettings(t,n,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){a.html(t),o._trigger("load",n,r),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,e){return s._trigger("beforeLoad",i,x.extend({jqXHR:t,ajaxSettings:e},n))}}},_getPanelForTab:function(t){t=x(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),!1!==x.uiBackCompat&&x.widget("ui.tabs",x.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});x.ui.tabs;x.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=x(this).attr("title")||"";return x("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",x.trim(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),e=x.inArray(e,i);-1!==e&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=x.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=x("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=x([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&x.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var n=this;x.each(this.tooltips,function(t,e){var i=x.Event("blur");i.target=i.currentTarget=e.element[0],n.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=x(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=x(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=x([])},open:function(t){var i=this,e=x(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=x(this);e.data("ui-tooltip-open")&&((t=x.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,n=this,s=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){n._delay(function(){e.data("ui-tooltip-open")&&(i&&(i.type=s),this._open(i,e,t))})}))&&this._open(i,e,t)},_open:function(t,e,i){var n,s,o,a=x.extend({},this.options.position);function r(t){a.of=t,s.is(":hidden")||s.position(a)}i&&((n=this._find(e))?n.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),n=this._tooltip(e),s=n.tooltip,this._addDescribedBy(e,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(i=x("<div>").html(s.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),i.removeAttr("id").find("[id]").removeAttr("id"),i.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):s.position(x.extend({of:e},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){s.is(":visible")&&(r(a.of),clearInterval(o))},x.fx.interval)),this._trigger("open",t,{tooltip:s})))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===x.ui.keyCode.ESCAPE&&((t=x.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(e).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,n=x(t?t.currentTarget:this.element),s=this._find(n);s?(e=s.tooltip,s.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),s.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip(x(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&x.each(this.parents,function(t,e){x(e.element).attr("title",e.title),delete i.parents[t]}),s.closing=!0,this._trigger("close",t,{tooltip:e}),s.hiding||(s.closing=!1))):n.removeData("ui-tooltip-open")},_tooltip:function(t){var e=x("<div>").attr("role","tooltip"),i=x("<div>").appendTo(e),n=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[n]={element:t,tooltip:e}},_find:function(t){t=t.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){t=t.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var n=this;x.each(this.tooltips,function(t,e){var i=x.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],n.close(i,!0),x("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==x.uiBackCompat&&x.widget("ui.tooltip",x.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});x.ui.tooltip},"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)},{}],27:[function(t,e,i){!function(M,d){"use strict";var E=M.jQuery||M.Zepto,a=0,s=!1;function r(p,f,m,t,e){var g=0,v=-1,b=-1,y=!1,_="afterLoad",w="load",x="error",k="img",C="src",T="srcset",S="sizes",D="background-image";function i(){var s,o,a,r;y=1<M.devicePixelRatio,m=n(m),0<=f.delay&&setTimeout(function(){l(!0)},f.delay),(f.delay<0||f.combined)&&(t.e=(s=f.throttle,o=function(t){"resize"===t.type&&(v=b=-1),l(t.all)},r=0,function(t,e){var i=+new Date-r;function n(){r=+new Date,o.call(p,t)}a&&clearTimeout(a),s<i||!f.enableThrottle||e?n():a=setTimeout(n,s-i)}),t.a=function(t){t=n(t),m.push.apply(m,t)},t.g=function(){return m=E(m).filter(function(){return!E(this).data(f.loadedName)})},t.f=function(t){for(var e=0;e<t.length;e++){var i=m.filter(function(){return this===t[e]});i.length&&l(!1,i)}},l(),E(f.appendScroll).on("scroll."+e+" resize."+e,t.e))}function n(t){for(var e=f.defaultImage,i=f.placeholder,n=f.imageBase,s=f.srcsetAttribute,o=f.loaderAttribute,a=f._f||{},r=0,l=(t=E(t).filter(function(){var t=E(this),e=P(this);return!t.data(f.handledName)&&(t.attr(f.attribute)||t.attr(s)||t.attr(o)||a[e]!==d)}).data("plugin_"+f.name,p)).length;r<l;r++){var c=E(t[r]),h=P(t[r]),u=c.attr(f.imageBaseAttribute)||n;h===k&&u&&c.attr(s)&&c.attr(s,function(t,e){if(e){var i=t.split(",");t="";for(var n=0,s=i.length;n<s;n++)t+=e+i[n].trim()+(n!==s-1?",":"")}return t}(c.attr(s),u)),a[h]===d||c.attr(o)||c.attr(o,a[h]),h===k&&e&&!c.attr(C)?c.attr(C,e):h===k||!i||c.css(D)&&"none"!==c.css(D)||c.css(D,"url('"+i+"')")}return t}function l(t,e){if(m.length){for(var i,n,s,o,a,r=e||m,l=!1,c=f.imageBase||"",h=f.srcsetAttribute,u=f.handledName,d=0;d<r.length;d++)(t||e||function(t){var e=t.getBoundingClientRect(),i=f.scrollDirection,n=f.threshold,t=(0<=b?b:b=E(M).height())+n>e.top&&-n<e.bottom,e=(0<=v?v:v=E(M).width())+n>e.left&&-n<e.right;{if("vertical"===i)return t;if("horizontal"===i)return e}return t&&e}(r[d]))&&(i=E(r[d]),n=P(r[d]),s=i.attr(f.attribute),o=i.attr(f.imageBaseAttribute)||c,a=i.attr(f.loaderAttribute),i.data(u)||f.visibleOnly&&!i.is(":visible")||!((s||i.attr(h))&&(n===k&&(o+s!==i.attr(C)||i.attr(h)!==i.attr(T))||n!==k&&o+s!==i.css(D))||a)||(l=!0,i.data(u,!0),function(e,t,i,n){++g;var s=function(){I("onError",e),A(),s=E.noop};I("beforeLoad",e);var o,a,r=f.attribute,l=f.srcsetAttribute,c=f.sizesAttribute,h=f.retinaAttribute,u=f.removeAttribute,d=f.loadedName,p=e.attr(h);n?(o=function(){u&&e.removeAttr(f.loaderAttribute),e.data(d,!0),I(_,e),setTimeout(A,1),o=E.noop},e.off(x).one(x,s).one(w,o),I(n,e,function(t){t?(e.off(w),o()):(e.off(x),s())})||e.trigger(x)):((a=E(new Image)).one(x,s).one(w,function(){e.hide(),t===k?e.attr(S,a.attr(S)).attr(T,a.attr(T)).attr(C,a.attr(C)):e.css(D,"url('"+a.attr(C)+"')"),e[f.effect](f.effectTime),u&&(e.removeAttr(r+" "+l+" "+h+" "+f.imageBaseAttribute),c!==S&&e.removeAttr(c)),e.data(d,!0),I(_,e),a.remove(),A()}),p=(y&&p?p:e.attr(r))||"",a.attr(S,e.attr(c)).attr(T,e.attr(l)).attr(C,p?i+p:null),a.complete&&a.trigger(w))}(i,n,o,a)));l&&(m=E(m).filter(function(){return!E(this).data(u)}))}else f.autoDestroy&&p.destroy()}function P(t){return t.tagName.toLowerCase()}function A(){--g,m.length||g||I("onFinishedAll")}function I(t){return(t=f[t])&&(t.apply(p,[].slice.call(arguments,1)),1)}"event"===f.bind||s?i():E(M).on(w+"."+e,i)}function c(t,e){var i=this,n=E.extend({},i.config,e),s={},o=n.name+"-"+ ++a;return i.config=function(t,e){return e===d?n[t]:(n[t]=e,i)},i.addItems=function(t){return s.a&&s.a("string"===E.type(t)?E(t):t),i},i.getItems=function(){return s.g?s.g():{}},i.update=function(t){return s.e&&s.e({},!t),i},i.force=function(t){return s.f&&s.f("string"===E.type(t)?E(t):t),i},i.loadAll=function(){return s.e&&s.e({all:!0},!0),i},i.destroy=function(){return E(n.appendScroll).off("."+o,s.e),E(M).off("."+o),s={},d},r(i,n,t,s,o),n.chainable?t:i}E.fn.Lazy=E.fn.lazy=function(t){return new c(this,t)},E.Lazy=E.lazy=function(t,e,i){if(E.isFunction(e)&&(i=e,e=[]),E.isFunction(i)){t=E.isArray(t)?t:[t],e=E.isArray(e)?e:[e];for(var n=c.prototype.config,s=n._f||(n._f={}),o=0,a=t.length;o<a;o++)n[t[o]]!==d&&!E.isFunction(n[t[o]])||(n[t[o]]=i);for(var r=0,l=e.length;r<l;r++)s[e[r]]=t[0]}},c.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:M,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:d,afterLoad:d,onError:d,onFinishedAll:d},E(M).on("load",function(){s=!0})}(window)},{}],28:[function(t,e,i){!function(s){var t,e,o="jquery-stickit",i=o+"-spacer",n=":"+o,a=-1!=navigator.userAgent.indexOf("MSIE 7.0"),r=a?-2:0,l=void 0!==window.MutationObserver,c=window.StickScope={Parent:0,Document:1},h=0,u=1,d=2,p=!1,f=!1;function m(t,e){this.element=s(t),this.lastValues={},s.isArray(e)||(e=[e||{}]),e.length||e.push({}),this.optionList=e;e=this.element.css("transform")||"";this.defaultZIndex=this.element.css("z-index")||100,("auto"==this.defaultZIndex||"0"==this.defaultZIndex&&"none"!=e)&&(this.defaultZIndex=100),this.updateOptions(),this.offsetY=0,this.lastY=0,this.stick=h,this.spacer=s("<div />"),this.spacer[0].id=t.id,this.spacer[0].className=t.className,this.spacer[0].style.cssText=t.style.cssText,this.spacer.addClass(i),this.spacer[0].style.cssText+=";visibility: hidden !important;display: none !important",this.spacer.insertAfter(this.element),"static"==this.element.parent().css("position")&&this.element.parent().css("position","relative"),this.origWillChange=this.element.css("will-change"),"auto"==this.origWillChange&&this.element.css("will-change","transform"),"none"==e?this.element.css("transform","translateZ(0)"):-1==e.indexOf("matrix3d")&&this.element.css("transform",this.element.css("transform")+" translateZ(0)"),this.bound(),this.precalculate(),this.store()}function g(){t=window.innerHeight||document.documentElement.clientHeight,e=window.innerWidth||document.documentElement.clientWidth,v()}function v(){f=!0,s(n).each(function(){s(this).data(o).refresh()}),setTimeout(function(){f=!1})}function b(){f=!0,s(n).each(function(){s(this).data(o).locate()}),setTimeout(function(){f=!1})}function y(){var t=!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement);s(n).each(function(){s(this).data(o).enableWillChange(!t)})}function _(t){f||v()}s.expr[":"][o]=function(t){return!!s(t).data(o)},m.prototype.trigger=function(t){var e="on"+t.charAt(0).toUpperCase()+t.slice(1);this.options[e]&&this.options[e].call(this.element),this.element.trigger("stickit:"+t)},m.prototype.isActive=function(t){return(void 0===t.screenMinWidth||e>=t.screenMinWidth)&&(void 0===t.screenMaxWidth||e<=t.screenMaxWidth)},m.prototype.updateCss=function(t){this.element.hasClass(this.options.className)&&t.className!=this.options.className&&this.element.removeClass(this.options.className).addClass(t.className);var e={};this.stick==d?this.options.extraHeight!=t.extraHeight&&(e.bottom=-this.options.extraHeight+"px"):this.options.top!=t.top&&(e.top=t.top+this.offsetY+"px"),this.options.zIndex!=t.zIndex&&(e.zIndex=this.getZIndex(t)),this.element.css(e)},m.prototype.updateOptions=function(){var t,e=this.getActiveOptionsKey();this.activeKey!=e&&(this.activeKey=e,t=this.getActiveOptions(),this.options&&(e?this.stick!=h&&(t.scope==this.options.scope?this.updateCss(t):(this.reset(),setTimeout(this.locate.bind(this)))):this.reset()),this.options=t,this.zIndex=this.getZIndex(t))},m.prototype.getZIndex=function(t){return void 0===t.zIndex?this.defaultZIndex:t.zIndex},m.prototype.getActiveOptionsKey=function(){for(var t=[],e=0;e<this.optionList.length;++e)this.isActive(this.optionList[e])&&t.push(e);return t.join("_")},m.prototype.getActiveOptions=function(){for(var t={},e=0;e<this.optionList.length;++e){var i=this.optionList[e];this.isActive(i)&&s.extend(t,i)}return t.scope=t.scope||c.Parent,t.className=t.className||"stick",t.top=t.top||0,t.extraHeight=t.extraHeight||0,void 0===t.overflowScrolling&&(t.overflowScrolling=!0),t},m.prototype.store=function(){var t=this.element[0];this.origStyle={width:t.style.width,position:t.style.position,left:t.style.left,top:t.style.top,bottom:t.style.bottom,zIndex:t.style.zIndex}},m.prototype.restore=function(){this.element.css(this.origStyle)},m.prototype.bound=function(){var t,e,i,n,s=this.element;a||"border-box"!=s.css("box-sizing")?this.extraWidth=0:(t=parseFloat(s.css("border-left-width"))||0,e=parseFloat(s.css("border-right-width"))||0,i=parseFloat(s.css("padding-left"))||0,n=parseFloat(s.css("padding-right"))||0,this.extraWidth=t+e+i+n),this.margin={top:parseFloat(s.css("margin-top"))||0,bottom:parseFloat(s.css("margin-bottom"))||0,left:parseFloat(s.css("margin-left"))||0,right:parseFloat(s.css("margin-right"))||0},this.parent={border:{bottom:parseFloat(s.parent().css("border-bottom-width"))||0}}},m.prototype.precalculate=function(){this.baseTop=this.margin.top+this.options.top,this.basePadding=this.baseTop+this.margin.bottom,this.baseParentOffset=this.options.extraHeight-this.parent.border.bottom,this.offsetHeight=this.options.overflowScrolling?Math.max(this.element.outerHeight(!1)+this.basePadding-t,0):0,this.minOffsetHeight=-this.offsetHeight},m.prototype.reset=function(){this.stick==d?(this.trigger("unend"),this.trigger("unstick")):this.stick==u&&this.trigger("unstick"),this.stick=h,this.spacer.css("width",this.origStyle.width),this.spacer[0].style.cssText+=";display: none !important",this.restore(),this.element.removeClass(this.options.className)},m.prototype.setAbsolute=function(t){this.stick==h&&(this.element.addClass(this.options.className),this.trigger("stick")),this.trigger("end"),this.stick=d,this.element.css({width:this.element.width()+this.extraWidth+"px",position:"absolute",top:this.origStyle.top,left:t+"px",bottom:-this.options.extraHeight+"px","z-index":this.zIndex})},m.prototype.setFixed=function(t,e,i){this.stick==h?(this.element.addClass(this.options.className),this.trigger("stick")):this.trigger("unend"),this.options.overflowScrolling||(i=0),this.stick=u,this.lastY=e,this.offsetY=i,this.element.css({width:this.element.width()+this.extraWidth+"px",position:"fixed",top:this.options.top+i+"px",left:t+"px",bottom:this.origStyle.bottom,"z-index":this.zIndex})},m.prototype.updateScroll=function(t){var e;0!=this.offsetHeight&&this.options.overflowScrolling&&(e=Math.max(this.offsetY+t-this.lastY,this.minOffsetHeight),e=Math.min(e,0),this.lastY=t,this.offsetY!=e&&(this.offsetY=e,this.element.css("top",this.options.top+this.offsetY+"px")))},m.prototype.isHigher=function(){return this.options.scope==c.Parent&&this.element.parent().height()<=this.element.outerHeight(!1)+this.basePadding},m.prototype.locate=function(){if(this.activeKey){var t,e,i=this.element,n=this.spacer;switch(this.stick){case u:0<=(s=(t=n[0].getBoundingClientRect()).top-this.baseTop)||this.isHigher()?this.reset():this.options.scope==c.Parent&&(t=i.parent()[0].getBoundingClientRect()).bottom+this.baseParentOffset+this.offsetHeight<=i.outerHeight(!1)+this.basePadding?this.setAbsolute(this.spacer.position().left):this.updateScroll(t.bottom);break;case d:s=(t=n[0].getBoundingClientRect()).top-this.baseTop,e=t.left-this.margin.left,0<=s||this.isHigher()?this.reset():(t=i.parent()[0].getBoundingClientRect()).bottom+this.baseParentOffset+this.offsetHeight>i.outerHeight(!1)+this.basePadding&&this.setFixed(e+r,t.bottom,-this.offsetHeight);break;case h:default:if(0<=(s=(t=i[0].getBoundingClientRect()).top-this.baseTop)||this.isHigher())return;var s=i.parent()[0].getBoundingClientRect();n.height(i.height()),n.show(),e=t.left-this.margin.left,this.options.scope==c.Document?this.setFixed(e,t.bottom,0):s.bottom+this.baseParentOffset+this.offsetHeight<=i.outerHeight(!1)+this.basePadding?this.setAbsolute(this.element.position().left):this.setFixed(e+r,t.bottom,0),n.width()||n.width(i.width())}}},m.prototype.refresh=function(){var t,e;this.updateOptions(),this.bound(),this.precalculate(),this.stick!=h&&(t=this.element,e=this.spacer,this.lastValues.width!=e.width()&&t.width(this.lastValues.width=e.width()),this.lastValues.height!=t.height()&&e.height(this.lastValues.height=t.height()),this.stick==u&&(e=this.spacer[0].getBoundingClientRect().left-this.margin.left,this.lastValues.left!=e+"px"&&t.css("left",this.lastValues.left=e+"px"))),this.locate()},m.prototype.destroy=function(){this.reset(),this.spacer.remove(),this.element.removeData(o)},m.prototype.enableWillChange=function(t){"auto"==this.origWillChange&&this.element.css("will-change",t?"transform":this.origWillChange)};var w=["destroy","refresh"];s.fn.stickit=function(e,i){var n;return"string"==typeof e?-1!=s.inArray(e,w)&&(n=arguments,this.each(function(){var t=s(this).data(o);t&&t[e].apply(t,Array.prototype.slice.call(n,1))})):(p||(p=!0,g(),s(document).ready(function(){s(window).bind("resize",g).bind("scroll",b),s(document.body).bind("animationend webkitAnimationEnd oAnimationEnd transitionend webkitTransitionEnd oTransitionEnd",b),s(document).bind("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",y)}),l&&new MutationObserver(_).observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),i=s.isArray(e)?e:Array.prototype.slice.call(arguments,0),this.each(function(){var t=new m(this,i);s(this).data(o,t),t.locate()})),this},s.stickit={refresh:v}}(jQuery)},{}],29:[function(t,e,i){$.fn.hoverDelay=function(n){return n=$.extend({delayIn:300,delayOut:300,handlerIn:function(){},handlerOut:function(){}},n),this.each(function(){var t,e,i=$(this);i.hover(function(){e&&clearTimeout(e),t=setTimeout(function(){n.handlerIn(i)},n.delayIn)},function(){t&&clearTimeout(t),e=setTimeout(function(){n.handlerOut(i)},n.delayOut)})})}},{}],30:[function(t,e,i){var n;n=function(h){function t(){for(var t=u.scrollTop(),e=d.height(),i=e-f,n=i<t?i-t:0,s=0,o=p.length;s<o;s++){var a,r,l=p[s],c=l.stickyWrapper.offset().top-l.topSpacing-n;l.stickyWrapper.css("height",l.stickyElement.outerHeight()),t<=c?null!==l.currentTop&&(l.stickyElement.css({width:"",position:"",top:"","z-index":""}),l.stickyElement.parent().removeClass(l.className),l.stickyElement.trigger("sticky-end",[l]),l.currentTop=null):((a=e-l.stickyElement.outerHeight()-l.topSpacing-l.bottomSpacing-t-n)<0?a+=l.topSpacing:a=l.topSpacing,l.currentTop!==a&&(l.getWidthFrom?(padding=l.stickyElement.innerWidth()-l.stickyElement.width(),r=h(l.getWidthFrom).width()-padding||null):l.widthFromWrapper&&(r=l.stickyWrapper.width()),null==r&&(r=l.stickyElement.width()),l.stickyElement.css("width",r).css("position","fixed").css("top",a).css("z-index",l.zIndex),l.stickyElement.parent().addClass(l.className),null===l.currentTop?l.stickyElement.trigger("sticky-start",[l]):l.stickyElement.trigger("sticky-update",[l]),l.currentTop===l.topSpacing&&l.currentTop>a||null===l.currentTop&&a<l.topSpacing?l.stickyElement.trigger("sticky-bottom-reached",[l]):null!==l.currentTop&&a===l.topSpacing&&l.currentTop<a&&l.stickyElement.trigger("sticky-bottom-unreached",[l]),l.currentTop=a),c=l.stickyWrapper.parent(),l.stickyElement.offset().top+l.stickyElement.outerHeight()>=c.offset().top+c.outerHeight()&&l.stickyElement.offset().top<=l.topSpacing?l.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):l.stickyElement.css("position","fixed").css("top",a).css("bottom","").css("z-index",l.zIndex))}}function e(){f=u.height();for(var t=0,e=p.length;t<e;t++){var i=p[t],n=null;i.getWidthFrom?i.responsiveWidth&&(n=h(i.getWidthFrom).width()):i.widthFromWrapper&&(n=i.stickyWrapper.width()),null!=n&&i.stickyElement.css("width",n)}}var i=Array.prototype.slice,n=Array.prototype.splice,a={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"inherit"},u=h(window),d=h(document),p=[],f=u.height(),r={init:function(o){return this.each(function(){var t=h.extend({},a,o),e=h(this),i=e.attr("id"),n=i?i+"-"+a.wrapperClassName:a.wrapperClassName,s=h("<div></div>").attr("id",n).addClass(t.wrapperClassName);e.wrapAll(function(){if(0==h(this).parent("#"+n).length)return s});i=e.parent();t.center&&i.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),t.stickyElement=e,t.stickyWrapper=i,t.currentTop=null,p.push(t),r.setWrapperHeight(this),r.setupChangeListeners(this)})},setWrapperHeight:function(t){var e=h(t),t=e.parent();t&&t.css("height",e.outerHeight())},setupChangeListeners:function(e){window.MutationObserver?new window.MutationObserver(function(t){(t[0].addedNodes.length||t[0].removedNodes.length)&&r.setWrapperHeight(e)}).observe(e,{subtree:!0,childList:!0}):window.addEventListener?(e.addEventListener("DOMNodeInserted",function(){r.setWrapperHeight(e)},!1),e.addEventListener("DOMNodeRemoved",function(){r.setWrapperHeight(e)},!1)):window.attachEvent&&(e.attachEvent("onDOMNodeInserted",function(){r.setWrapperHeight(e)}),e.attachEvent("onDOMNodeRemoved",function(){r.setWrapperHeight(e)}))},update:t,unstick:function(t){return this.each(function(){for(var t=h(this),e=-1,i=p.length;0<i--;)p[i].stickyElement.get(0)===this&&(n.call(p,i,1),e=i);-1!==e&&(t.unwrap(),t.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",t,!1),window.addEventListener("resize",e,!1)):window.attachEvent&&(window.attachEvent("onscroll",t),window.attachEvent("onresize",e)),h.fn.sticky=function(t){return r[t]?r[t].apply(this,i.call(arguments,1)):"object"!=typeof t&&t?void h.error("Method "+t+" does not exist on jQuery.sticky"):r.init.apply(this,arguments)},h.fn.unstick=function(t){return r[t]?r[t].apply(this,i.call(arguments,1)):"object"!=typeof t&&t?void h.error("Method "+t+" does not exist on jQuery.sticky"):r.unstick.apply(this,arguments)},h(function(){setTimeout(t,0)})},"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof e&&e.exports?e.exports=n(t("jquery")):n(jQuery)},{jquery:2}],31:[function(t,e,i){var h,n;h=jQuery,n=window,document,h.fn.extend({scrollspy:function(l){var t={namespace:"scrollspy",activeClass:"active",animate:!1,offset:0,container:n};l=h.extend({},t,l);function c(t,e){return parseInt(t,10)+parseInt(e,10)}return this.each(function(){for(var o=this,t=h(l.container),a=h(o).find("a"),e=0;e<a.length;e++){var i=a[e];h(i).on("click",function(t){var e=h(this).attr("href"),e=h(e);0<e.length&&(e=c(e.offset().top,l.offset),l.animate?h("html, body").animate({scrollTop:e},1e3):n.scrollTo(0,e),t.preventDefault())})}var r=function(t){for(var e=[],i=0;i<t.length;i++){var n,s=t[i],o=h(s).attr("href"),a=h(o);0<a.length&&(s=(n=Math.floor(a.offset().top))+Math.floor(a.outerHeight()),e.push({element:a,hash:o,top:n,bottom:s}))}return e}(a);t.bind("scroll."+l.namespace,function(){for(var t={top:c(h(this).scrollTop(),Math.abs(l.offset)),left:h(this).scrollLeft()},e=0;e<r.length;e++){var i=r[e];if(t.top>=i.top&&t.top<i.bottom){var n,s=i.hash;if(n=function(t,e){for(var i=0;i<t.length;i++){var n=h(t[i]);if(n.attr("href")===e)return n}}(a,s)){l.onChange&&l.onChange(i.element,h(o),t),function(t){for(var e=0;e<t.length;e++)h(t[e]).parent().removeClass(l.activeClass)}(a),n.parent().addClass(l.activeClass);break}}}!n&&l.onExit&&l.onExit(h(o),t)})})}})},{}]},{},[4]);
//# sourceMappingURL=bundle.js.map
;
// Filters
$(function () {   

    $("#notificationClose").on("click", function () {
        $.ajax({
            type: 'POST',
            url: "NotificationBar/SetNotificationCookie",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function (result) {
                $("#notificationClose").hide();
                $('body').removeClass('has-strip-banner');
            },
            error: function () {
                window.location.href = $("#errorUrl").val();
            }
        });
    });
});


//======================Predictive Search===================================
//$(document).ready(function () {

//    var searchBox = $("#search-box");
//    var predictiveSearchResultsUrl = '/predictiveSearch';
//    searchBox.autocomplete({
//        source: function (request, response) {
//            $.ajax({
//                url: predictiveSearchResultsUrl,
//                type: "POST",
//                dataType: "json",
//                data: { searchText: request.term },
//                success: function (data) {
//                    response($.map(data, function (item) {
//                        return { label: item.Text, value: item.Url };
//                    }));
//                },
//                error: function () {
//                    window.location.href = $("#errorUrl").val();
//                }
//            });
//        },
//        select: function (event, ui) {
//            window.location.href = ui.item.value;
//            searchBox.val('');
//            return false;
//        },
//        delay: 500,
//        focus: function (event, ui) {
//            //searchBox.attr('aria-activedescendant', ui.item.label.replace(/\s/g, ""));
//            searchBox.attr('aria-activedescendant', ui.item.label.replace(/\s/g, ""));
//            searchBox.val(ui.item.label);
//            return false;
//        },
//        open: function (event, ui) {
//            searchBox.attr('aria-expanded', 'true');
//        },
//        close: function (event, ui) {
//            searchBox.removeAttr('aria-activedescendant');
//            searchBox.attr('aria-expanded', 'false');
//            //searchBox.val('');
//        },
//        create: function () {
//            $(this).data("ui-autocomplete")._renderItem = function (ul, item) {
//                return $("<li>")
//                    .attr("data-value", item.value)
//                    .attr('id', item.label.replace(/\s/g, ""))
//                    .attr('role', 'option')
//                    .append(item.label)
//                    .appendTo(ul);
//            };
//            $(this).data("ui-autocomplete")._renderMenu = function (ul, items) {
//                var that = this;
//                $.each(items, function (index, item) {
//                    that._renderItemData(ul, item);
//                });
//                $(ul).attr('role', 'listbox');
//                $(ul).attr('aria-labelledby', 'search-box-label');
//            }
//        }        
//    })       
//});


// Search box
$(function () {
    $('#c-search-btn').on('click', function (e) {
        e.preventDefault();
        var phrase = $('#search-box').val().trim();
        if (phrase.length === 0) {
            return false;
        }
        redirect();
    });

    $('#c-search-btn-mob').on('click', function (e) {
        var phrase = $('#search-box-mob').val().trim();
        if (phrase.length == 0) {
            return false;
        }
        redirectMobile();
    });

    $('#search-box').on('keypress', function (e) {
        if (e.which === 13) {
            var phrase = $('#search-box').val().trim();
            if (phrase.length === 0) {
                return false;
            }

            if (phrase !== $(this).data('previous')) {
                redirect();
            }
        }
    });

    $('#search-box-mob').on('keypress', function (e) {
        if (e.which === 13) {
            var phrase = $('#search-box-mob').val().trim();
            if (phrase.length == 0) {
                return false;
            }

            if (phrase !== $(this).data('previous')) {
                redirectMobile();
            }
        }
    });

    function redirect() {
        var url = $('#search-box').data('url');
        var queries = [];
        var q = $('#search-box').val().trim();
        if (q) {
            queries.push(['searchText', encodeURIComponent(q)]);
        }
       
        if (queries.length) {
            window.location.href = url + "?" + queries.map(function (query) { return query.join('=') }).join('&');
        } else {
            window.location.href = url;
        }
    }

    function redirectMobile() {
        var url = $('#search-box-mob').data('url');
        var queries = [];
        var q = $('#search-box-mob').val().trim();
        if (q) {
            queries.push(['searchText', encodeURIComponent(q)]);
        }

        if (queries.length) {
            window.location.href = url + "?" + queries.map(function (query) { return query.join('=') }).join('&');
        } else {
            window.location.href = url;
        }
    }

});


//FAQ Listing
function RefreshFaqs(endpointUrl, searchText, categoryId, nodeAlias, color) {

    $.ajax({
        type: 'POST',
        url: endpointUrl,
        datatype: "HTML",
        data: { searchText: searchText, categoryId: categoryId, nodeAlias: nodeAlias, color: color },
        success: function (r) {
            $("#divFAQ").html(r);
            createAccordions();
        },
        error: function () {
            window.location.href = $("#errorUrl").val();
        }
    });
}

//Accordion script
function createAccordions() {
    var headers = document.querySelectorAll('.c-ada-accordion .c-ada-accordion--header button');

    // Attach toggle functions to all headers
    headers.forEach(function (header) {
        header.addEventListener('click', function () {
            var currentState = header.getAttribute('aria-expanded');

            // Flip the aria-expanded attribute
            if (currentState === 'true') {
                header.setAttribute('aria-expanded', false);
            } else {
                header.setAttribute('aria-expanded', true);
            }

            // Animate the panel transition between expanded/collapse
            $('#' + header.getAttribute('aria-controls')).slideToggle();
        });
    });
}

// Cookies
//$(function () {
//    $(".c-cookie a.accept").on("click", function () {
//        var tmp = (new Date()).getTime() + (1000 * 60 * 60 * 24 * 7);
//        var expires = new Date(tmp);
//        document.cookie = "cookieAcceptance=1;expires=" + expires.toGMTString() + ";path=/";
//        $(".c-cookie").remove();
//        return false;
//    });
//});

// Case Study Sticky Nav

$(document).ready(function () {
    var headings = $("#divMainBody").find("h3");
    var sections = [];

    $.each(headings, function (key, value) {
        this.id = "section_" + key;
        $(".c-anchorlinks").append('<li><a href="#section_' + key + '">' + value.innerHTML + '</a></li>');
        sections.push($(this).offset().top);
    });

    $(".c-anchorlinks li a").click(function () {

        $(this).parent().siblings('li').removeClass("active");
        $(this).parent().addClass("active");

    });

    $(window).scroll(function () {
        var closestIndex;

        if (scrollY >= sections[0]) {
            $.each(sections, function (key, value) {
                if (scrollY > value - 10) {
                    closestIndex = key + 1;
                }
            });

            $(".c-anchorlinks li").removeClass('active');
            $(".c-anchorlinks li:nth-child(" +closestIndex+ ")").addClass('active');
        }
    });

    //$(".c-anchorlinks").scrollspy({
    //    offset: 0
    //});

});


//subscription form
$(function () {

    if ($("textarea[name*='AreasOfInterestOther']").length) {
        $("textarea[name*='AreasOfInterestOther']").parent().parent().hide();
    }

    if ($("input[type=checkbox][name*='AreasOfInterest'][value='Other']").length) {
        $("input[type=checkbox][name*='AreasOfInterest'][value='Other']").click(function () {
            if ($("textarea[name*='AreasOfInterestOther']").length) {
                $("textarea[name*='AreasOfInterestOther']").parent().parent().toggle();
            }
        });
    }

});


//Article Listing
$(function () {

    $('#txtSearch').keyup(function () {
        ArticleListingRefreshCall();
    });

    $('#chkSearchText').change(function () {
        ArticleListingRefreshCall();
    });

    $('#ddlTypeOfResource').change(function () {
        ArticleListingRefreshCall();
    });


    $('#txtSearchCaseStudy').keyup(function () {        
        CaseStudyListingRefreshCall();
    });
    $('#ddlEmployees').change(function () {
        CaseStudyListingRefreshCall();
    });
    $('#ddlIndustry').change(function () {
        CaseStudyListingRefreshCall();
    });
    $('#ddlStates').change(function () {
        CaseStudyListingRefreshCall();
    });
    $('#chkSearchCaseStudyText').change(function () {
        CaseStudyListingRefreshCall();
    });

    $('#btnClearFilters').click(function () {

        if ($('#ddlTypeOfResource').length) {
            $('#ddlTypeOfResource').val($('#ddlTypeOfResource option:first').val());            
        }

        if ($('#ddlEmployees').length) {
            $('#ddlEmployees').val($('#ddlEmployees option:first').val());
        }

        if ($('#ddlIndustry').length) {
            $('#ddlIndustry').val($('#ddlIndustry option:first').val());
        }

        if ($('#ddlStates').length) {
            $('#ddlStates').val($('#ddlStates option:first').val());
        }

        $(this).prev('input').val('').keyup().focus();
    });


    function ArticleListingRefreshCall() {
       
        var nodeAlias = $('#txtSearch').data('nodealias');
        var endpointUrl = $('#txtSearch').data('url');
        var className = $('#txtSearch').data('classname');
        var searchText = $('#txtSearch').val().length > 2 ? $("#txtSearch").val() : "";
        var searchWithinText = $('#chkSearchText').prop('checked');
        var pathOfResource = '';

        if ($('#ddlTypeOfResource').length) {
            pathOfResource = $('#ddlTypeOfResource').children(":selected").attr("value");
        }

        nodeAlias = pathOfResource.trim().length > 0 ? pathOfResource : nodeAlias;
        RefreshArticleListing(endpointUrl, searchText, searchWithinText, nodeAlias, className);
       
    }

    function CaseStudyListingRefreshCall() {
        var nodeAlias = $('#txtSearchCaseStudy').data('nodealias');
        var endpointUrl = $('#txtSearchCaseStudy').data('url');
        var className = $('#txtSearchCaseStudy').data('classname');
        var searchText = $('#txtSearchCaseStudy').val().length > 2 ? $('#txtSearchCaseStudy').val() : "";       
        var searchWithinText = $('#chkSearchCaseStudyText').prop('checked');
        var employeeGuid = $('#ddlEmployees').children(":selected").attr("value");
        var industryGuid = $('#ddlIndustry').children(":selected").attr("value");
        var stateCode = $('#ddlStates').children(":selected").attr("value");

        RefreshCaseStudyListing(endpointUrl, searchText, searchWithinText, employeeGuid, industryGuid, stateCode, nodeAlias, className);
    }

    function RefreshArticleListing(endpointUrl, searchText, searchWithinText, nodeAlias, className) {

        $.ajax({
            type: 'POST',
            url: endpointUrl,
            datatype: "HTML",
            data: { searchText: searchText, searchWithinText: searchWithinText, nodeAlias: nodeAlias, className: className },
            success: function (r) {
                $("#divListing").html(r);
                UpdateCount(); // This function is inline so localization can be accessed
            },
            error: function () {
                window.location.href = $("#errorUrl").val();
            }
        });
    }

    function RefreshCaseStudyListing(endpointUrl, searchText, searchWithinText, employeeGuid, industryGuid, stateCode, nodeAlias, className) {

        $.ajax({
            type: 'POST',
            url: endpointUrl,
            datatype: "HTML",
            data: { searchText: searchText, searchWithinText: searchWithinText, employeeGuid: employeeGuid, industryGuid: industryGuid, stateCode: stateCode, nodeAlias: nodeAlias, className: className },
            success: function (r) {
                $("#divListing").html(r);
                UpdateCount(); // This function is inline so localization can be accessed
            },
            error: function () {
                window.location.href = $("#errorUrl").val();
            }
        });
    }

});;
var container;
var input;
var results;
var resultsCount;
var isExpanded = false;


// Retrieve DOM nodes and attach listeners when page is ready
window.addEventListener('DOMContentLoaded', function () {
    container = document.querySelector('.c-site-search--main');
    input = document.querySelector('.c-site-search--main input');
    results = document.querySelector('.c-site-search--main .results');
    resultsCount = document.querySelector('.c-site-search--main .results-count');

    input.addEventListener('keyup', handleInputKeyup);
    input.addEventListener('focus', handleInputFocus);

    document.body.addEventListener('click', handleBodyClick);
});


/**
  Event handlers
*/
function handleInputKeyup(e) {
    switch (e.key) {
        case 'ArrowUp':
            e.preventDefault();

            // If listbox is expanded, move visual highlight up (or wrap around to bottom)
            if (isExpanded) {
                highlightPreviousOption();

                // Otherwise, populate and open the listbox, then highlight the first option
            } else {

                CallSiteSearch(input.value.toLowerCase()).then(function (items) {

                    BuildResultsList(items);

                    if (results.children.length > 0) {
                        expandResults();
                    }
                    else {
                        collapseResults()
                    }

                }).catch(function (err) {
                    console.log(err);
                });

            }

            break;

        case 'ArrowDown':
            e.preventDefault();

            // If listbox is expanded, move visual focus down (or wrap around to top)
            if (isExpanded) {
                highlightNextOption();

                // If listbox is NOT expanded, ensure its populated, then expand it. Also place visual focus on first option.
            } else {
                CallSiteSearch(input.value.toLowerCase()).then(function (items) {

                    BuildResultsList(items);

                    if (results.children.length > 0) {
                        expandResults();
                    }
                    else {
                        collapseResults()
                    }

                }).catch(function (err) {
                    console.log(err);
                });
            }

            break;

        // Escape collapses the results listbox
        case 'Escape':
            if (isExpanded) {
                collapseResults();
            }

            break;

        // Enter selects a highlighted option when results are expanded, or invokes the primary form action if collapsed
        case 'Enter':
            // If listbbox is expanded and visual focus is on an option, select that option
            var highlightedOption = document.querySelector('.c-site-search--main .results li.is-active');

            if (isExpanded && highlightedOption !== undefined) {
                selectOption(highlightedOption);
                collapseResults();
            } else {
                // If listbox is collapsed, invoke appropriate action. 
                // This varies by context, and could involve submitting a form, adding tags to a list, or something else.
                input.value = highlightedOption.innerText;
            }

            break;

        // Assume all other cases are printable characters or manipulation keys
        default:
            // Only alphanumeric keys, Backspace, Delete, Tab, and some special characters (_, +, and -)
            if (/^[\b\t.a-zA-Z0-9_+-]*$/.test(String.fromCharCode(e.keyCode)) || e.keyCode == 229) {

                if (input.value.length < 3) {
                    collapseResults();
                    return;
                }

                CallSiteSearch(input.value.toLowerCase()).then(function (items) {

                    BuildResultsList(items);

                    if (results.children.length > 0) {
                        if (!isExpanded) {
                            expandResults();
                        }
                    }
                    else {
                        collapseResults()
                    }

                }).catch(function (err) {
                    console.log(err);
                });
            }

            break;
    }
}

// Expand results when the input is focused, if there are any
function handleInputFocus(e) {
    if (input.value !== '' && results.children.length > 0) {
        expandResults();
    }
}

// Collapse the results if the user clicks off the component
function handleBodyClick(e) {
    if (!container.contains(e.target)) {
        collapseResults();
    }
}


/**
  Results listbox visibility and manipulation
*/
function expandResults() {
    // Show the listbox
    results.classList.add('is-visible');

    // Tell screen readers that the listbox is expanded
    input.setAttribute('aria-expanded', true);

    isExpanded = true;
}

function collapseResults() {
    // Hide the listbox
    results.classList.remove('is-visible');

    // Tell screen readers the listbox is collapsed
    input.setAttribute('aria-expanded', false);

    // Results can't be traversed when they are hidden, so aria-activedescendant has nothing to track
    input.removeAttribute('aria-activedescendant');

    // Remove all previous options from the DOM
    resultsCount.innerHTML = '';

    isExpanded = false;
}

function BuildResultsList(filteredResults) {

    if (filteredResults != null && filteredResults.length > 0) {
        // Remove any previous results
        results.innerHTML = '';

        // Build and inject DOM elements for each option
        filteredResults.forEach(function (result, index) {
            var option = document.createElement('li');
            option.setAttribute('role', 'option');
            option.setAttribute('id', 'result-' + index);
            option.setAttribute('data-url', result.value)
            option.innerHTML = result.label;

            // Move visual indicator as mouse users hover over option
            option.addEventListener('mouseover', function (e) {
                removeHighlight();
                highlightOption(e.target);
            });

            // Select this option when clicked (via mouse or mouse emulation by screen readers)
            option.addEventListener('click', function (e) {
                selectOption(e.target);
            });

            results.appendChild(option);
        });

        // Remove any previous content of the ARIA live region so that any new text added is announced, even if that new text happens to match the previous text.
        resultsCount.innerHTML = '';

        // Announce the number of results found to screen reader users using the ARIA live region.
        if (filteredResults.length > 1) {
            resultsCount.innerHTML = filteredResults.length + ' results found.';
        } else if (filteredResults.length === 1) {
            resultsCount.innerHTML = 'One result found.';
        } else {
            resultsCount.innerHTML = 'No results found.';
        }
    }
    else {
        // Remove any previous results
        results.innerHTML = '';
    }

}

function CallSiteSearch(searchTerm) {
    return new Promise(function (resolve, reject) {
        var predictiveSearchResultsUrl = '/predictiveSearch';
        var items = [];

        $.ajax({
            url: predictiveSearchResultsUrl,
            type: "POST",
            dataType: "json",
            data: { searchText: searchTerm },
            success: function (data) {
                var searchItems = $.map(data, function (item) {
                    return { label: item.Text, value: item.Url };
                });

                items = searchItems;
                resolve(items);

            },
            error: function (err) {
                reject(r);
                window.location.href = '/error';
            }
        });
    });
}


/**
  Visual focus indication on result options
*/
function highlightFirstOption() {
    var firstOption = document.querySelector('.c-site-search--main .results li:first-of-type');
    highlightOption(firstOption);
}

function highlightLastOption() {
    var lastOption = document.querySelector('.c-site-search--main .results li:last-of-type');
    highlightOption(lastOption);
}

function highlightPreviousOption() {
    var currentOption = document.querySelector('.c-site-search--main .results li.is-active');
    var currentOptionIndex = Array.prototype.slice.call(results.children).indexOf(currentOption);

    removeHighlight();

    if (currentOptionIndex === 0) {
        highlightLastOption();
    } else {
        var previousOption = results.children[currentOptionIndex - 1];
        highlightOption(previousOption);
    }
}

function highlightNextOption() {
    var currentOption = document.querySelector('.c-site-search--main .results li.is-active');
    var currentOptionIndex = Array.prototype.slice.call(results.children).indexOf(currentOption);

    removeHighlight();

    if (currentOptionIndex === results.children.length - 1) {
        highlightFirstOption();
    } else {
        var nextOption = results.children[currentOptionIndex + 1];
        highlightOption(nextOption);
    }
}

function highlightOption(option) {
    input.setAttribute('aria-activedescendant', option.getAttribute('id'));
    option.classList.add('is-active');
}

function removeHighlight() {
    var options = document.querySelectorAll('.c-site-search--main .results li');

    options.forEach(function (option) {
        option.classList.remove('is-active');
    });
}


/**
  Selection of an option
*/
function selectOption(option) {

    //go to selected page
    window.location.href = option.getAttribute("data-url");
};
var containerMob;
var inputMob;
var resultsMob;
var resultsCountMob;
//var form;
var isExpandedMob = false;


// Retrieve DOM nodes and attach listeners when page is ready
window.addEventListener('DOMContentLoaded', function () {
    containerMob = document.querySelector('.c-search--mobile');
    inputMob = document.querySelector('.c-search--mobile input');
    resultsMob = document.querySelector('.c-search--mobile .results-mob');
    resultsCountMob = document.querySelector('.c-search--mobile .results-count-mob');

    inputMob.addEventListener('keyup', handleInputKeyupMob);
    inputMob.addEventListener('focus', handleInputFocusMob);

    document.body.addEventListener('click', handleBodyClickMob);
});


/**
  Event handlers
*/

function handleInputKeyupMob(e) {
    switch (e.key) {
        case 'ArrowUp':
            e.preventDefault();

            // If listbox is expanded, move visual highlight up (or wrap around to bottom)
            if (isExpandedMob) {
                highlightPreviousOptionMob();

                // Otherwise, populate and open the listbox, then highlight the first option
            } else {                
                CallSiteSearchMob(inputMob.value.toLowerCase()).then(function (items) {

                    BuildResultsListMob(items);

                    if (resultsMob.children.length > 0) {
                        expandResultsMob();
                    }
                    else {
                        collapseResultsMob()
                    }

                }).catch(function (err) {
                    console.log(err);
                });
            }

            break;

        case 'ArrowDown':
            e.preventDefault();

            // If listbox is expanded, move visual focus down (or wrap around to top)
            if (isExpandedMob) {
                highlightNextOptionMob();

                // If listbox is NOT expanded, ensure its populated, then expand it. Also place visual focus on first option.
            } else {
                CallSiteSearchMob(inputMob.value.toLowerCase()).then(function (items) {

                    BuildResultsListMob(items);

                    if (resultsMob.children.length > 0) {
                        expandResultsMob();
                    }
                    else {
                        collapseResultsMob()
                    }

                }).catch(function (err) {
                    console.log(err);
                });
            }

            break;

        // Escape collapses the results listbox
        case 'Escape':
            if (isExpandedMob) {
                collapseResultsMob();
            }

            break;

        // Enter selects a highlighted option when results are expanded, or invokes the primary form action if collapsed
        case 'Enter':
            // If listbbox is expanded and visual focus is on an option, select that option
            var highlightedOption = document.querySelector('.c-search--mobile .results li.is-active');

            if (isExpandedMob && highlightedOption !== undefined) {
                e.preventDefault();
                selectOptionMob(highlightedOption);
                collapseResultsMob();
            }

            break;

        // Assume all other cases are printable characters or manipulation keys
        default:
            // Only alphanumeric keys, Backspace, Delete, Tab, and some special characters (_, +, and -)
            if (/^[\b\t.a-zA-Z0-9_+-]*$/.test(String.fromCharCode(e.keyCode)) || e.keyCode == 229) {

                if (inputMob.value.length < 3) {
                    collapseResultsMob();
                    return;
                }
                CallSiteSearchMob(inputMob.value.toLowerCase()).then(function (items) {
                    
                    BuildResultsListMob(items);
                    if (resultsMob.children.length > 0) {
                        if (!isExpandedMob) {
                            expandResultsMob();
                        }
                    }
                    else {
                        collapseResultsMob()
                    }

                }).catch(function (err) {
                    console.log(err);
                });

            }

            break;
    }
}

// Expand results when the input is focused, if there are any
function handleInputFocusMob(e) {
    if (inputMob.value !== '' && resultsMob.children.length > 0) {
        expandResultsMob();
    }
}

// Collapse the results if the user clicks off the component
function handleBodyClickMob(e) {
    if (!containerMob.contains(e.target)) {
        collapseResultsMob();
    }
}


/**
  Results listbox visibility and manipulation
*/
function expandResultsMob() {
    // Show the listbox
    resultsMob.classList.add('is-visible');

    // Tell screen readers that the listbox is expanded
    inputMob.setAttribute('aria-expanded', true);

    isExpandedMob = true;
}

function collapseResultsMob() {
    // Hide the listbox
    resultsMob.classList.remove('is-visible');

    // Tell screen readers the listbox is collapsed
    inputMob.setAttribute('aria-expanded', false);

    // Results can't be traversed when they are hidden, so aria-activedescendant has nothing to track
    inputMob.removeAttribute('aria-activedescendant');

    // Remove all previous options from the DOM
    resultsCountMob.innerHTML = '';

    isExpandedMob = false;
}

function BuildResultsListMob(filteredResults) {

    if (filteredResults != null && filteredResults.length > 0) {
        // Remove any previous results
        resultsMob.innerHTML = '';

        // Build and inject DOM elements for each option
        filteredResults.forEach(function (result, index) {
            var option = document.createElement('li');
            option.setAttribute('role', 'option');
            option.setAttribute('id', 'result-' + index);
            option.setAttribute('data-url', result.value)
            option.innerHTML = result.label;

            // Move visual indicator as mouse users hover over option
            option.addEventListener('mouseover', function (e) {
                removeHighlightMob();
                highlightOptionMob(e.target);
            });

            // Select this option when clicked (via mouse or mouse emulation by screen readers)
            option.addEventListener('click', function (e) {
                selectOptionMob(e.target);
            });

            resultsMob.appendChild(option);
        });

        // Remove any previous content of the ARIA live region so that any new text added is announced, even if that new text happens to match the previous text.
        resultsCountMob.innerHTML = '';

        // Announce the number of results found to screen reader users using the ARIA live region.
        if (filteredResults.length > 1) {
            resultsCountMob.innerHTML = filteredResults.length + ' results found.';
        } else if (filteredResults.length === 1) {
            resultsCountMob.innerHTML = 'One result found.';
        } else {
            resultsCountMob.innerHTML = 'No results found.';
        }
    }
    else {
        // Remove any previous results
        resultsMob.innerHTML = '';
    }

}

function CallSiteSearchMob(searchTerm) {
    return new Promise(function (resolve, reject) {
        var predictiveSearchResultsUrl = '/predictiveSearch';
        var items = [];

        $.ajax({
            url: predictiveSearchResultsUrl,
            type: "POST",
            dataType: "json",
            data: { searchText: searchTerm },
            success: function (data) {
                var searchItems = $.map(data, function (item) {
                    return { label: item.Text, value: item.Url };
                });

                items = searchItems;
                resolve(items);

            },
            error: function (err) {
                reject(r);
                window.location.href = '/error';
            }
        });
    });
}


/**
  Visual focus indication on result options
*/
function highlightFirstOptionMob() {
    var firstOption = document.querySelector('.c-search--mobile .results li:first-of-type');
    highlightOptionMob(firstOption);
}

function highlightLastOptionMob() {
    var lastOption = document.querySelector('.c-search--mobile .results li:last-of-type');
    highlightOptionMob(lastOption);
}

function highlightPreviousOptionMob() {
    var currentOption = document.querySelector('.c-search--mobile .results li.is-active');
    var currentOptionIndex = Array.prototype.slice.call(resultsMob.children).indexOf(currentOption);

    removeHighlightMob();

    if (currentOptionIndex === 0) {
        highlightLastOptionMob();
    } else {
        var previousOption = resultsMob.children[currentOptionIndex - 1];
        highlightOptionMob(previousOption);
    }
}

function highlightNextOptionMob() {
    var currentOption = document.querySelector('.c-search--mobile .results li.is-active');
    var currentOptionIndex = Array.prototype.slice.call(resultsMob.children).indexOf(currentOption);

    removeHighlightMob();

    if (currentOptionIndex === resultsMob.children.length - 1) {
        highlightFirstOptionMob();
    } else {
        var nextOption = resultsMob.children[currentOptionIndex + 1];
        highlightOptionMob(nextOption);
    }
}

function highlightOptionMob(option) {
    inputMob.setAttribute('aria-activedescendant', option.getAttribute('id'));
    option.classList.add('is-active');
}

function removeHighlightMob() {
    var options = document.querySelectorAll('.c-search--mobile .results li');

    options.forEach(function (option) {
        option.classList.remove('is-active');
    });
}


/**
  Selection of an option
*/
function selectOptionMob(option) {

    //go to selected page
    window.location.href = option.getAttribute("data-url");
};
