1!function(q){function ti(){q[th].glbl||(tl={$wndw:q(window),$docu:q(document),$html:q("html"),$body:q("body")},tn={},ts={},ta={},q.each([tn,ts,ta],function(q,ti){ti.add=function(q){q=q.split(" ");for(var tn=0,ts=q.length;ts>tn;tn++)ti[q[tn]]=ti.mm(q[tn])}}),tn.mm=function(q){return"mm-"+q},tn.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),tn.umm=function(q){return"mm-"==q.slice(0,3)&&(q=q.slice(3)),q},ts.mm=function(q){return"mm-"+q},ts.add("parent sub"),ta.mm=function(q){return q+".mm"},ta.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),q[th]._c=tn,q[th]._d=ts,q[th]._e=ta,q[th].glbl=tl)}var tn,ts,ta,tl,th="mmenu",td="5.6.4";q[th]&&q[th].version>td||(q[th]=function(q,ti,tn){this.$menu=q,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=ti,this.conf=tn,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var ts=this.$pnls.children();return this._initAddons(),this.init(ts),"function"==typeof this.___debug&&this.___debug(),this},q[th].version=td,q[th].addons={},q[th].uniqueId=0,q[th].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},q[th].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},q[th].prototype={init:function(q){q=q.not("."+tn.nopanel),q=this._initPanels(q),this.trigger("init",q),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(q){this.$menu.find("."+tn.listview).children().removeClass(tn.selected),q.addClass(tn.selected),this.trigger("setSelected",q)},openPanel:function(ti){var ts=ti.parent(),ta=this;if(ts.hasClass(tn.vertical)){var tl=ts.parents("."+tn.subopened);if(tl.length)return void this.openPanel(tl.first());ts.addClass(tn.opened),this.trigger("openPanel",ti),this.trigger("openingPanel",ti),this.trigger("openedPanel",ti)}else{if(ti.hasClass(tn.current))return;var td=this.$pnls.children("."+tn.panel),tc=td.filter("."+tn.current);td.removeClass(tn.highest).removeClass(tn.current).not(ti).not(tc).not("."+tn.vertical).addClass(tn.hidden),q[th].support.csstransitions||tc.addClass(tn.hidden),ti.hasClass(tn.opened)?ti.nextAll("."+tn.opened).addClass(tn.highest).removeClass(tn.opened).removeClass(tn.subopened):(ti.addClass(tn.highest),tc.addClass(tn.subopened)),ti.removeClass(tn.hidden).addClass(tn.current),ta.trigger("openPanel",ti),setTimeout(function(){ti.removeClass(tn.subopened).addClass(tn.opened),ta.trigger("openingPanel",ti),ta.__transitionend(ti,function(){ta.trigger("openedPanel",ti)},ta.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(q){var ti=q.parent();ti.hasClass(tn.vertical)&&(ti.removeClass(tn.opened),this.trigger("closePanel",q),this.trigger("closingPanel",q),this.trigger("closedPanel",q))},closeAllPanels:function(){this.$menu.find("."+tn.listview).children().removeClass(tn.selected).filter("."+tn.vertical).removeClass(tn.opened);var q=this.$pnls.children("."+tn.panel).first();this.$pnls.children("."+tn.panel).not(q).removeClass(tn.subopened).removeClass(tn.opened).removeClass(tn.current).removeClass(tn.highest).addClass(tn.hidden),this.openPanel(q)},togglePanel:function(q){var ti=q.parent();ti.hasClass(tn.vertical)&&this[ti.hasClass(tn.opened)?"closePanel":"openPanel"](q)},getInstance:function(){return this},bind:function(q,ti){this.cbck[q]=this.cbck[q]||[],this.cbck[q].push(ti)},trigger:function(){var q=this,ti=Array.prototype.slice.call(arguments),tn=ti.shift();if(this.cbck[tn])for(var ts=0,ta=this.cbck[tn].length;ta>ts;ts++)this.cbck[tn][ts].apply(q,ti)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){q(this).attr("id",tn.mm(q(this).attr("id")))})),this.$menu.contents().each(function(){3==q(this)[0].nodeType&&q(this).remove()}),this.$pnls=q('<div class="'+tn.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(tn.wrapper);var ti=[tn.menu];this.opts.slidingSubmenus||ti.push(tn.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&ti.push(this.opts.extensions),this.$menu.addClass(ti.join(" "))},_initPanels:function(ti){var ta=this,tl=this.__findAddBack(ti,"ul, ol");this.__refactorClass(tl,this.conf.classNames.inset,"inset").addClass(tn.nolistview+" "+tn.nopanel),tl.not("."+tn.nolistview).addClass(tn.listview);var th=this.__findAddBack(ti,"."+tn.listview).children();this.__refactorClass(th,this.conf.classNames.selected,"selected"),this.__refactorClass(th,this.conf.classNames.divider,"divider"),this.__refactorClass(th,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(ti,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var td=q(),tc=ti.add(ti.find("."+tn.panel)).add(this.__findAddBack(ti,"."+tn.listview).children().children(this.conf.panelNodetype)).not("."+tn.nopanel);this.__refactorClass(tc,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||tc.addClass(tn.vertical),tc.each(function(){var ti=q(this),ts=ti;ti.is("ul, ol")?(ti.wrap('<div class="'+tn.panel+'" />'),ts=ti.parent()):ts.addClass(tn.panel);var tl=ti.attr("id");ti.removeAttr("id"),ts.attr("id",tl||ta.__getUniqueId()),ti.hasClass(tn.vertical)&&(ti.removeClass(ta.conf.classNames.vertical),ts.add(ts.parent()).addClass(tn.vertical)),td=td.add(ts)});var tp=q("."+tn.panel,this.$menu);td.each(function(ti){var tl,th,td=q(this),tc=td.parent(),tp=tc.children("a, span").first();if(tc.is("."+tn.panels)||(tc.data(ts.sub,td),td.data(ts.parent,tc)),tc.children("."+tn.next).length||tc.parent().is("."+tn.listview)&&(tl=td.attr("id"),th=q('<a class="'+tn.next+'" href="#'+tl+'" data-target="#'+tl+'" />').insertBefore(tp),tp.is("span")&&th.addClass(tn.fullsubopen)),!td.children("."+tn.navbar).length&&!tc.hasClass(tn.vertical)){tc=tc.parent().is("."+tn.listview)?tc.closest("."+tn.panel):(tp=tc.closest("."+tn.panel).find('a[href="#'+td.attr("id")+'"]').first()).closest("."+tn.panel);
1var tu=!1,tf=q('<div class="'+tn.navbar+'" />');if(tc.length){switch(tl=tc.attr("id"),ta.opts.navbar.titleLink){case"anchor":tu=tp.attr("href");break;case"panel":case"parent":tu="#"+tl;break;default:tu=!1}tf.append('<a class="'+tn.btn+" "+tn.prev+'" href="#'+tl+'" data-target="#'+tl+'" />').append(q('<a class="'+tn.title+'"'+(tu?' href="'+tu+'"':"")+" />").text(tp.text())).prependTo(td),ta.opts.navbar.add&&td.addClass(tn.hasnavbar)}else ta.opts.navbar.title&&(tf.append('<a class="'+tn.title+'">'+ta.opts.navbar.title+"</a>").prependTo(td),ta.opts.navbar.add&&td.addClass(tn.hasnavbar))}});var tu=this.__findAddBack(ti,"."+tn.listview).children("."+tn.selected).removeClass(tn.selected).last().addClass(tn.selected);tu.add(tu.parentsUntil("."+tn.menu,"li")).filter("."+tn.vertical).addClass(tn.opened).end().each(function(){q(this).parentsUntil("."+tn.menu,"."+tn.panel).not("."+tn.vertical).first().addClass(tn.opened).parentsUntil("."+tn.menu,"."+tn.panel).not("."+tn.vertical).first().addClass(tn.opened).addClass(tn.subopened)}),tu.children("."+tn.panel).not("."+tn.vertical).addClass(tn.opened).parentsUntil("."+tn.menu,"."+tn.panel).not("."+tn.vertical).first().addClass(tn.opened).addClass(tn.subopened);var tf=tp.filter("."+tn.opened);return tf.length||(tf=td.first()),tf.addClass(tn.opened).last().addClass(tn.current),td.not("."+tn.vertical).not(tf.last()).addClass(tn.hidden).end().filter(function(){return!q(this).parent().hasClass(tn.panels)}).appendTo(this.$pnls),td},_initAnchors:function(){var ti=this;tl.$body.on(ta.click+"-oncanvas","a[href]",function(ts){var ta=q(this),tl=!1,td=ti.$menu.find(ta).length;for(var tc in q[th].addons)if(q[th].addons[tc].clickAnchor.call(ti,ta,td)){tl=!0;break}var tp=ta.attr("href");if(!tl&&td&&tp.length>1&&"#"==tp.slice(0,1))try{var tu=q(tp,ti.$menu);tu.is("."+tn.panel)&&(tl=!0,ti[ta.parent().hasClass(tn.vertical)?"togglePanel":"openPanel"](tu))}catch(q){}if(tl&&ts.preventDefault(),!tl&&td&&ta.is("."+tn.listview+" > li > a")&&!ta.is('[rel="external"]')&&!ta.is('[target="_blank"]')){ti.__valueOrFn(ti.opts.onClick.setSelected,ta)&&ti.setSelected(q(ts.target).parent());var tf=ti.__valueOrFn(ti.opts.onClick.preventDefault,ta,"#"==tp.slice(0,1));tf&&ts.preventDefault(),ti.__valueOrFn(ti.opts.onClick.close,ta,tf)&&ti.close()}})},_initAddons:function(){var ti;for(ti in q[th].addons)q[th].addons[ti].add.call(this),q[th].addons[ti].add=function(){};for(ti in q[th].addons)q[th].addons[ti].setup.call(this)},_getOriginalMenuId:function(){var q=this.$menu.attr("id");return q&&q.length&&this.conf.clone&&(q=tn.umm(q)),q},__api:function(){var ti=this,tn={};return q.each(this._api,function(q){var ts=this;tn[ts]=function(){var q=ti[ts].apply(ti,arguments);return void 0===q?tn:q}}),tn},__valueOrFn:function(q,ti,tn){return"function"==typeof q?q.call(ti[0]):void 0===q&&void 0!==tn?tn:q},__refactorClass:function(q,ti,ts){return q.filter("."+ti).removeClass(ti).addClass(tn[ts])},__findAddBack:function(q,ti){return q.find(ti).add(q.filter(ti))},__filterListItems:function(q){return q.not("."+tn.divider).not("."+tn.hidden)},__transitionend:function(q,ti,tn){var ts=!1,tl=function(){ts||ti.call(q[0]),ts=!0};q.one(ta.transitionend,tl),q.one(ta.webkitTransitionEnd,tl),setTimeout(tl,1.1*tn)},__getUniqueId:function(){return tn.mm(q[th].uniqueId++)}},q.fn[th]=function(tn,ts){return ti(),tn=q.extend(!0,{},q[th].defaults,tn),ts=q.extend(!0,{},q[th].configuration,ts),this.each(function(){var ti=q(this);if(!ti.data(th)){var ta=new q[th](ti,tn,ts);ta.$menu.data(th,ta.__api())}})},q[th].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var q=(document.body||document.documentElement).style,ti="transition";if("string"==typeof q[ti])return!0;var tn=["Moz","webkit","Webkit","Khtml","O","ms"];ti=ti.charAt(0).toUpperCase()+ti.substr(1);for(var ts=0;ts<tn.length;ts++)if("string"==typeof q[tn[ts]+ti])return!0;return!1}()})}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="offCanvas";q[tl].addons[th]={setup:function(){if(this.opts[th]){var tn=this.opts[th],ts=this.conf[th];ta=q[tl].glbl,this._api=q.merge(this._api,["open","close","setPage"]),("top"==tn.position||"bottom"==tn.position)&&(tn.zposition="front"),"string"!=typeof ts.pageSelector&&(ts.pageSelector="> "+ts.pageNodetype),ta.$allMenus=(ta.$allMenus||q()).add(this.$menu),this.vars.opened=!1;var td=[ti.offcanvas];"left"!=tn.position&&td.push(ti.mm(tn.position)),"back"!=tn.zposition&&td.push(ti.mm(tn.zposition)),this.$menu.addClass(td.join(" ")).parent().removeClass(ti.wrapper),this.setPage(ta.$page),this._initBlocker(),this["_initWindow_"+th](),this.$menu[ts.menuInjectMethod+"To"](ts.menuWrapperSelector);var tc=window.location.hash;if(tc){var tp=this._getOriginalMenuId();tp&&tp==tc.slice(1)&&this.open()}}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("offcanvas slideout blocking modal background opening blocker page"),tn.add("style"),ts.add("resize")},clickAnchor:function(q,ti){if(!this.opts[th])return!1;var tn=this._getOriginalMenuId();return tn&&q.is('[href="#'+tn+'"]')?(this.open(),!0):ta.$page?!!((tn=ta.$page.first().attr("id"))&&q.is('[href="#'+tn+'"]'))&&(this.close(),!0):void 0}},q[tl].defaults[th]={position:"left",zposition:"back",blockUI:!0,moveBackgroun
1d:!0},q[tl].configuration[th]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},q[tl].prototype.open=function(){if(!this.vars.opened){var q=this;this._openSetup(),setTimeout(function(){q._openFinish()},this.conf.openingInterval),this.trigger("open")}},q[tl].prototype._openSetup=function(){var tl=this,td=this.opts[th];this.closeAllOthers(),ta.$page.each(function(){q(this).data(tn.style,q(this).attr("style")||"")}),ta.$wndw.trigger(ts.resize+"-"+th,[!0]);var tc=[ti.opened];td.blockUI&&tc.push(ti.blocking),"modal"==td.blockUI&&tc.push(ti.modal),td.moveBackground&&tc.push(ti.background),"left"!=td.position&&tc.push(ti.mm(this.opts[th].position)),"back"!=td.zposition&&tc.push(ti.mm(this.opts[th].zposition)),this.opts.extensions&&tc.push(this.opts.extensions),ta.$html.addClass(tc.join(" ")),setTimeout(function(){tl.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(ti.current+" "+ti.opened)},q[tl].prototype._openFinish=function(){var q=this;this.__transitionend(ta.$page.first(),function(){q.trigger("opened")},this.conf.transitionDuration),ta.$html.addClass(ti.opening),this.trigger("opening")},q[tl].prototype.close=function(){if(this.vars.opened){var ts=this;this.__transitionend(ta.$page.first(),function(){ts.$menu.removeClass(ti.current).removeClass(ti.opened),ta.$html.removeClass(ti.opened).removeClass(ti.blocking).removeClass(ti.modal).removeClass(ti.background).removeClass(ti.mm(ts.opts[th].position)).removeClass(ti.mm(ts.opts[th].zposition)),ts.opts.extensions&&ta.$html.removeClass(ts.opts.extensions),ta.$page.each(function(){q(this).attr("style",q(this).data(tn.style))}),ts.vars.opened=!1,ts.trigger("closed")},this.conf.transitionDuration),ta.$html.removeClass(ti.opening),this.trigger("close"),this.trigger("closing")}},q[tl].prototype.closeAllOthers=function(){ta.$allMenus.not(this.$menu).each(function(){var ti=q(this).data(tl);ti&&ti.close&&ti.close()})},q[tl].prototype.setPage=function(tn){var ts=this,tl=this.conf[th];tn&&tn.length||(tn=ta.$body.find(tl.pageSelector),tl.noPageSelector.length&&(tn=tn.not(tl.noPageSelector.join(", "))),tn.length>1&&tl.wrapPageIfNeeded&&(tn=tn.wrapAll("<"+this.conf[th].pageNodetype+" />").parent())),tn.each(function(){q(this).attr("id",q(this).attr("id")||ts.__getUniqueId())}),tn.addClass(ti.page+" "+ti.slideout),ta.$page=tn,this.trigger("setPage",tn)},q[tl].prototype["_initWindow_"+th]=function(){ta.$wndw.off(ts.keydown+"-"+th).on(ts.keydown+"-"+th,function(q){return ta.$html.hasClass(ti.opened)&&9==q.keyCode?(q.preventDefault(),!1):void 0});var q=0;ta.$wndw.off(ts.resize+"-"+th).on(ts.resize+"-"+th,function(tn,ts){if(1==ta.$page.length&&(ts||ta.$html.hasClass(ti.opened))){var tl=ta.$wndw.height();(ts||tl!=q)&&(q=tl,ta.$page.css("minHeight",tl))}})},q[tl].prototype._initBlocker=function(){var tn=this;this.opts[th].blockUI&&(ta.$blck||(ta.$blck=q('<div id="'+ti.blocker+'" class="'+ti.slideout+'" />')),ta.$blck.appendTo(ta.$body).off(ts.touchstart+"-"+th+" "+ts.touchmove+"-"+th).on(ts.touchstart+"-"+th+" "+ts.touchmove+"-"+th,function(q){q.preventDefault(),q.stopPropagation(),ta.$blck.trigger(ts.mousedown+"-"+th)}).off(ts.mousedown+"-"+th).on(ts.mousedown+"-"+th,function(q){q.preventDefault(),ta.$html.hasClass(ti.modal)||(tn.closeAllOthers(),tn.close())}))}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="scrollBugFix";q[tl].addons[th]={setup:function(){var tn=this,td=this.opts[th];if(this.conf[th],ta=q[tl].glbl,q[tl].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof td&&(td={fix:td}),"object"!=typeof td&&(td={}),(td=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],td)).fix)){var tc=this.$menu.attr("id"),tp=!1;this.bind("opening",function(){this.$pnls.children("."+ti.current).scrollTop(0)}),ta.$docu.on(ts.touchmove,function(q){tn.vars.opened&&q.preventDefault()}),ta.$body.on(ts.touchstart,"#"+tc+"> ."+ti.panels+"> ."+ti.current,function(q){tn.vars.opened&&(tp||(tp=!0,0===q.currentTarget.scrollTop?q.currentTarget.scrollTop=1:q.currentTarget.scrollHeight===q.currentTarget.scrollTop+q.currentTarget.offsetHeight&&(q.currentTarget.scrollTop-=1),tp=!1))}).on(ts.touchmove,"#"+tc+"> ."+ti.panels+"> ."+ti.current,function(ti){tn.vars.opened&&q(this)[0].scrollHeight>q(this).innerHeight()&&ti.stopPropagation()}),ta.$wndw.on(ts.orientationchange,function(){tn.$pnls.children("."+ti.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e},clickAnchor:function(q,ti){}},q[tl].defaults[th]={fix:!0}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="autoHeight";q[tl].addons[th]={setup:function(){if(this.opts.offCanvas){var tn=this.opts[th];if(this.conf[th],ta=q[tl].glbl,"boolean"==typeof tn&&tn&&(tn={height:"auto"}),"string"==typeof tn&&(tn={height:tn}),"object"!=typeof tn&&(tn={}),"auto"==(tn=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],tn)).height||"highest"==tn.height){this.$menu.addClass(ti.autoheight);var ts=function(ts){if(this.vars.opened){var ta=parseInt(this.$pnls.css("top"),10)||0,tl=parseInt(this.$pnls.css("bottom"),10)||0,th=0;this.$menu.addClass(ti.measureheight),"auto"==tn.height?((ts=ts||this.$pnls.children("."+ti.current)).is("."+ti.vertical)&&(ts=ts.parents("."+ti.panel).not("."+ti.vertical).first()),th=ts.outerHeight()):"highest"==tn.height&&this.$pnls.children().each(function(){var tn=q(this);tn.is("."+ti.vertical)&&(tn=tn.parents("."+ti.panel).not("."+ti.vertical).first()),th=Math.max(th,tn.outerHeight())}),this.$menu.height(th+ta+tl).removeClass(ti.measureheight)}};this.bind("opening",ts),"highest"==tn.height&&this.bind("init",ts),"auto"==tn.height&&(this.bind("update",ts),this.bind("openPanel",ts),this.bind("closePanel",t
1s))}}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("autoheight measureheight"),ts.add("resize")},clickAnchor:function(q,ti){}},q[tl].defaults[th]={height:"default"}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="backButton";q[tl].addons[th]={setup:function(){if(this.opts.offCanvas){var tn=this,ts=this.opts[th];if(this.conf[th],ta=q[tl].glbl,"boolean"==typeof ts&&(ts={close:ts}),"object"!=typeof ts&&(ts={}),(ts=q.extend(!0,{},q[tl].defaults[th],ts)).close){var td="#"+tn.$menu.attr("id");this.bind("opened",function(q){location.hash!=td&&history.pushState(null,document.title,td)}),q(window).on("popstate",function(q){ta.$html.hasClass(ti.opened)?(q.stopPropagation(),tn.close()):location.hash==td&&(q.stopPropagation(),tn.open())})}}},add:function(){return window.history&&window.history.pushState?(ti=q[tl]._c,tn=q[tl]._d,void(ts=q[tl]._e)):void(q[tl].addons[th].setup=function(){})},clickAnchor:function(q,ti){}},q[tl].defaults[th]={close:!1}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="columns";q[tl].addons[th]={setup:function(){var tn=this.opts[th];if(this.conf[th],ta=q[tl].glbl,"boolean"==typeof tn&&(tn={add:tn}),"number"==typeof tn&&(tn={add:!0,visible:tn}),"object"!=typeof tn&&(tn={}),"number"==typeof tn.visible&&(tn.visible={min:tn.visible,max:tn.visible}),(tn=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],tn)).add){tn.visible.min=Math.max(1,Math.min(6,tn.visible.min)),tn.visible.max=Math.max(tn.visible.min,Math.min(6,tn.visible.max)),this.$menu.addClass(ti.columns);for(var ts=this.opts.offCanvas?this.$menu.add(ta.$html):this.$menu,td=[],tc=0;tc<=tn.visible.max;tc++)td.push(ti.columns+"-"+tc);td=td.join(" ");var tp=function(q){tm.call(this,this.$pnls.children("."+ti.current)),tn.hideNavbars&&q.removeClass(ti.hasnavbar)},tu=function(){var q=this.$pnls.children("."+ti.panel).filter("."+ti.opened).length;q=Math.min(tn.visible.max,Math.max(tn.visible.min,q)),ts.removeClass(td).addClass(ti.columns+"-"+q)},tf=function(){this.opts.offCanvas&&ta.$html.removeClass(td)},tm=function(ts){this.$pnls.children("."+ti.panel).removeClass(td).filter("."+ti.subopened).removeClass(ti.hidden).add(ts).slice(-tn.visible.max).each(function(tn){q(this).addClass(ti.columns+"-"+tn)})};this.bind("open",tu),this.bind("close",tf),this.bind("init",tp),this.bind("openPanel",tm),this.bind("openingPanel",tu),this.bind("openedPanel",tu),this.opts.offCanvas||tu.call(this)}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("columns")},clickAnchor:function(tn,ts){if(!this.opts[th].add)return!1;if(ts){var ta=tn.attr("href");if(ta.length>1&&"#"==ta.slice(0,1))try{if(q(ta,this.$menu).is("."+ti.panel))for(var tl=parseInt(tn.closest("."+ti.panel).attr("class").split(ti.columns+"-")[1].split(" ")[0],10)+1;!1!==tl;){var td=this.$pnls.children("."+ti.columns+"-"+tl);if(!td.length){tl=!1;break}tl++,td.removeClass(ti.subopened).removeClass(ti.opened).removeClass(ti.current).removeClass(ti.highest).addClass(ti.hidden)}}catch(q){}}}},q[tl].defaults[th]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="counters";q[tl].addons[th]={setup:function(){var ts=this,td=this.opts[th];this.conf[th],ta=q[tl].glbl,"boolean"==typeof td&&(td={add:td,update:td}),"object"!=typeof td&&(td={}),td=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],td),this.bind("init",function(ti){this.__refactorClass(q("em",ti),this.conf.classNames[th].counter,"counter")}),td.add&&this.bind("init",function(ts){var ta;(ta="panels"===td.addTo?ts:ts.filter(td.addTo)).each(function(){var ts=q(this).data(tn.parent);ts&&(ts.children("em."+ti.counter).length||ts.prepend(q('<em class="'+ti.counter+'" />')))})}),td.update&&this.bind("update",function(){this.$pnls.children("."+ti.panel).each(function(){var ta=q(this),tl=ta.data(tn.parent);if(tl){var th=tl.children("em."+ti.counter);th.length&&(ta=ta.children("."+ti.listview)).length&&th.html(ts.__filterListItems(ta.children()).length)}})})},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("counter search noresultsmsg")},clickAnchor:function(q,ti){}},q[tl].defaults[th]={add:!1,addTo:"panels",update:!1},q[tl].configuration.classNames[th]={counter:"Counter"}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="dividers";q[tl].addons[th]={setup:function(){var tn=this,td=this.opts[th];if(this.conf[th],ta=q[tl].glbl,"boolean"==typeof td&&(td={add:td,fixed:td}),"object"!=typeof td&&(td={}),td=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],td),this.bind("init",function(ti){this.__refactorClass(q("li",this.$menu),this.conf.classNames[th].collapsed,"collapsed")}),td.add&&this.bind("init",function(ts){var ta;ta="panels"===td.addTo?ts:ts.filter(td.addTo),q("."+ti.divider,ta).remove(),ta.find("."+ti.listview).not("."+ti.vertical).each(function(){var ts="";tn.__filterListItems(q(this).children()).each(function(){var tn=q.trim(q(this).children("a, span").text()).slice(0,1).toLowerCase();tn!=ts&&tn.length&&(ts=tn,q('<li class="'+ti.divider+'">'+tn+"</li>").insertBefore(this))})})}),td.collapse&&this.bind("init",function(tn){q("."+ti.divider,tn).each(function(){var tn=q(this);tn.nextUntil("."+ti.divider,"."+ti.collapsed).length&&(tn.children("."+ti.subopen).length||(tn.wrapInner("<span />"),tn.prepend('<a href="#" class="'+ti.subopen+" "+ti.fullsubopen+'" />')))})}),td.fixed){var tc=function(tn){if((tn=tn||this.$pnls.children("."+ti.current)).find("."+ti.divider).not("."+ti.hidden).length){this.$menu.addClass(ti.hasdividers);var ts=tn.scrollTop()||0,ta="";tn.is(":visible")&&tn.find("."+ti.divider).not("."+ti.hidden).each(function(){q(this).position().top+ts<ts+1&&(ta=q(this).text())}),this.$fixeddivider.text(ta)}else this.$menu.removeClass(ti.hasdividers)};this.$fixeddivider=q('<ul class="'+ti.listview+" "+ti.fixeddivider+'"><li class="'+ti.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",tc),this.bind("update",tc),this.bind("init",function(ti){ti.off(ts.scroll+"-dividers "+ts.touchmove+"-dividers").on(ts.scroll+"-dividers "+ts.touchmove+"-dividers",function(ti){tc.call(tn,q(this))})})}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("collapsed uncollapsed fixeddivider hasdividers"),ts.add("scroll")},clickAnchor:function(q,tn){if(this.opts[th].collapse&&tn){var ts=q.parent();if(ts.is("."+ti.divider)){var ta=ts.nextUntil("."+ti.divider,"."+ti.collapsed);return ts.toggleClass(ti.opened),ta[ts.hasClass(ti.opened)?"addClass":"removeClass"](ti.uncollapsed),!0}}return!1}},q[tl].defaults[th]={add:!1,addTo:"panels",fixed:!1,collapse:!1},q[tl].configuration.classNames[th]={collapsed:"Collapsed"}}(jQuery),function(q){function ti(q,ti,tn){return ti>q&&(q=ti),q>tn&&(q=tn),q}var tn,ts,ta,tl,th="mmenu",td="dragOpen";q[th].addons[td]={setup:function(){if(this.opts.offCanvas){var ts=this,ta=this.opts[td],tc=this.conf[td];if(tl=q[th].glbl,"boolean"==typeof ta&&(ta={open:ta}),"object"!=typeof ta&&(ta={}),(ta=this.opts[td]=q.extend(!0,{},q[th].defaults[td],ta)).open){var tp,tu,tf,tm,tg,tv={},ty=0,t_=!1,tb=!1,tw=0,tx=0;switch(this.opts.offCanvas.position){case"left":case"right":tv.events="panleft panright",tv.typeLower="x",tv.typeUpper="X",tb="width";break;case"top":case"bottom":tv.events="panup pandown",tv.typeLower="y",tv.typeUpper="Y",tb="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":tv.negative=!0,tm=function(q){q>=tl.$wndw[tb]()-ta.maxStartPos&&(ty=1)};break;default:tv.negative=!1,tm=function(q){q<=ta.maxStartPos&&(ty=1)}}switch(this.opts.offCanvas.position){case"left":tv.open_dir="right",tv.close_dir="left";break;case"right":tv.open_dir="left",tv.close_dir="right";break;case"top":tv.open_dir="down",tv.close_dir="up";break;case"bottom":tv.open_dir="up",tv.close_dir="down"}tg="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return q("."+tn.slideout)};var tT=this.__valueOrFn(ta.pageNode,this.$menu,tl.$page);"string"==typeof tT&&(tT=q(tT)),new Hammer(tT[0],ta.vendors.hammer).on("panstart",function(q){tm(q.center[tv.typeLower]),tl.$slideOutNodes=tg(),t_=tv.open_dir}).on(tv.events+" panend",function(q){ty>0&&q.preventDefault()}).on(tv.events,function(q){if(tp=q["delta"+tv.typeUpper],tv.negative&&(tp=-tp),tp!=tw&&(t_=tp>=tw?tv.open_dir:tv.close_dir),(tw=tp)>
1ta.threshold&&1==ty){if(tl.$html.hasClass(tn.opened))return;ty=2,ts._openSetup(),ts.trigger("opening"),tl.$html.addClass(tn.dragging),tx=ti(tl.$wndw[tb]()*tc[tb].perc,tc[tb].min,tc[tb].max)}2==ty&&(tu=ti(tw,10,tx)-("front"==ts.opts.offCanvas.zposition?tx:0),tv.negative&&(tu=-tu),tf="translate"+tv.typeUpper+"("+tu+"px )",tl.$slideOutNodes.css({"-webkit-transform":"-webkit-"+tf,transform:tf}))}).on("panend",function(q){2==ty&&(tl.$html.removeClass(tn.dragging),tl.$slideOutNodes.css("transform",""),ts[t_==tv.open_dir?"_openFinish":"close"]()),ty=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(q[th].addons[td].setup=function(){}):(tn=q[th]._c,ts=q[th]._d,ta=q[th]._e,void tn.add("dragging"))},clickAnchor:function(q,ti){}},q[th].defaults[td]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},q[th].configuration[td]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="dropdown";q[tl].addons[th]={setup:function(){if(this.opts.offCanvas){var td=this,tc=this.opts[th],tp=this.conf[th];if(ta=q[tl].glbl,"boolean"==typeof tc&&tc&&(tc={drop:tc}),"object"!=typeof tc&&(tc={}),"string"==typeof tc.position&&(tc.position={of:tc.position}),(tc=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],tc)).drop){if("string"!=typeof tc.position.of){var tu=this.$menu.attr("id");tu&&tu.length&&(this.conf.clone&&(tu=ti.umm(tu)),tc.position.of='[href="#'+tu+'"]')}if("string"==typeof tc.position.of){var tf=q(tc.position.of);if(tf.length){this.$menu.addClass(ti.dropdown),tc.tip&&this.$menu.addClass(ti.tip),tc.event=tc.event.split(" "),1==tc.event.length&&(tc.event[1]=tc.event[0]),"hover"==tc.event[0]&&tf.on(ts.mouseenter+"-dropdown",function(){td.open()}),"hover"==tc.event[1]&&this.$menu.on(ts.mouseleave+"-dropdown",function(){td.close()}),this.bind("opening",function(){this.$menu.data(tn.style,this.$menu.attr("style")||""),ta.$html.addClass(ti.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(tn.style)),ta.$html.removeClass(ti.dropdown)});var tm=function(tn,ts){var td,tu,tm=ts[0],tg=ts[1],tv="x"==tn?"scrollLeft":"scrollTop",ty="x"==tn?"outerWidth":"outerHeight",t_="x"==tn?"left":"top",tb="x"==tn?"right":"bottom",tw="x"==tn?"width":"height",tx="x"==tn?"maxWidth":"maxHeight",tT=null,tL=ta.$wndw[tv](),tC=tf.offset()[t_]-=tL,tS=tC+tf[ty](),tP=ta.$wndw[tw](),tk=tp.offset.button[tn]+tp.offset.viewport[tn];if(tc.position[tn])switch(tc.position[tn]){case"left":case"bottom":tT="after";break;case"right":case"top":tT="before"}return null===tT&&(tT=tP/2>tC+(tS-tC)/2?"after":"before"),"after"==tT?(tu=tP-((td="x"==tn?tC:tS)+tk),tm[t_]=td+tp.offset.button[tn],tm[tb]="auto",tg.push(ti["x"==tn?"tipleft":"tiptop"])):(tu=(td="x"==tn?tS:tC)-tk,tm[tb]="calc( 100% - "+(td-tp.offset.button[tn])+"px )",tm[t_]="auto",tg.push(ti["x"==tn?"tipright":"tipbottom"])),tm[tx]=Math.min(q[tl].configuration[th][tw].max,tu),[tm,tg]},tg=function(q){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(tn.style));var ts=[{},[]];ts=tm.call(this,"y",ts),ts=tm.call(this,"x",ts),this.$menu.css(ts[0]),tc.tip&&this.$menu.removeClass(ti.tipleft+" "+ti.tipright+" "+ti.tiptop+" "+ti.tipbottom).addClass(ts[1].join(" "))}};this.bind("opening",tg),ta.$wndw.on(ts.resize+"-dropdown",function(q){tg.call(td)}),this.opts.offCanvas.blockUI||ta.$wndw.on(ts.scroll+"-dropdown",function(q){tg.call(td)})}}}}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("dropdown tip tipleft tipright tiptop tipbottom"),ts.add("mouseenter mouseleave resize scroll")},clickAnchor:function(q,ti){}},q[tl].defaults[th]={drop:!1,event:"click",position:{},tip:!0},q[tl].configuration[th]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="fixedElements";q[tl].addons[th]={setup:function(){if(this.opts.offCanvas){var ti=this.opts[th];this.conf[th],ta=q[tl].glbl,ti=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],ti);var tn=function(q){var ti=this.conf.classNames[th].fixed;this.__refactorClass(q.find("."+ti),ti,"slideout").appendTo(ta.$body)};
1tn.call(this,ta.$page),this.bind("setPage",tn)}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("fixed")},clickAnchor:function(q,ti){}},q[tl].configuration.classNames[th]={fixed:"Fixed"}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="iconPanels";q[tl].addons[th]={setup:function(){var tn=this,ts=this.opts[th];if(this.conf[th],ta=q[tl].glbl,"boolean"==typeof ts&&(ts={add:ts}),"number"==typeof ts&&(ts={add:!0,visible:ts}),"object"!=typeof ts&&(ts={}),ts=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],ts),ts.visible++,ts.add){this.$menu.addClass(ti.iconpanel);for(var td=[],tc=0;tc<=ts.visible;tc++)td.push(ti.iconpanel+"-"+tc);td=td.join(" ");var tp=function(ta){ta.hasClass(ti.vertical)||tn.$pnls.children("."+ti.panel).removeClass(td).filter("."+ti.subopened).removeClass(ti.hidden).add(ta).not("."+ti.vertical).slice(-ts.visible).each(function(tn){q(this).addClass(ti.iconpanel+"-"+tn)})};this.bind("openPanel",tp),this.bind("init",function(ta){tp.call(tn,tn.$pnls.children("."+ti.current)),ts.hideNavbars&&ta.removeClass(ti.hasnavbar),ta.not("."+ti.vertical).each(function(){q(this).children("."+ti.subblocker).length||q(this).prepend('<a href="#'+q(this).closest("."+ti.panel).attr("id")+'" class="'+ti.subblocker+'" />')})})}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("iconpanel subblocker")},clickAnchor:function(q,ti){}},q[tl].defaults[th]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="navbars";q[tl].addons[th]={setup:function(){var tn=this,ts=this.opts[th],td=this.conf[th];if(ta=q[tl].glbl,void 0!==ts){ts instanceof Array||(ts=[ts]);var tc={};for(var tp in q.each(ts,function(ta){var tp=ts[ta];"boolean"==typeof tp&&tp&&(tp={}),"object"!=typeof tp&&(tp={}),void 0===tp.content&&(tp.content=["prev","title"]),tp.content instanceof Array||(tp.content=[tp.content]);var tu=(tp=q.extend(!0,{},tn.opts.navbar,tp)).position,tf=tp.height;"number"!=typeof tf&&(tf=1),tf=Math.min(4,Math.max(1,tf)),"bottom"!=tu&&(tu="top"),tc[tu]||(tc[tu]=0),tc[tu]++;var tm=q("<div />").addClass(ti.navbar+" "+ti.navbar+"-"+tu+" "+ti.navbar+"-"+tu+"-"+tc[tu]+" "+ti.navbar+"-size-"+tf);tc[tu]+=tf-1;for(var tg=0,tv=0,ty=tp.content.length;ty>tv;tv++){var t_=q[tl].addons[th][tp.content[tv]]||!1;t_?tg+=t_.call(tn,tm,tp,td):((t_=tp.content[tv])instanceof q||(t_=q(tp.content[tv])),tm.append(t_))}(tg+=Math.ceil(tm.children().not("."+ti.btn).not("."+ti.title+"-prev").length/tf))>1&&tm.addClass(ti.navbar+"-content-"+tg),tm.children("."+ti.btn).length&&tm.addClass(ti.hasbtns),tm.prependTo(tn.$menu)}),tc)tn.$menu.addClass(ti.hasnavbar+"-"+tp+"-"+tc[tp])}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("close hasbtns")},clickAnchor:function(q,ti){}},q[tl].configuration[th]={breadcrumbSeparator:"/"},q[tl].configuration.classNames[th]={}}(jQuery),function(q){var ti="mmenu",tn="navbars",ts="breadcrumbs";q[ti].addons[tn][ts]=function(tn,ts,ta){var tl=q[ti]._c,th=q[ti]._d;tl.add("breadcrumbs separator");var td=q('<span class="'+tl.breadcrumbs+'" />').appendTo(tn);this.bind("init",function(ti){ti.removeClass(tl.hasnavbar).each(function(){for(var ti=[],tn=q(this),ts=q('<span class="'+tl.breadcrumbs+'"></span>'),td=q(this).children().first(),tc=!0;td&&td.length;){td.is("."+tl.panel)||(td=td.closest("."+tl.panel));var tp=td.children("."+tl.navbar).children("."+tl.title).text();ti.unshift(tc?"<span>"+tp+"</span>":'<a href="#'+td.attr("id")+'">'+tp+"</a>"),tc=!1,td=td.data(th.parent)}ts.append(ti.join('<span class="'+tl.separator+'">'+ta.breadcrumbSeparator+"</span>")).appendTo(tn.children("."+tl.navbar))})});var tc=function(){td.html(this.$pnls.children("."+tl.current).children("."+tl.navbar).children("."+tl.breadcrumbs).html())};return this.bind("openPanel",tc),this.bind("init",tc),0}}(jQuery),function(q){var ti="mmenu",tn="navbars",ts="close";q[ti].addons[tn][ts]=function(tn,ts){var ta=q[ti]._c,tl=q[ti].glbl,th=q('<a class="'+ta.close+" "+ta.btn+'" href="#" />').appendTo(tn),td=function(q){th.attr("href","#"+q.attr("id"))};return td.call(this,tl.$page),this.bind("setPage",td),-1}}(jQuery),function(q){var ti="mmenu",tn="navbars",ts="next";q[ti].addons[tn][ts]=function(ts,ta){var tl,th,td=q[ti]._c,tc=q('<a class="'+td.next+" "+td.btn+'" href="#" />').appendTo(ts),tp=function(q){var ti=(q=q||this.$pnls.children("."+td.current)).find("."+this.conf.classNames[tn].panelNext);tl=ti.attr("href"),th=ti.html(),tc[tl?"attr":"removeAttr"]("href",tl),tc[tl||th?"removeClass":"addClass"](td.hidden),tc.html(th)};return this.bind("openPanel",tp),this.bind("init",function(){tp.call(this)}),-1},q[ti].configuration.classNames[tn].panelNext="Next"}(jQuery),function(q){var ti="mmenu",tn="navbars",ts="prev";q[ti].addons[tn][ts]=function(ts,ta){var tl=q[ti]._c,th=q('<a class="'+tl.prev+" "+tl.btn+'" href="#" />').appendTo(ts);this.bind("init",function(q){q.removeClass(tl.hasnavbar).children("."+tl.navbar).addClass(tl.hidden)});var td,tc,tp=function(q){if(!(q=q||this.$pnls.children("."+tl.current)).hasClass(tl.vertical)){var ti=q.find("."+this.conf.classNames[tn].panelPrev);
1ti.length||(ti=q.children("."+tl.navbar).children("."+tl.prev)),td=ti.attr("href"),tc=ti.html(),th[td?"attr":"removeAttr"]("href",td),th[td||tc?"removeClass":"addClass"](tl.hidden),th.html(tc)}};return this.bind("openPanel",tp),this.bind("init",function(){tp.call(this)}),-1},q[ti].configuration.classNames[tn].panelPrev="Prev"}(jQuery),function(q){var ti="mmenu",tn="navbars",ts="searchfield";q[ti].addons[tn][ts]=function(tn,ts){var ta=q[ti]._c,tl=q('<div class="'+ta.search+'" />').appendTo(tn);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=tl,0}}(jQuery),function(q){var ti="mmenu",tn="navbars",ts="title";q[ti].addons[tn][ts]=function(ts,ta){var tl,th,td=q[ti]._c,tc=q('<a class="'+td.title+'" />').appendTo(ts),tp=function(q){if(!(q=q||this.$pnls.children("."+td.current)).hasClass(td.vertical)){var ti=q.find("."+this.conf.classNames[tn].panelTitle);ti.length||(ti=q.children("."+td.navbar).children("."+td.title)),tl=ti.attr("href"),th=ti.html()||ta.title,tc[tl?"attr":"removeAttr"]("href",tl),tc[tl||th?"removeClass":"addClass"](td.hidden),tc.html(th)}};return this.bind("openPanel",tp),this.bind("init",function(q){tp.call(this)}),0},q[ti].configuration.classNames[tn].panelTitle="Title"}(jQuery),function(q){function ti(q,ti,tn){q.prop("aria-"+ti,tn)[tn?"attr":"removeAttr"]("aria-"+ti,"true")}function tn(q){return'<span class="'+ts.sronly+'">'+q+"</span>"}var ts,ta,tl,th,td="mmenu",tc="screenReader";q[td].addons[tc]={setup:function(){var ta=this.opts[tc],tl=this.conf[tc];if(th=q[td].glbl,"boolean"==typeof ta&&(ta={aria:ta,text:ta}),"object"!=typeof ta&&(ta={}),(ta=this.opts[tc]=q.extend(!0,{},q[td].defaults[tc],ta)).aria){if(this.opts.offCanvas){var tp=function(){ti(this.$menu,"hidden",!1)},tu=function(){ti(this.$menu,"hidden",!0)};this.bind("open",tp),this.bind("close",tu),tu.call(this)}var tf=function(){ti(this.$menu.find("."+ts.hidden),"hidden",!0),ti(this.$menu.find('[aria-hidden="true"]').not("."+ts.hidden),"hidden",!1)},tm=function(q){ti(this.$pnls.children("."+ts.panel).not(q).not("."+ts.hidden),"hidden",!0),ti(q,"hidden",!1)};this.bind("update",tf),this.bind("openPanel",tf),this.bind("openPanel",tm);var tg=function(q){ti(q.find("."+ts.prev+", ."+ts.next),"haspopup",!0)};this.bind("init",tg),tg.call(this,this.$menu.children("."+ts.navbar))}if(ta.text){var tv=function(ti){ti.children("."+ts.navbar).children("."+ts.prev).html(tn(tl.text.closeSubmenu)).end().children("."+ts.next).html(tn(tl.text.openSubmenu)).end().children("."+ts.close).html(tn(tl.text.closeMenu)),ti.is("."+ts.panel)&&ti.find("."+ts.listview).find("."+ts.next).each(function(){q(this).html(tn(tl.text[q(this).parent().is("."+ts.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",tv),tv.call(this,this.$menu)}},add:function(){ts=q[td]._c,ta=q[td]._d,tl=q[td]._e,ts.add("sronly")},clickAnchor:function(q,ti){}},q[td].defaults[tc]={aria:!1,text:!1},q[td].configuration[tc]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(q){function ti(q){switch(q){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1}var tn,ts,ta,tl,th="mmenu",td="searchfield";q[th].addons[td]={setup:function(){var tc=this,tp=this.opts[td],tu=this.conf[td];tl=q[th].glbl,"boolean"==typeof tp&&(tp={add:tp}),"object"!=typeof tp&&(tp={}),"boolean"==typeof tp.resultsPanel&&(tp.resultsPanel={add:tp.resultsPanel}),tp=this.opts[td]=q.extend(!0,{},q[th].defaults[td],tp),tu=this.conf[td]=q.extend(!0,{},q[th].configuration[td],tu),this.bind("close",function(){this.$menu.find("."+tn.search).find("input").blur()}),this.bind("init",function(tl){if(tp.add){var th;if((th="panels"===tp.addTo?tl:this.$menu.find(tp.addTo)).each(function(){var ti=q(this);if(!ti.is("."+tn.panel)||!ti.is("."+tn.vertical)){if(!ti.children("."+tn.search).length){var ts,tl=tc.__valueOrFn(tu.clear,ti),th=tc.__valueOrFn(tu.form,ti),td=tc.__valueOrFn(tu.input,ti),tf=tc.__valueOrFn(tu.submit,ti),tm=q("<"+(th?"form":"div")+' class="'+tn.search+'" />'),tg=q('<input placeholder="'+tp.placeholder+'" type="text" autocomplete="off" />');if(tm.append(tg),td)for(ts in td)tg.attr(ts,td[ts]);
1if(tl&&q('<a class="'+tn.btn+" "+tn.clear+'" href="#" />').appendTo(tm).on(ta.click+"-searchfield",function(q){q.preventDefault(),tg.val("").trigger(ta.keyup+"-searchfield")}),th){for(ts in th)tm.attr(ts,th[ts]);tf&&!tl&&q('<a class="'+tn.btn+" "+tn.next+'" href="#" />').appendTo(tm).on(ta.click+"-searchfield",function(q){q.preventDefault(),tm.submit()})}ti.hasClass(tn.search)?ti.replaceWith(tm):ti.prepend(tm).addClass(tn.hassearch)}if(tp.noResults&&(ti.closest("."+tn.panel).length||(ti=tc.$pnls.children("."+tn.panel).first()),!ti.children("."+tn.noresultsmsg).length)){var tv=ti.children("."+tn.listview).first();q('<div class="'+tn.noresultsmsg+" "+tn.hidden+'" />').append(tp.noResults)[tv.length?"insertAfter":"prependTo"](tv.length?tv:ti)}}}),tp.search){if(tp.resultsPanel.add){tp.showSubPanels=!1;var tf=this.$pnls.children("."+tn.resultspanel);tf.length||(tf=q('<div class="'+tn.panel+" "+tn.resultspanel+" "+tn.hidden+'" />').appendTo(this.$pnls).append('<div class="'+tn.navbar+" "+tn.hidden+'"><a class="'+tn.title+'">'+tp.resultsPanel.title+"</a></div>").append('<ul class="'+tn.listview+'" />').append(this.$pnls.find("."+tn.noresultsmsg).first().clone()),this.init(tf))}this.$menu.find("."+tn.search).each(function(){var tl,th,tu=q(this),tm=tu.closest("."+tn.panel).length;tm?th=tl=tu.closest("."+tn.panel):(tl=q("."+tn.panel,tc.$menu),th=tc.$menu),tp.resultsPanel.add&&(tl=tl.not(tf));var tg=tu.children("input"),tv=tc.__findAddBack(tl,"."+tn.listview).children("li"),ty=tv.filter("."+tn.divider),t_=tc.__filterListItems(tv),tb="a",tw=tb+", span",tx="",tT=function(){var ti=tg.val().toLowerCase();if(ti!=tx){if(tx=ti,tp.resultsPanel.add&&tf.children("."+tn.listview).empty(),tl.scrollTop(0),t_.add(ty).addClass(tn.hidden).find("."+tn.fullsubopensearch).removeClass(tn.fullsubopen+" "+tn.fullsubopensearch),t_.each(function(){var ti=q(this),ta=tb;(tp.showTextItems||tp.showSubPanels&&ti.find("."+tn.next))&&(ta=tw),(ti.data(ts.searchtext)||ti.children(ta).text()).toLowerCase().indexOf(tx)>-1&&ti.add(ti.prevAll("."+tn.divider).first()).removeClass(tn.hidden)}),tp.showSubPanels&&tl.each(function(ti){var ta=q(this);tc.__filterListItems(ta.find("."+tn.listview).children()).each(function(){var ti=q(this),ta=ti.data(ts.sub);ti.removeClass(tn.nosubresults),ta&&ta.find("."+tn.listview).children().removeClass(tn.hidden)})}),tp.resultsPanel.add){if(""===tx)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+tn.subopened).last());else{var ta=q();tl.each(function(){var ti=tc.__filterListItems(q(this).find("."+tn.listview).children()).not("."+tn.hidden).clone(!0);ti.length&&(tp.resultsPanel.dividers&&(ta=ta.add('<li class="'+tn.divider+'">'+q(this).children("."+tn.navbar).text()+"</li>")),ta=ta.add(ti))}),ta.find("."+tn.next).remove(),tf.children("."+tn.listview).append(ta),this.openPanel(tf)}}else q(tl.get().reverse()).each(function(ti){var ta=q(this),tl=ta.data(ts.parent);tl&&(tc.__filterListItems(ta.find("."+tn.listview).children()).length?(tl.hasClass(tn.hidden)&&tl.children("."+tn.next).not("."+tn.fullsubopen).addClass(tn.fullsubopen).addClass(tn.fullsubopensearch),tl.removeClass(tn.hidden).removeClass(tn.nosubresults).prevAll("."+tn.divider).first().removeClass(tn.hidden)):tm||(ta.hasClass(tn.opened)&&setTimeout(function(){tc.openPanel(tl.closest("."+tn.panel))},(ti+1)*(1.5*tc.conf.openingInterval)),tl.addClass(tn.nosubresults)))});th.find("."+tn.noresultsmsg)[t_.not("."+tn.hidden).length?"addClass":"removeClass"](tn.hidden),this.update()}};tg.off(ta.keyup+"-"+td+" "+ta.change+"-"+td).on(ta.keyup+"-"+td,function(q){ti(q.keyCode)||tT.call(tc)}).on(ta.change+"-"+td,function(q){tT.call(tc)});var tL=tu.children("."+tn.btn);tL.length&&tg.on(ta.keyup+"-"+td,function(q){tL[tg.val().length?"removeClass":"addClass"](tn.hidden)}),tg.trigger(ta.keyup+"-"+td)})}}})},add:function(){tn=q[th]._c,ts=q[th]._d,ta=q[th]._e,tn.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),ts.add("searchtext"),ta.add("change keyup")},clickAnchor:function(q,ti){}},q[th].defaults[td]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},q[th].configuration[td]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="sectionIndexer";q[tl].addons[th]={setup:function(){var tn=this,td=this.opts[th];this.conf[th],ta=q[tl].glbl,"boolean"==typeof td&&(td={add:td}),"object"!=typeof td&&(td={}),td=this.opts[th]=q.extend(!0,{}
1,q[tl].defaults[th],td),this.bind("init",function(ta){if(td.add){var tl;(tl="panels"===td.addTo?ta:q(td.addTo,this.$menu).filter("."+ti.panel)).find("."+ti.divider).closest("."+ti.panel).addClass(ti.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+ti.hasindexer).length){this.$indexer=q('<div class="'+ti.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(ts.mouseover+"-sectionindexer "+ti.touchstart+"-sectionindexer",function(ts){var ta=q(this).attr("href").slice(1),tl=tn.$pnls.children("."+ti.current),th=tl.find("."+ti.listview),td=!1,tc=tl.scrollTop();tl.scrollTop(0),th.children("."+ti.divider).not("."+ti.hidden).each(function(){!1===td&&ta==q(this).text().slice(0,1).toLowerCase()&&(td=q(this).position().top)}),tl.scrollTop(!1!==td?td:tc)});var th=function(q){tn.$menu[(q.hasClass(ti.hasindexer)?"add":"remove")+"Class"](ti.hasindexer)};this.bind("openPanel",th),th.call(this,this.$pnls.children("."+ti.current))}})},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("indexer hasindexer"),ts.add("mouseover touchstart")},clickAnchor:function(q,tn){return!!q.parent().is("."+ti.indexer)||void 0}},q[tl].defaults[th]={add:!1,addTo:"panels"}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="setSelected";q[tl].addons[th]={setup:function(){var ts=this.opts[th];if(this.conf[th],ta=q[tl].glbl,"boolean"==typeof ts&&(ts={hover:ts,parent:ts}),"object"!=typeof ts&&(ts={}),(ts=this.opts[th]=q.extend(!0,{},q[tl].defaults[th],ts)).current||this.bind("init",function(q){q.find("."+ti.listview).children("."+ti.selected).removeClass(ti.selected)}),ts.hover&&this.$menu.addClass(ti.hoverselected),ts.parent){this.$menu.addClass(ti.parentselected);var td=function(q){this.$pnls.find("."+ti.listview).find("."+ti.next).removeClass(ti.selected);for(var ts=q.data(tn.parent);ts&&ts.length;)ts=ts.children("."+ti.next).addClass(ti.selected).closest("."+ti.panel).data(tn.parent)};this.bind("openedPanel",td),this.bind("init",function(q){td.call(this,this.$pnls.children("."+ti.current))})}},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("hoverselected parentselected")},clickAnchor:function(q,ti){}},q[tl].defaults[th]={current:!0,hover:!1,parent:!1}}(jQuery),function(q){var ti,tn,ts,ta,tl="mmenu",th="toggles";q[tl].addons[th]={setup:function(){var tn=this;this.opts[th],this.conf[th],ta=q[tl].glbl,this.bind("init",function(ts){this.__refactorClass(q("input",ts),this.conf.classNames[th].toggle,"toggle"),this.__refactorClass(q("input",ts),this.conf.classNames[th].check,"check"),q("input."+ti.toggle+", input."+ti.check,ts).each(function(){var ts=q(this),ta=ts.closest("li"),tl=ts.hasClass(ti.toggle)?"toggle":"check",th=ts.attr("id")||tn.__getUniqueId();ta.children('label[for="'+th+'"]').length||(ts.attr("id",th),ta.prepend(ts),q('<label for="'+th+'" class="'+ti[tl]+'"></label>').insertBefore(ta.children("a, span").last()))})})},add:function(){ti=q[tl]._c,tn=q[tl]._d,ts=q[tl]._e,ti.add("toggle check")},clickAnchor:function(q,ti){}},q[tl].configuration.classNames[th]={toggle:"Toggle",check:"Check"}}(jQuery),function(q){"function"==typeof define&&define.amd?define(["jquery"],q):"object"==typeof module&&module.exports?module.exports=q(require("jquery")):q(jQuery)}(function(q){var ti=Array.prototype.slice,tn=Array.prototype.splice,ts={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},ta=q(window),tl=q(document),th=[],td=ta.height(),tc=function(){for(var ti=ta.scrollTop(),tn=tl.height(),ts=tn-td,tc=ti>ts?ts-ti:0,tp=0,tu=th.length;tp<tu;tp++){var tf=th[tp],tm=tf.stickyWrapper.offset().top-tf.topSpacing-tc;if(tf.stickyWrapper.css("height",tf.stickyElement.outerHeight()),ti<=tm)null!==tf.currentTop&&(tf.stickyElement.css({width:"",position:"",top:"","z-index":""}),tf.stickyElement.parent().removeClass(tf.className),tf.stickyElement.trigger("sticky-end",[tf]),tf.currentTop=null);else{var tg,tv=tn-tf.stickyElement.outerHeight()-tf.topSpacing-tf.bottomSpacing-ti-tc;tv<0?tv+=tf.topSpacing:tv=tf.topSpacing,tf.currentTop!==tv&&(tf.getWidthFrom?tg=q(tf.getWidthFrom).width()||null:tf.widthFromWrapper&&(tg=tf.stickyWrapper.width()),null==tg&&(tg=tf.stickyElement.width()),tf.stickyElement.css("width",tg).css("position","fixed").css("top",tv).css("z-index",tf.zIndex),tf.stickyElement.parent().addClass(tf.className),null===tf.currentTop?tf.stickyElement.trigger("sticky-start",[tf]):tf.stickyElement.trigger("sticky-update",[tf]),tf.currentTop===tf.topSpacing&&tf.currentTop>tv||null===tf.currentTop&&tv<tf.topSpacing?tf.stickyElement.trigger("sticky-bottom-reached",[tf]):null!==tf.currentTop&&tv===tf.topSpacing&&tf.currentTop<tv&&tf.stickyElement.trigger("sticky-bottom-unreached",[tf]),tf.currentTop=tv);var ty=tf.stickyWrapper.parent();tf.stickyElement.offset().top+tf.stickyElement.outerHeight()>=ty.offset().top+ty.outerHeight()&&tf.stickyElement.offset().top<=tf.topSpacing?tf.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):tf.stickyElement.css("position","fixed").css("top",tv).css("bottom","").css("z-index",tf.zIndex)}}},tp=function(){td=ta.height();for(var ti=0,tn=th.length;ti<tn;ti++){var ts=th[ti],tl=null;ts.getWidthFrom?ts.responsiveWidth&&(tl=q(ts.getWidthFrom).width()):ts.widthFromWrapper&&(tl=ts.stickyWrapper.width()),null!=tl&&ts.stickyElement.css("width",tl)}},tu={init:function(ti){var tn=q.extend({},ts,ti);return this.each(function(){var ti=q(this),ta=ti.attr("id"),tl=ta?ta+"-"+ts.wrapperClassName:ts.wrapperClassName,td=q("<div></div>").attr("id",tl).addClass(tn.wrapperClassName);ti.wrapAll(function(){if(0==q(this).parent("#"+tl).length)return td});var tc=ti.parent();tn.center&&tc.css({width:ti.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===ti.css("float")&&ti.css({float:"none"}).parent().css({float:"right"}),tn.stickyElement=ti,tn.stickyWrapper=tc,tn.currentTop=null,th.push(tn),tu.setWrapperHeight(this),tu.setupChangeListeners(this)})},setWrapperHeight:function(ti){var tn=q(ti),ts=tn.parent();ts&&ts.css("height",tn.outerHeight())},setupChangeListeners:function(q){window.MutationObserver?new window.MutationObserver(function(ti){(ti[0].addedNodes.length||ti[0].removedNodes.length)&&tu.setWrapperHeight(q)}).observe(q,{subtree:!0,childList:!0}):window.addEventListener?(q.addEventListener("DOMNodeInserted",function(){tu.setWrapperHeight(q)},!1),q.addEventListener("DOMNodeRemoved",function(){tu.setWrapperHeight(q)},!1)):window.attachEvent&&(q.attachEvent("onDOMNodeInserted",function(){tu.setWrapperHeight(q)}),q.attachEvent("onDOMNodeRemoved",function(){tu.setWrapperHeight(q)}))},update:tc,unstick:function(ti){return this.each(function(){for(var ti=this,ts=q(ti),ta=-1,tl=th.length;tl-- >0;)th[tl].stickyElement.get(0)===ti&&(tn.call(th,tl,1),ta=tl);-1!==ta&&(ts.unwrap(),ts.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",tc,!1),window.addEventListener("resize",tp,!1)):window.attachEvent&&(window.attachEvent("onscroll",tc),window.attachEvent("onresize",tp)),q.fn.sticky=function(tn){return tu[tn]?tu[tn].apply(this,ti.call(arguments,1
1)):"object"!=typeof tn&&tn?void q.error("Method "+tn+" does not exist on jQuery.sticky"):tu.init.apply(this,arguments)},q.fn.unstick=function(tn){return tu[tn]?tu[tn].apply(this,ti.call(arguments,1)):"object"!=typeof tn&&tn?void q.error("Method "+tn+" does not exist on jQuery.sticky"):tu.unstick.apply(this,arguments)},q(function(){setTimeout(tc,0)})}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(q,ti,tn,ts,ta){return jQuery.easing[jQuery.easing.def](q,ti,tn,ts,ta)},easeInQuad:function(q,ti,tn,ts,ta){return ts*(ti/=ta)*ti+tn},easeOutQuad:function(q,ti,tn,ts,ta){return-ts*(ti/=ta)*(ti-2)+tn},easeInOutQuad:function(q,ti,tn,ts,ta){return(ti/=ta/2)<1?ts/2*ti*ti+tn:-ts/2*(--ti*(ti-2)-1)+tn},easeInCubic:function(q,ti,tn,ts,ta){return ts*(ti/=ta)*ti*ti+tn},easeOutCubic:function(q,ti,tn,ts,ta){return ts*((ti=ti/ta-1)*ti*ti+1)+tn},easeInOutCubic:function(q,ti,tn,ts,ta){return(ti/=ta/2)<1?ts/2*ti*ti*ti+tn:ts/2*((ti-=2)*ti*ti+2)+tn},easeInQuart:function(q,ti,tn,ts,ta){return ts*(ti/=ta)*ti*ti*ti+tn},easeOutQuart:function(q,ti,tn,ts,ta){return-ts*((ti=ti/ta-1)*ti*ti*ti-1)+tn},easeInOutQuart:function(q,ti,tn,ts,ta){return(ti/=ta/2)<1?ts/2*ti*ti*ti*ti+tn:-ts/2*((ti-=2)*ti*ti*ti-2)+tn},easeInQuint:function(q,ti,tn,ts,ta){return ts*(ti/=ta)*ti*ti*ti*ti+tn},easeOutQuint:function(q,ti,tn,ts,ta){return ts*((ti=ti/ta-1)*ti*ti*ti*ti+1)+tn},easeInOutQuint:function(q,ti,tn,ts,ta){return(ti/=ta/2)<1?ts/2*ti*ti*ti*ti*ti+tn:ts/2*((ti-=2)*ti*ti*ti*ti+2)+tn},easeInSine:function(q,ti,tn,ts,ta){return-ts*Math.cos(ti/ta*(Math.PI/2))+ts+tn},easeOutSine:function(q,ti,tn,ts,ta){return ts*Math.sin(ti/ta*(Math.PI/2))+tn},easeInOutSine:function(q,ti,tn,ts,ta){return-ts/2*(Math.cos(Math.PI*ti/ta)-1)+tn},easeInExpo:function(q,ti,tn,ts,ta){return 0==ti?tn:ts*Math.pow(2,10*(ti/ta-1))+tn},easeOutExpo:function(q,ti,tn,ts,ta){return ti==ta?tn+ts:ts*(-Math.pow(2,-10*ti/ta)+1)+tn},easeInOutExpo:function(q,ti,tn,ts,ta){return 0==ti?tn:ti==ta?tn+ts:(ti/=ta/2)<1?ts/2*Math.pow(2,10*(ti-1))+tn:ts/2*(-Math.pow(2,-10*--ti)+2)+tn},easeInCirc:function(q,ti,tn,ts,ta){return-ts*(Math.sqrt(1-(ti/=ta)*ti)-1)+tn},easeOutCirc:function(q,ti,tn,ts,ta){return ts*Math.sqrt(1-(ti=ti/ta-1)*ti)+tn},easeInOutCirc:function(q,ti,tn,ts,ta){return(ti/=ta/2)<1?-ts/2*(Math.sqrt(1-ti*ti)-1)+tn:ts/2*(Math.sqrt(1-(ti-=2)*ti)+1)+tn},easeInElastic:function(q,ti,tn,ts,ta){var tl=1.70158,th=0,td=ts;if(0==ti)return tn;if(1==(ti/=ta))return tn+ts;if(th||(th=.3*ta),td<Math.abs(ts)){td=ts;var tl=th/4}else var tl=th/(2*Math.PI)*Math.asin(ts/td);return-(td*Math.pow(2,10*(ti-=1))*Math.sin((ti*ta-tl)*(2*Math.PI)/th))+tn},easeOutElastic:function(q,ti,tn,ts,ta){var tl=1.70158,th=0,td=ts;if(0==ti)return tn;if(1==(ti/=ta))return tn+ts;if(th||(th=.3*ta),td<Math.abs(ts)){td=ts;var tl=th/4}else var tl=th/(2*Math.PI)*Math.asin(ts/td);return td*Math.pow(2,-10*ti)*Math.sin((ti*ta-tl)*(2*Math.PI)/th)+ts+tn},easeInOutElastic:function(q,ti,tn,ts,ta){var tl=1.70158,th=0,td=ts;if(0==ti)return tn;if(2==(ti/=ta/2))return tn+ts;if(th||(th=ta*(.3*1.5)),td<Math.abs(ts)){td=ts;var tl=th/4}else var tl=th/(2*Math.PI)*Math.asin(ts/td);return ti<1?-.5*(td*Math.pow(2,10*(ti-=1))*Math.sin((ti*ta-tl)*(2*Math.PI)/th))+tn:td*Math.pow(2,-10*(ti-=1))*Math.sin((ti*ta-tl)*(2*Math.PI)/th)*.5+ts+tn},easeInBack:function(q,ti,tn,ts,ta,tl){return void 0==tl&&(tl=1.70158),ts*(ti/=ta)*ti*((tl+1)*ti-tl)+tn},easeOutBack:function(q,ti,tn,ts,ta,tl){return void 0==tl&&(tl=1.70158),ts*((ti=ti/ta-1)*ti*((tl+1)*ti+tl)+1)+tn},easeInOutBack:function(q,ti,tn,ts,ta,tl){return(void 0==tl&&(tl=1.70158),(ti/=ta/2)<1)?ts/2*(ti*ti*(((tl*=1.525)+1)*ti-tl))+tn:ts/2*((ti-=2)*ti*(((tl*=1.525)+1)*ti+tl)+2)+tn},easeInBounce:function(q,ti,tn,ts,ta){return ts-jQuery.easing.easeOutBounce(q,ta-ti,0,ts,ta)+tn},easeOutBounce:function(q,ti,tn,ts,ta){return(ti/=ta)<1/2.75?ts*(7.5625*ti*ti)+tn:ti<2/2.75?ts*(7.5625*(ti-=1.5/2.75)*ti+.75)+tn:ti<2.5/2.75?ts*(7.5625*(ti-=2.25/2.75)*ti+.9375)+tn:ts*(7.5625*(ti-=2.625/2.75)*ti+.984375)+tn},easeInOutBounce:function(q,ti,tn,ts,ta){return ti<ta/2?.5*jQuery.easing.easeInBounce(q,2*ti,0,ts,ta)+tn:.5*jQuery.easing.easeOutBounce(q,2*ti-ta,0,ts,ta)+.5*ts+tn}}),function(q){var ti={},tn={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSli
1des:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};q.fn.bxSlider=function(ts){if(0==this.length)return this;if(this.length>1)return this.each(function(){q(this).bxSlider(ts)}),this;var ta={},tl=this;ti.el=this;var th=q(window).width(),td=q(window).height(),tc=function(){ta.settings=q.extend({},tn,ts),ta.settings.slideWidth=parseInt(ta.settings.slideWidth),ta.children=tl.children(ta.settings.slideSelector),ta.children.length<ta.settings.minSlides&&(ta.settings.minSlides=ta.children.length),ta.children.length<ta.settings.maxSlides&&(ta.settings.maxSlides=ta.children.length),ta.settings.randomStart&&(ta.settings.startSlide=Math.floor(Math.random()*ta.children.length)),ta.active={index:ta.settings.startSlide},ta.carousel=ta.settings.minSlides>1||ta.settings.maxSlides>1,ta.carousel&&(ta.settings.preloadImages="all"),ta.minThreshold=ta.settings.minSlides*ta.settings.slideWidth+(ta.settings.minSlides-1)*ta.settings.slideMargin,ta.maxThreshold=ta.settings.maxSlides*ta.settings.slideWidth+(ta.settings.maxSlides-1)*ta.settings.slideMargin,ta.working=!1,ta.controls={},ta.interval=null,ta.animProp="vertical"==ta.settings.mode?"top":"left",ta.usingCSS=ta.settings.useCSS&&"fade"!=ta.settings.mode&&function(){var q=document.createElement("div"),ti=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var tn in ti)if(void 0!==q.style[ti[tn]])return ta.cssPrefix=ti[tn].replace("Perspective","").toLowerCase(),ta.animProp="-"+ta.cssPrefix+"-transform",!0;return!1}(),"vertical"==ta.settings.mode&&(ta.settings.maxSlides=ta.settings.minSlides),tl.data("origStyle",tl.attr("style")),tl.children(ta.settings.slideSelector).each(function(){q(this).data("origStyle",q(this).attr("style"))}),tp()},tp=function(){tl.wrap('<div class="'+ta.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),ta.viewport=tl.parent(),ta.loader=q('<div class="bx-loading" />'),ta.viewport.prepend(ta.loader),tl.css({width:"horizontal"==ta.settings.mode?100*ta.children.length+215+"%":"auto",position:"relative"}),ta.usingCSS&&ta.settings.easing?tl.css("-"+ta.cssPrefix+"-transition-timing-function",ta.settings.easing):ta.settings.easing||(ta.settings.easing="swing"),ty(),ta.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),ta.viewport.parent().css({maxWidth:tg()}),ta.settings.pager||ta.viewport.parent().css({margin:"0 auto 0px"}),ta.children.css({float:"horizontal"==ta.settings.mode?"left":"none",listStyle:"none",position:"relative"}),ta.children.css("width",tv()),"horizontal"==ta.settings.mode&&ta.settings.slideMargin>0&&ta.children.css("marginRight",ta.settings.slideMargin),"vertical"==ta.settings.mode&&ta.settings.slideMargin>0&&ta.children.css("marginBottom",ta.settings.slideMargin),"fade"==ta.settings.mode&&(ta.children.css({position:"absolute",zIndex:0,display:"none"}),ta.children.eq(ta.settings.startSlide).css({zIndex:ta.settings.slideZIndex,display:"block"})),ta.controls.el=q('<div class="bx-controls" />'),ta.settings.captions&&tP(),ta.active.last=ta.settings.startSlide==t_()-1,ta.settings.video&&tl.fitVids();var ti=ta.children.eq(ta.settings.startSlide);"all"==ta.settings.preloadImages&&(ti=ta.children),ta.settings.ticker?ta.settings.pager=!1:(ta.settings.pager&&tL(),ta.settings.controls&&tC(),ta.settings.auto&&ta.settings.autoControls&&tS(),(ta.settings.controls||ta.settings.autoControls||ta.settings.pager)&&ta.viewport.after(ta.controls.el)),tu(ti,tf)},tu=function(ti,tn){var ts=ti.find("img, iframe").length;if(0==ts){tn();return}var ta=0;ti.find("img, iframe").each(function(){q(this).one("load",function(){++ta==ts&&tn()}).each(function(){this.complete&&q(this).load()})})},tf=function(){if(ta.settings.infiniteLoop&&"fade"!=ta.settings.mode&&!ta.settings.ticker){var ti="vertical"==ta.settings.mode?ta.settings.minSlides:ta.settings.maxSlides,tn=ta.children.slice(0,ti).clone().addClass("bx-clone"),ts=ta.children.slice(-ti).clone().addClass("bx-clone");tl.append(tn).prepend(ts)}ta.loader.remove(),tw(),"vertical"==ta.settings.mode&&(ta.settings.adaptiveHeight=!0),ta.viewport.height(tm()),tl.redrawSlider(),ta.settings.onSliderLoad(ta.active.index),ta.initialized=!0,ta.settings.responsive&&q(window).bind("resize",tF),ta.settings.auto&&ta.settings.autoStart&&(t_(
1)>1||ta.settings.autoSlideForOnePage)&&tj(),ta.settings.ticker&&tD(),ta.settings.pager&&tO(ta.settings.startSlide),ta.settings.controls&&t$(),ta.settings.touchEnabled&&!ta.settings.ticker&&tN()},tm=function(){var ti=0,tn=q();if("vertical"==ta.settings.mode||ta.settings.adaptiveHeight){if(ta.carousel){var ts=1==ta.settings.moveSlides?ta.active.index:ta.active.index*tb();for(i=1,tn=ta.children.eq(ts);i<=ta.settings.maxSlides-1;i++)tn=ts+i>=ta.children.length?tn.add(ta.children.eq(i-1)):tn.add(ta.children.eq(ts+i))}else tn=ta.children.eq(ta.active.index)}else tn=ta.children;return"vertical"==ta.settings.mode?(tn.each(function(tn){ti+=q(this).outerHeight()}),ta.settings.slideMargin>0&&(ti+=ta.settings.slideMargin*(ta.settings.minSlides-1))):ti=Math.max.apply(Math,tn.map(function(){return q(this).outerHeight(!1)}).get()),"border-box"==ta.viewport.css("box-sizing")?ti+=parseFloat(ta.viewport.css("padding-top"))+parseFloat(ta.viewport.css("padding-bottom"))+parseFloat(ta.viewport.css("border-top-width"))+parseFloat(ta.viewport.css("border-bottom-width")):"padding-box"==ta.viewport.css("box-sizing")&&(ti+=parseFloat(ta.viewport.css("padding-top"))+parseFloat(ta.viewport.css("padding-bottom"))),ti},tg=function(){var q="100%";return ta.settings.slideWidth>0&&(q="horizontal"==ta.settings.mode?ta.settings.maxSlides*ta.settings.slideWidth+(ta.settings.maxSlides-1)*ta.settings.slideMargin:ta.settings.slideWidth),q},tv=function(){var q=ta.settings.slideWidth,ti=ta.viewport.width();return 0==ta.settings.slideWidth||ta.settings.slideWidth>ti&&!ta.carousel||"vertical"==ta.settings.mode?q=ti:ta.settings.maxSlides>1&&"horizontal"==ta.settings.mode&&(ti>ta.maxThreshold||ti<ta.minThreshold&&(q=(ti-ta.settings.slideMargin*(ta.settings.minSlides-1))/ta.settings.minSlides)),q},ty=function(){var q=1;if("horizontal"==ta.settings.mode&&ta.settings.slideWidth>0){if(ta.viewport.width()<ta.minThreshold)q=ta.settings.minSlides;else if(ta.viewport.width()>ta.maxThreshold)q=ta.settings.maxSlides;else{var ti=ta.children.first().width()+ta.settings.slideMargin;q=Math.floor((ta.viewport.width()+ta.settings.slideMargin)/ti)}}else"vertical"==ta.settings.mode&&(q=ta.settings.minSlides);return q},t_=function(){var q=0;if(ta.settings.moveSlides>0){if(ta.settings.infiniteLoop)q=Math.ceil(ta.children.length/tb());else for(var ti=0,tn=0;ti<ta.children.length;)++q,ti=tn+ty(),tn+=ta.settings.moveSlides<=ty()?ta.settings.moveSlides:ty()}else q=Math.ceil(ta.children.length/ty());return q},tb=function(){return ta.settings.moveSlides>0&&ta.settings.moveSlides<=ty()?ta.settings.moveSlides:ty()},tw=function(){if(ta.children.length>ta.settings.maxSlides&&ta.active.last&&!ta.settings.infiniteLoop){if("horizontal"==ta.settings.mode){var q=ta.children.last(),ti=q.position();tx(-(ti.left-(ta.viewport.width()-q.outerWidth())),"reset",0)}else if("vertical"==ta.settings.mode){var tn=ta.children.length-ta.settings.minSlides,ti=ta.children.eq(tn).position();tx(-ti.top,"reset",0)}}else{var ti=ta.children.eq(ta.active.index*tb()).position();ta.active.index==t_()-1&&(ta.active.last=!0),void 0!=ti&&("horizontal"==ta.settings.mode?tx(-ti.left,"reset",0):"vertical"==ta.settings.mode&&tx(-ti.top,"reset",0))}},tx=function(q,ti,tn,ts){if(ta.usingCSS){var th="vertical"==ta.settings.mode?"translate3d(0, "+q+"px, 0)":"translate3d("+q+"px, 0, 0)";tl.css("-"+ta.cssPrefix+"-transition-duration",tn/1e3+"s"),"slide"==ti?(tl.css(ta.animProp,th),tl.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){tl.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),tA()})):"reset"==ti?tl.css(ta.animProp,th):"ticker"==ti&&(tl.css("-"+ta.cssPrefix+"-transition-timing-function","linear"),tl.css(ta.animProp,th),tl.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){tl.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),tx(ts.resetValue,"reset",0),tH()}))}else{var td={};td[ta.animProp]=q,"slide"==ti?tl.animate(td,tn,ta.settings.easing,function(){tA()}):"reset"==ti?tl.css(ta.animProp,q):"ticker"==ti&&tl.animate(td,speed,"linear",function(){tx(ts.resetValue,"reset",0),tH()})}},tT=function(){for(var ti="",tn=t_(),ts=0;ts<tn;ts++){var tl="";ta.settings.buildPager&&q.isFunction(ta.settings.buildPager)?(tl=ta.settings.buildPager(ts),ta.pagerEl.addClass("bx-custom-pager")):(tl=ts+1,ta.pagerEl.addClass("bx-default-pager")),ti+='<div class="bx-pager-item">
1<a href="" data-slide-index="'+ts+'" class="bx-pager-link">'+tl+"</a></div>"}ta.pagerEl.html(ti)},tL=function(){ta.settings.pagerCustom?ta.pagerEl=q(ta.settings.pagerCustom):(ta.pagerEl=q('<div class="bx-pager" />'),ta.settings.pagerSelector?q(ta.settings.pagerSelector).html(ta.pagerEl):ta.controls.el.addClass("bx-has-pager").append(ta.pagerEl),tT()),ta.pagerEl.on("click","a",tI)},tC=function(){ta.controls.next=q('<a class="bx-next" href="">'+ta.settings.nextText+"</a>"),ta.controls.prev=q('<a class="bx-prev" href="">'+ta.settings.prevText+"</a>"),ta.controls.next.bind("click",tk),ta.controls.prev.bind("click",tE),ta.settings.nextSelector&&q(ta.settings.nextSelector).append(ta.controls.next),ta.settings.prevSelector&&q(ta.settings.prevSelector).append(ta.controls.prev),ta.settings.nextSelector||ta.settings.prevSelector||(ta.controls.directionEl=q('<div class="bx-controls-direction" />'),ta.controls.directionEl.append(ta.controls.prev).append(ta.controls.next),ta.controls.el.addClass("bx-has-controls-direction").append(ta.controls.directionEl))},tS=function(){ta.controls.start=q('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+ta.settings.startText+"</a></div>"),ta.controls.stop=q('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+ta.settings.stopText+"</a></div>"),ta.controls.autoEl=q('<div class="bx-controls-auto" />'),ta.controls.autoEl.on("click",".bx-start",tz),ta.controls.autoEl.on("click",".bx-stop",tM),ta.settings.autoControlsCombine?ta.controls.autoEl.append(ta.controls.start):ta.controls.autoEl.append(ta.controls.start).append(ta.controls.stop),ta.settings.autoControlsSelector?q(ta.settings.autoControlsSelector).html(ta.controls.autoEl):ta.controls.el.addClass("bx-has-controls-auto").append(ta.controls.autoEl),tB(ta.settings.autoStart?"stop":"start")},tP=function(){ta.children.each(function(ti){var tn=q(this).find("img:first").attr("title");void 0!=tn&&(""+tn).length&&q(this).append('<div class="bx-caption"><span>'+tn+"</span></div>")})},tk=function(q){ta.settings.auto&&tl.stopAuto(),tl.goToNextSlide(),q.preventDefault()},tE=function(q){ta.settings.auto&&tl.stopAuto(),tl.goToPrevSlide(),q.preventDefault()},tz=function(q){tl.startAuto(),q.preventDefault()},tM=function(q){tl.stopAuto(),q.preventDefault()},tI=function(ti){ta.settings.auto&&tl.stopAuto();var tn=q(ti.currentTarget);if(void 0!==tn.attr("data-slide-index")){var ts=parseInt(tn.attr("data-slide-index"));ts!=ta.active.index&&tl.goToSlide(ts),ti.preventDefault()}},tO=function(ti){var tn=ta.children.length;if("short"==ta.settings.pagerType){ta.settings.maxSlides>1&&(tn=Math.ceil(ta.children.length/ta.settings.maxSlides)),ta.pagerEl.html(ti+1+ta.settings.pagerShortSeparator+tn);return}ta.pagerEl.find("a").removeClass("active"),ta.pagerEl.each(function(tn,ts){q(ts).find("a").eq(ti).addClass("active")})},tA=function(){if(ta.settings.infiniteLoop){var q="";0==ta.active.index?q=ta.children.eq(0).position():ta.active.index==t_()-1&&ta.carousel?q=ta.children.eq((t_()-1)*tb()).position():ta.active.index==ta.children.length-1&&(q=ta.children.eq(ta.children.length-1).position()),q&&("horizontal"==ta.settings.mode?tx(-q.left,"reset",0):"vertical"==ta.settings.mode&&tx(-q.top,"reset",0))}ta.working=!1,ta.settings.onSlideAfter(ta.children.eq(ta.active.index),ta.oldIndex,ta.active.index)},tB=function(q){ta.settings.autoControlsCombine?ta.controls.autoEl.html(ta.controls[q]):(ta.controls.autoEl.find("a").removeClass("active"),ta.controls.autoEl.find("a:not(.bx-"+q+")").addClass("active"))},t$=function(){1==t_()?(ta.controls.prev.addClass("disabled"),ta.controls.next.addClass("disabled")):!ta.settings.infiniteLoop&&ta.settings.hideControlOnEnd&&(0==ta.active.index?(ta.controls.prev.addClass("disabled"),ta.controls.next.removeClass("disabled")):ta.active.index==t_()-1?(ta.controls.next.addClass("disabled"),ta.controls.prev.removeClass("disabled")):(ta.controls.prev.removeClass("disabled"),ta.controls.next.removeClass("disabled")))},tj=function(){ta.settings.autoDelay>0?setTimeout(tl.startAuto,ta.settings.autoDelay):tl.startAuto(),ta.settings.autoHover&&tl.hover(function(){ta.interval&&(tl.stopAuto(!0),ta.autoPaused=!0)},function(){ta.autoPaused&&(tl.startAuto(!0),ta.autoPaused=null)})},tD=function(){var ti=0;if("next"==ta.settings.autoDirection)tl.append(ta.children.clone().addClass("bx-clone"));
1else{tl.prepend(ta.children.clone().addClass("bx-clone"));var tn=ta.children.first().position();ti="horizontal"==ta.settings.mode?-tn.left:-tn.top}tx(ti,"reset",0),ta.settings.pager=!1,ta.settings.controls=!1,ta.settings.autoControls=!1,ta.settings.tickerHover&&!ta.usingCSS&&ta.viewport.hover(function(){tl.stop()},function(){var ti=0;ta.children.each(function(tn){ti+="horizontal"==ta.settings.mode?q(this).outerWidth(!0):q(this).outerHeight(!0)});var tn=ta.settings.speed/ti,ts="horizontal"==ta.settings.mode?"left":"top",th=tn*(ti-Math.abs(parseInt(tl.css(ts))));tH(th)}),tH()},tH=function(q){speed=q||ta.settings.speed;var ti={left:0,top:0},tn={left:0,top:0};"next"==ta.settings.autoDirection?ti=tl.find(".bx-clone").first().position():tn=ta.children.first().position();var ts="horizontal"==ta.settings.mode?-ti.left:-ti.top,th={resetValue:"horizontal"==ta.settings.mode?-tn.left:-tn.top};tx(ts,"ticker",speed,th)},tN=function(){ta.touch={start:{x:0,y:0},end:{x:0,y:0}},ta.viewport.bind("touchstart",tW)},tW=function(q){if(ta.working)q.preventDefault();else{ta.touch.originalPos=tl.position();var ti=q.originalEvent;ta.touch.start.x=ti.changedTouches[0].pageX,ta.touch.start.y=ti.changedTouches[0].pageY,ta.viewport.bind("touchmove",tR),ta.viewport.bind("touchend",tZ)}},tR=function(q){var ti=q.originalEvent,tn=Math.abs(ti.changedTouches[0].pageX-ta.touch.start.x),ts=Math.abs(ti.changedTouches[0].pageY-ta.touch.start.y);if(3*tn>ts&&ta.settings.preventDefaultSwipeX?q.preventDefault():3*ts>tn&&ta.settings.preventDefaultSwipeY&&q.preventDefault(),"fade"!=ta.settings.mode&&ta.settings.oneToOneTouch){var tl=0;if("horizontal"==ta.settings.mode){var th=ti.changedTouches[0].pageX-ta.touch.start.x;tl=ta.touch.originalPos.left+th}else{var th=ti.changedTouches[0].pageY-ta.touch.start.y;tl=ta.touch.originalPos.top+th}tx(tl,"reset",0)}},tZ=function(q){ta.viewport.unbind("touchmove",tR);var ti=q.originalEvent,tn=0;if(ta.touch.end.x=ti.changedTouches[0].pageX,ta.touch.end.y=ti.changedTouches[0].pageY,"fade"==ta.settings.mode){var ts=Math.abs(ta.touch.start.x-ta.touch.end.x);ts>=ta.settings.swipeThreshold&&(ta.touch.start.x>ta.touch.end.x?tl.goToNextSlide():tl.goToPrevSlide(),tl.stopAuto())}else{var ts=0;"horizontal"==ta.settings.mode?(ts=ta.touch.end.x-ta.touch.start.x,tn=ta.touch.originalPos.left):(ts=ta.touch.end.y-ta.touch.start.y,tn=ta.touch.originalPos.top),!ta.settings.infiniteLoop&&(0==ta.active.index&&ts>0||ta.active.last&&ts<0)?tx(tn,"reset",200):Math.abs(ts)>=ta.settings.swipeThreshold?(ts<0?tl.goToNextSlide():tl.goToPrevSlide(),tl.stopAuto()):tx(tn,"reset",200)}ta.viewport.unbind("touchend",tZ)},tF=function(ti){if(ta.initialized){var tn=q(window).width(),ts=q(window).height();(th!=tn||td!=ts)&&(th=tn,td=ts,tl.redrawSlider(),ta.settings.onSliderResize.call(tl,ta.active.index))}};return tl.goToSlide=function(ti,tn){if(!ta.working&&ta.active.index!=ti){if(ta.working=!0,ta.oldIndex=ta.active.index,ti<0?ta.active.index=t_()-1:ti>=t_()?ta.active.index=0:ta.active.index=ti,ta.settings.onSlideBefore(ta.children.eq(ta.active.index),ta.oldIndex,ta.active.index),"next"==tn?ta.settings.onSlideNext(ta.children.eq(ta.active.index),ta.oldIndex,ta.active.index):"prev"==tn&&ta.settings.onSlidePrev(ta.children.eq(ta.active.index),ta.oldIndex,ta.active.index),ta.active.last=ta.active.index>=t_()-1,ta.settings.pager&&tO(ta.active.index),ta.settings.controls&&t$(),"fade"==ta.settings.mode)ta.settings.adaptiveHeight&&ta.viewport.height()!=tm()&&ta.viewport.animate({height:tm()},ta.settings.adaptiveHeightSpeed),ta.children.filter(":visible").fadeOut(ta.settings.speed).css({zIndex:0}),ta.children.eq(ta.active.index).css("zIndex",ta.settings.slideZIndex+1).fadeIn(ta.settings.speed,function(){q(this).css("zIndex",ta.settings.slideZIndex),tA()});else{ta.settings.adaptiveHeight&&ta.viewport.height()!=tm()&&ta.viewport.animate({height:tm()},ta.settings.adaptiveHeightSpeed);var ts=0,th={left:0,top:0};if(!ta.settings.infiniteLoop&&ta.carousel&&ta.active.last){if("horizontal"==ta.settings.mode){var td=ta.children.eq(ta.children.length-1);th=td.position(),ts=ta.viewport.width()-td.outerWidth()}else{var tc=ta.children.length-ta.settings.minSlides;th=ta.children.eq(tc).position()}}else if(ta.carousel&&ta.active.last&&"prev"==tn){var tp=1==ta.settings.moveSlides?ta.settings.maxSlides-tb():(t_()-1)*tb()-(ta.children.length-ta.settings.maxSlides),td=tl.children(".bx-clone").eq(tp);th=td.position()}else if("next"==tn&&0==ta.active.index)th=tl.find("> .bx-clone").eq(ta.settings.maxSlides).position(),ta.active.last=!1;else if(ti>=0){var tu=ti*tb();th=ta.children.eq(tu).position()}void 0!==th&&tx("horizontal"==ta.settings.mode?-(th.left-ts):-th.top,"slide",ta.settings.speed)}}},tl.goToNextSlide=function(){if(ta.settings.infiniteLoop||!ta.active.last){var q=parseInt(ta.active.index)+1;tl.goToSlide(q,"next")}},tl.goToPrevSlide=function(){if(ta.settings.infiniteLoop||0!=ta.active.index){var q=parseInt(ta.active.index)-1;tl.goToSlide(q,"prev")}},tl.startAuto=function(q){!ta.interval&&(ta.interval=setInterval(function(){"next"==ta.settings.autoDirection?tl.goToNextSlide():tl.goToPrevSlide()},ta.settings.pause),ta.settings.autoControls&&!0!=q&&tB("stop"))},tl.stopAuto=function(q){ta.interval&&(clearInterval(ta.interval),ta.interval=null,ta.settings.autoControls&&!0!=q&&tB("start"))},tl.getCurrentSlide=function(){return ta.active.index},tl.getCurrentSlideElement=function(){return ta.children.eq(ta.active.index)},tl.getSlideCount=function(){return ta.children.length},tl.redrawSlider=function(){ta.children.add(tl.find(".bx-clone")).width(tv()),ta.viewport.css("height",tm()),ta.settings.ticker||tw(),ta.active.last&&(ta.active.index=t_()-1),ta.active.index>=t_()&&(ta.active.last=!0),ta.settings.pager&&!ta.settings.pagerCustom&&(tT(),tO(ta.active.index))},tl.destroySlider=function(){ta.initialized&&(ta.initialized=!1,q(".bx-clone",this).remove(),ta.children.each(function(){void 0!=q(this).data("origStyle")?q(this).attr("style",q(this).data("origStyle")):q(this).removeAttr("style")}),void 0!=q(this).data("origStyle")?this.attr("style",q(this).data("origStyle")):q(this).removeAttr("style"),q
1(this).unwrap().unwrap(),ta.controls.el&&ta.controls.el.remove(),ta.controls.next&&ta.controls.next.remove(),ta.controls.prev&&ta.controls.prev.remove(),ta.pagerEl&&ta.settings.controls&&ta.pagerEl.remove(),q(".bx-caption",this).remove(),ta.controls.autoEl&&ta.controls.autoEl.remove(),clearInterval(ta.interval),ta.settings.responsive&&q(window).unbind("resize",tF))},tl.reloadSlider=function(q){void 0!=q&&(ts=q),tl.destroySlider(),tc()},tc(),this}}(jQuery),/*! 2* FitVids 1.0 3* 4* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 5* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 6* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 7* 8* Date: Thu Sept 01 18:00:00 2011 -0500 9*/function(q){"use strict";q.fn.fitVids=function(ti){var tn={customSelector:null},ts=document.createElement("div"),ta=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return ts.className="fit-vids-style",ts.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>",ta.parentNode.insertBefore(ts,ta),ti&&q.extend(tn,ti),this.each(function(){var ti=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];tn.customSelector&&ti.push(tn.customSelector),q(this).find(ti.join(",")).each(function(){var ti=q(this);if(("embed"!==this.tagName.toLowerCase()||!ti.parent("object").length)&&!ti.parent(".fluid-width-video-wrapper").length){var tn=("object"===this.tagName.toLowerCase()||ti.attr("height")&&!isNaN(parseInt(ti.attr("height"),10))?parseInt(ti.attr("height"),10):ti.height())/(isNaN(parseInt(ti.attr("width"),10))?ti.width():parseInt(ti.attr("width"),10));if(!ti.attr("id")){var ts="fitvid"+Math.floor(999999*Math.random());ti.attr("id",ts)}ti.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*tn+"%"),ti.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(q){q.fn.desktopDropNav=function(ti){var tn=q.extend({openCloseClass:"open-close",openerClass:"opener",slideClass:"slide"},ti);return this.each(function(){q(this).find("ul").length&&q(this).find("ul").each(function(){var ti=q(this).closest("li");ti.addClass(tn.openCloseClass).children("div").addClass(tn.slideClass),ts("<span>",tn.openerClass,ti.children("a"))})});function ts(ti,tn,ts){q(ti).addClass(tn).appendTo(ts)}}}(jQuery),function(q){function ti(ti){this.options=q.extend({dropDown:">li>ul",fitClass:"set-right"},ti),this.init()}ti.prototype={init:function(){this.findElements(),this.detectOffset()},findElements:function(){this.holder=q(this.options.holder),this.dropdown=this.holder.find(this.options.dropDown),this.dropdownParent=this.dropdown.parents("li")},detectOffset:function(){var ti=this,tn=ti.holder.width(),ts=ti.holder.offset().left;ti.dropdownParent.each(function(){Math.round(q(this).offset().left)>=ts&&tn<=Math.round(q(this).offset().left)-ts+ti.dropdown.width()&&q(this).addClass(ti.options.fitClass)})},destroy:function(){this.dropdownParent.removeClass(this.options.fitClass),this.holder.removeData("dropdownFit")}},q.fn.dropdownFit=function(tn){return this.each(function(){q(this).data("dropdownFit",new ti(q.extend(tn,{holder:this})))})}}(jQuery),function(q,ti){"use strict";var tn="ontouchstart"in ti||ti.DocumentTouch&&document instanceof DocumentTouch||/Windows Phone/.test(navigator.userAgent);function ts(ti){this.options=q.extend({fixedActiveClass:"fixed-position",slideBlock:"[data-scroll-block]",positionType:"auto",fixedOnlyIfFits:!0,container:null,animDelay:100,animSpeed:200,extraBottom:0,extraTop:0},ti),this.initStructure(),this.attachEvents()}ts.prototype={initStructure:function(){this.win=q(ti),this.container=q(this.options.container),this.slideBlock=this.container.find(this.options.slideBlock),"auto"===this.options.positionType&&(this.options.positionType=tn?"absolute":"fixed")},attachEvents:function(){var q=this;this.onResize=function(){q.resizeHandler()},this.onScroll=function(){q.scrollHandler()},this.win.on({resize:this.onResize,scroll:this.onScroll}),this.resizeHandler()},recalculateOffsets:function(){var q=this.slideBlock.offset(),ti=this.slideBlock.position(),tn=this.container.offset();this.win.height(),this.data={windowHeight:this.win.height(),windowWidth:this.win.width(),blockPositionLeft:ti.left,blockPositionTop:ti.top,blockOffsetLeft:q.left,blockOffsetTop:q.top,blockHeight:this.slideBlock.innerHeight(),holderOffsetLeft:tn.left,holderOffsetTop:tn.top,holderHeight:this.container.innerHe
9ight()}},isVisible:function(){return this.slideBlock.prop("offsetHeight")},fitsInViewport:function(){return!this.options.fixedOnlyIfFits||!this.data||this.data.blockHeight+this.options.extraTop<=this.data.windowHeight},resizeHandler:function(){!this.destroyed&&this.isVisible()&&(ts.stickyMethods[this.options.positionType].onResize.apply(this,arguments),this.scrollHandler())},scrollHandler:function(){if(!this.destroyed&&this.isVisible()){if(!this.data){this.resizeHandler();return}this.currentScrollTop=this.win.scrollTop(),this.currentScrollLeft=this.win.scrollLeft(),ts.stickyMethods[this.options.positionType].onScroll.apply(this,arguments)}},refresh:function(){this.data&&(this.data.holderHeight=this.container.innerHeight(),this.data.blockHeight=this.slideBlock.innerHeight(),this.scrollHandler())},destroy:function(){this.destroyed=!0,this.slideBlock.removeAttr("style").removeClass(this.options.fixedActiveClass),this.win.off({resize:this.onResize,scroll:this.onScroll})}},ts.stickyMethods={fixed:{onResize:function(){this.slideBlock.removeAttr("style"),this.recalculateOffsets()},onScroll:function(){this.fitsInViewport()&&this.currentScrollTop+this.options.extraTop>this.data.blockOffsetTop?(this.currentScrollTop+this.options.extraTop+this.data.blockHeight>this.data.holderOffsetTop+this.data.holderHeight-this.options.extraBottom?this.slideBlock.css({position:"absolute",top:this.data.blockPositionTop+this.data.holderHeight-this.data.blockHeight-this.options.extraBottom-(this.data.blockOffsetTop-this.data.holderOffsetTop),left:this.data.blockPositionLeft}):this.slideBlock.css({position:"fixed",top:this.options.extraTop,left:this.data.blockOffsetLeft-this.currentScrollLeft}),this.slideBlock.addClass(this.options.fixedActiveClass)):this.slideBlock.removeClass(this.options.fixedActiveClass).removeAttr("style")}},absolute:{onResize:function(){this.slideBlock.removeAttr("style"),this.recalculateOffsets(),this.slideBlock.css({position:"absolute",top:this.data.blockPositionTop,left:this.data.blockPositionLeft}),this.slideBlock.addClass(this.options.fixedActiveClass)},onScroll:function(){var q=this;clearTimeout(this.animTimer),this.animTimer=setTimeout(function(){var ti=q.currentScrollTop+q.options.extraTop,tn=q.data.blockPositionTop-(q.data.blockOffsetTop-q.data.holderOffsetTop),ts=q.data.holderHeight-q.data.blockHeight-q.options.extraBottom,ta=tn+Math.min(ti-q.data.holderOffsetTop,ts),tl=q.fitsInViewport()&&ti>q.data.blockOffsetTop?ta:q.data.blockPositionTop;q.slideBlock.stop().animate({top:tl},q.options.animSpeed)},this.options.animDelay)}}},q.fn.fixedScrollBlock=function(ti){return this.each(function(){var tn=q.extend({},ti,{container:this}),ta=new ts(tn);q.data(this,"FixedScrollBlock",ta)})},ti.FixedScrollBlock=ts}(jQuery,this),function(q){function ti(ti){this.options=q.extend({listDay:".day",listTimeWrapper:".day__time--wrap",listTimeElements:".day__time, .day__time--appt, .day__time--closed",listTimeDay:".day__time",listTimeAppt:".day__time + .day__time--appt",wrapElemTime:'<div class="day__time--wrap">',wrapElemAppt:'<div class="day__appt--wrap">'},ti),this.init()}ti.prototype={init:function(){this.findElements(),this.wrapElements()},findElements:function(){this.list=q(this.options.holder),this.listDay=this.list.find(q(this.options.listDay))},wrapElements:function(){var ti=this;this.listDay.each(function(){var tn=q(this);tn.find(ti.options.listTimeWrapper).length||tn.find(ti.options.listTimeElements).wrapAll(ti.options.wrapElemTime),tn.find(ti.options.listTimeAppt).length&&tn.find(ti.options.listTimeAppt).each(function(){q(this).prev(ti.options.listTimeDay).andSelf().wrapAll(ti.options.wrapElemAppt)})})}},q.fn.hoursListWrapper=function(tn){return this.each(function(){q(this).data("hoursListWrapper",new ti(q.extend(tn,{holder:this})))})}}(jQuery),function(q){function ti(ti){this.options=q.extend({commentClass:".form-input-comments",commonLayoutWrapper:'<div class="contact-form-columns">',inputHolder:".form__group"},ti),this.init()}ti.prototype={init:function(){this.findElements(),this.wrapElements()},findElements:function(){this.holder=q(this.options.holder),this.comments=this.holder.find(this.options.commentClass),this.inputHolder=this.holder.find(this.options.inputHolder)},wrapElements:function(){var q=this;q.comments.length&&(q.inputHolder.wrapAll(q.options.commonLayoutWrapper),q.comments.find("textarea").css({width:"",height:""}))},destroy:function(){this.comments.length&&this.inputHolder.unwrap(this.options.commonLayoutWrapper),this.holder.removeData("layoutContactForm")}},q.fn.layoutContactForm=function(tn){return this.each(function(){void 0===q(this).data("layoutContactForm")&&q(this).data("layoutContactForm",new ti(q.extend(tn,{holder:this})))})}}(jQuery);var mql=window.matchMedia("(orientation: portrait)");function moreNav(){var q=$(".navigation").find("ul"),ti="sublevel-";if(q.length&&q.children(".more").find("ul").parent().is("div")){var tn=q.children(".more").find("ul");tn.parent("div").children().unwrap(),tn.each(function(){var q=$(this),tn=q.parents("ul").length;tn>0&&q.wrap(function(){return'<div class="'+ti+tn+'"></div>'})})}else q.length&&!q.children(".more").find("ul").parent().is("div")&&q.children(".more").find("ul").each(function(){var q=$(this),tn=q.parents("ul").length;tn>0&&q.wrap(function(){return'<div class="'+ti+tn+'"></div>'})});q.children(".more").on("click","> a",function(q){q.preventDefault()})}function navigationSublevelWrap(q,ti){q.each(function(){var q=$(this),tn=q.parents("ul").length;tn>0&&q.wrap(function(){return'<div class="'+ti+tn+'"></div>'})})}if(mql&&mql.addListener(function(q){$(window).trigger("resize")}),!function(q){function ti(ti){this.options=q.extend({place:"",move:"inside",setClass:!1}
9,ti),this.init()}ti.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:q(this.options.holder),place:q(this.options.place)}},setAnchor:function(){this.anchorElem=q("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var q=this,ti={after:function(){q.elements.holder.insertAfter(q.elements.place)},before:function(){q.elements.holder.insertBefore(q.elements.place)},inside:function(){q.elements.place.prepend(q.elements.holder)}};void 0!==ti[this.options.move]?ti[this.options.move]():ti.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){var q=this;q.elements.holder.insertAfter(q.anchorElem).removeClass(q.options.setClass).removeData("moveElement"),q.anchorElem.remove(),tn=[]}},q.fn.moveElement=function(tn){return this.each(function(){ts(this),q(this).data("moveElement",new ti(q.extend(tn,{holder:this})))})};var tn=[];function ts(ti){tn.push(ti),q.each(tn,function(ti,ts){ti===tn.length-1&&q(ts).attr("data-moved-id",ti+1)})}}(jQuery),!function(q){var ti=/Windows Phone/.test(navigator.userAgent)||"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch;function tn(ti){this.options=q.extend({heightProp:"height",recalcOnPageScroll:!1,setScrollTo:"",extraSpacing:0},ti),this.init()}tn.prototype={init:function(){for(var q,ti=this,tn=["height","max-height","maxHeight"],ts=0;ts<tn.length;ts++)tn[ts]===ti.options.heightProp&&(q=!0);this.options.holder&&void 0!==q&&(this.findElements(),this.attachEvents(),this.setHeight())},findElements:function(){this.scrollAreaWrapper=q(this.options.holder),this.scrollArea=this.options.setScrollTo?this.scrollAreaWrapper.find(this.options.setScrollTo):this.scrollAreaWrapper},attachEvents:function(){if(!this.destroyed){var tn=this,ts=2e3,ta=null;this.onResize=function(){tn.setHeight()},this.onScroll=function(){clearTimeout(ta),ta=setTimeout(function(){tn.setHeight()},ts)},ti?(q(window).on("orientationchange",this.onResize),q(window).on("touchend",this.onScroll)):(q(window).on("resize",this.onResize),this.options.recalcOnPageScroll&&q(window).on("scroll",this.onScroll))}},calcHeight:function(){var ti=q(window),tn=Math.round(this.scrollAreaWrapper.offset().top),ts=(window.innerHeight,window.innerHeight),ta=ti.scrollTop();this.scrollAreaWrapperHeight=0,tn>=ta?this.scrollAreaWrapperHeight=ts-(tn-ta)-this.options.extraSpacing:this.scrollAreaWrapperHeight=ts-(tn-this.options.extraSpacing)},setHeight:function(){this.destroyed||(this.calcHeight(),this.scrollArea.css(this.options.heightProp,this.scrollAreaWrapperHeight),this.scrollArea.css("overflow","auto"))},destroy:function(){var tn=this;tn.destroyed=!0,ti?(q(window).off("orientationchange",this.onResize),q(window).off("touchend",this.onScroll)):(q(window).off("resize",this.onResize),this.options.recalcOnPageScroll&&q(window).off("scroll",this.onScroll)),this.scrollArea.css(this.options.heightProp,""),this.scrollArea.css("overflow",""),this.scrollAreaWrapper.removeData("scrollArea")}},q.fn.scrollArea=function(ti){return this.each(function(){q(this).data("scrollArea",new tn(q.extend(ti,{holder:this})))})}}(jQuery),!function(q){q.fn.sameHeight=function(ts){var tl=q.extend({skipClass:"same-height-ignore",leftEdgeClass:"same-height-left",rightEdgeClass:"same-height-right",elements:">*",flexible:!1,multiLine:!1,useMinHeight:!1,biggestHeight:!1},ts);return this.each(function(){var ts,th,td=q(this),tc=td.find(tl.elements).not("."+tl.skipClass);if(tc.length){tu();var tp=function(){th||(th=!0,tu(),clearTimeout(ts),ts=setTimeout(function(){tu(),setTimeout(function(){th=!1},10)},100))};tl.flexible&&q(window).bind("resize orientationchange fontresize",tp),q(window).bind("load",tp)}function tu(){tc.css(tl.useMinHeight&&ti?"minHeight":"height",""),tl.multiLine?tn(tc,tl):ta(tc,td,tl)}})};var ti=void 0!==document.documentElement.style.maxHeight;function tn(tn,tl){var th,td=q(),tc=0,tp=tn.eq(0).offset().top;tn.each(function(ti){var tn=q(this);tn.offset().top===tp?td=td.add(this):(th=ts(td),tc=Math.max(tc,ta(td,th,tl)),td=tn,tp=tn.offset().top)}),td.length&&(th=ts(td),tc=Math.max(tc,ta(td,th,tl))),tl.biggestHeight&&tn.css(tl.useMinHeight&&ti?"minHeight":"height",tc)}function ts(ti){var tn=0;return ti.each(function(){tn=Math.max(tn,q(this).outerHeight())}),tn}function ta(tn,ts,ta){var tl,th="number"==typeof ts?ts:ts.height();return tn.removeClass(ta.leftEdgeClass).removeClass(ta.rightEdgeClass).each(function(tn){var td=q(this),tc=0,tp="border-box"===td.css("boxSizing")||"border-box"===td.css("-moz-box-sizing")||"border-box"===td.css("-webkit-box-sizing");"number"!=typeof ts&&td.parents().each(function(){var ti=q(this);if(ts.is(this))return!1;tc+=ti.outerHeight()-ti.height()}),(tl=th-tc-(tp?0:td.outerHeight()-td.height()))>0&&td.css(ta.useMinHeight&&ti?"minHeight":"height",tl)}),tn.filter(":first").addClass(ta.leftEdgeClass),tn.filter(":last").addClass(ta.rightEdgeClass),tl}}(jQuery),jQuery.onFontResize=function(q){var ti={trigger:function(ti){q(window).trigger("fontresize",[ti])}};return q(function(){var tn="font-resize-frame-"+Math.floor(1e3*Math.random()),ts=q("<iframe>").attr("id",tn).addClass("font-resize-helper");if(ts.css({width:"100em",height:"10px",position:"absolute",borderWidth:0,top:"-9999px",left:"-9999px"}).appendTo("body"),window.attachEvent&&!window.addEventListener)ts.bind("resize",function(){q.onF
9ontResize.trigger(ts[0].offsetWidth/100)});else{var ta=ts[0].contentWindow.document;ta.open(),ta.write('<script>window.onload = function(){var em = parent.jQuery("#'+tn+'")[0];window.onresize = function(){if(parent.jQuery.onFontResize){parent.jQuery.onFontResize.trigger(em.offsetWidth / 100);}}};</script>'),ta.close()}ti.initialSize=ts[0].offsetWidth/100}),ti}(jQuery),!function(q){function ti(ti){this.options=q.extend({takeSizeFrom:".element",takeSize:"height",spacingProp:"padding-top",flexible:!0},ti),this.init()}ti.prototype={init:function(){for(var q,ti=this,tn=["left","right","top","bottom","margin","margin-top","margin-bottom","margin-left","margin-right","padding","padding-top","padding-bottom","padding-left","padding-right"],ts=0;ts<tn.length;ts++)tn[ts]===ti.options.spacingProp&&(q=!0);if(this.options.holder&&void 0!==q&&(this.findElements(),this.setElemSpacing(),this.options.flexible))return ti.attachEvents()},findElements:function(){this.elements={holder:q(this.options.holder),takeSizeFrom:q(this.options.takeSizeFrom)}},attachEvents:function(){this.bindHandlers(["onWindowResize"]),q(window).bind("resize orientationchange",this.onWindowResize)},onWindowResize:function(){this.destroyed||this.setElemSpacing()},bindHandlers:function(ti){var tn=this;q.each(ti,function(q,ti){var ts=tn[ti];tn[ti]=function(){return ts.apply(tn,arguments)}})},setElemSpacing:function(){"width"===this.options.takeSize?this.elements.holder.css(this.options.spacingProp,this.elements.takeSizeFrom.outerWidth()):"height"===this.options.takeSize&&this.elements.holder.css(this.options.spacingProp,this.elements.takeSizeFrom.outerHeight())},destroy:function(){var ti=this;ti.options.flexible&&(ti.destroyed=!0,q(window).unbind("resize orientationchange",ti.onWindowResize)),ti.elements.holder.css(this.options.spacingProp,""),ti.elements.holder.removeData("setSpacing")}},q.fn.setSpacing=function(tn){return this.each(function(){q(this).data("setSpacing",new ti(q.extend(tn,{holder:this})))})}}(jQuery),!function(q){q.fn.slideAccordion=function(ts){var ta=q.extend({addClassBeforeAnimation:!1,allowClickWhenExpanded:!1,activeClass:"active",opener:".opener",slider:".slide",animSpeed:300,collapsible:!0,closeInactive:!1,event:"click"},ts);return this.each(function(){q(this).find(":has("+ta.slider+")").each(function(){var ts=q(this),tl=ts.find(ta.opener),th=ts.find(ta.slider);tl.bind(ta.event,function(q){if(!th.is(":animated")){if(ts.hasClass(ta.activeClass)){if(ta.allowClickWhenExpanded)return;
9ta.collapsible&&th.slideUp(ta.animSpeed,function(){tn(th),ts.removeClass(ta.activeClass)})}else{var tl=ts.siblings("."+ta.activeClass),td=tl.find(ta.slider);ts.addClass(ta.activeClass),ti(th).hide().slideDown(ta.animSpeed),ta.closeInactive&&td.slideUp(ta.animSpeed,function(){tl.removeClass(ta.activeClass),tn(td)})}}q.preventDefault()}),ts.hasClass(ta.activeClass)?ti(th):tn(th)})})};var ti=function(q){return q.css({position:"",top:"",left:"",width:""})},tn=function(q){return q.show().css({position:"absolute",top:-9999,left:-9999,width:q.width()})}}(jQuery),ResponsiveHelper=function(q){var ti,tn=[],ts=q(window),ta=!1;function tl(){var ta=ts.width();ta!==ti&&(ti=ta,q.each(tn,function(ti,tn){q.each(tn.data,function(q,ti){ti.currentActive&&!th(ti.range[0],ti.range[1])&&(ti.currentActive=!1,"function"==typeof ti.disableCallback&&ti.disableCallback())}),q.each(tn.data,function(q,ti){!ti.currentActive&&th(ti.range[0],ti.range[1])&&(ti.currentActive=!0,"function"==typeof ti.enableCallback&&ti.enableCallback())})}))}function th(q,ti){var tn="";return q>0&&(tn+="(min-width: "+q+"px)"),ti<1/0&&(tn+=(tn?" and ":"")+"(max-width: "+ti+"px)"),td(tn,q,ti)}function td(q,tn,ts){return window.matchMedia&&ta?matchMedia(q).matches:window.styleMedia?styleMedia.matchMedium(q):window.media?media.matchMedium(q):ti>=tn&&ti<=ts}function tc(q){var ti=q.split("..");return[parseInt(ti[0],10)||-1/0,parseInt(ti[1],10)||1/0].sort(function(q,ti){return q-ti})}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?ta=!0:window.matchMedia.toString().indexOf("native")>-1&&(ta=!0)),ts.bind("load resize orientationchange",tl),{addRange:function(ts){var ta={data:{}};q.each(ts,function(q,ti){ta.data[q]={range:tc(q),enableCallback:ti.on,disableCallback:ti.off}}),tn.push(ta),ti=null,tl()}}}(jQuery),!function(q,ti,tn,ts){"use strict";var ta=tn("html"),tl=tn(q),th=tn(ti),td=tn.fancybox=function(){td.open.apply(this,arguments)},tc=navigator.userAgent.match(/msie/i),tp=null,tu=ts!==ti.createTouch,tf=function(q){return q&&q.hasOwnProperty&&q instanceof tn},tm=function(q){return q&&"string"===tn.type(q)},tg=function(q){return tm(q)&&q.indexOf("%")>0},tv=function(q){return q&&!(q.style.overflow&&"hidden"===q.style.overflow)&&(q.clientWidth&&q.scrollWidth>q.clientWidth||q.clientHeight&&q.scrollHeight>q.clientHeight)},ty=function(q,ti){var tn=parseInt(q,10)||0;return ti&&tg(q)&&(tn=td.getViewport()[ti]/100*tn),Math.ceil(tn)},t_=function(q,ti){return ty(q,ti)+"px"};tn.extend(td,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!tu,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(tc?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:tn.noop,beforeLoad:tn.noop,afterLoad:tn.noop,beforeShow:tn.noop,afterShow:tn.noop,beforeChange:tn.noop,beforeClose:tn.noop,afterClose:tn.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
9skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(q,ti){if(q&&(tn.isPlainObject(ti)||(ti={}),!1!==td.close(!0)))return tn.isArray(q)||(q=tf(q)?tn(q).get():[q]),tn.each(q,function(ta,tl){var th,tc,tp,tu,tg,tv,ty,t_={};"object"===tn.type(tl)&&(tl.nodeType&&(tl=tn(tl)),tf(tl)?(t_={href:tl.data("fancybox-href")||tl.attr("href"),title:tl.data("fancybox-title")||tl.attr("title"),isDom:!0,element:tl},tn.metadata&&tn.extend(!0,t_,tl.metadata())):t_=tl),th=ti.href||t_.href||(tm(tl)?tl:null),tc=ts!==ti.title?ti.title:t_.title||"",(tu=(tp=ti.content||t_.content)?"html":ti.type||t_.type)||!t_.isDom||(tu=tl.data("fancybox-type"))||(tu=(tg=tl.prop("class").match(/fancybox\.(\w+)/))?tg[1]:null),tm(th)&&(!tu&&(td.isImage(th)?tu="image":td.isSWF(th)?tu="swf":"#"===th.charAt(0)?tu="inline":tm(tl)&&(tu="html",tp=tl)),"ajax"===tu&&(th=(tv=th.split(/\s+/,2)).shift(),ty=tv.shift())),tp||("inline"===tu?th?tp=tn(tm(th)?th.replace(/.*(?=#[^\s]+$)/,""):th):t_.isDom&&(tp=tl):"html"===tu?tp=th:tu||th||!t_.isDom||(tu="inline",tp=tl)),tn.extend(t_,{href:th,type:tu,content:tp,title:tc,selector:ty}),q[ta]=t_}),td.opts=tn.extend(!0,{},td.defaults,ti),ts!==ti.keys&&(td.opts.keys=!!ti.keys&&tn.extend({},td.defaults.keys,ti.keys)),td.group=q,td._start(td.opts.index)},cancel:function(){var q=td.coming;q&&!1!==td.trigger("onCancel")&&(td.hideLoading(),td.ajaxLoad&&td.ajaxLoad.abort(),td.ajaxLoad=null,td.imgPreload&&(td.imgPreload.onload=td.imgPreload.onerror=null),q.wrap&&q.wrap.stop(!0,!0).trigger("onReset").remove(),td.coming=null,td.current||td._afterZoomOut(q))},close:function(q){td.cancel(),!1!==td.trigger("beforeClose")&&(td.unbindEvents(),td.isActive&&(td.isOpen&&!0!==q?(td.isOpen=td.isOpened=!1,td.isClosing=!0,tn(".fancybox-item, .fancybox-nav").remove(),td.wrap.stop(!0,!0).removeClass("fancybox-opened"),td.transitions[td.current.closeMethod]()):(tn(".fancybox-wrap").stop(!0).trigger("onReset").remove(),td._afterZoomOut())))},play:function(q){var ti=function(){clearTimeout(td.player.timer)},tn=function(){ti(),td.current&&td.player.isActive&&(td.player.timer=setTimeout(td.next,td.current.playSpeed))},ts=function(){ti(),th.unbind(".player"),td.player.isActive=!1,td.trigger("onPlayEnd")},ta=function(){td.current&&(td.current.loop||td.current.index<td.group.length-1)&&(td.player.isActive=!0,th.bind({"onCancel.player beforeClose.player":ts,"onUpdate.player":tn,"beforeLoad.player":ti}),tn(),td.trigger("onPlayStart"))};!0!==q&&(td.player.isActive||!1===q)?ts():ta()},next:function(q){var ti=td.current;ti&&(tm(q)||(q=ti.direction.next),td.jumpto(ti.index+1,q,"next"))},prev:function(q){var ti=td.current;ti&&(tm(q)||(q=ti.direction.prev),td.jumpto(ti.index-1,q,"prev"))},jumpto:function(q,ti,tn){var ta=td.current;ta&&(q=ty(q),td.direction=ti||ta.direction[q>=ta.index?"next":"prev"],td.router=tn||"jumpto",ta.loop&&(q<0&&(q=ta.group.length+q%ta.group.length),q%=ta.group.length),ts!==ta.group[q]&&(td.cancel(),td._start(q)))},reposition:function(q,ti){var ts,ta=td.current,tl=ta?ta.wrap:null;tl&&(ts=td._getPosition(ti),q&&"scroll"===q.type?(delete ts.position,tl.stop(!0,!0).animate(ts,200)):(tl.css(ts),ta.pos=tn.extend({},ta.dim,ts)))},update:function(q){var ti=q&&q.type,tn=!ti||"orientationchange"===ti;tn&&(clearTimeout(tp),tp=null),td.isOpen&&!tp&&(tp=setTimeout(function(){var ts=td.current;ts&&!td.isClosing&&(td.wrap.removeClass("fancybox-tmp"),(tn||"load"===ti||"resize"===ti&&ts.autoResize)&&td._setDimension(),"scroll"===ti&&ts.canShrink||td.reposition(q),td.trigger("onUpdate"),tp=null)},tn&&!tu?0:300))},toggle:function(q){td.isOpen&&(td.current.fitToView="boolean"===tn.type(q)?q:!td.current.fitToView,tu&&(td.wrap.removeAttr("style").addClass("fancybox-tmp"),td.trigger("onUpdate")),td.update())},hideLoading:function(){th.unbind(".loading"),tn("#fancybox-loading").remove()},showLoading:function(){var q,ti;td.hideLoading(),q=tn('<div id="fancybox-loading"><div></div></div>').click(td.cancel).appendTo("body"),th.bind("keydown.loading",function(q){27===(q.which||q.keyCode)&&(q.preventDefault(),td.
9cancel())}),td.defaults.fixed||(ti=td.getViewport(),q.css({position:"absolute",top:.5*ti.h+ti.y,left:.5*ti.w+ti.x}))},getViewport:function(){var ti=td.current&&td.current.locked||!1,tn={x:tl.scrollLeft(),y:tl.scrollTop()};return ti?(tn.w=ti[0].clientWidth,tn.h=ti[0].clientHeight):(tn.w=tu&&q.innerWidth?q.innerWidth:tl.width(),tn.h=tu&&q.innerHeight?q.innerHeight:tl.height()),tn},unbindEvents:function(){td.wrap&&tf(td.wrap)&&td.wrap.unbind(".fb"),th.unbind(".fb"),tl.unbind(".fb")},bindEvents:function(){var q,ti=td.current;ti&&(tl.bind("orientationchange.fb"+(tu?"":" resize.fb")+(ti.autoCenter&&!ti.locked?" scroll.fb":""),td.update),(q=ti.keys)&&th.bind("keydown.fb",function(ta){var tl=ta.which||ta.keyCode,th=ta.target||ta.srcElement;if(27===tl&&td.coming)return!1;ta.ctrlKey||ta.altKey||ta.shiftKey||ta.metaKey||th&&(th.type||tn(th).is("[contenteditable]"))||tn.each(q,function(q,th){return ti.group.length>1&&ts!==th[tl]?(td[q](th[tl]),ta.preventDefault(),!1):tn.inArray(tl,th)>-1?(td[q](),ta.preventDefault(),!1):void 0})}),tn.fn.mousewheel&&ti.mouseWheel&&td.wrap.bind("mousewheel.fb",function(q,ts,ta,tl){for(var th=tn(q.target||null),tc=!1;th.length&&!(tc||th.is(".fancybox-skin")||th.is(".fancybox-wrap"));)tc=tv(th[0]),th=tn(th).parent();0===ts||tc||!(td.group.length>1)||ti.canShrink||(tl>0||ta>0?td.prev(tl>0?"down":"left"):(tl<0||ta<0)&&td.next(tl<0?"up":"right"),q.preventDefault())}))},trigger:function(q,ti){var ts,ta=ti||td.coming||td.current;if(ta){if(tn.isFunction(ta[q])&&(ts=ta[q].apply(ta,Array.prototype.slice.call(arguments,1))),!1===ts)return!1;ta.helpers&&tn.each(ta.helpers,function(ti,ts){ts&&td.helpers[ti]&&tn.isFunction(td.helpers[ti][q])&&td.helpers[ti][q](tn.extend(!0,{},td.helpers[ti].defaults,ts),ta)}),th.trigger(q)}},isImage:function(q){return tm(q)&&q.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(q){return tm(q)&&q.match(/\.(swf)((\?|#).*)?$/i)},_start:function(q){var ti,ts,ta,tl,th,tc={};if(q=ty(q),!(ti=td.group[q]||null))return!1;if(tl=(tc=tn.extend(!0,{},td.opts,ti)).margin,th=tc.padding,"number"===tn.type(tl)&&(tc.margin=[tl,tl,tl,tl]),"number"===tn.type(th)&&(tc.padding=[th,th,th,th]),tc.modal&&tn.extend(!0,tc,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),tc.autoSize&&(tc.autoWidth=tc.autoHeight=!0),"auto"===tc.width&&(tc.autoWidth=!0),"auto"===tc.height&&(tc.autoHeight=!0),tc.group=td.group,tc.index=q,td.coming=tc,!1===td.trigger("beforeLoad")){td.coming=null;return}if(ta=tc.type,ts=tc.href,!ta)return td.coming=null,!!td.current&&!!td.router&&"jumpto"!==td.router&&(td.current.index=q,td[td.router](td.direction));if(td.isActive=!0,("image"===ta||"swf"===ta)&&(tc.autoHeight=tc.autoWidth=!1,tc.scrolling="visible"),"image"===ta&&(tc.aspectRatio=!0),"iframe"===ta&&tu&&(tc.scrolling="scroll"),tc.wrap=tn(tc.tpl.wrap).addClass("fancybox-"+(tu?"mobile":"desktop")+" fancybox-type-"+ta+" fancybox-tmp "+tc.wrapCSS).appendTo(tc.parent||"body"),tn.extend(tc,{skin:tn(".fancybox-skin",tc.wrap),outer:tn(".fancybox-outer",tc.wrap),inner:tn(".fancybox-inner",tc.wrap)}),tn.each(["Top","Right","Bottom","Left"],function(q,ti){tc.skin.css("padding"+ti,t_(tc.padding[q]))}),td.trigger("onReady"),"inline"===ta||"html"===ta){if(!tc.content||!tc.content.length)return td._error("content")}else if(!ts)return td._error("href");"image"===ta?td._loadImage():"ajax"===ta?td._loadAjax():"iframe"===ta?td._loadIframe():td._afterLoad()},_error:function(q){tn.extend(td.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:q,content:td.coming.tpl.error}),td._afterLoad()},_loadImage:function(){var q=td.imgPreload=new Image;q.onload=function(){this.onload=this.onerror=null,td.coming.width=this.width/td.opts.pixelRatio,td.coming.height=this.height/td.opts.pixelRatio,td._afterLoad()},q.onerror=function(){this.onload=this.onerror=null,td._error("image")},q.src=td.coming.href,!0!==q.complete&&td.showLoading()},_loadAjax:function(){var q=td.coming;td.showLoading(),td.ajaxLoad=tn.ajax(tn.extend({},q.ajax,{url:q.href,error:function(q,ti){td.coming&&"abort"!==ti?td._error("ajax",q):td.hideLoading()},success:function(ti,tn){"success"===tn&&(q.content=ti,td._afterLoad())}}))},_loadIframe:function(){var q=td.coming,ti=tn(q.tpl.iframe.replace(/\{rnd\}
9/g,new Date().getTime())).attr("scrolling",tu?"auto":q.iframe.scrolling).attr("src",q.href);tn(q.wrap).bind("onReset",function(){try{tn(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(q){}}),q.iframe.preload&&(td.showLoading(),ti.one("load",function(){tn(this).data("ready",1),tu||tn(this).bind("load.fb",td.update),tn(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),td._afterLoad()})),q.content=ti.appendTo(q.inner),q.iframe.preload||td._afterLoad()},_preloadImages:function(){var q,ti,tn=td.group,ts=td.current,ta=tn.length,tl=ts.preload?Math.min(ts.preload,ta-1):0;for(ti=1;ti<=tl;ti+=1)"image"===(q=tn[(ts.index+ti)%ta]).type&&q.href&&(new Image().src=q.href)},_afterLoad:function(){var q,ti,ts,ta,tl,th,tc=td.coming,tp=td.current,tu="fancybox-placeholder";if(td.hideLoading(),tc&&!1!==td.isActive){if(!1===td.trigger("afterLoad",tc,tp)){tc.wrap.stop(!0).trigger("onReset").remove(),td.coming=null;return}switch(tp&&(td.trigger("beforeChange",tp),tp.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),td.unbindEvents(),q=tc,ti=tc.content,ts=tc.type,ta=tc.scrolling,tn.extend(td,{wrap:q.wrap,skin:q.skin,outer:q.outer,inner:q.inner,current:q,previous:tp}),tl=q.href,ts){case"inline":case"ajax":case"html":q.selector?ti=tn("<div>").html(ti).find(q.selector):tf(ti)&&(ti.data(tu)||ti.data(tu,tn('<div class="'+tu+'"></div>').insertAfter(ti).hide()),ti=ti.show().detach(),q.wrap.bind("onReset",function(){tn(this).find(ti).length&&ti.hide().replaceAll(ti.data(tu)).data(tu,!1)}));break;case"image":ti=q.tpl.image.replace("{href}",tl);break;case"swf":ti='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+tl+'"></param>',th="",tn.each(q.swf,function(q,tn){ti+='<param name="'+q+'" value="'+tn+'"></param>',th+=" "+q+'="'+tn+'"'}),ti+='<embed src="'+tl+'" type="application/x-shockwave-flash" width="100%" height="100%"'+th+"></embed></object>"}tf(ti)&&ti.parent().is(q.inner)||q.inner.append(ti),td.trigger("beforeShow"),q.inner.css("overflow","yes"===ta?"scroll":"no"===ta?"hidden":ta),td._setDimension(),td.reposition(),td.isOpen=!1,td.coming=null,td.bindEvents(),td.isOpened?tp.prevMethod&&td.transitions[tp.prevMethod]():tn(".fancybox-wrap").not(q.wrap).stop(!0).trigger("onReset").remove(),td.transitions[td.isOpened?q.nextMethod:q.openMethod](),td._preloadImages()}},_setDimension:function(){var q,ti,ts,ta,tl,th,tc,tp,tu,tf,tm,tv,tb,tw,tx,tT=td.getViewport(),tL=0,tC=!1,tS=!1,tP=td.wrap,tk=td.skin,tE=td.inner,tz=td.current,tM=tz.width,tI=tz.height,tO=tz.minWidth,tA=tz.minHeight,tB=tz.maxWidth,t$=tz.maxHeight,tj=tz.scrolling,tD=tz.scrollOutside?tz.scrollbarWidth:0,tH=tz.margin,tN=ty(tH[1]+tH[3]),tW=ty(tH[0]+tH[2]);if(tP.add(tk).add(tE).width("auto").height("auto").removeClass("fancybox-tmp"),q=ty(tk.outerWidth(!0)-tk.width()),ti=ty(tk.outerHeight(!0)-tk.height()),ts=tN+q,ta=tW+ti,tl=tg(tM)?(tT.w-ts)*ty(tM)/100:tM,th=tg(tI)?(tT.h-ta)*ty(tI)/100:tI,"iframe"===tz.type){if(tw=tz.content,tz.autoHeight&&1===tw.data("ready"))try{tw[0].contentWindow.document.location&&(tE.width(tl).height(9999),tx=tw.contents().find("body"),tD&&tx.css("overflow-x","hidden"),th=tx.outerHeight(!0))}catch(q){}}else(tz.autoWidth||tz.autoHeight)&&(tE.addClass("fancybox-tmp"),tz.autoWidth||tE.width(tl),tz.autoHeight||tE.height(th),tz.autoWidth&&(tl=tE.width()),tz.autoHeight&&(th=tE.height()),tE.removeClass("fancybox-tmp"));if(tM=ty(tl),tI=ty(th),tu=tl/th,tO=ty(tg(tO)?ty(tO,"w")-ts:tO),tB=ty(tg(tB)?ty(tB,"w")-ts:tB),tA=ty(tg(tA)?ty(tA,"h")-ta:tA),t$=ty(tg(t$)?ty(t$,"h")-ta:t$),tc=tB,tp=t$,tz.fitToView&&(tB=Math.min(tT.w-ts,tB),t$=Math.min(tT.h-ta,t$)),tv=tT.w-tN,tb=tT.h-tW,tz.aspectRatio?(tM>tB&&(tI=ty((tM=tB)/tu)),tI>t$&&(tM=ty((tI=t$)*tu)),tM<tO&&(tI=ty((tM=tO)/tu)),tI<tA&&(tM=ty((tI=tA)*tu))):(tM=Math.max(tO,Math.min(tM,tB)),tz.autoHeight&&"iframe"!==tz.type&&(tE.width(tM),tI=tE.height()),tI=Math.max(tA,Math.min(tI,t$))),tz.fitToView){if(tE.width(tM).height(tI),tP.width(tM+q),tf=tP.width(),tm=tP.height(),tz.aspectRatio)for(;(tf>tv||tm>tb)&&tM>tO&&tI>tA&&!(tL++>19);)(tM=ty((tI=Math.max(tA,Math.min(t$,tI-10)))*tu))<tO&&(tI=ty((tM=tO)/tu)),tM>tB&&(tI=ty((tM=tB)/tu)),tE.width(tM).height(tI),tP.width(tM+q),tf=tP.width(),tm=tP.height();else tM=Math.max(tO,Math.min(tM,tM-(tf-tv))),tI=Math.max(tA,Math.min(tI,tI-(tm-tb)))}tD&&"auto"===tj&&tI<th&&tM+q+tD<tv&&(tM+=tD),tE.width(tM).height(tI),tP.width(tM+q),tf=tP.width(),tm=tP.height(),tC=(tf>tv||tm>tb)&&tM>tO&&tI>tA,tS=tz.aspectRatio?tM<tc&&tI<tp&&tM<tl&&tI<th:(tM<tc||tI<tp)&&(tM<tl||tI<th),tn.extend(tz,{dim:{width:t_(tf),height:t_(tm)},origWidth:tl,origHeight:th,canShrink:tC,canExpand:tS,wPadding:q,hPadding:ti,wrapSpace:tm-tk.outerHeight(!0),skinSpace:tk.height()-tI}),!tw&&tz.autoHeight&&tI>tA&&tI<t$&&!tS&&tE.height("auto")},_getPosition:function(q){var ti=td.current,tn=td.getViewport(),ts=ti.margin,ta=td.wrap.width()+ts[1]+ts[3],tl=td.wrap.height()+ts[0]+ts[2],th={position:"absolute",top:ts[0],left:ts[3]};return ti.autoCenter&&ti.fixed&&!q&&tl<=tn.h&&ta<=tn.w?th.position="fixed":ti.locked||(th.top+=tn.y,th.left+=tn.x),th.top=t_(Math.max(th.top,th.top+(tn.h-tl)*ti.topRatio)),th.left=t_(Math.max(th.left,th.left+(tn.w-ta)*ti.leftRatio)),th},_afterZoomIn:function(){var q=td.current;q&&(td.isOpen=td.isOpened=!0,td.wrap.css("overflow","visible").addClass("fancybox-opened"),td.update(),(q.closeClick||q.nextClick&&td.group.length>1)&&td.inner.css("cursor","pointer").bind("click.fb",function(ti){tn(ti.target).is("a")||tn(ti.target).parent().is("a")||(ti.preventDefault(),td[q.closeClick?"close"
9:"next"]())}),q.closeBtn&&tn(q.tpl.closeBtn).appendTo(td.skin).bind("click.fb",function(q){q.preventDefault(),td.close()}),q.arrows&&td.group.length>1&&((q.loop||q.index>0)&&tn(q.tpl.prev).appendTo(td.outer).bind("click.fb",td.prev),(q.loop||q.index<td.group.length-1)&&tn(q.tpl.next).appendTo(td.outer).bind("click.fb",td.next)),td.trigger("afterShow"),q.loop||q.index!==q.group.length-1?td.opts.autoPlay&&!td.player.isActive&&(td.opts.autoPlay=!1,td.play()):td.play(!1))},_afterZoomOut:function(q){q=q||td.current,tn(".fancybox-wrap").trigger("onReset").remove(),tn.extend(td,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),td.trigger("afterClose",q)}}),td.transitions={getOrigPosition:function(){var q=td.current,ti=q.element,tn=q.orig,ts={},ta=50,tl=50,th=q.hPadding,tc=q.wPadding,tp=td.getViewport();return!tn&&q.isDom&&ti.is(":visible")&&!(tn=ti.find("img:first")).length&&(tn=ti),tf(tn)?(ts=tn.offset(),tn.is("img")&&(ta=tn.outerWidth(),tl=tn.outerHeight())):(ts.top=tp.y+(tp.h-tl)*q.topRatio,ts.left=tp.x+(tp.w-ta)*q.leftRatio),("fixed"===td.wrap.css("position")||q.locked)&&(ts.top-=tp.y,ts.left-=tp.x),ts={top:t_(ts.top-th*q.topRatio),left:t_(ts.left-tc*q.leftRatio),width:t_(ta+tc),height:t_(tl+th)}},step:function(q,ti){var tn,ts,ta=ti.prop,tl=td.current,th=tl.wrapSpace,tc=tl.skinSpace;("width"===ta||"height"===ta)&&(tn=ti.end===ti.start?1:(q-ti.start)/(ti.end-ti.start),td.isClosing&&(tn=1-tn),ts=q-("width"===ta?tl.wPadding:tl.hPadding),td.skin[ta](ty("width"===ta?ts:ts-th*tn)),td.inner[ta](ty("width"===ta?ts:ts-th*tn-tc*tn)))},zoomIn:function(){var q=td.current,ti=q.pos,ts=q.openEffect,ta="elastic"===ts,tl=tn.extend({opacity:1},ti);delete tl.position,ta?(ti=this.getOrigPosition(),q.openOpacity&&(ti.opacity=.1)):"fade"===ts&&(ti.opacity=.1),td.wrap.css(ti).animate(tl,{duration:"none"===ts?0:q.openSpeed,easing:q.openEasing,step:ta?this.step:null,complete:td._afterZoomIn})},zoomOut:function(){var q=td.current,ti=q.closeEffect,tn="elastic"===ti,ts={opacity:.1};tn&&(ts=this.getOrigPosition(),q.closeOpacity&&(ts.opacity=.1)),td.wrap.animate(ts,{duration:"none"===ti?0:q.closeSpeed,easing:q.closeEasing,step:tn?this.step:null,complete:td._afterZoomOut})},changeIn:function(){var q,ti=td.current,tn=ti.nextEffect,ts=ti.pos,ta={opacity:1},tl=td.direction,th=200;ts.opacity=.1,"elastic"===tn&&(q="down"===tl||"up"===tl?"top":"left","down"===tl||"right"===tl?(ts[q]=t_(ty(ts[q])-th),ta[q]="+="+th+"px"):(ts[q]=t_(ty(ts[q])+th),ta[q]="-="+th+"px")),"none"===tn?td._afterZoomIn():td.wrap.css(ts).animate(ta,{duration:ti.nextSpeed,easing:ti.nextEasing,complete:td._afterZoomIn})},changeOut:function(){var q=td.previous,ti=q.prevEffect,ts={opacity:.1},ta=td.direction,tl=200;"elastic"===ti&&(ts["down"===ta||"up"===ta?"top":"left"]=("up"===ta||"left"===ta?"-":"+")+"="+tl+"px"),q.wrap.animate(ts,{duration:"none"===ti?0:q.prevSpeed,easing:q.prevEasing,complete:function(){tn(this).trigger("onReset").remove()}})}},td.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!tu,fixed:!0},overlay:null,fixed:!1,el:tn("html"),create:function(q){q=tn.extend({},this.defaults,q),this.overlay&&this.close(),this.overlay=tn('<div class="fancybox-overlay"></div>').appendTo(td.coming?td.coming.parent:q.parent),this.fixed=!1,q.fixed&&td.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(q){var ti=this;q=tn.extend({},this.defaults,q),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(q),this.fixed||(tl.bind("resize.overlay",tn.proxy(this.update,this)),this.update()),q.closeClick&&this.overlay.bind("click.overlay",function(q){if(tn(q.target).hasClass("fancybox-overlay"))return td.isActive?td.close():ti.close(),!1}),this.overlay.css(q.css).show()},close:function(){var q,ti;tl.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(tn(".fancybox-margin").removeClass("fancybox-margin"),q=tl.scrollTop(),ti=tl.scrollLeft(),this.el.removeClass("fancybox-lock"),tl.scrollTop(q).scrollLeft(ti)),tn(".fancybox-overlay").remove().hide(),tn.extend(this,{overlay:null,fixed:!1})},update:function(){var q,tn="100%";this.overlay.width(tn).height("100%"),tc?(q=Math.max(ti.documentElement.offsetWidth,ti.body.offsetWidth),th.width()>q&&(tn=th.width())):th.width()>tl.width()&&(tn=th.width()),this.overlay.width(tn).height(th.height())},onReady:function(q,ti){var ts=this.overlay;tn(".fancybox-overlay").stop(!0,!0),ts||this.create(q),q.locked&&this.fixed&&ti.fixed&&(ts||(this.margin=th.height()>tl.height()&&tn("html").css("margin-right").replace("px","")),ti.locked=this.overlay.append(ti.wrap),ti.fixed=!1),!0===q.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(q,ti){var ts,ta;ti.locked&&(!1!==this.margin&&(tn("*").filter(function(){return"fixed"===tn(this).css("position")&&!tn(this).hasClass("fancybox-overlay")&&!tn(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),ts=tl.scrollTop(),ta=tl.scrollLeft(),this.el.addClass("fancybox-lock"),tl.scrollTop(ts).scrollLeft(ta)),this.open(q)}
9,onUpdate:function(){this.fixed||this.update()},afterClose:function(q){this.overlay&&!td.coming&&this.overlay.fadeOut(q.speedOut,tn.proxy(this.close,this))}},td.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(q){var ti,ts,ta=td.current,tl=ta.title,th=q.type;if(tn.isFunction(tl)&&(tl=tl.call(ta.element,ta)),tm(tl)&&""!==tn.trim(tl)){switch(ti=tn('<div class="fancybox-title fancybox-title-'+th+'-wrap">'+tl+"</div>"),th){case"inside":ts=td.skin;break;case"outside":ts=td.wrap;break;case"over":ts=td.inner;break;default:ts=td.skin,ti.appendTo("body"),tc&&ti.width(ti.width()),ti.wrapInner('<span class="child"></span>'),td.current.margin[2]+=Math.abs(ty(ti.css("margin-bottom")))}ti["top"===q.position?"prependTo":"appendTo"](ts)}}},tn.fn.fancybox=function(q){var ti,ts=tn(this),ta=this.selector||"",tl=function(tl){var th,tc,tp=tn(this).blur(),tu=ti;tl.ctrlKey||tl.altKey||tl.shiftKey||tl.metaKey||tp.is(".fancybox-wrap")||(th=q.groupAttr||"data-fancybox-group",(tc=tp.attr(th))||(th="rel",tc=tp.get(0)[th]),tc&&""!==tc&&"nofollow"!==tc&&(tu=(tp=(tp=ta.length?tn(ta):ts).filter("["+th+'="'+tc+'"]')).index(this)),q.index=tu,!1!==td.open(tp,q)&&tl.preventDefault())};return ti=(q=q||{}).index||0,ta&&!1!==q.live?th.undelegate(ta,"click.fb-start").delegate(ta+":not('.fancybox-item, .fancybox-nav')","click.fb-start",tl):ts.unbind("click.fb-start").bind("click.fb-start",tl),this.filter("[data-fancybox-start=1]").trigger("click"),this},th.ready(function(){var ti,tl;ts===tn.scrollbarWidth&&(tn.scrollbarWidth=function(){var q=tn('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),ti=q.children(),ts=ti.innerWidth()-ti.height(99).innerWidth();return q.remove(),ts}),ts===tn.support.fixedPosition&&(tn.support.fixedPosition=function(){var q=tn('<div style="position:fixed;top:20px;"></div>').appendTo("body"),ti=20===q[0].offsetTop||15===q[0].offsetTop;return q.remove(),ti}()),tn.extend(td.defaults,{scrollbarWidth:tn.scrollbarWidth(),fixed:tn.support.fixedPosition,parent:tn("body")}),ti=tn(q).width(),ta.addClass("fancybox-lock-test"),tl=tn(q).width(),ta.removeClass("fancybox-lock-test"),tn("<style type='text/css'>.fancybox-margin{margin-right:"+(tl-ti)+"px;}</style>").appendTo("head")})}(window,document,jQuery),!function(q){"use strict";let ti=q('<style type="text/css">.mm-menu.mm-offcanvas { display: none; }</style>');function tn(){q("nav.mm-menu a.mm-prev").each(function(){let ti=q(this).parent().find("a.mm-title").text();q(this).attr("title",ti)}),q("nav.mm-menu a.mm-next").each(function(){let ti=q("> a[data-title]",q(this).parent()).data("title");q(this).attr("title",ti)}),q("nav.mm-menu a.mm-close").length>0&&q("nav.mm-menu a.mm-close").attr("title","Close"),ts()}function ts(){let ti=q(".navigation-a");ti.length&&q(".navigation-a > .navigation__list > .navigation__item.has-drop-down").on("mouseenter mouseleave",function(ti){let tn=q(this),ts=tn.find("> .navigation__list--sub"),ta=ts.find("> .navigation__item.has-drop-down > .navigation__list--sub"),tl=ta.find("> .navigation__item.has-drop-down > .navigation__list--sub"),th=ts.outerWidth(!0),td=tn.offset().left,tc=60,tp=0,tu=0;q(ta).each(function(){let ti=q(this).outerWidth(!0);ti>tu&&(tu=ti)});let tf=0;q(tl).each(function(){let ti=q(this).outerWidth(!0);ti>tf&&(tf=ti)}),tp=th+tu+tf-tn.outerWidth(!0);let tm=q(document).width()-(td+tn.outerWidth(!0)+tc),tg=tm>tp;tg?tn.removeClass("near-edge"):tn.addClass("near-edge")})}q("html > head").append(ti),q(document).ready(function(){q("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),q(".navigation__item.more").click(function(q){q.preventDefault()}),q(".more_nav--loading").removeClass("more_nav--loading"),tn()}),q(window).load(function(){tn()})}(window.jQuery),!function(q){var ti=function(ti,tn){this.$el=q(ti),this.inputAttributes=tn.attributes,this.options=tn||{},this.config={fail:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>Oops! Upload failed</span>',notSupported:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File type not supported</span>',maxSize:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File exceeds max size</span>',fileSize:10485760,fileTypes:tn.fileTypes,defaultLabel:""==this.options.label?this.options.label:this.options.helpText},this.itemInfo={},this.insertHTML(this.inputAttributes),this.$uploadFieldInput=this.$el.find(":file"),this.$label=this.$el.find(".labelHolder"),this.$close=this.$el.find(".la-cicon-close"),this.init(this.$el)};ti.prototype.init=function(q){var ti=this;ti.attachEvents()},ti.prototype.attachEvents=function(){var ti=this;ti.$el.on("change",":file",function(){var ti=q(this),tn=ti.get(0).files?ti.get(0).files.length:1,ts=ti.val().replace(/\\/g,"/").replace(/.*\//,""),ta=document.getElementById(ti.attr("id")).files[0];ta&&ti.trigger("fileselect",[tn,ts,ta])}),ti.$uploadFieldInput.on("fileselect",function(q,tn,ts,ta){ti.validateFiles(q,tn,ts,ta)}),ti.$uploadFieldInput.on("focus",function(){ti.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){ti.$uploadFieldInput.removeClass("has-focus")}),ti.$close.on("click",function(q){q.preventDefault(),ti.toggleInputState("reset"),ti.uploadItems("removeLastUploaded"),ti.$uploadFieldInput.val("")}
9)},ti.prototype.uploadItems=function(q){var ti=this;"object"!=typeof q?ti.$uploadFieldInput.data("item",""):(ti.$uploadFieldInput.data("item",JSON.stringify(q)),ti.toggleInputState("close"))},ti.prototype.toggleInputState=function(q){var ti=this;"reset"===q&&(q="upload",ti.$label.html(ti.config.defaultLabel)),this.$el.find(".la-cicon-"+q).show(),this.$el.find(".la-cicon-"+q).siblings("i").hide(),"upload"===q?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},ti.prototype.encodeBaseSF=function(q,ti,tn){var ts=this,ta=new FileReader,tl={};ta.readAsDataURL(q),ta.onload=function(){return tl.id=ti,tl.string=ta.result,tl.size=q.size,tl.extension=ts.itemInfo.extension,tl.icon=ts.itemInfo.icon,tn(tl)},ta.onerror=function(q){}},ti.prototype.insertHTML=function(ti){this.options.required;var tn='<label for="'+ti.id+'"><span class="labelHolder">'+this.config.defaultLabel+'</span><span class="btnS"><span class=""><i class="la-cicon-spinner icon-pulse icon-fw icon-load" style="display:none;"></i><i class="la-cicon-upload"></i><i class="la-cicon-close" style="display:none;"></i><span class="status-label"> Browse</span></span></span></label><span class="form-input-info">Maximum file size allowed: 10MB</label>',ts=q("<input>",ti).addClass("fileUpload");this.$el.append(ts).append(tn)},ti.prototype.validateFiles=function(ti,tn,ts,ta){var tl=this,th=tl.$label.html(),td="",tc=!1;q("label",tl.$el).removeClass("has-error"),q(".error_container",tl.$el.parent().parent()).remove(),tl.itemInfo.extension=ta.name.split(".").pop().toUpperCase(),tl.itemInfo.icon="other",q.each(tl.options.fileTypes,function(q,ti){ti.ext===tl.itemInfo.extension&&(tc=!0,tl.itemInfo.icon=ti.icon)}),ti.target.value&&(td=ti.target.value.split("\\").pop());var tp='<span class="success"><i class="la-cicon-file-'+tl.itemInfo.icon+'"></i>'+td+"</span>";td?(ta.size>tl.config.fileSize?tl.updateLabel(tl.config.maxSize):tc?tl.encodeBaseSF(ta,td,function(q){tl.uploadItems(q),tl.updateLabel(tp)}):tl.updateLabel(tl.config.notSupported),tl.toggleInputState("close")):(tl.$label.html(th),tl.toggleInputState("load"))},ti.prototype.updateLabel=function(q){var ti=this;void 0!==q&&ti.$label.html(q)};var tn=q.fn.uploadField;q.fn.uploadField=function(tn){tn=q.extend({},q(this).data(),"object"==typeof tn&&tn),new ti(this,tn)},q.fn.uploadField.Constructor=ti,q.fn.uploadField.noConflict=function(){return q.fn.uploadField=tn,this}}(jQuery),function(q){"use strict";q(document).ready(function(){q("body").on("SMBLeadsFormReady",function(){var ti=q('[data-control="form"]');if(ti.length){ti.each(function(){""!=q(this).data("mhorgid")&&(q("<input>").attr({type:"hidden",name:"mh_orgId",value:q(this).data("mhorgid")}).appendTo(q("form",q(this))),q("<input>").attr({type:"hidden",name:"mh_template_id",value:q(this).data("templateId")}).appendTo(q("form",q(this))))});var tn=ti.find("form");tn.find("input[type=submit]").on("click",function(ti){var ta=tn.serializeArray(),tl={};q.each(ta,function(q,ti){tl[ti.name]=ti.value});let th=document.getElementById("error-form-dialog"),td=document.getElementById("p-error-message"),tc=document.getElementById("close-dialog");if(tc.addEventListener("click",()=>{th.close(),document.body.style.overflow="auto"}),ts(tl)){var tp="Error: Your message could not be delivered because it contains a link to an external website. Please review your message and try again.";td.innerHTML=tp,th.showModal(),document.body.style.overflow="hidden",th.style.display="block",ti.preventDefault()}})}q(".leadForm .hasDatepicker").each(function(){q(this).attr({type:"text",readonly:"readonly"})})});var ti=q(".form.isPleForm");ti.length&&ti.each(function(){var ti=q(this).closest(".section");ti.hasClass("section-form")||ti.addClass("section-form")});var tn=q(".section-form:not(.newsletter-2-fields):not(.newsletter-3-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)");function ts(q){if(!("comments"in q))return!1;var ti=function(){var q="((https?|ftp):\\/\\/)?";return RegExp(q+="([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?([a-z0-9-.]*)\\.([a-z]{2,3})(:[0-9]{2,5})?(\\/([a-z0-9+$_-]\\.?)+)*\\/?(\\?[a-z+&$_.-][a-z0-9;:@&%=+\\/$_.-]*)?(#[a-z_.-][a-z0-9+$_.-]*)?","i")}();return!!q.comments.match(ti)}tn.length&&ti.length&&tn.each(function(){q(this).find(ti).addClass("form-themeExtras"),q("body").on("SMBLeadsFormReady",function(){var tn=q(".forms--2col-textarea:not(.newsletter-2-fields):not(.newsletter-3
9-fields):not(.contact-us-im):not(.appointment-request):not(.exclusive-offer):not(.pet-memorial):not(.form-default)"),ts=q(".forms-option--b .leadForm .form__group:not(.checkbox__group):not(.radio__group)");tn.find(ti).each(function(){q(this).find(".form__group").not(".form-input-comments").wrapAll("<div class='groupWrap' />")}),ts.each(function(){q(this).hasClass("hasLabel")&&q(this).addClass("optionB-enabled")})})})})}(window.jQuery),!function(q){function ti(ti){this.options=q.extend({list:null,levelIndentHTML:" • ",defaultOptionAttr:"title",defaultOptionText:"...",selectClass:"nav-select",activeClass:"nav-active",defaultOptionClass:"opt-default",hasDropClass:"opt-sublevel",levelPrefixClass:"opt-level-",useDefaultOption:!0},ti),this.options.list&&(this.createSelect(),this.attachEvents())}ti.prototype={createSelect:function(){this.startIndex=0,this.navigation=q(this.options.list),this.select=q("<select>").addClass(this.options.selectClass),this.createDefaultOption(),this.createList(this.navigation,0),this.select.insertBefore(this.navigation)},createDefaultOption:function(){if(this.options.useDefaultOption){var ti=this.navigation.attr(this.options.defaultOptionAttr),tn=q("<option>").addClass(this.options.defaultOptionClass).text(ti||this.options.defaultOptionText);this.navigation.removeAttr(this.options.defaultOptionAttr),this.select.append(tn),this.startIndex=1}},createList:function(ti,tn){var ts=this;ti.children().each(function(ti,ta){var tl=q(this),th=tl.find("a").eq(0),td=tl.find("ul").eq(0),tc=td.length>0;th.length&&ts.select.append(ts.createOption(th,tc,tn,th.hasClass(ts.options.activeClass))),tc&&ts.createList(td,tn+1)})},createOption:function(ti,tn,ts,ta){var tl=this.getLevelIndent(ts)+ti.html();return q("<option>").html(tl).addClass(this.options.levelPrefixClass+(ts+1)).toggleClass(this.options.hasDropClass,tn).val(ti.attr("href")).attr("selected",!!ta&&"selected")},getLevelIndent:function(q){return Array(q+1).join(this.options.levelIndentHTML)},attachEvents:function(){var q=this;this.select.change(function(){this.selectedIndex>=q.startIndex&&(location.href=this.value)})}},q.fn.navigationSelect=function(tn){return this.each(function(){new ti(q.extend({list:this},tn))})}}(jQuery),jQuery(function(){jQuery(".pagination--mobile .pagination-list").navigationSelect({useDefaultOption:!1,selectClass:"pagination-select",activeClass:"active"}),jQuery(".articles__pagination-item--link").each(function(){"#"===$(this).attr("href")&&$(this).click(function(q){q.preventDefault()})})}),function(q){"use strict";var ti=function(q,ti){this.$el=q,this.$containers=q.find(".pagination--device"),this.options=ti,this.showDevice(),this.attachEvents()};ti.prototype.attachEvents=function(){var ti=this;q(window).resize(function(){ti.showDevice()})},ti.prototype.showDevice=function(){this.$containers.hide();var q=this.getDevice();this.$el.find(".pagination--"+q).show()},ti.prototype.getDevice=function(){var ti=q(window).width();return ti<768?"mobile":ti<1024?"tablet":"desktop"};var tn=q.fn.PaginationDevicePreview;q.fn.paginationDevicePreview=function(tn){var ts;return arguments,this.each(function(){var ta=q(this),tl=q.extend({},ta.data(),"object"==typeof tn&&tn),th="";if(ta.data("PaginationDevicePreview",th=new ti(ta,tl)),void 0!==ts)return!1}),ts||this},q.fn.paginationDevicePreview.Constructor=ti,q.fn.paginationDevicePreview.noConflict=function(){return q.fn.paginationDevicePreview=tn,this},q(function(){q('[data-control="pagination-device-preview"]').paginationDevicePreview()})}(window.jQuery),$(document).ready(function(){$(".articles__pagination .fancy-pagination .current-page").click(function(){$(this).next().toggleClass("active")})}),function(q){"use strict";var ti=function(ti,tn){var ts=!1;function ta(){setTimeout(function(){q(window).trigger("scroll")},100)}ts=!!q(".lazyLoadImg").length,this.$element=q(ti),this.options=this.parseTrueFalseOptions(tn);var tl=this;tl.options.autoplay=tl.options.auto,tl.options.auto=!1;var th={onSlideAfter:function(){tl.options.auto&&(tl.$element.stopAuto(),tl.$element.startAuto()),ts&&ta()}
9,onSliderLoad:function(){if(""==tl.options.easing&&(tl.options.easing=null),tl.options.controlsHover){var ti=tl.$element.closest(".bx-wrapper");q(".bx-controls-direction",ti).hide(),ti.hover(function(){q(".bx-controls-direction",q(this)).fadeIn(300)},function(){q(".bx-controls-direction",q(this)).fadeOut(300)})}if(tl.options.autoHover){var ti=tl.$element.closest(".bx-wrapper");ti.hover(function(){tl.options.auto&&tl.$element.stopAuto()},function(){console.log(tl.options.auto),tl.options.auto&&tl.$element.startAuto()})}null!=tl.options.easing&&(tl.options.useCSS=!1),tl.options.autoplay&&(tl.makePauseSlideshowButton(),setTimeout(function(){tl.$element.startAuto(),tl.options.auto=!0},tl.options.autoDelay)),tl.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),tl.$element.closest(".bx-wrapper").find(".wrap_on-off, .wrap_pause-play, .bx-pager ").wrapAll("<div class='bx-controls-buttons' />"),tl.attachEvents()},onSlideNext:function(){ts&&ta()},onSlidePrev:function(){ts&&ta()}};q.extend(this.options,th),this.run()};ti.prototype.attachEvents=function(){var ti=this,tn=ti.$element.closest(".bx-wrapper").find(".bx-controls");tn.on("click",".pause-slideshow",function(ts,ta){q(this).hide(),ti.$element.stopAuto(),ti.options.auto=!1,tn.find(".play-slideshow").fadeIn("slow",function(){void 0!==ta&&q(this).focus()})}),tn.on("click",".play-slideshow",function(ts,ta){q(this).hide(),ti.$element.startAuto(),ti.options.auto=!0,tn.find(".pause-slideshow").fadeIn("slow",function(){void 0!==ta&&q(this).focus()})}),q("body").keypress(function(q){13==q.which&&(tn.find(".play-slideshow").is(":focus")&&tn.find(".play-slideshow").trigger("click",{kb:!0}),tn.find(".pause-slideshow").is(":focus")&&tn.find(".pause-slideshow").trigger("click",{kb:!0}))})},ti.prototype.makePauseSlideshowButton=function(){var q=this,ti=['<div class="wrap_pause-play">','<div class="pause-slideshow" aria-label="icon pause" title="Pause slideshow" tabindex="0">','<span class="icon icon-pause"></span>',"</div>",'<div class="play-slideshow" aria-label="icon play" style="display: none" title="Play slideshow" tabindex="0">','<span class="icon icon-play"></span>',"</div>","</div>"];q.$element.closest(".bx-wrapper").find(".bx-controls").append(ti.join(""))},ti.prototype.parseTrueFalseOptions=function(q,tn){for(var ts in q)q.hasOwnProperty(ts)&&-1!=ti.BOOLEANS.indexOf(ts)&&(q[ts]=!!q[ts]);return q},ti.prototype.run=function(){var ti=this;q(window).load(function(){ti.$bxSlider=ti.$element.bxSlider(ti.options),ti.$bxSlider.redrawSlider()})},ti.DEFAULTS={pager:!0,controls:!0,autoControls:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1},ti.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive"];var tn=q.fn.BXSlider;q.fn.BXSlider=function(tn){var ts;return arguments,this.each(function(){var ta=q(this),tl=q.extend({},ti.DEFAULTS,ta.data(),"object"==typeof tn&&tn),th="";if(ta.data("bxslider",th=new ti(this,tl)),void 0!==ts)return!1}),ts||this},q.fn.BXSlider.Constructor=ti,q.fn.BXSlider.noConflict=function(){return q.fn.BXSlider=tn,this},q(function(){q('[data-control="bx-slider"]').BXSlider()})}(window.jQuery),!function(q){"function"==typeof define&&define.amd?define(["jquery"],q):"object"==typeof module&&module.exports?module.exports=function(ti,tn){return void 0===tn&&(tn="undefined"!=typeof window?require("jquery"):require("jquery")(ti)),q(tn),tn}:q(jQuery)}(function(q){"use strict";q.fn.imageScale=function(tn){return this.each(function(){var ts=this,ta=q(this),tl=ta.data("imageScale"),th="IMG"===this.tagName?ta:ta.find("img");if(tl)"string"==typeof tn?tl[tn]():"object"==typeof tn?tl[tn.method||"scale"](!1,tn):tl.scale();else{var td=th[0].complete,tc=q.extend({},q.fn.imageScale.defaults,"object"==typeof tn&&tn),tp=function(){ta.data("imageScale",tl=new ti(ts,tc)),tl.scale(!0,tc)};td?tp.apply(ta[0]):th.on("load",tp).attr("src",th.attr("src"))}})},q.fn.imageScale.defaults={scale:"best-fill",align:"center",parent:null,hideParentOverflow:!0,fadeInDuration:0,rescaleOnResize:!1,didScale:function(q,ti){},logLevel:0};var ti=function(ti,tn){var ts=this;ts.options=tn,ts.element=ti;var ta=ts.$element=q(ti),tl=ts.$img="IMG"===ti.tagName?ta:ta.find("img"),th=ts.img=tl[0];
9ts.src=tl.attr("src"),ts.imgWidth=th.naturalWidth||th.width,ts.imgHeight=th.naturalHeight||th.height;var td=ts.$parent=tn.parent?tn.parent:q(ta.parent()[0]);ts.parent=td[0],"static"===td.css("position")&&td.css("position","relative"),tn.rescaleOnResize&&q(window).resize(function(q){ts.scheduleScale()})};q.fn.imageScale.Constructor=ti,ti.prototype={NONE:"none",FILL:"fill",BEST_FILL:"best-fill",BEST_FIT:"best-fit",BEST_FIT_DOWN_ONLY:"best-fit-down",ALIGN_LEFT:"left",ALIGN_RIGHT:"right",ALIGN_CENTER:"center",ALIGN_TOP:"top",ALIGN_BOTTOM:"bottom",ALIGN_TOP_LEFT:"top-left",ALIGN_TOP_RIGHT:"top-right",ALIGN_BOTTOM_LEFT:"bottom-left",ALIGN_BOTTOM_RIGHT:"bottom-right",constructor:ti,element:null,options:null,scale:function(q,ti){if(!this._isDestroyed&&!1!==this._canScale){var tn=this,ts=this.options,ta=this.$parent,tl=this.element,th=this.$element,td=this.img,tc=this.$img;if(q)ts.hideParentOverflow&&ta.css({overflow:"hidden"});else if(this.src!==tc.attr("src")){this.destroy(),th.data("imageScale",null),th.imageScale(ts);return}if(this._didScheduleScale=!1,!ts.rescaleOnResize||ti||this._needUpdate(this.parent)){ti=ti||{};var tp=ti.transition;tp&&(this._canScale=!1,th.css("transition","all "+tp+"ms"),setTimeout(function(){tn._canScale=null,th.css("transition","null")},tp));var tu=ti.destWidth?ti.destWidth:ta.outerWidth(),tf=ti.destHeight?ti.destHeight:ta.outerHeight(),tm=ti.destWidth?ti.destWidth:ta.innerWidth(),tg=ti.destHeight?ti.destHeight:ta.innerHeight(),tv=tu-tm,ty=tf-tg,t_=th.attr("data-scale"),tb=th.attr("data-align"),tw=t_||ts.scale,tx=tb||ts.align,tT=ts.fadeInDuration;if(!tw){ts.logLevel>2&&console.log("imageScale - DEBUG NOTICE: The scale property is null.",tl);return}this._cacheDestWidth===tu&&this._cacheDestHeight===tf&&ts.logLevel>2&&console.log("imageScale - DEBUG NOTICE: The parent size hasn't changed: dest width: '"+tu+"' - dest height: '"+tf+"'.",tl);var tL=this.imgWidth,tC=this.imgHeight;if(!(tu&&tf&&tL&&tC)){ts.logLevel>0&&console.error("imageScale - DEBUG ERROR: The dimensions are incorrect: source width: '"+tL+"' - source height: '"+tC+"' - dest width: '"+tu+"' - dest height: '"+tf+"'.",tl);return}this._cacheDestWidth=tu,this._cacheDestHeight=tf;var tS=this._innerFrameForSize(tw,tx,tL,tC,tu,tf);tv&&(tS.x-=tv/2),ty&&(tS.y-=ty/2),th.css({position:"absolute",top:tS.y+"px",left:tS.x+"px",width:tS.width+"px",height:tS.height+"px","max-width":"none"}),q&&tT&&(th.css({display:"none"}),th.fadeIn(tT)),ts.didScale.call(this,q,ti)}}},destroy:function(){this._isDestroyed=!0,this.$element.removeData("imageScale")},_innerFrameForSize:function(q,ti,tn,ts,ta,tl){var th,td,tc;if(tc={x:0,y:0,width:ta,height:tl},q===this.FILL)return tc;switch(th=ta/tn,td=tl/ts,q){case this.BEST_FIT_DOWN_ONLY:q!==this.BEST_FIT_DOWN_ONLY&&this.options.logLevel>1&&console.warn("imageScale - DEBUG WARNING: The scale '"+q+"' was not understood."),q=tn>ta||ts>tl?th<td?th:td:1;break;case this.BEST_FIT:q=th<td?th:td;break;case this.NONE:q=1;break;default:q=th>td?th:td}switch(tn*=q,ts*=q,tc.width=Math.round(tn),tc.height=Math.round(ts),ti){case this.ALIGN_LEFT:tc.x=0,tc.y=tl/2-ts/2;break;case this.ALIGN_RIGHT:tc.x=ta-tn,tc.y=tl/2-ts/2;break;case this.ALIGN_TOP:tc.x=ta/2-tn/2,tc.y=0;break;case this.ALIGN_BOTTOM:tc.x=ta/2-tn/2,tc.y=tl-ts;break;case this.ALIGN_TOP_LEFT:tc.x=0,tc.y=0;break;case this.ALIGN_TOP_RIGHT:tc.x=ta-tn,tc.y=0;break;case this.ALIGN_BOTTOM_LEFT:tc.x=0,tc.y=tl-ts;break;case this.ALIGN_BOTTOM_RIGHT:tc.x=ta-tn,tc.y=tl-ts;break;default:ti!==this.ALIGN_CENTER&&this.options.logLevel>1&&console.warn("imageScale - DEBUG WARNING: The align '"+ti+"' was not understood."),tc.x=ta/2-tn/2,tc.y=tl/2-ts/2}return tc},_needUpdate:function(q){var ti=q.clientHeight+" "+q.clientWidth;return this._lastParentSize!==ti&&(this._lastParentSize=ti,!0)},scheduleScale:function(){if(!this._didScheduleScale){if(window.requestAnimationFrame){var q=this;this._didScheduleScale=!0,requestAnimationFrame(function(){setTimeout(function(){q.scale()},0)})}else this.scale()}}}}),$("document").ready(function(){$(".gallery").on("html_restructured",function(){var q=$(".gallery").data("ratio");$(".gallery [data-setup-run]").each(function(){"square"==q?$(this).height($(this).width()):"rectangle"==q&&$(this).height(.75*$(this).width());var ti=videojs(this,$(this).data("setupRun"));if(ti){var tn=ti.options();if(ti.on("pause",function(){ti.bigPlayButton.hide(),ti.posterImage.hide()}),"vimeo"==tn.techOrder[0]){var ts=$(ti.posterImage.el_),ta=$(ti.el_).find("iframe");void 0==ts.attr("style")&&ts.addClass("noVimeoPoster"),ts.bind("click touchstart",function(){ta.addClass("vimeoStarted"),ts.removeClass("noVimeoPoster"),ta[0].src+="&muted=1&autoplay=1"})}}})})}),function(q){"use strict";var ti=function(ti,tn){var ts=this;this.$element=q(ti),this.$topWrapper=q(ti).closest(".gallery"),this.options=this.parseTrueFalseOptions(tn),this.options.muted=!1,1==this.options.count&&(this.options.infiniteLoop=!1),this.auto=this.options.auto,this.options.auto=!1;var ta={onSlideAfter:function(){ts.options.auto&&(ts.$element.stopAuto(),ts.$element.startAuto())},onSliderLoad:function(){ts.$element.css("visibility","visible"),ts.$wrapper=ts.$element.closest(".bx-wrapper"),ts.$viewport=ts.$wrapper.find(".bx-viewport"),ts.$element.getSlideCount()>1?(ts.options.pager=!0,q(".bx-pager").show()):(ts.options.pager=!1,q(".bx-pager").hide()),""==ts.options.easing&&(ts.options.easing=null),ts.options.controlsHover&&ts.$element.getSlideCount()>1&&(q(".bx-controls-direction",ts.$wrapper).add(".bx-pager").hide(),ts.$wrapper.hover(function(){q(".bx-controls-direction",q(this)).add(".bx-pager").fadeIn(300)},function(){q(".bx-controls-direction",q(this)).add(".bx-pager").fadeOut(300)})),ts.options.autoHover&&ts.$wrapper.hover(function(){ts.options.auto&&ts.$element.stopAuto()},function(){ts.options.auto&&ts.$element.startAuto()}),null!=ts.options.easing&&(ts.options.useCSS=!1),ts.auto&&(ts.options.auto=!0,ts.$element.startAuto(),ts.makePauseSlideshowButton()),ts.removeHighsli
9deInClones(),ts.addWrappers()},onSlideNext:function(){},onSlidePrev:function(){}};return q.extend(this.options,ta),this.attachEvents(),this.initializeSlider(),this};ti.prototype.attachEvents=function(){var ti=this;ti.$topWrapper.find(".gallery-slider").on("click",".gallery-pause-slideshow",function(tn,ts){q(this).hide(),ti.$element.stopAuto(),ti.options.auto=!1,ti.$topWrapper.find(".gallery-slider .gallery-play-slideshow").fadeIn("slow",function(){void 0!==ts&&q(this).focus()})}),ti.$topWrapper.find(".gallery-slider").on("click",".gallery-play-slideshow",function(tn,ts){q(this).hide(),ti.$element.startAuto(),ti.options.auto=!0,ti.$topWrapper.find(".gallery-slider .gallery-pause-slideshow").fadeIn("slow",function(){void 0!==ts&&q(this).focus()})}),ti.$topWrapper.find(".gallery-slider").on("click",".sound-off",function(tn,ts){q(this).hide(),ti.options.muted=!0,ti.$element.stopAuto(),ti.$topWrapper.find(".gallery-slider .sound-on").fadeIn("slow",function(){void 0!==ts&&q(this).focus()})}),ti.$topWrapper.find(".gallery-slider").on("click",".sound-on",function(tn,ts){q(this).hide(),ti.options.muted=!1,ti.$element.startAuto(),ti.$topWrapper.find(".gallery-slider .sound-off").fadeIn("slow",function(){void 0!==ts&&q(this).focus()})}),q("body").keypress(function(q){13==q.which&&(ti.$topWrapper.find(".gallery-slider .play-slideshow").is(":focus")&&ti.$topWrapper.find(".gallery-slider .play-slideshow").trigger("click",{kb:!0}),ti.$topWrapper.find(".gallery-slider .pause-slideshow").is(":focus")&&ti.$topWrapper.find(".gallery-slider .pause-slideshow").trigger("click",{kb:!0}),ti.$topWrapper.find(".gallery-slider .sound-off").is(":focus")&&ti.$topWrapper.find(".gallery-slider .sound-off").trigger("click",{kb:!0}),ti.$topWrapper.find(".gallery-slider .sound-on").is(":focus")&&ti.$topWrapper.find(".gallery-slider .sound-on").trigger("click",{kb:!0}))})},ti.prototype.parseTrueFalseOptions=function(q,tn){for(var ts in q)q.hasOwnProperty(ts)&&-1!=ti.BOOLEANS.indexOf(ts)&&(q[ts]=!!q[ts]);return q},ti.prototype.addWrappers=function(){var q=this;q.$element.closest(".bx-wrapper").find(".bx-controls").wrapAll("<div class='wrap__bx-controls' />"),q.$element.closest(".bx-wrapper").find(".bx-pager, .wrap_pause-play").wrapAll("<div class='bx-controls-buttons' />")},ti.prototype.initializeSlider=function(){this.$bxSlider=this.$element.bxSlider(this.options)},ti.prototype.destSlider=function(){this.$bxSlider.length&&(this.$bxSlider.destroySlider(),this.$topWrapper.find(".gallery-slider .wrap__bx-controls").remove())},ti.prototype.makePauseSlideshowButton=function(){var q=this,ti=['<div class="wrap_pause-play">','<div class="pause-slideshow gallery-pause-slideshow" aria-label="icon pause" title="Pause slideshow" tabindex="0">','<span class="icon icon-pause"></span>',"</div>",'<div class="play-slideshow gallery-play-slideshow" aria-label="icon play" style="display: none" title="Play slideshow" tabindex="0">','<span class="icon icon-play"></span>',"</div>","</div>"];q.$topWrapper.find(".gallery-slider .bx-wrapper .bx-controls").append(ti.join(""))},ti.prototype.removeHighslideInClones=function(){var ti=this;ti.$element.find(".bx-clone").each(function(ti){var tn=q(this).find(".highslide");
9tn.removeClass("highslide"),tn.removeAttr("onclick")})},ti.DEFAULTS={pager:!0,controls:!0,autoControls:!1,autoHoverModified:!1,autoHover:!1,auto:!0,infiniteLoop:!0,randomStart:!1,controlsHover:!1,responsive:!1,mode:"horizontal",speed:500,pause:4e3,autoDelay:0,easing:null,useCSS:!1,autoPlayVideo:!0},ti.BOOLEANS=["pager","controls","autoControls","auto","infiniteLoop","randomStart","controlsHover","responsive","autoHoverModified"];var tn=q.fn.slideshow;q.fn.slideshow=function(tn){arguments;var ts=q(this),ta=q.extend({},ti.DEFAULTS,ts.data(),"object"==typeof tn&&tn);return new ti(this,ta)},q.fn.slideshow.Constructor=ti,q.fn.slideshow.noConflict=function(){q.fn.slideshow=tn}}(window.jQuery),function(q){"use strict";var ti=function(ti,tn){this.$el=q(ti),this.options=tn,this.init()};ti.prototype.init=function(){var ti=this;ti.$el.find("img.scale").imageScale({parent:q(".img-holder-container")}),ti.$el.find("img.scale").imageScale({parent:q(".img-holder-container")})},ti.DEFAULTS={nextEffect:"fade",prevEffect:"fade",type:"iframe"};var tn=q.fn.imgScale;q.fn.imgScale=function(tn){var ts=Array.prototype.slice.call(arguments,1),ta=void 0;return this.each(function(){var tl=q(this),th=q.extend({},ti.DEFAULTS,tl.data(),"object"==typeof tn&&tn),td=new ti(this,th);if("string"==typeof tn&&(ta=td[tn].apply(td,ts)),void 0!==ta)return!1}),ta||this},q.fn.imgScale.Constructor=ti,q.fn.imgScale.noConflict=function(){return q.fn.imgScale=tn,this}}(window.jQuery),/*! 10 * imagesLoaded PACKAGED v4.1.1 11 * JavaScript is all like "You images are done yet or what?" 12 * MIT License 13 */!function(q,ti){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",ti):"object"==typeof module&&module.exports?module.exports=ti():q.EvEmitter=ti()}("undefined"!=typeof window?window:this,function(){function q(){}var ti=q.prototype;return ti.on=function(q,ti){if(q&&ti){var tn=this._events=this._events||{},ts=tn[q]=tn[q]||[];return -1==ts.indexOf(ti)&&ts.push(ti),this}},ti.once=function(q,ti){if(q&&ti){this.on(q,ti);var tn=this._onceEvents=this._onceEvents||{};return(tn[q]=tn[q]||{})[ti]=!0,this}},ti.off=function(q,ti){var tn=this._events&&this._events[q];if(tn&&tn.length){var ts=tn.indexOf(ti);return -1!=ts&&tn.splice(ts,1),this}},ti.emitEvent=function(q,ti){var tn=this._events&&this._events[q];if(tn&&tn.length){var ts=0,ta=tn[0];ti=ti||[];for(var tl=this._onceEvents&&this._onceEvents[q];ta;){var th=tl&&tl[ta];th&&(this.off(q,ta),delete tl[ta]),ta.apply(this,ti),ts+=th?0:1,ta=tn[ts]}return this}},q}),function(q,ti){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(tn){return ti(q,tn)}):"object"==typeof module&&module.exports?module.exports=ti(q,require("ev-emitter")):q.imagesLoaded=ti(q,q.EvEmitter)}(window,function(q,ti){function tn(q,ti){for(var tn in ti)q[tn]=ti[tn];return q}function ts(q){var ti=[];if(Array.isArray(q))ti=q;else if("number"==typeof q.length)for(var tn=0;tn<q.length;tn++)ti.push(q[tn]);else ti.push(q);return ti}function ta(q,ti,tl){return this instanceof ta?("string"==typeof q&&(q=document.querySelectorAll(q)),this.elements=ts(q),this.options=tn({},this.options),"function"==typeof ti?tl=ti:tn(this.options,ti),tl&&this.on("always",tl),this.getImages(),td&&(this.jqDeferred=new td.Deferred),void setTimeout((function(){this.check()}).bind(this))):new ta(q,ti,tl)}function tl(q){this.img=q}function th(q,ti){this.url=q,this.element=ti,this.img=new Image}var td=q.jQuery,tc=q.console;ta.prototype=Object.create(ti.prototype),ta.prototype.options={},ta.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},ta.prototype.addElementImages=function(q){"IMG"==q.nodeName&&this.addImage(q),!0===this.options.background&&this.addElementBackgroundImages(q);var ti=q.nodeType;if(ti&&tp[ti]){for(var tn=q.querySelectorAll("img"),ts=0;ts<tn.length;ts++){var ta=tn[ts];this.addImage(ta)}if("string"==typeof this.options.background){var tl=q.querySelectorAll(this.options.background);for(ts=0;ts<tl.length;ts++){var th=tl[ts];this.addElementBackgroundImages(th)}}}};var tp={1:!0,9:!0,11:!0};
vendor: 4,108 bytes, lines 13-19
13return ta.prototype.addElementBackgroundImages=function(q){var ti=getComputedStyle(q);if(ti)for(var tn=/url\((['"])?(.*?)\1\)/gi,ts=tn.exec(ti.backgroundImage);null!==ts;){var ta=ts&&ts[2];ta&&this.addBackground(ta,q),ts=tn.exec(ti.backgroundImage)}},ta.prototype.addImage=function(q){var ti=new tl(q);this.images.push(ti)},ta.prototype.addBackground=function(q,ti){var tn=new th(q,ti);this.images.push(tn)},ta.prototype.check=function(){function q(q,tn,ts){setTimeout(function(){ti.progress(q,tn,ts)})}var ti=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(ti){ti.once("progress",q),ti.check()}):void this.complete()},ta.prototype.progress=function(q,ti,tn){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!q.isLoaded,this.emitEvent("progress",[this,q,ti]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,q),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&tc&&tc.log("progress: "+tn,q,ti)},ta.prototype.complete=function(){var q=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(q,[this]),this.emitEvent("always",[this]),this.jqDeferred){var ti=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[ti](this)}},tl.prototype=Object.create(ti.prototype),tl.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},tl.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},tl.prototype.confirm=function(q,ti){this.isLoaded=q,this.emitEvent("progress",[this,this.img,ti])},tl.prototype.handleEvent=function(q){var ti="on"+q.type;this[ti]&&this[ti](q)},tl.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},tl.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},tl.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},th.prototype=Object.create(tl.prototype),th.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},th.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},th.prototype.confirm=function(q,ti){this.isLoaded=q,this.emitEvent("progress",[this,this.element,ti])},ta.makeJQueryPlugin=function(ti){(ti=ti||q.jQuery)&&((td=ti).fn.imagesLoaded=function(q,ti){return new ta(this,q,ti).jqDeferred.promise(td(this))})},ta.makeJQueryPlugin(),ta}),/*! 14 * Masonry PACKAGED v4.1.1 15 * Cascading grid layout library 16 * http://masonry.desandro.com 17 * MIT License 18 * by David DeSandro 19 */!function(q,ti){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(tn){return ti(q,tn)}):"object"==typeof module&&module.exports?module.exports=ti(q,require("jquery")):q.jQueryBridget=ti(q,q.jQuery)}(window,function(q,ti){"use strict";function tn(tn,tl,td){function tc(q,ti,ts){var ta,tl="$()."+tn+'("'+ti+'")';return q.each(function(q,tc){var tp=td.data(tc,tn);if(!tp)return void th(tn+" not initialized. Cannot call methods, i.e. "+tl);var tu=tp[ti];if(!tu||"_"==ti.charAt(0))return void th(tl+" is not a valid method");var tf=tu.apply(tp,ts);ta=void 0===ta?tf:ta}),void 0!==ta?ta:q}function tp(q,ti){q.each(function(q,ts){var ta=td.data(ts,tn);ta?(ta.option(ti),ta._init()):(ta=new tl(ts,ti),td.data(ts,tn,ta))})}(td=td||ti||q.jQuery)&&(tl.prototype.option||(tl.prototype.option=function(q){td.isPlainObject(q)&&(this.options=td.extend(!0,this.options,q))}),td.fn[tn]=function(q){if("string"==typeof q){var ti=ta.call(arguments,1
19);return tc(this,q,ti)}return tp(this,q),this},ts(td))}function ts(q){!q||q&&q.bridget||(q.bridget=tn)}var ta=Array.prototype.slice,tl=q.console,th=void 0===tl?function(){}:function(q){tl.error(q)};return ts(ti||q.jQuery),tn}),function(q,ti){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",ti):"object"==typeof module&&module.exports?module.exports=ti():q.EvEmitter=ti()}("undefined"!=typeof window?window:this,function(){function q(){}var ti=q.prototype;return ti.on=function(q,ti){if(q&&ti){var tn=this._events=this._events||{},ts=tn[q]=tn[q]||[];return -1==ts.indexOf(ti)&&ts.push(ti),this}},ti.once=function(q,ti){if(q&&ti){this.on(q,ti);var tn=this._onceEvents=this._onceEvents||{};return(tn[q]=tn[q]||{})[ti]=!0,this}},ti.off=function(q,ti){var tn=this._events&&this._events[q];if(tn&&tn.length){var ts=tn.indexOf(ti);return -1!=ts&&tn.splice(ts,1),this}},ti.emitEvent=function(q,ti){var tn=this._events&&this._events[q];if(tn&&tn.length){var ts=0,ta=tn[0];ti=ti||[];for(var tl=this._onceEvents&&this._onceEvents[q];ta;){var th=tl&&tl[ta];th&&(this.off(q,ta),delete tl[ta]),ta.apply(this,ti),ts+=th?0:1,ta=tn[ts]}return this}},q}),function(q,ti){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return ti()}):"object"==typeof module&&module.exports?module.exports=ti():q.getSize=ti()}(window,function(){"use strict";function q(q){var ti=parseFloat(q);return -1==q.indexOf("%")&&!isNaN(ti)&&ti}function ti(){}function tn(){for(var q={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},ti=0;tp>ti;ti++)q[tc[ti]]=0;return q}function ts(q){var ti=getComputedStyle(q);return ti||td("Style returned "+ti+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),ti}function ta(){if(!tu){tu=!0;var ti=document.createElement("div");ti.style.width="200px",ti.style.padding="1px 2px 3px 4px",ti.style.borderStyle="solid",ti.style.borderWidth="1px 2px 3px 4px",ti.style.boxSizing="border-box";var tn=document.body||document.documentElement;tn.appendChild(ti);var ta=ts(ti);tl.isBoxSizeOuter=th=200==q(ta.width),tn.removeChild(ti)}}function tl(ti){if(ta(),"string"==typeof ti&&(ti=document.querySelector(ti)),ti&&"object"==typeof ti&&ti.nodeType){var tl=ts(ti);if("none"==tl.display)return tn();var td={};td.width=ti.offsetWidth,td.height=ti.offsetHeight;for(var tu=td.isBorderBox="border-box"==tl.boxSizing,tf=0;tp>tf;tf++){var tm=tc[tf],tg=parseFloat(tl[tm]);td[tm]=isNaN(tg)?0:tg}var tv=td.paddingLeft+td.paddingRight,ty=td.paddingTop+td.paddingBottom,t_=td.marginLeft+td.marginRight,tb=td.marginTop+td.marginBottom,tw=td.borderLeftWidth+td.borderRightWidth,tx=td.borderTopWidth+td.borderBottomWidth,tT=tu&&th,tL=q(tl.width);!1!==tL&&(td.width=tL+(tT?0:tv+tw));var tC=q(tl.height);return!1!==tC&&(td.height=tC+(tT?0:ty+tx)),td.innerWidth=td.width-(tv+tw),td.innerHeight=td.height-(ty+tx),td.outerWidth=td.width+t_,td.outerHeight=td.height+tb,td}}var th,td="undefined"==typeof console?ti:function(q){console.error(q)},tc=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],tp=tc.length,tu=!1;return tl}),function(q,ti){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",ti):"object"==typeof module&&module.exports?module.exports=ti():q.matchesSelector=ti()}(window,function(){"use strict";var q=function(){var q=Element.prototype;if(q.matches)return"matches";if(q.matchesSelector)return"matchesSelector";for(var ti=["webkit","moz","ms","o"],tn=0;tn<ti.length;tn++){var ts=ti[tn]+"MatchesSelector";if(q[ts])return ts}}();return function(ti,tn){return ti[q](tn)}}),function(q,ti){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
19sandro-matches-selector/matches-selector"],function(tn){return ti(q,tn)}):"object"==typeof module&&module.exports?module.exports=ti(q,require("desandro-matches-selector")):q.fizzyUIUtils=ti(q,q.matchesSelector)}(window,function(q,ti){var tn={};tn.extend=function(q,ti){for(var tn in ti)q[tn]=ti[tn];return q},tn.modulo=function(q,ti){return(q%ti+ti)%ti},tn.makeArray=function(q){var ti=[];if(Array.isArray(q))ti=q;else if(q&&"number"==typeof q.length)for(var tn=0;tn<q.length;tn++)ti.push(q[tn]);else ti.push(q);return ti},tn.removeFrom=function(q,ti){var tn=q.indexOf(ti);-1!=tn&&q.splice(tn,1)},tn.getParent=function(q,tn){for(;q!=document.body;)if(ti(q=q.parentNode,tn))return q},tn.getQueryElement=function(q){return"string"==typeof q?document.querySelector(q):q},tn.handleEvent=function(q){var ti="on"+q.type;this[ti]&&this[ti](q)},tn.filterFindElements=function(q,ts){q=tn.makeArray(q);var ta=[];return q.forEach(function(q){if(q instanceof HTMLElement){if(!ts)return void ta.push(q);ti(q,ts)&&ta.push(q);for(var tn=q.querySelectorAll(ts),tl=0;tl<tn.length;tl++)ta.push(tn[tl])}}),ta},tn.debounceMethod=function(q,ti,tn){var ts=q.prototype[ti],ta=ti+"Timeout";q.prototype[ti]=function(){var q=this[ta];q&&clearTimeout(q);var ti=arguments,tl=this;this[ta]=setTimeout(function(){ts.apply(tl,ti),delete tl[ta]},tn||100)}},tn.docReady=function(q){var ti=document.readyState;"complete"==ti||"interactive"==ti?q():document.addEventListener("DOMContentLoaded",q)},tn.toDashed=function(q){return q.replace(/(.)([A-Z])/g,function(q,ti,tn){return ti+"-"+tn}).toLowerCase()};var ts=q.console;return tn.htmlInit=function(ti,ta){tn.docReady(function(){var tl=tn.toDashed(ta),th="data-"+tl,td=document.querySelectorAll("["+th+"]"),tc=document.querySelectorAll(".js-"+tl),tp=tn.makeArray(td).concat(tn.makeArray(tc)),tu=th+"-options",tf=q.jQuery;tp.forEach(function(q){var tn,tl=q.getAttribute(th)||q.getAttribute(tu);try{tn=tl&&JSON.parse(tl)}catch(ti){return void(ts&&ts.error("Error parsing "+th+" on "+q.className+": "+ti))}var td=new ti(q,tn);tf&&tf.data(q,ta,td)})})},tn}),function(q,ti){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],ti):"object"==typeof module&&module.exports?module.exports=ti(require("ev-emitter"),require("get-size")):(q.Outlayer={},q.Outlayer.Item=ti(q.EvEmitter,q.getSize))}(window,function(q,ti){"use strict";function tn(q){for(var ti in q)return!1;return!0}function ts(q,ti){q&&(this.element=q,this.layout=ti,this.position={x:0,y:0},this._create())}function ta(q){return q.replace(/([A-Z])/g,function(q){return"-"+q.toLowerCase()})}var tl=document.documentElement.style,th="string"==typeof tl.transition?"transition":"WebkitTransition",td="string"==typeof tl.transform?"transform":"WebkitTransform",tc={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[th],tp={transform:td,transition:th,transitionDuration:th+"Duration",transitionProperty:th+"Property",transitionDelay:th+"Delay"},tu=ts.prototype=Object.create(q.prototype);tu.constructor=ts,tu._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},tu.handleEvent=function(q){var ti="on"+q.type;this[ti]&&this[ti](q)},tu.getSize=function(){this.size=ti(this.element)},tu.css=function(q){var ti=this.element.style;for(var tn in q)ti[tp[tn]||tn]=q[tn]},tu.getPosition=function(){var q=getComputedStyle(this.element),ti=this.layout._getOption("originLeft"),tn=this.layout._getOption("originTop"),ts=q[ti?"left":"right"],ta=q[tn?"top":"bottom"],tl=this.layout.size,th=-1!=ts.indexOf("%")?parseFloat(ts)/100*tl.width:parseInt(ts,10),td=-1!=ta.indexOf("%")?parseFloat(ta)/100*tl.height:parseInt(ta,10);th=isNaN(th)?0:th,td=isNaN(td)?0:td,th-=ti?tl.paddingLeft:tl.paddingRight,td-=tn?tl.paddingTop:tl.paddingBottom,this.position.x=th,this.position.y=td},tu.layoutPosition=function(){var q=this.layout.size,ti={},tn=this.layout._getOption("originLeft"),ts=this.layout._getOption("originTop"),ta=tn?"paddingLeft":"paddingRight",tl=tn?"left":"right",th=tn?"right":"left",td=this.position.x+q[ta];ti[tl]=this.getXValue(td),ti[th]="";var tc=ts?"paddingTop":"paddingBottom",tp=ts?"top":"bottom",tu=ts?"bottom":"top",tf=this.position.y+q[tc];ti[tp]=this.getYValue(tf),ti[tu]="",this.css(ti),this.emitEvent("layout",[this])},tu.getXValue=function(q){var ti=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!ti?q/this.layout.size.width*100+"%":q+"px"},tu.getYValue=function(q){var ti=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&ti?q/this.layout.size.height*100+"%":q+"px"},tu._transitionTo=function(q,ti){this.getPosition();var tn=this.position.x,ts=this.position.y,ta=parseInt(q,10),tl=parseInt(ti,10),th=ta===this.position.x&&tl===this.position.y;if(this.setPosition(q,ti),th&&!this.isTransitioning)return void this.layoutPosition();var td=q-tn,tc=ti-ts,tp={};tp.transform=this.getTranslate(td,tc),this.transition({to:tp,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},tu.getTranslate=function(q,ti){var tn=this.layout._getOption("originLeft"),ts=this.layout._getOption("originTop");return"translate3d("+(q=tn?q:-q)+"px, "+(ti=ts?ti:-ti)+"px, 0)"},tu.goTo=function(q,ti){this.setPosition(q,ti),this.layoutPosition()},tu.moveTo=tu._transitionTo,tu.setPosition=function(q,ti){this.position.x=parseInt(q,10),this.position.y=parseInt(ti,10)},tu._nonTransition=function(q){for(var ti in this.css(q.to),q.isCleaning&&this._removeStyles(q.to),q.onTransitionEnd)q.onTransitionEnd[ti].call(this)},tu.transition=function(q){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(q);var ti=this._transn;for(var tn in q.onTransitionEnd)ti.onEnd[tn]=q.onTransitionEnd[tn];for(tn in q.to)ti.ingProperties[tn]=!0,q.isCleaning&&(ti.clean[tn]=!0);if(q.from){this.css(q.from);var ts=this.element.offsetHeight;ts=null}this.enableTransition(q.to),this.css(q.to),this.isTransitioning=!0};
19var tf="opacity,"+ta(td);tu.enableTransition=function(){if(!this.isTransitioning){var q=this.layout.options.transitionDuration;q="number"==typeof q?q+"ms":q,this.css({transitionProperty:tf,transitionDuration:q,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(tc,this,!1)}},tu.onwebkitTransitionEnd=function(q){this.ontransitionend(q)},tu.onotransitionend=function(q){this.ontransitionend(q)};var tm={"-webkit-transform":"transform"};tu.ontransitionend=function(q){if(q.target===this.element){var ti=this._transn,ts=tm[q.propertyName]||q.propertyName;delete ti.ingProperties[ts],tn(ti.ingProperties)&&this.disableTransition(),ts in ti.clean&&(this.element.style[q.propertyName]="",delete ti.clean[ts]),ts in ti.onEnd&&(ti.onEnd[ts].call(this),delete ti.onEnd[ts]),this.emitEvent("transitionEnd",[this])}},tu.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(tc,this,!1),this.isTransitioning=!1},tu._removeStyles=function(q){var ti={};for(var tn in q)ti[tn]="";this.css(ti)};var tg={transitionProperty:"",transitionDuration:"",transitionDelay:""};return tu.removeTransitionStyles=function(){this.css(tg)},tu.stagger=function(q){q=isNaN(q)?0:q,this.staggerDelay=q+"ms"},tu.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},tu.remove=function(){return th&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},tu.reveal=function(){delete this.isHidden,this.css({display:""});var q=this.layout.options,ti={};ti[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:q.hiddenStyle,to:q.visibleStyle,isCleaning:!0,onTransitionEnd:ti})},tu.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},tu.getHideRevealTransitionEndProperty=function(q){var ti=this.layout.options[q];if(ti.opacity)return"opacity";for(var tn in ti)return tn},tu.hide=function(){this.isHidden=!0,this.css({display:""});var q=this.layout.options,ti={};ti[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:q.visibleStyle,to:q.hiddenStyle,isCleaning:!0,onTransitionEnd:ti})},tu.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},tu.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},ts}),function(q,ti){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(tn,ts,ta,tl){return ti(q,tn,ts,ta,tl)}):"object"==typeof module&&module.exports?module.exports=ti(q,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):q.Outlayer=ti(q,q.EvEmitter,q.getSize,q.fizzyUIUtils,q.Outlayer.Item)}(window,function(q,ti,tn,ts,ta){"use strict";function tl(q,ti){var tn=ts.getQueryElement(q);if(!tn)return void(tc&&tc.error("Bad element for "+this.constructor.namespace+": "+(tn||q)));this.element=tn,tp&&(this.$element=tp(this.element)),this.options=ts.extend({},this.constructor.defaults),this.option(ti);var ta=++tf;this.element.outlayerGUID=ta,tm[ta]=this,this._create(),this._getOption("initLayout")&&this.layout()}function th(q){function ti(){q.apply(this,arguments)}return ti.prototype=Object.create(q.prototype),ti.prototype.constructor=ti,ti}function td(q){if("number"==typeof q)return q;var ti=q.match(/(^\d*\.?\d*)(\w*)/),tn=ti&&ti[1],ts=ti&&ti[2];return tn.length?(tn=parseFloat(tn))*(tv[ts]||1):0}var tc=q.console,tp=q.jQuery,tu=function(){},tf=0,tm={};tl.namespace="outlayer",tl.Item=ta,tl.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var tg=tl.prototype;ts.extend(tg,ti.prototype),tg.option=function(q){ts.extend(this.options,q)},tg._getOption=function(q){var ti=this.constructor.compatOptions[q];return ti&&void 0!==this.options[ti]?this.options[ti]:this.options[q]},tl.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},tg._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),ts.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},tg.reloadItems=function(){this.items=this._itemize(this.element.children)},tg._itemize=function(q){for(var ti=this._filterFindItemElements(q),tn=this.constructor.Item,ts=[],ta=0;ta<ti.length;ta++){var tl=ti[ta],th=new tn(tl,this);ts.push(th)}return ts},tg._filterFindItemElements=function(q){return ts.filterFindElements(q,this.options.itemSelector)},tg.getItemElements=function(){return this.items.map(function(q){return q.element})},tg.layout=function(){this._resetLayout(),this._manageStamps();var q=this._getOption("layoutInstant"),ti=void 0!==q?q:!this._isLayoutInited;this.layoutItems(this.items,ti),this._isLayoutInited=!0}
vendor: 5,023 bytes, line 19
19,tg._init=tg.layout,tg._resetLayout=function(){this.getSize()},tg.getSize=function(){this.size=tn(this.element)},tg._getMeasurement=function(q,ti){var ts,ta=this.options[q];ta?("string"==typeof ta?ts=this.element.querySelector(ta):ta instanceof HTMLElement&&(ts=ta),this[q]=ts?tn(ts)[ti]:ta):this[q]=0},tg.layoutItems=function(q,ti){q=this._getItemsForLayout(q),this._layoutItems(q,ti),this._postLayout()},tg._getItemsForLayout=function(q){return q.filter(function(q){return!q.isIgnored})},tg._layoutItems=function(q,ti){if(this._emitCompleteOnItems("layout",q),q&&q.length){var tn=[];q.forEach(function(q){var ts=this._getItemLayoutPosition(q);ts.item=q,ts.isInstant=ti||q.isLayoutInstant,tn.push(ts)},this),this._processLayoutQueue(tn)}},tg._getItemLayoutPosition=function(){return{x:0,y:0}},tg._processLayoutQueue=function(q){this.updateStagger(),q.forEach(function(q,ti){this._positionItem(q.item,q.x,q.y,q.isInstant,ti)},this)},tg.updateStagger=function(){var q=this.options.stagger;return null==q?void(this.stagger=0):(this.stagger=td(q),this.stagger)},tg._positionItem=function(q,ti,tn,ts,ta){ts?q.goTo(ti,tn):(q.stagger(ta*this.stagger),q.moveTo(ti,tn))},tg._postLayout=function(){this.resizeContainer()},tg.resizeContainer=function(){if(this._getOption("resizeContainer")){var q=this._getContainerSize();q&&(this._setContainerMeasure(q.width,!0),this._setContainerMeasure(q.height,!1))}},tg._getContainerSize=tu,tg._setContainerMeasure=function(q,ti){if(void 0!==q){var tn=this.size;tn.isBorderBox&&(q+=ti?tn.paddingLeft+tn.paddingRight+tn.borderLeftWidth+tn.borderRightWidth:tn.paddingBottom+tn.paddingTop+tn.borderTopWidth+tn.borderBottomWidth),q=Math.max(q,0),this.element.style[ti?"width":"height"]=q+"px"}},tg._emitCompleteOnItems=function(q,ti){function tn(){ta.dispatchEvent(q+"Complete",null,[ti])}function ts(){++th==tl&&tn()}var ta=this,tl=ti.length;if(!ti||!tl)return void tn();var th=0;ti.forEach(function(ti){ti.once(q,ts)})},tg.dispatchEvent=function(q,ti,tn){var ts=ti?[ti].concat(tn):tn;if(this.emitEvent(q,ts),tp){if(this.$element=this.$element||tp(this.element),ti){var ta=tp.Event(ti);ta.type=q,this.$element.trigger(ta,tn)}else this.$element.trigger(q,tn)}},tg.ignore=function(q){var ti=this.getItem(q);ti&&(ti.isIgnored=!0)},tg.unignore=function(q){var ti=this.getItem(q);ti&&delete ti.isIgnored},tg.stamp=function(q){(q=this._find(q))&&(this.stamps=this.stamps.concat(q),q.forEach(this.ignore,this))},tg.unstamp=function(q){(q=this._find(q))&&q.forEach(function(q){ts.removeFrom(this.stamps,q),this.unignore(q)},this)},tg._find=function(q){return q?("string"==typeof q&&(q=this.element.querySelectorAll(q)),q=ts.makeArray(q)):void 0},tg._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},tg._getBoundingRect=function(){var q=this.element.getBoundingClientRect(),ti=this.size;this._boundingRect={left:q.left+ti.paddingLeft+ti.borderLeftWidth,top:q.top+ti.paddingTop+ti.borderTopWidth,right:q.right-(ti.paddingRight+ti.borderRightWidth),bottom:q.bottom-(ti.paddingBottom+ti.borderBottomWidth)}},tg._manageStamp=tu,tg._getElementOffset=function(q){var ti=q.getBoundingClientRect(),ts=this._boundingRect,ta=tn(q);return{left:ti.left-ts.left-ta.marginLeft,top:ti.top-ts.top-ta.marginTop,right:ts.right-ti.right-ta.marginRight,bottom:ts.bottom-ti.bottom-ta.marginBottom}},tg.handleEvent=ts.handleEvent,tg.bindResize=function(){q.addEventListener("resize",this),this.isResizeBound=!0},tg.unbindResize=function(){q.removeEventListener("resize",this),this.isResizeBound=!1},tg.onresize=function(){this.resize()},ts.debounceMethod(tl,"onresize",100),tg.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},tg.needsResizeLayout=function(){var q=tn(this.element);return this.size&&q&&q.innerWidth!==this.size.innerWidth},tg.addItems=function(q){var ti=this._itemize(q);return ti.length&&(this.items=this.items.concat(ti)),ti},tg.appended=function(q){var ti=this.addItems(q);ti.length&&(this.layoutItems(ti,!0),this.reveal(ti))},tg.prepended=function(q){var ti=this._itemize(q);if(ti.length){var tn=this.items.slice(0);this.items=ti.concat(tn),this._resetLayout(),this._manageStamps(),this.layoutItems(ti,!0),this.reveal(ti),this.layoutItems(tn)}},tg.reveal=function(q){if(this._emitCompleteOnItems("reveal",q),q&&q.length){var ti=this.updateStagger();q.forEach(function(q,tn){q.stagger(tn*ti),q.reveal()})}},tg.hide=function(q){if(this._emitCompleteOnItems("hide",q),q&&q.length){var ti=this.updateStagger();q.forEach(function(q,tn){q.stagger(tn*ti),q.hide()})}},tg.revealItemElements=function(q){var ti=this.getItems(q);this.reveal(ti)},tg.hideItemElements=function(q){var ti=this.getItems(q);this.hide(ti)},tg.getItem=function(q){for(var ti=0;ti<this.items.length;ti++){var tn=this.items[ti];if(tn.element==q)return tn}},tg.getItems=function(q){q=ts.makeArray(q);var ti=[];return q.forEach(function(q){var tn=this.getItem(q);tn&&ti.push(tn)},this),ti},tg.remove=function(q){var ti=this.getItems(q);
19this._emitCompleteOnItems("remove",ti),ti&&ti.length&&ti.forEach(function(q){q.remove(),ts.removeFrom(this.items,q)},this)},tg.destroy=function(){var q=this.element.style;q.height="",q.position="",q.width="",this.items.forEach(function(q){q.destroy()}),this.unbindResize();var ti=this.element.outlayerGUID;delete tm[ti],delete this.element.outlayerGUID,tp&&tp.removeData(this.element,this.constructor.namespace)},tl.data=function(q){var ti=(q=ts.getQueryElement(q))&&q.outlayerGUID;return ti&&tm[ti]},tl.create=function(q,ti){var tn=th(tl);return tn.defaults=ts.extend({},tl.defaults),ts.extend(tn.defaults,ti),tn.compatOptions=ts.extend({},tl.compatOptions),tn.namespace=q,tn.data=tl.data,tn.Item=th(ta),ts.htmlInit(tn,q),tp&&tp.bridget&&tp.bridget(q,tn),tn};var tv={ms:1,s:1e3};return tl.Item=ta,tl}),function(q,ti){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],ti):"object"==typeof module&&module.exports?module.exports=ti(require("outlayer"),require("get-size")):q.Masonry=ti(q.Outlayer,q.getSize)}(window,function(q,ti){var tn=q.create("masonry");return tn.compatOptions.fitWidth="isFitWidth",tn.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var q=0;q<this.cols;q++)this.colYs.push(0);this.maxY=0},tn.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var q=this.items[0],tn=q&&q.element;this.columnWidth=tn&&ti(tn).outerWidth||this.containerWidth}var ts=this.columnWidth+=this.gutter,ta=this.containerWidth+this.gutter,tl=ta/ts,th=ts-ta%ts;tl=Math[th&&1>th?"round":"floor"](tl),this.cols=Math.max(tl,1)},tn.prototype.getContainerWidth=function(){var q=ti(this._getOption("fitWidth")?this.element.parentNode:this.element);this.containerWidth=q&&q.innerWidth},tn.prototype._getItemLayoutPosition=function(q){q.getSize();var ti=q.size.outerWidth%this.columnWidth,tn=Math[ti&&1>ti?"round":"ceil"](q.size.outerWidth/this.columnWidth);tn=Math.min(tn,this.cols);for(var ts=this._getColGroup(tn),ta=Math.min.apply(Math,ts),tl=ts.indexOf(ta),th={x:this.columnWidth*tl,y:ta},td=ta+q.size.outerHeight,tc=this.cols+1-ts.length,tp=0;tc>tp;tp++)this.colYs[tl+tp]=td;return th},tn.prototype._getColGroup=function(q){if(2>q)return this.colYs;for(var ti=[],tn=this.cols+1-q,ts=0;tn>ts;ts++){var ta=this.colYs.slice(ts,ts+q);ti[ts]=Math.max.apply(Math,ta)}return ti},tn.prototype._manageStamp=function(q){var tn=ti(q),ts=this._getElementOffset(q),ta=this._getOption("originLeft")?ts.left:ts.right,tl=ta+tn.outerWidth,th=Math.floor(ta/this.columnWidth);th=Math.max(0,th);var td=Math.floor(tl/this.columnWidth);td-=tl%this.columnWidth?0:1,td=Math.min(this.cols-1,td);for(var tc=this._getOption("originTop"),tp=(tc?ts.top:ts.bottom)+tn.outerHeight,tu=th;td>=tu;tu++)this.colYs[tu]=Math.max(tp,this.colYs[tu])},tn.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var q={height:this.maxY};return this._getOption("fitWidth")&&(q.width=this._getContainerFitWidth()),q},tn.prototype._getContainerFitWidth=function(){for(var q=0,ti=this.cols;--ti&&0===this.colYs[ti];)q++;return(this.cols-q)*this.columnWidth-this.gutter},tn.prototype.needsResizeLayout=function(){var q=this.containerWidth;return this.getContainerWidth(),q!=this.containerWidth},tn}),function(q){"use strict";var ti=function(ti,tn){this.$el=q(ti),this.options=tn,this.init()};ti.prototype.init=function(){var q=this.$el.masonry(this.options);q.imagesLoaded().progress(function(){q.masonry("layout")})},ti.DEFAULTS={itemSelector:".grid-item",percentPosition:!0};var tn=q.fn.masonryFunction;q.fn.masonryFunction=function(tn){var ts=Array.prototype.slice.call(arguments,1),ta=void 0;return this.each(function(){var tl=q(this),th=q.extend({},ti.DEFAULTS,tl.data(),"object"==typeof tn&&tn),td=new ti(this,th);if("string"==typeof tn&&(ta=td[tn].apply(td,ts)),void 0!==ta)return!1}),ta||this},q.fn.masonryFunction.Constructor=ti,q.fn.masonryFunction.noConflict=function(){return q.fn.masonryFunction=tn,this}}(window.jQuery),!hs){var hs={lang:{cssDirection:"ltr",loadingText:"Loading...",loadingTitle:"Click to cancel",focusTitle:"Click to bring to front",fullExpandTitle:"Expand to actual size (f)",creditsText:"Powered by <i>Highslide JS</i>
19",creditsTitle:"Go to the Highslide JS homepage",previousText:"Previous",nextText:"Next",moveText:"Move",closeText:"Close",closeTitle:"Close (esc)",resizeTitle:"Resize",playText:"Play",playTitle:"Play slideshow (spacebar)",pauseText:"Pause",pauseTitle:"Pause slideshow (spacebar)",previousTitle:"Previous (arrow left)",nextTitle:"Next (arrow right)",moveTitle:"Move",fullExpandText:"1:1",number:"Image %1 of %2",restoreTitle:"Click to close image, click and drag to move. Use arrow keys for next and previous."},graphicsDir:"highslide/graphics/",expandCursor:"zoomin.cur",restoreCursor:"zoomout.cur",expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:.75,allowMultipleInstances:!0,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:!1,fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:!0,creditsHref:"http://highslide.com/",creditsTarget:"_self",enableKeyListener:!0,openerTagNames:["a","area"],transitions:[],transitionDuration:250,dimmingOpacity:0,dimmingDuration:50,allowWidthReduction:!1,allowHeightReduction:!0,preserveContent:!0,objectLoadTime:"before",cacheAjax:!0,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:!0,minWidth:200,minHeight:200,allowSizeReduction:!0,outlineType:"drop-shadow",skin:{controls:'<div class="highslide-controls"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}"><span>{hs.lang.previousText}</span></a></li><li class="highslide-play"><a href="#" title="{hs.lang.playTitle}"><span>{hs.lang.playText}</span></a></li><li class="highslide-pause"><a href="#" title="{hs.lang.pauseTitle}"><span>{hs.lang.pauseText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}"><span>{hs.lang.moveText}</span></a></li><li class="highslide-full-expand"><a href="#" title="{hs.lang.fullExpandTitle}"><span>{hs.lang.fullExpandText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" ><span>{hs.lang.closeText}</span></a></li></ul></div>',contentWrapper:'<div class="highslide-header"><ul><li class="highslide-previous"><a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)"><span>{hs.lang.previousText}</span></a></li><li class="highslide-next"><a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)"><span>{hs.lang.nextText}</span></a></li><li class="highslide-move"><a href="#" title="{hs.lang.moveTitle}" onclick="return false"><span>{hs.lang.moveText}</span></a></li><li class="highslide-close"><a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)"><span>{hs.lang.closeText}</span></a></li></ul></div><div class="highslide-body"></div><div class="highslide-footer"><div><span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span></div></div>'},preloadTheseImages:[],continuePreloading:!0,expanders:[],overrides:["allowSizeReduction","useBox","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","creditsPosition","dragByHeading","autoplay","numberPosition","transitions","dimmingOpacity","width","height","contentId","allowWidthReduction","allowHeightReduction","preserveContent","maincontentId","maincontentText","maincontentEval","objectType","cacheAjax","objectWidth","objectHeight","objectLoadTime","swfOptions","wrapperClassName","minWidth","minHeight","maxWidth","maxHeight","pageOrigin","slideshowGroup","easing","easingClose","fadeInOut","src"],overlays:[],idCounter:0,oPos:{x:["leftpanel","left","center","right","rightpanel"],y:["above","top","middle","bottom","below"]},mouse:{},headingOverlay:{},captionOverlay:{},swfOptions:{flashvars:{},params:{},attributes:{}},timers:[],slideshows:[],tabbables:[],pendingOutlines:{},sleeping:[],preloadTheseAjax:[],cacheBindings:[],cachedGets:{},clones:{},onReady:[],nextActive:0,uaVersion:document.documentMode||parseFloat((navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1]),ie:document.all&&!window.opera,safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),$:function(q){if(q)return document.getElementById(q)},push:function(q,ti){q[q.length]=ti},createElement:function(q,ti,tn,ts,ta){var tl=document.createElement(q);return ti&&hs.extend(tl,ti),ta&&hs.setStyles(tl,{padding:0,border:"none",margin:0}),tn&&hs.setStyles(tl,tn),ts&&ts.appendChild(tl),tl},extend:function(q,ti){for(var tn in ti)q[tn]=ti[tn];return q},setStyles:function(q,ti){for(var tn in ti)hs.ieLt9&&"opacity"==tn?ti[tn]>.99?q.style.removeAttribute("filter"):q.style.filter="alpha(opacity="+100*ti[tn]+")":q.style[tn]=ti[tn]},animate:function(q,ti,tn){var ts,ta,tl;if("object"!=typeof tn||null===tn){var th=arguments;tn={duration:th[2],easing:th[3],complete:th[4]}}for(var td in"number"!=typeof tn.duration&&(tn.duration=250),tn.easing=Math[tn.easing]||Math.easeInQuad,tn.curAnim=hs.extend({},ti),ti){var tc=new hs.fx(q,tn,td);ts=parseFloat(hs.css(q,td))||0,ta=parseFloat(ti[td]),tl="opacity"!=td?"px":"",tc.custom(ts,ta,tl)}},css:function(q,ti){if(q.style[ti])return q.style[ti];if(document.defaultView)return document.defaultView.getComputedStyle(q,null).getPropertyValue(ti);"opacity"==ti&&(ti="filter");var tn=q.currentStyle[ti.replace(/\-(\w)/g,function(q,ti){return ti.toUpperCase()})];return"filter"==ti&&(tn=tn.replace(/alpha\(opacity=([0-9]+)\)/,function(q,ti){return ti/100})),""===tn?1:tn},getPageSize:function(){var q=document,ti=(window,q.compatMode&&"BackCompat"!=q.compatMode?q.documentElement:q.body),tn=hs.ie&&(hs.uaVersion<9||"undefined"==typeof pageXOffset),ts=tn?ti.clientWidth:q.documentElement.clientWidth||self.innerWidth,ta=tn?ti.clientHeight:self.innerHe
19ight;return hs.page={width:ts,height:ta,scrollLeft:tn?ti.scrollLeft:pageXOffset,scrollTop:tn?ti.scrollTop:pageYOffset},hs.page},getPosition:function(q){if(/area/i.test(q.tagName))for(var ti=document.getElementsByTagName("img"),tn=0;tn<ti.length;tn++){var ts=ti[tn].useMap;if(ts&&ts.replace(/^.*?#/,"")==q.parentNode.name){q=ti[tn];break}}for(var ta={x:q.offsetLeft,y:q.offsetTop};q.offsetParent;)q=q.offsetParent,ta.x+=q.offsetLeft,ta.y+=q.offsetTop,q!=document.body&&q!=document.documentElement&&(ta.x-=q.scrollLeft,ta.y-=q.scrollTop);return ta},expand:function(q,ti,tn,ts){if(hs.params=ti,q||(q=hs.createElement("a",null,{display:"none"},hs.container)),"function"==typeof q.getParams)return ti;if("html"==ts){for(var ta=0;ta<hs.sleeping.length;ta++)if(hs.sleeping[ta]&&hs.sleeping[ta].a==q)return hs.sleeping[ta].awake(),hs.sleeping[ta]=null,!1;hs.hasHtmlExpanders=!0}try{return new hs.Expander(q,ti,tn,ts),!1}catch(q){return!0}},makeVideoId:function(){return"vidid"+Math.floor(Date.now()/1e3)},createVideoHtml:function(q){var ti,tn;return tn=(ti=$(window).width()/2)/(16/9),'<video id="'+q+'" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width=" '+ti+'" height=" '+tn+'"></video>'},loadVideo:function(q,ti){var tn={};tn.src=q.videoUrl,"youtube"==q.host&&(tn.techOrder=["youtube"],tn.sources=[{type:"video/youtube",src:q.videoUrl}]),"vimeo"==q.host&&(tn.techOrder=["vimeo"],tn.sources=[{type:"video/vimeo",src:q.videoUrl}]),"local"==q.host&&(tn.sources=[{src:q.videoUrl}]),videojs($("#"+ti)[0],tn,function(){})},htmlExpand:function(q,ti,tn){return hs.expand(q,ti,tn,"html")},getSelfRendered:function(){return hs.createElement("div",{className:"highslide-html-content",innerHTML:hs.replaceLang(hs.skin.contentWrapper)})},getElementByClass:function(q,ti,tn){for(var ts=q.getElementsByTagName(ti),ta=0;ta<ts.length;ta++)if(new RegExp(tn).test(ts[ta].className))return ts[ta];return null},replaceLang:function(q){q=q.replace(/\s/g," ");var ti,tn=/{hs\.lang\.([^}]+)\}/g,ts=q.match(tn);if(ts)for(var ta=0;ta<ts.length;ta++)ti=ts[ta].replace(tn,"$1"),void 0!==hs.lang[ti]&&(q=q.replace(ts[ta],hs.lang[ti]));return q},setClickEvents:function(){for(var q=document.getElementsByTagName("a"),ti=0;ti<q.length;ti++){var tn=hs.isUnobtrusiveAnchor(q[ti]);tn&&!q[ti].hsHasSetClick&&(!function(){var ts=tn;hs.fireEvent(hs,"onSetClickEvent",{element:q[ti],type:ts})&&(q[ti].onclick="image"==tn?function(){return hs.expand(this)}:function(){return hs.htmlExpand(this,{objectType:ts})})}(),q[ti].hsHasSetClick=!0)}hs.getAnchors()},isUnobtrusiveAnchor:function(q){return"highslide"==q.rel?"image":"highslide-ajax"==q.rel?"ajax":"highslide-iframe"==q.rel?"iframe":"highslide-swf"==q.rel?"swf":void 0},getCacheBinding:function(q){for(var ti=0;ti<hs.cacheBindings.length;ti++)if(hs.cacheBindings[ti][0]==q){var tn=hs.cacheBindings[ti][1];return hs.cacheBindings[ti][1]=tn.cloneNode(1),tn}return null},preloadAjax:function(q){for(var ti=hs.getAnchors(),tn=0;tn<ti.htmls.length;tn++){var ts=ti.htmls[tn];"ajax"==hs.getParam(ts,"objectType")&&hs.getParam(ts,"cacheAjax")&&hs.push(hs.preloadTheseAjax,ts)}hs.preloadAjaxElement(0)},preloadAjaxElement:function(q){if(hs.preloadTheseAjax[q]){var ti=hs.preloadTheseAjax[q],tn=hs.getNode(hs.getParam(ti,"contentId"));tn||(tn=hs.getSelfRendered());var ts=new hs.Ajax(ti,tn,1);ts.onError=function(){},ts.onLoad=function(){hs.push(hs.cacheBindings,[ti,tn]),hs.preloadAjaxElement(q+1)},ts.run()}},focusTopmost:function(){for(var q,ti,tn=0,ts=-1,ta=hs.expanders,tl=0;tl<ta.length;tl++)(q=ta[tl])&&(ti=q.wrapper.style.zIndex)&&ti>tn&&(tn=ti,ts=tl);-1==ts?hs.focusKey=-1:ta[ts].focus()},getParam:function(q,ti){q.getParams=q.onclick;var tn=q.getParams?q.getParams():null;return q.getParams=null,tn&&void 0!==tn[ti]?tn[ti]:void 0!==hs[ti]?hs[ti]:null},getSrc:function(q){return hs.getParam(q,"src")||q.href},getNode:function(q){var ti=hs.$(q),tn=hs.clones[q];return ti||tn?tn?tn.cloneNode(!0):((tn=ti.cloneNode(!0)).id="",hs.clones[q]=tn,ti):null},discardElement:function(q){q&&hs.garbageBin.appendChild(q),hs.garbageBin.innerHTML=""},dim:function(q){if(!hs.dimmer&&(ts=!0,hs.dimmer=hs.createElement("div",{className:"highsli
19de-dimming highslide-viewport-size",owner:"",onclick:function(){hs.fireEvent(hs,"onDimmerClick")&&hs.close()}},{visibility:"visible",opacity:0},hs.container,!0),/(Android|iPad|iPhone|iPod)/.test(navigator.userAgent))){var ti=document.body;function tn(){hs.setStyles(hs.dimmer,{width:ti.scrollWidth+"px",height:ti.scrollHeight+"px"})}tn(),hs.addEventListener(window,"resize",tn)}hs.dimmer.style.display="";var ts=""==hs.dimmer.owner;hs.dimmer.owner+="|"+q.key,ts&&(hs.geckoMac&&hs.dimmingGeckoFix?hs.setStyles(hs.dimmer,{background:"url("+hs.graphicsDir+"geckodimmer.png)",opacity:1}):hs.animate(hs.dimmer,{opacity:q.dimmingOpacity},hs.dimmingDuration))},undim:function(q){hs.dimmer&&(void 0!==q&&(hs.dimmer.owner=hs.dimmer.owner.replace("|"+q,"")),void 0!==q&&""!=hs.dimmer.owner||hs.upcoming&&hs.getParam(hs.upcoming,"dimmingOpacity")||(hs.geckoMac&&hs.dimmingGeckoFix?hs.dimmer.style.display="none":hs.animate(hs.dimmer,{opacity:0},hs.dimmingDuration,null,function(){hs.dimmer.style.display="none"})))},transit:function(q,ti){var tn=ti||hs.getExpander();if(ti=tn,hs.upcoming)return!1;hs.last=tn,hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{hs.upcoming=q,q.onclick()}catch(q){hs.last=hs.upcoming=null}try{q&&"crossfade"==ti.transitions[1]||ti.close()}catch(q){}return!1},previousOrNext:function(q,ti){var tn=hs.getExpander(q);return!!tn&&hs.transit(tn.getAdjacentAnchor(ti),tn)},previous:function(q){return hs.previousOrNext(q,-1)},next:function(q){return hs.previousOrNext(q,1)},keyHandler:function(q){if(q||(q=window.event),q.target||(q.target=q.srcElement),void 0!==q.target.form||!hs.fireEvent(hs,"onKeyDown",q))return!0;var ti=hs.getExpander(),tn=null;switch(q.keyCode){case 70:return ti&&ti.doFullExpand(),!0;case 32:tn=2;break;case 34:case 39:case 40:tn=1;break;case 8:case 33:case 37:case 38:tn=-1;break;case 27:ti.close();case 13:tn=0}if(null!==tn){if(2!=tn&&hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler),!hs.enableKeyListener)return!0;if(q.preventDefault?q.preventDefault():q.returnValue=!1,ti)return 0==tn?$(":focus").click():2==tn?ti.slideshow&&ti.slideshow.hitSpace():(ti.slideshow&&ti.slideshow.pause(),hs.previousOrNext(ti.key,tn)),!1}return!0},registerOverlay:function(q){hs.push(hs.overlays,hs.extend(q,{hsId:"hsId"+hs.idCounter++}))},addSlideshow:function(q){var ti=q.slideshowGroup;if("object"==typeof ti)for(var tn=0;tn<ti.length;tn++){var ts={};for(var ta in q)ts[ta]=q[ta];ts.slideshowGroup=ti[tn],hs.push(hs.slideshows,ts)}else hs.push(hs.slideshows,q)},getWrapperKey:function(q,ti){var tn,ts=/^highslide-wrapper-([0-9]+)$/;for(tn=q;tn.parentNode;){if(void 0!==tn.hsKey)return tn.hsKey;if(tn.id&&ts.test(tn.id))return tn.id.replace(ts,"$1");tn=tn.parentNode}if(!ti)for(tn=q;tn.parentNode;){if(tn.tagName&&hs.isHsAnchor(tn))for(var ta=0;ta<hs.expanders.length;ta++){var tl=hs.expanders[ta];if(tl&&tl.a==tn)return ta}tn=tn.parentNode}return null},getExpander:function(q,ti){return void 0===q?hs.expanders[hs.focusKey]||null:"number"==typeof q?hs.expanders[q]||null:("string"==typeof q&&(q=hs.$(q)),hs.expanders[hs.getWrapperKey(q,ti)]||null)},isHsAnchor:function(q){return q.onclick&&q.onclick.toString().replace(/\s/g," ").match(/hs.(htmlE|e)xpand/)},reOrder:function(){for(var q=0;q<hs.expanders.length;q++)hs.expanders[q]&&hs.expanders[q].isExpanded&&hs.focusTopmost()},fireEvent:function(q,ti,tn){return!q||!q[ti]||!1!==q[ti](q,tn)},mouseClickHandler:function(q){if(q||(q=window.event),q.button>1)return!0;q.target||(q.target=q.srcElement);for(var ti=q.target;ti.parentNode&&!/highslide-(image|move|html|resize)/.test(ti.className);)ti=ti.parentNode;var tn=hs.getExpander(ti);if(tn&&(tn.isClosing||!tn.isExpanded))return!0;if(tn&&"mousedown"==q.type){if(q.target.form)return!0;var ts=ti.className.match(/highslide-(image|move|resize)/);ts?(hs.dragArgs={exp:tn,type:ts[1],left:tn.x.pos,width:tn.x.size,top:tn.y.pos,height:tn.y.size,clickX:q.clientX,clickY:q.clientY},hs.addEventListener(document,"mousemove",hs.dragHandler),q.preventDefault&&q.preventDefault(),/highslide-(image|html)-blur/.test(tn.c
19ontent.className)&&(tn.focus(),hs.hasFocused=!0)):/highslide-html/.test(ti.className)&&hs.focusKey!=tn.key&&(tn.focus(),tn.doShowHide("hidden"))}else if("mouseup"==q.type){if(hs.removeEventListener(document,"mousemove",hs.dragHandler),hs.dragArgs){hs.styleRestoreCursor&&"image"==hs.dragArgs.type&&(hs.dragArgs.exp.content.style.cursor=hs.styleRestoreCursor);var ta=hs.dragArgs.hasDragged;ta||hs.hasFocused||/(move|resize)/.test(hs.dragArgs.type)?(ta||!ta&&hs.hasHtmlExpanders)&&hs.dragArgs.exp.doShowHide("hidden"):hs.fireEvent(tn,"onImageClick")&&tn.close(),hs.dragArgs.exp.releaseMask&&(hs.dragArgs.exp.releaseMask.style.display="none"),ta&&hs.fireEvent(hs.dragArgs.exp,"onDrop",hs.dragArgs),hs.hasFocused=!1,hs.dragArgs=null}else/highslide-image-blur/.test(ti.className)&&(ti.style.cursor=hs.styleRestoreCursor)}return!1},dragHandler:function(q){if(!hs.dragArgs)return!0;q||(q=window.event);var ti=hs.dragArgs,tn=ti.exp;tn.iframe&&(tn.releaseMask||(tn.releaseMask=hs.createElement("div",null,{position:"absolute",width:tn.x.size+"px",height:tn.y.size+"px",left:tn.x.cb+"px",top:tn.y.cb+"px",zIndex:4,background:hs.ieLt9?"white":"none",opacity:.01},tn.wrapper,!0)),"none"==tn.releaseMask.style.display&&(tn.releaseMask.style.display="")),ti.dX=q.clientX-ti.clickX,ti.dY=q.clientY-ti.clickY;var ts=Math.sqrt(Math.pow(ti.dX,2)+Math.pow(ti.dY,2));if(ti.hasDragged||(ti.hasDragged="image"!=ti.type&&ts>0||ts>(hs.dragSensitivity||5)),ti.hasDragged&&q.clientX>5&&q.clientY>5){if(!hs.fireEvent(tn,"onDrag",ti))return!1;"resize"==ti.type?tn.resize(ti):(tn.moveTo(ti.left+ti.dX,ti.top+ti.dY),"image"==ti.type&&(tn.content.style.cursor="move"))}return!1},wrapperMouseHandler:function(q){try{q||(q=window.event);var ti=/mouseover/i.test(q.type);q.target||(q.target=q.srcElement),q.relatedTarget||(q.relatedTarget=ti?q.fromElement:q.toElement);var tn=hs.getExpander(q.target);if(!tn.isExpanded||!tn||!q.relatedTarget||hs.getExpander(q.relatedTarget,!0)==tn||hs.dragArgs)return;hs.fireEvent(tn,ti?"onMouseOver":"onMouseOut",q);for(var ts=0;ts<tn.overlays.length;ts++)!function(){var q=hs.$("hsId"+tn.overlays[ts]);q&&q.hideOnMouseOut&&(ti&&hs.setStyles(q,{visibility:"visible",display:""}),hs.animate(q,{opacity:ti?q.opacity:0},q.dur))}()}catch(q){}},addEventListener:function(q,ti,tn){q==document&&"ready"==ti&&hs.push(hs.onReady,tn);try{q.addEventListener(ti,tn,!1)}catch(ts){try{q.detachEvent("on"+ti,tn),q.attachEvent("on"+ti,tn)}catch(ts){q["on"+ti]=tn}}},removeEventListener:function(q,ti,tn){try{q.removeEventListener(ti,tn,!1)}catch(ts){try{q.detachEvent("on"+ti,tn)}catch(tn){q["on"+ti]=null}}},preloadFullImage:function(q){if(hs.continuePreloading&&hs.preloadTheseImages[q]&&"undefined"!=hs.preloadTheseImages[q]){var ti=document.createElement("img");ti.onload=function(){ti=null,hs.preloadFullImage(q+1)},ti.src=hs.preloadTheseImages[q]}},preloadImages:function(q){q&&"object"!=typeof q&&(hs.numberOfImagesToPreload=q);for(var ti=hs.getAnchors(),tn=0;tn<ti.images.length&&tn<hs.numberOfImagesToPreload;tn++)hs.push(hs.preloadTheseImages,hs.getSrc(ti.images[tn]));hs.outlineType?new hs.Outline(hs.outlineType,function(){hs.preloadFullImage(0)}):hs.preloadFullImage(0),hs.restoreCursor&&hs.createElement("img",{src:hs.graphicsDir+hs.restoreCursor})},init:function(){if(!hs.container){for(var q in hs.ieLt7=hs.ie&&hs.uaVersion<7,hs.ieLt9=hs.ie&&hs.uaVersion<9,hs.getPageSize(),hs.ie6SSL=hs.ieLt7&&"https:"==location.protocol,hs.langDefaults)void 0!==hs[q]?hs.lang[q]=hs[q]:void 0===hs.lang[q]&&void 0!==hs.langDefaults[q]&&(hs.lang[q]=hs.langDefaults[q]);hs.container=hs.createElement("div",{className:"highslide-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:hs.zIndexCounter,direction:"ltr"},document.body,!0),hs.loading=hs.createElement("a",{className:"highslide-loading",title:hs.lang.loadingTitle,innerHTML:hs.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:hs.loadingOpacity,zIndex:1},hs.container),hs.garbageBin=hs.createElement("div",null,{display:"none"},hs.container),hs.viewport=hs.createElement("div",{className:"highslide-viewport highsli
19de-viewport-size"},{visibility:hs.safari&&hs.uaVersion<525?"visible":"hidden"},hs.container,1),hs.clearing=hs.createElement("div",null,{clear:"both",paddingTop:"1px"},null,!0),Math.linearTween=function(q,ti,tn,ts){return tn*q/ts+ti},Math.easeInQuad=function(q,ti,tn,ts){return tn*(q/=ts)*q+ti},Math.easeOutQuad=function(q,ti,tn,ts){return-tn*(q/=ts)*(q-2)+ti},hs.hideSelects=hs.ieLt7,hs.hideIframes=window.opera&&hs.uaVersion<9||"KDE"==navigator.vendor||hs.ieLt7&&hs.uaVersion<5.5,hs.fireEvent(this,"onActivate")}},ready:function(){if(!hs.isReady){hs.isReady=!0;for(var q=0;q<hs.onReady.length;q++)hs.onReady[q]()}},updateAnchors:function(){for(var q,ti,tn,ts=[],ta=[],tl=[],th={},td=0;td<hs.openerTagNames.length;td++){ti=document.getElementsByTagName(hs.openerTagNames[td]);for(var tc=0;tc<ti.length;tc++)if(q=ti[tc],tn=hs.isHsAnchor(q)){hs.push(ts,q),"hs.expand"==tn[0]?hs.push(ta,q):"hs.htmlExpand"==tn[0]&&hs.push(tl,q);var tp=hs.getParam(q,"slideshowGroup")||"none";th[tp]||(th[tp]=[]),hs.push(th[tp],q)}}return hs.anchors={all:ts,groups:th,images:ta,htmls:tl},hs.anchors},getAnchors:function(){return hs.anchors||hs.updateAnchors()},close:function(q){$("body").unbind("keydown");var ti=hs.getExpander(q);return ti&&ti.close(),!1}};hs.fx=function(q,ti,tn){this.options=ti,this.elem=q,this.prop=tn,ti.orig||(ti.orig={})},hs.fx.prototype={update:function(){(hs.fx.step[this.prop]||hs.fx.step._default)(this),this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(q,ti,tn){this.startTime=new Date().getTime(),this.start=q,this.end=ti,this.unit=tn,this.now=this.start,this.pos=this.state=0;var ts=this;function ta(q){return ts.step(q)}ta.elem=this.elem,ta()&&1==hs.timers.push(ta)&&(hs.timerId=setInterval(function(){for(var q=hs.timers,ti=0;ti<q.length;ti++)q[ti]()||q.splice(ti--,1);q.length||clearInterval(hs.timerId)},13))},step:function(q){var ti=new Date().getTime();if(q||ti>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;var tn=!0;for(var ts in this.options.curAnim)!0!==this.options.curAnim[ts]&&(tn=!1);return tn&&this.options.complete&&this.options.complete.call(this.elem),!1}var ta=ti-this.startTime;return this.state=ta/this.options.duration,this.pos=this.options.easing(ta,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),!0}},hs.extend(hs.fx,{step:{opacity:function(q){hs.setStyles(q.elem,{opacity:q.now})},_default:function(q){try{q.elem.style&&null!=q.elem.style[q.prop]?q.elem.style[q.prop]=q.now+q.unit:q.elem[q.prop]=q.now}catch(q){}}}}),hs.Outline=function(q,ti){if(this.onLoad=ti,this.outlineType=q,hs.uaVersion,this.hasAlphaImageLoader=hs.ie&&hs.uaVersion<7,!q){ti&&ti();return}hs.init(),this.table=hs.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},hs.container,!0);var tn,ts=hs.createElement("tbody",null,null,this.table,1);this.td=[];for(var ta=0;ta<=8;ta++){ta%3==0&&(tn=hs.createElement("tr",null,{height:"auto"},ts,!0)),this.td[ta]=hs.createElement("td",null,null,tn,!0);var tl=4!=ta?{lineHeight:0,fontSize:0}:{position:"relative"};hs.setStyles(this.td[ta],tl)}
19this.td[4].className=q+" highslide-outline",this.preloadGraphic()},hs.Outline.prototype={preloadGraphic:function(){var q=hs.graphicsDir+(hs.outlinesDir||"outlines/")+this.outlineType+".png",ti=hs.safari&&hs.uaVersion<525?hs.container:null;this.graphic=hs.createElement("img",null,{position:"absolute",top:"-9999px"},ti,!0);var tn=this;this.graphic.onload=function(){tn.onGraphicLoad()},this.graphic.src=q},onGraphicLoad:function(){for(var q=this.offset=this.graphic.width/4,ti=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],tn={height:2*q+"px",width:2*q+"px"},ts=0;ts<=8;ts++)if(ti[ts]){if(this.hasAlphaImageLoader){var ta=1==ts||7==ts?"100%":this.graphic.width+"px",tl=hs.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[ts],!0);hs.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:ta,height:this.graphic.height+"px",left:ti[ts][0]*q+"px",top:ti[ts][1]*q+"px"},tl,!0)}else hs.setStyles(this.td[ts],{background:"url("+this.graphic.src+") "+ti[ts][0]*q+"px "+ti[ts][1]*q+"px"});window.opera&&(3==ts||5==ts)&&hs.createElement("div",null,tn,this.td[ts],!0),hs.setStyles(this.td[ts],tn)}this.graphic=null,hs.pendingOutlines[this.outlineType]&&hs.pendingOutlines[this.outlineType].destroy(),hs.pendingOutlines[this.outlineType]=this,this.onLoad&&this.onLoad()},setPosition:function(q,ti,tn,ts,ta){var tl=this.exp,ti=(tl.wrapper.style,ti||0),q=q||{x:tl.x.pos+ti,y:tl.y.pos+ti,w:tl.x.get("wsize")-2*ti,h:tl.y.get("wsize")-2*ti};tn&&(this.table.style.visibility=q.h>=4*this.offset?"visible":"hidden"),hs.setStyles(this.table,{left:q.x-this.offset+"px",top:q.y-this.offset+"px",width:q.w+2*this.offset+"px"}),q.w-=2*this.offset,q.h-=2*this.offset,hs.setStyles(this.td[4],{width:q.w>=0?q.w+"px":0,height:q.h>=0?q.h+"px":0}),this.hasAlphaImageLoader&&(this.td[3].style.height=this.td[5].style.height=this.td[4].style.height)},destroy:function(q){q?this.table.style.visibility="hidden":hs.discardElement(this.table)}},hs.Dimension=function(q,ti){this.exp=q,this.dim=ti,this.ucwh="x"==ti?"Width":"Height",this.wh=this.ucwh.toLowerCase(),this.uclt="x"==ti?"Left":"Top",this.lt=this.uclt.toLowerCase(),this.ucrb="x"==ti?"Right":"Bottom",this.rb=this.ucrb.toLowerCase(),this.p1=this.p2=0},hs.Dimension.prototype={get:function(q){switch(q){case"loadingPos":return this.tpos+this.tb+(this.t-hs.loading["offset"+this.ucwh])/2;case"loadingPosXfade":return this.pos+this.cb+this.p1+(this.size-hs.loading["offset"+this.ucwh])/2;case"wsize":return this.size+2*this.cb+this.p1+this.p2;case"fitsize":return this.clientSize-this.marginMin-this.marginMax;case"maxsize":return this.get("fitsize")-2*this.cb-this.p1-this.p2;case"opos":return this.pos-(this.exp.outline?this.exp.outline.offset:0);case"osize":return this.get("wsize")+(this.exp.outline?2*this.exp.outline.offset:0);case"imgPad":return this.imgSize?Math.round((this.size-this.imgSize)/2):0}},calcBorders:function(){this.cb=(this.exp.content["offset"+this.ucwh]-this.t)/2,this.marginMax=hs["margin"+this.ucrb]},calcThumb:function(){this.t=this.exp.el[this.wh]?parseInt(this.exp.el[this.wh]):this.exp.el["offset"+this.ucwh],this.tpos=this.exp.tpos[this.dim],this.tb=(this.exp.el["offset"+this.ucwh]-this.t)/2,(0==this.tpos||-1==this.tpos)&&(this.tpos=hs.page[this.wh]/2+hs.page["scroll"+this.uclt])},calcExpanded:function(){var q=this.exp;this.justify="auto","center"==q.align?this.justify="center":new RegExp(this.lt).test(q.anchor)?this.justify=null:new RegExp(this.rb).test(q.anchor)&&(this.justify="max"),this.pos=this.tpos-this.cb+this.tb,this.maxHeight&&"x"==this.dim&&(q.maxWidth=Math.min(q.maxWidth||this.full,q.maxHeight*this.full/q.y.full)),this.size=Math.min(this.full,q["max"+this.ucwh]||this.full),this.minSize=q.allowSizeReduction?Math.min(q["min"+this.ucwh],this.full):this.full,q.isImage&&q.useBox&&(this.size=q[this.wh],this.imgSize=this.full),"x"==this.dim&&hs.padToMinWidth&&(this.minSize=q.minWidth),this.target=q["target"+this.dim.toUpperCase()],this.marginMin=hs["margin"+this.uclt],this.scroll=hs.page["scroll"+this.uclt],this.clientSize=hs.page[this.wh]},setSize:function(q){var ti=this.exp;if(ti.isImage&&(ti.useBox||hs.padToMinWidth)?(this.imgSize=q,this.size=Math.max(this.size,this.imgSize),ti.content.style[this.lt]=this.get("imgPad")+"px"):this.size=q,ti.content.style[this.wh]=q+"px",ti.wrapper.style[this.wh]=this.get("wsize")+"px",ti.outline&&ti.outline.setPosition(),ti.releaseMask&&(ti.releaseMask.style[this.wh]=q+"px"),"y"==this.dim&&ti.iDoc&&"auto"!=ti.body.style.height)try{ti.iDoc.body.style.overflow="auto"}catch(q){}if(ti.isHtml){var tn=ti.scrollerDiv;void 0===this.sizeDiff&&(this.sizeDiff=ti.innerContent["offset"+this.ucwh]-tn["offset"+this.ucwh]),tn.style[this.wh]=this.size-this.sizeDiff+"px","x"==this.dim&&(ti.mediumContent.style.width="auto"),ti.body&&(ti.body.style[this.wh]="auto")}"x"==this.dim&&ti.overlayBox&&ti.sizeOverlayBox(!0),"x"==this.dim&&ti.slideshow&&ti.isImage&&(q==this.full?ti.slideshow.disable("full-expand"):ti.slideshow.enable("full-expand"))},setPos:function(q){this.pos=q,this.exp.wrapper.style[this.lt]=q+"px",this.exp.outline&&this.exp.outline.setPosition()}},hs.Expander=function(q,ti,tn,ts){if(document.readyState&&hs.ie&&!hs.isReady){hs.addEventListener(document,"ready",function(){new hs.Expander(q,ti,tn,ts)});return}this.a=q,this.custom=tn,this.contentType=ts||"image",this.isHtml="html"==ts,this.isImage=!this.isHtml,hs.prms=ti,hs.continuePreloading=!1,this.overlays=[],this.last=hs.last,hs.last=null,hs.init();for(var ta=this.key=hs.expanders.length,tl=0;tl<hs.overrides.length;tl++){var th=hs.overrides[tl];this[th]=ti&&void 0!==ti[th]?ti[th]:hs[th]}this.src||(this.src=q.href);var td=ti&&ti.thumbnailId?hs.$(ti.thumbnailId):q;if(td=this.thumb=td.getElementsByTagName("img")[0]||td,this.thumbsUserSetId=td.id||q.id,!hs.fireEvent(this,"onInit"))return!0;for(var tl=0;
19tl<hs.expanders.length;tl++)if(hs.expanders[tl]&&hs.expanders[tl].a==q&&!(this.last&&"crossfade"==this.transitions[1]))return hs.expanders[tl].focus(),!1;if(!hs.allowSimultaneousLoading)for(var tl=0;tl<hs.expanders.length;tl++)hs.expanders[tl]&&hs.expanders[tl].thumb!=td&&!hs.expanders[tl].onLoadStarted&&hs.expanders[tl].cancelLoading();if(hs.expanders[ta]=this,hs.allowMultipleInstances||hs.upcoming||(hs.expanders[ta-1]&&hs.expanders[ta-1].close(),void 0!==hs.focusKey&&hs.expanders[hs.focusKey]&&hs.expanders[hs.focusKey].close()),this.el=td,this.tpos=this.pageOrigin||hs.getPosition(td),hs.getPageSize(),(this.x=new hs.Dimension(this,"x")).calcThumb(),(this.y=new hs.Dimension(this,"y")).calcThumb(),/area/i.test(td.tagName)&&this.getImageMapAreaCorrection(td),this.wrapper=hs.createElement("div",{id:"highslide-wrapper-"+this.key,className:"highslide-wrapper"},{visibility:"hidden",position:"absolute",zIndex:hs.zIndexCounter+=2},null,!0),this.wrapper.onmouseover=this.wrapper.onmouseout=hs.wrapperMouseHandler,"image"==this.contentType&&2==this.outlineWhileAnimating&&(this.outlineWhileAnimating=0),!this.outlineType||this.last&&this.isImage&&"crossfade"==this.transitions[1])this[this.contentType+"Create"]();else if(hs.pendingOutlines[this.outlineType])this.connectOutline(),this[this.contentType+"Create"]();else{this.showLoading();var tc=this;new hs.Outline(this.outlineType,function(){tc.connectOutline(),tc[tc.contentType+"Create"]()})}return!0},hs.Expander.prototype={error:function(q){hs.debug?alert("Line "+q.lineNumber+": "+q.message):window.location.href=this.src},connectOutline:function(){var q=this.outline=hs.pendingOutlines[this.outlineType];q.exp=this,q.table.style.zIndex=this.wrapper.style.zIndex-1,hs.pendingOutlines[this.outlineType]=null},showLoading:function(){if(!this.onLoadStarted&&!this.loading){this.loading=hs.loading;var q=this;if(this.loading.onclick=function(){q.cancelLoading()},hs.fireEvent(this,"onShowLoading")){var q=this,ti=this.x.get("loadingPos")+"px",tn=this.y.get("loadingPos")+"px";if(!ts&&this.last&&"crossfade"==this.transitions[1])var ts=this.last;ts&&(ti=ts.x.get("loadingPosXfade")+"px",tn=ts.y.get("loadingPosXfade")+"px",this.loading.style.zIndex=hs.zIndexCounter++),setTimeout(function(){q.loading&&hs.setStyles(q.loading,{left:ti,top:tn,zIndex:hs.zIndexCounter++})},100)}}},imageCreate:function(){var q=this,ti=document.createElement("img");this.content=ti,ti.onload=function(){hs.expanders[q.key]&&q.contentLoaded()},hs.blockRightClick&&(ti.oncontextmenu=function(){return!1}),ti.className="highslide-image",hs.setStyles(ti,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3}),ti.title=hs.lang.restoreTitle,hs.safari&&hs.uaVersion<525&&hs.container.appendChild(ti),hs.ie&&hs.flushImgSize&&(ti.src=null),ti.src=this.src,this.showLoading()},htmlCreate:function(){if(hs.fireEvent(this,"onBeforeGetContent")){if(this.content=hs.getCacheBinding(this.a),this.content||(this.content=hs.getNode(this.contentId)),this.content||(this.content=hs.getSelfRendered()),this.getInline(["maincontent"]),this.maincontent){var q=hs.getElementByClass(this.content,"div","highslide-body");q&&q.appendChild(this.maincontent),this.maincontent.style.display="block"}hs.fireEvent(this,"onAfterGetContent");var ti=this.innerContent=this.content;/(swf|iframe)/.test(this.objectType)&&this.setObjContainerSize(ti),hs.container.appendChild(this.wrapper),hs.setStyles(this.wrapper,{position:"static",padding:"0 "+hs.marginRight+"px 0 "+hs.marginLeft+"px"}),this.content=hs.createElement("div",{className:"highslide-html"},{position:"relative",zIndex:3,height:0,overflow:"hidden"},this.wrapper);var tn=hs.makeVideoId(),ts=hs.createVideoHtml(tn);if(ti.innerHTML=ts,this.mediumContent=hs.createElement("div",null,null,this.content,1),this.mediumContent.appendChild(ti),hs.loadVideo(hs.params,tn),hs.setStyles(ti,{position:"relative",display:"block",direction:hs.lang.cssDirection||""}),this.width=$(window).width()/2,this.height=this.width/(16/9),this.width&&(ti.style.width=this.width+"px"),this.height&&hs.setStyles(ti,{height:this.height+"px",overflow:"hidden"}),ti.offsetWidth<this.minWidth&&(ti.style.width=this.minWidth+"px"),"ajax"!=this.objectType||hs.getCacheBinding(this.a))"iframe"==this.objectType&&"before"==this.objectLoadTime?this.writeE
19xtendedContent():this.contentLoaded();else{this.showLoading();var ta=this,tl=new hs.Ajax(this.a,ti);tl.src=this.src,tl.onLoad=function(){hs.expanders[ta.key]&&ta.contentLoaded()},tl.onError=function(){location.href=ta.src},tl.run()}}},contentLoaded:function(){try{if(!this.content||(this.content.onload=null,this.onLoadStarted))return;this.onLoadStarted=!0;var q=this.x,ti=this.y;if(this.loading&&(hs.setStyles(this.loading,{top:"-9999px"}),this.loading=null,hs.fireEvent(this,"onHideLoading")),this.isImage?(q.full=this.content.width,ti.full=this.content.height,hs.setStyles(this.content,{width:q.t+"px",height:ti.t+"px"}),this.wrapper.appendChild(this.content),hs.container.appendChild(this.wrapper)):this.htmlGetSize&&this.htmlGetSize(),q.calcBorders(),ti.calcBorders(),hs.setStyles(this.wrapper,{left:q.tpos+q.tb-q.cb+"px",top:ti.tpos+q.tb-ti.cb+"px"}),this.isHtml){var tn={marginTop:"0",marginRight:"auto",marginBottom:"0",marginLeft:"auto"};$(this.wrapper).find("> div > div, .video-js, vjs-default-skin").css(tn)}this.initSlideshow(),this.getOverlays();var ts=q.full/ti.full;if(q.calcExpanded(),this.justify(q),ti.calcExpanded(),this.justify(ti),this.isHtml&&this.htmlSizeOperations(),this.overlayBox&&this.sizeOverlayBox(0,1),this.allowSizeReduction){this.isImage?this.correctRatio(ts):this.fitOverlayBox();var ta=this.slideshow;if(ta&&this.last&&ta.controls&&ta.fixedControls){var tl,th=ta.overlayOptions.position||"";for(var td in hs.oPos)for(var tc=0;tc<5;tc++)tl=this[td],th.match(hs.oPos[td][tc])&&(tl.pos=this.last[td].pos+(this.last[td].p1-tl.p1)+(this.last[td].size-tl.size)*[0,0,.5,1,1][tc],"fit"==ta.fixedControls&&(tl.pos+tl.size+tl.p1+tl.p2>tl.scroll+tl.clientSize-tl.marginMax&&(tl.pos=tl.scroll+tl.clientSize-tl.size-tl.marginMin-tl.marginMax-tl.p1-tl.p2),tl.pos<tl.scroll+tl.marginMin&&(tl.pos=tl.scroll+tl.marginMin)))}this.isImage&&this.x.full>(this.x.imgSize||this.x.size)&&(this.createFullExpand(),1==this.overlays.length&&this.sizeOverlayBox())}this.show()}catch(q){this.error(q)}},setObjContainerSize:function(q,ti){var tn=hs.getElementByClass(q,"DIV","highslide-body");/(iframe|swf)/.test(this.objectType)&&(this.objectWidth&&(tn.style.width=this.objectWidth+"px"),this.objectHeight&&(tn.style.height=this.objectHeight+"px"))},writeExtendedContent:function(){if(!this.hasExtendedContent){if(this.body=hs.getElementByClass(this.innerContent,"DIV","highslide-body"),"iframe"==this.objectType){this.showLoading();var q=hs.clearing.cloneNode(1);this.body.appendChild(q),this.newWidth=this.innerContent.offsetWidth,this.objectWidth||(this.objectWidth=q.offsetWidth);var ti=this.innerContent.offsetHeight-this.body.offsetHeight,tn=this.objectHeight||hs.page.height-ti-hs.marginTop-hs.marginBottom,ts="before"==this.objectLoadTime?' onload="if (hs.expanders['+this.key+"]) hs.expanders["+this.key+'].contentLoaded()" ':"";this.body.innerHTML+='<iframe name="hs'+new Date().getTime()+'" frameborder="0" key="'+this.key+'" style="width:'+this.objectWidth+"px; height:"+tn+'px" '+ts+' src="'+this.src+'" allowfullscreen></iframe>',this.ruler=this.body.getElementsByTagName("div")[0],this.iframe=this.body.getElementsByTagName("iframe")[0],"after"==this.objectLoadTime&&this.correctIframeSize()}if("swf"==this.objectType){this.body.id=this.body.id||"hs-flash-id-"+this.key;var ta=this.swfOptions;ta.params||(ta.params={}),void 0===ta.params.wmode&&(ta.params.wmode="transparent"),swfobject&&swfobject.embedSWF(this.src,this.body.id,this.objectWidth,this.objectHeight,ta.version||"7",ta.expressInstallSwfurl,ta.flashvars,ta.params,ta.attributes)}this.hasExtendedContent=!0}},htmlGetSize:function(){this.iframe&&!this.objectHeight&&(this.iframe.style.height=this.body.style.height=this.getIframePageHeight()+"px"),this.innerContent.appendChild(hs.clearing),this.x.full||(this.x.full=this.innerContent.offsetWidth),this.y.full=this.innerContent.offsetHeight,this.innerContent.removeChild(hs.clearing),hs.ie&&this.newHeight>parseInt(this.innerContent.currentStyle.height)&&(this.newHeight=parseInt(this.innerContent.currentStyle.height)),hs.setStyles(this.wrapper,{position:"absolute",padding:"0"}),hs.setStyles(this.content,{width:this.x.t+"px",height:this.y.t+"px"})},getIframePageHeight:function(){var q;try{var ti=this.iDoc=this.iframe.contentDocument||this.iframe.contentWindow.document,tn=ti.createElement("div");tn.style.clear="both",ti.body.appendChild(tn),q=tn.offsetTop,hs.ie&&(q+=parseInt(ti.body.currentStyle.marginTop)+parseInt(ti.body.currentStyle.marginBottom)-1)}catch(ti){q=300}return q},correctIframeSize:function(){var q=this.innerContent.offsetWidth-this.ruler.offsetWidth;hs.discardElement(this.ruler),q<0&&(q=0);var ti=this.innerContent.offsetHeight-this.iframe.offsetHeight;if(this.iDoc&&!this.objectHeight&&!this.height&&this.y.size==this.y.full)try{this.iDoc.body.style.overflow="hidden"}catch(q){}hs.setStyles(this.iframe,{width:Math.abs(this.x.size-q)+"px",height:Math.abs(this.y.size-ti)+"px"}),hs.setStyles(this.body,{width:this.iframe.style.width,height:this.iframe.style.height}),this.scrollingContent=this.iframe,this.scrollerDiv=this.scrollingContent},htmlSizeOperations:function(){this.setObjContainerSize(this.innerContent),"swf"==this.objectType&&"before"==this.objectLoadTime&&this.writeE
19xtendedContent(),this.x.size<this.x.full&&!this.allowWidthReduction&&(this.x.size=this.x.full),this.y.size<this.y.full&&!this.allowHeightReduction&&(this.y.size=this.y.full),this.scrollerDiv=this.innerContent,hs.setStyles(this.mediumContent,{position:"relative",width:this.x.size+"px"}),hs.setStyles(this.innerContent,{border:"none",width:"auto",height:"auto"});var q=hs.getElementByClass(this.innerContent,"DIV","highslide-body");if(q&&!/(iframe|swf)/.test(this.objectType)){var ti=q;q=hs.createElement(ti.nodeName,null,{overflow:"hidden"},null,!0),ti.parentNode.insertBefore(q,ti),q.appendChild(hs.clearing),q.appendChild(ti);var tn=this.innerContent.offsetWidth-q.offsetWidth,ts=this.innerContent.offsetHeight-q.offsetHeight;q.removeChild(hs.clearing);var ta=hs.safari||"KDE"==navigator.vendor?1:0;hs.setStyles(q,{width:this.x.size-tn-ta+"px",height:this.y.size-ts+"px",overflow:"auto",position:"relative"}),ta&&ti.offsetHeight>q.offsetHeight&&(q.style.width=parseInt(q.style.width)+ta+"px"),this.scrollingContent=q,this.scrollerDiv=this.scrollingContent}this.iframe&&"before"==this.objectLoadTime&&this.correctIframeSize(),!this.scrollingContent&&this.y.size<this.mediumContent.offsetHeight&&(this.scrollerDiv=this.content),this.scrollerDiv!=this.content||this.allowWidthReduction||/(iframe|swf)/.test(this.objectType)||(this.x.size+=17),this.scrollerDiv&&this.scrollerDiv.offsetHeight>this.scrollerDiv.parentNode.offsetHeight&&setTimeout("try { hs.expanders["+this.key+"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",hs.expandDuration)},getImageMapAreaCorrection:function(q){for(var ti=q.coords.split(","),tn=0;tn<ti.length;tn++)ti[tn]=parseInt(ti[tn]);if("circle"==q.shape.toLowerCase())this.x.tpos+=ti[0]-ti[2],this.y.tpos+=ti[1]-ti[2],this.x.t=this.y.t=2*ti[2];else{for(var ts,ta,tl=ts=ti[0],th=ta=ti[1],tn=0;tn<ti.length;tn++)tn%2==0?(tl=Math.min(tl,ti[tn]),ts=Math.max(ts,ti[tn])):(th=Math.min(th,ti[tn]),ta=Math.max(ta,ti[tn]));this.x.tpos+=tl,this.x.t=ts-tl,this.y.tpos+=th,this.y.t=ta-th}},justify:function(q,ti){var tn,ts=q.target,ta=q==this.x?"x":"y";if(ts&&ts.match(/ /)&&(ts=(tn=ts.split(" "))[0]),ts&&hs.$(ts))q.pos=hs.getPosition(hs.$(ts))[ta],tn&&tn[1]&&tn[1].match(/^[-]?[0-9]+px$/)&&(q.pos+=parseInt(tn[1])),q.size<q.minSize&&(q.size=q.minSize);else if("auto"==q.justify||"center"==q.justify){var tl=!1,th=q.exp.allowSizeReduction;"center"==q.justify?q.pos=Math.round(q.scroll+(q.clientSize+q.marginMin-q.marginMax-q.get("wsize"))/2):q.pos=Math.round(q.pos-(q.get("wsize")-q.t)/2),q.pos<q.scroll+q.marginMin&&(q.pos=q.scroll+q.marginMin,tl=!0),!ti&&q.size<q.minSize&&(q.size=q.minSize,th=!1),q.pos+q.get("wsize")>q.scroll+q.clientSize-q.marginMax&&(!ti&&tl&&th?q.size=Math.min(q.size,q.get("y"==ta?"fitsize":"maxsize")):q.get("wsize")<q.get("fitsize")?q.pos=q.scroll+q.clientSize-q.marginMax-q.get("wsize"):(q.pos=q.scroll+q.marginMin,!ti&&th&&(q.size=q.get("y"==ta?"fitsize":"maxsize")))),!ti&&q.size<q.minSize&&(q.size=q.minSize,th=!1)}else"max"==q.justify&&(q.pos=Math.floor(q.pos-q.size+q.t));if(q.pos<q.marginMin){var td=q.pos;q.pos=q.marginMin,th&&!ti&&(q.size=q.size-(q.pos-td))}},correctRatio:function(q){var ti=this.x,tn=this.y,ts=!1,ta=Math.min(ti.full,ti.size),tl=Math.min(tn.full,tn.size),th=this.useBox||hs.padToMinWidth;ta/tl>q?((ta=tl*q)<ti.minSize&&(tl=(ta=ti.minSize)/q),ts=!0):ta/tl<q&&(tl=ta/q,ts=!0),hs.padToMinWidth&&ti.full<ti.minSize?(ti.imgSize=ti.full,tn.size=tn.imgSize=tn.full):this.useBox?(ti.imgSize=ta,tn.imgSize=tl):(ti.size=ta,tn.size=tl),ts=this.fitOverlayBox(this.useBox?null:q,ts),th&&tn.size<tn.imgSize&&(tn.imgSize=tn.size,ti.imgSize=tn.size*q),(ts||th)&&(ti.pos=ti.tpos-ti.cb+ti.tb,ti.minSize=ti.size,this.justify(ti,!0),tn.pos=tn.tpos-tn.cb+tn.tb,tn.minSize=tn.size,this.justify(tn,!0),this.overlayBox&&this.sizeOverlayBox())},fitOverlayBox:function(q,ti){var tn=this.x,ts=this.y;if(this.overlayBox&&(this.isImage||this.allowHeightReduction))for(;ts.size>this.minHeight&&tn.size>this.minWidth&&ts.get("wsize")>ts.get("fitsize");)ts.size-=10,q&&(tn.size=ts.size*q),this.sizeOverlayBox(0,1),ti=!0;return ti},reflow:function(){if(this.scrollerDiv){var q=/iframe/i.test(this.scrollerDiv.tagName)?this.getIframePageHeight()+1+"px":"auto";this.body&&(this.body.style.height=q),this.scrollerDiv.style.height=q,this.y.setSize(this.innerContent.offsetHeight)}},show:function(){var q=this.x,ti=this.y;this.doShowHide("hidden"),hs.fireEvent(this,"onBeforeExpand"),this.slideshow&&this.slideshow.thumbstrip&&this.slideshow.thumbstrip.selectThumb(),this.changeSize(1,{wrapper:{width:q.get("wsize"),height:ti.get("wsize"),left:q.pos,top:ti.pos},content:{left:q.p1+q.get("imgPad"),top:ti.p1+ti.get("imgPad"),width:q.imgSize||q.size,height:ti.imgSize||ti.size}},hs.expandDuration)},changeSize:function(q,ti,tn){var ts=this.transitions,ta=q?this.last?this.last.a:null:hs.upcoming,tl=ts[1]&&ta&&hs.getParam(ta,"transitions")[1]==ts[1]?ts[1]:ts[0];if(this[tl]&&"expand"!=tl){this[tl](q,ti);return}this.outline&&!this.outlineWhileAnimating&&(q?this.outline.setPosition():this.outline.destroy(this.isHtml&&this.preserveContent)),q||this.destroyOverlays();var th=this,td=th.x,tc=th.y,tp=this.easing;q||(tp=this.easingClose||tp);var tu=q?function(){th.outline&&(th.outline.table.style.visibility="visible"),setTimeout(function(){th.afterExpand()},50)}:function(){th.afterClose()};q&&hs.setStyles(this.wrapper,{width:td.t+"px",height:tc.t+"px"}
19),q&&this.isHtml&&hs.setStyles(this.wrapper,{left:td.tpos-td.cb+td.tb+"px",top:tc.tpos-tc.cb+tc.tb+"px"}),this.fadeInOut&&(hs.setStyles(this.wrapper,{opacity:q?0:1}),hs.extend(ti.wrapper,{opacity:q})),hs.animate(this.wrapper,ti.wrapper,{duration:tn,easing:tp,step:function(ti,tn){if(th.outline&&th.outlineWhileAnimating&&"top"==tn.prop){var ts=q?tn.pos:1-tn.pos,ta={w:td.t+(td.get("wsize")-td.t)*ts,h:tc.t+(tc.get("wsize")-tc.t)*ts,x:td.tpos+(td.pos-td.tpos)*ts,y:tc.tpos+(tc.pos-tc.tpos)*ts};th.outline.setPosition(ta,0,1)}th.isHtml&&("left"==tn.prop&&(th.mediumContent.style.left=td.pos-ti+"px"),"top"==tn.prop&&(th.mediumContent.style.top=tc.pos-ti+"px"))}}),hs.animate(this.content,ti.content,tn,tp,tu),q&&(this.wrapper.style.visibility="visible",this.content.style.visibility="visible",this.isHtml&&(this.innerContent.style.visibility="visible"),this.a.className+=" highslide-active-anchor")},fade:function(q,ti){this.outlineWhileAnimating=!1;var tn=this,ts=q?hs.expandDuration:0;if(q&&(hs.animate(this.wrapper,ti.wrapper,0),hs.setStyles(this.wrapper,{opacity:0,visibility:"visible"}),hs.animate(this.content,ti.content,0),this.content.style.visibility="visible",hs.animate(this.wrapper,{opacity:1},ts,null,function(){tn.afterExpand()})),this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;for(var ta=q||-1,tl=this.outline.offset,th=q?3:tl,td=q?tl:3,tc=th;ta*tc<=ta*td;tc+=ta,ts+=25)!function(){var ti=q?td-tc:th-tc;setTimeout(function(){tn.outline.setPosition(0,ti,1)},ts)}()}q||setTimeout(function(){tn.outline&&tn.outline.destroy(tn.preserveContent),tn.destroyOverlays(),hs.animate(tn.wrapper,{opacity:0},hs.restoreDuration,null,function(){tn.afterClose()})},ts)},crossfade:function(q,ti,tn){if(q){var ts=this,ta=this.last,tl=this.x,th=this.y,td=ta.x,tc=ta.y,tp=this.wrapper,tu=this.content,tf=this.overlayBox;hs.removeEventListener(document,"mousemove",hs.dragHandler),$(".close.close-modal").hide(),hs.setStyles(tu,{width:(tl.imgSize||tl.size)+"px",height:(th.imgSize||th.size)+"px"}),tf&&(tf.style.overflow="visible"),this.outline=ta.outline,this.outline&&(this.outline.exp=ts),ta.outline=null;var tm=hs.createElement("div",{className:"highslide-"+this.contentType},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"}),tg={oldImg:ta,newImg:this};for(var tv in tg)this[tv]=tg[tv].content.cloneNode(!tg[tv].iframe),hs.setStyles(this[tv],{position:"absolute",border:0,visibility:"visible"}),tm.appendChild(this[tv]);tp.appendChild(tm),this.isHtml&&hs.setStyles(this.mediumContent,{left:0,top:0}),tf&&(tf.className="",tp.appendChild(tf)),tm.style.display="",ta.content.style.display="none",hs.safari&&hs.uaVersion<525&&(this.wrapper.style.visibility="visible"),hs.animate(tp,{width:tl.size},{duration:hs.transitionDuration,step:function(q,ti){var tn,tg=ti.pos,tv=1-tg,ty={},t_=["pos","size","p1","p2"];for(var tb in t_)ty["x"+(tn=t_[tb])]=Math.round(tv*td[tn]+tg*tl[tn]),ty["y"+tn]=Math.round(tv*tc[tn]+tg*th[tn]),ty.ximgSize=Math.round(tv*(td.imgSize||td.size)+tg*(tl.imgSize||tl.size)),ty.ximgPad=Math.round(tv*td.get("imgPad")+tg*tl.get("imgPad")),ty.yimgSize=Math.round(tv*(tc.imgSize||tc.size)+tg*(th.imgSize||th.size)),ty.yimgPad=Math.round(tv*tc.get("imgPad")+tg*th.get("imgPad"));ts.outline&&ts.outline.setPosition({x:ty.xpos,y:ty.ypos,w:ty.xsize+ty.xp1+ty.xp2+2*tl.cb,h:ty.ysize+ty.yp1+ty.yp2+2*th.cb}),ta.wrapper.style.clip="rect("+(ty.ypos-tc.pos)+"px, "+(ty.xsize+ty.xp1+ty.xp2+ty.xpos+2*td.cb-td.pos)+"px, "+(ty.ysize+ty.yp1+ty.yp2+ty.ypos+2*tc.cb-tc.pos)+"px, "+(ty.xpos-td.pos)+"px)",hs.setStyles(tu,{top:ty.yp1+th.get("imgPad")+"px",left:ty.xp1+tl.get("imgPad")+"px",marginTop:th.pos-ty.ypos+"px",marginLeft:tl.pos-ty.xpos+"px"}),hs.setStyles(tp,{top:ty.ypos+"px",left:ty.xpos+"px",width:ty.xp1+ty.xp2+ty.xsize+2*tl.cb+"px",height:ty.yp1+ty.yp2+ty.ysize+2*th.cb+"px"}),hs.setStyles(tm,{width:(ty.ximgSize||ty.xsize)+"px",height:(ty.yimgSize||ty.ysize)+"px",left:ty.xp1+ty.ximgPad+"px",top:ty.yp1+ty.yimgPad+"px",visibility:"visible"}),hs.setStyles(ts.oldImg,{top:tc.pos-ty.ypos+tc.p1-ty.yp1+tc.get("imgPad")-ty.yimgPad+"px",left:td.pos-ty.xpos+td.p1-ty.xp1+td.get("imgPad")-ty.ximgPad+"px"}),hs.setStyles(ts.newImg,{opacity:tg,top:th.pos-ty.ypos+th.p1-ty.yp1+th.get("imgPad")-ty.yimgPad+"px",left:tl.pos-ty.xpos+tl.p1-ty.xp1+tl.get("imgPad")-ty.ximgPad+"px"}),tf&&hs.setStyles(tf,{width:ty.xsize+"px",height:ty.ysize+"px",left:ty.xp1+tl.cb+"px",to
19p:ty.yp1+th.cb+"px"})},complete:function(){tp.style.visibility=tu.style.visibility="visible",tu.style.display="block",hs.discardElement(tm),ts.afterExpand(),ta.isHtml&&ta.htmlPrepareClose(),ta.afterClose(),ts.last=null}})}},reuseOverlay:function(q,ti){if(!this.last)return!1;for(var tn=0;tn<this.last.overlays.length;tn++){var ts=hs.$("hsId"+this.last.overlays[tn]);if(ts&&ts.hsId==q.hsId)return this.genOverlayBox(),ts.reuse=this.key,hs.push(this.overlays,this.last.overlays[tn]),!0}return!1},afterExpand:function(){if(this.isExpanded=!0,this.focus(),this.isHtml&&"after"==this.objectLoadTime&&this.writeExtendedContent(),this.iframe){try{var q=this,ti=this.iframe.contentDocument||this.iframe.contentWindow.document;hs.addEventListener(ti,"mousedown",function(){hs.focusKey!=q.key&&q.focus()})}catch(q){}hs.ie&&"boolean"!=typeof this.isClosing&&(this.iframe.style.width=this.objectWidth-1+"px")}this.dimmingOpacity&&hs.dim(this),hs.upcoming&&hs.upcoming==this.a&&(hs.upcoming=null),this.prepareNextOutline();var tn=hs.page,ts=hs.mouse.x+tn.scrollLeft,ta=hs.mouse.y+tn.scrollTop;this.mouseIsOver=this.x.pos<ts&&ts<this.x.pos+this.x.get("wsize")&&this.y.pos<ta&&ta<this.y.pos+this.y.get("wsize"),this.overlayBox&&this.showOverlays(),hs.fireEvent(this,"onAfterExpand"),$('<a onclick="return hs.close(this)" title="Close" class="close close-modal" tabindex="0"></a>').css({position:"absolute",top:"-15px",right:"-15px",height:"30px",width:"30px",cursor:"pointer",background:"url("+hs.graphicsDir+"close.png)",zIndex:20}).appendTo(".highslide-wrapper"),hs.prms&&(hs.prms.first||hs.prms.last?hs.prms.first&&!hs.prms.last?$('<div class="nav-arrows"><a href="#" class="next-item" onclick="return hs.next(this)" title="Next (right arrow key)" role="link"></a></div>').appendTo(".highslide-wrapper"):$('<div class="nav-arrows"><a href="#" class="prev-item" onclick="return hs.previous(this)" title="Previous (left arrow key)" role="link"></a></div>').appendTo(".highslide-wrapper"):$('<div class="nav-arrows"><a href="#" class="prev-item" onclick="return hs.previous(this)" title="Previous (left arrow key)" role="link"></a><a href="#" class="next-item" onclick="return hs.next(this)" title="Next (right arrow key)" role="link"></a></div>').appendTo(".highslide-wrapper")),this.addTabbable(!1),$("body").on("keydown",(function(q){this.tabbable(q,hs.tabbables)}).bind(this)),$(".gallery-item--spacer").on("keyup",function(q){if(13!==q.keyCode&&32!==q.keyCode)return!1;q.preventDefault(),$(this).find("a").trigger("click")})},prepareNextOutline:function(){var q=this.key,ti=this.outlineType;new hs.Outline(ti,function(){try{hs.expanders[q].preloadNext()}catch(q){}})},preloadNext:function(){var q=this.getAdjacentAnchor(1);q&&q.onclick.toString().match(/hs\.expand/)&&hs.createElement("img",{src:hs.getSrc(q)})},getAdjacentAnchor:function(q){var ti=this.getAnchorIndex(),tn=hs.anchors.groups[this.slideshowGroup||"none"];if(tn&&!tn[ti+q]&&this.slideshow&&this.slideshow.repeat){if(1==q)return tn[0];if(-1==q)return tn[tn.length-1]}return tn&&tn[ti+q]||null},getAnchorIndex:function(){var q=hs.getAnchors().groups[this.slideshowGroup||"none"];if(q){for(var ti=0;ti<q.length;ti++)if(q[ti].getAttribute("id")==this.a.getAttribute("id"))return ti}return null},getNumber:function(){if(this[this.numberPosition]){var q=hs.anchors.groups[this.slideshowGroup||"none"];if(q){var ti=hs.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",q.length);this[this.numberPosition].innerHTML='<div class="highslide-number">'+ti+"</div>"+this[this.numberPosition].innerHTML}}},initSlideshow:function(){if(this.last)this.slideshow=this.last.slideshow;else for(var q=0;q<hs.slideshows.length;q++){var ti=hs.slideshows[q],tn=ti.slideshowGroup;(null==tn||tn===this.slideshowGroup)&&(this.slideshow=new hs.Slideshow(this.key,ti))}var ti=this.slideshow;if(ti){var ts=ti.expKey=this.key;ti.checkFirstAndLast(),ti.disable("full-expand"),ti.controls&&this.createOverlay(hs.extend(ti.overlayOptions||{},{overlayId:ti.controls,hsId:"controls",zIndex:5})),ti.thumbstrip&&ti.thumbstrip.add(this),!this.last&&this.autoplay&&ti.play(!0),ti.autoplay&&(ti.autoplay=setTimeout(function(){hs.next(ts)},ti.interval||500))}},cancelLoading:function(){hs.discardElement(this.wrapper),hs.expanders[this.key]=null,hs.upcoming==this.a&&(hs.upcoming=null),hs.undim(this.key),this.loading&&(hs.loading.style.left="-9999px"),hs.fireEvent(this,"onHideLoading")},writeCredits:function(){this.credits||(this.credits=hs.createElement("a",{href:hs.creditsHref,target:hs.creditsTarget,className:"highsli
19de-credits",innerHTML:hs.lang.creditsText,title:hs.lang.creditsTitle}),this.createOverlay({overlayId:this.credits,position:this.creditsPosition||"top left",hsId:"credits"}))},getInline:function(types,addOverlay){for(var i=0;i<types.length;i++){var type=types[i],s=null;if("caption"==type&&!hs.fireEvent(this,"onBeforeGetCaption")||"heading"==type&&!hs.fireEvent(this,"onBeforeGetHeading"))return;if(!this[type+"Id"]&&this.thumbsUserSetId&&(this[type+"Id"]=type+"-for-"+this.thumbsUserSetId),this[type+"Id"]&&(this[type]=hs.getNode(this[type+"Id"])),!this[type]&&!this[type+"Text"]&&this[type+"Eval"])try{s=eval(this[type+"Eval"])}catch(e){}if(!this[type]&&this[type+"Text"]&&(s=this[type+"Text"]),!this[type]&&!s&&(this[type]=hs.getNode(this.a["_"+type+"Id"]),!this[type]))for(var next=this.a.nextSibling;next&&!hs.isHsAnchor(next);){if(RegExp("highslide-"+type).test(next.className||null)){next.id||(this.a["_"+type+"Id"]=next.id="hsId"+hs.idCounter++),this[type]=hs.getNode(next.id);break}next=next.nextSibling}if(this[type]||s||this.numberPosition!=type||(s="\n"),!this[type]&&s&&(this[type]=hs.createElement("div",{className:"highslide-"+type,innerHTML:s})),addOverlay&&this[type]){var o={position:"heading"==type?"above":"below"};for(var x in this[type+"Overlay"])o[x]=this[type+"Overlay"][x];o.overlayId=this[type],this.createOverlay(o)}}},doShowHide:function(q){hs.hideSelects&&this.showHideElements("SELECT",q),hs.hideIframes&&this.showHideElements("IFRAME",q),hs.geckoMac&&this.showHideElements("*",q)},showHideElements:function(q,ti){for(var tn=document.getElementsByTagName(q),ts="*"==q?"overflow":"visibility",ta=0;ta<tn.length;ta++)if("visibility"==ts||"auto"==document.defaultView.getComputedStyle(tn[ta],"").getPropertyValue("overflow")||null!=tn[ta].getAttribute("hidden-by")){var tl=tn[ta].getAttribute("hidden-by");if("visible"==ti&&tl)tl=tl.replace("["+this.key+"]",""),tn[ta].setAttribute("hidden-by",tl),tl||(tn[ta].style[ts]=tn[ta].origProp);else if("hidden"==ti){var th=hs.getPosition(tn[ta]);if(th.w=tn[ta].offsetWidth,th.h=tn[ta].offsetHeight,!this.dimmingOpacity)var td=th.x+th.w<this.x.get("opos")||th.x>this.x.get("opos")+this.x.get("osize"),tc=th.y+th.h<this.y.get("opos")||th.y>this.y.get("opos")+this.y.get("osize");var tp=hs.getWrapperKey(tn[ta]);td||tc||tp==this.key?(tl=="["+this.key+"]"||hs.focusKey==tp)&&tp!=this.key?(tn[ta].setAttribute("hidden-by",""),tn[ta].style[ts]=tn[ta].origProp||""):tl&&tl.indexOf("["+this.key+"]")>-1&&tn[ta].setAttribute("hidden-by",tl.replace("["+this.key+"]","")):tl?-1==tl.indexOf("["+this.key+"]")&&tn[ta].setAttribute("hidden-by",tl+"["+this.key+"]"):(tn[ta].setAttribute("hidden-by","["+this.key+"]"),tn[ta].origProp=tn[ta].style[ts],tn[ta].style[ts]="hidden")}}},focus:function(){this.wrapper.style.zIndex=hs.zIndexCounter+=2;for(var q=0;q<hs.expanders.length;q++)if(hs.expanders[q]&&q==hs.focusKey){var ti=hs.expanders[q];ti.content.className+=" highslide-"+ti.contentType+"-blur",ti.isImage&&(ti.content.style.cursor=hs.ieLt7?"hand":"pointer",ti.content.title=hs.lang.focusTitle),hs.fireEvent(ti,"onBlur")}this.outline&&(this.outline.table.style.zIndex=this.wrapper.style.zIndex-1),this.content.className="highslide-"+this.contentType,this.isImage&&(this.content.title=hs.lang.restoreTitle,hs.restoreCursor&&(hs.styleRestoreCursor=window.opera?"pointer":"url("+hs.graphicsDir+hs.restoreCursor+"), pointer",hs.ieLt7&&hs.uaVersion<6&&(hs.styleRestoreCursor="hand"),this.content.style.cursor=hs.styleRestoreCursor)),hs.focusKey=this.key,hs.addEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler),hs.fireEvent(this,"onFocus")},moveTo:function(q,ti){this.x.setPos(q),this.y.setPos(ti)},resize:function(q){var ti,tn,ts=q.width/q.height;ti=Math.max(q.width+q.dX,Math.min(this.minWidth,this.x.full)),this.isImage&&12>Math.abs(ti-this.x.full)&&(ti=this.x.full),(tn=this.isHtml?q.height+q.dY:ti/ts)<Math.min(this.minHeight,this.y.full)&&(tn=Math.min(this.minHeight,this.y.full),this.isImage&&(ti=tn*ts)),this.resizeTo(ti,tn)},resizeTo:function(q,ti){this.y.setSize(ti),this.x.setSize(q),this.wrapper.style.height=this.y.get("wsize")+"px"},close:function(){if(!this.isClosing&&this.isExpanded&&("crossfade"==this.transitions[1]&&hs.upcoming&&(hs.getExpander(hs.upcoming).cancelLoading(),hs.upcoming=null),hs.fireEvent(this,"onBeforeClose"))){this.isClosing=!0,this.slideshow&&!hs.upcoming&&this.slideshow.pause(),hs.removeEventListener(document,window.opera?"keypress":"keydown",hs.keyHandler);try{this.isHtml&&this.htmlPrepareClose(),this.content.style.cursor="default",this.changeSize(0,{wrapper:{width:this.x.t,he
19ight:this.y.t,left:this.x.tpos-this.x.cb+this.x.tb,top:this.y.tpos-this.y.cb+this.y.tb},content:{left:0,top:0,width:this.x.t,height:this.y.t}},hs.restoreDuration)}catch(q){this.afterClose()}}},htmlPrepareClose:function(){if(hs.geckoMac&&(hs.mask||(hs.mask=hs.createElement("div",null,{position:"absolute"},hs.container)),hs.setStyles(hs.mask,{width:this.x.size+"px",height:this.y.size+"px",left:this.x.pos+"px",top:this.y.pos+"px",display:"block"})),"swf"==this.objectType)try{hs.$(this.body.id).StopPlay()}catch(q){}"after"!=this.objectLoadTime||this.preserveContent||this.destroyObject(),this.scrollerDiv&&this.scrollerDiv!=this.scrollingContent&&(this.scrollerDiv.style.overflow="hidden")},destroyObject:function(){if(hs.ie&&this.iframe)try{this.iframe.contentWindow.document.body.innerHTML=""}catch(q){this.iframe.src=""}"swf"==this.objectType&&swfobject.removeSWF(this.body.id),this.body.innerHTML=""},sleep:function(){this.outline&&(this.outline.table.style.display="none"),this.releaseMask=null,this.wrapper.style.display="none",this.isExpanded=!1,hs.push(hs.sleeping,this)},awake:function(){try{if(hs.expanders[this.key]=this,!hs.allowMultipleInstances&&hs.focusKey!=this.key)try{hs.expanders[hs.focusKey].close()}catch(q){}var q=hs.zIndexCounter++,ti={display:"",zIndex:q};hs.setStyles(this.wrapper,ti),this.isClosing=!1;var tn=this.outline||0;tn&&(this.outlineWhileAnimating||(ti.visibility="hidden"),hs.setStyles(tn.table,ti)),this.slideshow&&this.initSlideshow(),this.show()}catch(q){}},createOverlay:function(q){var ti=q.overlayId,tn="viewport"==q.relativeTo&&!/panel$/.test(q.position);if("string"==typeof ti&&(ti=hs.getNode(ti)),q.html&&(ti=hs.createElement("div",{innerHTML:q.html})),ti&&"string"!=typeof ti&&hs.fireEvent(this,"onCreateOverlay",{overlay:ti})&&(ti.style.display="block",q.hsId=q.hsId||q.overlayId,!("crossfade"==this.transitions[1]&&this.reuseOverlay(q,ti)))){this.genOverlayBox();var ts=q.width&&/^[0-9]+(px|%)$/.test(q.width)?q.width:"auto";/^(left|right)panel$/.test(q.position)&&!/^[0-9]+px$/.test(q.width)&&(ts="200px");var ta=hs.createElement("div",{id:"hsId"+hs.idCounter++,hsId:q.hsId},{position:"absolute",visibility:"hidden",width:ts,direction:hs.lang.cssDirection||"",opacity:0},tn?hs.viewport:this.overlayBox,!0);tn&&(ta.hsKey=this.key),ta.appendChild(ti),hs.extend(ta,{opacity:1,offsetX:0,offsetY:0,dur:0===q.fade||!1===q.fade||2==q.fade&&hs.ie?0:250}),hs.extend(ta,q),this.gotOverlays&&(this.positionOverlay(ta),(!ta.hideOnMouseOut||this.mouseIsOver)&&hs.animate(ta,{opacity:ta.opacity},ta.dur)),hs.push(this.overlays,hs.idCounter-1)}},positionOverlay:function(q){var ti=q.position||"middle center",tn="viewport"==q.relativeTo,ts=q.offsetX,ta=q.offsetY;tn?(hs.viewport.style.display="block",q.hsKey=this.key,q.offsetWidth>q.parentNode.offsetWidth&&(q.style.width="100%")):q.parentNode!=this.overlayBox&&this.overlayBox.appendChild(q),/left$/.test(ti)&&(q.style.left=ts+"px"),/center$/.test(ti)&&hs.setStyles(q,{left:"50%",marginLeft:ts-Math.round(q.offsetWidth/2)+"px"}),/right$/.test(ti)&&(q.style.right=-ts+"px"),/^leftpanel$/.test(ti)?(hs.setStyles(q,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"}),this.x.p1=q.offsetWidth):/^rightpanel$/.test(ti)&&(hs.setStyles(q,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"}),this.x.p2=q.offsetWidth);var tl=q.parentNode.offsetHeight;q.style.height="auto",tn&&q.offsetHeight>tl&&(q.style.height=hs.ieLt7?tl+"px":"100%"),/^top/.test(ti)&&(q.style.top=ta+"px"),/^middle/.test(ti)&&hs.setStyles(q,{top:"50%",marginTop:ta-Math.round(q.offsetHeight/2)+"px"}),/^bottom/.test(ti)&&(q.style.bottom=-ta+"px"),/^above$/.test(ti)?(hs.setStyles(q,{left:-this.x.p1-this.x.cb+"px",right:-this.x.p2-this.x.cb+"px",bottom:"100%",marginBottom:this.y.cb+"px",width:"auto"}),this.y.p1=q.offsetHeight):/^below$/.test(ti)&&(hs.setStyles(q,{position:"relative",left:-this.x.p1-this.x.cb+"px",right:-this.x.p2-this.x.cb+"px",top:"100%",marginTop:this.y.cb+"px",width:"auto"}),this.y.p2=q.offsetHeight,q.style.position="absolute")},getOverlays:function(){this.getInline(["heading","caption"],!0),this.getNumber(),this.caption&&hs.fireEvent(this,"onAfterGetCaption"),this.heading&&hs.fireEvent(this,"onAfterGetHeading"),this.heading&&this.dragByHeading&&(this.heading.className+=" highsli
19de-move"),hs.showCredits&&this.writeCredits();for(var q=0;q<hs.overlays.length;q++){var ti=hs.overlays[q],tn=ti.thumbnailId,ts=ti.slideshowGroup;(!tn&&!ts||tn&&tn==this.thumbsUserSetId||ts&&ts===this.slideshowGroup)&&(this.isImage||this.isHtml&&ti.useOnHtml)&&this.createOverlay(ti)}for(var ta=[],q=0;q<this.overlays.length;q++){var ti=hs.$("hsId"+this.overlays[q]);/panel$/.test(ti.position)?this.positionOverlay(ti):hs.push(ta,ti)}for(var q=0;q<ta.length;q++)this.positionOverlay(ta[q]);this.gotOverlays=!0},genOverlayBox:function(){this.overlayBox||(this.overlayBox=hs.createElement("div",{className:this.wrapperClassName},{position:"absolute",width:(this.x.size||(this.useBox?this.width:null)||this.x.full)+"px",height:(this.y.size||this.y.full)+"px",visibility:"hidden",overflow:"hidden",zIndex:hs.ie?4:"auto"},hs.container,!0))},sizeOverlayBox:function(q,ti){var tn=this.overlayBox,ts=this.x,ta=this.y;if(hs.setStyles(tn,{width:ts.size+"px",height:ta.size+"px"}),q||ti)for(var tl=0;tl<this.overlays.length;tl++){var th=hs.$("hsId"+this.overlays[tl]),td=hs.ieLt7||"BackCompat"==document.compatMode;th&&/^(above|below)$/.test(th.position)&&(td&&(th.style.width=tn.offsetWidth+2*ts.cb+ts.p1+ts.p2+"px"),ta["above"==th.position?"p1":"p2"]=th.offsetHeight),th&&td&&/^(left|right)panel$/.test(th.position)&&(th.style.height=tn.offsetHeight+2*ta.cb+"px")}q&&(hs.setStyles(this.content,{top:ta.p1+"px"}),hs.setStyles(tn,{top:ta.p1+ta.cb+"px"}))},showOverlays:function(){var q=this.overlayBox;q.className="",hs.setStyles(q,{top:this.y.p1+this.y.cb+"px",left:this.x.p1+this.x.cb+"px",overflow:"visible"}),hs.safari&&(q.style.visibility="visible"),this.wrapper.appendChild(q);for(var ti=0;ti<this.overlays.length;ti++){var tn=hs.$("hsId"+this.overlays[ti]);tn.style.zIndex=tn.zIndex||4,(!tn.hideOnMouseOut||this.mouseIsOver)&&(tn.style.visibility="visible",hs.setStyles(tn,{visibility:"visible",display:""}),hs.animate(tn,{opacity:tn.opacity},tn.dur))}},destroyOverlays:function(){if(this.overlays.length){if(this.slideshow){var q=this.slideshow.controls;q&&hs.getExpander(q)==this&&q.parentNode.removeChild(q)}for(var ti=0;ti<this.overlays.length;ti++){var tn=hs.$("hsId"+this.overlays[ti]);tn&&tn.parentNode==hs.viewport&&hs.getExpander(tn)==this&&hs.discardElement(tn)}this.isHtml&&this.preserveContent?(this.overlayBox.style.top="-9999px",hs.container.appendChild(this.overlayBox)):hs.discardElement(this.overlayBox)}},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls){this.slideshow.enable("full-expand");return}this.fullExpandLabel=hs.createElement("a",{href:"javascript:hs.expanders["+this.key+"].doFullExpand();",title:hs.lang.fullExpandTitle,className:"highslide-full-expand"}),hs.fireEvent(this,"onCreateFullExpand")&&this.createOverlay({overlayId:this.fullExpandLabel,position:hs.fullExpandPosition,hideOnMouseOut:!0,opacity:hs.fullExpandOpacity})},doFullExpand:function(){try{if(!hs.fireEvent(this,"onDoFullExpand"))return;this.fullExpandLabel&&hs.discardElement(this.fullExpandLabel),this.focus();var q=this.x.size,ti=this.y.size;this.resizeTo(this.x.full,this.y.full);var tn=this.x.pos-(this.x.size-q)/2;tn<hs.marginLeft&&(tn=hs.marginLeft);var ts=this.y.pos-(this.y.size-ti)/2;ts<hs.marginTop&&(ts=hs.marginTop),this.moveTo(tn,ts),this.doShowHide("hidden")}catch(q){this.error(q)}},afterClose:function(){this.a.className=this.a.className.replace("highslide-active-anchor",""),$(".gallery-item--spacer").unbind("keydown"),this.doShowHide("visible"),this.isHtml&&this.preserveContent&&"crossfade"!=this.transitions[1]?this.sleep():(this.outline&&this.outlineWhileAnimating&&this.outline.destroy(),this.iframe&&"after"!=this.objectLoadTime&&this.destroyObject(),hs.discardElement(this.wrapper)),hs.mask&&(hs.mask.style.display="none"),this.destroyOverlays(),hs.viewport.childNodes.length||(hs.viewport.style.display="none"),this.dimmingOpacity&&hs.undim(this.key),hs.fireEvent(this,"onAfterClose"),hs.expanders[this.key]=null,hs.reOrder()},tabbable:function(q,ti){9==(q.keyCode||q.which)&&(q.preventDefault(),ti[hs.nextActive].focus(),hs.nextActive++,hs.nextActive==ti.length&&(hs.nextActive=0))},addTabbable:function(q){if(q)return hs.tabbables=[],$(".highslide-thumbstrip img").each(function(){$(this).removeAttr("tabindex")}),!1;hs.tabbables=[],$(".highslide-wrapper .gallery-item--highslide-link a").length&&hs.tabbables.push($(".highslide-wrapper .gallery-item--highslide-link a")),hs.tabbables.push($(".highslide-wrapper .prev-item")),hs.tabbables.push($(".highslide-wrapper .next-item")),hs.tabbables.push($(".close-modal")),hs.tabbables.push($(".highslide-wrapper .highslide-full-expand")),$(".highslide-thumbstrip img").each(function(){$(this).attr("tabindex",0),hs.tabbables.push($(this))})}},hs.Ajax=function(q,ti,tn){this.a=q,this.content=ti,this.pre=tn},hs.Ajax.prototype={run:function(){if(this.src||(this.src=hs.getSrc(this.a)),this.src.match("#")){var q,ti=this.src.split("#");this.src=ti[0],this.id=ti[1]}if(hs.cachedGets[this.src]){this.cachedGet=hs.cachedGets[this.src],this.id?this.getElementContent():this.loadHTML();return}try{q=new XMLHttpRequest}catch(ti){try{q=new ActiveXObject("Msxml2.XMLHTTP")}catch(ti){try{q=new ActiveXObject("Microsoft.XMLHTTP")}catch(q){this.onError()}}}var tn=this;q.onreadystatechange=function(){4==tn.xhr.readyState&&(tn.id?tn.getElementContent():tn.loadHTML())};var ts=this.src;this.xhr=q,hs.forceAjaxReload&&(ts=ts.replace(/$/,(/\?/.test(ts)?"&":"?")+"dummy="+new Date().getTime())),q.open("GET",ts,!0),q.setRequestHeader("X-Requested-With","XMLHttpRequest"),q.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),q.send(null)},getElementContent:function(){hs.init();var q=window.opera||hs.ie6SSL?{src:"about:blank"}:null;this.iframe=hs.createElement("iframe",q,{position:"absolute",top:"-9999px"},hs.container),this.loadHTML()},loadHTML:function(){var q,ti=this.cachedGet||this.xhr.responseText;if(this.pre&&(hs.cachedGets[this.src]=ti),!hs.ie||hs.uaVersion>=5.5){if(ti=ti.replace(RegExp("<link[^>]*>","gi"),"").replace(RegExp("<script[^>]*>.*?</script>","gi"),""),this.iframe){var tn=this.iframe.contentDocument;if(!tn&&this.iframe.contentWindow&&(tn=this.iframe.contentWindow.document),!tn){var ts=this;setTimeout(function(){ts.loadHTML()},25);return}tn.open(),tn.write(ti),tn.close();try{ti=tn.getElementById(this.id).innerHTML}catch(q){try{ti=this.iframe.document.getElementById(this.id).innerHTML}catch(q){}}hs.discardElement(this.iframe)}else(q=/(<body[^>]*>|<\/body>)/ig).test(ti)&&(ti=ti.split(q)[hs.ieLt9?1:2])}for(var ta in hs.getElementByClass(this.content,"DIV","highslide-body").innerHTML=ti,this.onLoad(),this)this[ta]=null}},hs.Slideshow=function(q,ti){for(var tn in!1!==hs.dynamicallyUpdateAnchors&&hs.updateAnchors(),this.expKey=q,ti)this[tn]=ti[tn];this.useControls&&this.getControls(),this.thumbstrip&&(this.thumbstrip=hs.Thumbstrip(this))},hs.Slideshow.prototype={getControls:function(){this.controls=hs.createElement("div",{innerHTML:hs.replaceLang(hs.skin.controls)}
19,null,hs.container);var q=["play","pause","previous","next","move","full-expand","close"];this.btn={};for(var ti=0;ti<q.length;ti++)this.btn[q[ti]]=hs.getElementByClass(this.controls,"li","highslide-"+q[ti]),this.enable(q[ti]);this.btn.pause.style.display="none"},checkFirstAndLast:function(){if(!this.repeat&&this.controls){var q=hs.expanders[this.expKey],ti=q.getAnchorIndex(),tn=/disabled$/;0==ti?this.disable("previous"):tn.test(this.btn.previous.getElementsByTagName("a")[0].className)&&this.enable("previous"),ti+1==hs.anchors.groups[q.slideshowGroup||"none"].length?(this.disable("next"),this.disable("play")):tn.test(this.btn.next.getElementsByTagName("a")[0].className)&&(this.enable("next"),this.enable("play"))}},enable:function(q){if(this.btn){var ti=this,tn=this.btn[q].getElementsByTagName("a")[0],ts=/disabled$/;tn.onclick=function(){return ti[q](),!1},ts.test(tn.className)&&(tn.className=tn.className.replace(ts,""))}},disable:function(q){if(this.btn){var ti=this.btn[q].getElementsByTagName("a")[0];ti.onclick=function(){return!1},/disabled$/.test(ti.className)||(ti.className+=" disabled")}},hitSpace:function(){this.autoplay?this.pause():this.play()},play:function(q){this.btn&&(this.btn.play.style.display="none",this.btn.pause.style.display=""),this.autoplay=!0,q||hs.next(this.expKey)},pause:function(){this.btn&&(this.btn.pause.style.display="none",this.btn.play.style.display=""),clearTimeout(this.autoplay),this.autoplay=null},previous:function(){this.pause(),hs.addTabbable(!1),hs.previous(this.btn.previous)},next:function(){this.pause(),hs.next(this.btn.next),hs.addTabbable(!1)},move:function(){},"full-expand":function(){hs.getExpander().doFullExpand()},close:function(){hs.close(this.btn.close)}},hs.Thumbstrip=function(q){function ti(q){hs.extend(th||{},{overlayId:tf,hsId:"thumbstrip",className:"highslide-thumbstrip-"+td+"-overlay "+(th.className||"")}),hs.ieLt7&&(th.fade=0),q.createOverlay(th),hs.setStyles(tf.parentNode,{overflow:"hidden"})}function tn(q){ts(void 0,Math.round(q*tf[tu?"offsetWidth":"offsetHeight"]*.7))}function ts(ti,tn){if(void 0===ti){for(var ts=0;ts<tl.length;ts++)if(tl[ts]==hs.expanders[q.expKey].a){ti=ts;break}}if(void 0!==ti){var ta=tf.getElementsByTagName("a"),th=ta[ti],td=th.parentNode,tc=tu?"Left":"Top",tp=tu?"Width":"Height",tm="offset"+tc,tw="offset"+tp,tx=tg.parentNode.parentNode[tw],tT=tx-tb[tw],tL=parseInt(tb.style[tu?"left":"top"])||0,tC=tL;if(void 0!==tn)tT>0&&(tT=0),(tC=tL-tn)>0&&(tC=0),tC<tT&&(tC=tT);else{for(var ts=0;ts<ta.length;ts++)ta[ts].className="";th.className="highslide-active-anchor";var tS=ti>0?ta[ti-1].parentNode[tm]:td[tm],tP=td[tm]+td[tw]+(ta[ti+1]?ta[ti+1].parentNode[tw]:0);tP>tx-tL?tC=tx-tP:tS<-tL&&(tC=-tS)}var tk=td[tm]+(td[tw]-t_[tw])/2+tC;hs.animate(tb,tu?{left:tC}:{top:tC},null,"easeOutQuad"),hs.animate(t_,tu?{left:tk}:{top:tk},null,"easeOutQuad"),tv.style.display=tC<0?"block":"none",ty.style.display=tC>tT?"block":"none"}}for(var ta,tl=hs.anchors.groups[hs.expanders[q.expKey].slideshowGroup||"none"],th=q.thumbstrip,td=th.mode||"horizontal",tc="float"==td,tp=tc?["div","ul","li","span"]:["table","tbody","tr","td"],tu="horizontal"==td,tf=hs.createElement("div",{className:"highslide-thumbstrip highslide-thumbstrip-"+td,innerHTML:'<div class="highslide-thumbstrip-inner"><'+tp[0]+"><"+tp[1]+"></"+tp[1]+"></"+tp[0]+'></div><div class="highslide-scroll-up"><div></div></div><div class="highslide-scroll-down"><div></div></div><div class="highslide-marker"><div></div></div>'},{display:"none"},hs.container),tm=tf.childNodes,tg=tm[0],tv=tm[1],ty=tm[2],t_=tm[3],tb=tg.firstChild,tw=tf.getElementsByTagName(tp[1])[0],tx=0;tx<tl.length;tx++)0!=tx&&tu||(ta=hs.createElement(tp[2],null,null,tw)),function(){var q=tl[tx],ti=hs.createElement(tp[3],null,null,ta);hs.createElement("a",{href:q.href,title:q.title,onclick:function(){return!/highslide-active-anchor/.test(this.className)&&(hs.getExpander(this).focus(),hs.transit(q))},innerHTML:hs.stripItemFormatter?hs.stripItemFormatter(q):q.innerHTML.replace("style","data-style")},null,ti)}();return tc||(tv.onclick=function(){tn(-1)},ty.onclick=function(){tn(1)},hs.addEventListener(tw,void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",function(q){var ti=0;(q=q||window.event).wheelDelta?(ti=q.wheelDelta/120,hs.opera&&(ti=-ti)):q.detail&&(ti=-q.detail/3),ti&&tn(-(.2*ti)
19),q.preventDefault&&q.preventDefault(),q.returnValue=!1})),{add:ti,selectThumb:ts}},hs.langDefaults=hs.lang;var HsExpander=hs.Expander;hs.ie&&window==window.top&&function(){try{document.documentElement.doScroll("left")}catch(q){setTimeout(arguments.callee,50);return}hs.ready()}(),hs.addEventListener(document,"DOMContentLoaded",hs.ready),hs.addEventListener(window,"load",hs.ready),hs.addEventListener(document,"ready",function(){if(hs.expandCursor||hs.dimmingOpacity){var q=hs.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]),ti="BackCompat"==document.compatMode;function tn(tn,ts){if(hs.ie&&(hs.uaVersion<9||ti)){var ta=document.styleSheets[document.styleSheets.length-1];"object"==typeof ta.addRule&&ta.addRule(tn,ts)}else q.appendChild(document.createTextNode(tn+" {"+ts+"}"))}function ts(q){return"expression( ( ( ignoreMe = document.documentElement."+q+" ? document.documentElement."+q+" : document.body."+q+" ) ) + 'px' );"}hs.expandCursor&&tn(".highslide img","cursor: url("+hs.graphicsDir+hs.expandCursor+"), pointer !important;"),tn(".highslide-viewport-size",hs.ie&&(hs.uaVersion<7||ti)?"position: absolute; left:"+ts("scrollLeft")+"top:"+ts("scrollTop")+"width:"+ts("clientWidth")+"height:"+ts("clientHeight"):"position: fixed; width: 100%; height: 100%; left: 0; top: 0")}}),hs.addEventListener(window,"resize",function(){if(hs.getPageSize(),hs.viewport)for(var q=0;q<hs.viewport.childNodes.length;q++){var ti=hs.viewport.childNodes[q],tn=hs.getExpander(ti);tn.positionOverlay(ti),"thumbstrip"==ti.hsId&&tn.slideshow.thumbstrip.selectThumb()}}),hs.addEventListener(document,"mousemove",function(q){hs.mouse={x:q.clientX,y:q.clientY}}),hs.addEventListener(document,"mousedown",hs.mouseClickHandler),hs.addEventListener(document,"mouseup",hs.mouseClickHandler),hs.addEventListener(document,"ready",hs.setClickEvents),hs.addEventListener(window,"load",hs.preloadAjax)}function menuPrepare(){origMenuContent.length||(origMenuContent=menu.html()),menuHolder.css("width",menuHolderMaxWidth),allMenus.push([currentMenu.html(),Math.round(calcTotalMenuItemsWidth())]);for(var q=0;q<=menuChildrenCount;q++){moreButton.length&&moreButton.remove();var ti=currentMenu.children("li:last").remove();currentMenu.append(moreButton);var tn=calcTotalMenuItemsWidth();moreButton.children("ul").prepend($(ti)),allMenus.push([currentMenu.html(),Math.round(tn)])}menuHolder.css("width","")}function calcTotalMenuItemsWidth(){var q=0;return currentMenu.children().each(function(){q+=$(this)[0].getBoundingClientRect().width}),q}function addMoreButton(){for(var q=0;q<=menuChildrenCount;q++){if(currentMenuWidth<=allMenus[0][1]&¤tMenuWidth>=allMenus[q][1]){currentMenu.empty(),currentMenu.append(allMenus[q][0]);return}if(currentMenuWidth>allMenus[0][1]){currentMenu.empty(),currentMenu.append(origMenuContent);return}}}function disableLinks(q){$(q).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(q){q.preventDefault()})})}!function(q){"use strict";var ti=function(ti,tn){var ts=this;this.$el=q(ti),this.options=tn,this.init(),q(window).resize(function(){ts.contentPosition(),null!==hs.getExpander()&&hs.getExpander().reflow()})};ti.prototype.init=function(){var ti=this;function tn(){setTimeout(function(){var ti=q(".highslide-thumbstrip-inner .highslide-active-anchor"),tn=q(".highslide-marker");if(ti.length&&tn.length){var ts=ti.parent().position().left+ti.parent().outerWidth()/2-tn.outerWidth()/2;tn.css("left",ts+"px")}},30)}hs.graphicsDir=this.options.graphicsDir+"/",hs.align="center",hs.transitions=["expand","crossfade"],hs.fadeInOut=!0,hs.dimmingOpacity=.8,hs.captionEval=null,hs.marginBottom=105,hs.allowSizeReduction=!0,hs.expandCursor=null,hs.restoreCursor=null,hs.showCredits=!1,hs.onDrag=!1,hs.preserveContent=!1,hs.cacheAjax=!1,this.contentPosition(),this.options.showBorder?hs.outlineType="rounded-white":hs.outlineType=null,hs.Expander.prototype.onAfterExpand=function(){tn()},this.slideshowGroup="gallery-"+Math.random().toString(36).slice(2,11),this.$el.find("a.highslide").each(function(){let tn=q(this),ts=tn.attr("onclick")?.includes("hs.htmlExpand");
19if(tn.attr("data-slideshow-group",ti.slideshowGroup),ts){let q=tn.attr("onclick"),ts=q.replace(/\{\s*/,`{ slideshowGroup: '${ti.slideshowGroup}', `);tn.attr("onclick",ts)}else tn.attr("onclick",`return hs.expand(this, { align: 'center', slideshowGroup: '${ti.slideshowGroup}' })`)}),this.options.showThumbnails&&hs.addSlideshow({slideshowGroup:this.slideshowGroup,interval:5e3,repeat:!0,useControls:!1,overlayOptions:{className:"text-controls",position:"bottom center",relativeTo:"viewport",offsetY:-60},thumbstrip:{position:"bottom center",mode:"horizontal",relativeTo:"viewport"}})},ti.prototype.contentPosition=function(){"rightText"==this.options.layout&&"desktop"==this.getDevice()?(hs.captionOverlay.position="rightpanel",hs.captionOverlay.width="220px"):hs.captionOverlay.position="below"},ti.DEFAULTS={},ti.prototype.getDevice=function(){var ti=q(window).width();return ti<768?"mobile":ti<1025?"tablet":"desktop"};var tn=q.fn.highSlide;q.fn.highSlide=function(tn){var ts=Array.prototype.slice.call(arguments,1),ta=void 0;return this.each(function(){var tl=q(this),th=q.extend({},ti.DEFAULTS,tl.data(),"object"==typeof tn&&tn),td=new ti(this,th);if("string"==typeof tn&&(ta=td[tn].apply(td,ts)),void 0!==ta)return!1}),ta||this},q.fn.highSlide.Constructor=ti,q.fn.highSlide.noConflict=function(){return q.fn.highSlide=tn,this},q(document).on("ready",function(){q("[data-control=highslide]").each(function(){q(this).highSlide()})})}(window.jQuery),function(q){"use strict";var ti=function(q,ti){this.$el=q,this.$gridContainer=this.$el.find(".grid-container"),this.$sliderContainer=this.$el.find("#gallery-bx-slider"),this.options=ti,this.prevDevice=null,this.$items=this.$el.find(".gallery-grid--item").clone(),this.processDeviceColumns(),this.attachEvents()};ti.prototype.attachEvents=function(){var ti=this;q(window).resize(function(){ti.processDeviceColumns()})},ti.prototype.processDeviceColumns=function(){"grid_2"==this.options.layoutType?this.doGrid():"grid_1"==this.options.layoutType?this.doMasonry():"slider_1"==this.options.layoutType&&this.doSlideshow()},ti.prototype.doMasonry=function(){var ti=this.getDevice();if(this.prevDevice!=ti){this.prevDevice=ti;var tn=this.options[ti+"Columns"],ts=this.$el.find(".gallery-grid--item");ts.each(function(){q(this).removeClass(function(q,ti){return(ti.match(/\bgallery-grid--columns\S+/g)||[]).join(" ")})}),ts.each(function(){q(this).addClass("gallery-grid--columns-"+tn)}),ts.find("[data-setup-run]").each(function(){videojs(this,q(this).data("setupRun"),function(){var q=this;q.options()})}),this.$el.find('[data-control="masonry"]').masonryFunction(),this.$gridContainer.length?this.$gridContainer.trigger("html_restructured"):this.$el.trigger("html_restructured")}},ti.prototype.doGrid=function(){var ti=this.getDevice();if(this.prevDevice==ti){"none"!=this.options.ratio&&this.$el.imgScale();return}this.prevDevice=ti;var tn=this.options[ti+"Columns"];this.resetGridHTML(),this.$items.each(function(){q(this).removeClass(function(q,ti){return(ti.match(/\bgallery-grid--columns\S+/g)||[]).join(" ")})}),this.$items.each(function(){q(this).addClass("gallery-grid--columns-"+tn)});for(var ts=Math.ceil(this.$items.length/tn),ta=1;ta<=ts;ta++){var tl=q('<div class="gallery-row"></div>');this.$gridContainer.append(tl);for(var th=(ta-1)*tn;th<ta*tn;th++)if(void 0!==this.$items[th]){var td=q(this.$items[th]);if(0==td.find(".highslide-caption").length){var tc=td.find("a.highslide");if(tc.data("hasCaption")){var tp=q("#caption-"+tc.attr("id").split("-")[1]).html();void 0!=tp&&(tp=(tp=tp.replace("display: none","")).replace("highslide-caption-helper","highslide-caption"),tc.after(tp))}}tl.append(q(this.$items[th]).clone())}}"none"!=this.options.ratio&&this.$el.imgScale(),this.$gridContainer.trigger("html_restructured")},ti.prototype.doSlideshow=function(){var ti=this.getDevice();if(this.prevDevice==ti){"none"!=this.options.ratio&&this.$el.imgScale();return}this.prevDevice=ti;var tn=this.options[ti+"Columns"];void 0!=this.Slider&&(q(this.$el.find("#gallery-bx-slider > li")).each(function(){q(this).hasClass("bx-clone")&&q(this).remove()}),this.Slider.destSlider()),this.resetSlideshowHTML(),this.$items.each(function(){q(this).removeClass(function(q,ti){return(ti.match(/\bgallery-grid--columns\S+/g)||[]).join(" ")})}),this.$items.each(function(){q(this).addClass("gallery-grid--columns-"+tn)});for(var ts=Math.ceil(this.$items.length/tn),ta=1;ta<=ts;ta++){var tl=q('<li class="items-container"></li>'),th=q('<div class="gallery-items-wrap"></div>');this.$sliderContainer.append(tl),tl.append(th);for(var td=(ta-1)*tn;td<ta*tn;
19td++)if(void 0!==this.$items[td]){var tc=q(this.$items[td]);if(0==tc.find(".highslide-caption").length){var tp=tc.find("a.highslide");if(tp.data("hasCaption")){var tu=q("#caption-"+tp.attr("id").split("-")[1]).html();void 0!=tu&&(tu=(tu=tu.replace("display: none","")).replace("highslide-caption-helper","highslide-caption"),tp.after(tu))}}th.append(q(this.$items[td]).clone())}}"none"!=this.options.ratio&&this.$el.imgScale(),window.gallerySlider=this.Slider=this.$sliderContainer.slideshow(),window.gallerySliderArr.push(this.Slider.$bxSlider),this.$sliderContainer.trigger("html_restructured")},ti.prototype.resetGridHTML=function(){var q=this;q.$gridContainer.html("")},ti.prototype.resetSlideshowHTML=function(){var q=this;q.$sliderContainer.html("")},ti.prototype.getDevice=function(){var ti=q(window).width();return ti<752?"mobile":ti<1025?"tablet":"desktop"};var tn=q.fn.DevicePreview;q.fn.devicePreview=function(tn){var ts;return arguments,this.each(function(){var ta=q(this),tl=q.extend({},ta.data(),"object"==typeof tn&&tn),th="";if(ta.data("DevicePreview",th=new ti(ta,tl)),void 0!==ts)return!1}),ts||this},q.fn.devicePreview.Constructor=ti,q.fn.devicePreview.noConflict=function(){return q.fn.devicePreview=tn,this},q(window).on("load",function(){var ti=q('[data-ctrl="device-preview"]');window.gallerySliderArr=[],ti.length&&ti.each(function(){q(this).devicePreview()})})}(window.jQuery),$(document).ready(function(){var q=$(".editable__container");q.length&&q.each(function(){var q=$(this),ti=q.find(".contentExpandWrap"),tn=q.find("#readMoreLink");if(tn.length){function ts(q,ti){$(q).each(function(){var q=$(ti,{html:$(this).html()});$.each(this.attributes,function(){q.attr(this.name,this.value)}),$(this).replaceWith(q)})}"SPAN"==tn[0].nodeName&&(tn.attr("href","#editableAnimateShowLess"),ts(tn,"<a></a>")),ti.add(tn).removeClass("expand"),ti.hide(),tn.text("Show More"),q.on("click","#readMoreLink",function(tn){tn.preventDefault();var ts=$(this),ta=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");ta.length&&ta.parent().css("visibility","hidden"),"Show More"===ts.text()?(q.removeAttr("id"),ts.text("Show Less")):(q.attr("id","editableAnimateShowLess"),ts.text("Show More")),ti.add(ts).toggleClass("expand")})}})}),(q=>{"use strict";class ti{constructor(q){this.$el=q,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',ti=>{let tn=ti.target;if(!tn)return;let ts=decodeURI(tn.hash).slice(1);if(!ts)return;let ta=document.getElementById(ts);ta&&this.animateToAnchor(q(ta))})}animateToAnchor(ti,tn){tn??=this.getStickySectionsHeight(),q("html, body").animate({scrollTop:ti.offset().top-tn},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}q(()=>{for(let tn of document.querySelectorAll(".editable__container")){let ts=q(tn);ts.data(ti.dataAttribute,new ti(ts))}})})(window.jQuery),function(q,ti){"function"==typeof define&&define.amd?define(ti):"object"==typeof exports?module.exports=ti(require,exports,module):q.ScrollReveal=ti()}(this,function(q,ti,tn){return(function(){this.ScrollReveal=function(){function ts(ti){return window==this?new ts(ti):(q=this,q.tools=new tn,q.tools.extend(q.defaults,ti||{}),(!q.tools.isMobile()||!!q.defaults.mobile)&&(q.tools.isSupported("transform")&&q.tools.isSupported("transition")?(q.store={elements:{},containers:[]},q.history=[],q.counter=0,q.running=!1,q.initialized=!1,q):console.warn("ScrollReveal is not supported in this browser.")))}return ts.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier( 0.6, 0.2, 0.1, 1 )",container:null,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},afterReveal:function(q){},afterReset:function(q){}},ts.prototype.reveal=function(ti,tn,ts){var ta,tl,th,td;if(tl=tn&&tn.container?tn.container:q.defaults.container?q.defaults.container:window.document.documentElement,!(ta=Array.prototype.slice.call(tl.querySelectorAll(ti))).length)return console.warn("reveal('"+ti+"') failed: no elements found."),q;for(var tc=0;tc<ta.length;tc++)th={},(td=ta[tc].getAttribute("data-sr-id"))?th=q.store.elements[td]:(th={id:++q.counter,domEl:ta[tc],seen:!1,revealed:!1}).domEl.setAttribute("data-sr-id",th.id),q.configure(th,tn||{}),q.style(th),q.updateStore(th),th.revealed||th.domEl.setAttribute("style",th.styles.inline+th.styles.transform.initial);return ts||(q.record(ti,tn),q.initTimeout&&window.clearTimeout(q.initTimeout),q.initTimeout=window.setTimeout(q.init,0)),q},ts.prototype.configure=function(ti,tn){ti.config?ti.config=q.tools.extendClone(ti.config,tn):ti.config=q.tools.extendClone(q.defaults,tn),"top"===ti.config.origin||"bottom"===ti.config.origin?ti.config.axis="Y":ti.config.axis="X",("top"===ti.config.origin||"left"===ti.config.origin)&&(ti.config.distance="-"+ti.config.distance)},ts.prototype.style=function(q){function ti(ti){parseInt(tn.distance)&&(ti.initial+=" translate"+tn.axis+"("+tn.distance+")",ti.target+=" translate"+tn.axis+"(0)"),tn.scale&&(ti.initial+=" scale("+tn.scale+")",ti.target+=" scale(1)"),tn.rotate.x&&(ti.initial+=" rotateX("+tn.rotate.x+"deg)",ti.target+=" rotateX(0)"),tn.rotate.y&&(ti.initial+=" rotateY("+tn.rotate.y+"deg)",ti.target+=" rotateY(0)"),tn.rotate.z&&(ti.initial+=" rotateZ("+tn.rotate.z+"deg)",ti.target+=" rotateZ(0)"),ti.initial+="; opacity: "+tn.opacity+";",ti.target+=";
19 opacity: "+q.styles.computed.opacity+";"}var tn=q.config,ts=window.getComputedStyle(q.domEl);q.styles||(q.styles={transition:{},transform:{},computed:{}},q.styles.inline=q.domEl.getAttribute("style")||"",q.styles.inline+="; visibility: visible; ",q.styles.computed.opacity=ts.opacity,ts.transition&&"all 0s ease 0s"!=ts.transition?q.styles.computed.transition=ts.transition+", ":q.styles.computed.transition=""),q.styles.transition.instant="-webkit-transition: "+q.styles.computed.transition+"-webkit-transform "+tn.duration/1e3+"s "+tn.easing+" 0s, opacity "+tn.duration/1e3+"s "+tn.easing+" 0s; transition: "+q.styles.computed.transition+"transform "+tn.duration/1e3+"s "+tn.easing+" 0s, opacity "+tn.duration/1e3+"s "+tn.easing+" 0s; ",q.styles.transition.delayed="-webkit-transition: "+q.styles.computed.transition+"-webkit-transform "+tn.duration/1e3+"s "+tn.easing+" "+tn.delay/1e3+"s, opacity "+tn.duration/1e3+"s "+tn.easing+" "+tn.delay/1e3+"s; transition: "+q.styles.computed.transition+"transform "+tn.duration/1e3+"s "+tn.easing+" "+tn.delay/1e3+"s, opacity "+tn.duration/1e3+"s "+tn.easing+" "+tn.delay/1e3+"s; ",q.styles.transform.initial=" -webkit-transform:",q.styles.transform.target=" -webkit-transform:",ti(q.styles.transform),q.styles.transform.initial+="transform:",q.styles.transform.target+="transform:",ti(q.styles.transform)},ts.prototype.updateStore=function(ti){var tn=ti.config.container;tn&&-1==q.store.containers.indexOf(tn)&&q.store.containers.push(ti.config.container),q.store.elements[ti.id]=ti},ts.prototype.record=function(ti,tn){var ts={selector:ti,config:tn};q.history.push(ts)},ts.prototype.init=function(){q.animate();for(var ti=0;ti<q.store.containers.length;ti++)q.store.containers[ti].addEventListener("scroll",q.handler),q.store.containers[ti].addEventListener("resize",q.handler);return q.initialized||(window.addEventListener("scroll",q.handler),window.addEventListener("resize",q.handler),q.initialized=!0),q},ts.prototype.handler=function(){q.running||ti(function(){q.running=!0,q.animate()})},ts.prototype.animate=function(){var ti,tn;function ts(q,ti){var tn=0,ts=0,ta="after";switch(q){case"reveal":ts=ti.config.duration+ti.config.delay,ta+="Reveal";break;case"reset":ts=ti.config.duration,ta+="Reset"}return ti.timer&&(tn=Math.abs(ti.timer.started-new Date),window.clearTimeout(ti.timer.clock)),ti.timer={started:new Date},ti.timer.clock=window.setTimeout(function(){ti.config[ta](ti.domEl),ti.timer=null},ts-tn),"reveal"===q?ti.revealed=!0:ti.revealed=!1}q.tools.forOwn(q.store.elements,function(ta){ti=q.store.elements[ta],(tn=q.isElemVisible(ti))&&!ti.revealed?("always"!==ti.config.useDelay&&("onload"!==ti.config.useDelay||q.initialized)&&("once"!==ti.config.useDelay||ti.seen)?ti.domEl.setAttribute("style",ti.styles.inline+ti.styles.transform.target+ti.styles.transition.instant):ti.domEl.setAttribute("style",ti.styles.inline+ti.styles.transform.target+ti.styles.transition.delayed),ti.seen=!0,ts("reveal",ti)):!tn&&ti.config.reset&&ti.revealed&&(ti.domEl.setAttribute("style",ti.styles.inline+ti.styles.transform.initial+ti.styles.transition.instant),ts("reset",ti))}),q.running=!1},ts.prototype.getContainer=function(q){return q||(q=window.document.documentElement),{width:q.clientWidth,height:q.clientHeight}},ts.prototype.getScrolled=function(ti){if(ti){var tn=q.getOffset(ti);return{x:ti.scrollLeft+tn.left,y:ti.scrollTop+tn.top}}return{x:window.pageXOffset,y:window.pageYOffset}},ts.prototype.getOffset=function(q){var ti=0,tn=0,ts=q.offsetHeight,ta=q.offsetWidth;do isNaN(q.offsetTop)||(ti+=q.offsetTop),isNaN(q.offsetLeft)||(tn+=q.offsetLeft);while(q=q.offsetParent);return{top:ti,left:tn,height:ts,width:ta}},ts.prototype.isElemVisible=function(ti){function tn(){var q=tu+tc*td,tn=tf+tp*td,ts=tm-tc*td,ta=tg-tp*td,tv=th.y+ti.config.viewOffset.top,ty=th.x+ti.config.viewOffset.left,t_=th.y-ti.config.viewOffset.bottom+tl.height,tb=th.x-ti.config.viewOffset.right+tl.width;return t_>q&&ts>tv&&tn>ty&&tb>ta}function ts(){return"fixed"===window.getComputedStyle(ti.domEl).position}var ta=q.getOffset(ti.domEl),tl=q.getContainer(ti.config.container),th=q.getScrolled(ti.config.container),td=ti.config.viewFactor,tc=ta.height,tp=ta.width,tu=ta.top,tf=ta.left,tm=tu+tc,tg=tf+tp;return tn()||ts()},ts.prototype.sync=function(){if(q.history.length){for(var ti=0;ti<q.history.length;ti++){var tn=q.history[ti];q.reveal(tn.selector,tn.config,!0)}q.init()}else console.warn("sync() failed: no reveals found.");return q},ts}();var q,ti,tn=function(){function q(){}return q.prototype.isObject=function(q){return null!==q&&"object"==typeof q&&q.constructor==Object},q.prototype.forOwn=function(q,ti){if(!this.isObject(q))throw TypeError("Expected 'object', but received '"+typeof q+"'.");for(var tn in q)q.hasOwnProperty(tn)&&ti(tn)},q.prototype.extend=function(q,ti){return this.forOwn(ti,(function(tn){this.isObject(ti[tn])?(q[tn]&&this.isObject(q[tn])||
19(q[tn]={}),this.extend(q[tn],ti[tn])):q[tn]=ti[tn]}).bind(this)),q},q.prototype.extendClone=function(q,ti){return this.extend(this.extend({},q),ti)},q.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},q.prototype.isSupported=function(q){for(var ti=document.createElement("sensor"),tn="Webkit,Moz,O,".split(","),ts=(q+tn.join(q+",")).split(","),ta=0;ta<ts.length;ta++)ti.style[ts[ta]];return!0},q}(),ti=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}).call(this),this.ScrollReveal}),window.sr=new ScrollReveal,function(q){"use strict";q(".articles__categories").each(function(){q(this).mmenu({offCanvas:!1,autoHeight:!0,navbar:{title:"Categories"},extensions:["fullscreen"]},{})}),q(".mm-next").addClass("mm-fullsubopen")}(window.jQuery),function(q){"use strict";q(".blog__categories").mmenu({offCanvas:!1,autoHeight:!0,navbar:{title:"Categories"},extensions:["fullscreen"]},{}),q(".mm-next").addClass("mm-fullsubopen")}(window.jQuery),function(q){function ti(ti){this.options=q.extend({list:null,levelIndentHTML:" • ",defaultOptionAttr:"title",defaultOptionText:"...",selectClass:"nav-select",activeClass:"nav-active",defaultOptionClass:"opt-default",hasDropClass:"opt-sublevel",levelPrefixClass:"opt-level-",useDefaultOption:!0},ti),this.options.list&&(this.createSelect(),this.attachEvents())}ti.prototype={createSelect:function(){this.startIndex=0,this.navigation=q(this.options.list),this.select=q("<select>").addClass(this.options.selectClass),this.createDefaultOption(),this.createList(this.navigation,0),this.select.insertBefore(this.navigation)},createDefaultOption:function(){if(this.options.useDefaultOption){var ti=this.navigation.attr(this.options.defaultOptionAttr),tn=q("<option>").addClass(this.options.defaultOptionClass).text(ti||this.options.defaultOptionText);this.navigation.removeAttr(this.options.defaultOptionAttr),this.select.append(tn),this.startIndex=1}},createList:function(ti,tn){var ts=this;ti.children().each(function(ti,ta){var tl=q(this),th=tl.find("a").eq(0),td=tl.find("ul").eq(0),tc=td.length>0;th.length&&ts.select.append(ts.createOption(th,tc,tn,th.hasClass(ts.options.activeClass))),tc&&ts.createList(td,tn+1)})},createOption:function(ti,tn,ts,ta){var tl=this.getLevelIndent(ts)+ti.html();return q("<option>").html(tl).addClass(this.options.levelPrefixClass+(ts+1)).toggleClass(this.options.hasDropClass,tn).val(ti.attr("href")).attr("selected",!!ta&&"selected")},getLevelIndent:function(q){return Array(q+1).join(this.options.levelIndentHTML)},attachEvents:function(){var q=this;this.select.change(function(){this.selectedIndex>=q.startIndex&&(location.href=this.value)})}},q.fn.navigationSelect=function(tn){return this.each(function(){new ti(q.extend({list:this},tn))})}}(jQuery),jQuery(function(){jQuery(".pagination--mobile .pagination-list").navigationSelect({useDefaultOption:!1,selectClass:"pagination-select",activeClass:"active"}),jQuery(".blog__pagination-item--link").each(function(){"#"===$(this).attr("href")&&$(this).click(function(q){q.preventDefault()})})}),function(q){"use strict";var ti=function(q,ti){this.$el=q,this.$containers=q.find(".pagination--device"),this.options=ti,this.showDevice(),this.attachEvents()};ti.prototype.attachEvents=function(){var ti=this;q(window).resize(function(){ti.showDevice()})},ti.prototype.showDevice=function(){this.$containers.hide();var q=this.getDevice();this.$el.find(".pagination--"+q).show()},ti.prototype.getDevice=function(){var ti=q(window).width();return ti<768?"mobile":ti<1024?"tablet":"desktop"};var tn=q.fn.PaginationDevicePreview;q.fn.paginationDevicePreview=function(tn){var ts;return arguments,this.each(function(){var ta=q(this),tl=q.extend({},ta.data(),"object"==typeof tn&&tn),th="";if(ta.data("PaginationDevicePreview",th=new ti(ta,tl)),void 0!==ts)return!1}),ts||this},q.fn.paginationDevicePreview.Constructor=ti,q.fn.paginationDevicePreview.noConflict=function(){return q.fn.paginationDevicePreview=tn,this},q(function(){q('[data-control="pagination-device-preview"]').paginationDevicePreview()})}(window.jQuery),$(document).ready(function(){$(".blog__pagination .fancy-pagination .current-page").click(function(){$(this).next().toggleClass("active")})}),function(q){"use strict";
19q(document).ready(function(){q(".js-testimonials-layout-settings").each(function(){var ti=this;"list"===q(ti).data("layout-type")&&sr.reveal(".testimonials__item")})})}(window.jQuery),((q,ti)=>{"object"==typeof exports&&"undefined"!=typeof module?ti(exports):"function"==typeof define&&define.amd?define(["exports"],ti):ti((q="undefined"!=typeof globalThis?globalThis:q||self).leaflet={})})(this,function(q){let ti,tn,ts,ta=0;function tl(q){return"_leaflet_id"in q||(q._leaflet_id=++ta),q._leaflet_id}function th(q,ti,tn){let ts,ta;function tl(){ts=!1,ta&&(th.apply(tn,ta),ta=!1)}function th(...td){ts?ta=td:(q.apply(tn,td),setTimeout(tl,ti),ts=!0)}return th}function td(q,ti,tn){var ts=ti[1],ti=ti[0],ta=ts-ti;return q===ts&&tn?q:((q-ti)%ta+ta)%ta+ti}function tc(){return!1}function tp(q,ti){return!1===ti?q:Math.round(q*(ti=10**(void 0===ti?6:ti)))/ti}function tu(q){return q.trim().split(/\s+/)}function tf(q,ti){for(var tn in Object.hasOwn(q,"options")||(q.options=q.options?Object.create(q.options):{}),ti)Object.hasOwn(ti,tn)&&(q.options[tn]=ti[tn]);return q.options}let tm=/\{ *([\w_ -]+) *\}/g;function tg(q,ti){return q.replace(tm,(q,tn)=>{let ts=ti[tn];if(void 0===ts)throw Error("No value provided for variable "+q);return"function"==typeof ts?ts(ti):ts})}let tv="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",ty={__proto__:null,emptyImageUrl:tv,falseFn:tc,formatNum:tp,get lastId(){return ta},setOptions:tf,splitWords:tu,stamp:tl,template:tg,throttle:th,wrapNum:td};class t_{static extend({statics:q,includes:ti,...tn}){var ts=class extends this{},ta=(Object.setPrototypeOf(ts,this),this.prototype),tl=ts.prototype;if(q&&Object.assign(ts,q),Array.isArray(ti))for(var th of ti)Object.assign(tl,th);else ti&&Object.assign(tl,ti);return Object.assign(tl,tn),tl.options&&(tl.options=ta.options?Object.create(ta.options):{},Object.assign(tl.options,tn.options)),tl._initHooks=[],ts}static include(q){var ti=this.prototype.options;return Object.assign(this.prototype,q),q.options&&(this.prototype.options=ti,this.mergeOptions(q.options)),this}static mergeOptions(q){return this.prototype.options??={},Object.assign(this.prototype.options,q),this}static addInitHook(q,...ti){var tn="function"==typeof q?q:function(){this[q].apply(this,ti)};return this.prototype._initHooks??=[],this.prototype._initHooks.push(tn),this}constructor(...q){this._initHooksCalled=!1,tf(this),this.initialize&&this.initialize(...q),this.callInitHooks()}callInitHooks(){if(!this._initHooksCalled){var q,ti=[];let ts=this;for(;null!==(ts=Object.getPrototypeOf(ts));)ti.push(ts);for(q of(ti.reverse(),ti))for(var tn of q._initHooks??[])tn.call(this);this._initHooksCalled=!0}}}var tb={on(q,ti,tn){if("object"==typeof q)for(var[ts,ta]of Object.entries(q))this._on(ts,ta,ti);else for(var tl of tu(q))this._on(tl,ti,tn);return this},off(q,ti,tn){if(arguments.length){if("object"==typeof q)for(var[ts,ta]of Object.entries(q))this._off(ts,ta,ti);else{var tl,th=1==arguments.length;for(tl of tu(q))th?this._off(tl):this._off(tl,ti,tn)}}else delete this._events;return this},_on(q,ti,tn,ts){"function"!=typeof ti?console.warn("wrong listener type: "+typeof ti):!1===this._listens(q,ti,tn)&&(ti={fn:ti,ctx:tn=tn===this?void 0:tn},ts&&(ti.once=!0),this._events??={},this._events[q]??=[],this._events[q].push(ti))},_off(q,ti,tn){if(this._events){let ta=this._events[q];if(ta){if(1==arguments.length){if(this._firingCount)for(var ts of ta)ts.fn=tc;delete this._events[q]}else"function"!=typeof ti?console.warn("wrong listener type: "+typeof ti):!1!==(ti=this._listens(q,ti,tn))&&(tn=ta[ti],this._firingCount&&(tn.fn=tc,this._events[q]=ta=ta.slice()),ta.splice(ti,1))}}},fire(q,ti,tn){if(this.listens(q,tn)){var ts={...ti,type:q,target:this,sourceTarget:ti?.sourceTarget||this};if(this._events&&(ti=this._events[q])){for(var ta of(this._firingCount=this._firingCount+1||1,ti)){var tl=ta.fn;ta.once&&this.off(q,tl,ta.ctx),tl.call(ta.ctx||this,ts)}this._firingCount--}tn&&this._propagateEvent(ts)}return this},listens(q,ti,tn,ts){"string"!=typeof q&&console.warn('"string" type argument expected');let ta=ti;if("function"!=typeof ti&&(ts=!!ti,tn=ta=void 0),this._events?.[q]?.length&&!1!==this._listens(q,ta,tn))return!0;
19if(ts){for(var tl of Object.values(this._eventParents??{}))if(tl.listens(q,ti,tn,ts))return!0}return!1},_listens(q,ti,tn){return!!this._events&&((q=this._events[q]??[],ti)?(tn===this&&(tn=void 0),-1!==(q=q.findIndex(q=>q.fn===ti&&q.ctx===tn))&&q):!!q.length)},once(q,ti,tn){if("object"==typeof q)for(var[ts,ta]of Object.entries(q))this._on(ts,ta,ti,!0);else for(var tl of tu(q))this._on(tl,ti,tn,!0);return this},addEventParent(q){return this._eventParents??={},this._eventParents[tl(q)]=q,this},removeEventParent(q){return this._eventParents&&delete this._eventParents[tl(q)],this},_propagateEvent(q){for(var ti of Object.values(this._eventParents??{}))ti.fire(q.type,{propagatedFrom:q.target,...q},!0)}},tb=(tb.addEventListener=tb.on,tb.removeEventListener=tb.clearAllEventListeners=tb.off,tb.addOneTimeEventListener=tb.once,tb.fireEvent=tb.fire,tb.hasEventListeners=tb.listens,t_.extend(tb));class tw{constructor(q,ti,tn){let ts,ta;if(!tw.validate(q,ti))throw Error(`Invalid Point object: (${q}, ${ti})`);if(q instanceof tw)return q;ta=Array.isArray(q)?(ts=q[0],q[1]):"object"==typeof q&&"x"in q&&"y"in q?(ts=q.x,q.y):(ts=q,ti),this.x=tn?Math.round(ts):ts,this.y=tn?Math.round(ta):ta}static validate(q,ti){return!!(q instanceof tw||Array.isArray(q))||!!(q&&"object"==typeof q&&"x"in q&&"y"in q)||!(!q&&0!==q||!ti&&0!==ti)}clone(){var q=new tw(0,0);return q.x=this.x,q.y=this.y,q}add(q){return this.clone()._add(new tw(q))}_add(q){return this.x+=q.x,this.y+=q.y,this}subtract(q){return this.clone()._subtract(new tw(q))}_subtract(q){return this.x-=q.x,this.y-=q.y,this}divideBy(q){return this.clone()._divideBy(q)}_divideBy(q){return this.x/=q,this.y/=q,this}multiplyBy(q){return this.clone()._multiplyBy(q)}_multiplyBy(q){return this.x*=q,this.y*=q,this}scaleBy(q){return new tw(this.x*q.x,this.y*q.y)}unscaleBy(q){return new tw(this.x/q.x,this.y/q.y)}round(){return this.clone()._round()}_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}floor(){return this.clone()._floor()}_floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.clone()._ceil()}_ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}trunc(){return this.clone()._trunc()}_trunc(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}distanceTo(q){var ti=(q=new tw(q)).x-this.x,q=q.y-this.y;return Math.sqrt(ti*ti+q*q)}equals(q){return(q=new tw(q)).x===this.x&&q.y===this.y}contains(q){return Math.abs((q=new tw(q)).x)<=Math.abs(this.x)&&Math.abs(q.y)<=Math.abs(this.y)}toString(){return`Point(${tp(this.x)}, ${tp(this.y)})`}}class tx{constructor(q,ti){if(q){var tn;if(q instanceof tx)return q;for(tn of ti?[q,ti]:q)this.extend(tn)}}extend(q){let ti,tn;if(q){if(q instanceof tw||"number"==typeof q[0]||"x"in q)ti=tn=new tw(q);else if(ti=(q=new tx(q)).min,tn=q.max,!ti||!tn)return this;this.min||this.max?(this.min.x=Math.min(ti.x,this.min.x),this.max.x=Math.max(tn.x,this.max.x),this.min.y=Math.min(ti.y,this.min.y),this.max.y=Math.max(tn.y,this.max.y)):(this.min=ti.clone(),this.max=tn.clone())}return this}getCenter(q){return new tw((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,q)}getBottomLeft(){return new tw(this.min.x,this.max.y)}getTopRight(){return new tw(this.max.x,this.min.y)}getTopLeft(){return this.min}getBottomRight(){return this.max}getSize(){return this.max.subtract(this.min)}contains(q){let ti,tn;return(q=new("number"==typeof q[0]||q instanceof tw?tw:tx)(q))instanceof tx?(ti=q.min,tn=q.max):ti=tn=q,ti.x>=this.min.x&&tn.x<=this.max.x&&ti.y>=this.min.y&&tn.y<=this.max.y}intersects(q){q=new tx(q);var ti=this.min,tn=this.max,ts=q.min,q=q.max,ta=q.x>=ti.x&&ts.x<=tn.x,ti=ti.y<=q.y&&ts.y<=tn.y;return ta&&ti}overlaps(q){q=new tx(q);var ti=this.min,tn=this.max,ts=q.min,q=q.max,ta=q.x>ti.x&&ts.x<tn.x,ti=ti.y<q.y&&ts.y<tn.y;return ta&&ti}isValid(){return!(!this.min||!this.max)}pad(q){var ti=this.min,tn=this.max,ts=Math.abs(ti.x-tn.x)*q,q=Math.abs(ti.y-tn.y)*q;return new tx(new tw(ti.x-ts,ti.y-q),new tw(tn.x+ts,tn.y+q))}equals(q){return!!q&&(q=new tx(q),this.min.equals(q.getTopLeft()))&&this.max.equals(q.getBottomRight())}}class tT{constructor(q,ti){if(q){var tn;if(q instanceof tT)return q;for(tn of ti?[q,ti]:q)this.extend(tn)}}extend(q){let ti,tn;var ts=this._southWest,ta=this._northEast;if(q instanceof tL)ti=q,tn=q;else{if(!(q instanceof tT))return q?tL.validate(q)?this.extend(new tL(q)):this.extend(new tT(q)):this;if(ti=q._southWest,tn=q._northEast,!ti||!tn)return this}return ts||ta?(ts.lat=Math.min(ti.lat,ts.lat),ts.lng=Math.min(ti.lng,ts.lng),ta.lat=Math.max(tn.lat,ta.lat),ta.lng=Math.max(tn.lng,ta.lng)):(this._southWest=new tL(ti.lat,ti.lng),this._northEast=new tL(tn.lat,tn.lng)),this}pad(q){var ti=this._southWest,tn=this._northEast,ts=Math.abs(ti.lat-tn.lat)*q,q=Math.abs(ti.lng-tn.lng)*q;return new tT(new tL(ti.lat-ts,ti.lng-q),new tL(tn.lat+ts,tn.lng+q))}getCenter(){return new tL((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)}
19getSouthWest(){return this._southWest}getNorthEast(){return this._northEast}getNorthWest(){return new tL(this.getNorth(),this.getWest())}getSouthEast(){return new tL(this.getSouth(),this.getEast())}getWest(){return this._southWest.lng}getSouth(){return this._southWest.lat}getEast(){return this._northEast.lng}getNorth(){return this._northEast.lat}contains(q){let ti,tn;q=new(tL.validate(q)?tL:tT)(q);var ts=this._southWest,ta=this._northEast;return q instanceof tT?(ti=q.getSouthWest(),tn=q.getNorthEast()):ti=tn=q,ti.lat>=ts.lat&&tn.lat<=ta.lat&&ti.lng>=ts.lng&&tn.lng<=ta.lng}intersects(q){q=new tT(q);var ti=this._southWest,tn=this._northEast,ts=q.getSouthWest(),q=q.getNorthEast(),ta=q.lat>=ti.lat&&ts.lat<=tn.lat,q=q.lng>=ti.lng&&ts.lng<=tn.lng;return ta&&q}overlaps(q){q=new tT(q);var ti=this._southWest,tn=this._northEast,ts=q.getSouthWest(),q=q.getNorthEast(),ta=q.lat>ti.lat&&ts.lat<tn.lat,q=q.lng>ti.lng&&ts.lng<tn.lng;return ta&&q}toBBoxString(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")}equals(q,ti){return!!q&&(q=new tT(q),this._southWest.equals(q.getSouthWest
19(),ti))&&this._northEast.equals(q.getNorthEast(),ti)}isValid(){return!(!this._southWest||!this._northEast)}}class tL{constructor(q,ti,tn){let ts,ta,tl;if(!tL.validate(q,ti,tn))throw Error(`Invalid LatLng object: (${q}, ${ti})`);if(q instanceof tL)return q;Array.isArray(q)&&"object"!=typeof q[0]?3===q.length?(ts=q[0],ta=q[1],tl=q[2]):2===q.length&&(ts=q[0],ta=q[1]):tl="object"==typeof q&&"lat"in q?(ts=q.lat,ta="lng"in q?q.lng:q.lon,q.alt):(ts=q,ta=ti,tn),this.lat=+ts,this.lng=+ta,void 0!==tl&&(this.alt=+tl)}static validate(q,ti,tn){return q instanceof tL||"object"==typeof q&&"lat"in q||(q&&Array.isArray(q)&&"object"!=typeof q[0]?3===q.length||2===q.length:!(!q&&0!==q||!ti&&0!==ti))}equals(q,ti){return!!q&&(q=new tL(q),Math.max(Math.abs(this.lat-q.lat),Math.abs(this.lng-q.lng))<=(ti??1e-9))}toString(q){return`LatLng(${tp(this.lat,q)}, ${tp(this.lng,q)})`}distanceTo(q){return tS.distance(this,new tL(q))}wrap(){return tS.wrapLatLng(this)}toBounds(q){var q=180*q/40075017,ti=q/Math.cos(Math.PI/180*this.lat);return new tT([this.lat-q,this.lng-ti],[this.lat+q,this.lng+ti])}clone(){var q=new tL(0,0);return q.lat=this.lat,q.lng=this.lng,q.alt=this.alt,q}}class tC{static projection=void 0;static transformation=void 0;static latLngToPoint(q,ti){return q=this.projection.project(q),ti=this.scale(ti),this.transformation._transform(q,ti)}static pointToLatLng(q,ti){return ti=this.scale(ti),q=this.transformation.untransform(q,ti),this.projection.unproject(q)}static project(q){return this.projection.project(q)}static unproject(q){return this.projection.unproject(q)}static scale(q){return 256*2**q}static zoom(q){return Math.log(q/256)/Math.LN2}static getProjectedBounds(q){var ti,tn;return this.infinite?null:(tn=this.projection.bounds,q=this.scale(q),ti=this.transformation.transform(tn.min,q),tn=this.transformation.transform(tn.max,q),new tx(ti,tn))}static infinite=!1;static wrapLatLng(q){var ti=this.wrapLng?td(q.lng,this.wrapLng,!0):q.lng,tn=this.wrapLat?td(q.lat,this.wrapLat,!0):q.lat,q=q.alt;return new tL(tn,ti,q)}static wrapLatLngBounds(q){var ti=q.getCenter(),tn=this.wrapLatLng(ti),ts=ti.lat-tn.lat,ti=ti.lng-tn.lng;
19return 0==ts&&0==ti?q:(tn=q.getSouthWest(),q=q.getNorthEast(),tn=new tL(tn.lat-ts,tn.lng-ti),ts=new tL(q.lat-ts,q.lng-ti),new tT(tn,ts))}}class tS extends tC{static wrapLng=[-180,180];static R=6371e3;static distance(q,ti){var tn=Math.PI/180,ts=q.lat*tn,ta=ti.lat*tn,tl=Math.sin((ti.lat-q.lat)*tn/2),ti=Math.sin((ti.lng-q.lng)*tn/2),q=tl*tl+Math.cos(ts)*Math.cos(ta)*ti*ti,tn=2*Math.atan2(Math.sqrt(q),Math.sqrt(1-q));return this.R*tn}}let tP={R:6378137,MAX_LATITUDE:85.0511287798,project(q){var ti=Math.PI/180,tn=this.MAX_LATITUDE,tn=Math.max(Math.min(tn,q.lat),-tn),tn=Math.sin(tn*ti);return new tw(this.R*q.lng*ti,this.R*Math.log((1+tn)/(1-tn))/2)},unproject(q){var ti=180/Math.PI;return new tL((2*Math.atan(Math.exp(q.y/this.R))-Math.PI/2)*ti,q.x*ti/this.R)},bounds:(tM=6378137*Math.PI,new tx([-tM,-tM],[tM,tM]))};class tk{constructor(q,ti,tn,ts){Array.isArray(q)?(this._a=q[0],this._b=q[1],this._c=q[2],this._d=q[3]):(this._a=q,this._b=ti,this._c=tn,this._d=ts)}transform(q,ti){return this._transform(q.clone(),ti)}_transform(q,ti){return q.x=(ti||=1)*(this._a*q.x+this._b),q.y=ti*(this._c*q.y+this._d),q}untransform(q,ti){return ti||=1,new tw((q.x/ti-this._b)/this._a,(q.y/ti-this._d)/this._c)}}class tE extends tS{static code="EPSG:3857";static projection=tP;static transformation=(tM=.5/(Math.PI*tP.R),new tk(tM,.5,-tM,.5))}class tz extends tE{static code="EPSG:900913"}var tM=t$("chrome"),tI=!tM&&t$("safari"),tO="undefined"!=typeof orientation||t$("mobile"),tA="undefined"!=typeof window&&!!window.PointerEvent,tB="undefined"!=typeof window&&("ontouchstart"in window||!!window.TouchEvent);function t$(q){return"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&navigator.userAgent.toLowerCase().includes(q)}var tj={chrome:tM,safari:tI,mobile:tO,pointer:tA,touch:tB||tA,touchNative:tB,retina:"undefined"!=typeof window&&void 0!==window.devicePixelRatio&&1<window.devicePixelRatio,mac:"undefined"!=typeof navigator&&void 0!==navigator.platform&&navigator.platform.startsWith("Mac"),linux:"undefined"!=typeof navigator&&void 0!==navigator.platform&&navigator.platform.startsWith("Linux")};let tD=200;function tH(q,ti){q.addEventListener("dblclick",ti);let tn=0,ts;function ta(q){var ti;1!==q.detail?ts=q.detail:"mouse"===q.pointerType||q.sourceCapabilities&&!q.sourceCapabilities.firesTouchEvents||(ti=e_(q)).some(q=>q instanceof HTMLLabelElement&&q.attributes.for)&&!ti.some(q=>q instanceof HTMLInputElement||q instanceof HTMLSelectElement)||((ti=Date.now())-tn<=tD?2==++ts&&q.target.dispatchEvent((q=>{let ti={bubbles:q.bubbles,cancelable:q.cancelable,composed:q.composed,detail:2,view:q.view,screenX:q.screenX,screenY:q.screenY,clientX:q.clientX,clientY:q.clientY,ctrlKey:q.ctrlKey,shiftKey:q.shiftKey,altKey:q.altKey,metaKey:q.metaKey,button:q.button,buttons:q.buttons,relatedTarget:q.relatedTarget,region:q.region};return new(q instanceof PointerEvent?(ti={...ti,pointerId:q.pointerId,width:q.width,height:q.height,pressure:q.pressure,tangentialPressure:q.tangentialPressure,tiltX:q.tiltX,tiltY:q.tiltY,twist:q.twist,pointerType:q.pointerType,isPrimary:q.isPrimary},PointerEvent):MouseEvent)("dblclick",ti)})(q)):ts=1,tn=ti)}return q.addEventListener("click",ta),{dblclick:ti,simDblclick:ta}}function tN(q){return"string"==typeof q?document.getElementById(q):q}function tW(q,ti,tn){return(q=document.createElement(q)).className=ti??"",tn&&tn.appendChild(q),q}function tR(q){var ti=q.parentNode;ti&&ti.lastChild!==q&&ti.appendChild(q)}function tZ(q){var ti=q.parentNode;ti&&ti.firstChild!==q&&ti.insertBefore(q,ti.firstChild)}function tF(q,ti,tn){ti=ti??new tw(0,0),q.style.transform=`translate3d(${ti.x}px,${ti.y}px,0)`+(tn?` scale(${tn})`:"")}let tq=new WeakMap;function tU(q,ti){tq.set(q,ti),tF(q,ti)}function tG(q){return tq.get(q)??new tw(0,0)}let tV="undefined"==typeof document?{}:document.documentElement.style,tQ=["userSelect","WebkitUserSelect"].find(q=>q in tV),tK;function tY(){var q=tV[tQ];"none"!==q&&(tK=q,tV[tQ]="none")}function tX(){void 0!==tK&&(tV[tQ]=tK,tK=void 0)}function tJ(){es(window,"dragstart",ev)}function t0(){er(window,"dragstart",ev)}function t1(q){for(;-1===q.tabIndex;)q=q.parentNode;q.style&&(t2(),ti=q,tn=q.style.outlineStyle,q.style.outlineStyle="none",es(window,"keydown",t2))}function t2(){ti&&(ti.style.outlineStyle=tn,ti=void 0,tn=void 0,er(window,"keydown",t2))}function t3(q){for(;!((q=q.parentNode).offsetWidth&&q.offsetHeight||q===document.body););return q}function t5(q){var ti=q.getBoundingClientRect();return{x:ti.width/q.offsetWidth||1,y:ti.height/q.offsetHeight||1,boundingClientRect:ti}}let t9={__proto__:null,create:tW,disableImageDrag:tJ,disableTextSelection:tY,enableImageDrag:t0,enableTextSelection:tX,get:tN,getPosition:tG,getScale:t5,getSizedParentNode:t3,preventOutline:t1,restoreOutline:t2,setPosition:tU,setTransform:tF,toBack:tZ,toFront:tR},t4=new Map,t8=!1;function t7(){t8||(t8=!0,document.addEventListener("pointerdown",t6,{capture:!0}),document.addEventListener("pointermove",ei,{capture:!0}),document.addEventListener("pointerup",en,{capture:!0}),document.addEventListener("pointercancel",en,{capture:!0}),t4=new Map)}function t6(q){t4.set(q.pointerId,q)}function ei(q){t4.has(q.pointerId)&&t4.set(q.pointerId,q)}function en(q){t4.delete(q.pointerId)}function eo(){return[...t4.values()]}function es(q,ti,tn,ts){if(ti&&"object"==typeof ti)for(var[ta,tl]of Object.entries(ti)
19)ec(q,ta,tl,tn);else for(var th of tu(ti))ec(q,th,tn,ts);return this}tM={__proto__:null,cleanupPointers:function(){t4.clear()},disablePointerDetection:function(){document.removeEventListener("pointerdown",t6,{capture:!0}),document.removeEventListener("pointermove",ei,{capture:!0}),document.removeEventListener("pointerup",en,{capture:!0}),document.removeEventListener("pointercancel",en,{capture:!0}),t8=!1},enablePointerDetection:t7,getPointers:eo};let ea="_leaflet_events";function er(q,ti,tn,ts){if(1==arguments.length)eh(q),delete q[ea];else if(ti&&"object"==typeof ti)for(var[ta,tl]of Object.entries(ti))ep(q,ta,tl,tn);else if(ti=tu(ti),2==arguments.length)eh(q,q=>ti.includes(q));else for(var th of ti)ep(q,th,tn,ts);return this}function eh(q,ti){for(var tn of Object.keys(q[ea]??{})){var ts=tn.split(/\d/)[0];ti&&!ti(ts)||ep(q,ts,null,null,tn)}}let ed={pointerenter:"pointerover",pointerleave:"pointerout",wheel:"undefined"!=typeof window&&!("onwheel"in window)&&"mousewheel"};function ec(q,ti,tn,ts){var ta=ti+tl(tn)+(ts?"_"+tl(ts):"");if(!q[ea]||!q[ea][ta]){let tl=function(ti){return tn.call(ts||q,ti||window.event)},th=tl;tj.touch&&"dblclick"===ti?tl=tH(q,tl):"addEventListener"in q?"wheel"===ti||"mousewheel"===ti?q.addEventListener(ed[ti]||ti,tl,{passive:!1}):"pointerenter"===ti||"pointerleave"===ti?(tl=function(ti){eT(q,ti??=window.event)&&th(ti)},q.addEventListener(ed[ti],tl,!1)):q.addEventListener(ti,th,!1):q.attachEvent("on"+ti,tl),q[ea]??={},q[ea][ta]=tl}}function ep(q,ti,tn,ts,ta){ta??=ti+tl(tn)+(ts?"_"+tl(ts):"");var th,tn=q[ea]&&q[ea][ta];tn&&(tj.touch&&"dblclick"===ti?(ts=tn,(th=q).removeEventListener("dblclick",ts.dblclick),th.removeEventListener("click",ts.simDblclick)):"removeEventListener"in q?q.removeEventListener(ed[ti]||ti,tn,!1):q.detachEvent("on"+ti,tn),q[ea][ta]=null)}function eu(q){return q.stopPropagation?q.stopPropagation():q.originalEvent?q.originalEvent._stopped=!0:q.cancelBubble=!0,this}function ef(q){return ec(q,"wheel",eu),this}function eg(q){return es(q,"pointerdown dblclick contextmenu",eu),q._leaflet_disable_click=!0,this}function ev(q){return q.preventDefault?q.preventDefault():q.returnValue=!1,this}function ey(q){return ev(q),eu(q),this}function e_(q){return q.composedPath()}function eb(q,ti){var tn,ts;return ti?(ts=(tn=t5(ti)).boundingClientRect,new tw((q.clientX-ts.left)/tn.x-ti.clientLeft,(q.clientY-ts.top)/tn.y-ti.clientTop)):new tw(q.clientX,q.clientY)}function ew(){var q=window.devicePixelRatio;return tj.linux&&tj.chrome?q:tj.mac?3*q:0<q?2*q:1}function ex(q){return q.deltaY&&0===q.deltaMode?-q.deltaY/ew():q.deltaY&&1===q.deltaMode?-(20*q.deltaY):q.deltaY&&2===q.deltaMode?-(60*q.deltaY):(q.deltaX||q.deltaZ,0)}function eT(q,ti){let tn=ti.relatedTarget;if(!tn)return!0;try{for(;tn&&tn!==q;)tn=tn.parentNode}catch(q){return!1}return tn!==q}var eL={__proto__:null,PointerEvents:tM,addListener:es,disableClickPropagation:eg,disableScrollPropagation:ef,getPointerPosition:eb,getPropagationPath:e_,getWheelDelta:ex,getWheelPxFactor:ew,isExternalTarget:eT,off:er,on:es,preventDefault:ev,removeListener:er,stop:ey,stopPropagation:eu};let eC=tb.extend({run(q,ti,tn,ts){this.stop(),this._el=q,this._inProgress=!0,this._duration=tn??.25,this._easeOutPower=1/Math.max(ts??.5,.2),this._startPos=tG(q),this._offset=ti.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop(){this._inProgress&&(this._step(!0),this._complete())},_animate(){this._animId=requestAnimationFrame(this._animate.bind(this)),this._step()},_step(q){var ti=+new Date-this._startTime,tn=1e3*this._duration;ti<tn?this._runFrame(this._easeOut(ti/tn),q):(this._runFrame(1),this._complete())},_runFrame(q,ti){q=this._startPos.add(this._offset.multiplyBy(q)),ti&&q._round(),tU(this._el,q),this.fire("step")},_complete(){cancelAnimationFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut(q){return 1-(1-q)**this._easeOutPower}});tI=tb.extend({options:{crs:tE,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize(q,ti){ti=tf(this,ti),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(q),this._initLayout(),this._initEvents(),ti.maxBounds&&this.setMaxBounds(ti.maxBounds),void 0!==ti.zoom&&(this._zoom=this._limitZoom(ti.zoom)),ti.center&&void 0!==ti.zoom&&this.setView(new tL(ti.center),ti.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated&&this._createAnimProxy(),this._addLayers(this.options.layers)}
19,setView(q,ti,tn){return(ti=void 0===ti?this._zoom:this._limitZoom(ti),q=this._limitCenter(new tL(q),ti,this.options.maxBounds),tn??={},this._stop(),this._loaded&&!tn.reset&&!0!==tn&&(void 0!==tn.animate&&(tn.zoom={animate:tn.animate,...tn.zoom},tn.pan={animate:tn.animate,duration:tn.duration,...tn.pan}),this._zoom!==ti?this._tryAnimatedZoom&&this._tryAnimatedZoom(q,ti,tn.zoom):this._tryAnimatedPan(q,tn.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(q,ti,tn.pan?.noMoveStart),this)},setZoom(q,ti){return this._loaded?this.setView(this.getCenter(),q,{zoom:ti}):(this._zoom=q,this)},zoomIn(q,ti){return q??=this.options.zoomDelta,this.setZoom(this._zoom+q,ti)},zoomOut(q,ti){return q??=this.options.zoomDelta,this.setZoom(this._zoom-q,ti)},setZoomAround(q,ti,tn){var ts=this.getZoomScale(ti),ta=this.getSize().divideBy(2),q=(q instanceof tw?q:this.latLngToContainerPoint(q)).subtract(ta).multiplyBy(1-1/ts),ts=this.containerPointToLatLng(ta.add(q));return this.setView(ts,ti,{zoom:tn})},_getBoundsCenterZoom(q,ti){ti??={},q=q.getBounds?q.getBounds():new tT(q);var tn=new tw(ti.paddingTopLeft||ti.padding||[0,0]),ts=new tw(ti.paddingBottomRight||ti.padding||[0,0]),ta=this.getBoundsZoom(q,!1,tn.add(ts));return(ta="number"==typeof ti.maxZoom?Math.min(ti.maxZoom,ta):ta)===1/0?{center:q.getCenter(),zoom:ta}
19:(ti=ts.subtract(tn).divideBy(2),ts=this.project(q.getSouthWest(),ta),tn=this.project(q.getNorthEast(),ta),{center:this.unproject(ts.add(tn).divideBy(2).add(ti),ta),zoom:ta})},fitBounds(q,ti){if((q=new tT(q)).isValid())return q=this._getBoundsCenterZoom(q,ti),this.setView(q.center,q.zoom,ti);throw Error("Bounds are not valid.")},fitWorld(q){return this.fitBounds([[-90,-180],[90,180]],q)},panTo(q,ti){return this.setView(q,this._zoom,{pan:ti})},panBy(q,ti){var tn;return ti??={},(q=new tw(q).round()).x||q.y?(!0===ti.animate||this.getSize().contains(q)?(this._panAnim||(this._panAnim=new eC,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),ti.noMoveStart||this.fire("movestart"),!1!==ti.animate?(this._mapPane.classList.add("leaflet-pan-anim"),tn=this._getMapPanePos().subtract(q).round(),this._panAnim.run(this._mapPane,tn,ti.duration||.25,ti.easeLinearity)):(this._rawPanBy(q),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(q)),this.getZoom()),this):this.fire("moveend")},flyTo(q,ti,tn){if(!1===(tn??={}).animate)return this.setView(q,ti,tn);this._stop();let ts=this.project(this.getCenter()),ta=this.project(q),tl=this.getSize(),th=this._zoom,td=(q=new tL(q),ti=void 0===ti?th:this._limitZoom(ti),Math.max(tl.x,tl.y)),tc=td*this.getZoomScale(th,ti),tp=ta.distanceTo(ts)||1,tu=1.42,tf=2.0164;function tm(q){var ti=q?-1:1,q=q?tc:td,ti=(tc*tc-td*td+ti*tf*tf*tp*tp)/(2*q*tf*tp),q=Math.sqrt(ti*ti+1)-ti;return q<1e-9?-18:Math.log(q)}function tg(q){return(Math.exp(q)-Math.exp(-q))/2}function tv(q){return(Math.exp(q)+Math.exp(-q))/2}let ty=tm(0);function t_(q){return td*(tv(ty)*(tg(q=ty+tu*q)/tv(q))-tg(ty))/tf}let tb=Date.now(),tw=(tm(1)-ty)/tu,tx=tn.duration?1e3*tn.duration:1e3*tw*.8;function tT(){var tn=(Date.now()-tb)/tx,tl=(1-(1-tn)**1.5)*tw;tn<=1?(this._flyToFrame=requestAnimationFrame(tT.bind(this)),this._move(this.unproject(ts.add(ta.subtract(ts).multiplyBy(t_(tl)/tp)),th),this.get
19ScaleZoom(td/(tn=tl,td*(tv(ty)/tv(ty+tu*tn))),th),{flyTo:!0})):this._move(q,ti)._moveEnd(!0)}return this._moveStart(!0,tn.noMoveStart),tT.call(this),this},flyToBounds(q,ti){return q=this._getBoundsCenterZoom(q,ti),this.flyTo(q.center,q.zoom,ti)},setMaxBounds(q){return q=new tT(q),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),q.isValid()?(this.options.maxBounds=q,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom(q){var ti=this.options.minZoom;return this.options.minZoom=q,this._loaded&&ti!==q&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(q):this},setMaxZoom(q){var ti=this.options.maxZoom;return this.options.maxZoom=q,this._loaded&&ti!==q&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(q):this},panInsideBounds(q,ti){this._enforcingBounds=!0;var tn=this.getCenter(),q=this._limitCenter(tn,this._zoom,new tT(q));return tn.equals(q)||this.panTo(q,ti),this._enforcingBounds=!1,this},panInside(q,ti){ti??={};var tn=new tw(ti.paddingTopLeft||ti.padding||[0,0]),ts=new tw(ti.paddingBottomRight||ti.padding||[0,0]),ta=this.project(this.getCenter()),q=this.project(q),tl=this.getPixelBounds(),tn=new tx([tl.min.add(tn),tl.max.subtract(ts)]),tl=tn.getSize();return tn.contains(q)||(this._enforcingBounds=!0,ts=q.subtract(tn.getCenter()),tn=tn.extend(q).getSize().subtract(tl),ta.x+=ts.x<0?-tn.x:tn.x,ta.y+=ts.y<0?-tn.y:tn.y,this.panTo(this.unproject(ta),ti),this._enforcingBounds=!1),this},invalidateSize(q){if(!this._loaded)return this;q={animate:!1,pan:!0,...!0===q?{animate:!0}:q};var ti=this.getSize(),tn=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),ts=ti.divideBy(2).round(),ta=tn.divideBy(2).round(),ts=ts.subtract(ta);return ts.x||ts.y?(q.animate&&q.pan?this.panBy(ts):(q.pan&&this._rawPanBy(ts),this.fire("move"),q.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(this.fire.bind(this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:ti,newSize:tn})):this},stop(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate(q){var ti,tn;return q=this._locateOptions={timeout:1e4,watch:!1,...q},"geolocation"in navigator?(ti=this._handleGeolocationResponse.bind(this),tn=this._handleGeolocationError.bind(this),q.watch?this._locationWatchId=navigator.geolocation.watchPosition(ti,tn,q):navigator.geolocation.getCurrentPosition(ti,tn,q)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate(){return navigator.geolocation?.clearWatch?.(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError(q){var ti;this._container._leaflet_id&&(ti=q.code,q=q.message||(1===ti?"permission denied":2===ti?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:ti,message:`Geolocation error: ${q}.`}))},_handleGeolocationResponse(q){if(this._container._leaflet_id){var ti,tn,ts=q.coords.latitude,ta=q.coords.longitude,ts=new tL(ts,ta),ta=ts.toBounds(2*q.coords.accuracy),tl=this._locateOptions,th=(tl.setView&&(ti=this.getBoundsZoom(ta),this.setView(ts,tl.maxZoom?Math.min(ti,tl.maxZoom):ti)),{latlng:ts,bounds:ta,timestamp:q.timestamp});for(tn of Object.keys(q.coords))"number"==typeof q.coords[tn]&&(th[tn]=q.coords[tn]);this.fire("locationfound",th)}},addHandler(q,ti){return ti&&(ti=this[q]=new ti(this),this._handlers.push(ti),this.options[q])&&ti.enable(),this},remove(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(q){this._container._leaflet_id=void 0,this._containerId=void 0}for(var q of(void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),this._mapPane.remove(),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimationFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),clearTimeout(this._transitionEndTimer),clearTimeout(this._sizeTimer),this._loaded&&this.fire("unload"),this._destroyAnimProxy(),Object.values(this._layers)))q.remove();for(var ti of Object.values(this._panes))ti.remove();return this._layers={},this._panes={},delete this._mapPane,delete this._renderer,this},createPane(q,ti){return ti=tW("div","leaflet-pane"+(q?` leaflet-${q.replace("Pane","")}-pane`:""),ti||this._mapPane),q&&(this._panes[q]=ti),ti},getCenter(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom(){return this._zoom},getBounds(){var q=this.getPixelBounds(),ti=this.unproject(q.getBottomLeft()),q=this.unproject(q.getTopRight());return new tT(ti,q)},getMinZoom(){return this.options.minZoom??this._layersMinZoom??0}
19,getMaxZoom(){return this.options.maxZoom??this._layersMaxZoom??1/0},getBoundsZoom(q,ti,tn){q=new tT(q),tn=new tw(tn??[0,0]);let ts=this.getZoom()??0;var ta=this.getMinZoom(),tl=this.getMaxZoom(),th=q.getNorthWest(),q=q.getSouthEast(),tn=this.getSize().subtract(tn),q=new tx(this.project(q,ts),this.project(th,ts)).getSize(),th=this.options.zoomSnap,td=tn.x/q.x,tn=tn.y/q.y,q=ti?Math.max(td,tn):Math.min(td,tn);return ts=this.getScaleZoom(q,ts),th&&(ts=Math.round(ts/(th/100))*(th/100),ts=ti?Math.ceil(ts/th)*th:Math.floor(ts/th)*th),Math.max(ta,Math.min(tl,ts))},getSize(){return this._size&&!this._sizeChanged||(this._size=new tw(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds(q,ti){return q=this._getTopLeftPoint(q,ti),new tx(q,q.add(this.getSize()))},getPixelOrigin(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds(q){return this.options.crs.getProjectedBounds(q??this.getZoom())},getPane(q){return"string"==typeof q?this._panes[q]:q},getPanes(){return this._panes},getContainer(){return this._container},getZoomScale(q,ti){var tn=this.options.crs;return ti??=this._zoom,tn.scale(q)/tn.scale(ti)},getScaleZoom(q,ti){var tn=this.options.crs,q=(ti??=this._zoom,tn.zoom(q*tn.scale(ti)));return isNaN(q)?1/0:q},project(q,ti){return ti??=this._zoom,this.options.crs.latLngToPoint(new tL(q),ti)},unproject(q,ti){return ti??=this._zoom,this.options.crs.pointToLatLng(new tw(q),ti)},layerPointToLatLng(q){return q=new tw(q).add(this.getPixelOrigin()),this.unproject(q)},latLngToLayerPoint(q){return this.project(new tL(q))._round()._subtract(this.getPixelOrigin())},wrapLatLng(q){return this.options.crs.wrapLatLng(new tL(q))},wrapLatLngBounds(q){return this.options.crs.wrapLatLngBounds(new tT(q))},distance(q,ti){return this.options.crs.distance(new tL(q),new tL(ti))},containerPointToLayerPoint(q){return new tw(q).subtract(this._getMapPanePos())},layerPointToContainerPoint(q){return new tw(q).add(this._getMapPanePos())},containerPointToLatLng(q){return q=this.containerPointToLayerPoint(new tw(q)),this.layerPointToLatLng(q)},latLngToContainerPoint(q){return this.layerPointToContainerPoint(this.latLngToLayerPoint(new tL(q)))},pointerEventToContainerPoint(q){return eb(q,this._container)},pointerEventToLayerPoint(q){return this.containerPointToLayerPoint(this.pointerEventToContainerPoint(q))},pointerEventToLatLng(q){return this.layerPointToLatLng(this.pointerEventToLayerPoint(q))},_initContainer(q){if(!(q=this._container=tN(q)))throw Error("Map container not found.");if(q._leaflet_id)throw Error("Map container is already initialized.");es(q,"scroll",this._onScroll,this),this._containerId=tl(q),t7()},_initLayout(){var q=this._container,ti=(this._fadeAnimated=this.options.fadeAnimation,["leaflet-container"]),ti=(tj.touch&&ti.push("leaflet-touch"),tj.retina&&ti.push("leaflet-retina"),tj.safari&&ti.push("leaflet-safari"),this._fadeAnimated&&ti.push("leaflet-fade-anim"),q.classList.add(...ti),getComputedStyle(q)).position;"absolute"!==ti&&"relative"!==ti&&"fixed"!==ti&&"sticky"!==ti&&(q.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes(){var q=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),tU(this._mapPane,new tw(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(q.markerPane.classList.add("leaflet-zoom-hide"),q.shadowPane.classList.add("leaflet-zoom-hide"))},_resetView(q,ti,tn){tU(this._mapPane,new tw(0,0));var ts=!this._loaded,ta=(this._loaded=!0,ti=this._limitZoom(ti),this.fire("viewprereset"),this._zoom!==ti);this._moveStart(ta,tn)._move(q,ti)._moveEnd(ta),this.fire("viewreset"),ts&&this.fire("load")},_moveStart(q,ti){return q&&this.fire("zoomstart"),ti||this.fire("movestart"),this},_move(q,ti,tn,ts){void 0===ti&&(ti=this._zoom);var ta=this._zoom!==ti;return this._zoom=ti,this._lastCenter=q,this._pixelOrigin=this._getNewPixelOrigin(q),ts?tn?.pinch&&this.fire("zoom",tn):((ta||tn?.pinch)&&this.fire("zoom",tn),this.fire("move",tn)),this},_moveEnd(q){return q&&this.fire("zoomend"),this.fire("moveend")},_stop(){return cancelAnimationFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy(q){tU(this._mapPane,this._getMapPanePos().subtract(q))},_getZoomSpan(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents(q){this._targets={},(q?er:es)((this._targets[tl(this._container)]=this)._container,"click dblclick pointerdown pointerup pointerover pointerout pointermove c
19ontextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&(q?this._resizeObserver.disconnect():(this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._onResize.bind(this))),this._resizeObserver.observe(this._container))),this.options.transform3DLimit&&(q?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize(){cancelAnimationFrame(this._resizeRequest),this._resizeRequest=requestAnimationFrame(()=>{this.invalidateSize({debounceMoveend:!0})})},_onScroll(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd(){var q=this._getMapPanePos();Math.max(Math.abs(q.x),Math.abs(q.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets(q,ti){let tn=[],ts,ta=q.target||q.srcElement,th=!1;for(var td="pointerout"===ti||"pointerover"===ti;ta;){if((ts=this._targets[tl(ta)])&&("click"===ti||"preclick"===ti)&&this._draggableMoved(ts)){th=!0;break}if(ts&&ts.listens(ti,!0)&&(td&&!eT(ta,q)||(tn.push(ts),td))||ta===this._container)break;ta=ta.parentNode}return tn.length||th||td||!this.listens(ti,!0)?tn:[this]},_isClickDisabled(q){for(;q&&q!==this._container;){if(q._leaflet_disable_click||!q.parentNode)return!0;q=q.parentNode}},_handleDOMEvent(q){var ti,tn=q.target??q.srcElement;!this._loaded||tn._leaflet_disable_events||"click"===q.type&&this._isClickDisabled(tn)||("pointerdown"===(ti=q.type)&&t1(tn),this._fireDOMEvent(q,ti))},_pointerEvents:["click","dblclick","pointerover","pointerout","contextmenu"],_fireDOMEvent(q,ti,tn){"click"===ti&&this._fireDOMEvent(q,"preclick",tn);let ts=this._findEventTargets(q,ti);if(tn&&(ts=(tn=tn.filter(q=>q.listens(ti,!0))).concat(ts)),ts.length){"contextmenu"===ti&&ev(q);var ta,tl,tn=ts[0],th={originalEvent:q};for(tl of("keypress"!==q.type&&"keydown"!==q.type&&"keyup"!==q.type&&(ta=tn.getLatLng&&(!tn._radius||tn._radius<=10),th.containerPoint=ta?this.latLngToContainerPoint(tn.getLatLng()):this.pointerEventToContainerPoint(q),th.layerPoint=this.containerPointToLayerPoint(th.containerPoint),th.latlng=ta?tn.getLatLng():this.layerPointToLatLng(th.layerPoint)),ts))if(tl.fire(ti,th,!0),th.originalEvent._stopped||!1===tl.options.bubblingPointerEvents&&this._pointerEvents.includes(ti))return}},_draggableMoved(q){return(q=q.dragging&&q.dragging.enabled()?q:this).dragging&&q.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers(){for(var q of this._handlers)q.disable()},whenReady(q,ti){return this._loaded?q.call(ti||this,{target:this}):this.on("load",q,ti),this},_getMapPanePos(){return tG(this._mapPane)},_moved(){var q=this._getMapPanePos();return q&&!q.equals([0,0])},_getTopLeftPoint(q,ti){return(q&&void 0!==ti?this._getNewPixelOrigin(q,ti):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin(q,ti){var tn=this.getSize()._divideBy(2);return this.project(q,ti)._subtract(tn)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint(q,ti,tn){return tn=this._getNewPixelOrigin(tn,ti),this.project(q,ti)._subtract(tn)},_latLngBoundsToNewLayerBounds(q,ti,tn){return tn=this._getNewPixelOrigin(tn,ti),new tx([this.project(q.getSouthWest
19(),ti)._subtract(tn),this.project(q.getNorthWest(),ti)._subtract(tn),this.project(q.getSouthEast(),ti)._subtract(tn),this.project(q.getNorthEast(),ti)._subtract(tn)])},_getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset(q){return this.latLngToLayerPoint(q).subtract(this._getCenterLayerPoint())},_limitCenter(q,ti,tn){var ts,ta;return!tn||(ts=this.project(q,ti),ta=this.getSize().divideBy(2),ta=new tx(ts.subtract(ta),ts.add(ta)),1>=Math.abs((ta=this._getBoundsOffset(ta,tn,ti)).x)&&1>=Math.abs(ta.y))?q:this.unproject(ts.add(ta),ti)},_limitOffset(q,ti){var tn;return ti?(tn=this.getPixelBounds(),tn=new tx(tn.min.add(q),tn.max.add(q)),q.add(this._getBoundsOffset(tn,ti))):q},_getBoundsOffset(q,ti,tn){return tn=(ti=new tx(this.project(ti.getNorthEast(),tn),this.project(ti.getSouthWest(),tn))).min.subtract(q.min),ti=ti.max.subtract(q.max),q=this._rebound(tn.x,-ti.x),tn=this._rebound(tn.y,-ti.y),new tw(q,tn)},_rebound:(q,ti)=>0<q+ti?Math.round(q-ti)/2:Math.max(0,Math.ceil(q))-Math.max(0,Math.floor(ti)),_limitZoom(q){var ti=this.getMinZoom(),tn=this.getMaxZoom(),ts=this.options.zoomSnap;return ts&&(q=Math.round(q/ts)*ts),Math.max(ti,Math.min(tn,q))},_onPanTransitionStep(){this.fire("move")},_onPanTransitionEnd(){this._mapPane.classList.remove("leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan(q,ti){return q=this._getCenterOffset(q)._trunc(),!(!0!==ti?.animate&&!this.getSize().contains(q)||(this.panBy(q,ti),0))},_createAnimProxy(){this._proxy=tW("div","leaflet-proxy leaflet-zoom-animated"),this._panes.mapPane.appendChild(this._proxy),this.on("zoomanim",this._animateProxyZoom,this),this.on("load moveend",this._animMoveEnd,this),es(this._proxy,"transitionend",this._catchTransitionEnd,this)},_animateProxyZoom(q){var ti=this._proxy.style.transform;tF(this._proxy,this.project(q.center,q.zoom),this.getZoomScale(q.zoom,1)),ti===this._proxy.style.transform&&this._animatingZoom&&this._onZoomTransitionEnd()},_animMoveEnd(){var q=this.getCenter(),ti=this.getZoom();tF(this._proxy,this.project(q,ti),this.getZoomScale(ti,1))},_destroyAnimProxy(){this._proxy&&(er(this._proxy,"transitionend",this._catchTransitionEnd,this),this._proxy.remove(),this.off("zoomanim",this._animateProxyZoom,this),this.off("load moveend",this._animMoveEnd,this),delete this._proxy)},_catchTransitionEnd(q){this._animatingZoom&&q.propertyName.includes("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom(q,ti,tn){if(!this._animatingZoom){if(tn??={},!this._zoomAnimated||!1===tn.animate||this._nothingToAnimate()||Math.abs(ti-this._zoom)>this.options.zoomAnimationThreshold)return!1;var ts=this.getZoomScale(ti),ts=this._getCenterOffset(q)._divideBy(1-1/ts);if(!0!==tn.animate&&!this.getSize().contains(ts))return!1;requestAnimationFrame(()=>{this._moveStart(!0,tn.noMoveStart??!1)._animateZoom(q,ti,!0)})}return!0},_animateZoom(q,ti,tn,ts){this._mapPane&&(tn&&(this._animatingZoom=!0,this._animateToCenter=q,this._animateToZoom=ti,this._mapPane.classList.add("leaflet-zoom-anim")),this.fire("zoomanim",{center:q,zoom:ti,noUpdate:ts}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._transitionEndTimer=setTimeout(this._onZoomTransitionEnd.bind(this),250))},_onZoomTransitionEnd(){this._animatingZoom&&(this._mapPane&&this._mapPane.classList.remove("leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});let eS=t_.extend({options:{position:"topright"},initialize(q){tf(this,q)},getPosition(){return this.options.position},setPosition(q){var ti=this._map;return ti&&ti.removeControl(this),this.options.position=q,ti&&ti.addControl(this),this},getContainer(){return this._container},addTo(q){this.remove(),this._map=q;var ti=this._container=this.onAdd(q),tn=this.getPosition(),q=q._controlCorners[tn];return ti.classList.add("leaflet-control"),tn.includes("bottom")?q.insertBefore(ti,q.firstChild):q.appendChild(ti),this._map.on("unload",this.remove,this),this},remove(){return this._map&&(this._container.remove(),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap(q){this._map&&q&&(0!==q.screenX||0!==q.screenY)&&this._map.getContainer().focus()}});tI.include({addControl(q){return q.addTo(this),this},removeControl(q){return q.remove(),this}
19,_initControlPos(){let q=this._controlCorners={},ti="leaflet-",tn=this._controlContainer=tW("div",ti+"control-container",this._container);function ts(ts,ta){var tl=ti+ts+" "+ti+ta;q[ts+ta]=tW("div",tl,tn)}ts("top","left"),ts("top","right"),ts("bottom","left"),ts("bottom","right")},_clearControlPos(){for(var q of Object.values(this._controlCorners))q.remove();this._controlContainer.remove(),delete this._controlCorners,delete this._controlContainer}}),tO=eS.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:(q,ti,tn,ts)=>tn<ts?-1:ts<tn?1:0},initialize(q,ti,tn){for(var[ts,ta]of(tf(this,tn),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,Object.entries(q??{})))this._addLayer(ta,ts);for(var[tl,th]of Object.entries(ti??{}))this._addLayer(th,tl,!0)},onAdd(q){for(var ti of(this._initLayout(),this._update(),(this._map=q).on("zoomend",this._checkDisabledLayers,this),this._layers))ti.layer.on("add remove",this._onLayerChange,this);return this.options.collapsed||q.on("resize",this._expandIfNotCollapsed,this),this._container},addTo(q){return eS.prototype.addTo.call(this,q),this._expandIfNotCollapsed()},onRemove(){for(var q of(this._map.off("zoomend",this._checkDisabledLayers,this),this._layers))q.layer.off("add remove",this._onLayerChange,this);this._map.off("resize",this._expandIfNotCollapsed,this)},addBaseLayer(q,ti){return this._addLayer(q,ti),this._map?this._update():this},addOverlay(q,ti){return this._addLayer(q,ti,!0),this._map?this._update():this},removeLayer(q){return q.off("add remove",this._onLayerChange,this),(q=this._getLayer(tl(q)))&&this._layers.splice(this._layers.indexOf(q),1),this._map?this._update():this},expand(){this._container.classList.add("leaflet-control-layers-expanded"),this._section.style.height=null;var q=this._map.getSize().y-(this._container.offsetTop+50);return q<this._section.clientHeight?(this._section.classList.add("leaflet-control-layers-scrollbar"),this._section.style.height=q+"px"):this._section.classList.remove("leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse(q){return q&&("pointerleave"===q.type||"pointerout"===q.type)&&"touch"===q.pointerType||this._container.classList.remove("leaflet-control-layers-expanded"),this},_initLayout(){var q="leaflet-control-layers",ti=this._container=tW("div",q),tn=this.options.collapsed,ts=(eg(ti),ef(ti),this._section=tW("fieldset",q+"-list")),ta=(tn&&(this._map.on("click",this.collapse,this),es(ti,{pointerenter:this._expandSafely,pointerleave:this.collapse},this)),this._layersLink=tW("a",q+"-toggle",ti));ta.href="#",ta.title="Layers",ta.setAttribute("role","button"),es(ta,{keydown(q){"Enter"===q.code&&this._expandSafely()},click(q){ev(q),this._expandSafely()}},this),tn||this.expand(),this._baseLayersList=tW("div",q+"-base",ts),this._separator=tW("div",q+"-separator",ts),this._overlaysList=tW("div",q+"-overlays",ts),ti.appendChild(ts)},_getLayer(q){for(var ti of this._layers)if(ti&&tl(ti.layer)===q)return ti},_addLayer(q,ti,tn){this._map&&q.on("add remove",this._onLayerChange,this),this._layers.push({layer:q,name:ti,overlay:tn}),this.options.sortLayers&&this._layers.sort((q,ti)=>this.options.sortFunction(q.layer,ti.layer,q.name,ti.name)),this.options.autoZIndex&&q.setZIndex&&(this._lastZIndex++,q.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update(){if(this._container){this._baseLayersList.replaceChildren(),this._overlaysList.replaceChildren(),this._layerControlInputs=[];let ti,tn,ts=0;for(var q of this._layers)this._addItem(q),tn||=q.overlay,ti||=!q.overlay,ts+=q.overlay?0:1;this.options.hideSingleBase&&(ti=ti&&1<ts,this._baseLayersList.style.display=ti?"":"none"),this._separator.style.display=tn&&ti?"":"none"}return this},_onLayerChange(q){this._handlingClick||this._update();var ti=this._getLayer(tl(q.target)),q=ti.overlay?"add"===q.type?"overlayadd":"overlayremove":"add"===q.type?"baselayerchange":null;q&&this._map.fire(q,ti)},_createRadioElement:(q,ti)=>(q=`<input type="radio" class="leaflet-control-layers-selector" name="${q}"${ti?' checked="checked"':""}/>`,(ti=document.createElement("div")).innerHTML=q,ti.firstChild),_addItem(q){let ti;var tn=document.createElement("label"),ts=this._map.hasLayer(q.layer);q.overlay?((ti=document.createElement("input")).type="checkbox",ti.className="leaflet-control-layers-selector",ti.defaultChecked=ts):ti=this._createRadioElement("leaflet-base-layers_"+tl(this),ts),this._layerControlInputs.push(ti),ti.layerId=tl(q.layer),es(ti,"click",this._onInputClick,this);var ts=document.createElement("span"),ta=(ts.innerHTML=" "+q.name,document.createElement("span"));return tn.appendChild(ta),ta.appendChild(ti),ta.appendChild(ts),(q.overlay?this._overlaysList:this._baseLayersList).appendChild(tn),this._checkDisabledLayers(),tn},_onInputClick(q){if(!this._preventClick){var ti,tn,ts,ta=this._layerControlInputs,tl=[],th=[];for(ti of(this._handlingClick=!0,ta)){var td=this._getLayer(ti.layerId).layer;(ti.checked?tl:(ti.checked,th)).push(td)}for(tn of th)this._map.hasLayer(tn)&&this._map.removeLayer(tn);for(ts of tl)this._map.hasLayer(ts)||this._map.addLayer(ts);this._handlingClick=!1,this._refocusOnMap(q)}},_checkDisabledLayers(){var q,ti=this._layerControlInputs,tn=this._map.getZoom();for(q of ti){var ts=this._getLayer(q.layerId).layer;q.disabled=void 0!==ts.options.minZoom&&tn<ts.options.minZoom||void 0!==ts.options.maxZoom&&tn>ts.options.maxZoom}},_expandIfNotCollapsed(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely(){let q=this._section;this._preventClick=!0,es(q,"click",ev),this.expand(),setTimeout(()=>{er(q,"click",ev),this._preventClick=!1})}});let eP=eS.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd(q){var ti="leaflet-control-zoom",tn=tW("div",ti+" leaflet-bar"),ts=this.options;return this._zoomInButton=this._createButton(ts.zoomInText,ts.zoomInTitle,ti+"-in",tn,this._zoomIn),this._zoomOutButton=this._createButton(ts.zoomOutText,ts.zoomOutTitle,ti+"-out",tn,this._zoomOut),this._updateDisabled(),q.on("zoomend zoomlevelschange",this._updateDisabled,this),tn},onRemove(q){q.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable(){return this._disabled=!0,this._updateDisabled(),this},enable(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn(q){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(q.shiftKey?3:1))},_zoomOut(q){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(q.shiftKey?3:1))},_createButton(q,ti,tn,ts,ta){return(tn=tW("a",tn,ts)).innerHTML=q,tn.href="#",tn.title=ti,tn.setAttribute("role","button"),tn.setAttribute("aria-label",ti),eg(tn),es(tn,"click",ey),es(tn,"click",ta,this),es(tn,"click",this._refocusOnMap,this),tn},_updateDisabled(){var q=this._map,ti="leaflet-disabled";this._zoomInButton.classList.remove(ti),this._zoomOutButton.classList.remove(ti),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||q._zoom===q.getMin
19Zoom())&&(this._zoomOutButton.classList.add(ti),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||q._zoom===q.getMaxZoom())&&(this._zoomInButton.classList.add(ti),this._zoomInButton.setAttribute("aria-disabled","true"))}});tI.mergeOptions({zoomControl:!0}),tI.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new eP,this.addControl(this.zoomControl))}),tA=eS.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd(q){var ti="leaflet-control-scale",tn=tW("div",ti),ts=this.options;return this._addScales(ts,ti+"-line",tn),q.on(ts.updateWhenIdle?"moveend":"move",this._update,this),q.whenReady(this._update,this),tn},onRemove(q){q.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales(q,ti,tn){q.metric&&(this._mScale=tW("div",ti,tn)),q.imperial&&(this._iScale=tW("div",ti,tn))},_update(){var q=this._map,ti=q.getSize().y/2,q=q.distance(q.containerPointToLatLng([0,ti]),q.containerPointToLatLng([this.options.maxWidth,ti]));this._updateScales(q)},_updateScales(q){this.options.metric&&q&&this._updateMetric(q),this.options.imperial&&q&&this._updateImperial(q)},_updateMetric(q){var ti=this._getRoundNum(q);this._updateScale(this._mScale,ti<1e3?ti+" m":ti/1e3+" km",ti/q)},_updateImperial(q){var ti,tn,q=3.2808399*q;5280<q?(tn=this._getRoundNum(ti=q/5280),this._updateScale(this._iScale,tn+" mi",tn/ti)):(tn=this._getRoundNum(q),this._updateScale(this._iScale,tn+" ft",tn/q))},_updateScale(q,ti,tn){q.style.width=Math.round(this.options.maxWidth*tn)+"px",q.innerHTML=ti},_getRoundNum(q){var ti=10**((""+Math.floor(q)).length-1),q=q/ti;return ti*(10<=q?10:5<=q?5:3<=q?3:2<=q?2:1)}});let ek=eS.extend({options:{position:"bottomright",prefix:'<a target="_blank" href="https://leafletjs.com" title="A JavaScript library for interactive maps"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>Leaflet</a>'},initialize(q){tf(this,q),this._attributions={}},onAdd(q){for(var ti of((q.attributionControl=this)._container=tW("div","leaflet-control-attribution"),eg(this._container),Object.values(q._layers)))ti.getAttribution&&this.addAttribution(ti.getAttribution());return this._update(),q.on("layeradd",this._addAttribution,this),this._container},onRemove(q){q.off("layeradd",this._addAttribution,this)},_addAttribution(q){q.layer.getAttribution&&(this.addAttribution(q.layer.getAttribution()),q.layer.once("remove",()=>this.removeAttribution(q.layer.getAttribution())))},setPrefix(q){return this.options.prefix=q,this._update(),this},addAttribution(q){return q&&(this._attributions[q]||(this._attributions[q]=0),this._attributions[q]++,this._update()),this},removeAttribution(q){return q&&this._attributions[q]&&(this._attributions[q]--,this._update()),this},_update(){var q,ti;this._map&&(q=Object.keys(this._attributions).filter(q=>this._attributions[q]),ti=[],this.options.prefix&&ti.push(this.options.prefix),q.length&&ti.push(q.join(", ")),this._container.innerHTML=ti.join(' <span aria-hidden="true">|</span> '))}});tI.mergeOptions({attributionControl:!0}),tI.addInitHook(function(){this.options.attributionControl&&(new ek).addTo(this)}),eS.Layers=tO,eS.Zoom=eP,eS.Scale=tA,eS.Attribution=ek,(tB=t_.extend({initialize(q){this._map=q},enable(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled(){return!!this._enabled}})).addTo=function(q,ti){return q.addHandler(ti,this),this};let eE=tb.extend({options:{clickTolerance:3},initialize(q,ti,tn,ts){tf(this,ts),this._element=q,this._dragStartTarget=ti??q,this._preventOutline=tn},enable(){this._enabled||(es(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!0)},disable(){this._enabled&&(eE._dragging===this&&this.finishDrag(!0),er(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown(q){var ti;this._enabled&&(this._moved=!1,this._element.classList.contains("leaflet-zoom-anim")||(1!==eo().length?eE._dragging===this&&this.finishDrag():eE._dragging||q.shiftKey||0!==q.button&&"touch"!==q.pointerType||((eE._dragging=this)._preventOutline&&t1(this._element),tJ(),tY(),this._moving)||(this.fire("down"),ti=t3(this._element),this._startPoint=new tw(q.clientX,q.clientY),this._startPos=tG(this._element),this._parentScale=t5(ti),es(document,"pointermove",this._onMove,this),es(document,"pointerup pointercancel",this._onUp,this))))},_onMove(q){var ti;this._enabled&&(1<eo().length?this._moved=!0:!(ti=new tw(q.clientX,q.clientY)._subtract(this._startPoint)).x&&!ti.y||Math.abs(ti.x)+Math.abs(ti.y)<this.options.clickTolerance||(ti.x/=this._parentScale.x,ti.y/=this._parentScale.y,q.cancelable&&ev(q),this._moved||(this.fire("dragstart"),this._moved=!0,document.body.classList.add("leaflet-dragging"),this._lastTarget=q.target??q.srcElement,this._lastTarget.classList.add("leaflet-drag-target")),this._newPos=this._startPos.add(ti),this._moving=!0,this._lastEvent=q,this._updatePosition()))},_updatePosition(){var q={originalEvent:this._lastEvent};this.fire("predrag",q),tU(this._element,this._newPos),this.fire("drag",q)},_onUp(){this._enabled&&this.finishDrag()},finishDrag(q){document.body.classList.remove("leaflet-dragging"),this._lastTarget&&(this._lastTarget.classList.remove("leaflet-drag-target"),this._lastTarget=null),er(document,"pointermove",this._onMove,this),er(document,"pointerup pointercancel",this._onUp,this),t0(),tX();var ti=this._moved&&this._moving;this._moving=!1,eE._dragging=!1,ti&&this.fire("dragend",{noInertia:q,distance:this._newPos.distanceTo(this._startPos)})}});function ez(q,ti,tn){let ts,ta,tl,th,td,tc,tp,tu,tf;var tm=[1,4,2,8];for(ta=0,tp=q.length;ta<tp;ta++)q[ta]._code=ej(q[ta],ti);for(th=0;th<4;th++){for(tu=tm[th],ts=[],ta=0,tl=(tp=q.length)-1;ta<tp;tl=ta++)td=q[ta],tc=q[tl],td._code&tu?tc._code&tu||((tf=e$(tc,td,tu,ti,tn))._code=ej(tf,ti),ts.push(tf)):(tc._code&tu&&((tf=e$(tc,td,tu,ti,tn))._code=ej(tf,ti),ts.push(tf)),ts.push(td));q=ts}return q}function eM(q,ti){let tn,ts,ta,tl,th,td,tc,tp,tu;if(!q||0===q.length)throw Error("latlngs not passed");eH(q)||(console.warn("latlngs are not flat! Only the first ring will be used"),q=q[0]);let tf=new tL([0,0]);var tm=new tT(q),tg=(tm.getNorthWest().distanceTo(tm.getSouthWest
19())*tm.getNorthEast().distanceTo(tm.getNorthWest())<1700&&(tf=eI(q)),q.length),tv=[];for(tn=0;tn<tg;tn++){var ty=new tL(q[tn]);tv.push(ti.project(new tL([ty.lat-tf.lat,ty.lng-tf.lng])))}for(td=tc=tp=0,tn=0,ts=tg-1;tn<tg;ts=tn++)ta=tv[tn],tl=tv[ts],th=ta.y*tl.x-tl.y*ta.x,tc+=(ta.x+tl.x)*th,tp+=(ta.y+tl.y)*th,td+=3*th;return tu=0===td?tv[0]:[tc/td,tp/td],tm=ti.unproject(new tw(tu)),new tL([tm.lat+tf.lat,tm.lng+tf.lng])}function eI(q){let ti=0,tn=0,ts=0;for(var ta of q)ti+=(ta=new tL(ta)).lat,tn+=ta.lng,ts++;return new tL([ti/ts,tn/ts])}function eO(q,ti){if(ti&&q.length){ti*=ti;{var tn=q=((q,ti)=>{let tn=[q[0]],ts=0;for(let ta=1;ta<q.length;ta++)((q,ti)=>{var tn=ti.x-q.x;return tn*tn+(ti=ti.y-q.y)*ti})(q[ta],q[ts])>ti&&(tn.push(q[ta]),ts=ta);return ts<q.length-1&&tn.push(q[q.length-1]),tn})(q,ti),ts=tn.length,ta=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(ts);ta[0]=ta[ts-1]=1,function q(ti,tn,ts,ta,tl){let th=0,td,tc,tp;for(tc=ta+1;tc<=tl-1;tc++)(tp=eD(ti[tc],ti[ta],ti[tl],!0))>th&&(td=tc,th=tp);th>ts&&(tn[td]=1,q(ti,tn,ts,ta,td),q(ti,tn,ts,td,tl))}(tn,ta,ti,0,ts-1);let tl,th=[];for(tl=0;tl<ts;tl++)ta[tl]&&th.push(tn[tl]);return th}}return q.slice()}function eA(q,ti,tn){return Math.sqrt(eD(q,ti,tn,!0))}function eB(q,ti,tn,ta,tl){let th=ta?ts:ej(q,tn),td=ej(ti,tn),tc,tp,tu;for(ts=td;;){if(!(th|td))return[q,ti];if(th&td)return!1;tu=ej(tp=e$(q,ti,tc=th||td,tn,tl),tn),tc===th?(q=tp,th=tu):(ti=tp,td=tu)}}function e$(q,ti,tn,ts,ta){let tl,th;var td=ti.x-q.x,ti=ti.y-q.y,tc=ts.min,ts=ts.max;return 8&tn?(tl=q.x+td*(ts.y-q.y)/ti,th=ts.y):4&tn?(tl=q.x+td*(tc.y-q.y)/ti,th=tc.y):2&tn?(tl=ts.x,th=q.y+ti*(ts.x-q.x)/td):1&tn&&(tl=tc.x,th=q.y+ti*(tc.x-q.x)/td),new tw(tl,th,ta)}function ej(q,ti){let tn=0;return q.x<ti.min.x?tn|=1:q.x>ti.max.x&&(tn|=2),q.y<ti.min.y?tn|=4:q.y>ti.max.y&&(tn|=8),tn}function eD(q,ti,tn,ts){let ta=ti.x,tl=ti.y,th=tn.x-ta,td=tn.y-tl,tc;return 0<(ti=th*th+td*td)&&(1<(tc=((q.x-ta)*th+(q.y-tl)*td)/ti)?(ta=tn.x,tl=tn.y):0<tc&&(ta+=th*tc,tl+=td*tc)),th=q.x-ta,td=q.y-tl,ts?th*th+td*td:new tw(ta,tl)}function eH(q){return!Array.isArray(q[0])||"object"!=typeof q[0][0]&&void 0!==q[0][0]}function eN(q,ti){let tn,ts,ta,tl,th,td,tc,tp;if(!q||0===q.length)throw Error("latlngs not passed");eH(q)||(console.warn("latlngs are not flat! Only the first ring will be used"),q=q[0]);let tu=new tL([0,0]);var tf=new tT(q),tm=(tf.getNorthWest().distanceTo(tf.getSouthWest
19())*tf.getNorthEast().distanceTo(tf.getNorthWest())<1700&&(tu=eI(q)),q.length),tg=[];for(tn=0;tn<tm;tn++){var tv=new tL(q[tn]);tg.push(ti.project(new tL([tv.lat-tu.lat,tv.lng-tu.lng])))}for(tn=0,ts=0;tn<tm-1;tn++)ts+=tg[tn].distanceTo(tg[tn+1])/2;if(0===ts)tp=tg[0];else for(tn=0,tl=0;tn<tm-1;tn++)if(th=tg[tn],td=tg[tn+1],(tl+=ta=th.distanceTo(td))>ts){tc=(tl-ts)/ta,tp=[td.x-tc*(td.x-th.x),td.y-tc*(td.y-th.y)];break}return tf=ti.unproject(new tw(tp)),new tL([tf.lat+tu.lat,tf.lng+tu.lng])}tM={__proto__:null,centroid:eI,clipPolygon:ez,polygonCenter:eM},tO={__proto__:null,_getBitCode:ej,_getEdgeIntersection:e$,_sqClosestPointOnSegment:eD,clipSegment:eB,closestPointOnSegment:function(q,ti,tn){return eD(q,ti,tn)},isFlat:eH,pointToSegmentDistance:eA,polylineCenter:eN,simplify:eO},tA={project:q=>new tw(q.lng,q.lat),unproject:q=>new tL(q.y,q.x),bounds:new tx([-180,-90],[180,90])};let eW={R:6378137,R_MINOR:6356752.314245179,bounds:new tx([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project(q){var ti=Math.PI/180,tn=this.R,ts=this.R_MINOR/tn,ts=Math.sqrt(1-ts*ts),ta=q.lat*ti,tl=ts*Math.sin(ta),tl=Math.tan(Math.PI/4-ta/2)/((1-tl)/(1+tl))**(ts/2),ta=-tn*Math.log(Math.max(tl,1e-10));return new tw(q.lng*ti*tn,ta)},unproject(q){var ti=180/Math.PI,tn=this.R,ts=this.R_MINOR/tn,ta=Math.sqrt(1-ts*ts),tl=Math.exp(-q.y/tn);let th=Math.PI/2-2*Math.atan(tl);for(let q=0,ti=.1,tn;q<15&&1e-7<Math.abs(ti);q++)tn=ta*Math.sin(th),ti=Math.PI/2-2*Math.atan(tl*((1-tn)/(1+tn))**(ta/2))-th,th+=ti;return new tL(th*ti,q.x*ti/tn)}},eR={__proto__:null,LonLat:tA,Mercator:eW,SphericalMercator:tP};class eZ extends tS{static code="EPSG:3395";static projection=eW;static transformation=(eG=.5/(Math.PI*eW.R),new tk(eG,.5,-eG,.5))}class eF extends tS{static code="EPSG:4326";static projection=tA;static transformation=new tk(1/180,1,-1/180,.5)}class eU extends tC{static projection=tA;static transformation=new tk(1,0,-1,0);static scale(q){return 2**q}static zoom(q){return Math.log(q)/Math.LN2}static distance(q,ti){var tn=ti.lng-q.lng,ti=ti.lat-q.lat;return Math.sqrt(tn*tn+ti*ti)}static infinite=!0}tC.Earth=tS,tC.EPSG3395=eZ,tC.EPSG3857=tE,tC.EPSG900913=tz,tC.EPSG4326=eF,tC.Simple=eU;var eG=tb.extend({options:{pane:"overlayPane",attribution:null,bubblingPointerEvents:!0},addTo(q){return q.addLayer(this),this},remove(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom(q){return q&&q.removeLayer(this),this},getPane(q){return this._map.getPane(q?this.options[q]||q:this.options.pane)},addInteractiveTarget(q){return this._map._targets[tl(q)]=this},removeInteractiveTarget(q){return delete this._map._targets[tl(q)],this},getAttribution(){return this.options.attribution},_layerAdd(q){let ti=q.target;if(ti.hasLayer(this)){if(this._map=ti,this._zoomAnimated=ti._zoomAnimated,this.getEvents){let q=this.getEvents();ti.on(q,this),this.once("remove",()=>ti.off(q,this))}this.onAdd(ti),this.fire("add"),ti.fire("layeradd",{layer:this})}}});tI.include({addLayer(q){var ti;if(q._layerAdd)return ti=tl(q),this._layers[ti]||((this._layers[ti]=q)._mapToAdd=this,q.beforeAdd&&q.beforeAdd(this),this.whenReady(q._layerAdd,q)),this;throw Error("The provided object is not a Layer.")},removeLayer(q){var ti=tl(q);return this._layers[ti]&&(this._loaded&&q.onRemove(this),delete this._layers[ti],this._loaded&&(this.fire("layerremove",{layer:q}),q.fire("remove")),q._map=q._mapToAdd=null),this},hasLayer(q){return tl(q) in this._layers},eachLayer(q,ti){for(var tn of Object.values(this._layers))q.call(ti,tn);return this},_addLayers(q){for(var ti of q=q?Array.isArray(q)?q:[q]:[])this.addLayer(ti)},_addZoomLimit(q){isNaN(q.options.maxZoom)&&isNaN(q.options.minZoom)||(this._zoomBoundLayers[tl(q)]=q,this._updateZoomLevels())},_removeZoomLimit(q){q=tl(q),this._zoomBoundLayers[q]&&(delete this._zoomBoundLayers[q],this._updateZoomLevels())},_updateZoomLevels(){let q=1/0,ti=-1/0;var tn,ts=this._getZoomSpan();for(tn of Object.values(this._zoomBoundLayers)){var ta=tn.options;q=Math.min(q,ta.minZoom??1/0),ti=Math.max(ti,ta.maxZoom??-1/0)}this._layersMaxZoom=ti===-1/0?void 0:ti,this._layersMinZoom=q===1/0?void 0:q,ts!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZo
19om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});let eV=eG.extend({initialize(q,ti){for(var tn of(tf(this,ti),this._layers={},q??[]))this.addLayer(tn)},addLayer(q){var ti=this.getLayerId(q);return this._layers[ti]=q,this._map&&this._map.addLayer(q),this},removeLayer(q){return q=q in this._layers?q:this.getLayerId(q),this._map&&this._layers[q]&&this._map.removeLayer(this._layers[q]),delete this._layers[q],this},hasLayer(q){return("number"==typeof q?q:this.getLayerId(q))in this._layers},clearLayers(){return this.eachLayer(this.removeLayer,this)},invoke(q,...ti){for(var tn of Object.values(this._layers))tn[q]&&tn[q].apply(tn,ti);return this},onAdd(q){this.eachLayer(q.addLayer,q)},onRemove(q){this.eachLayer(q.removeLayer,q)},eachLayer(q,ti){for(var tn of Object.values(this._layers))q.call(ti,tn);return this},getLayer(q){return this._layers[q]},getLayers(){var q=[];return this.eachLayer(q.push,q),q},setZIndex(q){return this.invoke("setZIndex",q)},getLayerId:q=>tl(q)}),eQ=eV.extend({addLayer(q){return this.hasLayer(q)?this:(q.addEventParent(this),eV.prototype.addLayer.call(this,q),this.fire("layeradd",{layer:q}))},removeLayer(q){return this.hasLayer(q)?((q=q in this._layers?this._layers[q]:q).removeEventParent(this),eV.prototype.removeLayer.call(this,q),this.fire("layerremove",{layer:q})):this},setStyle(q){return this.invoke("setStyle",q)},bringToFront(){return this.invoke("bringToFront")},bringToBack(){return this.invoke("bringToBack")},getBounds(){var q,ti=new tT;for(q of Object.values(this._layers))ti.extend(q.getBounds?q.getBounds():q.getLatLng());return ti}}),eK=t_.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize(q){tf(this,q)},createIcon(q){return this._createIcon("icon",q)},createShadow(q){return this._createIcon("shadow",q)},_createIcon(q,ti){var tn=this._getIconUrl(q);if(tn)return tn=this._createImg(tn,ti&&"IMG"===ti.tagName?ti:null),this._setIconStyles(tn,q),(this.options.crossOrigin||""===this.options.crossOrigin)&&(tn.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),tn;if("icon"===q)throw Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles(q,ti){var tn=this.options;let ts=tn[ti+"Size"];"number"==typeof ts&&(ts=[ts,ts]);var ta=tw.validate(ts)&&new tw(ts),tl="shadow"===ti&&tn.shadowAnchor||tn.iconAnchor||ta&&ta.divideBy(2,!0),tl=tw.validate(tl)&&new tw(tl);q.className=`leaflet-marker-${ti} `+(tn.className||""),tl&&(q.style.marginLeft=-tl.x+"px",q.style.marginTop=-tl.y+"px"),ta&&(q.style.width=ta.x+"px",q.style.height=ta.y+"px")},_createImg:(q,ti)=>((ti??=document.createElement("img")).src=q,ti),_getIconUrl(q){return tj.retina&&this.options[q+"RetinaUrl"]||this.options[q+"Url"]}}),eY=eK.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl(q){return eY.imagePath||(eY.imagePath=this._detectIconPath()),(q=eK.prototype._getIconUrl.call(this,q))?(this.options.imagePath||eY.imagePath)+q:null},_stripUrl(q){function ti(q,ti,tn){return(ti=ti.exec(q))&&ti[tn]}return(q=ti(q,/^url\((['"])?(.+)\1\)$/,2))&&ti(q,/^(.*)marker-icon\.png$/,1)},_detectIconPath(){var q=tW("div","leaflet-default-icon-path",document.body),ti=this._stripUrl(getComputedStyle(q).backgroundImage);return document.body.removeChild(q),ti||((q=document.querySelector('link[href$="leaflet.css"]'))?q.href.substring(0,q.href.length-11-1):"")}}),eX=tB.extend({initialize(q){this._marker=q},addHooks(){var q=this._marker._icon;this._draggable||(this._draggable=new eE(q,q,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),q.classList.add("leaflet-marker-draggable")},removeHooks(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&this._marker._icon.classList.remove("leaflet-marker-draggable")},moved(){return this._draggable?._moved},_adjustPan(q){var ti=this._marker,tn=ti._map,ts=this._marker.options.autoPanSpeed,ta=this._marker.options.autoPanPadding,tl=tG(ti._icon),th=tn.getPixelBounds(),td=tn.getPixelOrigin(),td=new tx(th.min._subtract(td).add(ta),th.max._subtract(td).subtract(ta));td.contains(tl)||(ta=new tw((Math.max(td.max.x,tl.x)-td.max.x)/(th.max.x-td.max.x)-(Math.min(td.min.x,tl.x)-td.min.x)/(th.min.x-td.min.x),(Math.max(td.max.y,tl.y)-td.max.y)/(th.max.y-td.max.y)-(Math.min(td.min.y,tl.y)-td.min.y)/(th.min.y-td.min.y)).multiplyBy(ts),tn.panBy(ta,{animate:!1}),this._draggable._newPos._add(ta),this._draggable._startPos._add(ta),tU(ti._icon,this._draggable._newPos),this._onDrag(q),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,q)))},_onDragStart(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag(q){this._marker.options.autoPan&&(cancelAnimationFrame(this._panRequest),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,q)))},_onDrag(q){var ti=this._marker,tn=ti._shadow,ts=tG(ti._icon),ta=ti._map.layerPointToLatLng(ts);tn&&tU(tn,ts),ti._latlng=ta,q.latlng=ta,q.oldLatLng=this._oldLatLng,ti.fire("move",q).fire("drag",q)},_onDragEnd(q){cancelAnimationFrame(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",q)}}),eJ=eG.extend({options:{icon:new eY,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingPointerEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize(q,ti){tf(this,ti),this._latlng=new tL(q)},onAdd(q){this._zoomAnimated=this._zoomAnimated&&q.options.markerZoomAnimation,this._zoomAnimated&&q.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove(q){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&q.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents(){return{zoom:this.update,viewreset:this.update}},getLatLng(){return this._latlng},setLatLng(q){var ti=this._latlng;return this._latlng=new tL(q),this.update(),this.fire("move",{oldLatLng:ti,latlng:this._latlng})},setZIndexOffset(q){return this.options.zIndexOffset=q,this.update()},getIcon(){return this.options.icon},setIcon(q){return this.options.icon=q,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement(){return this._icon},update(){var q;return this._icon&&this._map&&(q=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(q)),this},_initIcon(){var q=this.options,ti="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),tn=q.icon.createIcon(this._icon);let ts=!1;tn!==this._icon&&(this._icon&&this._removeIcon(),ts=!0,q.title&&(tn.title=q.title),"IMG"===tn.tagName)&&(tn.alt=q.alt??""),tn.classList.add(ti),q.keyboard&&(tn.tabIndex="0",tn.setAttribute("role","button")),this._icon=tn,q.riseOnHover&&this.on({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&es(tn,"focus",this._panOnFocus,this);let ta=!1;(tn=q.icon.createShadow(this._shadow))!==this._shadow&&(this._removeShadow(),ta=!0),tn&&(tn.classList.add(ti),tn.alt=""),this._shadow=tn,q.opacity<1&&this._updateOpacity(),ts&&this.getPane().appendChild(this._icon),this._initInteraction(),tn&&ta&&this.getPane(q.shadowPane).appendChild(this._shadow)},_removeIcon(){this.options.riseOnHover&&this.off({pointerover:this._bringToFront,pointerout:this._resetZIndex}
19),this.options.autoPanOnFocus&&er(this._icon,"focus",this._panOnFocus,this),this._icon.remove(),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow(){this._shadow&&this._shadow.remove(),this._shadow=null},_setPos(q){this._icon&&tU(this._icon,q),this._shadow&&tU(this._shadow,q),this._zIndex=q.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex(q){this._icon&&(this._icon.style.zIndex=this._zIndex+q)},_animateZoom(q){q=this._map._latLngToNewLayerPoint(this._latlng,q.zoom,q.center).round(),this._setPos(q)},_initInteraction(){if(this.options.interactive&&(this._icon.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._icon),eX)){let q=this.options.draggable;this.dragging&&(q=this.dragging.enabled(),this.dragging.disable()),this.dragging=new eX(this),q&&this.dragging.enable()}},setOpacity(q){return this.options.opacity=q,this._map&&this._updateOpacity(),this},_updateOpacity(){var q=this.options.opacity;this._icon&&(this._icon.style.opacity=q),this._shadow&&(this._shadow.style.opacity=q)},_bringToFront(){this._updateZIndex(this.options.riseOffset)},_resetZIndex(){this._updateZIndex(0)},_panOnFocus(){var q,ti,tn=this._map;tn&&(q=(ti=this.options.icon.options).iconSize?new tw(ti.iconSize):new tw(0,0),ti=ti.iconAnchor?new tw(ti.iconAnchor):new tw(0,0),tn.panInside(this._latlng,{paddingTopLeft:ti,paddingBottomRight:q.subtract(ti)}))},_getPopupAnchor(){return this.options.icon.options.popupAnchor},_getTooltipAnchor(){return this.options.icon.options.tooltipAnchor}}),e0=eG.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingPointerEvents:!0},beforeAdd(q){this._renderer=q.getRenderer(this)},onAdd(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove(){this._renderer._removePath(this)},redraw(){return this._map&&this._renderer._updatePath(this),this},setStyle(q){return tf(this,q),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke)&&q&&Object.hasOwn(q,"weight")&&this._updateBounds(),this},bringToFront(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack(){return this._renderer&&this._renderer._bringToBack(this),this},getElement(){return this._path},_reset(){this._project(),this._update()},_clickTolerance(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var tA=e0.extend({options:{fill:!0,radius:10},initialize(q,ti){tf(this,ti),this._latlng=new tL(q),this._radius=this.options.radius},setLatLng(q){var ti=this._latlng;return this._latlng=new tL(q),this.redraw(),this.fire("move",{oldLatLng:ti,latlng:this._latlng})},getLatLng(){return this._latlng},setRadius(q){return this.options.radius=this._radius=q,this.redraw()},getRadius(){return this._radius},setStyle(q){var ti=q?.radius??this._radius;return e0.prototype.setStyle.call(this,q),this.setRadius(ti),this},_project(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds(){var q=this._radius,ti=this._radiusY??q,tn=this._clickTolerance(),q=[q+tn,ti+tn];this._pxBounds=new tx(this._point.subtract(q),this._point.add(q))},_update(){this._map&&this._updatePath()},_updatePath(){this._renderer._updateCircle(this)},_empty(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint(q){return q.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),e1=tA.extend({initialize(q,ti){if(tf(this,ti),this._latlng=new tL(q),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius(q){return this._mRadius=q,this.redraw()},getRadius(){return this._mRadius},getBounds(){var q=[this._radius,this._radiusY??this._radius];return new tT(this._map.layerPointToLatLng(this._point.subtract(q)),this._map.layerPointToLatLng(this._point.add(q)))},setStyle:e0.prototype.setStyle,_project(){var q=this._latlng.lng,ti=this._latlng.lat,tn=this._map,ts=tn.options.crs;if(ts.distance===tS.distance){var ta=Math.PI/180,tl=this._mRadius/tS.R/ta,th=tn.project([ti+tl,q]),td=tn.project([ti-tl,q]),td=th.add(td).divideBy(2),tc=tn.unproject(td).lat;let ts=Math.acos((Math.cos(tl*ta)-Math.sin(ti*ta)*Math.sin(tc*ta))/(Math.cos(ti*ta)*Math.cos(tc*ta)))/ta;(isNaN(ts)||0===ts)&&(ts=tl/Math.cos(Math.PI/180*ti)),this._point=td.subtract(tn.getPixelOrigin()),this._radius=isNaN(ts)?0:td.x-tn.project([tc,q-ts]).x,this._radiusY=td.y-th.y}else ta=ts.unproject(ts.project(this._latlng).subtract([this._mRadius,0])),this._point=tn.latLngToLayerPoint(this._latlng),this._radius=Math.abs(this._point.x-tn.latLngToLayerPoint(ta).x);this._updateBounds()}});let e2=e0.extend({options:{smoothFactor:1,noClip:!1},initialize(q,ti){tf(this,ti),this._setLatLngs(q)},getLatLngs(){return this._latlngs},setLatLngs(q){return this._setLatLngs(q),this.redraw()},isEmpty(){return!this._latlngs.length},closestLayerPoint(q){let ti=1/0,tn=null,ts,ta;var tl,th=eD;for(tl of this._parts)for(let tc=1,tp=tl.length;tc<tp;tc++){var td=th(q,ts=tl[tc-1],ta=tl[tc],!0);td<ti&&(ti=td,tn=th(q,ts,ta))}return tn&&(tn.distance=Math.sqrt(ti)),tn},getCenter(){if(this._map)return eN(this._defaultShape(),this._map.options.crs);
19throw Error("Must add layer to map before using getCenter()")},getBounds(){return this._bounds},addLatLng(q,ti){return ti??=this._defaultShape(),q=new tL(q),ti.push(q),this._bounds.extend(q),this.redraw()},_setLatLngs(q){this._bounds=new tT,this._latlngs=this._convertLatLngs(q)},_defaultShape(){return eH(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs(q){var ti=[],tn=eH(q);for(let ts=0,ta=q.length;ts<ta;ts++)tn?(ti[ts]=new tL(q[ts]),this._bounds.extend(ti[ts])):ti[ts]=this._convertLatLngs(q[ts]);return ti},_project(){var q=new tx;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,q),this._bounds.isValid()&&q.isValid()&&(this._rawPxBounds=q,this._updateBounds())},_updateBounds(){var q=this._clickTolerance(),q=new tw(q,q);this._rawPxBounds&&(this._pxBounds=new tx([this._rawPxBounds.min.subtract(q),this._rawPxBounds.max.add(q)]))},_projectLatlngs(q,ti,tn){var ts;q[0]instanceof tL?((ts=q.map(q=>this._map.latLngToLayerPoint(q))).forEach(q=>tn.extend(q)),ti.push(ts)):q.forEach(q=>this._projectLatlngs(q,ti,tn))},_clipPoints(){var q=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(q)){if(this.options.noClip)this._parts=this._rings;else{let tn,ts,ta,tl,th,td,tc;var ti=this._parts;for(tn=0,ta=0,tl=this._rings.length;tn<tl;tn++)for(tc=this._rings[tn],ts=0,th=tc.length;ts<th-1;ts++)(td=eB(tc[ts],tc[ts+1],q,ts,!0))&&(ti[ta]??=[],ti[ta].push(td[0]),td[1]===tc[ts+1]&&ts!==th-2||(ti[ta].push(td[1]),ta++))}}},_simplifyPoints(){var q=this._parts,ti=this.options.smoothFactor;for(let tn=0,ts=q.length;tn<ts;tn++)q[tn]=eO(q[tn],ti)},_update(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath(){this._renderer._updatePoly(this)},_containsPoint(q,ti){let tn,ts,ta,tl,th,td;var tc=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(q)){for(tn=0,tl=this._parts.length;tn<tl;tn++)for(td=this._parts[tn],ts=0,ta=(th=td.length)-1;ts<th;ta=ts++)if((ti||0!==ts)&&eA(q,td[ta],td[ts])<=tc)return!0}return!1}}),e3=e2.extend({options:{fill:!0},isEmpty(){return!this._latlngs.length||!this._latlngs[0].length},getCenter(){if(this._map)return eM(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},_convertLatLngs(q){var q=e2.prototype._convertLatLngs.call(this,q),ti=q.length;return 2<=ti&&q[0]instanceof tL&&q[0].equals(q[ti-1])&&q.pop(),q},_setLatLngs(q){e2.prototype._setLatLngs.call(this,q),eH(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape(){return(eH(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints(){let q=this._renderer._bounds;var ti=this.options.weight,ti=new tw(ti,ti);if(q=new tx(q.min.subtract(ti),q.max.add(ti)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(q)){if(this.options.noClip)this._parts=this._rings;else for(var tn of this._rings)(tn=ez(tn,q,!0)).length&&this._parts.push(tn)}},_updatePath(){this._renderer._updatePoly(this,!0)},_containsPoint(q){let ti=!1,tn,ts,ta,tl,th,td,tc,tp;if(!this._pxBounds||!this._pxBounds.contains(q))return!1;for(tl=0,tc=this._parts.length;tl<tc;tl++)for(tn=this._parts[tl],th=0,td=(tp=tn.length)-1;th<tp;td=th++)ts=tn[th],ta=tn[td],ts.y>q.y!=ta.y>q.y&&q.x<(ta.x-ts.x)*(q.y-ts.y)/(ta.y-ts.y)+ts.x&&(ti=!ti);return ti||e2.prototype._containsPoint.call(this,q,!0)}});var e5=eQ.extend({initialize(q,ti){tf(this,ti),this._layers={},q&&this.addData(q)},addData(q){var ti=Array.isArray(q)?q:q.features;if(ti){for(var tn of ti)(tn.geometries||tn.geometry||tn.features||tn.coordinates)&&this.addData(tn);return this}var ts,ti=this.options;return(!ti.filter||ti.filter(q))&&(ts=e9(q,ti))?(ts.feature=is(q),ts.defaultOptions=ts.options,this.resetStyle(ts),ti.onEachFeature&&ti.onEachFeature(q,ts),this.addLayer(ts)):this},resetStyle(q){return void 0===q?this.eachLayer(this.resetStyle,this):(q.options=Object.create(q.defaultOptions),this._setLayerStyle(q,this.options.style),this)},setStyle(q){return this.eachLayer(ti=>this._setLayerStyle(ti,q))},_setLayerStyle(q,ti){q.setStyle&&("function"==typeof ti&&(ti=ti(q.feature)),q.setStyle(ti))}});function e9(q,ti){let tn,ts;var ta="Feature"===q.type?q.geometry:q,tl=ta?.coordinates,th=[],td=ti?.pointToLayer,tc=ti?.coordsToLatLng??e8;if(!tl&&!ta)return null;switch(ta.type){case"Point":return e4(td,q,tn=tc(tl),ti);case"MultiPoint":for(var tp of tl)tn=tc(tp),th.push(e4(td,q,tn,ti));return new eQ(th);case"LineString":case"MultiLineString":return ts=e7(tl,"LineString"===ta.type?0:1,tc),new e2(ts,ti);case"Polygon":case"MultiPolygon":return ts=e7(tl,"Polygon"===ta.type?1:2,tc),new e3(ts,ti);case"GeometryCollection":for(var tu of ta.geometries)(tu=e9({geometry:tu,type:"Feature",properties:q.properties},ti))&&th.push(tu);return new eQ(th);case"FeatureCollection":for(var tf of ta.features)(tf=e9(tf,ti))&&th.push(tf);return new eQ(th);default:throw Error("Invalid GeoJSON object.")}}function e4(q,ti,tn,ts){return q?q(ti,tn):new eJ(tn,ts?.markersInheritOptions&&ts)}function e8(q){return new tL(q[1],q[0],q[2])}function e7(q,ti,tn){return q.map(q=>ti?e7(q,ti-1,tn):(tn||e8)(q))}function e6(q,ti){return void 0!==(q=new tL(q)).alt?[tp(q.lng,ti),tp(q.lat,ti),tp(q.alt,ti)]:[tp(q.lng,ti),tp(q.lat,ti)]}function ii(q,ti,tn,ts){return q=q.map(q=>ti?ii(q,eH(q)?0:ti-1,tn,ts):e6(q,ts)),!ti&&tn&&0<q.length&&q.push(q[0].slice()),q}function io(q,ti){return q.feature?{...q.feature,geometry:ti}:is(ti)}function is(q){return"Feature"===q.type||"FeatureCollection"===q.type?q:{type:"Feature",properties:{},geometry:q}}var ia={toGeoJSON(q){return io(this,{type:"Point",coordinates:e6(this.getLatLng(),q)})}};eJ.include(ia),e1.include(ia),tA.include(ia),e2.include({toGeoJSON(q){var ti=!eH(this._latlngs);return io(this,{type:`${ti?"Multi":""}LineString`,coordinates:ii(this._latlngs,ti?1:0,!1,q)})}}),e3.include({toGeoJSON(q){var ti=!eH(this._latlngs),tn=ti&&!eH(this._latlngs[0]);let ts=ii(this._latlngs,tn?2:ti?1:0,!0,q);return io(this,{type:`${tn?"Multi":""}Polygon`,coordinates:ts=ti?ts:[ts]})}}),eV.include({toMultiPoint(q){let ti=[];return this.eachLayer(tn=>{ti.push(tn.toGeoJSON(q).geometry.coordinates)}),io(this,{type:"MultiPoint",coordinates:ti})},toGeoJSON(q){var ti=this.feature?.geometry?.type;if("MultiPoint"===ti)return this.toMultiPoint(q);let tn="GeometryCollection"===ti,ts=[];return this.eachLayer(ti=>{ti.toGeoJSON&&(ti=ti.toGeoJSON(q),tn?ts.push(ti.geometry):"FeatureCollection"===(ti=is(ti)).type?ts.push.apply(ts,ti.features):ts.push(ti))}),tn?io(this,{geometries:ts,type:"GeometryCollection"}):{type:"FeatureCollection",features:ts}}});let ir=eG.extend({options:{padding:.1,continuous:!1},initialize(q){tf(this,q)},onAdd(){this._container||(this._initContainer(),this._container.classList.add("leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._resizeContainer(),this._onMoveEnd()},onRemove(){this._destroyContainer()},getEvents(){var q={viewreset:this._reset,zoom:this._onZoom,moveend:this._onMoveEnd,zoomend:this._onZoomEnd,resize:this._resizeContainer};return this._zoomAnimated&&(q.zoomanim=this._onAnimZoom),this.options.continuous&&(q.move=this._onMoveEnd),q},_onAnimZoom(q){this._updateTransform(q.center,q.zoom)},_onZoom(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform(q,ti){var tn=this._map.getZoomScale(ti,this._zoom),ts=this._map.getSize().multiplyBy(.5+this.options.padding),ta=this._map.project(this._center,ti),ts=ts.multiplyBy(-tn).add(ta).subtract(this._map._getNewPixelOrigin(q,ti));tF(this._container,ts,tn)},_onMoveEnd(q){var ti=this.options.padding,tn=this._map.getSize(),ts=this._map.containerPointToLayerPoint(tn.multiplyBy(-ti)).round();this._bounds=new tx(ts,ts.add(tn.multiplyBy(1+2*ti)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this._updateTransform(this._center,this._zoom),this._onSettled(q)},_reset(){this._onSettled(),this._updateTransform(this._center,this._zoom),this._onViewReset()},_initContainer(){this._container=tW("div")},_destroyContainer(){er(this._container),this._container.remove(),delete this._container},_resizeContainer(){var q=this.options.padding,q=this._map.getSize().multiplyBy(1+2*q).round();return this._container.style.width=q.x+"px",this._container.style.height=q.y+"px",q},_onZoomEnd:tc,_onViewReset:tc,_onSettled:tc});var ia=eG.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",decoding:"auto"},initialize(q,ti,tn){this._url=q,this._bounds=new tT(ti),tf(this,tn)},onAdd(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(this._image.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove(){this._image.remove(),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity(q){return this.options.opacity=q,this._image&&this._updateOpacity(),this},setStyle(q){return q.opacity&&this.setOpacity(q.opacity),this},bringToFront(){return this._map&&tR(this._image),this},bringToBack(){return this._map&&tZ(this._image),this},setUrl(q){return this._url=q,this._image&&(this._image.src=q),this},setBounds(q){return this._bounds=new tT(q),this._map&&this._reset(),this},getEvents(){var q={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(q.zoomanim=this._animateZoom),q},setZIndex(q){return this.options.zIndex=q,this._updateZIndex(),this},getBounds(){return this._bounds},getElement(){return this._image},_initImage(){var q="IMG"===this._url.tagName,ti=this._image=q?this._url:tW("img");ti.classList.add("leaflet-image-layer"),this._zoomAnimated&&ti.classList.add("leaflet-zoom-animated"),this.options.className&&ti.classList.add(...tu(this.options.className)),ti.onselectstart=tc,ti.onpointermove=tc,ti.onload=this.fire.bind(this,"load"),ti.onerror=this._overlayOnError.bind(this),(this.options.crossOrigin||""===this.options.crossOrigin)&&(ti.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),ti.decoding=this.options.decoding,this.options.zIndex&&this._updateZIndex(),q?this._url=ti.src:(ti.src=this._url,ti.alt=this.options.alt)},_animateZoom(q){var ti=this._map.getZoomScale(q.zoom),q=this._map._latLngBoundsToNewLayerBounds(this._bounds,q.zoom,q.center).min;tF(this._image,q,ti)},_reset(){var q=this._image,ti=new tx(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),tn=ti.getSize();tU(q,ti.min),q.style.width=tn.x+"px",q.style.height=tn.y+"px"},_updateOpacity(){this._image.style.opacity=this.options.opacity},_updateZIndex(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError(){this.fire("error");var q=this.options.errorOverlayUrl;q&&this._url!==q&&(this._url=q,this._image.src=q)},getCenter(){return this._bounds.getCenter()}}),il=ia.extend({options:{autoplay:!0,controls:!1,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
19ine:!0},_initImage(){var q,ti="VIDEO"===this._url.tagName;let tn=this._image=ti?this._url:tW("video");if(tn.classList.add("leaflet-image-layer"),this._zoomAnimated&&tn.classList.add("leaflet-zoom-animated"),this.options.className&&tn.classList.add(...tu(this.options.className)),es(tn,"pointerdown",q=>{tn.controls&&eu(q)}),tn.onloadeddata=this.fire.bind(this,"load"),ti)q=(ti=tn.getElementsByTagName("source")).map(q=>q.src),this._url=0<ti.length?q:[tn.src];else for(var ts of(Array.isArray(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.hasOwn(tn.style,"objectFit")&&(tn.style.objectFit="fill"),tn.autoplay=!!this.options.autoplay,tn.controls=!!this.options.controls,tn.loop=!!this.options.loop,tn.muted=!!this.options.muted,tn.playsInline=!!this.options.playsInline,this._url)){var ta=tW("source");ta.src=ts,tn.appendChild(ta)}}}),ih=ia.extend({_initImage(){var q=this._image=this._url;q.classList.add("leaflet-image-layer"),this._zoomAnimated&&q.classList.add("leaflet-zoom-animated"),this.options.className&&q.classList.add(...tu(this.options.className)),q.onselectstart=tc,q.onpointermove=tc}});let ic=eG.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize(q,ti){q instanceof tL||Array.isArray(q)?(this._latlng=new tL(q),tf(this,ti)):(tf(this,q),this._source=ti),this.options.content&&(this._content=this.options.content)},openOn(q){return(q=arguments.length?q:this._source._map).hasLayer(this)||q.addLayer(this),this},close(){return this._map&&this._map.removeLayer(this),this},toggle(q){return this._map?this.close():(arguments.length?this._source=q:q=this._source,this._prepareOpen(),this.openOn(q._map)),this},onAdd(q){this._zoomAnimated=q._zoomAnimated,this._container||this._initLayout(),q._fadeAnimated&&(this._container.style.opacity=0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),q._fadeAnimated&&(this._container.style.opacity=1),this.bringToFront(),this.options.interactive&&(this._container.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove(q){q._fadeAnimated?(this._container.style.opacity=0,this._removeTimeout=setTimeout(()=>this._container.remove(),200)):this._container.remove(),this.options.interactive&&(this._container.classList.remove("leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng(){return this._latlng},setLatLng(q){return this._latlng=new tL(q),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent(){return this._content},setContent(q){return this._content=q,this.update(),this},getElement(){return this._container},update(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents(){var q={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(q.zoomanim=this._animateZoom),q},isOpen(){return!!this._map&&this._map.hasLayer(this)},bringToFront(){return this._map&&tR(this._container),this},bringToBack(){return this._map&&tZ(this._container),this},_prepareOpen(q){let ti=this._source;if(!ti._map)return!1;if(ti instanceof eQ){for(var tn of(ti=null,Object.values(this._source._layers)))if(tn._map){ti=tn;break}if(!ti)return!1;this._source=ti}if(!q){if(ti.getCenter)q=ti.getCenter();else if(ti.getLatLng)q=ti.getLatLng();else{if(!ti.getBounds)throw Error("Unable to get source layer LatLng.");q=ti.getBounds().getCenter()}}return this.setLatLng(q),this._map&&this.update(),!0},_updateContent(){if(this._content){var q=this._contentNode,ti="function"==typeof this._content?this._content(this._source??this):this._content;if("string"==typeof ti)q.innerHTML=ti;else{for(;q.hasChildNodes();)q.removeChild(q.firstChild);
19q.appendChild(ti)}this.fire("contentupdate")}},_updatePosition(){if(this._map){var q=this._map.latLngToLayerPoint(this._latlng),ti=this._getAnchor();let tn=new tw(this.options.offset);this._zoomAnimated?tU(this._container,q.add(ti)):tn=tn.add(q).add(ti),q=this._containerBottom=-tn.y,ti=this._containerLeft=-Math.round(this._containerWidth/2)+tn.x,this._container.style.bottom=q+"px",this._container.style.left=ti+"px"}},_getAnchor:()=>[0,0]}),ip=(tI.include({_initOverlay(q,ti,tn,ts){let ta=ti;return ta instanceof q||(ta=new q(ts).setContent(ti)),tn&&ta.setLatLng(tn),ta}}),eG.include({_initOverlay(q,ti,tn,ts){let ta=tn;return ta instanceof q?(tf(ta,ts),ta._source=this):(ta=ti&&!ts?ti:new q(ts,this)).setContent(tn),ta}}),ic.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,closeButtonLabel:"Close popup",autoClose:!0,closeOnEscapeKey:!0,className:"",trackResize:!0},openOn(q){return!(q=arguments.length?q:this._source._map).hasLayer(this)&&q._popup&&q._popup.options.autoClose&&q.removeLayer(q._popup),q._popup=this,ic.prototype.openOn.call(this,q)},onAdd(q){ic.prototype.onAdd.call(this,q),q.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof e0||this._source.on("preclick",eu))},onRemove(q){ic.prototype.onRemove.call(this,q),q.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof e0||this._source.off("preclick",eu))},getEvents(){var q=ic.prototype.getEvents.call(this);return(this.options.closeOnClick??this._map.options.closePopupOnClick)&&(q.preclick=this.close),this.options.keepInView&&(q.moveend=this._adjustPan),q},_initLayout(){var q="leaflet-popup",ti=this._container=tW("div",q+` ${this.options.className||""} leaflet-zoom-animated`),tn=this._wrapper=tW("div",q+"-content-wrapper",ti);this._contentNode=tW("div",q+"-content",tn),eg(ti),ef(this._contentNode),es(ti,"contextmenu",eu),this._tipContainer=tW("div",q+"-tip-container",ti),this._tip=tW("div",q+"-tip",this._tipContainer),this.options.closeButton&&((tn=this._closeButton=tW("a",q+"-close-button",ti)).setAttribute("role","button"),tn.setAttribute("aria-label",this.options.closeButtonLabel),tn.href="#close",tn.innerHTML='<span aria-hidden="true">×</span>',es(tn,"click",q=>{ev(q),this.close()})),this.options.trackResize&&(this._resizeObserver=new ResizeObserver(q=>{this._map&&(this._containerWidth=q[0]?.contentRect?.width,this._containerHeight=q[0]?.contentRect?.height,this._updateLayout(),this._updatePosition(),this._adjustPan())}),this._resizeObserver.observe(this._contentNode))},_updateLayout(){var q=this._contentNode,ti=q.style,tn=(ti.width="",ti.whiteSpace="nowrap",ti.maxWidth=this.options.maxWidth+"px",ti.minWidth=this.options.minWidth+"px",ti.whiteSpace="",ti.height="",this._containerHeight??q.offsetHeight),ts=this.options.maxHeight,ta="leaflet-popup-scrolled";ts&&ts<tn?(ti.height=ts+"px",q.classList.add(ta)):q.classList.remove(ta),this._containerWidth=this._container.offsetWidth,this._containerHeight=this._container.offsetHeight},_animateZoom(q){var q=this._map._latLngToNewLayerPoint(this._latlng,q.zoom,q.center),ti=this._getAnchor();tU(this._container,q.add(ti))},_adjustPan(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var q=this._map,ti=parseInt(getComputedStyle(this._container).marginBottom,10)||0,ti=this._containerHeight+ti,tn=this._containerWidth,ts=new tw(this._containerLeft,-ti-this._containerBottom),ts=(ts._add(tG(this._container)),q.layerPointToContainerPoint(ts)),ta=new tw(this.options.autoPanPadding),tl=new tw(this.options.autoPanPaddingTopLeft??ta),ta=new tw(this.options.autoPanPaddingBottomRight??ta),th=q.getSize();let td=0,tc=0;ts.x+tn+ta.x>th.x&&(td=ts.x+tn-th.x+ta.x),ts.x-td-tl.x<0&&(td=ts.x-tl.x),ts.y+ti+ta.y>th.y&&(tc=ts.y+ti-th.y+ta.y),ts.y-tc-tl.y<0&&(tc=ts.y-tl.y),(td||tc)&&(this.options.keepInView&&
19(this._autopanning=!0),q.fire("autopanstart").panBy([td,tc]))}}},_getAnchor(){return new tw(this._source?._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),iu=(tI.mergeOptions({closePopupOnClick:!0}),tI.include({openPopup(q,ti,tn){return this._initOverlay(ip,q,ti,tn).openOn(this),this},closePopup(q){return(q=arguments.length?q:this._popup)&&q.close(),this}}),eG.include({bindPopup(q,ti){return this._popup=this._initOverlay(ip,this._popup,q,ti),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup(q){return this._popup&&(this instanceof eQ||(this._popup._source=this),this._popup._prepareOpen(q||this._latlng))&&this._popup.openOn(this._map),this},closePopup(){return this._popup&&this._popup.close(),this},togglePopup(){return this._popup&&this._popup.toggle(this),this},isPopupOpen(){return!!this._popup&&this._popup.isOpen()},setPopupContent(q){return this._popup&&this._popup.setContent(q),this},getPopup(){return this._popup},_openPopup(q){var ti;this._popup&&this._map&&(ey(q),ti=q.propagatedFrom??q.target,this._popup._source!==ti||ti instanceof e0?(this._popup._source=ti,this.openPopup(q.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(q.latlng))},_movePopup(q){this._popup.setLatLng(q.latlng)},_onKeyPress(q){"Enter"===q.originalEvent.code&&this._openPopup(q)}}),ic.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd(q){ic.prototype.onAdd.call(this,q),this.setOpacity(this.options.opacity),q.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove(q){ic.prototype.onRemove.call(this,q),q.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents(){var q=ic.prototype.getEvents.call(this);return this.options.permanent||(q.preclick=this.close),q},_initLayout(){var q=`leaflet-tooltip ${this.options.className||""} leaflet-zoom-`+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=tW("div",q),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+tl(this))},_updateLayout(){},_adjustPan(){},_setPosition(q){let ti,tn,ts=this.options.direction;var ta=this._map,tl=this._container,th=ta.latLngToContainerPoint(ta.getCenter()),ta=ta.layerPointToContainerPoint(q),td=tl.offsetWidth,tc=tl.offsetHeight,tp=new tw(this.options.offset),tu=this._getAnchor();tn="top"===ts?(ti=td/2,tc):"bottom"===ts?(ti=td/2,0):(ti="center"===ts?td/2:"right"===ts?0:"left"===ts?td:ta.x<th.x?(ts="right",0):(ts="left",td+2*(tp.x+tu.x)),tc/2),q=q.subtract(new tw(ti,tn,!0)).add(tp).add(tu),tl.classList.remove("leaflet-tooltip-right","leaflet-tooltip-left","leaflet-tooltip-top","leaflet-tooltip-bottom"),tl.classList.add("leaflet-tooltip-"+ts),tU(tl,q)},_updatePosition(){var q=this._map.latLngToLayerPoint(this._latlng);this._setPosition(q)},setOpacity(q){this.options.opacity=q,this._container&&(this._container.style.opacity=q)},_animateZoom(q){q=this._map._latLngToNewLayerPoint(this._latlng,q.zoom,q.center),this._setPosition(q)},_getAnchor(){return new tw(this._source?._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}));tI.include({openTooltip(q,ti,tn){return this._initOverlay(iu,q,ti,tn).openOn(this),this},closeTooltip(q){return q.close(),this}}),eG.include({bindTooltip(q,ti){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(iu,this._tooltip,q,ti),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions(q){var ti,tn;!q&&this._tooltipHandlersAdded||(ti=q?"off":"on",tn={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?tn.add=this._openTooltip:(tn.pointerover=this._openTooltip,tn.pointerout=this.closeTooltip,tn.click=this._openTooltip,this._map?this._addFocusListeners(q):tn.add=()=>this._addFocusListeners(q)),this._tooltip.options.sticky&&(tn.pointermove=this._moveTooltip),this[ti](tn),this._tooltipHandlersAdded=!q)},openTooltip(q){return this._tooltip&&(this instanceof eQ||(this._tooltip._source=this),this._tooltip._prepareOpen(q))&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this)),this},closeTooltip(){if(this._tooltip)return this._tooltip.close()},toggleTooltip(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen(){return this._tooltip.isOpen()},setTooltipContent(q){return this._tooltip&&this._tooltip.setContent(q),this},getTooltip(){return this._tooltip},_addFocusListeners(q){this.getElement?this._addFocusListenersOnLayer(this,q):this.eachLayer&&this.eachLayer(ti=>this._addFocusListenersOnLayer(ti,q),this)},_addFocusListenersOnLayer(q,ti){var tn,ts="function"==typeof q.getElement&&q.getElement();ts&&(tn=ti?"off":"on",ti||(ts._leaflet_focus_handler&&er(ts,"focus",ts._leaflet_focus_handler,this),ts._leaflet_focus_handler=()=>{this._tooltip&&(this._tooltip._source=q,this.openTooltip())}),ts._leaflet_focus_handler&&eL[tn](ts,"focus",ts._leaflet_focus_handler,this),eL[tn](ts,"blur",this.closeTooltip,this),ti)&&delete ts._leaflet_focus_handler},_setAriaDescribedByOnLayer(q){(q="function"==typeof q.getElement&&q.getElement())&&q.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip(q){this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()?"add"!==q.type||this._moveEndOpensTooltip||(this._moveEndOpensTooltip=!0,this._map.once("moveend",()=>{this._moveEndOpensTooltip=!1,this._openTooltip(q)})):(this._tooltip._source=q.propagatedFrom??q.target,this.openTooltip(this._tooltip.options.sticky?q.latlng:void 0)))},_moveTooltip(q){let ti=q.latlng,tn,ts;this._tooltip.options.sticky&&q.originalEvent&&(tn=this._map.pointerEventToContainerPoint(q.originalEvent),ts=this._map.containerPointToLayerPoint(tn),ti=this._map.layerPointToLatLng(ts)),this._tooltip.setLatLng(ti)}});var im=eK.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon(q){var q=q&&"DIV"===q.tagName?q:document.createElement("div"),ti=this.options;return ti.html instanceof Element?(q.replaceChildren(),q.appendChild(ti.html)):q.innerHTML=!1!==ti.html?ti.html:"",ti.bgPos&&(ti=new tw(ti.bgPos),q.style.backgroundPosition=-ti.x+`px ${-ti.y}px`),this._setIconStyles(q,"icon"),q},createShadow:()=>null});eK.Default=eY;let ig=eG.extend({options:{tileSize:256,opacity:1,updateWhenIdle:tj.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize(q){tf(this,q)},onAdd(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd(q){q._addZoomLimit(this)},onRemove(q){this._removeAllTiles(),this._container.remove(),q._removeZoomLimit(this),this._container=null,this._tileZoom=void 0,clearTimeout(this._pruneTimeout)},bringToFront(){return this._map&&(tR(this._container),this._setAutoZIndex(Math.max)),this},bringToBack(){return this._map&&(tZ(this._container),this._setAutoZIndex(Math.min)),this},getContainer(){return this._container},setOpacity(q){return this.options.opacity=q,this._updateOpacity(),this},setZIndex(q){return this.options.zIndex=q,this._updateZIndex(),this},isLoading(){return this._loading},redraw(){var q;return this._map&&(this._removeAllTiles(),(q=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=q,this._updateLevels()),this._update()),this},getEvents(){var q={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=th(this._onMoveEnd,this.options.updateInterval,this)),q.move=this._onMove),this._zoomAnimated&&(q.zoomanim=this._animateZoom),q},createTile:()=>document.createElement("div"),getTileSize(){var q=this.options.tileSize;return q instanceof tw?q:new tw(q,q)},_updateZIndex(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex(q){var ti,tn=this.getPane().children;let ts=-q(-1/0,1/0);for(ti of tn){var ta=ti.style.zIndex;ti!==this._container&&ta&&(ts=q(ts,+ta))}isFinite(ts)&&(this.options.zIndex=ts+q(-1,1),this._updateZIndex())},_updateOpacity(){if(this._map){this._container.style.opacity=this.options.opacity;var q,ti,tn=+new Date;let ts=!1,ta=!1;for(q of Object.values(this._tiles??{}))q.current&&q.loaded&&(ti=Math.min(1,(tn-q.loaded)/200),(q.el.style.opacity=ti)<1?ts=!0:(q.active?ta=!0:this._onOpaqueTile(q),q.active=!0));ta&&!this._noPrune&&this._pruneTiles(),ts&&(cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this)))}}
19,_onOpaqueTile:tc,_initContainer(){this._container||(this._container=tW("div","leaflet-layer "+(this.options.className??"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels(){var q=this._tileZoom,ti=this.options.maxZoom;if(void 0!==q){for(var tn of Object.keys(this._levels))tn=Number(tn),this._levels[tn].el.children.length||tn===q?(this._levels[tn].el.style.zIndex=ti-Math.abs(q-tn),this._onUpdateLevel(tn)):(this._levels[tn].el.remove(),this._removeTilesAtZoom(tn),this._onRemoveLevel(tn),delete this._levels[tn]);let ta=this._levels[q];var ts=this._map;return ta||((ta=this._levels[q]={}).el=tW("div","leaflet-tile-container leaflet-zoom-animated",this._container),ta.el.style.zIndex=ti,ta.origin=ts.project(ts.unproject(ts.getPixelOrigin()),q).round(),ta.zoom=q,this._setZoomTransform(ta,ts.getCenter(),ts.getZoom()),tc(ta.el.offsetWidth),this._onCreateLevel(ta)),this._level=ta}},_onUpdateLevel:tc,_onRemoveLevel:tc,_onCreateLevel:tc,_pruneTiles(){if(this._map){var q=this._map.getZoom();if(q>this.options.maxZoom||q<this.options.minZoom)this._removeAllTiles();else{for(var ti of Object.values(this._tiles))ti.retain=ti.current;for(var tn of Object.values(this._tiles))tn.current&&!tn.active&&(tn=tn.coords,this._retainParent(tn.x,tn.y,tn.z,tn.z-5)||this._retainChildren(tn.x,tn.y,tn.z,tn.z+2));for(var[ts,ta]of Object.entries(this._tiles))ta.retain||this._removeTile(ts)}}},_removeTilesAtZoom(q){for(var[ti,tn]of Object.entries(this._tiles))tn.coords.z===q&&this._removeTile(ti)},_removeAllTiles(){for(var q of Object.keys(this._tiles))this._removeTile(q)},_invalidateAll(){for(var q of Object.keys(this._levels))this._levels[q].el.remove(),this._onRemoveLevel(Number(q)),delete this._levels[q];this._removeAllTiles(),this._tileZoom=void 0},_retainParent(q,ti,tn,ts){var q=Math.floor(q/2),ti=Math.floor(ti/2),tn=tn-1,ta=new tw(+q,+ti),ta=(ta.z=tn,this._tileCoordsToKey(ta)),ta=this._tiles[ta];return ta?.active?ta.retain=!0:(ta?.loaded&&(ta.retain=!0),ts<tn&&this._retainParent(q,ti,tn,ts))},_retainChildren(q,ti,tn,ts){for(let tl=2*q;tl<2*q+2;tl++)for(let q=2*ti;q<2*ti+2;q++){var ta=new tw(tl,q),ta=(ta.z=tn+1,this._tileCoordsToKey(ta)),ta=this._tiles[ta];ta?.active?ta.retain=!0:(ta?.loaded&&(ta.retain=!0),tn+1<ts&&this._retainChildren(tl,q,tn+1,ts))}},_resetView(q){q=q&&(q.pinch||q.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),q,q)},_animateZoom(q){this._setView(q.center,q.zoom,!0,q.noUpdate)},_clampZoom(q){var ti=this.options;return void 0!==ti.minNativeZoom&&q<ti.minNativeZoom?ti.minNativeZoom:void 0!==ti.maxNativeZoom&&ti.maxNativeZoom<q?ti.maxNativeZoom:q},_setView(q,ti,tn,ts){let ta=Math.round(ti);ta=void 0!==this.options.maxZoom&&ta>this.options.maxZoom||void 0!==this.options.minZoom&&ta<this.options.minZoom?void 0:this._clampZoom(ta);var tl=this.options.updateWhenZooming&&ta!==this._tileZoom;ts&&!tl||(this._tileZoom=ta,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==ta&&this._update(q),tn||this._pruneTiles(),this._noPrune=!!tn),this._setZoomTransforms(q,ti)},_setZoomTransforms(q,ti){for(var tn of Object.values(this._levels))this._setZoomTransform(tn,q,ti)},_setZoomTransform(q,ti,tn){var ts=this._map.getZoomScale(tn,q.zoom),ti=q.origin.multiplyBy(ts).subtract(this._map._getNewPixelOrigin(ti,tn)).round();tF(q.el,ti,ts)},_resetGrid(){var q=this._map,ti=q.options.crs,tn=this._tileSize=this.getTileSize(),ts=this._tileZoom,ta=this._map.getPixelWorldBounds(this._tileZoom);ta&&(this._globalTileRange=this._pxBoundsToTileRange(ta)),this._wrapX=ti.wrapLng&&!this.options.noWrap&&[Math.floor(q.project([0,ti.wrapLng[0]],ts).x/tn.x),Math.ceil(q.project([0,ti.wrapLng[1]],ts).x/tn.y)],this._wrapY=ti.wrapLat&&!this.options.noWrap&&[Math.floor(q.project([ti.wrapLat[0],0],ts).y/tn.x),Math.ceil(q.project([ti.wrapLat[1],0],ts).y/tn.y)]},_onMoveEnd(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds(q){var ti=this._map,tn=ti._animatingZoom?Math.max(ti._animateToZoom,ti.getZoom()):ti.getZoom(),tn=ti.getZoomScale(tn,this._tileZoom),q=ti.project(q,this._tileZoom).floor(),ti=ti.getSize().divideBy(2*tn);return new tx(q.subtract(ti),q.add(ti))},_update(q){var ti=this._map;if(ti){var tn=this._clampZoom(ti.getZoom());if(void 0===q&&(q=ti.getCenter()),void 0!==this._tileZoom){let ti=this._getTiledPixelBounds(q),tp=this._pxBoundsToTileRange(ti),tu=tp.getCenter(),tf=[],tm=this.options.keepBuffer,tg=new tx(tp.getBottomLeft().subtract([tm,-tm]),tp.getTopRight().add([tm,-tm]));if(!(isFinite(tp.min.x)&&isFinite(tp.min.y)&&isFinite(tp.max.x)&&isFinite(tp.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var ts of Object.values(this._tiles)){var ta=ts.coords;ta.z===this._tileZoom&&tg.contains(new tw(ta.x,ta.y))||(ts.current=!1)}
19if(1<Math.abs(tn-this._tileZoom))this._setView(q,tn);else{for(let q=tp.min.y;q<=tp.max.y;q++)for(let ti=tp.min.x;ti<=tp.max.x;ti++){var tl,th=new tw(ti,q);th.z=this._tileZoom,this._isValidTile(th)&&((tl=this._tiles[this._tileCoordsToKey(th)])?tl.current=!0:tf.push(th))}if(tf.sort((q,ti)=>q.distanceTo(tu)-ti.distanceTo(tu)),0!==tf.length){this._loading||(this._loading=!0,this.fire("loading"));var td,tc=document.createDocumentFragment();for(td of tf)this._addTile(td,tc);this._level.el.appendChild(tc)}}}}},_isValidTile(q){var ti=this._map.options.crs;if(!ti.infinite){var tn=this._globalTileRange;if(!ti.wrapLng&&(q.x<tn.min.x||q.x>tn.max.x)||!ti.wrapLat&&(q.y<tn.min.y||q.y>tn.max.y))return!1}return!this.options.bounds||(ti=this._tileCoordsToBounds(q),new tT(this.options.bounds).overlaps(ti))},_keyToBounds(q){return this._tileCoordsToBounds(this._keyToTileCoords(q))},_tileCoordsToNwSe(q){var ti=this._map,tn=this.getTileSize(),ts=q.scaleBy(tn),tn=ts.add(tn);return[ti.unproject(ts,q.z),ti.unproject(tn,q.z)]},_tileCoordsToBounds(q){q=this._tileCoordsToNwSe(q);let ti=new tT(q[0],q[1]);return this.options.noWrap?ti:this._map.wrapLatLngBounds(ti)},_tileCoordsToKey:q=>q.x+`:${q.y}:`+q.z,_keyToTileCoords(q){var q=q.split(":"),ti=new tw(+q[0],+q[1]);return ti.z=+q[2],ti},_removeTile(q){var ti=this._tiles[q];ti&&(ti.el.remove(),delete this._tiles[q],this.fire("tileunload",{tile:ti.el,coords:this._keyToTileCoords(q)}))},_initTile(q){q.classList.add("leaflet-tile");var ti=this.getTileSize();q.style.width=ti.x+"px",q.style.height=ti.y+"px",q.onselectstart=tc,q.onpointermove=tc},_addTile(q,ti){var tn=this._getTilePos(q),ts=this._tileCoordsToKey(q),ta=this.createTile(this._wrapCoords(q),this._tileReady.bind(this,q));this._initTile(ta),this.createTile.length<2&&requestAnimationFrame(this._tileReady.bind(this,q,null,ta)),tU(ta,tn),this._tiles[ts]={el:ta,coords:q,current:!0},ti.appendChild(ta),this.fire("tileloadstart",{tile:ta,coords:q})},_tileReady(q,ti,tn){ti&&this.fire("tileerror",{error:ti,tile:tn,coords:q});var ts=this._tileCoordsToKey(q);(tn=this._tiles[ts])&&(tn.loaded=+new Date,this._map._fadeAnimated?(tn.el.style.opacity=0,cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this))):(tn.active=!0,this._pruneTiles()),ti||(tn.el.classList.add("leaflet-tile-loaded"),this.fire("tileload",{tile:tn.el,coords:q})),this._noTilesToLoad())&&(this._loading=!1,this.fire("load"),this._map._fadeAnimated?this._pruneTimeout=setTimeout(this._pruneTiles.bind(this),250):requestAnimationFrame(this._pruneTiles.bind(this)))},_getTilePos(q){return q.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords(q){var ti=new tw(this._wrapX?td(q.x,this._wrapX):q.x,this._wrapY?td(q.y,this._wrapY):q.y);return ti.z=q.z,ti},_pxBoundsToTileRange(q){var ti=this.getTileSize();return new tx(q.min.unscaleBy(ti).floor(),q.max.unscaleBy(ti).ceil().subtract([1,1]))},_noTilesToLoad(){return Object.values(this._tiles).every(q=>q.loaded)}}),iv=ig.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize(q,ti){if(this._url=q,null===(ti=tf(this,ti)).attribution&&URL.canParse(q)){let tn=new URL(q).hostname;["tile.openstreetmap.org","tile.osm.org"].some(q=>tn.endsWith(q))&&(ti.attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}ti.detectRetina&&tj.retina&&0<ti.maxZoom?(ti.tileSize=Math.floor(ti.tileSize/2),ti.zoomReverse?(ti.zoomOffset--,ti.minZoom=Math.min(ti.maxZoom,ti.minZoom+1)):(ti.zoomOffset++,ti.maxZoom=Math.max(ti.minZoom,ti.maxZoom-1)),ti.minZoom=Math.max(0,ti.minZoom)):ti.zoomReverse?ti.minZoom=Math.min(ti.maxZoom,ti.minZoom):ti.maxZoom=Math.max(ti.minZoom,ti.maxZoom),"string"==typeof ti.subdomains&&(ti.subdomains=ti.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl(q,ti){return this._url===q&&void 0===ti&&(ti=!0),this._url=q,ti||this.redraw(),this},createTile(q,ti){var tn=document.createElement("img");return es(tn,"load",this._tileOnLoad.bind(this,ti,tn)),es(tn,"error",this._tileOnError.bind(this,ti,tn)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(tn.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(tn.referrerPolicy=this.options.referrerPolicy),tn.alt="",tn.src=this.getTileUrl(q),tn},getTileUrl(q){var ti={...this.options,r:tj.retina?"@2x":"",s:this._getSubdomain(q),x:q.x,y:q.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(q=this._globalTileRange.max.y-q.y,this.options.tms&&(ti.y=q),ti["
19-y"]=q),tg(this._url,ti)},_tileOnLoad(q,ti){q(null,ti)},_tileOnError(q,ti,tn){var ts=this.options.errorTileUrl;ts&&ti.getAttribute("src")!==ts&&(ti.src=ts),q(tn,ti)},_onTileRemove(q){q.tile.onload=null},_getZoomForUrl(){let q=this._tileZoom;var ti=this.options.maxZoom,tn=this.options.zoomReverse,ts=this.options.zoomOffset;return(q=tn?ti-q:q)+ts},_getSubdomain(q){return q=Math.abs(q.x+q.y)%this.options.subdomains.length,this.options.subdomains[q]},_abortLoading(){let q,ti;for(q of Object.keys(this._tiles)){var tn;this._tiles[q].coords.z!==this._tileZoom&&((ti=this._tiles[q].el).onload=tc,ti.onerror=tc,ti.complete||(ti.src=tv,tn=this._tiles[q].coords,ti.remove(),delete this._tiles[q],this.fire("tileabort",{tile:ti,coords:tn})))}},_removeTile(q){var ti=this._tiles[q];if(ti)return ti.el.setAttribute("src",tv),ig.prototype._removeTile.call(this,q)},_tileReady(q,ti,tn){if(this._map&&(!tn||tn.getAttribute("src")!==tv))return ig.prototype._tileReady.call(this,q,ti,tn)},_clampZoom(q){return Math.round(ig.prototype._clampZoom.call(this,q))}});var iy=iv.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize(q,ti){this._url=q;var tn,ts={...this.defaultWmsParams};for(tn of Object.keys(ti))tn in this.options||(ts[tn]=ti[tn]);var q=(ti=tf(this,ti)).detectRetina&&tj.retina?2:1,ta=this.getTileSize();ts.width=ta.x*q,ts.height=ta.y*q,this.wmsParams=ts},onAdd(q){this._crs=this.options.crs??q.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var ti=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[ti]=this._crs.code,iv.prototype.onAdd.call(this,q)},getTileUrl(q){var ti,tn,ts=this._tileCoordsToNwSe(q),ta=this._crs,ta=new tx(ta.project(ts[0]),ta.project(ts[1])),ts=ta.min,ta=ta.max,ts=(1.3<=this._wmsVersion&&this._crs===eF?[ts.y,ts.x,ta.y,ta.x]:[ts.x,ts.y,ta.x,ta.y]).join(","),tl=new URL(iv.prototype.getTileUrl.call(this,q));for([ti,tn]of Object.entries({...this.wmsParams,bbox:ts}))tl.searchParams.append(this.options.uppercase?ti.toUpperCase():ti,tn);return tl.toString()},setParams(q,ti){return Object.assign(this.wmsParams,q),ti||this.redraw(),this}});iv.WMS=iy;let i_=ir.extend({initialize(q){tf(this,{...q,continuous:!1}),tl(this),this._layers??={}},onAdd(q){ir.prototype.onAdd.call(this,q),this.on("update",this._updatePaths,this)},onRemove(){ir.prototype.onRemove.call(this),this.off("update",this._updatePaths,this)},_onZoomEnd(){for(var q of Object.values(this._layers))q._project()},_updatePaths(){for(var q of Object.values(this._layers))q._update()},_onViewReset(){for(var q of Object.values(this._layers))q._reset()},_onSettled(){this._update()},_update:tc}),ib=i_.extend({options:{tolerance:0},getEvents(){var q=i_.prototype.getEvents.call(this);return q.viewprereset=this._onViewPreReset,q},_onViewPreReset(){this._postponeUpdatePaths=!0},onAdd(q){i_.prototype.onAdd.call(this,q),this._draw()},onRemove(){i_.prototype.onRemove.call(this),clearTimeout(this._pointerHoverThrottleTimeout)}
19,_initContainer(){var q=this._container=document.createElement("canvas");es(q,"pointermove",this._onPointerMove,this),es(q,"click dblclick pointerdown pointerup contextmenu",this._onClick,this),es(q,"pointerout",this._handlePointerOut,this),q._leaflet_disable_events=!0,this._ctx=q.getContext("2d")},_destroyContainer(){cancelAnimationFrame(this._redrawRequest),this._redrawRequest=null,delete this._ctx,i_.prototype._destroyContainer.call(this)},_resizeContainer(){var q=i_.prototype._resizeContainer.call(this),ti=this._ctxScale=window.devicePixelRatio;this._container.width=ti*q.x,this._container.height=ti*q.y},_updatePaths(){if(!this._postponeUpdatePaths){for(var q of(this._redrawBounds=null,Object.values(this._layers)))q._update();this._redraw()}},_update(){var q,ti;this._map._animatingZoom&&this._bounds||(q=this._bounds,ti=this._ctxScale,this._ctx.setTransform(ti,0,0,ti,-q.min.x*ti,-q.min.y*ti),this.fire("update"))},_reset(){i_.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath(q){this._updateDashArray(q),q=(this._layers[tl(q)]=q)._order={layer:q,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=q),this._drawLast=q,this._drawFirst??=this._drawLast},_addPath(q){this._requestRedraw(q)},_removePath(q){var ti=q._order,tn=ti.next,ti=ti.prev;tn?tn.prev=ti:this._drawLast=ti,ti?ti.next=tn:this._drawFirst=tn,delete q._order,delete this._layers[tl(q)],this._requestRedraw(q)},_updatePath(q){this._extendRedrawBounds(q),q._project(),q._update(),this._requestRedraw(q)},_updateStyle(q){this._updateDashArray(q),this._requestRedraw(q)},_updateDashArray(q){var ti;"string"==typeof q.options.dashArray?(ti=q.options.dashArray.split(/[, ]+/),q.options._dashArray=ti.map(q=>Number(q)).filter(q=>!isNaN(q))):q.options._dashArray=q.options.dashArray},_requestRedraw(q){this._map&&(this._extendRedrawBounds(q),this._redrawRequest??=requestAnimationFrame(this._redraw.bind(this)))},_extendRedrawBounds(q){var ti;q._pxBounds&&(ti=(q.options.weight??0)+1,this._redrawBounds??=new tx,this._redrawBounds.extend(q._pxBounds.min.subtract([ti,ti])),this._redrawBounds.extend(q._pxBounds.max.add([ti,ti])))},_redraw(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear(){var q,ti=this._redrawBounds;ti?(q=ti.getSize(),this._ctx.clearRect(ti.min.x,ti.min.y,q.x,q.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw(){var q,ti,tn=this._redrawBounds;this._ctx.save(),tn&&(ti=tn.getSize(),this._ctx.beginPath(),this._ctx.rect(tn.min.x,tn.min.y,ti.x,ti.y),this._ctx.clip()),this._drawing=!0;for(let ti=this._drawFirst;ti;ti=ti.next)q=ti.layer,(!tn||q._pxBounds&&q._pxBounds.intersects(tn))&&q._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly(q,ti){if(this._drawing){let tn=q._parts,ts=this._ctx;tn.length&&(ts.beginPath(),tn.forEach(q=>{q.forEach((q,ti)=>{ts[ti?"lineTo":"moveTo"](q.x,q.y)}),ti&&ts.closePath()}),this._fillStroke(ts,q))}},_updateCircle(q){var ti,tn,ts,ta;this._drawing&&!q._empty()&&(ti=q._point,tn=this._ctx,ts=Math.max(Math.round(q._radius),1),1!=(ta=(Math.max(Math.round(q._radiusY),1)||ts)/ts)&&(tn.save(),tn.scale(1,ta)),tn.beginPath(),tn.arc(ti.x,ti.y/ta,ts,0,2*Math.PI,!1),1!=ta&&tn.restore(),this._fillStroke(tn,q))},_fillStroke(q,ti){(ti=ti.options).fill&&(q.globalAlpha=ti.fillOpacity,q.fillStyle=ti.fillColor??ti.color,q.fill(ti.fillRule||"evenodd")),ti.stroke&&0!==ti.weight&&(q.setLineDash&&(q.lineDashOffset=Number(ti.dashOffset??0),q.setLineDash(ti._dashArray??[])),q.globalAlpha=ti.opacity,q.lineWidth=ti.weight,q.strokeStyle=ti.color,q.lineCap=ti.lineCap,q.lineJoin=ti.lineJoin,q.stroke())},_onClick(q){let ti,tn;var ts=this._map.pointerEventToLayerPoint(q);for(let ta=this._drawFirst;ta;ta=ta.next)(ti=ta.layer).options.interactive&&ti._containsPoint(ts)&&(("click"===q.type||"preclick"===q.type)&&this._map._draggableMoved(ti)||(tn=ti));this._fireEvent(!!tn&&[tn],q)}
19,_onPointerMove(q){var ti;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(ti=this._map.pointerEventToLayerPoint(q),this._handlePointerHover(q,ti))},_handlePointerOut(q){var ti=this._hoveredLayer;ti&&(this._container.classList.remove("leaflet-interactive"),this._fireEvent([ti],q,"pointerout"),this._hoveredLayer=null,this._pointerHoverThrottled=!1)},_handlePointerHover(q,ti){if(!this._pointerHoverThrottled){let tn,ts;for(let q=this._drawFirst;q;q=q.next)(tn=q.layer).options.interactive&&tn._containsPoint(ti)&&(ts=tn);ts!==this._hoveredLayer&&(this._handlePointerOut(q),ts)&&(this._container.classList.add("leaflet-interactive"),this._fireEvent([ts],q,"pointerover"),this._hoveredLayer=ts),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],q),this._pointerHoverThrottled=!0,this._pointerHoverThrottleTimeout=setTimeout(()=>{this._pointerHoverThrottled=!1},32)}},_fireEvent(q,ti,tn){this._map._fireDOMEvent(ti,tn||ti.type,q)},_bringToFront(q){var ti,tn,ts=q._order;ts&&(ti=ts.next,tn=ts.prev,ti)&&((ti.prev=tn)?tn.next=ti:ti&&(this._drawFirst=ti),ts.prev=this._drawLast,(this._drawLast.next=ts).next=null,this._drawLast=ts,this._requestRedraw(q))},_bringToBack(q){var ti,tn,ts=q._order;ts&&(ti=ts.next,tn=ts.prev)&&((tn.next=ti)?ti.prev=tn:tn&&(this._drawLast=tn),ts.prev=null,ts.next=this._drawFirst,this._drawFirst.prev=ts,this._drawFirst=ts,this._requestRedraw(q))}});function iw(q,ti){return q.flatMap(q=>[...q.map((q,ti)=>(ti?"L":"M")+q.x+" "+q.y),ti?"z":""]).join("")||"M0 0"}let ix=function(q){return document.createElementNS("http://www.w3.org/2000/svg",q)},iT=i_.extend({_initContainer(){this._container=ix("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ix("g"),this._container.appendChild(this._rootGroup)},_destroyContainer(){i_.prototype._destroyContainer.call(this),delete this._rootGroup,delete this._svgSize},_resizeContainer(){var q=i_.prototype._resizeContainer.call(this);this._svgSize&&this._svgSize.equals(q)||(this._svgSize=q,this._container.setAttribute("width",q.x),this._container.setAttribute("height",q.y))},_update(){var q,ti;this._map._animatingZoom&&this._bounds||(ti=(q=this._bounds).getSize(),this._container.setAttribute("viewBox",[q.min.x,q.min.y,ti.x,ti.y].join(" ")),this.fire("update"))},_initPath(q){var ti=q._path=ix("path");q.options.className&&ti.classList.add(...tu(q.options.className)),q.options.interactive&&ti.classList.add("leaflet-interactive"),this._updateStyle(q),this._layers[tl(q)]=q},_addPath(q){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(q._path),q.addInteractiveTarget(q._path)},_removePath(q){q._path.remove(),q.removeInteractiveTarget(q._path),delete this._layers[tl(q)]},_updatePath(q){q._project(),q._update()},_updateStyle(q){var ti=q._path,q=q.options;ti&&(q.stroke?(ti.setAttribute("stroke",q.color),ti.setAttribute("stroke-opacity",q.opacity),ti.setAttribute("stroke-width",q.weight),ti.setAttribute("stroke-linecap",q.lineCap),ti.setAttribute("stroke-linejoin",q.lineJoin),q.dashArray?ti.setAttribute("stroke-dasharray",q.dashArray):ti.removeAttribute("stroke-dasharray"),q.dashOffset?ti.setAttribute("stroke-dashoffset",q.dashOffset):ti.removeAttribute("stroke-dashoffset")):ti.setAttribute("stroke","none"),q.fill?(ti.setAttribute("fill",q.fillColor||q.color),ti.setAttribute("fill-opacity",q.fillOpacity),ti.setAttribute("fill-rule",q.fillRule||"evenodd")):ti.setAttribute("fill","none"))},_updatePoly(q,ti){this._setPath(q,iw(q._parts,ti))},_updateCircle(q){var ti=q._point,tn=Math.max(Math.round(q._radius),1),ts=`a${tn},${Math.max(Math.round(q._radiusY),1)||tn} 0 1,0 `,ti=q._empty()?"M0 0":`M${ti.x-tn},${ti.y}${ts}${2*tn},0 ${ts}${-(2*tn)},0 `;this._setPath(q,ti)},_setPath(q,ti){q._path.setAttribute("d",ti)},_bringToFront(q){tR(q._path)},_bringToBack(q){tZ(q._path)}});tI.include({getRenderer(q){let ti=q.options.renderer??this._getPaneRenderer(q.options.pane)??this.options.renderer??this._renderer;return ti=ti||(this._renderer=this._createRenderer()),this.hasLayer(ti)||this.addLayer(ti),ti},_getPaneRenderer(q){if("overlayPane"!==q&&void 0!==q){let ti=this._paneRenderers[q];return void 0===ti&&(ti=this._createRenderer({pane:q}),this._paneRenderers[q]=ti),ti}},_createRenderer(q){return this.options.preferCanvas&&new ib(q)||new iT(q)}});var iy=e3.extend({initialize(q,ti){e3.prototype.initialize.call(this,this._boundsToLatLngs(q),ti)},setBounds(q){return this.setLatLngs(this._boundsToLatLngs(q))},_boundsToLatLngs:q=>
19[(q=new tT(q)).getSouthWest(),q.getNorthWest(),q.getNorthEast(),q.getSouthEast()]}),iL=(iT.create=ix,iT.pointsToPath=iw,e5.geometryToLayer=e9,e5.coordsToLatLng=e8,e5.coordsToLatLngs=e7,e5.latLngToCoords=e6,e5.latLngsToCoords=ii,e5.getFeature=io,e5.asFeature=is,tI.mergeOptions({boxZoom:!0}),tB.extend({initialize(q){this._map=q,this._container=q._container,this._pane=q._panes.overlayPane,this._resetStateTimeout=0,q.on("unload",this._destroy,this)},addHooks(){es(this._container,"pointerdown",this._onPointerDown,this)},removeHooks(){er(this._container,"pointerdown",this._onPointerDown,this)},moved(){return this._moved},_destroy(){this._pane.remove(),delete this._pane},_resetState(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onPointerDown(q){if(!q.shiftKey||0!==q.button)return!1;this._clearDeferredResetState(),this._resetState(),tY(),tJ(),this._startPoint=this._map.pointerEventToContainerPoint(q),es(document,{contextmenu:ey,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerMove(q){this._moved||(this._moved=!0,this._box=tW("div","leaflet-zoom-box",this._container),this._container.classList.add("leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.pointerEventToContainerPoint(q);var q=new tx(this._point,this._startPoint),ti=q.getSize();tU(this._box,q.min),this._box.style.width=ti.x+"px",this._box.style.height=ti.y+"px"},_finish(){this._moved&&(this._box.remove(),this._container.classList.remove("leaflet-crosshair")),tX(),t0(),er(document,{contextmenu:ey,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerUp(q){0===q.button&&(this._finish(),this._moved)&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(this._resetState.bind(this),0),q=new tT(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(q).fire("boxzoomend",{boxZoomBounds:q}))},_onKeyDown(q){"Escape"===q.code&&(this._finish(),this._clearDeferredResetState(),this._resetState())}})),iC=(tI.addInitHook("addHandler","boxZoom",iL),tI.mergeOptions({doubleClickZoom:!0}),tB.extend({addHooks(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick(q){var ti=this._map,tn=ti.getZoom(),ts=ti.options.zoomDelta,tn=q.originalEvent.shiftKey?tn-ts:tn+ts;"center"===ti.options.doubleClickZoom?ti.setZoom(tn):ti.setZoomAround(q.containerPoint,tn)}})),iS=(tI.addInitHook("addHandler","doubleClickZoom",iC),tI.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),tB.extend({addHooks(){var q;this._draggable||(q=this._map,this._draggable=new eE(q._mapPane,q._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),q.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),q.on("zoomend",this._onZoomEnd,this),q.whenReady(this._onZoomEnd,this))),this._map._container.classList.add("leaflet-grab","leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks(){this._map._container.classList.remove("leaflet-grab","leaflet-touch-drag"),this._draggable.disable()},moved(){return this._draggable?._moved},moving(){return this._draggable?._moving},_onDragStart(){var q,ti=this._map;ti._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(q=new tT(this._map.options.maxBounds),this._offsetLimit=new tx(this._map.latLngToContainerPoint(q.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(q.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,ti.fire("movestart").fire("dragstart"),ti.options.inertia&&(this._positions=[],this._times=[])},_onDrag(q){var ti,tn;this._map.options.inertia&&(ti=this._lastTime=+new Date,tn=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(tn),this._times.push(ti),this._prunePositions(ti)),this._map.fire("move",q).fire("drag",q)},_prunePositions(q){for(;1<this._positions.length&&50<q-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd(){var q=this._map.getSize().divideBy(2),ti=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=ti.subtract(q).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit(q,ti){return q-(q-ti)*this._viscosity},_onPreDragLimit(){var q,ti;this._viscosity&&this._offsetLimit&&(q=this._draggable._newPos.subtract(this._draggable._startPos),ti=this._offsetLimit,q.x<ti.min.x&&(q.x=this._viscousLimit(q.x,ti.min.x)),q.y<ti.min.y&&(q.y=this._viscousLimit(q.y,ti.min.y)),q.x>ti.max.x&&(q.x=this._viscousLimit(q.x,ti.max.x)),q.y>ti.max.y&&(q.y=this._viscousLimit(q.y,ti.max.y)),this._draggable._newPos=this._draggable._startPos.add(q))},_onPreDragWrap(){var q=this._worldWidth,ti=Math.round(q/2),tn=this._initialWorldOffset,ts=this._draggable._newPos.x,ta=(ts-ti+tn)%q+ti-tn,ts=(ts+ti+tn)%q-ti-tn,q=Math.abs(ta+tn)<Math.abs(ts+tn)?ta:ts;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=q},_onDragEnd(q){let ti=this._map,tn=ti.options,ts=!tn.inertia||q.noInertia||this._times.length<2;if(ti.fire("dragend",q),ts)ti.fire("moveend");else{this._prunePositions(+new Date);let q=this._lastPos.subtract(this._positions[0]),ts=(this._lastTime-this._times[0])/1e3,ta=tn.easeLinearity,tl=q.multiplyBy(ta/ts),th=tl.distanceTo([0,0]),td=Math.min(tn.inertiaMaxSpeed,th),tc=tl.multiplyBy(td/th),tp=td/(tn.inertiaDeceleration*ta),tu=tc.multiplyBy(-tp/2).round();tu.x||tu.y?(tu=ti._limitOffset(tu,ti.options.maxBounds),requestAnimationFrame(()=>{ti.panBy(tu,{duration:tp,easeLinearity:ta,noMoveStart:!0,animate:!0})}
19)):ti.fire("moveend")}}})),iP=(tI.addInitHook("addHandler","dragging",iS),tI.mergeOptions({keyboard:!0,keyboardPanDelta:80}),tB.extend({keyCodes:{left:["ArrowLeft"],right:["ArrowRight"],down:["ArrowDown"],up:["ArrowUp"],zoomIn:["Equal","NumpadAdd","BracketRight"],zoomOut:["Minus","NumpadSubtract","Digit6","Slash"]},initialize(q){this._map=q,this._setPanDelta(q.options.keyboardPanDelta),this._setZoomDelta(q.options.zoomDelta)},addHooks(){var q=this._map._container;q.tabIndex<=0&&(q.tabIndex="0"),q.ariaKeyShortcuts=Object.values(this.keyCodes).flat().join(" "),es(q,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks(){this._removeHooks(),er(this._map._container,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onPointerDown(){var q,ti,tn;this._focused||(tn=document.body,q=document.documentElement,ti=tn.scrollTop||q.scrollTop,tn=tn.scrollLeft||q.scrollLeft,this._map._container.focus(),window.scrollTo(tn,ti))},_onFocus(){this._focused=!0,this._map.fire("focus")},_onBlur(){this._focused=!1,this._map.fire("blur")},_setPanDelta(q){var ti,tn,ts,ta,tl=this._panKeys={},th=this.keyCodes;for(ti of th.left)tl[ti]=[-1*q,0];for(tn of th.right)tl[tn]=[q,0];for(ts of th.down)tl[ts]=[0,q];for(ta of th.up)tl[ta]=[0,-1*q]},_setZoomDelta(q){var ti,tn,ts=this._zoomKeys={},ta=this.keyCodes;for(ti of ta.zoomIn)ts[ti]=q;for(tn of ta.zoomOut)ts[tn]=-q},_addHooks(){es(document,"keydown",this._onKeyDown,this)},_removeHooks(){er(document,"keydown",this._onKeyDown,this)},_onKeyDown(q){if(!(q.altKey||q.ctrlKey||q.metaKey)){let ta;var ti,tn=q.code,ts=this._map;if(tn in this._panKeys)ts._panAnim&&ts._panAnim._inProgress||(ta=this._panKeys[tn],q.shiftKey&&(ta=new tw(ta).multiplyBy(3)),ts.options.maxBounds&&(ta=ts._limitOffset(new tw(ta),ts.options.maxBounds)),ts.options.worldCopyJump?(ti=ts.wrapLatLng(ts.unproject(ts.project(ts.getCenter()).add(ta))),ts.panTo(ti)):ts.panBy(ta));else if(tn in this._zoomKeys)ts.setZoom(ts.getZoom()+(q.shiftKey?3:1)*this._zoomKeys[tn]);else{if("Escape"!==tn||!ts._popup||!ts._popup.options.closeOnEscapeKey)return;ts.closePopup()}ey(q)}}})),ik=(tI.addInitHook("addHandler","keyboard",iP),tI.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),tB.extend({addHooks(){es(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks(){er(this._map._container,"wheel",this._onWheelScroll,this),clearTimeout(this._timer)},_onWheelScroll(q){var ti=ex(q),tn=this._map.options.wheelDebounceTime,ti=(this._delta+=ti,this._lastMousePos=this._map.pointerEventToContainerPoint(q),this._startTime||(this._startTime=+new Date),Math.max(tn-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(this._performZoom.bind(this),ti),ey(q)},_performZoom(){var q=this._map,ti=q.getZoom(),tn=this._map.options.zoomSnap??0,ts=(q._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),ts=4*Math.log(2/(1+Math.exp(-Math.abs(ts))))/Math.LN2,tn=tn?Math.ceil(ts/tn)*tn:ts,ts=q._limitZoom(ti+(0<this._delta?tn:-tn))-ti;this._delta=0,this._startTime=null,ts&&("center"===q.options.scrollWheelZoom?q.setZoom(ti+ts):q.setZoomAround(this._lastMousePos,ti+ts))}}));tI.addInitHook("addHandler","scrollWheelZoom",ik),tI.mergeOptions({tapHold:tj.touchNative&&tj.safari&&tj.mobile,tapTolerance:15});var iE=tB.extend({addHooks(){es(this._map._container,"pointerdown",this._onDown,this)},removeHooks(){er(this._map._container,"pointerdown",this._onDown,this),clearTimeout(this._holdTimeout)},_onDown(q){clearTimeout(this._holdTimeout),1===eo().length&&"mouse"!==q.pointerType&&(this._startPos=this._newPos=new tw(q.clientX,q.clientY),this._holdTimeout=setTimeout(()=>{this._cancel(),this._isTapValid()&&(es(document,"pointerup",ev),es(document,"pointerup pointercancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",q))},600),es(document,"pointerup pointercancel contextmenu",this._cancel,this),es(document,"pointermove",this._onMove,this))},_cancelClickPrevent:function q(){er(document,"pointerup",ev),er(document,"pointerup pointercancel",q)},_cancel(){clearTimeout(this._holdTimeout),er(document,"pointerup pointercancel contextmenu",this._cancel,this),er(document,"pointermove",this._onMove,this)},_onMove(q){this._newPos=new tw(q.clientX,q.clientY)},_isTapValid(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent(q,ti){(q=new MouseEvent(q,{bubbles:!0,cancelable:!0,view:window,screenX:ti.screenX,screenY:ti.screenY,clientX:ti.clientX,clientY:ti.clientY}))._simulated=!0,ti.target.dispatchEvent(q)}}),iz=(tI.addInitHook("addHandler","tapHold",iE),tI.mergeOptions({pinchZoom:tj.touch,bounceAtZoomLimits:!0}),tB.extend({addHooks(){this._map._container.classList.add("leaflet-touch-zoom"),es(this._map._container,"pointerdown",this._onPointerStart,this)},removeHooks(){this._map._container.classList.remove("leaflet-touch-zoom"),er(this._map._container,"pointerdown",this._onPointerStart,this)},_onPointerStart(q){var ti,tn=this._map,ts=eo();2!==ts.length||tn._animatingZoom||this._zooming||(ti=tn.pointerEventToContainerPoint(ts[0]),ts=tn.pointerEventToContainerPoint(ts[1]),this._centerPoint=tn.getSize()._divideBy(2),this._startLatLng=tn.containerPointToLatLng(this._centerPoint),"center"!==tn.options.pinchZoom&&(this._pinchStartLatLng=tn.containerPointToLatLng(ti.add(ts)._divideBy(2))),this._startDist=ti.distanceTo(ts),this._startZoom=tn.getZoom(),this._moved=!1,this._zooming=!0,tn._stop(),es(document,"pointermove",this._onPointerMove,this),es(document,"pointerup pointercancel",this._onPointerEnd,this),ev(q))},_onPointerMove(q){var ti=eo();if(2===ti.length&&this._zooming){var tn=this._map,ts=tn.pointerEventToContainerPoint(ti[0]),ti=tn.pointerEventToContainerPoint(ti[1]),ta=ts.distanceTo(ti)/this._startDist;if(this._zoom=tn.getScaleZoom(ta,this._startZoom),!tn.options.bounceAtZoomLimits&&(this._zoom<tn.getMinZoom()&&ta<1||this._zoom>tn.getMaxZoom()&&1<ta)&&(this._zoom=tn._limitZoom(this._zoom)),"center"===tn.options.pinchZoom){if(this._center=this._startLatLng,1==ta)return}else{if(ts=ts._add(ti)._divideBy(2)._subtract(this._centerPoint),1==ta&&0===ts.x&&0===ts.y)return;this._center=tn.unproject(tn.project(this._pinchStartLatLng,this._zoom).subtract(ts),this._zoom)}this._moved||(tn._moveStart(!0,!1),this._moved=!0),cancelAnimationFrame(this._animRequest),ti=tn._move.bind(tn,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=requestAnimationFrame(ti.bind(this)),ev(q)}},_onPointerEnd(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimationFrame(this._animRequest),er(document,"pointermove",this._onPointerMove,this),er(document,"pointerup pointercancel",this._onPointerEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),iL=(tI.addInitHook("addHandler","pinchZoom",iz),tI.addInitHook(function(){this.touchZoom=this.pinchZoom,void 0!==this.options.touchZoom&&(console.warn("Map: touchZoom option is deprecated and will be removed in future versions. Use pinchZoom instead."),this.options.pinchZoom=this.options.touchZoom,delete this.options.touchZoom),this.options.pinchZoom?this.pinchZoom.enable():this.pinchZoom.disable()}),tI.BoxZoom=iL,tI.DoubleClickZoom=iC,tI.Drag=iS,tI.Keyboard=iP,tI.ScrollWheelZoom=ik,tI.TapHold=iE,tI.PinchZoom=iz,tI.TouchZoom=iz,"2.0.0-alpha"),iC={__proto__:null,BlanketOverlay:ir,Bounds:tx,Browser:tj,CRS:tC,Canvas:ib,Cir
19cle:e1,CircleMarker:tA,Class:t_,Control:eS,DivIcon:im,DivOverlay:ic,DomEvent:eL,DomUtil:t9,Draggable:eE,Evented:tb,FeatureGroup:eQ,GeoJSON:e5,GridLayer:ig,Handler:tB,Icon:eK,ImageOverlay:ia,LatLng:tL,LatLngBounds:tT,Layer:eG,LayerGroup:eV,LineUtil:tO,Map:tI,Marker:eJ,Path:e0,Point:tw,PolyUtil:tM,Polygon:e3,Polyline:e2,Popup:ip,PosAnimation:eC,Projection:eR,Rectangle:iy,Renderer:i_,SVG:iT,SVGOverlay:ih,TileLayer:iv,Tooltip:iu,Transformation:tk,Util:ty,VideoOverlay:il,version:iL};let iM=iI().L;function iI(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("Unable to locate global object.")}iI().L=iC,iI().L.noConflict=function(){return iI().L=iM,this},q.BlanketOverlay=ir,q.Bounds=tx,q.Browser=tj,q.CRS=tC,q.Canvas=ib,q.Circle=e1,q.CircleMarker=tA,q.Class=t_,q.Control=eS,q.DivIcon=im,q.DivOverlay=ic,q.DomEvent=eL,q.DomUtil=t9,q.Draggable=eE,q.Evented=tb,q.FeatureGroup=eQ,q.GeoJSON=e5,q.GridLayer=ig,q.Handler=tB,q.Icon=eK,q.ImageOverlay=ia,q.LatLng=tL,q.LatLngBounds=tT,q.Layer=eG,q.LayerGroup=eV,q.LineUtil=tO,q.Map=tI,q.Marker=eJ,q.Path=e0,q.Point=tw,q.PolyUtil=tM,q.Polygon=e3,q.Polyline=e2,q.Popup=ip,q.PosAnimation=eC,q.Projection=eR,q.Rectangle=iy,q.Renderer=i_,q.SVG=iT,q.SVGOverlay=ih,q.TileLayer=iv,q.Tooltip=iu,q.Transformation=tk,q.Util=ty,q.VideoOverlay=il,q.default=iC,q.version=iL}),function(q){"use strict";var ti=function(){this.confData={},this.selfCount={},this.mapInstance={},this.mapMarkers={},this.activeMap=null,q(".js-mapComponent").length&&this.initialize()};function tn(){var ti=[{selector:".map-search__location-distance h3 b",property:"title",type:"text"},{selector:".map-search__location-address p",property:"address_format",type:"text"},{selector:".map-search__location-phone",property:"phone",type:"text"},{selector:".map-search__location-phone2",property:"phone2",type:"text"},{selector:".map-search__location-fax",property:"fax",type:"text"},{selector:".map-search__location-directions a",property:["cta","buttonText"],type:"text"},{selector:".map-search__location-directions a",property:["cta","linkPage"],type:"href"},{selector:".map-search__email",property:"email",type:"text"}];q("#gmap-location-list").on("click",".gmap-location a",function(tn,ts){tn.preventDefault();var ta=q(this).closest("[data-component-name]").data("componentName"),tl=window.webManagerMap.confData[ta].locations,th=q(this).parent().attr("id"),td=tl.find(function(q){return q.ID===th}),tc=window.webManagerMap.mapMarkers[ta].find(function(q){return q._latlng.lat==td.latitude&&q._latlng.lng==td.longitude});if(void 0===ts){let q=window.webManagerMap.mapInstance[ta],ti=window.webManagerMap.confData[ta],tn=[td.latitude,td.longitude],ts=ti.xaxis,tl=ti.yaxis;function tp(){tc&&tc.openPopup()}ts>-140&&(ts=-140),q.invalidateSize(),q.stop(),window.innerWidth>768?(q.setView(tn,ti.zoom,{animate:!1}),q.panBy([ts,tl],{animate:!0}),q.once("moveend",function(){tp()})):(q.setView(tn,ti.zoom,{animate:!1}),tp())}var tu=q(this).closest(".gmap-location").data("distanceMiles"),tf=q(".map-search__location-distance > b");void 0!==tu?(tf.show(),tu=tu.toLocaleString(),tf[0].innerHTML=tu+" mi"):tf[0].innerHTML=" -- mi",ti.forEach(function(ti,tn){var ts={},ta=ti.property;if(".map-search__location-directions a"==ti.selector){for(var tl="",tn=0;tn<=3;tn++)if(td.cta.buttonStyle==tn){switch(td.cta.buttonStyle){case"0":tl="cta__link component__link--";break;case"1":tl="cta__button component__button--";break;case"2":tl="cta__link--icon ";break;case"3":tl="cta__button--icon component__button--"}2==td.cta.buttonStyle||3==td.cta.buttonStyle?q(ti.selector).html(td.cta.iconHtm):q(ti.selector).text(td.cta.buttonText),q(ti.selector).removeClass().addClass(tl+td.cta.displayStyle),2==td.cta.linkType?q(ti.selector).attr("href","#"):1==td.cta.linkType?q(ti.selector).attr("href",td.cta.linkUrl):q(ti.selector).attr("href",td.cta.linkPage),td.cta.openInNew?q(ti.selector).attr("target","_blank"):q(ti.selector).attr("target",""),td.cta.openInNew&&1==td.cta.linkType?q(ti.selector).attr("rel","noopener"):q(ti.selector).attr("rel","")}}else{if("string"==typeof ta||ta instanceof String)ts=td[ta];else{var th=td;ta.forEach(function(q){th=th[q]}),ts=th}if("string"==typeof ts||ts instanceof String)"text"===ti.type?(q(ti.selector).text(ts),(".map-search__location-phone"==ti.selector||".map-search__location-phone2"==ti.selector)&&q(ti.selector).attr("href","tel:"+ts)):"href"===ti.type&&q(ti.selector).attr("href",ts),ts.length>0?q(ti.selector).show():q(ti.selector).hide();else{var tc=Object.values(Object.keys(td[ta]).map(function(q){return td[ta][q]}));q(ti.selector).html(tc.join("<br>"))}}})})}ti.prototype.getAddressForPostcode=function(q,ti,tn){for(var ts="",ta=this.confData[q].locations,tl=0;tl<ta.length;tl++)if(-1!==ta[tl].address.indexOf(ti)){if(null!==tn){if(-1!==ta[tl].address.indexOf(tn)){ts=ta[tl].address;break}}else{ts=ta[tl].address;break}}return ts},ti.prototype.initialize=function(){var ti=this;"undefined"!=typeof L&&L&&(!L.map&&L.Map&&(L.map=(q,ti)=>new L.Map(q,ti)),!L.tileLayer&&L.TileLayer&&(L.tileLayer=(q,ti)=>new L.TileLayer(q,ti)),!L.marker&&L.Marker&&(L.marker=(q,ti)=>new L.Marker(q,ti)),!L.polygon&&L.Polygon&&(L.polygon=(q,ti)=>new L.Polygon(q,ti)),!L.polyline&&L.Polyline&&(L.polyline=(q,ti)=>new L.Polyline(q,ti)),!L.circle&&L.Circle&&(L.circle=(q,ti,tn)=>new L.Circle(q,ti,tn)),!L.circleMarker&&L.CircleMarker&&(L.circleMarker=(q,ti)=>new L.CircleMarker(q,ti)),!L.rectangle&&L.Rectangle&&(L.rectangle=(q,ti)=>new L.Rectangle(q,ti)),!L.featureGroup&&L.FeatureGroup&&(L.featureGroup=q=>new L.FeatureGroup(q)),!L.layerGroup&&L.LayerGroup&&(L.layerGroup=q=>new L.LayerGroup(q)),!L.geoJSON&&L.GeoJSON&&(L.geoJSON=(q,ti)=>new L.GeoJSON(q,ti)),!L.imageOverlay&&L.ImageOverlay&&(L.imageOverlay=(q,ti,tn)=>new L.ImageOverlay(q,ti,tn)),!L.videoOverlay&&L.VideoOverlay&&(L.videoOverlay=(q,ti,tn)=>new L.VideoOverlay(q,ti,tn)),!L.svgOverlay&&L.SVGOverlay&&(L.svgOverlay=(q,ti,tn)=>new L.SVGOverlay(q,ti,tn)),!L.icon&&L.Icon&&(L.icon=q=>new L.Icon(q)),!L.divIcon&&L.DivIcon&&(L.divIcon=q=>new L.DivIcon(q)),L.control=L.control||{},!L.control.zoom&&L.Control?.Zoom&&(L.control.zoom=q=>new L.Control.Zoom(q)),!L.control.layers&&L.Control?.Layers&&(L.control.layers=(q,ti,tn)=>new L.Control.Layers(q,ti,tn)),!L.control.scale&&L.Control?.Scale&&(L.control.scale=q=>
19new L.Control.Scale(q)),!L.control.attribution&&L.Control?.Attribution&&(L.control.attribution=q=>new L.Control.Attribution(q)),!L.popup&&L.Popup&&(L.popup=(q,ti)=>new L.Popup(q,ti)),!L.tooltip&&L.Tooltip&&(L.tooltip=(q,ti)=>new L.Tooltip(q,ti)),!L.latLng&&L.LatLng&&(L.latLng=(q,ti)=>Array.isArray(q)?new L.LatLng(q[0],q[1],q[2]):new L.LatLng(q,ti)),!L.latLngBounds&&L.LatLngBounds&&(L.latLngBounds=(q,ti)=>Array.isArray(q)?new L.LatLngBounds(q[0],q[1]??q[0]):new L.LatLngBounds(q,ti)),!L.point&&L.Point&&(L.point=(q,ti,tn)=>Array.isArray(q)?new L.Point(q[0],q[1],ti):new L.Point(q,ti,tn)),!L.bounds&&L.Bounds&&(L.bounds=(q,ti)=>Array.isArray(q)?new L.Bounds(q[0],q[1]??q[0]):new L.Bounds(q,ti)));var tn=q(".js-mapComponent"),ts="//smbmaps.ibsrv.net/world_tiles/{z}/{x}/{y}.png";window.mapPopupTriggered=!1,tn.each(function(){var tn=q(this).closest("[data-component-name]").data("componentName");ti.mapInstance[tn]=L.map(this),L.tileLayer(ts,{attribution:'Map data provided by <a href="http://www.internetbrands.com/">Internet Brands</a>',maxZoom:18}).addTo(ti.mapInstance[tn]),ti.mapInstance[tn].scrollWheelZoom.disable(),ti.confData[tn]=JSON.parse(q(this).closest("[data-component-name]").find("input[type=hidden]").val()),ti.setupMap(ti.mapInstance[tn],ti.confData[tn]),ti.mapSize(this,ti.confData[tn],tn),ti.attachEvents(this,ti.confData[tn],tn);var ta=!1;ti.searchByZipCode(this,ti.confData[tn],ti.mapInstance[tn],tn,ta);var tl=ti.confData[tn].locations;tl.length>1&&!ti.confData[tn].fitBounds&&(tl=tl.reverse());for(var th=0;th<tl.length;th++)if(null!=tl[th].cta&&(2==tl[th].cta.buttonStyle&&(tl[th].cta.iconHtm='\n<span aria-label="'+tl[th].cta.iconClass.replace(/-/g," ")+'">\n<span class="'+tl[th].cta.iconClass+' icon" aria-hidden="true"></span>\n</span>\n'),3==tl[th].cta.buttonStyle&&(tl[th].cta.iconHtm='\n<span class="'+tl[th].cta.iconClass+' icon" aria-hidden="true"></span>\n'+tl[th].cta.buttonText+"\n")),null!=tl[th].latitude&&null!=tl[th].longitude){var td=[{lat:tl[th].latitude,lon:tl[th].longitude,address:{name:tl[th].address}}];ti.applyData(td,tn,this,th)}else ti.geolocateLocation(tl[th],tn,this);var tc=ti.confData[tn].xaxis,tp=ti.confData[tn].yaxis;q(window).width()>768&&(0!=tc||0!=tp)&&ti.mapInstance[tn].panBy([tc,tp])}),q("body").click(function(tn){if(q(tn.target).hasClass("js-mapComponent")){var ts=q(tn.target).closest("[data-component-name]").data("componentName");null!==ti.activeMap&&ti.mapInstance[ti.activeMap].scrollWheelZoom.disable(),ti.activeMap=ts,ti.confData[ts].zoomControl&&ti.mapInstance[ts].scrollWheelZoom.enable()}else null!==ti.activeMap&&(ti.mapInstance[ti.activeMap].scrollWheelZoom.disable(),ti.activeMap=null)})},ti.prototype.attachEvents=function(ti,tn,ts){var ta,tl=this;q(window).resize(function(){tl.mapSize(ti,tn,ts),clearTimeout(ta),ta=setTimeout(function(){if(tl.mapMarkers[ts].length>1&&tl.confData[ts].fitBounds){var q=L.featureGroup(tl.mapMarkers[ts]);tl.mapCenter(ts,q)}},250)})},ti.prototype.setupMap=function(ti,tn){tn.zoomControl||(ti.boxZoom.disable(),ti.doubleClickZoom.disable(),ti.keyboard.disable(),ti.scrollWheelZoom.disable(),ti.tap&&ti.tap.disable(),ti.touchZoom.disable(),q(".leaflet-control-zoom").css("visibility","hidden"))},ti.prototype.mapCenter=function(q,ti){var tn=this;tn.mapInstance[q].fitBounds(ti.getBounds().pad(.5)),tn.confData[q].alwaysShowInfoWindow&&tn.mapMarkers[q][tn.mapMarkers[q].length-1].isPopupOpen()&&!window.mapPopupTriggered&&(tn.mapMarkers[q][tn.mapMarkers[q].length-1].closePopup(),tn.mapMarkers[q][tn.mapMarkers[q].length-1].openPopup(),window.mapPopupTriggered=!0)},ti.prototype.mapSize=function(ti,tn,ts){var ta=this,tl=q(ti).parent();if(tn.autoFit){ta.confData[ts].isPle?td=tl.find(".map__wrap").outerHeight(!0):th=tl.children(".component__title-caption-wrap").outerHeight(!0),tl.css("height","100%");var th,td,tc=tl.height();ta.confData[ts].isPle||null===th?768>=q(window).width()&&null!==td&&(tc-=td):tc-=th,q(ti).css({width:tl.width(),height:tc}),q(ti).trigger("map.resize")}else q(ti).css({width:tn.width,height:tn.height})},ti.prototype.geocodeURL="https://nominatim.openstreetmap.org/search?[QUERY]&format=json&polygon=1&addressdetails=1&limit=1",ti.prototype.geolocateLocation=function(ti,tn,ts){var ta=this,tl=this.geocodeURL;
19tl=tl.replace("[QUERY]",ti.query),q.ajax({url:tl,dataType:"jsonp",jsonp:"json_callback",success:function(q){ta.applyData(q,tn,ts)}})},ti.prototype.searchByZipCode=function(ti,tn,ts,ta,tl){var th=this,td=this.geocodeURL;q("#location-zip").submit(function(ti){ti.preventDefault();var tc=q("#location-search").val();if(!tc||"Enter your zip code and state"==tc){alert("Please enter your current city or ZIP code.");return}td="https://nominatim.openstreetmap.org/search?q="+tc+"&format=json",q.ajax({url:td,dataType:"jsonp",jsonp:"json_callback",success:function(q){th.getDistance(q,tn,ts,ta,tl)}})})},ti.prototype.getDistance=function(ti,tn,ts,ta,tl){var th=this;if(th.markerTemp,0!==Object.keys(ti).length){var td=tn.locations,tc=ti[0].lat,tp=ti[0].lon,tu=new L.Icon({iconUrl:tn.assetsPath+"css/images/marker-icon-green.png",shadowUrl:tn.assetsPath+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),tf=L.marker([tc,tp],{icon:tu});tf.addTo(ts),void 0!==th.markerTemp&&(th.markerTemp.removeFrom(ts),this.mapMarkers[ta].pop(tf)),null!=tf&&(th.markerTemp=tf),this.mapMarkers[ta].push(tf),ts.closePopup();var tm=L.featureGroup(this.mapMarkers[ta]).addTo(ts);ts.fitBounds(tm.getBounds().pad(.5));for(var tg=0;tg<td.length;tg++)if(null!=td[tg].latitude&&null!=td[tg].longitude)for(var tv=Math.round(621371e-9*L.latLng([td[tg].latitude,td[tg].longitude]).distanceTo([tc,tp])),ty=q(".gmap-location b"),t_=q(".gmap-location .gmap-distance"),tb=0;tb<ty.length;tb++)-1!==ty[tb].innerText.indexOf(td[tg].title)&&(q(ty[tb]).closest(".gmap-location").data("distanceMiles",tv),tv=tv.toLocaleString(),t_.show(),t_[tb].innerHTML=tv+" mi");q(".gmap-location-list li").sort(function(ti,tn){return q(tn).data("distanceMiles")<q(ti).data("distanceMiles")?1:-1}).appendTo(".gmap-location-list"),tl=!0,q(".gmap-location-list li").first().children().trigger("click",[tl])}else{for(var ty=q(".gmap-location b"),tw=q(".map-search__location-distance > b"),t_=q(".gmap-location .gmap-distance"),tg=0;tg<t_.length;tg++)t_.show(),t_[tg].innerHTML=" -- mi";for(var tg=0;tg<tw.length;tg++)tw.show(),tw[tg].innerHTML=" -- mi";for(var tg=0;tg<ty.length;tg++)q(ty[tg]).closest(".gmap-location").data("distanceMiles","--")}},ti.prototype.applyData=function(ti,tn,ts,ta){var tl=this;if(ti.length>0){tl.selfCount[tn]=tl.selfCount[tn]||0;var th=ti[0],td=th.lat,tc=th.lon;tl.mapInstance[tn].setView([td,tc],tl.confData[tn].zoom,{animation:!0}),tl.selfCount[tn]++;var tp=[];tp.alt="Map Marker";var tu=tl.confData[tn].assetsPath;if(tl.confData[tn].iconUrl){var tf=tl.confData[tn].iconUrl,tm=new L.Icon({iconUrl:tf,shadowUrl:tu+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});tp.icon=tm}var tg=L.marker([td,tc],tp);if(tl.confData[tn].alwaysShowInfoWindow||tl.confData[tn].showAddressOnHover){var tv=th.display_name||null,ty=null;if("postcode"in th.address){var t_="house_number"in th.address?th.address.house_number:null;tv=""!=(ty=tl.getAddressForPostcode(tn,th.address.postcode,t_))?ty:tv}else th.address.name&&(tv=th.address.name);tv&&tg.bindPopup(tv)}if(tl.mapMarkers[tn]=tl.mapMarkers[tn]||[],tl.mapMarkers[tn].push(tg),tl.confData[tn].hue){var tb=tl.confData[tn].hue.stylers,tw=(tb[0].gama,tb[1].lightness,tb[2].hue);"none"!==tw&&(q(ts).css("background-color",tw),q("div.leaflet-tile-pane",ts).css("opacity","0.9"))}if(tl.selfCount[tn]>=tl.confData[tn].locations.length){var tx=L.featureGroup(tl.mapMarkers[tn]).addTo(tl.mapInstance[tn]);tl.mapMarkers[tn].length>1&&tl.confData[tn].fitBounds&&tl.mapCenter(tn,tx),tl.confData[tn].alwaysShowInfoWindow&&(tl.mapMarkers[tn][tl.mapMarkers[tn].length-1].closePopup(),tl.mapMarkers[tn][tl.mapMarkers[tn].length-1].openPopup())}}else console.log("No data found.")},q(document).ready(function(){window.webManagerMap=new ti,q(".map-a").length>0&&tn()})}(window.jQuery),function(q){"use strict";function ti(ti){ti.each(function(){q(this).find(".expander").each(function(){q(this).click(function(){"true"==q(this).attr("aria-expanded")?q(this).attr("aria-expanded","false"):q(this).attr("aria-expanded","true"),q(this).closest(".featuredblock__wrap").find("ul").slideToggle()})})})}q(document).ready(function(){q(".fbF_ShowMoreLess").click(function(){q(this).fadeOut(0).toggleClass("showMore").fadeIn(800),q(this).parent().find(".featuredblock.row").toggleClass("showMore")}),q(".featuredblock__description.nonPle p").addClass("featuredblock__description")}),q(window).load(function(){ti(q(".featuredblocks-flyup-a")),ti(q(".featuredblocks-flyup-b")),ti(q(".featuredblocks-flyup-c"))})}(window.jQuery),function(q){"use strict";var ti=!0,tn=10,ts="",ta=0,tl="",th=null,td="",tc=!1,tp={resize:1,click:1},tu=128,tf=!0,tm=1,tg="bodyOffset",tv=tg,ty=!0,t_="",tb={},tw=32,tx=null,tT=!1,tL="[iFrameSizer]",tC=tL.length,tS="",tP={max:1,min:1,bodyScroll:1,documentElementScroll:1},tk="child",tE=!0,tz=q.parent,tM="*",tI=0,tO=!1,tA=null,tB=16,t$=1,tj="scroll",tD=tj,tH=q,tN=function(){tQ("MessageCallback function not defined")},tW=function(){},tR=function(){};function tZ(ti,tn,ts){"addEventListener"in q?ti.addEventListener(tn,ts,!1):"attachEvent"in q&&ti.attachEvent("on"+tn,ts)}function tF(ti,tn,ts){"removeEventListener"in q?ti.removeEventListener(tn,ts,!1):"detachEvent"in q&&ti.detachEvent("on"+tn,ts)}function tq(q){return q.charAt(0).toUpperCase()+q.slice(1)}var tU=Date.now||function(){return new Date().getTime()};function tG(q){return tL+"["+tS+"] "+q}function tV(ti){tT&&"object"==typeof q.console&&console.log(tG(ti))}function tQ(ti){"object"==typeof q.console&&console.warn(tG(ti))}function tK(){tY(),tV("Initialising iFrame ("+location.href+")"),tX(),t1(),t0("background",ts),t0("padding",td),ea(),t4(),t8(),t2(),eh(),t7(),tb=er(),eT("init","Init message from host page"),tW()}function tY(){function q(q){return"true"===q}var tn=t_.substr(tC).split(":");tS=tn[0],ta=void 0!==tn[1]?Number(tn[1]):ta,tc=void 0!==tn[2]?q(tn[2]):tc,tT=void 0!==tn[3]?q(tn[3]):tT,tw=void 0!==tn[4]?Number(tn[4]):tw,ti=void 0!==tn[6]?q(tn[6]):ti,tl=tn[7],tv=void 0!==tn[8]?tn[8]:tv,ts=tn[9],td=tn[10],tI=void 0!==tn[11]?Number(tn[11]):tI,tb.enable=void 0!==tn[12]&&q(tn[12]),tk=void 0!==tn[13]?tn[13]:tk,tD=void 0!==tn[14]?tn[14]:tD}function tX(){function ti(){var ti=q.iFrameResizer;tV("Reading data from page: "+JSON.stringify(ti)),tN="messageCallback"in ti?ti.messageCallback:tN,tW="readyCallback"in ti?ti.readyCallback:tW,tM="targetOrigin"in ti?ti.targetOrigin:tM,tv="heightCalculationMethod"in ti?ti.heightCalculationMethod:tv,tD="widthCalculationMethod"in ti?ti.widthCalculationMethod:tD}"iFrameResizer"in q&&Object===q.iFrameResizer.constructor&&ti(),tV("TargetOrigin for parent set to: "+tM)}function tJ(q,ti){return -1!==ti.indexOf("-")&&(tQ("Negative CSS value ignored for "+q),ti=""),ti}function t0(q,ti){void 0!==ti&&""!==ti&&"null"!==ti&&(document.body.style[q]=ti,tV("Body "+q+' set to "'+ti+'"'))}function t1(){void 0===tl&&(tl=ta+"px"),t0("margin",tJ("margin",tl))}function t2(){document.documentElement.style.height="",document.body.style.height="",tV('HTML & body height set to "auto"')}function t3(ti){function tn(){eT(ti.eventName,ti.eventType)}var ts={add:function(ti){tZ(q,ti,tn)},remove:function(ti){tF(q,ti,tn)}};ti.eventNames&&Array.prototype.map?(ti.eventName=ti.eventNames[0],ti.eventNames.map(ts[ti.method])):ts[ti.method](ti.eventName),tV(tq(ti.method)+" event listener: "+ti.eventType)}function t5(q){t3({method:q,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),t3({method:q,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),t3({method:q,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),t3({method:q,eventType:"Input",eventName:"input"}),t3({method:q,eventType:"Mouse Up",eventName:"mouseup"}),t3({method:q,eventType:"Mouse Down",eventName:"mousedown"}),t3({method:q,eventType:"Orientation Change",eventName:"orientationchange"}),t3({method:q,eventType:"Print",eventName:["afterprint","beforeprint"]}),t3({method:q,eventType:"Ready State Change",eventName:"readystatechange"}),t3({method:q,eventType:"Touch Start",eventName:"touchstart"}),t3({method:q,eventType:"Touch End",eventName:"touchend"}),t3({method:q,eventType:"Touch Cancel",eventName:"touchcancel"}),t3({method:q,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),t3({method:q,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),t3({method:q,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
19),"child"===tk&&t3({method:q,eventType:"IFrame Resized",eventName:"resize"})}function t9(q,ti,tn,ts){return ti!==q&&(q in tn||(tQ(q+" is not a valid option for "+ts+"CalculationMethod."),q=ti),tV(ts+' calculation method set to "'+q+'"')),q}function t4(){tv=t9(tv,tg,eb,"height")}function t8(){tD=t9(tD,tj,ew,"width")}function t7(){!0===ti?(t5("add"),ep()):tV("Auto Resize disabled")}function t6(){tV("Disable outgoing messages"),tE=!1}function ei(){tV("Remove event listener: Message"),tF(q,"message",ek)}function en(){null!==th&&th.disconnect()}function eo(){t5("remove"),en(),clearInterval(tx)}function es(){t6(),ei(),!0===ti&&eo()}function ea(){var q=document.createElement("div");q.style.clear="both",q.style.display="block",document.body.appendChild(q)}function er(){function ti(){return{x:void 0!==q.pageXOffset?q.pageXOffset:document.documentElement.scrollLeft,y:void 0!==q.pageYOffset?q.pageYOffset:document.documentElement.scrollTop}}function tn(q){var tn=q.getBoundingClientRect(),ts=ti();return{x:parseInt(tn.left,10)+parseInt(ts.x,10),y:parseInt(tn.top,10)+parseInt(ts.y,10)}}function ts(q){function ti(q){var ti=tn(q);tV("Moving to in page link (#"+ts+") at x: "+ti.x+" y: "+ti.y),eP(ti.y,ti.x,"scrollToOffset")}var ts=q.split("#")[1]||q,ta=decodeURIComponent(ts),tl=document.getElementById(ta)||document.getElementsByName(ta)[0];void 0!==tl?ti(tl):(tV("In page link (#"+ts+") not found in iFrame, so sending to parent"),eP(0,0,"inPageLink","#"+ts))}function ta(){""!==location.hash&&"#"!==location.hash&&ts(location.href)}function tl(){function q(q){function ti(q){q.preventDefault(),ts(this.getAttribute("href"))}"#"!==q.getAttribute("href")&&tZ(q,"click",ti)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),q)}function th(){tZ(q,"hashchange",ta)}function td(){setTimeout(ta,tu)}function tc(){Array.prototype.forEach&&document.querySelectorAll?(tV("Setting up location.hash handlers"),tl(),th(),td()):tQ("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return tb.enable?tc():tV("In page linking not enabled"),{findTarget:ts}}function eh(){tV("Enable public methods"),tH.parentIFrame={autoResize:function(q){return!0===q&&!1===ti?(ti=!0,t7()):!1===q&&!0===ti&&(ti=!1,eo()),ti},close:function(){eP(0,0,"close"),es()},getId:function(){return tS},getPageInfo:function(q){"function"==typeof q?(tR=q,eP(0,0,"pageInfo")):(tR=function(){},eP(0,0,"pageInfoStop"))},moveToAnchor:function(q){tb.findTarget(q)},reset:function(){eS("parentIFrame.reset")},scrollTo:function(q,ti){eP(ti,q,"scrollTo")},scrollToOffset:function(q,ti){eP(ti,q,"scrollToOffset")},sendMessage:function(q,ti){eP(0,0,"message",JSON.stringify(q),ti)},setHeightCalculationMethod:function(q){tv=q,t4()},setWidthCalculationMethod:function(q){tD=q,t8()},setTargetOrigin:function(q){tV("Set targetOrigin: "+q),tM=q},size:function(q,ti){eT("size","parentIFrame.size("+(q||"")+(ti?","+ti:"")+")",q,ti)}}}function ed(){0!==tw&&(tV("setInterval: "+tw+"ms"),tx=setInterval(function(){eT("interval","setInterval: "+tw)},Math.abs(tw)))}function ec(){function ti(q){function ti(q){!1===q.complete&&(tV("Attach listeners to "+q.src),q.addEventListener("load",tl,!1),q.addEventListener("error",th,!1),tp.push(q))}"attributes"===q.type&&"src"===q.attributeName?ti(q.target):"childList"===q.type&&Array.prototype.forEach.call(q.target.querySelectorAll("img"),ti)}function tn(q){tp.splice(tp.indexOf(q),1)}function ts(q){tV("Remove listeners from "+q.src),q.removeEventListener("load",tl,!1),q.removeEventListener("error",th,!1),tn(q)}function ta(q,ti,tn){ts(q.target),eT(ti,tn+": "+q.target.src,void 0,void 0)}function tl(q){ta(q,"imageLoad","Image loaded")}function th(q){ta(q,"imageLoadFailed","Image load failed")}function td(q){eT("mutationObserver","mutationObserver: "+q[0].target+" "+q[0].type),q.forEach(ti)}function tc(){var q=document.querySelector("body"),ti={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return tf=new tu(td),tV("Create body MutationObserver"),tf.observe(q,ti),tf}var tp=[],tu=q.MutationObserver||q.WebKitMutationObserver,tf=tc();return{disconnect:function(){"disconnect"in tf&&(tV("Disconnect body MutationObserver"),tf.disconnect(),tp.forEach(ts))}}}function ep(){var ti=0>tw;q.MutationObserver||q.WebKitMutationObserver?ti?ed():th=ec():(tV("MutationObserver not supported in this browser!"),ed())}function eu(q,ti){function ts(q){if(/^\d+(px)?$/i.test(q))return parseInt(q,tn);var ts=ti.style.left,ta=ti.runtimeStyle.left;return ti.runtimeStyle.left=ti.currentStyle.left,ti.style.left=q||0,q=ti.style.pixelLeft,ti.style.left=ts,ti.runtimeStyle.left=ta,q}var ta=0;return ti=ti||document.body,parseInt(ta="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(ta=document.defaultView.getComputedStyle(ti,null))?ta[q]:0:ts(ti.currentStyle[q]),tn)}function ef(q){q>tB/2&&tV("Event throttle increased to "+(tB=2*q)+"ms")}function eg(q,ti){for(var tn=ti.length,ts=0,ta=0,tl=tq(q),th=tU(),td=0;td<tn;
19td++)(ts=ti[td].getBoundingClientRect()[q]+eu("margin"+tl,ti[td]))>ta&&(ta=ts);return th=tU()-th,tV("Parsed "+tn+" HTML elements"),tV("Element position calculated in "+th+"ms"),ef(th),ta}function ev(q){return[q.bodyOffset(),q.bodyScroll(),q.documentElementOffset(),q.documentElementScroll()]}function ey(q,ti){function tn(){return tQ("No tagged elements ("+ti+") found on page"),tm}var ts=document.querySelectorAll("["+ti+"]");return 0===ts.length?tn():eg(q,ts)}function e_(){return document.querySelectorAll("body *")}var eb={bodyOffset:function(){return document.body.offsetHeight+eu("marginTop")+eu("marginBottom")},offset:function(){return eb.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,ev(eb))},min:function(){return Math.min.apply(null,ev(eb))},grow:function(){return eb.max()},lowestElement:function(){return Math.max(eb.bodyOffset(),eg("bottom",e_()))},taggedElement:function(){return ey("bottom","data-iframe-height")}},ew={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(ew.bodyScroll(),ew.documentElementScroll())},max:function(){return Math.max.apply(null,ev(ew))},min:function(){return Math.min.apply(null,ev(ew))},rightMostElement:function(){return eg("right",e_())},taggedElement:function(){return ey("right","data-iframe-width")}},ex=function(q){var ti,tn,ts,ta=null,tl=0,th=function(){tl=tU(),ta=null,ts=q.apply(ti,tn),ta||(ti=tn=null)};return function(){var td=tU();tl||(tl=td);var tc=tB-(td-tl);return ti=this,tn=arguments,tc<=0||tc>tB?(ta&&(clearTimeout(ta),ta=null),tl=td,ts=q.apply(ti,tn),ta||(ti=tn=null)):ta||(ta=setTimeout(th,tc)),ts}}(function(q,ti,tn,ts){var ta,tl;function th(){eP(tm=ta,t$=tl,q)}function td(){return!(q in{init:1,interval:1,size:1})}function tp(){return tv in tP||tc&&tD in tP}function tu(){tV("No change in size detected")}function tf(){td()&&tp()?eS(ti):q in{interval:1}||tu()}(function(){function q(q,ti){return!(Math.abs(q-ti)<=tI)}return ta=void 0!==tn?tn:eb[tv](),tl=void 0!==ts?ts:ew[tD](),q(tm,ta)||tc&&q(t$,tl)})()||"init"===q?(eL(),th()):tf()});function eT(q,ti,tn,ts){function ta(){q in{reset:1,resetPage:1,init:1}||tV("Trigger event: "+ti)}(function(){return tO&&q in tp})()?tV("Trigger event cancelled: "+q):(ta(),ex(q,ti,tn,ts))}function eL(){tO||(tO=!0,tV("Trigger event lock on")),clearTimeout(tA),tA=setTimeout(function(){tO=!1,tV("Trigger event lock off"),tV("--")},tu)}function eC(q){tm=eb[tv](),t$=ew[tD](),eP(tm,t$,q)}function eS(q){var ti=tv;tv=tg,tV("Reset trigger event: "+q),eL(),eC("reset"),tv=ti}function eP(q,ti,tn,ts,ta){function tl(){void 0===ta?ta=tM:tV("Message targetOrigin: "+ta)}function th(){var tl=tS+":"+q+":"+ti+":"+tn+(void 0!==ts?":"+ts:"");tV("Sending message to host page ("+tl+")"),tz.postMessage(tL+tl,ta)}!0===tE&&(tl(),th())}function ek(ti){function tn(){t_=ti.data,tz=ti.source,tK(),tf=!1,setTimeout(function(){ty=!1},tu)}function ts(){ty?tV("Page reset ignored by init"):(tV("Page size reset by host page"),eC("resetPage"))}function ta(){eT("resizeParent","Parent window requested size check")}function tl(){var q=td();tb.findTarget(q)}function th(){return ti.data.split("]")[1].split(":")[0]}function td(){return ti.data.substr(ti.data.indexOf(":")+1)}function tc(){return"iFrameResize"in q}function tp(){var q=td();tV("MessageCallback called from parent: "+q),tN(JSON.parse(q)),tV(" --")}function tm(){var q=td();tV("PageInfoFromParent called from parent: "+q),tR(JSON.parse(q)),tV(" --")}function tg(){return ti.data.split(":")[2]in{true:1,false:1}}function tv(){switch(th()){case"reset":ts();break;case"resize":ta();break;case"moveToAnchor":tl();break;case"message":tp();break;case"pageInfo":tm();break;default:tc()||tg()||tQ("Unexpected message ("+ti.data+")")}}function tw(){!1===tf?tv():tg()?tn():tV('Ignored message of type "'+th()+'". Received before initialization.')}(function(){return tL===(""+ti.data).substr(0,tC)})()&&tw()}function eE(){"loading"!==document.readyState&&q.parent.postMessage("[iFrameResizerChild]Ready","*")}tZ(q,"message",ek),eE()}(window||{}),$(document).ready(function(){window.menuHolder=$(".navigation").not(".mm-menu"),window.menuHolderMaxWidth=100,window.menu=$(".more_nav").not(".mm-listview"),window.currentMenu=menu,window.currentMenuWidth=window.menuHolder.outerWidth(),window.menuChildrenCount=currentMenu.children().length,window.origMenuContent="",window.moreButton=$('
19<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'),window.allMenus=[]}),function(q){var ti=!1;if("function"==typeof define&&define.amd&&(define(q),ti=!0),"object"==typeof exports&&(module.exports=q(),ti=!0),!ti){var tn=window.Cookies,ts=window.Cookies=q();ts.noConflict=function(){return window.Cookies=tn,ts}}}(function(){function q(){for(var q=0,ti={};q<arguments.length;q++){var tn=arguments[q];for(var ts in tn)ti[ts]=tn[ts]}return ti}function ti(tn){function ts(ti,ta,tl){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(tl=q({path:"/"},ts.defaults,tl)).expires){var th,td=new Date;td.setMilliseconds(td.getMilliseconds()+864e5*tl.expires),tl.expires=td}try{th=JSON.stringify(ta),/^[\{\[]/.test(th)&&(ta=th)}catch(q){}return ta=tn.write?tn.write(ta,ti):encodeURIComponent(String(ta)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),ti=(ti=(ti=encodeURIComponent(String(ti))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[ti,"=",ta,tl.expires?"; expires="+tl.expires.toUTCString():"",tl.path?"; path="+tl.path:"",tl.domain?"; domain="+tl.domain:"",tl.secure?"; secure":""].join("")}ti||(th={});for(var tc=document.cookie?document.cookie.split("; "):[],tp=/(%[0-9A-Z]{2})+/g,tu=0;tu<tc.length;tu++){var tf=tc[tu].split("="),tm=tf.slice(1).join("=");'"'===tm.charAt(0)&&(tm=tm.slice(1,-1));try{var tg=tf[0].replace(tp,decodeURIComponent);if(tm=tn.read?tn.read(tm,tg):tn(tm,tg)||tm.replace(tp,decodeURIComponent),this.json)try{tm=JSON.parse(tm)}catch(q){}if(ti===tg){th=tm;break}ti||(th[tg]=tm)}catch(q){}}return th}}return ts.set=ts,ts.get=function(q){return ts.call(ts,q)},ts.getJSON=function(){return ts.apply({json:!0},[].slice.call(arguments))},ts.defaults={},ts.remove=function(ti,tn){ts(ti,"",q(tn,{expires:-1}))},ts.withConverter=ti,ts}return ti(function(){})}),$(()=>{"use strict";let q=document.querySelectorAll("#shapePnl a"),ti=({currentTarget:q})=>{let ti=q.classList.item(0),tn=q.parentElement.querySelectorAll(":scope > .selected");for(let q of tn)q.classList.remove("selected");q.classList.add("selected");let ts=document.querySelectorAll("#facePnl");for(let q of ts)q.setAttribute("class",ti);let ta=document.querySelectorAll(`#infoPnl div.${ti}`);for(let q of ta)for(let ti of q.parentElement.children)ti.style.display=ti===q?"block":"none"};for(let tn of q)tn.addEventListener("click",ti);let tn=document.querySelectorAll('#framePnl span[class*="frm"]'),ts=({currentTarget:q})=>{let ti=q.getAttribute("class"),tn=document.querySelectorAll("#framePnl a.selected");for(let q of tn)q.classList.remove("selected");q.parentElement.classList.add("selected");let ts=document.querySelectorAll("#lrgFrame");for(let q of ts)q.setAttribute("class",ti)};for(let q of tn)q.addEventListener("click",ts);let ta=720,tl=1,th=document.querySelectorAll("ul#frameSets li").length,td=document.querySelectorAll("a.prvSet"),tc=q=>{q.stopPropagation(),q.preventDefault();let ti=$("ul#frameSets li");if(tl>1){ti.animate({left:`+=${ta}px`},500),tl-=1;return}ti.animate({left:`-${(th-1)*ta}px`},500),tl=th};for(let q of td)q.addEventListener("click",tc);let tp=document.querySelectorAll("a.nxtSet"),tu=q=>{q.stopPropagation(),q.preventDefault();let ti=$("ul#frameSets li");if(tl<th){ti.animate({left:`-=${ta}px`},500),tl+=1;return}ti.animate({left:"0px"},500),tl=1};for(let q of tp)q.addEventListener("click",tu);let tf=document.querySelectorAll("a.lnchFrmSlctr"),tm=q=>{q.preventDefault(),q.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let q of tf)q.addEventListener("click",tm);let tg=document.querySelectorAll("button.lnch3dspine"),tv=q=>{q.stopPropagation(),q.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let q of tg)q.addEventListener("click",tv);let ty=document.querySelectorAll("button.lnchpetselector"),t_=q=>{q.preventDefault(),q.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let q of ty)q.addEventListener("click",t_)}),$(document).ready(function(){$(".preview_iframe").height($(window).height());var q=$("#navigation_header"),ti=q.parent(),tn=q.find("ul"),ts="sublevel-";if(navigationSublevelWrap(tn,ts),q.clone().attr("id","navigation--mobile").mmenu({extensions:["multiline"]}),1===$(".navigation").not(".mm-menu").data("more-button")){window.moreButton=$('
19<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>');var ta=$(".navigation").not(".mm-menu").find(".navigation__list").eq(0),tl="more_nav--active";ta.hasClass(tl)?ta.removeClass(tl):ta.addClass(tl)}function th(){window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),moreNav(),$(".navigation:not(.mm-menu) .navigation__list>li>div>ul").desktopDropNav(),$(".navigation:not(.mm-menu)").slideAccordion({activeClass:"open-close--active",opener:">a span.opener",slider:">div.slide",animSpeed:300}),$(".navigation:not(.mm-menu) > ul").dropdownFit({dropDown:">li>div>ul"}),$(".navigation:not(.mm-menu) .sublevel-1").each(function(){$(this).scrollArea({heightProp:"maxHeight",recalcOnPageScroll:!0,setScrollTo:"> .navigation__list--sub"})})}$("#hamburger").moveElement({place:ti}),$(".featuredblocks__list").sameHeight({elements:".featuredblock__title",useMinHeight:!0,flexible:!0,multiLine:!0}),$(".featuredblocks__list").sameHeight({elements:".featuredblock__description",useMinHeight:!0,flexible:!0,multiLine:!0}),$(".wrap__staff").find(".staff-member").each(function(){$(this).find($(".staff-member__prefix, .staff-member__name, .staff-member__suffix")).wrapAll('<div class="staff-member__heading" />')}),$(".testimonials__list .testimonials__item").each(function(){$(this).children().wrapAll("<div class='testimonials__group'>")}),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){$(".wrap__form.alt .leadForm").each(function(){var q=$(this);q.find(".wrap__group").length||q.find(".form__group").wrapAll("<div class='wrap__group'>")})}),$(".featuredblock__button").each(function(){var q=$(this),ti=q.find(".icon"),tn=q.find(".featuredblock__button-text");if(ti.length)return ti.remove(),tn.append(ti)}),1===$(".navigation").not(".mm-menu").data("more-button")&&(window.moreButton=$('<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>')),ResponsiveHelper.addRange({"1025..":{on:function(){1===$(".navigation").not(".mm-menu").data("more-button")&&(menuPrepare(),window.currentMenuWidth=window.menuHolder.outerWidth(),addMoreButton(),moreNav(),$(window).on("resize orientationchange",th)),$(".navigation:not(.mm-menu) .navigation__list>li>div>ul").desktopDropNav(),$(".navigation:not(.mm-menu)").slideAccordion({activeClass:"open-close--active",opener:">a span.opener",slider:">div.slide",animSpeed:300}),$(".navigation:not(.mm-menu) > ul").dropdownFit({dropDown:">li>div>ul"}),$("#navigation--mobile").data("mmenu").close(),$("body").fixedScrollBlock({fixedActiveClass:"fixed",slideBlock:".wrap__rotate-container--bottom",fixedOnlyIfFits:!1})},off:function(){1===$(".navigation").not(".mm-menu").data("more-button")&&$(window).off("resize orientationchange",th),$(".navigation:not(.mm-menu) > ul").data("dropdownFit").destroy(),setTimeout(function(){$(".navigation:not(.mm-menu) .sublevel-1").each(function(){void 0!==$(this).data("scrollArea")&&$(this).data("scrollArea").destroy()})},100),$("body").data("FixedScrollBlock").destroy()}},"..1024":{on:function(){$(".wrap__rotate-container--bottom, .wrap__header.interior").moveElement({place:"body"})},off:function(){void 0!==$(".wrap__rotate-container--bottom, .wrap__header.interior").data("moveElement")&&$(".wrap__rotate-container--bottom, .wrap__header.interior").data("moveElement").destroy(),void 0!==$(".office-info-map").data("moveElement")&&$(".office-info-map").data("moveElement").destroy()}},"768..":{on:function(){$(".form").length&&($("body").on("SMBLeadsFormReady",function(){$(".wrap__form.contact .leadForm, .wrap__form.appointment .leadForm").layoutContactForm()}),$(".wrap__form.contact .leadForm, .wrap__form.appointment .leadForm").layoutContactForm())},off:function(){$(".wrap__form.contact .leadForm, .wrap__form.appointment .leadForm").each(function(){void 0!==$(this).data("layoutContactForm")&&$(this).data("layoutContactForm").destroy()})}}})}),$(document).ready(function(){disableLinks(".wrap__page-content a, .wrap__editable-content a"),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){void 0!==$("body").data("FixedScrollBlock")&&$("body").data("FixedScrollBlock").refresh()}),setTimeout(function(){$("body").removeClass("mm-slideout mm-page")},1e3),$("a.dd-lightbox").fancybox()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.