vendor: 1,590 bytes, line 1
1!function(t){var e=!0;t.flexslider=function(n,o){var s=t(n);void 0===o.rtl&&"rtl"==t("html").attr("dir")&&(o.rtl=!0),s.vars=t.extend({},t.flexslider.defaults,o);var a,r=s.vars.namespace,l=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,h=("ontouchstart"in window||l||window.DocumentTouch&&document instanceof DocumentTouch)&&s.vars.touch,c="click touchend MSPointerUp keyup",d="",u="vertical"===s.vars.direction,p=s.vars.reverse,f=s.vars.itemWidth>0,m="fade"===s.vars.animation,g=""!==s.vars.asNavFor,v={};t.data(n,"flexslider",s),v={init:function(){if(s.animating=!1,s.currentSlide=parseInt(s.vars.startAt?s.vars.startAt:0,10),isNaN(s.currentSlide)&&(s.currentSlide=0),s.animatingTo=s.currentSlide,s.atEnd=0===s.currentSlide||s.currentSlide===s.last,s.containerSelector=s.vars.selector.substr(0,s.vars.selector.search(" ")),s.slides=t(s.vars.selector+":not(.clone)",s),s.container=t(s.containerSelector,s),s.count=s.slides.length,s.syncExists=t(s.vars.sync).length>0,"slide"===s.vars.animation&&(s.vars.animation="swing"),s.prop=u?"top":s.vars.rtl?"marginRight":"marginLeft",s.args={},s.manualPause=!1,s.stopped=!1,s.started=!1,s.startTimeout=null,s.transitions=!s.vars.video&&!m&&s.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in e)if(void 0!==t.style[e[n]])return s.pfx=e[n].replace("Perspective","").toLowerCase(),s.prop="-"+s.pfx+"-transform",!0;return!1}(),s.ensureAnimationEnd="",""!==s.vars.controlsContainer&&(s.controlsContainer=t(s.vars.c
1ontrolsContainer).length>0&&t(s.vars.controlsContainer)),""!==s.vars.manualControls&&(s.manualControls=t(s.vars.manualControls).length>0&&t(s.vars.manualControls)),""!==s.vars.customDirectionNav&&(s.customDirectionNav=2===t(s.vars.customDirectionNav).length&&t(s.vars.customDirectionNav)),s.vars.randomize&&s.count>2){var e=t.makeArray(s.slides),n=e.shift();e.sort(function(){return Math.round(Math.random())-.5}),e.unshift(n),s.slides=t(e),s.container.empty().append(s.slides)}s.doMath(),s.setup("init"),s.vars.controlNav&&v.controlNav.setup(),s.vars.directionNav&&v.directionNav.setup(),s.vars.keyboard&&(1===t(s.containerSelector).length||s.vars.multipleKeyboard)&&t(document).bind("keyup",function(t){var e=t.keyCode;if(!s.animating&&(39===e||37===e)){var n=s.vars.rtl?37===e?s.getTarget("next"):39===e&&s.getTarget("prev"):39===e?s.getTarget("next"):37===e&&s.getTarget("prev");s.flexAnimate(n,s.vars.pauseOnAction)}}),s.vars.mousewheel&&s.bind("mousewheel",function(t,e,n,o){t.preventDefault();var a=e<0?s.getTarget("next"):s.getTarget("prev");s.flexAnimate(a,s.vars.pauseOnAction)}),s.vars.pausePlay&&v.pausePlay.setup(),s.vars.slideshow&&s.vars.pauseInvisible&&v.pauseInvisible.init(),s.vars.slideshow&&(s.vars.pauseOnHover&&s.hover(function(){s.manualPlay||s.manualPause||s.pause()},function(){s.manualPause||s.manualPlay||s.stopped||s.play()}),s.vars.pauseInvisible&&v.pauseInvisible.isHidden()||(s.vars.initDelay>0?s.startTimeout=setTimeout(s.play,s.vars.initDelay):s.play())),g&&v.asNav.setup(),h&&s.vars.touch&&v.touch(),(!m||m&&s.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",v.resize),s.find("img").attr("draggable","false"),setTimeout(function(){s.vars.start(s)},200)},asNav:{setup:function(){s.asNav=!0,s.animatingTo=Math.floor(s.currentSlide/s.move),s.currentItem=s.currentSlide,s.slides.removeClass(r+"active-slide").eq(s.currentItem).addClass(r+"active-slide"),l?(n._slider=s,s.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var n=t(this),o=n.index();t(s.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(s.direction=s.currentItem<o?"next":"prev",s.flexAnimate(o,s.vars.pauseOnAction,!1,!0,!0))})})):s.slides.on(c,function(e){e.preventDefault();var n=t(this),o=n.index();(s.vars.rtl?-1*(n.offset().right-t(s).scrollLeft()):n.offset().left-t(s).scrollLeft())<=0&&n.hasClass(r+"active-slide")?s.flexAnimate(s.getTarget("prev"),!0):t(s.vars.asNavFor).data("flexslider").animating||n.hasClass(r+"active-slide")||(s.direction=s.currentItem<o?"next":"prev",s.flexAnimate(o,s.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){s.manualControls?v.controlNav.setupManual():v.controlNav.setupPaging()},setupPaging:function(){var e,n,o="thumbnails"===s.vars.controlNav?"control-thumbs":"control-paging",a=1;if(s.controlNavScaffold=t('<ol class="'+r+"control-nav "+r+o+'"></ol>'),s.pagingCount>1)for(var l=0;l<s.pagingCount;l++){void 0===(n=s.slides.eq(l)).attr("data-thumb-alt")&&n.attr("data-thumb-alt","");var h=""!==n.attr("data-thumb-alt")?h=' alt="'+n.attr("data-thumb-alt")+'"':"";if(e="thumbnails"===s.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"'+h+"/>":'<a href="#">'+a+"</a>","thumbnails"===s.vars.controlNav&&!0===s.vars.thumbCaptions){var u=n.attr("data-thumbcaption");""!==u&&void 0!==u&&(e+='<span class="'+r+'caption">'+u+"</span>")}s.controlNavScaffold.append("<li>"+e+"</li>"),a++}s.controlsContainer?t(s.controlsContainer).append(s.controlNavScaffold):s.append(s.controlNavScaffold),v.controlNav.set(),v.controlNav.active(),s.controlNavScaffold.delegate("a, img",c,function(e){if(e.preventDefault(),""===d||d===e.type){var n=t(this),o=s.controlNav.index(n);n.hasClass(r+"active")||(s.direction=o>s.currentSlide?"next":"prev",s.flexAnimate(o,s.vars.pauseOnAction))}""===d&&(d=e.type),v.setToClearWatchedEvent()})},setupManual:function(){s.controlNav=s.manualControls,v.controlNav.active(),s.controlNav.bind(c,function(e){if(e.preventDefault(),""===d||d===e.type){var n=t(this),o=s.controlNav.index(n);n.hasClass(r+"active")||(o>s.currentSlide?s.direction="next":s.direction="prev",s.flexAnimate(o,s.vars.pauseOnAction))}""===d&&(d=e.type),v.setToClearWatchedEvent()})}
vendor: 8,096 bytes, line 1
1,set:function(){var e="thumbnails"===s.vars.controlNav?"img":"a";s.controlNav=t("."+r+"control-nav li "+e,s.controlsContainer?s.controlsContainer:s)},active:function(){s.controlNav.removeClass(r+"active").eq(s.animatingTo).addClass(r+"active")},update:function(e,n){s.pagingCount>1&&"add"===e?s.controlNavScaffold.append(t('<li><a href="#">'+s.count+"</a></li>")):1===s.pagingCount?s.controlNavScaffold.find("li").remove():s.controlNav.eq(n).closest("li").remove(),v.controlNav.set(),s.pagingCount>1&&s.pagingCount!==s.controlNav.length?s.update(n,e):v.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+r+'direction-nav"><li class="'+r+'nav-prev"><a class="'+r+'prev" href="#">'+s.vars.prevText+'</a></li><li class="'+r+'nav-next"><a class="'+r+'next" href="#">'+s.vars.nextText+"</a></li></ul>");s.customDirectionNav?s.directionNav=s.customDirectionNav:s.controlsContainer?(t(s.controlsContainer).append(e),s.directionNav=t("."+r+"direction-nav li a",s.controlsContainer)):(s.append(e),s.directionNav=t("."+r+"direction-nav li a",s)),v.directionNav.update(),s.directionNav.bind(c,function(e){var n;e.preventDefault(),""!==d&&d!==e.type||(n=t(this).hasClass(r+"next")?s.getTarget("next"):s.getTarget("prev"),s.flexAnimate(n,s.vars.pauseOnAction)),""===d&&(d=e.type),v.setToClearWatchedEvent()})},update:function(){var t=r+"disabled";1===s.pagingCount?s.directionNav.addClass(t).attr("tabindex","-1"):s.vars.animationLoop?s.directionNav.removeClass(t).removeAttr("tabindex"):0===s.animatingTo?s.directionNav.removeClass(t).filter("."+r+"prev").addClass(t).attr("tabindex","-1"):s.animatingTo===s.last?s.directionNav.removeClass(t).filter("."+r+"next").addClass(t).attr("tabindex","-1"):s.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+r+'pauseplay"><a href="#"></a></div>');s.controlsContainer?(s.controlsContainer.append(e),s.pausePlay=t("."+r+"pauseplay a",s.controlsContainer)):(s.append(e),s.pausePlay=t("."+r+"pauseplay a",s)),v.pausePlay.update(s.vars.slideshow?r+"pause":r+"play"),s.pausePlay.bind(c,function(e){e.preventDefault(),""!==d&&d!==e.type||(t(this).hasClass(r+"pause")?(s.manualPause=!0,s.manualPlay=!1,s.pause()):(s.manualPause=!1,s.manualPlay=!0,s.play())),""===d&&(d=e.type),v.setToClearWatchedEvent()})},update:function(t){"play"===t?s.pausePlay.removeClass(r+"pause").addClass(r+"play").html(s.vars.playText):s.pausePlay.removeClass(r+"play").addClass(r+"pause").html(s.vars.pauseText)}},touch:function(){var t,e,o,a,r,h,c,d,g=!1,v=0,_=0,b=0;l?(n.style.msTouchAction="none",n._gesture=new MSGesture,n._gesture.target=n,n.addEventListener("MSPointerDown",function(t){t.stopPropagation(),s.animating?t.preventDefault():(s.pause(),n._gesture.addPointer(t.pointerId),b=0,a=u?s.h:s.w,h=Number(new Date),o=f&&p&&s.animatingTo===s.last?0:f&&p?s.limit-(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo:f&&s.currentSlide===s.last?s.limit:f?(s.itemW+s.vars.itemMargin)*s.move*s.currentSlide:p?(s.last-s.currentSlide+s.cloneOffset)*a:(s.currentSlide+s.cloneOffset)*a)},!1),n._slider=s,n.addEventListener("MSGestureChange",function(t){t.stopPropagation();var e=t.target._slider;if(e){var s=-t.translationX,l=-t.translationY;if(b+=u?l:s,r=(e.vars.rtl?-1:1)*b,g=u?Math.abs(b)<Math.abs(-s):Math.abs(b)<Math.abs(-l),t.detail===t.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){n._gesture.stop()});(!g||Number(new Date)-h>500)&&(t.preventDefault(),!m&&e.transitions&&(e.vars.animationLoop||(r=b/(0===e.currentSlide&&b<0||e.currentSlide===e.last&&b>0?Math.abs(b)/a+2:1)),e.setProps(o+r,"setTouch")))}},!1),n.addEventListener("MSGestureEnd",function(n){n.stopPropagation();var s=n.target._slider;if(s){if(s.animatingTo===s.currentSlide&&!g&&null!==r){var l=p?-r:r,c=l>0?s.getTarget("next"):s.getTarget("prev");s.canAdvance(c)&&(Number(new Date)-h<550&&Math.abs(l)>50||Math.abs(l)>a/2)?s.flexAnimate(c,s.vars.pauseOnAction):m||s.flexAnimate(s.currentSlide,s.vars.pauseOnAction,!0)}t=null,e=null,r=null,o=null,b=0}},!1)):(c=function(n){v=n.touches[0].pageX,_=n.touches[0].pageY,r=u?t-_:(s.vars.rtl?-1:1)*(t-v),(!(g=u?Math.abs(r)<Math.abs(v-e):Math.abs(r)<Math.abs(_-e))||Number(new Date)-h>500)&&(n.preventDefault(),!m&&s.transitions&&(s.vars.animationLoop||(r/=0===s.currentSlide&&r<0||s.currentSlide===s.last&&r>0?Math.abs(r)/a+2:1),s.setProps(o+r,"setTouch")))},d=function(l){if(n.removeEventListener("touchmove",c,!1),s.animatingTo===s.currentSlide&&!g&&null!==r){var u=p?-r:r,f=u>0?s.getTarget("next"):s.getTarget("prev");s.canAdvance(f)&&(Number(new Date)-h<550&&Math.abs(u)>50||Math.abs(u)>a/2)?s.flexAnimate(f,s.vars.pauseOnAction):m||s.flexAnimate(s.currentSlide,s.vars.pauseOnAction,!0)}n.removeEventListener("touchend",d,!1),t=null,e=null,r=null,o=null},n.addEventListener("touchstart",function(r){s.animating?r.preventDefault():(window.navigator.msPointerEnabled||1===r.touches.length)&&(s.pause(),a=u?s.h:s.w,h=Number(new Date),v=r.touches[0].pageX,_=r.touches[0].pageY,o=f&&p&&s.animatingTo===s.last?0:f&&p?s.limit-(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo:f&&s.currentSlide===s.last?s.limit:f?(s.itemW+s.vars.itemMargin)*s.move*s.currentSlide:p?(s.last-s.currentSlide+s.cloneOffset)*a:(s.currentSlide+s.cloneOffset)*a,t=u?_:v,e=u?v:_,n.addEventListener("touchmove",c,!1),n.addEventListener("touchend",d,!1))},!1))},resize:function(){!s.animating&&s.is(":visible")&&(f||s.doMath(),m?v.smoothHeight():f?(s.slides.width(s.computedW),s.update(s.pagingCount),s.setProps()):u?(s.viewport.height(s.h),s.setProps(s.h,"setTotal")):(s.vars.smoothHeight&&v.smoothHeight(),s.newSlides.width(s.computedW),s.setProps(s.computedW,"setTotal")))},smoothHeight:function(t){if(!u||m){var e=m?s:s.viewport;t?e.animate({height:s.slides.eq(s.animatingTo).innerHeight()},t):e.innerHeight(s.slides.eq(s.animatingTo).innerHeight())}},sync:function(e){var n=t(s.vars.sync).data("flexslider"),o=s.animatingTo;switch(e){case"animate":n.flexAnimate(o,s.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var t=v.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){v.pauseInvisible.isHidden()?s.startTimeout?clearTimeout(s.startTimeout):s.pause():s.started?s.play():s.vars.initDelay>0?setTimeout(s.play,s.vars.initDelay):s.play()})}},isHidden:function(){var t=v.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden" in document)return t[e]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(a),a=setTimeout(function(){d=""},3e3)}},s.flexAnimate=function(e,n,o,a,l){if(s.vars.animationLoop||e===s.currentSlide||(s.direction=e>s.currentSlide?"next":"prev"),g&&1===s.pagingCount&&(s.direction=s.currentItem<e?"next":"prev"),!s.animating&&(s.canAdvance(e,l)||o)&&s.is(":visible")){if(g&&a){var c=t(s.vars.asNavFor).data("flexslider");if(s.atEnd=0===e||e===s.count-1,c.flexAnimate(e,!0,!1,!0,l),s.direction=s.currentItem<e?"next":"prev",c.direction=s.direction,Math.ceil((e+1)/s.visible)-1===s.currentSlide||0===e)return s.currentItem=e,s.slides.removeClass(r+"active-slide").eq(e).addClass(r+"active-slide"),!1;s.currentItem=e,s.slides.removeClass(r+"active-slide").eq(e).addClass(r+"active-slide"),e=Math.floor(e/s.visible)}if(s.animating=!0,s.animatingTo=e,n&&s.pause(),s.vars.before(s),s.syncExists&&!l&&v.sync("animate"),s.vars.controlNav&&v.controlNav.active(),f||s.slides.removeClass(r+"active-slide").eq(e).addClass(r+"active-slide"),s.atEnd=0===e||e===s.last,s.vars.directionNav&&v.directionNav.update(),e===s.last&&(s.vars.end(s),s.vars.animationLoop||s.pause()),m)h?(s.slides.eq(s.currentSlide).css({opacity:0,zIndex:1}),s.slides.eq(e).css({opacity:1,zIndex:2}),s.wrapup(y)):(s.slides.eq(s.currentSlide).css({zIndex:1}).animate({opacity:0}
1,s.vars.animationSpeed,s.vars.easing),s.slides.eq(e).css({zIndex:2}).animate({opacity:1},s.vars.animationSpeed,s.vars.easing,s.wrapup));else{var d,_,b,y=u?s.slides.filter(":first").height():s.computedW;f?(d=s.vars.itemMargin,_=(b=(s.itemW+d)*s.move*s.animatingTo)>s.limit&&1!==s.visible?s.limit:b):_=0===s.currentSlide&&e===s.count-1&&s.vars.animationLoop&&"next"!==s.direction?p?(s.count+s.cloneOffset)*y:0:s.currentSlide===s.last&&0===e&&s.vars.animationLoop&&"prev"!==s.direction?p?0:(s.count+1)*y:p?(s.count-1-e+s.cloneOffset)*y:(e+s.cloneOffset)*y,s.setProps(_,"",s.vars.animationSpeed),s.transitions?(s.vars.animationLoop&&s.atEnd||(s.animating=!1,s.currentSlide=s.animatingTo),s.container.unbind("webkitTransitionEnd transitionend"),s.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(s.ensureAnimationEnd),s.wrapup(y)}),clearTimeout(s.ensureAnimationEnd),s.ensureAnimationEnd=setTimeout(function(){s.wrapup(y)},s.vars.animationSpeed+100)):s.container.animate(s.args,s.vars.animationSpeed,s.vars.easing,function(){s.wrapup(y)})}s.vars.smoothHeight&&v.smoothHeight(s.vars.animationSpeed)}},s.wrapup=function(t){m||f||(0===s.currentSlide&&s.animatingTo===s.last&&s.vars.animationLoop?s.setProps(t,"jumpEnd"):s.currentSlide===s.last&&0===s.animatingTo&&s.vars.animationLoop&&s.setProps(t,"jumpStart")),s.animating=!1,s.currentSlide=s.animatingTo,s.vars.after(s)},s.animateSlides=function(){!s.animating&&e&&s.flexAnimate(s.getTarget("next"))},s.pause=function(){clearInterval(s.animatedSlides),s.animatedSlides=null,s.playing=!1,s.vars.pausePlay&&v.pausePlay.update("play"),s.syncExists&&v.sync("pause")},s.play=function(){s.playing&&clearInterval(s.animatedSlides),s.animatedSlides=s.animatedSlides||setInterval(s.animateSlides,s.vars.slideshowSpeed),s.started=s.playing=!0,s.vars.pausePlay&&v.pausePlay.update("pause"),s.syncExists&&v.sync("play")},s.stop=function(){s.pause(),s.stopped=!0},s.canAdvance=function(t,e){var n=g?s.pagingCount-1:s.last;return!!e||!(!g||s.currentItem!==s.count-1||0!==t||"prev"!==s.direction)||(!g||0!==s.currentItem||t!==s.pagingCount-1||"next"===s.direction)&&!(t===s.currentSlide&&!g)&&(!!s.vars.animationLoop||(!s.atEnd||0!==s.currentSlide||t!==n||"next"===s.direction)&&(!s.atEnd||s.currentSlide!==n||0!==t||"next"!==s.direction))},s.getTarget=function(t){return s.direction=t,"next"===t?s.currentSlide===s.last?0:s.currentSlide+1:0===s.currentSlide?s.last:s.currentSlide-1},s.setProps=function(t,e,n){var o,a=(o=t||(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo,function(){if(f)return"setTouch"===e?t:p&&s.animatingTo===s.last?0:p?s.limit-(s.itemW+s.vars.itemMargin)*s.move*s.animatingTo:s.animatingTo===s.last?s.limit:o;switch(e){case"setTotal":return p?(s.count-1-s.currentSlide+s.cloneOffset)*t:(s.currentSlide+s.cloneOffset)*t;case"setTouch":default:return t;case"jumpEnd":return p?t:s.count*t;case"jumpStart":return p?s.count*t:t}}()*(s.vars.rtl?1:-1)+"px");s.transitions&&(a=u?"translate3d(0,"+a+",0)":"translate3d("+(s.vars.rtl?-1:1)*parseInt(a)+"px,0,0)",n=void 0!==n?n/1e3+"s":"0s",s.container.css("-"+s.pfx+"-transition-duration",n),s.container.css("transition-duration",n)),s.args[s.prop]=a,(s.transitions||void 0===n)&&s.container.css(s.args),s.container.css("transform",a)},s.setup=function(e){var n,o;m?(s.vars.rtl?s.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):s.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(h?s.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+s.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(s.currentSlide).css({opacity:1,zIndex:2}):0==s.vars.fadeFirstSlide?s.slides.css({opacity:0,display:"block",zIndex:1}).eq(s.currentSlide).css({zIndex:2}).css({opacity:1}):s.slides.css({opacity:0,display:"block",zIndex:1}).eq(s.currentSlide).css({zIndex:2}).animate({opacity:1},s.vars.animationSpeed,s.vars.easing)),s.vars.smoothHeight&&v.smoothHeight()):("init"===e&&(s.viewport=s.find("."+r+"viewport"),s.viewport.length||(s.viewport=t('<div class="'+r+'viewport"></div>').appendTo(s).append(s.container)),s.viewport.css({overflow:"hidden",position:"relative"}),s.cloneCount=0,s.cloneOffset=0,p&&(o=t.makeArray(s.slides).reverse(),s.slides=t(o),s.container.empty().append(s.slides))),s.vars.animationLoop&&!f&&(s.cloneCount=2,s.cloneOffset=1,"init"!==e&&s.container.find(".clone").remove(),2!==s.container.find(".clone").length&&s.c
1ontainer.append(v.uniqueID(s.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(v.uniqueID(s.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),s.newSlides=t(s.vars.selector,s),n=p?s.count-1-s.currentSlide+s.cloneOffset:s.currentSlide+s.cloneOffset,u&&!f?(s.container.height(200*(s.count+s.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){s.newSlides.css({display:"block"}),s.doMath(),s.viewport.height(s.h),s.setProps(n*s.h,"init")},"init"===e?100:0)):(s.container.width(200*(s.count+s.cloneCount)+"%"),s.setProps(n*s.computedW,"init"),setTimeout(function(){s.doMath(),s.vars.rtl,s.newSlides.css({width:s.computedW,marginRight:s.computedM,float:"left",display:"block"}),s.vars.smoothHeight&&v.smoothHeight()},"init"===e?100:0))),f||s.slides.removeClass(r+"active-slide").eq(s.currentSlide).addClass(r+"active-slide"),s.vars.init(s)},s.doMath=function(){var t=s.slides.first(),e=s.vars.itemMargin,n=s.vars.minItems,o=s.vars.maxItems;s.w=void 0===s.viewport?s.width():s.viewport.width(),s.h=t.height(),s.boxPadding=t.outerWidth()-t.width(),f?(s.itemT=s.vars.itemWidth+e,s.itemM=e,s.minW=n?n*s.itemT:s.w,s.maxW=o?o*s.itemT-e:s.w,s.itemW=s.minW>s.w?(s.w-e*(n-1))/n:s.maxW<s.w?(s.w-e*(o-1))/o:s.vars.itemWidth>s.w?s.w:s.vars.itemWidth,s.visible=Math.floor(s.w/s.itemW),s.move=s.vars.move>0&&s.vars.move<s.visible?s.vars.move:s.visible,s.pagingCount=Math.ceil((s.count-s.visible)/s.move+1),s.last=s.pagingCount-1,s.limit=1===s.pagingCount?0:s.vars.itemWidth>s.w?s.itemW*(s.count-1)+e*(s.count-1):(s.itemW+e)*s.count-s.w-e):(s.itemW=s.w,s.itemM=e,s.pagingCount=s.count,s.last=s.count-1),s.computedW=s.itemW-s.boxPadding,s.computedM=s.itemM},s.update=function(t,e){s.doMath(),f||(t<s.currentSlide?s.currentSlide+=1:t<=s.currentSlide&&0!==t&&(s.currentSlide-=1),s.animatingTo=s.currentSlide),s.vars.controlNav&&!s.manualControls&&("add"===e&&!f||s.pagingCount>s.controlNav.length?v.controlNav.update("add"):("remove"===e&&!f||s.pagingCount<s.controlNav.length)&&(f&&s.currentSlide>s.last&&(s.currentSlide-=1,s.animatingTo-=1),v.controlNav.update("remove",s.last))),s.vars.directionNav&&v.directionNav.update()},s.addSlide=function(e,n){var o=t(e);s.count+=1,s.last=s.count-1,u&&p?void 0!==n?s.slides.eq(s.count-n).after(o):s.container.prepend(o):void 0!==n?s.slides.eq(n).before(o):s.container.append(o),s.update(n,"add"),s.slides=t(s.vars.selector+":not(.clone)",s),s.setup(),s.vars.added(s)},s.removeSlide=function(e){var n=isNaN(e)?s.slides.index(t(e)):e;s.count-=1,s.last=s.count-1,isNaN(e)?t(e,s.slides).remove():u&&p?s.slides.eq(s.last).remove():s.slides.eq(e).remove(),s.doMath(),s.update(n,"remove"),s.slides=t(s.vars.selector+":not(.clone)",s),s.setup(),s.vars.removed(s)},v.init()},t(window).blur(function(t){e=!1}).focus(function(t){e=!0}),t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var n=t(this),o=(e.selector,".slides > li"),s=n.find(o);e.selector=".slides > li",1===s.length&&!1===e.allowOneSlide||0===s.length?(s.fadeIn(400),e.start&&e.start(n)):void 0===n.data("flexslider")&&new t.flexslider(this,e)});var n=t(this).data("flexslider");switch(e){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:"number"==typeof e&&n.flexAnimate(e,!0)}}}(jQuery),function(t){var e,n,o,s,a="mmenu",r="5.6.4";t[a]&&t[a].version>r||(t[a]=function(t,e,n){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=n,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var o=this.$pnls.children();return this._initAddons(),this.init(o),"function"==typeof this.___debug&&this.___debug(),this},t[a].version=r,t[a].addons={},t[a].uniqueId=0,t[a].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[a].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[a].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(n){var o=n.parent(),s=this;if(o.hasClass(e.vertical)){var r=o.parents("."+e.subopened);
1if(r.length)return void this.openPanel(r.first());o.addClass(e.opened),this.trigger("openPanel",n),this.trigger("openingPanel",n),this.trigger("openedPanel",n)}else{if(n.hasClass(e.current))return;var l=this.$pnls.children("."+e.panel),h=l.filter("."+e.current);l.removeClass(e.highest).removeClass(e.current).not(n).not(h).not("."+e.vertical).addClass(e.hidden),t[a].support.csstransitions||h.addClass(e.hidden),n.hasClass(e.opened)?n.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(n.addClass(e.highest),h.addClass(e.subopened)),n.removeClass(e.hidden).addClass(e.current),s.trigger("openPanel",n),setTimeout(function(){n.removeClass(e.subopened).addClass(e.opened),s.trigger("openingPanel",n),s.__transitionend(n,function(){s.trigger("openedPanel",n)},s.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&(n.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var n=t.parent();n.hasClass(e.vertical)&&this[n.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var n=0,o=this.cbck[e].length;o>n;n++)this.cbck[e][n].apply(this,t)},_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(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var n=[e.menu];this.opts.slidingSubmenus||n.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&n.push(this.opts.extensions),this.$menu.addClass(n.join(" "))},_initPanels:function(o){var s=this,a=this.__findAddBack(o,"ul, ol");this.__refactorClass(a,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),a.not("."+e.nolistview).addClass(e.listview);var r=this.__findAddBack(o,"."+e.listview).children();this.__refactorClass(r,this.conf.classNames.selected,"selected"),this.__refactorClass(r,this.conf.classNames.divider,"divider"),this.__refactorClass(r,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(o,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var l=t(),h=o.add(o.find("."+e.panel)).add(this.__findAddBack(o,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(h,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||h.addClass(e.vertical),h.each(function(){var n=t(this),o=n;n.is("ul, ol")?(n.wrap('<div class="'+e.panel+'" />'),o=n.parent()):o.addClass(e.panel);var a=n.attr("id");n.removeAttr("id"),o.attr("id",a||s.__getUniqueId()),n.hasClass(e.vertical)&&(n.removeClass(s.conf.classNames.vertical),o.add(o.parent()).addClass(e.vertical)),l=l.add(o)});var c=t("."+e.panel,this.$menu);l.each(function(o){var a,r,l=t(this),h=l.parent(),c=h.children("a, span").first();if(h.is("."+e.panels)||(h.data(n.sub,l),l.data(n.parent,h)),h.children("."+e.next).length||h.parent().is("."+e.listview)&&(a=l.attr("id"),r=t('<a class="'+e.next+'" href="#'+a+'" data-target="#'+a+'" />').insertBefore(c),c.is("span")&&r.addClass(e.fullsubopen)),!l.children("."+e.navbar).length&&!h.hasClass(e.vertical)){h=h.parent().is("."+e.listview)?h.closest("."+e.panel):(c=h.closest("."+e.panel).find('a[href="#'+l.attr("id")+'"]').first()).closest("."+e.panel);var d=!1,u=t('<div class="'+e.navbar+'" />');if(h.length){switch(a=h.attr("id"),s.opts.navbar.titleLink){case"anchor":d=c.attr("href");break;case"panel":case"parent":d="#"+a;break;default:d=!1}u.append('<a class="'+e.btn+" "+e.prev+'" href="#'+a+'" data-target="#'+a+'" />').append(t('<a class="'+e.title+'"'+(d?' href="'+d+'"':"")+" />").text(c.text())).prependTo(l),s.opts.navbar.add&&l.addClass(e.hasnavbar)}else s.opts.navbar.title&&(u.append('<a class="'+e.title+'">'+s.opts.navbar.title+"</a>").prependTo(l),s.opts.navbar.add&&l.addClass(e.hasnavbar))}});var d=this.__findAddBack(o,"."+e.listview).children("."+e.selected).removeClass(e.selected).last(
1).addClass(e.selected);d.add(d.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),d.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var u=c.filter("."+e.opened);return u.length||(u=l.first()),u.addClass(e.opened).last().addClass(e.current),l.not("."+e.vertical).not(u.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),l},_initAnchors:function(){var n=this;s.$body.on(o.click+"-oncanvas","a[href]",function(o){var s=t(this),r=!1,l=n.$menu.find(s).length;for(var h in t[a].addons)if(t[a].addons[h].clickAnchor.call(n,s,l)){r=!0;break}var c=s.attr("href");if(!r&&l&&c.length>1&&"#"==c.slice(0,1))try{var d=t(c,n.$menu);d.is("."+e.panel)&&(r=!0,n[s.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](d))}catch(t){}if(r&&o.preventDefault(),!r&&l&&s.is("."+e.listview+" > li > a")&&!s.is('[rel="external"]')&&!s.is('[target="_blank"]')){n.__valueOrFn(n.opts.onClick.setSelected,s)&&n.setSelected(t(o.target).parent());var u=n.__valueOrFn(n.opts.onClick.preventDefault,s,"#"==c.slice(0,1));u&&o.preventDefault(),n.__valueOrFn(n.opts.onClick.close,s,u)&&n.close()}})},_initAddons:function(){var e;for(e in t[a].addons)t[a].addons[e].add.call(this),t[a].addons[e].add=function(){};for(e in t[a].addons)t[a].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,n={};return t.each(this._api,function(t){var o=this;n[o]=function(){var t=e[o].apply(e,arguments);return void 0===t?n:t}}),n},__valueOrFn:function(t,e,n){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==n?n:t},__refactorClass:function(t,n,o){return t.filter("."+n).removeClass(n).addClass(e[o])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,n){var s=!1,a=function(){s||e.call(t[0]),s=!0};t.one(o.transitionend,a),t.one(o.webkitTransitionEnd,a),setTimeout(a,1.1*n)},__getUniqueId:function(){return e.mm(t[a].uniqueId++)}},t.fn[a]=function(r,l){return t[a].glbl||(s={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},n={},o={},t.each([e,n,o],function(t,e){e.add=function(t){t=t.split(" ");for(var n=0,o=t.length;o>n;n++)e[t[n]]=e.mm(t[n])}}),e.mm=function(t){return"mm-"+t},e.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"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
1slice(3)),t},n.mm=function(t){return"mm-"+t},n.add("parent sub"),o.mm=function(t){return t+".mm"},o.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[a]._c=e,t[a]._d=n,t[a]._e=o,t[a].glbl=s),r=t.extend(!0,{},t[a].defaults,r),l=t.extend(!0,{},t[a].configuration,l),this.each(function(){var e=t(this);if(!e.data(a)){var n=new t[a](e,r,l);n.$menu.data(a,n.__api())}})},t[a].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var n=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var o=0;o<n.length;o++)if("string"==typeof t[n[o]+e])return!0;return!1}()})}(jQuery),function(t){var e,n,o,s,a="mmenu",r="offCanvas";t[a].addons[r]={setup:function(){if(this.opts[r]){var n=this.opts[r],o=this.conf[r];s=t[a].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==n.position||"bottom"==n.position)&&(n.zposition="front"),"string"!=typeof o.pageSelector&&(o.pageSelector="> "+o.pageNodetype),s.$allMenus=(s.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var l=[e.offcanvas];"left"!=n.position&&l.push(e.mm(n.position)),"back"!=n.zposition&&l.push(e.mm(n.zposition)),this.$menu.addClass(l.join(" ")).parent().removeClass(e.wrapper),this.setPage(s.$page),this._initBlocker(),this["_initWindow_"+r](),this.$menu[o.menuInjectMethod+"To"](o.menuWrapperSelector);var h=window.location.hash;if(h){var c=this._getOriginalMenuId();c&&c==h.slice(1)&&this.open()}}},add:function(){e=t[a]._c,n=t[a]._d,o=t[a]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),n.add("style"),o.add("resize")},clickAnchor:function(t,e){if(!this.opts[r])return!1;var n=this._getOriginalMenuId();return n&&t.is('[href="#'+n+'"]')?(this.open(),!0):s.$page?!!((n=s.$page.first().attr("id"))&&t.is('[href="#'+n+'"]'))&&(this.close(),!0):void 0}},t[a].defaults[r]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[a].configuration[r]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[a].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[a].prototype._openSetup=function(){var a=this,l=this.opts[r];this.closeAllOthers(),s.$page.each(function(){t(this).data(n.style,t(this).attr("style")||"")}),s.$wndw.trigger(o.resize+"-"+r,[!0]);var h=[e.opened];l.blockUI&&h.push(e.blocking),"modal"==l.blockUI&&h.push(e.modal),l.moveBackground&&h.push(e.background),"left"!=l.position&&h.push(e.mm(this.opts[r].position)),"back"!=l.zposition&&h.push(e.mm(this.opts[r].zposition)),this.opts.extensions&&h.push(this.opts.extensions),s.$html.addClass(h.join(" ")),setTimeout(function(){a.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[a].prototype._openFinish=function(){var t=this;this.__transitionend(s.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),s.$html.addClass(e.opening),this.trigger("opening")},t[a].prototype.close=function(){if(this.vars.opened){var o=this;this.__transitionend(s.$page.first(),function(){o.$menu.removeClass(e.current).removeClass(e.opened),s.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(o.opts[r].position)).removeClass(e.mm(o.opts[r].zposition)),o.opts.extensions&&s.$html.removeClass(o.opts.extensions),s.$page.each(function(){t(this).attr("style",t(this).data(n.style))}),o.vars.opened=!1,o.trigger("closed")},this.conf.transitionDuration),s.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[a].prototype.closeAllOthers=function(){s.$allMenus.not(this.$menu).each(function(){var e=t(this).data(a);e&&e.close&&e.close()})},t[a].prototype.setPage=function(n){var o=this,a=this.conf[r];n&&n.length||(n=s.$body.find(a.pageSelector),a.noPageSelector.length&&(n=n.not(a.noPageSelector.join(", "))),n.length>1&&a.wrapPageIfNeeded&&(n=n.wrapAll("<"+this.conf[r].pageNodetype+" />").parent())),n.each(function(){t(this).attr("id",t(this).attr("id")||o.__getUniqueId())}),n.addClass(e.page+" "+e.slideout),s.$page=n,this.trigger("setPage",n)},t[a].prototype["_initWindow_"+r]=function(){s.$wndw.off(o.keydown+"-"+r).on(o.keydown+"-"+r,function(t){return s.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;s.$wndw.off(o.resize+"-"+r).on(o.resize+"-"+r,function(n,o){if(1==s.$page.length&&(o||s.$html.hasClass(e.opened))){var a=s.$wndw.height();(o||a!=t)&&(t=a,s.$page.css("minHeight",a))}})},t[a].prototype._initBlocker=function(){var n=this;this.opts[r].blockUI&&(s.$blck||(s.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),s.$blck.appendTo(s.$body).off(o.touchstart+"-"+r+" "+o.touchmove+"-"+r).on(o.touchstart+"-"+r+" "+o.touchmove+"-"+r,function(t){t.preventDefault(),t.stopPropagation(),s.$blck.trigger(o.mousedown+"-"+r)}).off(o.mousedown+"-"+r).on(o.mousedown+"-"+r,function(t){t.preventDefault(),s.$html.hasClass(e.modal)||(n.closeAllOthers(),n.close())}))}}(jQuery),function(t){var e,n,o,s="mmenu",a="scrollBugFix";t[s].addons[a]={setup:function(){var r=this,l=this.opts[a];
1if(this.conf[a],o=t[s].glbl,t[s].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof l&&(l={fix:l}),"object"!=typeof l&&(l={}),(l=this.opts[a]=t.extend(!0,{},t[s].defaults[a],l)).fix)){var h=this.$menu.attr("id"),c=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),o.$docu.on(n.touchmove,function(t){r.vars.opened&&t.preventDefault()}),o.$body.on(n.touchstart,"#"+h+"> ."+e.panels+"> ."+e.current,function(t){r.vars.opened&&(c||(c=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),c=!1))}).on(n.touchmove,"#"+h+"> ."+e.panels+"> ."+e.current,function(e){r.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),o.$wndw.on(n.orientationchange,function(){r.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[s]._c,t[s]._d,n=t[s]._e},clickAnchor:function(t,e){}},t[s].defaults[a]={fix:!0}}(jQuery),function(t){var e,n,o="mmenu",s="autoHeight";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var n=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof n&&n&&(n={height:"auto"}),"string"==typeof n&&(n={height:n}),"object"!=typeof n&&(n={}),"auto"==(n=this.opts[s]=t.extend(!0,{},t[o].defaults[s],n)).height||"highest"==n.height){this.$menu.addClass(e.autoheight);var a=function(o){if(this.vars.opened){var s=parseInt(this.$pnls.css("top"),10)||0,a=parseInt(this.$pnls.css("bottom"),10)||0,r=0;this.$menu.addClass(e.measureheight),"auto"==n.height?((o=o||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(o=o.parents("."+e.panel).not("."+e.vertical).first()),r=o.outerHeight()):"highest"==n.height&&this.$pnls.children().each(function(){var n=t(this);n.is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),r=Math.max(r,n.outerHeight())}),this.$menu.height(r+s+a).removeClass(e.measureheight)}};this.bind("opening",a),"highest"==n.height&&this.bind("init",a),"auto"==n.height&&(this.bind("update",a),this.bind("openPanel",a),this.bind("closePanel",a))}}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("autoheight measureheight"),n.add("resize")},clickAnchor:function(t,e){}},t[o].defaults[s]={height:"default"}}(jQuery),function(t){var e,n,o="mmenu",s="backButton";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var a=this,r=this.opts[s];if(this.conf[s],n=t[o].glbl,"boolean"==typeof r&&(r={close:r}),"object"!=typeof r&&(r={}),(r=t.extend(!0,{},t[o].defaults[s],r)).close){var l="#"+a.$menu.attr("id");this.bind("opened",function(t){location.hash!=l&&history.pushState(null,document.title,l)}),t(window).on("popstate",function(t){n.$html.hasClass(e.opened)?(t.stopPropagation(),a.close()):location.hash==l&&(t.stopPropagation(),a.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[o]._c,t[o]._d,void t[o]._e):void(t[o].addons[s].setup=function(){})},clickAnchor:function(t,e){}},t[o].defaults[s]={close:!1}}(jQuery),function(t){var e,n,o="mmenu",s="columns";t[o].addons[s]={setup:function(){var a=this.opts[s];if(this.conf[s],n=t[o].glbl,"boolean"==typeof a&&(a={add:a}),"number"==typeof a&&(a={add:!0,visible:a}),"object"!=typeof a&&(a={}),"number"==typeof a.visible&&(a.visible={min:a.visible,max:a.visible}),(a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a)).add){a.visible.min=Math.max(1,Math.min(6,a.visible.min)),a.visible.max=Math.max(a.visible.min,Math.min(6,a.visible.max)),this.$menu.addClass(e.columns);for(var r=this.opts.offCanvas?this.$menu.add(n.$html):this.$menu,l=[],h=0;h<=a.visible.max;h++)l.push(e.columns+"-"+h);l=l.join(" ");var c=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(a.visible.max,Math.max(a.visible.min,t)),r.removeClass(l).addClass(e.columns+"-"+t)},d=function(n){this.$pnls.children("."+e.panel).removeClass(l).filter("."+e.subopened).removeClass(e.hidden).add(n).slice(-a.visible.max).each(function(n){t(this).addClass(e.columns+"-"+n)})};this.bind("open",c),this.bind("close",function(){this.opts.offCanvas&&n.$html.removeClass(l)}),this.bind("init",function(t){d.call(this,this.$pnls.children("."+e.current)),a.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",d),this.bind("openingPanel",c),this.bind("openedPanel",c),this.opts.offCanvas||c.call(this)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("columns")},clickAnchor:function(n,o){if(!this.opts[s].add)return!1;if(o){var a=n.attr("href");if(a.length>
11&&"#"==a.slice(0,1))try{if(t(a,this.$menu).is("."+e.panel))for(var r=parseInt(n.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==r;){var l=this.$pnls.children("."+e.columns+"-"+r);if(!l.length){r=!1;break}r++,l.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[o].defaults[s]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,n,o="mmenu",s="counters";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s];this.conf[s],t[o].glbl,"boolean"==typeof r&&(r={add:r,update:r}),"object"!=typeof r&&(r={}),r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[s].counter,"counter")}),r.add&&this.bind("init",function(o){var s;("panels"===r.addTo?o:o.filter(r.addTo)).each(function(){var o=t(this).data(n.parent);o&&(o.children("em."+e.counter).length||o.prepend(t('<em class="'+e.counter+'" />')))})}),r.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var o=t(this),s=o.data(n.parent);if(s){var r=s.children("em."+e.counter);r.length&&(o=o.children("."+e.listview)).length&&r.html(a.__filterListItems(o.children()).length)}})})},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[o].defaults[s]={add:!1,addTo:"panels",update:!1},t[o].configuration.classNames[s]={counter:"Counter"}}(jQuery),function(t){var e,n,o="mmenu",s="dividers";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof r&&(r={add:r,fixed:r}),"object"!=typeof r&&(r={}),r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[s].collapsed,"collapsed")}),r.add&&this.bind("init",function(n){var o;o="panels"===r.addTo?n:n.filter(r.addTo),t("."+e.divider,o).remove(),o.find("."+e.listview).not("."+e.vertical).each(function(){var n="";a.__filterListItems(t(this).children()).each(function(){var o=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();o!=n&&o.length&&(n=o,t('<li class="'+e.divider+'">'+o+"</li>").insertBefore(this))})})}),r.collapse&&this.bind("init",function(n){t("."+e.divider,n).each(function(){var n=t(this);n.nextUntil("."+e.divider,"."+e.collapsed).length&&(n.children("."+e.subopen).length||(n.wrapInner("<span />"),n.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),r.fixed){var l=function(n){if((n=n||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var o=n.scrollTop()||0,s="";n.is(":visible")&&n.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+o<o+1&&(s=t(this).text())}),this.$fixeddivider.text(s)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",l),this.bind("update",l),this.bind("init",function(e){e.off(n.scroll+"-dividers "+n.touchmove+"-dividers").on(n.scroll+"-dividers "+n.touchmove+"-dividers",function(e){l.call(a,t(this))})})}},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),n.add("scroll")},clickAnchor:function(t,n){if(this.opts[s].collapse&&n){var o=t.parent();if(o.is("."+e.divider)){var a=o.nextUntil("."+e.divider,"."+e.collapsed);return o.toggleClass(e.opened),a[o.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[o].defaults[s]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[o].configuration.classNames[s]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,n){return e>t&&(t=e),t>n&&(t=n),t}var n,o,s="mmenu",a="dragOpen";t[s].addons[a]={setup:function(){if(this.opts.offCanvas){var r=this,l=this.opts[a],h=this.conf[a
1];if(o=t[s].glbl,"boolean"==typeof l&&(l={open:l}),"object"!=typeof l&&(l={}),(l=this.opts[a]=t.extend(!0,{},t[s].defaults[a],l)).open){var c,d,u,p,f,m={},g=0,v=!1,_=!1,b=0,y=0;switch(this.opts.offCanvas.position){case"left":case"right":m.events="panleft panright",m.typeLower="x",m.typeUpper="X",_="width";break;case"top":case"bottom":m.events="panup pandown",m.typeLower="y",m.typeUpper="Y",_="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":m.negative=!0,p=function(t){t>=o.$wndw[_]()-l.maxStartPos&&(g=1)};break;default:m.negative=!1,p=function(t){t<=l.maxStartPos&&(g=1)}}switch(this.opts.offCanvas.position){case"left":m.open_dir="right",m.close_dir="left";break;case"right":m.open_dir="left",m.close_dir="right";break;case"top":m.open_dir="down",m.close_dir="up";break;case"bottom":m.open_dir="up",m.close_dir="down"}f="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+n.slideout)};var w=this.__valueOrFn(l.pageNode,this.$menu,o.$page);"string"==typeof w&&(w=t(w)),new Hammer(w[0],l.vendors.hammer).on("panstart",function(t){p(t.center[m.typeLower]),o.$slideOutNodes=f(),v=m.open_dir}).on(m.events+" panend",function(t){g>0&&t.preventDefault()}).on(m.events,function(t){if(c=t["delta"+m.typeUpper],m.negative&&(c=-c),c!=b&&(v=c>=b?m.open_dir:m.close_dir),(b=c)>l.threshold&&1==g){if(o.$html.hasClass(n.opened))return;g=2,r._openSetup(),r.trigger("opening"),o.$html.addClass(n.dragging),y=e(o.$wndw[_]()*h[_].perc,h[_].min,h[_].max)}2==g&&(d=e(b,10,y)-("front"==r.opts.offCanvas.zposition?y:0),m.negative&&(d=-d),u="translate"+m.typeUpper+"("+d+"px )",o.$slideOutNodes.css({"-webkit-transform":"-webkit-"+u,transform:u}))}).on("panend",function(t){2==g&&(o.$html.removeClass(n.dragging),o.$slideOutNodes.css("transform",""),r[v==m.open_dir?"_openFinish":"close"]()),g=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[s].addons[a].setup=function(){}):(n=t[s]._c,t[s]._d,t[s]._e,void n.add("dragging"))},clickAnchor:function(t,e){}},t[s].defaults[a]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},t[s].configuration[a]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,n,o,s,a="mmenu",r="dropdown";t[a].addons[r]={setup:function(){if(this.opts.offCanvas){var l=this,h=this.opts[r],c=this.conf[r];if(s=t[a].glbl,"boolean"==typeof h&&h&&(h={drop:h}),"object"!=typeof h&&(h={}),"string"==typeof h.position&&(h.position={of:h.position}),(h=this.opts[r]=t.extend(!0,{},t[a].defaults[r],h)).drop){if("string"!=typeof h.position.of){var d=this.$menu.attr("id");d&&d.length&&(this.conf.clone&&(d=e.umm(d)),h.position.of='[href="#'+d+'"]')}if("string"==typeof h.position.of){var u=t(h.position.of);if(u.length){this.$menu.addClass(e.dropdown),h.tip&&this.$menu.addClass(e.tip),h.event=h.event.split(" "),1==h.event.length&&(h.event[1]=h.event[0]),"hover"==h.event[0]&&u.on(o.mouseenter+"-dropdown",function(){l.open()}),"hover"==h.event[1]&&this.$menu.on(o.mouseleave+"-dropdown",function(){l.close()}),this.bind("opening",function(){this.$menu.data(n.style,this.$menu.attr("style")||""),s.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(n.style)),s.$html.removeClass(e.dropdown)});var p=function(n,o){var l,d,p=o[0],f=o[1],m="x"==n?"left":"top",g="x"==n?"right":"bottom",v="x"==n?"width":"height",_=null,b=s.$wndw["x"==n?"scrollLeft":"scrollTop"](),y=u.offset()[m]-=b,w=y+u["x"==n?"outerWidth":"outerHeight"](),x=s.$wndw[v](),C=c.offset.button[n]+c.offset.viewport[n];if(h.position[n])switch(h.position[n]){case"left":case"bottom":_="after";break;case"right":case"top":_="before"}return null===_&&(_=x/2>y+(w-y)/2?"after":"before"),"after"==_?(d=x-((l="x"==n?y:w)+C),p[m]=l+c.offset.button[n],p[g]="auto",f.push(e["x"==n?"tipleft":"tiptop"])):(d=(l="x"==n?w:y)-C,p[g]="calc( 100% - "+(l-c.offset.button[n])+"px )",p[m]="auto",f.push(e["x"==n?"tipright":"tipbottom"])),p["x"==n?"maxWidth":"maxHeight"]=Math.min(t[a].configuration[r][v].max,d),[p,f]},f=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(n.style));var o=[{},[]];o=p.call(this,"y",o),o=p.call(this,"x",o),this.$menu.css(o[0]),h.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(o[1].join(" "))}};this.bind("opening",f),s.$wndw.on(o.resize+"-dropdown",function(t){f.call(l)}),this.opts.offCanvas.blockUI||s.$wndw.on(o.scroll+"-dropdown",function(t){f.call(l)})}}}}},add:function(){e=t[a]._c,n=t[a]._d,o=t[a]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),o.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[a].defaults[r]={drop:!1,event:"click",position:{},tip:!0},t[a].configuration[r]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,n,o="mmenu",s="fixedElements";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var e=this.opts[s];this.conf[s],n=t[o].glbl,e=this.opts[s]=t.extend(!0,{},t[o].defaults[s],e);var a=function(t){var e=this.conf.classNames[s].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(n.$body)};a.call(this,n.$page),this.bind("setPage",a)}},add:function(){e=t[o]._c,t[o]._d,t[o]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[o].configuration.classNames[s]={fixed:"Fixed"}}(jQuery),function(t){var e,n="mmenu",o="iconPanels";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a}),"number"==typeof a&&(a={add:!0,visible:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{}
1,t[n].defaults[o],a),a.visible++,a.add){this.$menu.addClass(e.iconpanel);for(var r=[],l=0;l<=a.visible;l++)r.push(e.iconpanel+"-"+l);r=r.join(" ");var h=function(n){n.hasClass(e.vertical)||s.$pnls.children("."+e.panel).removeClass(r).filter("."+e.subopened).removeClass(e.hidden).add(n).not("."+e.vertical).slice(-a.visible).each(function(n){t(this).addClass(e.iconpanel+"-"+n)})};this.bind("openPanel",h),this.bind("init",function(n){h.call(s,s.$pnls.children("."+e.current)),a.hideNavbars&&n.removeClass(e.hasnavbar),n.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,n="mmenu",o="navbars";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o],r=this.conf[o];if(t[n].glbl,void 0!==a){a instanceof Array||(a=[a]);var l={};for(var h in t.each(a,function(h){var c=a[h];"boolean"==typeof c&&c&&(c={}),"object"!=typeof c&&(c={}),void 0===c.content&&(c.content=["prev","title"]),c.content instanceof Array||(c.content=[c.content]);var d=(c=t.extend(!0,{},s.opts.navbar,c)).position,u=c.height;"number"!=typeof u&&(u=1),u=Math.min(4,Math.max(1,u)),"bottom"!=d&&(d="top"),l[d]||(l[d]=0),l[d]++;var p=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+d+" "+e.navbar+"-"+d+"-"+l[d]+" "+e.navbar+"-size-"+u);l[d]+=u-1;for(var f=0,m=0,g=c.content.length;g>m;m++){var v=t[n].addons[o][c.content[m]]||!1;v?f+=v.call(s,p,c,r):((v=c.content[m])instanceof t||(v=t(c.content[m])),p.append(v))}(f+=Math.ceil(p.children().not("."+e.btn).not("."+e.title+"-prev").length/u))>1&&p.addClass(e.navbar+"-content-"+f),p.children("."+e.btn).length&&p.addClass(e.hasbtns),p.prependTo(s.$menu)}),l)s.$menu.addClass(e.hasnavbar+"-"+h+"-"+l[h])}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[n].configuration[o]={breadcrumbSeparator:"/"},t[n].configuration.classNames[o]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(n,o,s){var a=t[e]._c,r=t[e]._d;a.add("breadcrumbs separator");var l=t('<span class="'+a.breadcrumbs+'" />').appendTo(n);this.bind("init",function(e){e.removeClass(a.hasnavbar).each(function(){for(var e=[],n=t(this),o=t('<span class="'+a.breadcrumbs+'"></span>'),l=t(this).children().first(),h=!0;l&&l.length;){l.is("."+a.panel)||(l=l.closest("."+a.panel));var c=l.children("."+a.navbar).children("."+a.title).text();e.unshift(h?"<span>"+c+"</span>":'<a href="#'+l.attr("id")+'">'+c+"</a>"),h=!1,l=l.data(r.parent)}o.append(e.join('<span class="'+a.separator+'">'+s.breadcrumbSeparator+"</span>")).appendTo(n.children("."+a.navbar))})});var h=function(){l.html(this.$pnls.children("."+a.current).children("."+a.navbar).children("."+a.breadcrumbs).html())};return this.bind("openPanel",h),this.bind("init",h),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(n,o){var s=t[e]._c,a=t[e].glbl,r=t('<a class="'+s.close+" "+s.btn+'" href="#" />').appendTo(n),l=function(t){r.attr("href","#"+t.attr("id"))};return l.call(this,a.$page),this.bind("setPage",l),-1}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].next=function(o,s){var a,r,l=t[e]._c,h=t('<a class="'+l.next+" "+l.btn+'" href="#" />').appendTo(o),c=function(t){var e=(t=t||this.$pnls.children("."+l.current)).find("."+this.conf.classNames[n].panelNext);a=e.attr("href"),r=e.html(),h[a?"attr":"removeAttr"]("href",a),h[a||r?"removeClass":"addClass"](l.hidden),h.html(r)};return this.bind("openPanel",c),this.bind("init",function(){c.call(this)}),-1},t[e].configuration.classNames[n].panelNext="Next"}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].prev=function(o,s){var a=t[e]._c,r=t('<a class="'+a.prev+" "+a.btn+'" href="#" />').appendTo(o);this.bind("init",function(t){t.removeClass(a.hasnavbar).children("."+a.navbar).addClass(a.hidden)});var l,h,c=function(t){if(!(t=t||this.$pnls.children("."+a.current)).hasClass(a.vertical)){var e=t.find("."+this.conf.classNames[n].panelPrev);e.length||(e=t.children("."+a.navbar).children("."+a.prev)),l=e.attr("href"),h=e.html(),r[l?"attr":"removeAttr"]("href",l),r[l||h?"removeClass":"addClass"](a.hidden),r.html(h)}};return this.bind("openPanel",c),this.bind("init",function(){c.call(this)}),-1},t[e].configuration.classNames[n].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(n,o){var s=t[e]._c,a=t('<div class="'+s.search+'" />').appendTo(n);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=a,0}}(jQuery),function(t){var e="mmenu",n="navbars";t[e].addons[n].title=function(o,s){var a,r,l=t[e]._c,h=t('<a class="'+l.title+'" />').appendTo(o),c=function(t){if(!(t=t||this.$pnls.children("."+l.current)).hasClass(l.vertical)){var e=t.find("."+this.conf.classNames[n].panelTitle);e.length||(e=t.children("."+l.navbar).children("."+l.title)),a=e.attr("href"),r=e.html()||s.title,h[a?"attr":"removeAttr"]("href",a),h[a||r?"removeClass":"addClass"](l.hidden),h.html(r)}};return this.bind("openPanel",c),this.bind("init",function(t){c.call(this)}),0},t[e].configuration.classNames[n].panelTitle="Title"}(jQuery),function(t){function e(t,e,n){t.prop("aria-"+e,n)[n?"attr":"removeAttr"]("aria-"+e,"true")}function n(t){return'<span class="'+o.sronly+'">'+t+"</span>"}var o,s="mmenu",a="screenReader";t[s].addons[a]={setup:function(){var r=this.opts[a],l=this.conf[a
1];if(t[s].glbl,"boolean"==typeof r&&(r={aria:r,text:r}),"object"!=typeof r&&(r={}),(r=this.opts[a]=t.extend(!0,{},t[s].defaults[a],r)).aria){if(this.opts.offCanvas){var h=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",h),h.call(this)}var c=function(){e(this.$menu.find("."+o.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+o.hidden),"hidden",!1)};this.bind("update",c),this.bind("openPanel",c),this.bind("openPanel",function(t){e(this.$pnls.children("."+o.panel).not(t).not("."+o.hidden),"hidden",!0),e(t,"hidden",!1)});var d=function(t){e(t.find("."+o.prev+", ."+o.next),"haspopup",!0)};this.bind("init",d),d.call(this,this.$menu.children("."+o.navbar))}if(r.text){var u=function(e){e.children("."+o.navbar).children("."+o.prev).html(n(l.text.closeSubmenu)).end().children("."+o.next).html(n(l.text.openSubmenu)).end().children("."+o.close).html(n(l.text.closeMenu)),e.is("."+o.panel)&&e.find("."+o.listview).find("."+o.next).each(function(){t(this).html(n(l.text[t(this).parent().is("."+o.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",u),u.call(this,this.$menu)}},add:function(){o=t[s]._c,t[s]._d,t[s]._e,o.add("sronly")},clickAnchor:function(t,e){}},t[s].defaults[a]={aria:!1,text:!1},t[s].configuration[a]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,n,o,s="mmenu",a="searchfield";t[s].addons[a]={setup:function(){var r=this,l=this.opts[a],h=this.conf[a
1];t[s].glbl,"boolean"==typeof l&&(l={add:l}),"object"!=typeof l&&(l={}),"boolean"==typeof l.resultsPanel&&(l.resultsPanel={add:l.resultsPanel}),l=this.opts[a]=t.extend(!0,{},t[s].defaults[a],l),h=this.conf[a]=t.extend(!0,{},t[s].configuration[a],h),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}),this.bind("init",function(s){if(l.add){var c;if(("panels"===l.addTo?s:this.$menu.find(l.addTo)).each(function(){var n=t(this);if(!n.is("."+e.panel)||!n.is("."+e.vertical)){if(!n.children("."+e.search).length){var s,a=r.__valueOrFn(h.clear,n),c=r.__valueOrFn(h.form,n),d=r.__valueOrFn(h.input,n),u=r.__valueOrFn(h.submit,n),p=t("<"+(c?"form":"div")+' class="'+e.search+'" />'),f=t('<input placeholder="'+l.placeholder+'" type="text" autocomplete="off" />');if(p.append(f),d)for(s in d)f.attr(s,d[s]);if(a&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),f.val("").trigger(o.keyup+"-searchfield")}),c){for(s in c)p.attr(s,c[s]);u&&!a&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(p).on(o.click+"-searchfield",function(t){t.preventDefault(),p.submit()})}n.hasClass(e.search)?n.replaceWith(p):n.prepend(p).addClass(e.hassearch)}if(l.noResults&&(n.closest("."+e.panel).length||(n=r.$pnls.children("."+e.panel).first()),!n.children("."+e.noresultsmsg).length)){var m=n.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(l.noResults)[m.length?"insertAfter":"prependTo"](m.length?m:n)}}}),l.search){if(l.resultsPanel.add){l.showSubPanels=!1;var d=this.$pnls.children("."+e.resultspanel);d.length||(d=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+l.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(d))}this.$menu.find("."+e.search).each(function(){var s,h,c=t(this),u=c.closest("."+e.panel).length;u?h=s=c.closest("."+e.panel):(s=t("."+e.panel,r.$menu),h=r.$menu),l.resultsPanel.add&&(s=s.not(d));var p=c.children("input"),f=r.__findAddBack(s,"."+e.listview).children("li"),m=f.filter("."+e.divider),g=r.__filterListItems(f),v="",_=function(){var o=p.val().toLowerCase();if(o!=v){if(v=o,l.resultsPanel.add&&d.children("."+e.listview).empty(),s.scrollTop(0),g.add(m).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),g.each(function(){var o=t(this),s="a";(l.showTextItems||l.showSubPanels&&o.find("."+e.next))&&(s="a, span"),(o.data(n.searchtext)||o.children(s).text()).toLowerCase().indexOf(v)>-1&&o.add(o.prevAll("."+e.divider).first()).removeClass(e.hidden)}),l.showSubPanels&&s.each(function(o){var s=t(this);r.__filterListItems(s.find("."+e.listview).children()).each(function(){var o=t(this),s=o.data(n.sub);o.removeClass(e.nosubresults),s&&s.find("."+e.listview).children().removeClass(e.hidden)})}),l.resultsPanel.add){if(""===v)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+e.subopened).last());else{var a=t();s.each(function(){var n=r.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);n.length&&(l.resultsPanel.dividers&&(a=a.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),a=a.add(n))}),a.find("."+e.next).remove(),d.children("."+e.listview).append(a),this.openPanel(d)}}else t(s.get().reverse()).each(function(o){var s=t(this),a=s.data(n.parent);a&&(r.__filterListItems(s.find("."+e.listview).children()).length?(a.hasClass(e.hidden)&&a.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),a.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):u||(s.hasClass(e.opened)&&setTimeout(function(){r.openPanel(a.closest("."+e.panel))},(o+1)*(1.5*r.conf.openingInterval)),a.addClass(e.nosubresults)))});h.find("."+e.noresultsmsg)[g.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};p.off(o.keyup+"-"+a+" "+o.change+"-"+a).on(o.keyup+"-"+a,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||_.call(r)}).on(o.change+"-"+a,function(t){_.call(r)});var b=c.children("."+e.btn);b.length&&p.on(o.keyup+"-"+a,function(t){b[p.val().length?"removeClass":"addClass"](e.hidden)}),p.trigger(o.keyup+"-"+a)})}}})},add:function(){e=t[s]._c,n=t[s]._d,o=t[s]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),n.add("searchtext"),o.add("change keyup")},clickAnchor:function(t,e){}},t[s].defaults[a]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[s].configuration[a]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,n,o="mmenu",s="sectionIndexer";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s];this.conf[s],t[o].glbl,"boolean"==typeof r&&(r={add:r}),"object"!=typeof r&&(r={}),r=this.opts[s]=t.extend(!0,{}
1,t[o].defaults[s],r),this.bind("init",function(o){if(r.add){var s;("panels"===r.addTo?o:t(r.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(n.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(n){var o=t(this).attr("href").slice(1),s=a.$pnls.children("."+e.current),r=s.find("."+e.listview),l=!1,h=s.scrollTop();s.scrollTop(0),r.children("."+e.divider).not("."+e.hidden).each(function(){!1===l&&o==t(this).text().slice(0,1).toLowerCase()&&(l=t(this).position().top)}),s.scrollTop(!1!==l?l:h)});var l=function(t){a.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",l),l.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[o]._c,t[o]._d,n=t[o]._e,e.add("indexer hasindexer"),n.add("mouseover touchstart")},clickAnchor:function(t,n){return!!t.parent().is("."+e.indexer)||void 0}},t[o].defaults[s]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,n,o="mmenu",s="setSelected";t[o].addons[s]={setup:function(){var a=this.opts[s];if(this.conf[s],t[o].glbl,"boolean"==typeof a&&(a={hover:a,parent:a}),"object"!=typeof a&&(a={}),(a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),a.hover&&this.$menu.addClass(e.hoverselected),a.parent){this.$menu.addClass(e.parentselected);var r=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var o=t.data(n.parent);o&&o.length;)o=o.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(n.parent)};this.bind("openedPanel",r),this.bind("init",function(t){r.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[o]._c,n=t[o]._d,t[o]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[o].defaults[s]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,n="mmenu",o="toggles";t[n].addons[o]={setup:function(){var s=this;this.opts[o],this.conf[o],t[n].glbl,this.bind("init",function(n){this.__refactorClass(t("input",n),this.conf.classNames[o].toggle,"toggle"),this.__refactorClass(t("input",n),this.conf.classNames[o].check,"check"),t("input."+e.toggle+", input."+e.check,n).each(function(){var n=t(this),o=n.closest("li"),a=n.hasClass(e.toggle)?"toggle":"check",r=n.attr("id")||s.__getUniqueId();o.children('label[for="'+r+'"]').length||(n.attr("id",r),o.prepend(n),t('<label for="'+r+'" class="'+e[a]+'"></label>').insertBefore(o.children("a, span").last()))})})},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,n=Array.prototype.splice,o={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},s=t(window),a=t(document),r=[],l=s.height(),h=function(){for(var e=s.scrollTop(),n=a.height(),o=n-l,h=e>o?o-e:0,c=0,d=r.length;c<d;c++){var u=r[c],p=u.stickyWrapper.offset().top-u.topSpacing-h;if(u.stickyWrapper.css("height",u.stickyElement.outerHeight()),e<=p)null!==u.currentTop&&(u.stickyElement.css({width:"",position:"",top:"","z-index":""}),u.stickyElement.parent().removeClass(u.className),u.stickyElement.trigger("sticky-end",[u]),u.currentTop=null);else{var f,m=n-u.stickyElement.outerHeight()-u.topSpacing-u.bottomSpacing-e-h;m<0?m+=u.topSpacing:m=u.topSpacing,u.currentTop!==m&&(u.getWidthFrom?f=t(u.getWidthFrom).width()||null:u.widthFromWrapper&&(f=u.stickyWrapper.width()),null==f&&(f=u.stickyElement.width()),u.stickyElement.css("width",f).css("position","fixed").css("top",m).css("z-index",u.zIndex),u.stickyElement.parent().addClass(u.className),null===u.currentTop?u.stickyElement.trigger("sticky-start",[u]):u.stickyElement.trigger("sticky-update",[u]),u.currentTop===u.topSpacing&&u.currentTop>m||null===u.currentTop&&m<u.topSpacing?u.stickyElement.trigger("sticky-bottom-reached",[u]):null!==u.currentTop&&m===u.topSpacing&&u.currentTop<m&&u.stickyElement.trigger("sticky-bottom-unreached",[u]),u.currentTop=m);var g=u.stickyWrapper.parent();u.stickyElement.offset().top+u.stickyElement.outerHeight()>=g.offset().top+g.outerHeight()&&u.stickyElement.offset().top<=u.topSpacing?u.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):u.stickyElement.css("position","fixed").css("top",m).css("bottom","").css("z-index",u.zIndex)}}},c=function(){l=s.height();for(var e=0,n=r.length;e<n;e++){var o=r[e],a=null;o.getWidthFrom?o.responsiveWidth&&(a=t(o.getWidthFrom).width()):o.widthFromWrapper&&(a=o.stickyWrapper.width()),null!=a&&o.stickyElement.css("width",a)}},d={init:function(e){var n=t.extend({},o,e);return this.each(function(){var e=t(this),s=e.attr("id"),a=s?s+"-"+o.wrapperClassName:o.wrapperClassName,l=t("<div></div>").attr("id",a).addClass(n.wrapperClassName);e.wrapAll(function(){if(0==t(this).parent("#"+a).length)return l});var h=e.parent();n.center&&h.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),n.stickyElement=e,n.stickyWrapper=h,n.currentTop=null,r.push(n),d.setWrapperHeight(this),d.setupChangeListeners(this)})},setWrapperHeight:function(e){var n=t(e),o=n.parent();o&&o.css("height",n.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&d.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){d.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){d.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){d.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){d.setWrapperHeight(t)}))},update:h,unstick:function(e){return this.each(function(){for(var e=t
1(this),o=-1,s=r.length;s-- >0;)r[s].stickyElement.get(0)===this&&(n.call(r,s,1),o=s);-1!==o&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",h,!1),window.addEventListener("resize",c,!1)):window.attachEvent&&(window.attachEvent("onscroll",h),window.attachEvent("onresize",c)),t.fn.sticky=function(n){return d[n]?d[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):d.init.apply(this,arguments)},t.fn.unstick=function(n){return d[n]?d[n].apply(this,e.call(arguments,1)):"object"!=typeof n&&n?void t.error("Method "+n+" does not exist on jQuery.sticky"):d.unstick.apply(this,arguments)},t(function(){setTimeout(h,0)})}),/*! jQuery UI - v1.12.1 - 2018-01-22 2* http://jqueryui.com 3* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js 4* Copyright jQuery Foundation and other contributors; Licensed MIT */function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",n,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,o)}function o(){t.datepicker._isDisabledDatepicker(f.inline?f.dpDiv.parent()[0]:f.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function s(e,n){for(var o in t.extend(e,n),n)null==n[o]&&(e[o]=n[o]);return e}function a(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var r,l,h,c,d,u,p,f,m,g=0,v=Array.prototype.slice;t.cleanData=(r=t.cleanData,function(e){var n,o,s;for(s=0;null!=(o=e[s]);s++)try{(n=t._data(o,"events"))&&n.remove&&t(o).triggerHandler("remove")}catch(t){}r(e)}),t.widget=function(e,n,o){var s,a,r,l={},h=e.split(".")[0],c=h+"-"+(e=e.split(".")[1]);return o||(o=n,n=t.Widget),t.isArray(o)&&(o=t.extend.apply(null,[{}].concat(o))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[h]=t[h]||{},s=t[h][e],a=t[h][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new a(t,e)},t.extend(a,s,{version:o.version,_proto:t.extend({},o),_childConstructors:[]}),(r=new n).options=t.widget.extend({},r.options),t.each(o,function(e,o){return t.isFunction(o)?void(l[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function s(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,a=this._superApply;return this._super=t,this._superApply=s,e=o.apply(this,arguments),this._super=n,this._superApply=a,e}}()):void(l[e]=o)}),a.prototype=t.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||e},l,{constructor:a,namespace:h,widgetName:e,widgetFullName:c}),s?(t.each(s._childConstructors,function(e,n){var o=n.prototype;t.widget(o.namespace+"."+o.widgetName,a,n._proto)}),delete s._childConstructors):n._childConstructors.push(a),t.widget.bridge(e,a),a}
vendor: 5,040 bytes, line 4
4,t.widget.extend=function(e){for(var n,o,s=v.call(arguments,1),a=0,r=s.length;r>a;a++)for(n in s[a])o=s[a][n],s[a].hasOwnProperty(n)&&void 0!==o&&(e[n]=t.isPlainObject(o)?t.isPlainObject(e[n])?t.widget.extend({},e[n],o):t.widget.extend({},o):o);return e},t.widget.bridge=function(e,n){var o=n.prototype.widgetFullName||e;t.fn[e]=function(s){var a="string"==typeof s,r=v.call(arguments,1),l=this;return a?this.length||"instance"!==s?this.each(function(){var n,a=t.data(this,o);return"instance"===s?(l=a,!1):a?t.isFunction(a[s])&&"_"!==s.charAt(0)?(n=a[s].apply(a,r))!==a&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):l=void 0:(r.length&&(s=t.widget.extend.apply(null,[s].concat(r))),this.each(function(){var e=t.data(this,o);e?(e.option(s||{}),e._init&&e._init()):t.data(this,o,new n(s,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=g++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var o,s,a,r=e;if(0==arguments.length)return t.widget.extend({},this.options);if("string"==typeof e){if(r={},e=(o=e.split(".")).shift(),o.length){for(s=r[e]=t.widget.extend({},this.options[e]),a=0;o.length-1>a;a++)s[o[a]]=s[o[a]]||{},s=s[o[a]];if(e=o.pop(),1==arguments.length)return void 0===s[e]?null:s[e];s[e]=n}else{if(1==arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=n}}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,o,s;for(n in e)s=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&s&&s.length&&(o=t(s.get()),this._removeClass(s,n),o.addClass(this._classes({element:o,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function n(n,a){var r,l;for(l=0;n.length>l;l++)r=s.classesElementLookup[n[l]]||t(),r=e.add?t(t.unique(r.get().concat(e.element.get()))):t(r.not(e.element).get()),s.classesElementLookup[n[l]]=r,o.push(n[l]),a&&e.classes[n[l]]&&o.push(e.classes[n[l]])}var o=[],s=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&n(e.keys.match(/\S+/g)||[],!0),e.extra&&n(e.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(o,s){-1!==t.inArray(e.target,s)&&(n.classesElementLookup[o]=t(s.not(e.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,o){o="boolean"==typeof o?o:n;var s="string"==typeof t||null===t,a={extra:s?e:n,keys:s?t:e,element:s?this.element:t,add:o};return a.element.toggleClass(this._classes(a),o),this},_on:function(e,n,o){var s,a=this;"boolean"!=typeof e&&(o=n,n=e,e=!1),o?(n=s=t(n),this.bindings=this.bindings.add(n)):(o=n,n=this.element,s=this.widget()),t.each(o,function(o,r){function l(){return e||!0!==a.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):void 0}"string"!=typeof r&&(l.guid=r.guid=r.guid||l.guid||t.guid++);var h=o.match(/^([\w:-]*)\s*(.*)$/),c=h[1]+a.eventNamespace,d=h[2];d?s.on(c,d,l):n.on(c,l)})}
4,_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var n=this;return setTimeout(function(){return("string"==typeof t?n[t]:t).apply(n,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,o){var s,a,r=this.options[e];if(o=o||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],a=n.originalEvent)for(s in a)s in n||(n[s]=a[s]);return this.element.trigger(n,o),!(t.isFunction(r)&&!1===r.apply(this.element[0],[n].concat(o))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(o,s,a){"string"==typeof s&&(s={effect:s});var r,l=s?!0===s||"number"==typeof s?n:s.effect||n:e;"number"==typeof(s=s||{})&&(s={duration:s}),r=!t.isEmptyObject(s),s.complete=a,s.delay&&o.delay(s.delay),r&&t.effects&&t.effects.effect[l]?o[e](s):l!==e&&o[l]?o[l](s.duration,s.easing,a):o.queue(function(n){t(this)[e](),a&&a.call(o[0]),n()})}}),t.widget,function(){function e(t,e,n){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?n/100:1)]}function n(e,n){return parseInt(t.css(e,n),10)||0}var o,s=Math.max,a=Math.abs,r=/left|center|right/,l=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,d=/%$/,u=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==o)return o;var e,n,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=s.children()[0];return t("body").append(s),e=a.offsetWidth,s.css("overflow","scroll"),e===(n=a.offsetWidth)&&(n=s[0].clientWidth),s.remove(),o=e-n},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),o=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===o||"auto"===o&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),o=t.isWindow(n[0]),s=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:o,isDocument:s,offset:o||s?{left:0,top:0}:t(e).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(o){if(!o||!o.of)return u.apply(this,arguments);o=t.extend({},o);var d,p,f,m,g,v,_,b=t(o.of),y=t.position.getWithinInfo(o.within),w=t.position.getScrollInfo(y),x=(o.collision||"flip").split(" "),C={};return _=9===(d=b[0]).nodeType?{width:b.width(),height:b.height(),offset:{top:0,left:0}}:t.isWindow(d)?{width:b.width(),height:b.height(),offset:{top:b.scrollTop(),left:b.scrollLeft()}}:d.preventDefault?{width:0,height:0,offset:{top:d.pageY,left:d.pageX}}:{width:b.outerWidth(),height:b.outerHeight(),offset:b.offset()},b[0].preventDefault&&(o.at="left top"),f=_.width,m=_.height,g=_.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,e,n=(o[this]||"").split(" ");1===n.length&&(n=r.test(n[0])?n.concat(["center"]):l.test(n[0])?["center"].concat(n):["center","center"]),n[0]=r.test(n[0])?n[0]:"center",n[1]=l.test(n[1])?n[1]:"center",t=h.exec(n[0]),e=h.exec(n[1]),C[this]=[t?t[0]:0,e?e[0]:0],o[this]=[c.exec(n[0])[0],c.exec(n[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===o.at[0]?v.left+=f:"center"===o.at[0]&&(v.left+=f/2),"bottom"===o.at[1]?v.top+=m:"center"===o.at[1]&&(v.top+=m/2),p=e(C.at,f,m),v.left+=p[0],v.top+=p[1],this.each(function(){var r,l,h=t(this),c=h.outerWidth(),d=h.outerHeight(),u=n(this,"marginLeft"),_=n(this,"marginTop"),k=c+u+n(this,"marginRight")+w.width,T=d+_+n(this,"marginBottom")+w.height,S=t.extend({},v),E=e(C.my,h.outerWidth(),h.outerHeight());"right"===o.my[0]?S.left-=c:"center"===o.my[0]&&(S.left-=c/2),"bottom"===o.my[1]?S.top-=d:"center"===o.my[1]&&(S.top-=d/2),S.left+=E[0],S.top+=E[1],r={marginLeft:u,marginTop:_},t.each(["left","top"],function(e,n){t.ui.position[x[e]]&&t.ui.position[x[e]][n](S,{targetWidth:f,targetHeight:m,elemWidth:c,elemHeight:d,collisionPosition:r,collisionWidth:k,collisionHeight:T,offset:[p[0]+E[0],p[1]+E[1]],my:o.my,at:o.at,within:y,elem:h})}),o.using&&(l=function(t){var e=g.left-S.left,n=e+f-c,r=g.top-S.top,l=r+m-d,u={target:{element:b,left:g.left,top:g.top,width:f,height:m},element:{element:h,left:S.left,top:S.top,width:c,height:d},horizontal:0>n?"left":e>0?"right":"center",vertical:0>l?"top":r>0?"bottom":"middle"};c>f&&f>a(e+n)&&(u.horizontal="center"),d>m&&m>a(r+l)&&(u.vertical="middle"),u.important=s(a(e),a(n))>s(a(r),a(l))?"horizontal":"vertical",o.using.call(this,t,u)}),h.offset(t.extend(S,{using:l}))})},t.ui.position={fit:{left:function(t,e){var n,o=e.within,a=o.isWindow?o.scrollLeft:o.offset.left,r=o.width,l=t.left-e.collisionPosition.marginLeft,h=a-l,c=l+e.collisionWidth-r-a;e.collisionWidth>r?h>
40&&0>=c?(n=t.left+h+e.collisionWidth-r-a,t.left+=h-n):t.left=c>0&&0>=h?a:h>c?a+r-e.collisionWidth:a:h>0?t.left+=h:c>0?t.left-=c:t.left=s(t.left-l,t.left)},top:function(t,e){var n,o=e.within,a=o.isWindow?o.scrollTop:o.offset.top,r=e.within.height,l=t.top-e.collisionPosition.marginTop,h=a-l,c=l+e.collisionHeight-r-a;e.collisionHeight>r?h>0&&0>=c?(n=t.top+h+e.collisionHeight-r-a,t.top+=h-n):t.top=c>0&&0>=h?a:h>c?a+r-e.collisionHeight:a:h>0?t.top+=h:c>0?t.top-=c:t.top=s(t.top-l,t.top)}},flip:{left:function(t,e){var n,o,s=e.within,r=s.offset.left+s.scrollLeft,l=s.width,h=s.isWindow?s.scrollLeft:s.offset.left,c=t.left-e.collisionPosition.marginLeft,d=c-h,u=c+e.collisionWidth-l-h,p="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,m=-2*e.offset[0];0>d?(0>(n=t.left+p+f+m+e.collisionWidth-l-r)||a(d)>n)&&(t.left+=p+f+m):u>0&&((o=t.left-e.collisionPosition.marginLeft+p+f+m-h)>0||u>a(o))&&(t.left+=p+f+m)},top:function(t,e){var n,o,s=e.within,r=s.offset.top+s.scrollTop,l=s.height,h=s.isWindow?s.scrollTop:s.offset.top,c=t.top-e.collisionPosition.marginTop,d=c-h,u=c+e.collisionHeight-l-h,p="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];0>d?(0>(o=t.top+p+f+m+e.collisionHeight-l-r)||a(d)>o)&&(t.top+=p+f+m):u>0&&((n=t.top-e.collisionPosition.marginTop+p+f+m-h)>0||u>a(n))&&(t.top+=p+f+m)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,o){return!!t.data(e,o[3])}}),t.fn.extend({disableSelection:(l="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(l+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(e,n){var o,s,a,r,l,h=e.nodeName.toLowerCase();return"area"===h?(s=(o=e.parentNode).name,!!e.href&&!!s&&"map"===o.nodeName.toLowerCase()&&(a=t("img[usemap='#"+s+"']")).length>0&&a.is(":visible")):(/^(input|select|textarea|button|object)$/.test(h)?(r=!e.disabled)&&(l=t(e).closest("fieldset")[0])&&(r=!l.disabled):r="a"===h&&e.href||n,r&&t(e).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(t(e)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var n=e.data("ui-form-reset-instances");t.each(n,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,n){function o(e,n,o,a){return t.each(s,function(){n-=parseFloat(t.css(e,"padding"+this))||0,o&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),a&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var s="Width"===n?["Left","Right"]:["Top","Bottom"],a=n.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(e){return void 0===e?r["inner"+n].call(this):this.each(function(){t(this).css(a,o(this,e)+"px")})},t.fn["outer"+n]=function(e,s){return"number"!=typeof e?r["outer"+n].call(this,e):this.each(function(){t(this).css(a,o(this,e,!0,s)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=(h=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(h,"\\$1")}),t.fn.labels=function(){var e,n,o,s,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(o=this.attr("id"))&&(a=(e=this.eq(0).parents().last(
4)).add(e.length?e.siblings():this.siblings()),n="label[for='"+t.ui.escapeSelector(o)+"']",s=s.add(a.find(n).addBack(n))),this.pushStack(s))},t.fn.scrollParent=function(e){var n=this.css("position"),o="absolute"===n,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var e=t(this);return(!o||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&a.length?a:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var n=t.attr(e,"tabindex"),o=null!=n;return(!o||n>=0)&&t.ui.focusable(e,o)}}),t.fn.extend({uniqueId:(c=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var _=!1;t(document).on("mouseup",function(){_=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(n){return!0===t.data(n.target,e.widgetName+".preventClickEvent")?(t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!_){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,o=1===e.which,s="string"==typeof this.options.cancel&&!!e.target.nodeName&&t(e.target).closest(this.options.cancel).length;return!(o&&!s&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),_=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,_=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,n,o){var s,a=t.ui[e].prototype;for(s in o)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([n,o[s]])},call:function(t,e,n,o){var s,a=t.plugins[e];
vendor: 5,719 bytes, line 4
4if(a&&(o||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;a.length>s;s++)t.options[a[s][0]]&&a[s][1].apply(t.element,n)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(n){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return!this.helper&&!n.disabled&&!(t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(n).length||t.ui.safeBlur(n)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var o=this._uiHash();if(!1===this._trigger("drag",e,o))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=o.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,o=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(o=t.ui.ddmanager.drop(this,e)),this.dropped&&(o=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!o||"valid"===this.options.revert&&o||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,o)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",e)&&n._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,o=t.isFunction(n.helper),s=o?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),o&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
vendor: 4,649 bytes, line 4
4),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,o,s=this.options,a=this.document[0];return this.relativeContainer=null,s.containment?"window"===s.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===s.containment?void(this.containment=[0,0,t(a).width()-this.helperProportions.width-this.margins.left,(t(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):s.containment.constructor===Array?void(this.containment=s.containment):("parent"===s.containment&&(s.containment=this.helper[0].parentNode),void((o=(n=t(s.containment))[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(o.scrollWidth,o.offsetWidth):o.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(o.scrollHeight,o.offsetHeight):o.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,o=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,o,s,a,r=this.options,l=this._isRootNode(this.scrollParent[0]),h=t.pageX,c=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(o=this.relativeContainer.offset(),n=[this.containment[0]+o.left,this.containment[1]+o.top,this.containment[2]+o.left,this.containment[3]+o.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(h=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(h=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=n?s-this.offset.click.top>=n[1]||s-this.offset.click.top>n[3]?s:s-this.offset.click.top>=n[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)
vendor: 4,883 bytes, line 4
4/r.grid[0])*r.grid[0]:this.originalPageX,h=n?a-this.offset.click.left>=n[0]||a-this.offset.click.left>n[2]?a:a-this.offset.click.left>=n[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(h=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,o){return o=o||this._uiHash(),t.ui.plugin.call(this,e,[n,o,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),o.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,o)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,o){var s=t.extend({},n,{item:o.element});o.sortables=[],t(o.options.connectToSortable).each(function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(o.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,s))})},stop:function(e,n,o){var s=t.extend({},n,{item:o.element});o.cancelHelperRemoval=!1,t.each(o.sortables,function(){var t=this;t.isOver?(t.isOver=0,o.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(e,n,o){t.each(o.sortables,function(){var s=!1,a=this;a.positionAbs=o.positionAbs,a.helperProportions=o.helperProportions,a.offset.click=o.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,t.each(o.sortables,function(){return this.positionAbs=o.positionAbs,this.helperProportions=o.helperProportions,this.offset.click=o.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&t.contains(a.element[0],this.element[0])&&(s=!1),s})),s?(a.isOver||(a.isOver=1,o._parent=n.helper.parent(),a.currentItem=n.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return n.helper[0]},e.target=a.currentItem[0],a._mouseCapture(e,!0),a._mouseStart(e,!0,!0),a.offset.click.top=o.offset.click.top,a.offset.click.left=o.offset.click.left,a.offset.parent.left-=o.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=o.offset.parent.top-a.offset.parent.top,o._trigger("toSortable",e),o.dropped=a.element,t.each(o.sortables,function(){this.refreshPositions()}),o.currentItem=o.element,a.fromOutside=o),a.currentItem&&(a._mouseDrag(e),n.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",e,a._uiHash(a)),a._mouseStop(e,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),n.helper.appendTo(o._parent),o._refreshOffsets(e),n.position=o._generatePosition(e,!0),o._trigger("fromSortable",e),o.dropped=!1,t.each(o.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,o){var s=t("body"),a=o.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(e,n,o){var s=o.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,o){var s=t(n.helper),a=o.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(e,n,o){var s=o.options;s._opacity&&t(n.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,o){var s=o.options,a=!1,r=o.scrollParentNotHidden[0],l=o.document[0];r!==l&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(o.overflowOffset.top+r.offsetHeight-e.pageY<s.scrollSensitivity?r.scrollTop=a=r.scrollTop+s.scrollSpeed:e.pageY-o.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(o.overflowOffset.left+r.offsetWidth-e.pageX<s.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+s.scrollSpeed:e.pageX-o.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t
vendor: 4,059 bytes, line 4
4(l).scrollTop()<s.scrollSensitivity?a=t(l).scrollTop(t(l).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<s.scrollSensitivity&&(a=t(l).scrollTop(t(l).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(l).scrollLeft()<s.scrollSensitivity?a=t(l).scrollLeft(t(l).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<s.scrollSensitivity&&(a=t(l).scrollLeft(t(l).scrollLeft()+s.scrollSpeed)))),!1!==a&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(o,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,o){var s=o.options;o.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var e=t(this),n=e.offset();this!==o.element[0]&&o.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,o){var s,a,r,l,h,c,d,u,p,f,m=o.options,g=m.snapTolerance,v=n.offset.left,_=v+o.helperProportions.width,b=n.offset.top,y=b+o.helperProportions.height;for(p=o.snapElements.length-1;p>=0;p--)c=(h=o.snapElements[p].left-o.margins.left)+o.snapElements[p].width,u=(d=o.snapElements[p].top-o.margins.top)+o.snapElements[p].height,h-g>_||v>c+g||d-g>y||b>u+g||!t.contains(o.snapElements[p].item.ownerDocument,o.snapElements[p].item)?(o.snapElements[p].snapping&&o.options.snap.release&&o.options.snap.release.call(o.element,e,t.extend(o._uiHash(),{snapItem:o.snapElements[p].item})),o.snapElements[p].snapping=!1):("inner"!==m.snapMode&&(s=g>=Math.abs(d-y),a=g>=Math.abs(u-b),r=g>=Math.abs(h-_),l=g>=Math.abs(c-v),s&&(n.position.top=o._convertPositionTo("relative",{top:d-o.helperProportions.height,left:0}).top),a&&(n.position.top=o._convertPositionTo("relative",{top:u,left:0}).top),r&&(n.position.left=o._convertPositionTo("relative",{top:0,left:h-o.helperProportions.width}).left),l&&(n.position.left=o._convertPositionTo("relative",{top:0,left:c}).left)),f=s||a||r||l,"outer"!==m.snapMode&&(s=g>=Math.abs(d-b),a=g>=Math.abs(u-y),r=g>=Math.abs(h-v),l=g>=Math.abs(c-_),s&&(n.position.top=o._convertPositionTo("relative",{top:d,left:0}).top),a&&(n.position.top=o._convertPositionTo("relative",{top:u-o.helperProportions.height,left:0}).top),r&&(n.position.left=o._convertPositionTo("relative",{top:0,left:h}).left),l&&(n.position.left=o._convertPositionTo("relative",{top:0,left:c-o.helperProportions.width}).left)),!o.snapElements[p].snapping&&(s||a||r||l||f)&&o.options.snap.snap&&o.options.snap.snap.call(o.element,e,t.extend(o._uiHash(),{snapItem:o.snapElements[p].item})),o.snapElements[p].snapping=s||a||r||l||f)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,o){var s,a=o.options,r=t.makeArray(t(a.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});r.length&&(s=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each(function(e){t(this).css("zIndex",s+e)}),this.css("zIndex",s+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,o){var s=t(n.helper),a=o.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(e,n,o){var s=o.options;s._zIndex&&t(n.helper).css("zIndex",s._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,o=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(o)?o:function(t){return t.is(o)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)}
4,_setOption:function(e,n){if("accept"===e)this.accept=t.isFunction(n)?n:function(t){return t.is(n)};else if("scope"===e){var o=t.ui.ddmanager.droppables[this.options.scope];this._splice(o),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var o=n||t.ui.ddmanager.current,s=!1;return!!o&&(o.currentItem||o.element)[0]!==this.element[0]&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=t(this).droppable("instance");return n.options.greedy&&!n.options.disabled&&n.options.scope===o.options.scope&&n.accept.call(n.element[0],o.currentItem||o.element)&&b(o,t.extend(n,{offset:n.element.offset()}),n.options.tolerance,e)?(s=!0,!1):void 0}),!s&&!!this.accept.call(this.element[0],o.currentItem||o.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(o)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var b=t.ui.intersect=function(t,e,n,o){if(!e.offset)return!1;var s,a,r,l,h=(t.positionAbs||t.position.absolute).left+t.margins.left,c=(t.positionAbs||t.position.absolute).top+t.margins.top,d=h+t.helperProportions.width,u=c+t.helperProportions.height,p=e.offset.left,f=e.offset.top,m=p+e.proportions().width,g=f+e.proportions().height;switch(n){case"fit":return h>=p&&m>=d&&c>=f&&g>=u;case"intersect":return h+t.helperProportions.width/2>p&&m>d-t.helperProportions.width/2&&c+t.helperProportions.height/2>f&&g>u-t.helperProportions.height/2;case"pointer":return s=o.pageY,a=e.proportions().height,s>=f&&f+a>s&&(r=o.pageX,l=e.proportions().width,r>=p&&p+l>r);case"touch":return(c>=f&&g>=c||u>=f&&g>=u||f>c&&u>g)&&(h>=p&&m>=h||d>=p&&m>=d||p>h&&d>m);default:return!1}};t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,n){var o,s,a=t.ui.ddmanager.droppables[e.options.scope]||[],r=n?n.type:null,l=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(o=0;a.length>o;o++)if(!(a[o].options.disabled||e&&!a[o].accept.call(a[o].element[0],e.currentItem||e.element))){for(s=0;l.length>s;s++)if(l[s]===a[o].element[0]){a[o].proportions().height=0;continue t}a[o].visible="none"!==a[o].element.css("display"),a[o].visible&&("mousedown"===r&&a[o]._activate.call(a[o],n),a[o].offset=a[o].element.offset(),a[o].proportions({width:a[o].element[0].offsetWidth,height:a[o].element[0].offsetHeight}))}},drop:function(e,n){var o=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&b(e,this,this.options.tolerance,n)&&(o=this._drop.call(this,n)||o),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),o},dragStart:function(e,n){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var o,s,a,r=b
vendor: 4,570 bytes, line 4
4(e,this,this.options.tolerance,n),l=!r&&this.isover?"isout":r&&!this.isover?"isover":null;l&&(this.options.greedy&&(s=this.options.scope,(a=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===s})).length&&((o=t(a[0]).droppable("instance")).greedyChild="isover"===l)),o&&"isover"===l&&(o.isover=!1,o.isout=!0,o._out.call(o,n)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,n),o&&"isout"===l&&(o.isout=!1,o.isover=!0,o._over.call(o,n)))}})},dragStop:function(e,n){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var o=n&&"left"===n?"scrollLeft":"scrollTop",s=!1;return e[o]>0||(e[o]=1,s=e[o]>0,e[o]=0,s)},_create:function(){var e,n=this.options,o=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),n.autoHide&&t(this.element).on("mouseenter",function(){n.disabled||(o._removeClass("ui-resizable-autohide"),o._handles.show())}).on("mouseleave",function(){n.disabled||o.resizing||(o._addClass("ui-resizable-autohide"),o._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,n=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(t,e){this._super(t,e),"handles"===t&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,n,o,s,a,r=this.options,l=this;if(this.handles=r.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),o=this.handles.split(","),this.handles={},n=0;o.length>n;
vendor: 4,900 bytes, line 4
4n++)s="ui-resizable-"+(e=t.trim(o[n])),a=t("<div>"),this._addClass(a,"ui-resizable-handle "+s),a.css({zIndex:r.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(a);this._renderAxis=function(e){var n,o,s,a;for(n in e=e||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:l._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(o=t(this.handles[n],this.element),a=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth(),s=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(s,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){l.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),l.axis=a&&a[1]?a[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var n,o,s=!1;for(n in this.handles)((o=t(this.handles[n])[0])===e.target||t.contains(o,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var n,o,s,a=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),o=this._num(this.helper.css("top")),a.containment&&(n+=t(a.containment).scrollLeft()||0,o+=t(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:o},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:n,top:o},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,o,s=this.originalMousePosition,a=this.axis,r=e.pageX-s.left||0,l=e.pageY-s.top||0,h=this._change[a];return this._updatePrevProperties(),!!h&&(n=h.apply(this,[e,r,l]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),o=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(o)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var n,o,s,a,r,l,h,c=this.options;return this._helper&&(s=(o=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:this.sizeDiff.height,a=o?0:this.sizeDiff.width,r={width:this.helper.width()-a,height:this.helper.height()-s},l=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,h=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,c.animate||this.element.css(t.extend(r,{top:h,left:l})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,o,s,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||t)&&(e=a.minHeight*this.aspectRatio,o=a.minWidth/this.aspectRatio,n=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,e>a.minWidth&&(a.minWidth=e),o>
vendor: 4,934 bytes, line 4
4a.minHeight&&(a.minHeight=o),a.maxWidth>n&&(a.maxWidth=n),a.maxHeight>s&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,o=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===o&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===o&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,o=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,a=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),d=/nw|ne|n/.test(n);return a&&(t.width=e.minWidth),r&&(t.height=e.minHeight),o&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),a&&c&&(t.left=l-e.minWidth),o&&c&&(t.left=l-e.maxWidth),r&&d&&(t.top=h-e.minHeight),s&&d&&(t.top=h-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],o=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)n[e]=parseFloat(o[e])||0,n[e]+=parseFloat(s[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var o=this.originalSize;return{top:this.originalPosition.top+n,height:o.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,o){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,o]))},sw:function(e,n,o){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,o]))},ne:function(e,n,o){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,o]))},nw:function(e,n,o){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,o]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),o=n.options,s=n._proportionallyResizeElements,a=s.length&&/textarea/i.test(s[0].nodeName),r=a&&n._hasScroll(s[0],"left")?0:n.sizeDiff.height,l=a?0:n.sizeDiff.width,h={width:n.size.width-l,height:n.size.height-r},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,d=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(h,d&&c?{top:d,left:c}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var o={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};s&&s.length&&t(s[0]).css({width:o.width,height:o.height}),n._updateCache(o),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,o,s,a,r,l,h=t(this).resizable("instance"),c=h.options,d=h.element,u=c.containment,p=u instanceof t?u.get(0):/parent/.test(u)?d.parent().get(0):u;p&&(h.containerElement=t(p),/document/.test(u)||u===document?(h.c
vendor: 4,808 bytes, line 4
4ontainerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(p),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,o){n[t]=h._num(e.css("padding"+o))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},o=h.containerOffset,s=h.containerSize.height,a=h.containerSize.width,r=h._hasScroll(p,"left")?p.scrollWidth:a,l=h._hasScroll(p)?p.scrollHeight:s,h.parentData={element:p,left:o.left,top:o.top,width:r,height:l}))},resize:function(e){var n,o,s,a,r=t(this).resizable("instance"),l=r.options,h=r.containerOffset,c=r.position,d=r._aspectRatio||e.shiftKey,u={top:0,left:0},p=r.containerElement,f=!0;p[0]!==document&&/static/.test(p.css("position"))&&(u=h),c.left<(r._helper?h.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-h.left:r.position.left-u.left),d&&(r.size.height=r.size.width/r.aspectRatio,f=!1),r.position.left=l.helper?h.left:0),c.top<(r._helper?h.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-h.top:r.position.top),d&&(r.size.width=r.size.height*r.aspectRatio,f=!1),r.position.top=r._helper?h.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),a=/relative|absolute/.test(r.containerElement.css("position")),s&&a?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),n=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-u.left:r.offset.left-h.left)),o=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-u.top:r.offset.top-h.top)),n+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-n,d&&(r.size.height=r.size.width/r.aspectRatio,f=!1)),o+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-o,d&&(r.size.width=r.size.height*r.aspectRatio,f=!1)),f||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,o=e.containerOffset,s=e.containerPosition,a=e.containerElement,r=t(e.helper),l=r.offset(),h=r.outerWidth()-e.sizeDiff.width,c=r.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(a.css("position"))&&t(this).css({left:l.left-s.left-o.left,width:h,height:c}),e._helper&&!n.animate&&/static/.test(a.css("position"))&&t(this).css({left:l.left-s.left-o.left,width:h,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,n){var o=t(this).resizable("instance"),s=o.options,a=o.originalSize,r=o.originalPosition,l={height:o.size.height-a.height||0,width:o.size.width-a.width||0,top:o.position.top-r.top||0,left:o.position.left-r.left||0};t(s.alsoResize).each(function(){var e=t(this),o=t(this).data("ui-resizable-alsoresize"),s={},a=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(a,function(t,e){var n=(o[e]||0)+(l[e]||0);n&&n>=0&&(s[e]=n||null)}),e.css(s)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),o=n.options,s=n.size,a=n.originalSize,r=n.originalPosition,l=n.axis,h="number"==typeof o.grid?[o.grid,o.grid]:o.grid,c=h[0]||1,d=h[1]||1,u=Math.round((s.width-a.width)/c)*c,p=Math.round((s.height-a.height)/d)*d,f=a.width+u,m=a.height+p,g=o.maxWidth&&f>o.maxWidth,v=o.maxHeight&&m>o.maxHeight,_=o.minWidth&&o.minWidth>f,b=o.minHeight&&o.minHeight>m;o.grid=h,_&&(f+=c),b&&(m+=d),g&&(f-=c),v&&(m-=d),/^(se|s|e)$/.test(l)?(n.size.width=f,n.size.height=m):/^(ne)$/.test(l)?(n.size.width=f,n.size.height=m,n.position.top=r.top-p):/^(sw)$/.test(l)?(n.size.width=f,n.size.height=m,n.position.left
vendor: 5,721 bytes, line 4
4=r.left-u):((0>=m-d||0>=f-c)&&(e=n._getPaddingPlusBorderDimensions(this)),m-d>0?(n.size.height=m,n.position.top=r.top-p):(m=d-e.height,n.size.height=m,n.position.top=r.top+a.height-m),f-c>0?(n.size.width=f,n.position.left=r.left-u):(f=c-e.width,n.size.width=f,n.position.left=r.left+a.width-f))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var n=t(this),o=n.offset(),s={left:o.left-e.elementPos.left,top:o.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:n,left:s.left,top:s.top,right:s.left+n.outerWidth(),bottom:s.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var n=this,o=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(o.filter,this.element[0]),this._trigger("start",e),t(o.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),o.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var o=t.data(this,"selectable-item");o.startselected=!0,e.metaKey||e.ctrlKey||(n._removeClass(o.$element,"ui-selected"),o.selected=!1,n._addClass(o.$element,"ui-unselecting"),o.unselecting=!0,n._trigger("unselecting",e,{unselecting:o.element}))}),t(e.target).parents().addBack().each(function(){var o,s=t.data(this,"selectable-item");return s?(o=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),n._removeClass(s.$element,o?"ui-unselecting":"ui-selected")._addClass(s.$element,o?"ui-selecting":"ui-unselecting"),s.unselecting=!o,s.selecting=o,s.selected=o,o?n._trigger("selecting",e,{selecting:s.element}):n._trigger("unselecting",e,{unselecting:s.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var n,o=this,s=this.options,a=this.opos[0],r=this.opos[1],l=e.pageX,h=e.pageY;return a>l&&(n=l,l=a,a=n),r>h&&(n=h,h=r,r=n),this.helper.css({left:a,top:r,width:l-a,height:h-r}),this.selectees.each(function(){var n=t.data(this,"selectable-item"),c=!1,d={};n&&n.element!==o.element[0]&&(d.left=n.left+o.elementPos.left,d.right=n.right+o.elementPos.left,d.top=n.top+o.elementPos.top,d.bottom=n.bottom+o.elementPos.top,"touch"===s.tolerance?c=!(d.left>l||a>d.right||d.top>h||r>d.bottom):"fit"===s.tolerance&&(c=d.left>a&&l>d.right&&d.top>r&&h>d.bottom),c?(n.selected&&(o._removeClass(n.$element,"ui-selected"),n.selected=!1),n.unselecting&&(o._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1),n.selecting||(o._addClass(n.$element,"ui-selecting"),n.selecting=!0,o._trigger("selecting",e,{selecting:n.element}))):(n.selecting&&((e.metaKey||e.ctrlKey)&&n.startselected?(o._removeClass(n.$element,"ui-selecting"),n.selecting=!1,o._addClass(n.$element,"ui-selected"),n.selected=!0):(o._removeClass(n.$element,"ui-selecting"),n.selecting=!1,n.startselected&&(o._addClass(n.$element,"ui-unselecting"),n.unselecting=!0),o._trigger("unselecting",e,{unselecting:n.element}))),n.selected&&(e.metaKey||e.ctrlKey||n.startselected||(o._removeClass(n.$element,"ui-selected"),n.selected=!1,o._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,o._trigger("unselecting",e,{unselecting:n.element})))))}),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var o=t.data(this,"selectable-item");n._removeClass(o.$element,"ui-unselecting"),o.unselecting=!1,o.startselected=!1,n._trigger("unselected",e,{unselected:o.element})}),t(".ui-selecting",this.element[0]).each(function(){var o=t.data(this,"selectable-item");n._removeClass(o.$element,"ui-selecting")._addClass(o.$element,"ui-selected"),o.selecting=!1,o.selected=!0,o.startselected=!0,n._trigger("selected",e,{selected:o.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&e+n>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}
vendor: 8,941 bytes, line 4
4)},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var o=null,s=!1,a=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,a.widgetName+"-item")===a?(o=t(this),!1):void 0}),t.data(e.target,a.widgetName+"-item")===a&&(o=t(e.target)),!!o&&(!this.options.handle||!!n||(t(this.options.handle,o).find("*").addBack().each(function(){this===e.target&&(s=!0)}),!!s))&&(this.currentItem=o,this._removeCurrentsFromItems(),!0))},_mouseStart:function(e,n,o){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!o)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,o,s,a,r=this.options,l=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-this.document.scrollTop()<r.scrollSensitivity?l=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<r.scrollSensitivity&&(l=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),e.pageX-this.document.scrollLeft()<r.scrollSensitivity?l=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(l=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==l&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(s=(o=this.items[n]).item[0],(a=this._intersectsWithPointer(o))&&o.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===a?"next":"prev"]()[0]!==s&&!t.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(o))break;this._rearrange(e,o),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var o=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){o._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),o=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&o.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!o.length&&e.key&&o.push(e.key+"="),o.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),o=[];return e=e||{},n.each(function(){o.push(t(e.item||this).attr(e.attribute||"id")||"")}),o},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,o=this.positionAbs.top,s=o+this.helperProportions.height,a=t.left,r=a+t.width,l=t.top,h=l+t.height,c=this.offset.click.top,d=this.offset.click.left,u="x"===this.options.axis||o+c>l&&h>o+c,p="y"===this.options.axis||e+d>a&&r>e+d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?u&&p:e+this.helperProportions.width/2>a&&r>n-this.helperProportions.width/2&&o+this.helperProportions.height/2>l&&h>s-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,n,o="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!!(o&&s)&&(e=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?"right"===n||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&n||"left"===s&&!n:o&&("down"===o&&e||"up"===o&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;
4return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function n(){l.push(this)}var o,s,a,r,l=[],h=[],c=this._connectWith();if(c&&e)for(o=c.length-1;o>=0;o--)for(s=(a=t(c[o],this.document[0])).length-1;s>=0;s--)(r=t.data(a[s],this.widgetFullName))&&r!==this&&!r.options.disabled&&h.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(h.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),o=h.length-1;o>=0;o--)h[o][0].each(n);return t(l)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;e.length>n;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,o,s,a,r,l,h,c,d=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(n=p.length-1;n>=0;n--)for(o=(s=t(p[n],this.document[0])).length-1;o>=0;o--)(a=t.data(s[o],this.widgetFullName))&&a!==this&&!a.options.disabled&&(u.push([t.isFunction(a.options.items)?a.options.items.call(a.element[0],e,{item:this.currentItem}):t(a.options.items,a.element),a]),this.containers.push(a));for(n=u.length-1;n>=0;n--)for(r=u[n][1],l=u[n][0],o=0,c=l.length;c>o;o++)(h=t(l[o])).data(this.widgetName+"-item",r),d.push({item:h,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var n,o,s,a;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),n=this.items.length-1;n>=0;n--)(o=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&o.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,o.item):o.item,e||(o.width=s.outerWidth(),o.height=s.outerHeight()),a=s.offset(),o.left=a.left,o.top=a.top);
vendor: 1,142 bytes, line 4
4if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)a=this.containers[n].element.offset(),this.containers[n].containerCache.left=a.left,this.containers[n].containerCache.top=a.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){var n,o=(e=e||this).options;o.placeholder&&o.placeholder.constructor!==String||(n=o.placeholder,o.placeholder={element:function(){var o=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+o+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",n||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===o?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===o?e._createTrPlaceholder(e.currentItem,s):"img"===o&&s.attr("src",e.currentItem.attr("src")),n||s.css("visibility","hidden"),s},update:function(t,s){(!n||o.forcePlaceholderSize)&&(s.height()||s.height(e.currentItem.innerHe
vendor: 5,528 bytes, line 4
4ight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(o.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),o.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var o=this;e.children().each(function(){t("<td> </td>",o.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(e){var n,o,s,a,r,l,h,c,d,u,p=null,f=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0])){if(this._intersectsWith(this.containers[n].containerCache)){if(p&&t.contains(this.containers[n].element[0],p.element[0]))continue;p=this.containers[n],f=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0)}if(p){if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(s=1e4,a=null,r=(d=p.floating||this._isFloating(this.currentItem))?"left":"top",l=d?"width":"height",u=d?"pageX":"pageY",o=this.items.length-1;o>=0;o--)t.contains(this.containers[f].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(h=this.items[o].item.offset()[r],c=!1,e[u]-h>this.items[o][l]/2&&(c=!0),s>Math.abs(e[u]-h)&&(s=Math.abs(e[u]-h),a=this.items[o],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}}},_createHelper:function(e){var n=this.options,o=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return o.parents("body").length||t("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(o[0]),o[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!o[0].style.width||n.forceHelperSize)&&o.width(this.currentItem.width()),(!o[0].style.height||n.forceHelperSize)&&o.height(this.currentItem.height()),o},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,o,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),("document"===s.containment||"window"===s.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],n=t(s.containment).offset(),o="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),
vendor: 20,811 bytes, line 4
410)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(o?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(o?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var o="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:n.top+this.offset.relative.top*o+this.offset.parent.top*o-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*o,left:n.left+this.offset.relative.left*o+this.offset.parent.left*o-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*o}},_generatePosition:function(e){var n,o,s=this.options,a=e.pageX,r=e.pageY,l="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(l[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(n=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-s.grid[1]:n+s.grid[1]:n,o=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?o-this.offset.click.left>=this.containment[0]&&o-this.offset.click.left<=this.containment[2]?o:o-this.offset.click.left>=this.containment[0]?o-s.grid[0]:o+s.grid[0]:o)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:l.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:l.scrollLeft())}},_rearrange:function(t,e,n,o){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!o)})},_clear:function(t,e){function n(t,e,n){return function(o){n._trigger(t,o,e._uiHash(e))}}this.reverting=!1;var o,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(o in this._storedCSS)("auto"===this._storedCSS[o]||"static"===this._storedCSS[o])&&(this._storedCSS[o]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push((function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}).call(this,this.currentContainer)),s.push((function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}).call(this,this.currentContainer)))),o=this.containers.length-1;o>=0;o--)e||s.push(n("deactivate",this,this.containers[o])),this.containers[o].containerCache.over&&(s.push(n("out",this,this.containers[o])),this.containers[o].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(o=0;s.length>o;o++)s[o].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,n,o=this.options.icons;o&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+o.header),e.prependTo(this.headers),n=this.active.children(".ui-accordion-header-icon"),this._removeClass(n,o.header)._addClass(n,null,o.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,o=this.headers.length,s=this.headers.index(e.target),a=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:a=this.headers[(s+1)%o];break;case n.LEFT:case n.UP:a=this.headers[(s-1+o)%o];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:a=this.headers[0];break;case n.END:a=this.headers[o-1]}a&&(t(e.target).attr("tabIndex",-1),t(a).attr("tabIndex",0),t(a).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),(!1!==e.active||!0!==e.collapsible)&&this.headers.length?!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active):(e.active=!1,this.active=t()),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,n=this.options,o=n.heightStyle,s=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),n=e.uniqueId().attr("id"),o=e.next(),s=o.uniqueId().attr("id");e.attr("aria-controls",s),o.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===o?(e=s.height(),this.element.siblings(":visible").each(function(){var n=t(this),o=n.css("position");"absolute"!==o&&"fixed"!==o&&(e-=n.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===o&&(e=0,this.headers.next().each(function(){var n=t(this).is(":visible");n||t(this).show(),e=Math.max(e,t(this).css("height","").height()),n||t(this).hide()}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n,o,s=this.options,a=this.active,r=t(e.currentTarget),l=r[0]===a[0],h=l&&s.collapsible,c=h?t():r.next(),d=a.next(),u={oldHeader:a,oldPanel:d,newHeader:h?t():r,newPanel:c};e.preventDefault(),l&&!s.collapsible||!1===this._trigger("beforeActivate",e,u)||(s.active=!h&&this.headers.index(r),this.active=l?t():r,this._toggle(u),this._removeClass(a,"ui-accordion-header-active","ui-state-active"),s.icons&&(n=a.children(".ui-accordion-header-icon"),this._removeClass(n,null,s.icons.activeHeader)._addClass(n,null,s.icons.header)),l||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),s.icons&&(o=r.children(".ui-accordion-header-icon"),this._removeClass(o,null,s.icons.header)._addClass(o,null,s.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,o=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=o,this.options.animate?this._animate(n,o,e):(o.hide(),n.show(),this._toggleComplete(e)),o.attr({"aria-hidden":"true"}),o.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&o.length?o.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,n){var o,s,a,r=this,l=0,h=t.css("box-sizing"),c=t.length&&(!e.length||t.index()<e.index()),d=this.options.animate||{},u=c&&d.down||d,p=function(){r._toggleComplete(n)};return"number"==typeof u&&(a=u),"string"==typeof u&&(s=u),s=s||u.easing||d.easing,a=a||u.duration||d.duration,e.length?t.length?(o=t.show().outerHeight(),e.animate(this.hideProps,{duration:a,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:a,easing:s,complete:p,step:function(t,n){n.now=Math.round(t),"height"!==n.prop?"content-box"===h&&(l+=n.now):"content"!==r.options.heightStyle&&(n.now=Math.round(o-e.outerHeight()-l),l=0)}})):e.animate(this.hideProps,a,s,p):t.animate(this.showProps,a,s,p)},_toggleComplete:function(t){var e=t.oldPanel,n=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target),o=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&o.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.target).closest(".ui-menu-item"),o=t(e.currentTarget);n[0]===o[0]&&(this._removeClass(o.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,o))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var n,o,s,a,r=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:r=!1,o=this.previousFilter||"",a=!1,s=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),s===o?a=!0:s=o+s,n=this._filterMenuItems(s),(n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(s=String.fromCharCode(e.keyCode),n=this._filterMenuItems(s)),n.length?(this.focus(e,n),this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n,o,s,a=this,r=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev(),o=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(o,"ui-menu-icon","ui-icon "+r),n.attr("aria-haspopup","true").prepend(o),e.attr("aria-labelledby",n.attr("id"))}),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(e=l.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),s=(o=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(o,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return({menu:"menuitem",listbox:"option"})[this.options.role]},_setOption:function(t,e){if("icons"===t){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n,o,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),o=this.active.children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",o.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,o,s,a,r,l;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-n-o,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),l=e.outerHeight(),0>s?this.activeMenu.scrollTop(a+s):s+l>r&&this.activeMenu.scrollTop(a+s-r+l))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var o=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));o.length||(o=this.element),this._close(o),this.blur(e),this._removeClass(o.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=o},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
4se")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var o;this.active&&(o="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),o&&o.length&&this.active||(o=this.activeMenu.find(this.options.items)[e]()),this.focus(n,o)},nextPage:function(e){var n,o,s;return this.active?void(this.isLastItem()||(this._hasScroll()?(o=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return 0>(n=t(this)).offset().top-o-s}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var n,o,s;return this.active?void(this.isFirstItem()||(this._hasScroll()?(o=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(n=t(this)).offset().top-o+s>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=RegExp("^"+e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,o,s=this.element[0].nodeName.toLowerCase(),a="textarea"===s,r="input"===s;this.isMultiLine=a||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[a||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return e=!0,o=!0,void(n=!0);e=!1,o=!1,n=!1;var a=t.ui.keyCode;switch(s.keyCode){case a.PAGE_UP:e=!0,this._move("previousPage",s);break;case a.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case a.UP:e=!0,this._keyEvent("previous",s);break;case a.DOWN:e=!0,this._keyEvent("next",s);break;case a.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case a.TAB:this.menu.active&&this.menu.select(s);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:n=!0,this._searchTimeout(s)}},keypress:function(o){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&o.preventDefault());if(!n){var s=t.ui.keyCode;switch(o.keyCode){case s.PAGE_UP:this._move("previousPage",o);break;case s.PAGE_DOWN:this._move("nextPage",o);break;case s.UP:this._keyEvent("previous",o);break;case s.DOWN:this._keyEvent("next",o)}}},input:function(t){return o?(o=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,n){var o,s;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(s=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s}
vendor: 7,030 bytes, line 4
4)&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),void((o=n.item.attr("aria-label")||s.value)&&t.trim(o).length&&(this.liveRegion.children().hide(),t("<div>").text(o).appendTo(this.liveRegion))))},menuselect:function(e,n){var o=n.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=o})),!1!==this._trigger("select",e,{item:o})&&this._value(o.value),this.term=this._value(),this.close(e),this.selectedItem=o}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var n=this.menu.element[0];return e.target===this.element[0]||e.target===n||t.contains(n,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,o=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,o){o(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,s){o.xhr&&o.xhr.abort(),o.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),o=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||n||o)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var o=this;t.each(n,function(t,n){o._renderItemData(e,n)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").append(t("<div>").text(n.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var o=RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return o.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}}),t.ui.autocomplete;var y=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,n=[];t.each(this.options.items,function(o,s){var a,r={};return s?"controlgroupLabel"===o?((a=e.element.find(s)).each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(a,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(a.get()))):void(t.fn[o]&&(r=e["_"+o+"Options"]?e["_"+o+"Options"]("middle"):{classes:{}},e.element.find(s).each(function(){var s=t(this),a=s[o]("instance"),l=t.widget.extend({},r);
4if("button"!==o||!s.parent(".ui-spinner").length){a||(a=s[o]()[o]("instance")),a&&(l.classes=e._resolveClassesValues(l.classes,a)),s[o](l);var h=s[o]("widget");t.data(h[0],"ui-controlgroup-data",a||s[o]("instance")),n.push(h[0])}}))):void 0}),this.childWidgets=t(t.unique(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var n=t(this).data("ui-controlgroup-data");n&&n[e]&&n[e]()})},_updateCornerClass:function(t,e){var n=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,n)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,o={classes:{}};return o.classes[e]=({middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"})[t],o},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:({middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}})[t]}},_resolveClassesValues:function(e,n){var o={};return t.each(e,function(s){var a=n.options.classes[s]||"";a=t.trim(a.replace(y,"")),o[s]=(a+" "+e[s]).replace(/\s+/g," ")}),o},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,o){var s=e[o]().data("ui-controlgroup-data");if(s&&n["_"+s.widgetName+"Options"]){var a=n["_"+s.widgetName+"Options"](1===e.length?"only":o);a.classes=n._resolveClassesValues(a.classes,s),s.element[s.widgetName](a)}else n._updateCornerClass(e[o](),o)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,n,o=this,s=this._super()||{};return this._readType(),n=this.element.labels(),this.label=t(n[n.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){o.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(s.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(s.disabled=e),s},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();
4this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,n="input[name='"+t.ui.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(n):t(n).filter(function(){return 0===t(this).form().length})).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(e){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>
4"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,n){var o="iconPosition"!==e,s=o?this.options.iconPosition:n;this.icon?o&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),o&&this._addClass(this.icon,null,n),this._attachIcon(s),"top"===s||"bottom"===s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 6,469 bytes, line 4
4pace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,n=void 0===t.icon?this.options.icon:t.icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),t.fn.button=(d=t.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?d.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0==arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return s(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var o,s,a;s="div"===(o=e.nodeName.toLowerCase())||"span"===o,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(a=this._newInst(t(e),s)).settings=t.extend({},n||{}),"input"===o?this._connectDatepicker(e,a):s&&this._inlineDatepicker(e,a)},_newInst:function(e,o){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:o,dpDiv:o?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var o=t(e);n.append=t([]),n.trigger=t([]),o.hasClass(this.markerClassName)||(this._attachments(o,n),o.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var o,s,a,r=this._get(n,"appendText"),l=this._get(n,"isRTL");n.append&&n.append.remove(),r&&(n.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[l?"before":"after"](n.append)),e.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),("focus"===(o=this._get(n,"showOn"))||"both"===o)&&e.on("focus",this._showDatepicker),("button"===o||"both"===o)&&(s=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),n.trigger=t(this._get(n,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):t("<button type='button'></button>").addClass(this._triggerClass).html(a?t("<img/>").attr({src:a,alt:s,title:s}):s)),e[l?"before":"after"](n.trigger),n.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,n,o,s,a=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(n=0,o=0,s=0;t.length>s;s++)t[s].length>n&&(n=t[s].length,o=s);return o},a.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),t.input.attr("size",this._formatDate(t,a).length)}},_inlineDatepicker:function(e,n){var o=t(e);o.hasClass(this.markerClassName)||(o.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,o,a,r){var l,h,c,d,u,p=this._dialogInst;return p||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/>
4"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",p)),s(p.settings,a||{}),n=n&&n.constructor===Date?this._formatDate(p,n):n,this._dialogInput.val(n),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(h=document.documentElement.clientWidth,c=document.documentElement.clientHeight,d=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+d,c/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=o,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(e){var n,o=t(e),s=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===n?(s.append.remove(),s.trigger.remove(),o.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===n||"span"===n)&&o.removeClass(this.markerClassName).empty(),f===s&&(f=null))},_enableDatepicker:function(e){var n,o,s=t(e),a=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===n||"span"===n)&&((o=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var n,o,s=t(e),a=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===n||"span"===n)&&((o=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),o.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,o){var a,r,l,h,c=this._getInst(e);return 2==arguments.length&&"string"==typeof n?"defaults"===n?t.extend({},t.datepicker._defaults):c?"all"===n?t.extend({},c.settings):this._get(c,n):null:(a=n||{},"string"==typeof n&&((a={})[n]=o),void(c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(e,!0),l=this._getMinMaxDate(c,"min"),h=this._getMinMaxDate(c,"max"),s(c.settings,a),null!==l&&void 0!==a.dateFormat&&void 0===a.minDate&&(c.settings.minDate=this._formatDate(c,l)),null!==h&&void 0!==a.dateFormat&&void 0===a.maxDate&&(c.settings.maxDate=this._formatDate(c,h)),"disabled"in a&&(a.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,o,s,a=t.datepicker._getInst(e.target),r=!0,l=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",a.dpDiv))[0]&&t.datepicker._selectDay(e.target,a.selectedMonth,a.selectedYear,s[0]),(n=t.datepicker._get(a,"onSelect"))?(o=t.datepicker._formatDate(a),n.apply(a.input?a.input[0]:null,[o,a])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,l?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(a,"stepBigMonths"):-t.datepicker._get(a,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,l?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(a,"stepBigMonths"):+t.datepicker._get(a,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,o,s=t.datepicker._getInst(e.target);return t.datepicker._get(s,"constrainInput")?(n=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),o=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">o||!n||n.indexOf(o)>-1):void 0},_doKeyUp:function(e){var n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n))&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(t){}return!0},_showDatepicker:function(e){if("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var n,o,a,r,l,h,c;n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(a=(o=t.datepicker._get(n,"beforeShow"))?o.apply(e,[e,n]):{})&&(s(n.settings,a),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return!(r|="fixed"===t(this).css("position"))}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,r),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:l.left+"px",to
4p:l.top+"px"}),n.inline||(h=t.datepicker._get(n,"showAnim"),c=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(t){for(var e,n;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&!isNaN(n=parseInt(t.css("zIndex"),10))&&0!==n)return n;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[h]?n.dpDiv.show(h,t.datepicker._get(n,"showOptions"),c):n.dpDiv[h||"show"](h?c:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n))}},_updateDatepicker:function(e){this.maxRows=4,f=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,s=this._getNumberOfMonths(e),a=s[1],r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&e.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(n=e.yearshtml,setTimeout(function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),n=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,n,o){var s=e.dpDiv.outerWidth(),a=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,l=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(o?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(o?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?s-r:0,n.left-=o&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=o&&n.top===e.input.offset().top+l?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+s>h&&h>s?Math.abs(n.left+s-h):0),n.top-=Math.min(n.top,n.top+a>c&&c>a?Math.abs(a+l):0),n},_findPos:function(e){for(var n,o=this._getInst(e),s=this._get(o,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(n=t(e).offset()).left,n.top]},_hideDatepicker:function(e){var n,o,s,a,r=this._curInst;!r||e&&r!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(r,"showAnim"),o=this._get(r,"duration"),s=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[n]||t.effects[n])?r.dpDiv.hide(n,t.datepicker._get(r,"showOptions"),o,s):r.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?o:null,s),n||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),o=t.datepicker._getInst(n[0]);(n[0].id!==t.datepicker._mainDivId&&0===n.parents("#"+t.datepicker._mainDivId).length&&!n.hasClass(t.datepicker.markerClassName)&&!n.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||n.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==o)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,o){var s=t(e),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,n+("M"===o?this._get(a,"showCurrentAtPos"):0),o),this._updateDatepicker(a))},_gotoToday:function(e){var n,o=t(e),s=this._getInst(o[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(n=new Date,s.selectedDay=n.getDate(),s.drawMonth=s.selectedMonth=n.getMonth(),s.drawYear=s.selectedYear=n.getFullYear()),this._notifyChange(s),this._adjustDate(o)},_selectMonthYear:function(e,n,o){var s=t(e),a=this._getInst(s[0]);a["selected"+("M"===o?"Month":"Year")]=a["draw"+("M"===o?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(e,n,o,s){var a,r=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=t("a",s).html(),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=o,this._selectDate(e,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var o,s=t(e),a=this._getInst(s[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(
4a),(o=this._get(a,"onSelect"))?o.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var n,o,s,a=this._get(e,"altField");a&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),o=this._getDate(e),s=this.formatDate(n,o,this._getFormatConfig(e)),t(a).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,o){if(null==e||null==n)throw"Invalid arguments";if(""==(n="object"==typeof n?""+n:n+""))return null;var s,a,r,l,h=0,c=(o?o.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),u=(o?o.dayNamesShort:null)||this._defaults.dayNamesShort,p=(o?o.dayNames:null)||this._defaults.dayNames,f=(o?o.monthNamesShort:null)||this._defaults.monthNamesShort,m=(o?o.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,_=-1,b=-1,y=!1,w=function(t){var n=e.length>s+1&&e.charAt(s+1)===t;return n&&s++,n},x=function(t){var e=w(t),o="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=RegExp("^\\d{"+("y"===t?o:1)+","+o+"}"),a=n.substring(h).match(s);if(!a)throw"Missing number at position "+h;return h+=a[0].length,parseInt(a[0],10)},C=function(e,o,s){var a=-1,r=t.map(w(e)?s:o,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var o=e[1];return n.substr(h,o.length).toLowerCase()===o.toLowerCase()?(a=e[0],h+=o.length,!1):void 0}),-1!==a)return a+1;throw"Unknown name at position "+h},k=function(){if(n.charAt(h)!==e.charAt(s))throw"Unexpected literal at position "+h;h++};for(s=0;e.length>s;s++)if(y)"'"!==e.charAt(s)||w("'")?k():y=!1;else switch(e.charAt(s)){case"d":_=x("d");break;case"D":C("D",u,p);break;case"o":b=x("o");break;case"m":v=x("m");break;case"M":v=C("M",f,m);break;case"y":g=x("y");break;case"@":g=(l=new Date(x("@"))).getFullYear(),v=l.getMonth()+1,_=l.getDate();break;case"!":g=(l=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),v=l.getMonth()+1,_=l.getDate();break;case"'":w("'")?k():y=!0;break;default:k()}if(n.length>h&&(r=n.substr(h),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d>=g?0:-100)),b>-1)for(v=1,_=b;!((a=this._getDaysInMonth(g,v-1))>=_);)v++,_-=a;if((l=this._daylightSavingAdjust(new Date(g,v-1,_))).getFullYear()!==g||l.getMonth()+1!==v||l.getDate()!==_)throw"Invalid date";return l},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,n){if(!e)return"";var o,s=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,r=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,l=(n?n.monthNames:null)||this._defaults.monthNames,h=function(e){var n=t.length>o+1&&t.charAt(o+1)===e;return n&&o++,n},c=function(t,e,n){var o=""+e;if(h(t))for(;n>o.length;)o="0"+o;return o},d=function(t,e,n,o){return h(t)?o[e]:n[e]},u="",p=!1;if(e)for(o=0;t.length>o;o++)if(p)"'"!==t.charAt(o)||h("'")?u+=t.charAt(o):p=!1;else switch(t.charAt(o)){case"d":u+=c("d",e.getDate(),2);break;case"D":u+=d("D",e.getDay(),s,a);break;case"o":u+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",e.getMonth()+1,2);break;case"M":u+=d("M",e.getMonth(),r,l);break;case"y":u+=h("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":p=!0;break;default:u+=t.charAt(o)}return u},_possibleChars:function(t){var e,n="",o=!1,s=function(n){var o=t.length>e+1&&t.charAt(e+1)===n;return o&&e++,o};for(e=0;t.length>e;e++)if(o)"'"!==t.charAt(e)||s("'")?n+=t.charAt(e):o=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":s("'")?n+="'":o=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),o=t.lastVal=t.input?t.input.val():null,
4s=this._getDefaultDate(t),a=s,r=this._getFormatConfig(t);try{a=this.parseDate(n,o,r)||s}catch(t){o=e?"":o}t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),t.currentDay=o?a.getDate():0,t.currentMonth=o?a.getMonth():0,t.currentYear=o?a.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,n,o){var s,a=null==n||""===n?o:"string"==typeof n?function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),n,t.datepicker._getFormatConfig(e))}catch(t){}for(var o=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=o.getFullYear(),a=o.getMonth(),r=o.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=l.exec(n);h;){switch(h[2]||"d"){case"d":case"D":r+=parseInt(h[1],10);break;case"w":case"W":r+=7*parseInt(h[1],10);break;case"m":case"M":a+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,a))}h=l.exec(n)}return new Date(s,a,r)}(n):"number"==typeof n?isNaN(n)?o:((s=new Date).setDate(s.getDate()+n),s):new Date(n.getTime());return(a=a&&"Invalid Date"==""+a?o:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var o=t.selectedMonth,s=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),o===t.selectedMonth&&s===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(e?this._formatDate(t):"")},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),o="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){t(this).on(this.getAttribute("data-event"),{prev:function(){t.datepicker._adjustDate(o,-n,"M")},next:function(){t.datepicker._adjustDate(o,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(o)},selectDay:function(){return t.datepicker._selectDay(o,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(o,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(o,this,"Y"),!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,o,s,a,r,l,h,c,d,u,p,f,m,g,v,_,b,y,w,x,C,k,T,S,E,P,I,D,A,M,O,N,z,H,j,W,B,R,F=new Date,q=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),Z=this._get(t,"isRTL"),U=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),G=this._get(t,"showCurrentAtPos"),Q=this._get(t,"stepMonths"),X=1!==K[0]||1!==K[1],J=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),tt=this._getMinMaxDate(t,"min"),te=this._getMinMaxDate(t,"max"),ti=t.drawMonth-G,tn=t.drawYear;if(0>ti&&(ti+=12,tn--),te)for(e=this._daylightSavingAdjust(new Date(te.getFullYear(),te.getMonth()-K[0]*K[1]+1,te.getDate())),e=tt&&tt>e?tt:e;this._daylightSavingAdjust(new Date(tn,ti,1))>e;)0>--ti&&(ti=11,tn--);for(t.drawMonth=ti,t.drawYear=tn,n=this._get(t,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(tn,ti-Q,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,-1,tn,ti)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Z?"e":"w")+"'>"+n+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Z?"e":"w")+"'>"+n+"</span></a>",s=this._get(t,"nextText"),s=Y?this.formatDate(s,this._daylightSavingAdjust(new Date(tn,ti+Q,1)),this._getFormatConfig(t)):s,a=this._canAdjustMonth(t,1,tn,ti)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(Z?"w":"e")+"'>"+s+"</span></a>
4":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(Z?"w":"e")+"'>"+s+"</span></a>",r=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?J:q,r=Y?this.formatDate(r,l,this._getFormatConfig(t)):r,h=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",c=U?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Z?h:"")+(this._isInRange(t,l)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(Z?"":h)+"</div>":"",d=isNaN(d=parseInt(this._get(t,"firstDay"),10))?0:d,u=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),m=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),w="",C=0;K[0]>C;C++){for(k="",this.maxRows=4,T=0;K[1]>T;T++){if(S=this._daylightSavingAdjust(new Date(tn,ti,t.selectedDay)),E=" ui-corner-all",P="",X){if(P+="<div class='ui-datepicker-group",K[1]>1)switch(T){case 0:P+=" ui-datepicker-group-first",E=" ui-corner-"+(Z?"right":"left");break;case K[1]-1:P+=" ui-datepicker-group-last",E=" ui-corner-"+(Z?"left":"right");break;default:P+=" ui-datepicker-group-middle",E=""}P+="'>"}for(P+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+E+"'>"+(/all|left/.test(E)&&0===C?Z?a:o:"")+(/all|right/.test(E)&&0===C?Z?o:a:"")+this._generateMonthYearHeader(t,ti,tn,tt,te,C>0||T>0,m,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;7>x;x++)D=(x+d)%7,I+="<th scope='col'"+((x+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[D]+"'>"+f[D]+"</span></th>";for(P+=I+"</tr></thead><tbody>",A=this._getDaysInMonth(tn,ti),tn===t.selectedYear&&ti===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,A)),O=Math.ceil(((M=(this._getFirstDayOfMonth(tn,ti)-d+7)%7)+A)/7),N=X&&this.maxRows>O?this.maxRows:O,this.maxRows=N,z=this._daylightSavingAdjust(new Date(tn,ti,1-M)),H=0;N>H;H++){for(P+="<tr>",j=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(z)+"</td>":"",x=0;7>x;x++)W=v?v.apply(t.input?t.input[0]:null,[z]):[!0,""],R=(B=z.getMonth()!==ti)&&!b||!W[0]||tt&&tt>z||te&&z>te,j+="<td class='"+((x+d+6)%7>=5?" ui-datepicker-week-end":"")+(B?" ui-datepicker-other-month":"")+(z.getTime()===S.getTime()&&ti===t.selectedMonth&&t._keyEvent||y.getTime()===z.getTime()&&y.getTime()===S.getTime()?" "+this._dayOverClass:"")+(R?" "+this._unselectableClass+" ui-state-disabled":"")+(B&&!_?"":" "+W[1]+(z.getTime()===J.getTime()?" "+this._currentClass:"")+(z.getTime()===q.getTime()?" ui-datepicker-today":""))+"'"+((!B||_)&&W[2]?" title='"+W[2].replace(/'/g,"'")+"'":"")+(R?"":" data-handler='selectDay' data-event='click' data-month='"+z.getMonth()+"' data-year='"+z.getFullYear()+"'")+">"+(B&&!_?" ":R?"<span class='ui-state-default'>"+z.getDate()+"</span>":"<a class='ui-state-default"+(z.getTime()===q.getTime()?" ui-state-highlight":"")+(z.getTime()===J.getTime()?" ui-state-active":"")+(B?" ui-priority-secondary":"")+"' href='#'>"+z.getDate()+"</a>")+"</td>",z.setDate(z.getDate()+1),z=this._daylightSavingAdjust(z);P+=j+"</tr>"}++ti>11&&(ti=0,tn++),P+="</tbody></table>"+(X?"</div>"+(K[0]>0&&T===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),k+=P}w+=k}return w+=c,t._keyEvent=!1,w},_generateMonthYearHeader:function(t,e,n,o,s,a,r,l){var h,c,d,u,p,f,m,g,v=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",w="";if(a||!v)w+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(h=o&&o.getFullYear()===n,c=s&&s.getFullYear()===n,w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",d=0;12>d;d++)(!h||d>=o.getMonth())&&(!c||s.getMonth()>=d)&&(w+="<option value='"+d+"'"+(d===e?" selected='selected'":"")+">"+l[d]+"</option>");w+="</select>"}if(b||(y+=w+(!a&&v&&_?"":" ")),!t.yearshtml){if(t.yearshtml="",a||!_)y+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(u=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),g=Math.max(m=(f=function(t){var e=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10);return isNaN(e)?p:e})(u[0]),f(u[1]||"")),m=o?Math.max(m,o.getFullYear()):m,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml
vendor: 9,265 bytes, line 4
4+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=m;m++)t.yearshtml+="<option value='"+m+"'"+(m===n?" selected='selected'":"")+">"+m+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}}return y+=this._get(t,"yearSuffix"),b&&(y+=(!a&&v&&_?"":" ")+w),y+="</div>"},_adjustInstDate:function(t,e,n){var o=t.selectedYear+("Y"===n?e:0),s=t.selectedMonth+("M"===n?e:0),a=Math.min(t.selectedDay,this._getDaysInMonth(o,s))+("D"===n?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(o,s,a)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),("M"===n||"Y"===n)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),s=n&&n>e?n:e;return o&&s>o?o:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,o){var s=this._getNumberOfMonths(t),a=this._daylightSavingAdjust(new Date(n,o+(0>e?e:s[0]*s[1]),1));return 0>e&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(t,a)},_isInRange:function(t,e){var n,o,s=this._getMinMaxDate(t,"min"),a=this._getMinMaxDate(t,"max"),r=null,l=null,h=this._get(t,"yearRange");return h&&(n=h.split(":"),o=(new Date).getFullYear(),r=parseInt(n[0],10),l=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(r+=o),n[1].match(/[+\-].*/)&&(l+=o)),(!s||e.getTime()>=s.getTime())&&(!a||e.getTime()<=a.getTime())&&(!r||e.getFullYear()>=r)&&(!l||l>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,o){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(o,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2==arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new e,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;0>n&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var o=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),a=Math.max.apply(null,s);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),o=!0),o&&!n&&this._trigger("focus",e),o},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function n(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),o=n.filter(":first"),s=n.filter(":last");e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?(e.target===o[0]||e.target===this.uiDialog[0])&&e.shiftKey&&(this._delay(function(){s.trigger("focus")}),e.preventDefault()):(this._delay(function(){o.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prepe
vendor: 18,322 bytes, line 4
4ndTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||t.isArray(n)&&!n.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(n,function(n,o){var s,a;o=t.isFunction(o)?{click:o,text:n}:o,s=(o=t.extend({type:"button"},o)).click,a={icon:o.icon,iconPosition:o.iconPosition,showLabel:o.showLabel,icons:o.icons,text:o.text},delete o.click,delete o.icon,delete o.iconPosition,delete o.showLabel,delete o.icons,"boolean"==typeof o.text&&delete o.text,t("<button></button>",o).button(a).appendTo(e.uiButtonSet).on("click",function(){s.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var n=this,o=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(o,s){n._addClass(t(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",o,e(s))},drag:function(t,o){n._trigger("drag",t,e(o))},stop:function(s,a){var r=a.offset.left-n.document.scrollLeft(),l=a.offset.top-n.document.scrollTop();o.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(l>=0?"+":"")+l,of:n.window},n._removeClass(t(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",s,e(a))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var n=this,o=this.options,s=o.resizable,a=this.uiDialog.css("position");this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:o.maxWidth,maxHeight:o.maxHeight,minWidth:o.minWidth,minHeight:this._minHeight(),handles:"string"==typeof s?s:"n,e,s,w,se,sw,ne,nw",start:function(o,s){n._addClass(t(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",o,e(s))},resize:function(t,o){n._trigger("resize",t,e(o))},stop:function(s,a){var r=n.uiDialog.offset(),l=r.left-n.document.scrollLeft(),h=r.top-n.document.scrollTop();o.height=n.uiDialog.height(),o.width=n.uiDialog.width(),o.position={my:"left top",at:"left"+(l>=0?"+":"")+l+" top"+(h>=0?"+":"")+h,of:n.window},n._removeClass(t(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",s,e(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);-1!==n&&e.splice(n,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var n=this,o=!1,s={};t.each(e,function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(o=!0),t in n.resizableRelatedOptions&&(s[t]=e)}),o&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,n){var o,s,a=this.uiDialog;"disabled"!==e&&(this._super(e,n),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((o=a.is(":data(ui-draggable)"))&&!n&&a.draggable("destroy"),!o&&n&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((s=a.is(":data(ui-resizable)"))&&!n&&a.resizable("destroy"),s&&"string"==typeof n&&a.resizable("option","handles",n),s||!1===n||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,n,o=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),o.minWidth>o.width&&(o.width=o.minWidth),t=this.uiDialog.css({height:"auto",width:o.width}).outerHeight(),e=Math.max(0,o.minHeight-t),n="number"==typeof o.maxHeight?Math.max(0,o.maxHeight-t):"none","auto"===o.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,o.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,n=this,o=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(o).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){n._rendered||n._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,n){t.preventDefault(),e._setSelection(),e._select(n.item.data("ui-selectmenu-item"),t)},focus:function(t,n){var o=n.item.data("ui-selectmenu-item");null!=e.focusIndex&&o.index!==e.focusIndex&&(e._trigger("focus",t,{item:o}),e.isOpen||e._select(o,t)),e.focusIndex=o.index,e.button.attr("aria-activedescendant",e.menuItems.eq(o.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var n=t("<span>");return this._setText(n,e.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(e,n){var o=this,s="";t.each(n,function(n,a){var r;a.optgroup!==s&&(r=t("<li>",{text:a.optgroup}),o._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(e),s=a.optgroup),o._renderItemData(e,a)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,n){var o=t("<li>"),s=t("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(o,null,"ui-state-disabled"),this._setText(s,n.label),o.append(s).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var n,o,s=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(o="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](s).eq(-1):n[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,o)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var n=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),n=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),n=!1}n&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return!1===t?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var n=this,o=[];e.each(function(e,s){o.push(n._parseOption(t(s),e))}),this.items=o},_parseOption:function(t,e){var n=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null}
vendor: 4,353 bytes, line 4
4,numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,o=this.options,s=this.element.find(".ui-slider-handle"),a=[];for(n=o.values&&o.values.length||1,s.length>n&&(s.slice(n).remove(),s=s.slice(0,n)),e=s.length;n>e;e++)a.push("<span tabindex='0'></span>");this.handles=s.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,o,s,a,r,l,h,c=this,d=this.options;return!d.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},o=this._normValueFromMouse(n),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var n=Math.abs(o-c.values(e));(s>n||s===n&&(e===c._lastChangedValue||c.values(e)===d.min))&&(s=n,a=t(this),r=e)}),!1!==this._start(e,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),l=a.offset(),h=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-l.left-a.width()/2,top:e.pageY-l.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,o),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,o,s,a;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(o=n/e)>1&&(o=1),0>o&&(o=0),"vertical"===this.orientation&&(o=1-o),s=this._valueMax()-this._valueMin(),a=this._valueMin()+o*s,this._trimAlignValue(a)},_uiHash:function(t,e,n){var o={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(o.value=void 0!==e?e:this.values(t),o.values=n||this.values()),o},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var o,s=this.value(),a=this.values();this._hasMultipleValues()&&(o=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(o,n):Math.max(o,n)),a[e]=n),n!==s&&!1!==this._trigger("slide",t,this._uiHash(e,n,a))&&(this._hasMultipleValues()?this.values(e,n
vendor: 4,195 bytes, line 4
4):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var o,s,a;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(o=this.options.values,s=arguments[0],a=0;o.length>a;a+=1)o[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()},_setOption:function(e,n){var o,s=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),o=s-1;o>=0;o--)this._change(null,o);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,n,o;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),o=0;n.length>o;o+=1)n[o]=this._trimAlignValue(n[o]);return n}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,o=t-n;return 2*Math.abs(n)>=e&&(o+=n>0?e:-e),parseFloat(o.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,n=e.indexOf(".");return -1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,o,s,a,r=this.options.range,l=this.options,h=this,c=!this._animateOff&&l.animate,d={};this._hasMultipleValues()?this.handles.each(function(o){n=100*((h.values(o)-h._valueMin())/(h._valueMax()-h._valueMin())),d["horizontal"===h.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](d,l.animate),!0===h.options.range&&("horizontal"===h.orientation?(0===o&&h.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},l.animate),1===o&&h.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:l.animate})):(0===o&&h.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},l.animate),1===o&&h.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:l.animate}))),e=n}):(o=this.value(),s=this._valueMin(),n=(a=this._valueMax())!==s?100*((o-s)/(a-s)):0,d["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](d,l.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},l.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,
vendor: 2,442 bytes, line 4
41)[c?"animate":"css"]({width:100-n+"%"},l.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},l.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},l.animate))},_handleEvents:{keydown:function(e){var n,o,s,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,a)))return}switch(s=this.options.step,n=o=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;o=this._trimAlignValue(n+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;o=this._trimAlignValue(n-s)}this._slide(e,a,o)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),n=this.element;return t.each(["min","max","step"],function(t,o){var s=n.attr(o);null!=s&&s.length&&(e[o]=s)}),e}
4,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){var n;function o(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n}))}n=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),o.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,o.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var n=this.options,o=t.ui.keyCode;switch(e.keyCode){case o.UP:return this._repeat(null,1,e),!0;case o.DOWN:return this._repeat(null,-1,e),!0;case o.PAGE_UP:return this._repeat(null,n.page,e),!0;case o.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_start:function(t){return(!!this.spinning||!1!==this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:n})||(this._value(n),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,n=e.indexOf(".");return -1===n?0:e.length-n-1},_adjustValue:function(t){var e,n,o=this.options;return n=Math.round((n=t-(e=null!==o.min?o.min:0))/o.step)*o.step,t=parseFloat((t=e+n).toFixed(this._precision())),null!==o.max&&t>o.max?o.max:null!==o.min&&o.min>t?o.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var n,o,s;return"culture"===t||"numberFormat"===t?(n=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(n))):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(o=this.buttons.first().find(".ui-icon"),this._removeClass(o,null,this.options.icons.up),this._addClass(o,null,e.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:a(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&null!==(n=this._parse(t))&&(e||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:a(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:a(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin(-((t||1)*this.options.step)),this._stop())},pageUp:a(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:a(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void a(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 13,335 bytes, line 4
4),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(u=/#.*$/,function(t){var e,n;e=t.href.replace(u,""),n=location.href.replace(u,"");try{e=decodeURIComponent(e)}catch(t){}try{n=decodeURIComponent(n)}catch(t){}return t.hash.length>1&&e===n}),_create:function(){var e=this,n=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,n.collapsible),this._processTabs(),n.active=this._initialActive(),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(n.active):t(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var e=this.options.active,n=this.options.collapsible,o=location.hash.substring(1);return null===e&&(o&&this.tabs.each(function(n,s){return t(s).attr("aria-controls")===o?(e=n,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!n&&0),!n&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(t.ui.safeActiveElement(this.document[0])).closest("li"),o=this.tabs.index(n),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:o++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,o--;break;case t.ui.keyCode.END:o=this.anchors.length-1;break;case t.ui.keyCode.HOME:o=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(o);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(o!==this.options.active&&o);default:return}e.preventDefault(),clearTimeout(this.activating),o=this._focusNextTab(o,s),e.ctrlKey||e.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(o).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",o)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){for(var o=this.tabs.length-1;-1!==t.inArray((e>o&&(e=0),0>e&&(e=o),e),this.options.disabled);)e=n?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(t){return n.index(t)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,n=this.tabs,o=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(n,o){var s,a,r,l=t(o).uniqueId().attr("id"),h=t(o).closest("li"),c=h.attr("aria-controls");e._isLocal(o)?(r=(s=o.hash).substring(1),a=e.element.find(e._sanitizeSelector(s))):(s="#"+(r=h.attr("aria-controls")||t({}).uniqueId()[0].id),(a=e.element.find(s)).length||(a=e._createPanel(r)).insertAfter(e.panels[n-1]||e.tablist),a.attr("aria-live","polite")),a.length&&(e.panels=e.panels.add(a)),c&&h.data("ui-tabs-aria-controls",c),h.attr({"aria-controls":r,"aria-labelledby":l}),a.attr("aria-labelledby",l)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),n&&(this._off(n.not(this.tabs)),this._off(o.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var n,o,s;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),s=0;o=this.tabs[s];s++)n=t(o),!0===e||-1!==t.inArray(s,e)?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var n={};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,o=this.element.parent();"fill"===e?(n=o.height()-(this.element.outerHeight()-this.element.height()),this.element.siblings(":visible").each(function(){var e=t(this),o=e.css("position");"absolute"!==o&&"fixed"!==o&&(n-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,o=this.active,s=t(e.currentTarget).closest("li"),a=s[0]===o[0],r=a&&n.collapsible,l=r?t():this._getPanelForTab(s),h=o.length?this._getPanelForTab(o):t(),c={oldTab:o,oldPanel:h,newTab:r?t():s,newPanel:l};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||a&&!n.collapsible||!1===this._trigger("beforeActivate",e,c)||(n.active=!r&&this.tabs.index(s),this.active=a?t():s,this.xhr&&this.xhr.abort(),h.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(s),e),this._toggle(e,c))},_toggle:function(e,n){function o(){a.running=!1,a._trigger("activate",e,n)}function s(){a._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),r.length&&a.options.show?a._show(r,a.options.show,o):(r.show(),o())}var a=this,r=n.newPanel,l=n.oldPanel;this.running=!0,l.length&&this.options.hide?this._hide(l,this.options.hide,function(){a._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),l.hide(),s()),l.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&l.length?n.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var n,o=this._findActive(e);o[0]!==this.active[0]&&(o.length||(o=this.active),n=o.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var n=this.options.disabled;!1!==n&&(void 0===e?n=!1:(e=this._getIndex(e),n=t.isArray(n)?t.map(n,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,n){return n!==e?n:null})),this._setOptionDisabled(n))},disable:function(e){var n=this.options.disabled;if(!0!==n){if(void 0===e)n=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,n))return;n=t.isArray(n)?t.merge([e],n).sort():[e]}this._setOptionDisabled(n)}},load:function(e,n){e=this._getIndex(e);var o=this,s=this.tabs.eq(e),a=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),l={tab:s,panel:r},h=function(t,e){"abort"===e&&o.panels.stop(!1,!0),o._removeClass(s,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr};this._isLocal(a[0])||(this.xhr=t.ajax(this._ajaxSettings(a,n,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,s){setTimeout(function(){r.html(t),o._trigger("load",n,l),h(s,e)},1)}).fail(function(t,e){setTimeout(function(){h(t,e)},1)})))},_ajaxSettings:function(e,n,o){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,a){return s._trigger("beforeLoad",n,t.extend({jqXHR:e,ajaxSettings:a},o))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,n){var o=(e.attr("aria-describedby")||"").split(/\s+/);o.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(o.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),o=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(n,o);-1!==s&&o.splice(s,1),e.removeData("ui-tooltip-id"),(o=t.trim(o.join(" ")))?e.attr("aria-describedby",o):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,n){var o=this;this._super(e,n),"content"===e&&t.each(this.tooltips,function(t,e){o._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(n,o){var s=t.Event("blur");
4s.target=s.currentTarget=o.element[0],e.close(s,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var n=this,o=t(e?e.target:this.element).closest(this.options.items);o.length&&!o.data("ui-tooltip-id")&&(o.attr("title")&&o.data("ui-tooltip-title",o.attr("title")),o.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&o.parents().each(function(){var e,o=t(this);o.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,n.close(e,!0)),o.attr("title")&&(o.uniqueId(),n.parents[this.id]={element:this,title:o.attr("title")},o.attr("title",""))}),this._registerCloseHandlers(e,o),this._updateContent(o,e))},_updateContent:function(t,e){var n,o=this.options.content,s=this,a=e?e.type:null;return"string"==typeof o||o.nodeType||o.jquery?this._open(e,t,o):void((n=o.call(t[0],function(n){s._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=a),this._open(e,t,n))})}))&&this._open(e,t,n))},_open:function(e,n,o){function s(t){c.of=t,r.is(":hidden")||r.position(c)}var a,r,l,h,c=t.extend({},this.options.position);if(o){if(a=this._find(n))return void a.tooltip.find(".ui-tooltip-content").html(o);n.is("[title]")&&(e&&"mouseover"===e.type?n.attr("title",""):n.removeAttr("title")),r=(a=this._tooltip(n)).tooltip,this._addDescribedBy(n,r.attr("id")),r.find(".ui-tooltip-content").html(o),this.liveRegion.children().hide(),(h=t("<div>").html(r.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),h.removeAttr("id").find("[id]").removeAttr("id"),h.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:s}),s(e)):r.position(t.extend({of:n},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(l=this.delayedShow=setInterval(function(){r.is(":visible")&&(s(c.of),clearInterval(l))},t.fx.interval)),this._trigger("open",e,{tooltip:r})}},_registerCloseHandlers:function(e,n){var o={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var o=t.Event(e);o.currentTarget=n[0],this.close(o,!0)}}};n[0]!==this.element[0]&&(o.remove=function(){this._removeTooltip(this._find(n).tooltip)}),e&&"mouseover"!==e.type||(o.mouseleave="close"),e&&"focusin"!==e.type||(o.focusout="close"),this._on(!0,n,o)},close:function(e){var n,o=this,s=t(e?e.currentTarget:this.element),a=this._find(s);return a?(n=a.tooltip,void(a.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),a.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,function(){o._removeTooltip(t(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,n){t(n.element).attr("title",n.title),delete o.parents[e]}),a.closing=!0,this._trigger("close",e,{tooltip:n}),a.hiding||(a.closing=!1)))):void s.removeData("ui-tooltip-open")},_tooltip:function(e){var n=t("<div>").attr("role","tooltip"),o=t("<div>").appendTo(n),s=n.uniqueId().attr("id");return this._addClass(o,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(e)),this.tooltips[s]={element:e,tooltip:n}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(n,o){var s=t.Event("blur"),a=o.element;s.target=s.currentTarget=a[0],e.close(s,!0),t("#"+n).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip;var w="ui-effects-",x="ui-effects-style",C="ui-effects-animated";t.effects={effect:{}},function(t,e){function n(t,e,n){var o=d[e.type]||{};return null==t?n||!e.def?null:e.def:isNaN(t=o.floor?~~t:parseFloat(t))?e.def:o.mod?(t+o.mod)%o.mod:0>t?0:t>o.max?o.max:t}function o(n){var o=h(),s=o._rgba=[];return n=n.toLowerCase(),f(l,function(t,a){var r,l=a.re.exec(n),h=l&&a.parse(l),d=a.space||"rgba";return h?(r=o[d](h),o[c[d].cache]=r[c[d].cache],s=o._rgba=r._rgba,!1):e}),s.length?("0,0,0,0"===s.join()&&t.extend(s,a.transparent),o):a[n]}function s(t,e,n){return 1>6*(n=(n+1)%1)?t+6*(e-t)*n:1>2*n?e:2>3*n?t+6*(e-t)*(2/3-n):t}var a,r=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,n,o,s){return new t.Color.fn.parse(e,n,o,s)},c={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 4,669 bytes, line 4
4,green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},u=h.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",u.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(s,r,l,d){if(s===e)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=t(s).css(r),r=e);var u=this,p=t.type(s),m=this._rgba=[];return r!==e&&(s=[s,r,l,d],p="array"),"string"===p?this.parse(o(s)||a._default):"array"===p?(f(c.rgba.props,function(t,e){m[e.idx]=n(s[e.idx],e)}),this):"object"===p?(s instanceof h?f(c,function(t,e){s[e.cache]&&(u[e.cache]=s[e.cache].slice())}):f(c,function(e,o){var a=o.cache;f(o.props,function(t,e){if(!u[a]&&o.to){if("alpha"===t||null==s[t])return;u[a]=o.to(u._rgba)}u[a][e.idx]=n(s[t],e,!0)}),u[a]&&0>t.inArray(null,u[a].slice(0,3))&&(u[a][3]=1,o.from&&(u._rgba=o.from(u[a])))}),this):e},is:function(t){var n=h(t),o=!0,s=this;return f(c,function(t,a){var r,l=n[a.cache];return l&&(r=s[a.cache]||a.to&&a.to(s._rgba)||[],f(a.props,function(t,n){return null!=l[n.idx]?o=l[n.idx]===r[n.idx]:e})),o}),o},_space:function(){var t=[],e=this;return f(c,function(n,o){e[o.cache]&&t.push(n)}),t.pop()},transition:function(t,e){var o=h(t),s=o._space(),a=c[s],r=0===this.alpha()?h("transparent"):this,l=r[a.cache]||a.to(r._rgba),u=l.slice();return o=o[a.cache],f(a.props,function(t,s){var a=s.idx,r=l[a],h=o[a],c=d[s.type]||{};null!==h&&(null===r?u[a]=h:(c.mod&&(h-r>c.mod/2?r+=c.mod:r-h>c.mod/2&&(r-=c.mod)),u[a]=n((h-r)*e+r,s)))}),this[s](u)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),o=n.pop(),s=h(e)._rgba;return h(t.map(n,function(t,e){return(1-o)*s[e]+o*t}))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),o=n.pop();return e&&n.push(~~(255*o)),"#"+t.map(n,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,n=t[1]/255,o=t[2]/255,s=t[3],a=Math.max(e,n,o),r=Math.min(e,n,o),l=a-r,h=a+r,c=.5*h;return[Math.round(r===a?0:e===a?60*(n-o)/l+360:n===a?60*(o-e)/l+120:60*(e-n)/l+240)%360,0===l?0:.5>=c?l/h:l/(2-h),c,null==s?1:s]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],o=t[2],a=t[3],r=.5>=o?o*(1+n):o+n-o*n,l=2*o-r;return[Math.round(255*s(l,r,e+1/3)),Math.round(255*s(l,r,e)),Math.round(255*s(l,r,e-1/3)),a]},f(c,function(o,s){var a=s.props,l=s.cache,c=s.to,d=s.from;h.fn[o]=function(o){if(c&&!this[l]&&(this[l]=c(this._rgba)),o===e)return this[l].slice();var s,r=t.type(o),u="array"===r||"object"===r?o:arguments,p=this[l].slice();return f(a,function(t,e){var o=u["object"===r?t:e.idx];null==o&&(o=p[e.idx]),p[e.idx]=n(o,e)}),d?((s=h(d(p)))[l]=p,s):h(p)},f(a,function(e,n){h.fn[e]||(h.fn[e]=function(s){var a,l=t.type(s),h="alpha"===e?this._hsla?"hsla":"rgba":o,c=this[h](),d=c[n.idx];return"undefined"===l?d:("function"===l&&(s=s.call(this,d),l=t.type(s)),null==s&&n.empty?this:("string"===l&&(a=r.exec(s))&&(s=d+parseFloat(a[2])*("+"===a[1]?1:-1)),c[n.idx]=s,this[h](c)))})})}),h.hook=function(e){f(e.split(" "),function(e,n){t.cssHooks[n]={set:function(e,s){var a,r,l="";if("transparent"!==s&&("string"!==t.type(s)||(a=o(s)))){if(s=h(a||s),!u.rgba&&1!==s._rgba[3]){for(r="backgroundColor"===n?e.parentNode:e;(""===l||"transparent"===l)&&r&&r.style;)try{l=t.css(r,"backgroundColor"),r=r.parentNode}catch(t){}s=s.blend(l&&"transparent"!==l?l:"_default")}s=s.toRgbaString()}try{e.style[n]=s}catch(t){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=h(e.elem,n),e.end=h(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(n,o){e["border"+o+"Color"]=t}),e}}
4,a=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(t),function(){function e(e){var n,o,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(s&&s.length&&s[0]&&s[s[0]])for(o=s.length;o--;)n=s[o],"string"==typeof s[n]&&(a[t.camelCase(n)]=s[n]);else for(n in s)"string"==typeof s[n]&&(a[n]=s[n]);return a}var n,o,s,a=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,n){t.fx.step[n]=function(e){("none"===e.end||e.setAttr)&&(1!==e.pos||e.setAttr)||(t.style(e.elem,n,e.end),e.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,s,l){var h=t.speed(o,s,l);return this.queue(function(){var o,s=t(this),l=s.attr("class")||"",c=h.children?s.find("*").addBack():s;c=c.map(function(){return{el:t(this),start:e(this)}}),(o=function(){t.each(a,function(t,e){n[e]&&s[e+"Class"](n[e])})})(),c=c.map(function(){return this.end=e(this.el[0]),this.diff=function(e,n){var o,s,a={};for(o in n)s=n[o],e[o]!==s&&(r[o]||(t.fx.step[o]||!isNaN(parseFloat(s)))&&(a[o]=s));return a}(this.start,this.end),this}),s.attr("class",l),c=c.map(function(){var e=this,n=t.Deferred(),o=t.extend({},h,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,o),n.promise()}),t.when.apply(t,c.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.complete.call(s[0])})})},t.fn.extend({addClass:(n=t.fn.addClass,function(e,o,s,a){return o?t.effects.animateClass.call(this,{add:e},o,s,a):n.apply(this,arguments)}),removeClass:(o=t.fn.removeClass,function(e,n,s,a){return arguments.length>1?t.effects.animateClass.call(this,{remove:e},n,s,a):o.apply(this,arguments)}),toggleClass:(s=t.fn.toggleClass,function(e,n,o,a,r){return"boolean"==typeof n||void 0===n?o?t.effects.animateClass.call(this,n?{add:e}:{remove:e},o,a,r):s.apply(this,arguments):t.effects.animateClass.call(this,{toggle:e},n,o,a)}),switchClass:function(e,n,o,s,a){return t.effects.animateClass.call(this,{add:n,remove:e},o,s,a)}})}(),function(){var e,n,o,s;function a(e,n,o,s){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(s=n,o=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(s=o,o=n,n={}),t.isFunction(o)&&(s=o,o=null),n&&t.extend(e,n),o=o||n.duration,e.duration=t.fx.off?0:"number"==typeof o?o:o in t.fx.speeds?t.fx.speeds[o]:t.fx.speeds._default,e.complete=s||n.c
4omplete,e}function r(e){return!e||"number"==typeof e||!!t.fx.speeds[e]||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}function l(t,e){var n=e.outerWidth(),o=e.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,o,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?n:parseFloat(s[2]),bottom:"auto"===s[3]?o:parseFloat(s[3]),left:parseFloat(s[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=(e=t.expr.filters.animated,function(n){return!!t(n).data(C)||e(n)})),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var n=0,o=e.length;o>n;n++)null!==e[n]&&t.data(w+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,o=0,s=e.length;s>o;o++)null!==e[o]&&(n=t.data(w+e[o]),t.css(e[o],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")}
vendor: 7,237 bytes, line 4
4,o=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},a=document.activeElement;try{a.id}catch(t){a=document.body}return e.wrap(o),(e[0]===a||t.contains(e[0],a))&&t(a).trigger("focus"),o=e.parent(),"static"===e.css("position")?(o.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,o){n[o]=e.css(o),isNaN(parseInt(n[o],10))&&(n[o]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),o.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,n,o){return o||(o=n,n="effect"),t.effects.effect[e]=o,t.effects.effect[e].mode=n,o},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var o="horizontal"!==n?(e||100)/100:1,s="vertical"!==n?(e||100)/100:1;return{height:t.height()*s,width:t.width()*o,outerHeight:t.outerHeight()*s,outerWidth:t.outerWidth()*o}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var o=t.queue();e>1&&o.splice.apply(o,[1,0].concat(o.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(x,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(x)||"",t.removeData(x)},mode:function(t,e){var n=t.is(":hidden");return"toggle"===e&&(e=n?"show":"hide"),(n?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var n,o;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":o=0;break;case"center":o=.5;break;case"right":o=1;break;default:o=t[1]/e.width}return{x:o,y:n}},createPlaceholder:function(e){var n,o=e.css("position"),s=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(o)&&(o="absolute",n=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(w+"placeholder",n)),e.css({position:o,left:s.left,top:s.top}),n},removePlaceholder:function(t){var e=w+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,n,o,s){return s=s||{},t.each(n,function(t,n){var a=e.cssUnit(n);a[0]>0&&(s[n]=a[0]*o+a[1])}),s}}),t.fn.extend({effect:function(){function e(e){function a(){t.isFunction(h)&&h.call(r[0]),t.isFunction(e)&&e()}var r=t(this);n.mode=d.shift(),!1===t.uiBackCompat||s?"none"===n.mode?(r[c](),a()):o.call(r[0],n,function(){r.removeData(C),t.effects.cleanUp(r),"hide"===n.mode&&r.hide(),a()}):(r.is(":hidden")?"hide"===c:"show"===c)?(r[c](),a()):o.call(r[0],n,a)}var n=a.apply(this,arguments),o=t.effects.effect[n.effect],s=o.mode,r=n.queue,l=r||"fx",h=n.complete,c=n.mode,d=[],u=function(e){var n=t(this),o=t.effects.mode(n,c)||s;n.data(C,!0),d.push(o),s&&("show"===o||o===s&&"hide"===o)&&n.show(),s&&"none"===o||t.effects.saveStyle(n),t.isFunction(e)&&e()};return t.fx.off||!o?c?this[c](n.duration,h):this.each(function(){h&&h.call(this)}):!1===r?this.each(u).each(e):this.queue(l,u).queue(l,e)},show:(n=t.fn.show,function(t){if(r(t))return n.apply(this,arguments);var e=a.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(o=t.fn.hide,function(t){if(r(t))return o.apply(this,arguments);var e=a.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(s=t.fn.toggle,function(t){if(r(t)||"boolean"==typeof t)return s.apply(this,arguments);var e=a.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(e){var n=this.css(e),o=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(o=[parseFloat(n),e])}),o},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):l(this.css("clip"),this)},transfer:function(e,n){var o=t(this),s=t(e.to),a="fixed"===s.css("position"),r=t("body"),l=a?r.scrollTop():0,h=a?r.scrollLeft():0,c=s.offset(),d={top:c.top-l,left:c.left-h,height:s.innerHeight(),width:s.innerWidth()},u=o.offset(),p=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-l,left:u.left-h,height:o.innerHeight(),width:o.innerWidth(),position:a?"fixed":"absolute"}).animate(d,e.duration,e.easing,function(){p.remove(),t.isFunction(n)&&n()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=l(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),p={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){p[e]=function(e){return Math.pow(e,t+2)}}),t.extend(p,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;((e=Math.pow(2,--n))-1)/11>t;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(p,function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return .5>t?n(2*t)/2:1-n(-2*t+2)/2}});var m=t.effects;t.effects.define("blind","hide",function(e,n){var o={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=t(this),a=e.direction||"up",r=s.cssClip(),l={clip:t.extend({},r)},h=t.effects.createPlaceholder(s);l.clip[o[a][0]]=l.clip[o[a][1]],"show"===e.mode&&(s.cssClip(l.clip),h&&h.css(t.effects.clipToBox(l)),l.clip=r),h&&h.animate(t.effects.clipToBox(l),e.duration,e.easing),s.animate(l,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("bounce",function(e,n){var o,s,a,r=t(this),l=e.mode,h="hide"===l,c="show"===l,d=e.direction||"up",u=e.distance,p=e.times||5,f=2*p+(c||h?1:0),m=e.duration/f,g=e.easing,v="up"===d||"down"===d?"top":"left",_="up"===d||"left"===d,b=0,y=r.queue().length;for(t.effects.createPlaceholder(r),a=r.css(v),u||(u=r["top"===v?"outerHeight":"outerWidth"]()/3),c&&((s={opacity:1})[v]=a,r.css("opacity",0).css(v,_?-(2*u):2*u).animate(s,m,g)),h&&(u/=Math.pow(2,p-1)),(s={})[v]=a;p>b;b++)(o={})[v]=(_?"-=":"+=")+u,r.animate(o,m,g).animate(s,m,g),u=h?2*u:u/2;h&&((o={opacity:0}
vendor: 4,860 bytes, line 4
4)[v]=(_?"-=":"+=")+u,r.animate(o,m,g)),r.queue(n),t.effects.unshift(r,y,f+1)}),t.effects.define("clip","hide",function(e,n){var o,s={},a=t(this),r=e.direction||"vertical",l="both"===r,h=l||"horizontal"===r,c=l||"vertical"===r;o=a.cssClip(),s.clip={top:c?(o.bottom-o.top)/2:o.top,right:h?(o.right-o.left)/2:o.right,bottom:c?(o.bottom-o.top)/2:o.bottom,left:h?(o.right-o.left)/2:o.left},t.effects.createPlaceholder(a),"show"===e.mode&&(a.cssClip(s.clip),s.clip=o),a.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("drop","hide",function(e,n){var o,s=t(this),a=e.mode,r=e.direction||"left",l="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r?"-=":"+=",c={opacity:0};t.effects.createPlaceholder(s),o=e.distance||s["top"===l?"outerHeight":"outerWidth"](!0)/2,c[l]=h+o,"show"===a&&(s.css(c),c[l]=("+="===h?"-=":"+=")+o,c.opacity=1),s.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("explode","hide",function(e,n){function o(){_.push(this),_.length===d*u&&(p.css({visibility:"visible"}),t(_).remove(),n())}var s,a,r,l,h,c,d=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=d,p=t(this),f="show"===e.mode,m=p.show().css("visibility","hidden").offset(),g=Math.ceil(p.outerWidth()/u),v=Math.ceil(p.outerHeight()/d),_=[];for(s=0;d>s;s++)for(l=m.top+s*v,c=s-(d-1)/2,a=0;u>a;a++)r=m.left+a*g,h=a-(u-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*g,top:-s*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:v,left:r+(f?h*g:0),top:l+(f?c*v:0),opacity:f?0:1}).animate({left:r+(f?0:h*g),top:l+(f?0:c*v),opacity:f?1:0},e.duration||500,e.easing,o)}),t.effects.define("fade","toggle",function(e,n){var o="show"===e.mode;t(this).css("opacity",o?0:1).animate({opacity:o?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("fold","hide",function(e,n){var o=t(this),s=e.mode,a=e.size||15,r=/([0-9]+)%/.exec(a),l=e.horizFirst?["right","bottom"]:["bottom","right"],h=e.duration/2,c=t.effects.createPlaceholder(o),d=o.cssClip(),u={clip:t.extend({},d)},p={clip:t.extend({},d)},f=[d[l[0]],d[l[1]]],m=o.queue().length;r&&(a=parseInt(r[1],10)/100*f["hide"===s?0:1]),u.clip[l[0]]=a,p.clip[l[0]]=a,p.clip[l[1]]=0,"show"===s&&(o.cssClip(p.clip),c&&c.css(t.effects.clipToBox(p)),p.clip=d),o.queue(function(n){c&&c.animate(t.effects.clipToBox(u),h,e.easing).animate(t.effects.clipToBox(p),h,e.easing),n()}).animate(u,h,e.easing).animate(p,h,e.easing).queue(n),t.effects.unshift(o,m,4)}),t.effects.define("highlight","show",function(e,n){var o=t(this),s={backgroundColor:o.css("backgroundColor")};"hide"===e.mode&&(s.opacity=0),t.effects.saveStyle(o),o.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("size",function(e,n){var o,s,a,r=t(this),l=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=e.mode,u="effect"!==d,p=e.scale||"both",f=e.origin||["middle","center"],m=r.css("position"),g=r.position(),v=t.effects.scaledDimensions(r),_=e.from||v,b=e.to||t.effects.scaledDimensions(r,0);t.effects.createPlaceholder(r),"show"===d&&(a=_,_=b,b=a),s={from:{y:_.height/v.height,x:_.width/v.width},to:{y:b.height/v.height,x:b.width/v.width}},("box"===p||"both"===p)&&(s.from.y!==s.to.y&&(_=t.effects.setTransition(r,h,s.from.y,_),b=t.effects.setTransition(r,h,s.to.y,b)),s.from.x!==s.to.x&&(_=t.effects.setTransition(r,c,s.from.x,_),b=t.effects.setTransition(r,c,s.to.x,b))),("content"===p||"both"===p)&&s.from.y!==s.to.y&&(_=t.effects.setTransition(r,l,s.from.y,_),b=t.effects.setTransition(r,l,s.to.y,b)),f&&(o=t.effects.getBaseline(f,v),_.top=(v.outerHeight-_.outerHeight)*o.y+g.top,_.left=(v.outerWidth-_.outerWidth)*o.x+g.left,b.top=(v.outerHeight-b.outerHeight)*o.y+g.top,b.left=(v.outerWidth-b.outerWidth)*o.x+g.left),r.css(_),("content"===p||"both"===p)&&(h=h.concat(["marginTop","marginBottom"]).concat(l),c=c.concat(["marginLeft","marginRight"]),r.find("*[width]").each(function(){var n=t(this),o=t.effects.scaledDimensions(n),a={height:o.height*s.from.y,width:o.width*s.from.x,outerHeight:o.outerHeight*s.from.y,outerWidth:o.outerWidth*s.from.x},r={height:o.height*s.to.y,width:o.width*s.to.x,outerHeight:o.height*s.to.y,outerWidth:o.width*s.to.x};s.from.y!==s.to.y&&(a=t.effects.setTransition(n,h,s.from.y,a),r=t.effects.setTransition(n,h,s.to.y,r)),s.from.x!==s.to.x&&(a=t.effects.setTransition(n,c,s.from.x,a),r=t.effects.setTransition(n,c,s.to.x,r)),u&&t.effects.saveStyle(n),n.css(a),n.animate(r,e.duration,e.easing,function(){u&&t.effects.restoreStyle(n)})})),r.animate(b,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=r.offset();
40===b.opacity&&r.css("opacity",_.opacity),u||(r.css("position","static"===m?"relative":m).offset(e),t.effects.saveStyle(r)),n()}})}),t.effects.define("scale",function(e,n){var o=t(this),s=e.mode,a=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==s?0:100),r=t.extend(!0,{from:t.effects.scaledDimensions(o),to:t.effects.scaledDimensions(o,a,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(r.from.opacity=1,r.to.opacity=0),t.effects.effect.size.call(this,r,n)}),t.effects.define("puff","hide",function(e,n){var o=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,o,n)}),t.effects.define("pulsate","show",function(e,n){var o=t(this),s=e.mode,a="show"===s,r=2*(e.times||5)+(a||"hide"===s?1:0),l=e.duration/r,h=0,c=1,d=o.queue().length;for((a||!o.is(":visible"))&&(o.css("opacity",0).show(),h=1);r>c;c++)o.animate({opacity:h},l,e.easing),h=1-h;o.animate({opacity:h},l,e.easing),o.queue(n),t.effects.unshift(o,d,r+1)}),t.effects.define("shake",function(e,n){var o=1,s=t(this),a=e.direction||"left",r=e.distance||20,l=e.times||3,h=2*l+1,c=Math.round(e.duration/h),d="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,p={},f={},m={},g=s.queue().length;for(t.effects.createPlaceholder(s),p[d]=(u?"-=":"+=")+r,f[d]=(u?"+=":"-=")+2*r,m[d]=(u?"-=":"+=")+2*r,s.animate(p,c,e.easing);l>o;o++)s.animate(f,c,e.easing).animate(m,c,e.easing);s.animate(f,c,e.easing).animate(p,c/2,e.easing).queue(n),t.effects.unshift(s,g,h+1)}),t.effects.define("slide","show",function(e,n){var o,s,a=t(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},l=e.mode,h=e.direction||"left",c="up"===h||"down"===h?"top":"left",d=e.distance||a["top"===c?"outerHeight":"outerWidth"](!0),u={};t.effects.createPlaceholder(a),o=a.cssClip(),s=a.position()[c],u[c]=("up"===h||"left"===h?-1:1)*d+s,u.clip=a.cssClip(),u.clip[r[h][1]]=u.clip[r[h][0]],"show"===l&&(a.cssClip(u.clip),a.css(c,u[c]),u.clip=o,u[c]=s),a.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),!1!==t.uiBackCompat&&t.effects.define("transfer",function(e,n){t(this).transfer(e,n)})}),jQuery.fn.contactNumberWrapper=function(){this.each(function(){console.log("contactNumberWrapper plugin is not needed anymore. Please remove it from theme")})},function(t){t.fn.desktopDropNav=function(e){var n=t.extend({openCloseClass:"open-close",openerClass:"opener",slideClass:"slide"},e);return this.each(function(){t(this).find("ul").length&&t(this).find("ul").each(function(){var e=t(this).closest("li");e.addClass(n.openCloseClass).children("div").addClass(n.slideClass),function(e,n,o){t(e).addClass(n).appendTo(o)}("<span>",n.openerClass,e.children("a"))})})}}(jQuery),function(t){function e(e){this.options=t.extend({dropDown:">li>ul",fitClass:"set-right"},e),this.init()}e.prototype={init:function(){this.findElements(),this.detectOffset()},findElements:function(){this.holder=t(this.options.holder),this.dropdown=this.holder.find(this.options.dropDown),this.dropdownParent=this.dropdown.parents("li")},detectOffset:function(){var e=this,n=e.holder.width(),o=e.holder.offset().left;e.dropdownParent.each(function(){Math.round(t(this).offset().left)>=o&&n<=Math.round(t(this).offset().left)-o+e.dropdown.width()&&t(this).addClass(e.options.fitClass)})},destroy:function(){this.dropdownParent.removeClass(this.options.fitClass),this.holder.removeData("dropdownFit")}},t.fn.dropdownFit=function(n){return this.each(function(){t(this).data("dropdownFit",new e(t.extend(n,{holder:this})))})}}(jQuery),function(t,e){function n(t,e){return t.innerHeight()>e.maxHeight}function o(e,n){for(;t.inArray(e.slice(-1),n.lastCharacter.remove)>-1;)e=e.slice(0,-1);return 0>t.inArray(e.slice(-1),n.lastCharacter.noEllipsis)&&(e+=n.ellipsis),e}function s(t){return{width:t.innerWidth(),height:t.innerHeight()}}function a(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function r(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function l(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function h(e,n,o){var s,a=e&&e[0];if(a){if(!o){if(3===a.nodeType)return a;
4if(t.trim(e.text()))return h(e.contents().last(),n)}for(s=l(a);!s;){if((e=e.parent()).is(n)||!e.length)return!1;s=l(e[0])}if(s)return h(t(s),n)}return!1}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var l,d=this,u=d.contents();d.data("dotdotdot")&&d.trigger("destroy.dot"),d.data("dotdotdot-style",d.attr("style")||""),d.css("word-wrap","break-word"),"nowrap"===d.css("white-space")&&d.css("white-space","normal"),d.bind_events=function(){return d.bind("update.dot",function(e,s){switch(d.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),typeof p.height){case"number":p.maxHeight=p.height;break;case"function":p.maxHeight=p.height.call(d[0]);break;default:p.maxHeight=function(t){for(var e=t.innerHeight(),n=["paddingTop","paddingBottom"],o=0,s=n.length;s>o;o++){var a=parseInt(t.css(n[o]),10);isNaN(a)&&(a=0),e-=a}return e}(d)}p.maxHeight+=p.tolerance,void 0!==s&&(("string"==typeof s||"nodeType"in s&&1===s.nodeType)&&(s=t("<div />").append(s).contents()),s instanceof t&&(u=s)),(v=d.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(u.clone(!0)).find("br").replaceWith(" <br /> ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var l=!1,c=!1;return f.afterElement&&((l=f.afterElement.clone(!0)).show(),f.afterElement.detach()),n(v,p)&&(c="children"==p.wrap?function(t,e,o){var s=t.children(),a=!1;t.empty();for(var r=0,l=s.length;l>r;r++){var h=s.eq(r);if(t.append(h),o&&t.append(o),n(t,e)){h.remove(),a=!0;break}o&&o.detach()}return a}(v,p,l):function e(s,l,c,d,u){var p=!1;return s.contents().detach().each(function(){var f=t(this);if(void 0===this)return!0;if(f.is("script, .dotdotdot-keep"))s.append(f);else{if(p)return!0;s.append(f),!u||f.is(d.after)||f.find(d.after).length||s[s.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](u),n(c,d)&&(p=3==this.nodeType?function(e,s,l,c,d){var u=e[0];if(!u)return!1;var p=r(u),f=-1!==p.indexOf(" ")?" ":" ",m="letter"==c.wrap?"":f,g=p.split(m),v=-1,_=-1,b=0,y=g.length-1;for(c.fallbackToLetter&&0==b&&0==y&&(m="",y=(g=p.split(m)).length-1);y>=b&&(0!=b||0!=y);){var w=Math.floor((b+y)/2);if(w==_)break;_=w,a(u,g.slice(0,_+1).join(m)+c.ellipsis),l.children().each(function(){t(this).toggle().toggle()}),n(l,c)?(y=_,c.fallbackToLetter&&0==b&&0==y&&(m="",g=g[0].split(m),v=-1,_=-1,b=0,y=g.length-1)):(v=_,b=_)}if(-1==v||1==g.length&&0==g[0].length){var x=e.parent();e.detach();var C=d&&d.closest(x).length?d.length:0;if(x.contents().length>C?u=h(x.contents().eq(-1-C),s):(u=h(x,s,!0),C||x.detach()),u&&(p=o(r(u),c),a(u,p),C&&d)){var k=d.parent();t(u).parent().append(d),t.trim(k.html())||k.remove()}}else a(u,p=o(g.slice(0,v+1).join(m),c));return!0}(f,l,c,d,u):e(f,l,c,d,u)),p||u&&u.detach()}}),l.addClass("is-truncated"),p}(v,d,v,p,l)),v.replaceWith(v.contents()),v=null,t.isFunction(p.callback)&&p.callback.call(d[0],c,u),f.isTruncated=c,c}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(d[0],f.isTruncated),f.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(d[0],u),u}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),d.unwatch().unbind_events().contents().detach().end().append(u).attr("style",d.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),d},d.unbind_events=function(){return d.unbind(".dot"),d},d.watch=function(){if(d.unwatch(),"window"==p.watch){var e=t(window),n=e.width(),o=e.height();e.bind("resize.dot"+f.dotId,function(){n==e.width()&&o==e.height()&&p.windowResizeFix||(n=e.width(),o=e.height(),g&&clearInterval(g),g=setTimeout(function(){d.trigger("update.dot")},100))})}else m=s(d),g=setInterval(function(){if(d.is(":visible")){var t=s(d);m.width==t.width&&m.height==t.height||(d.trigger("update.dot"),m=t)}},500);return d},d.unwatch=function(){return t(window).unbind("resize.dot"+f.dotId),g&&clearInterval(g),d};var p=t.extend(!0,{},t.fn.dotdotdot.defaults,e),f={},m={},g=null,v=null;return p.lastCharacter.remove instanceof Array||(p.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),p.lastCharacter.n
4oEllipsis instanceof Array||(p.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),f.afterElement=!!(l=p.after)&&("string"==typeof l?!!(l=t(l,d)).length&&l:!!l.jquery&&l),f.isTruncated=!1,f.dotId=c++,d.data("dotdotdot",!0).bind_events().trigger("update.dot"),p.watch&&d.watch(),d},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var c=1,d=t.fn.html;t.fn.html=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?this.trigger("update",[n]):d.apply(this,arguments)};var u=t.fn.text;t.fn.text=function(n){return n!=e&&!t.isFunction(n)&&this.data("dotdotdot")?(n=t("<div />").text(n).html(),this.trigger("update",[n])):u.apply(this,arguments)}}}(jQuery),jQuery(document).ready(function(t){t(".dot-ellipsis").each(function(){var e=t(this).hasClass("dot-resize-update"),n=t(this).hasClass("dot-timer-update"),o=0,s=t(this).attr("class").split(/\s+/);t.each(s,function(t,e){var n=e.match(/^dot-height-(\d+)$/);null!==n&&(o=Number(n[1]))});var a={};n&&(a.watch=!0),e&&(a.watch="window"),o>0&&(a.height=o),t(this).dotdotdot(a)})}),jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")});var mql=window.matchMedia("(orientation: portrait)");function moreNav(){var t=$(".navigation").find("ul"),e="sublevel-";if(t.length&&t.children(".more").find("ul").parent().is("div")){var n=t.children(".more").find("ul");n.parent("div").children().unwrap(),n.each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})})}else t.length&&!t.children(".more").find("ul").parent().is("div")&&t.children(".more").find("ul").each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})});t.children(".more").on("click","> a",function(t){t.preventDefault()})}function navigationSublevelWrap(t,e){t.each(function(){var t=$(this),n=t.parents("ul").length;n>0&&t.wrap(function(){return'<div class="'+e+n+'"></div>'})})}mql&&mql.addListener(function(t){$(window).trigger("resize")}),function(t){function e(e){this.options=t.extend({place:"",move:"inside",setClass:!1},e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:t(this.options.holder),place:t(this.options.place)}},setAnchor:function(){this.anchorElem=t("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var t=this,e={after:function(){t.elements.holder.insertAfter(t.elements.place)},before:function(){t.elements.holder.insertBefore(t.elements.place)},inside:function(){t.elements.place.prepend(t.elements.holder)}};void 0!==e[this.options.move]?e[this.options.move]():e.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){this.elements.holder.insertAfter(this.anchorElem).removeClass(this.options.setClass).removeData("moveElement"),this.anchorElem.remove(),n=[]}},t.fn.moveElement=function(o){return this.each(function(){n.push(this),t.each(n,function(e,o){e===n.length-1&&t(o).attr("data-moved-id",e+1)}),t(this).data("moveElement",new e(t.extend(o,{holder:this})))})};var n=[]}(jQuery),function(t){function e(e){this.options=t.extend({hoverElem:">li",setOnElem:"body",hoverClass:"active"},e),this.init()}e.prototype={init:function(){this.findElements(),this.controlClass()},findElements:function(){this.holder=t(this.options.holder),this.hoverElem=this.holder.find(this.options.hoverElem),this.setOnElem=t(this.options.setOnElem)},controlClass:function(){var e=this,n="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,o=/Windows Phone/.test(navigator.userAgent),s=n&&"touchstart"||o&&navigator.pointerEnabled&&"pointerdown"||o&&navigator.msPointerEnabled&&"MSPointerDown"||"mouseenter";n||o?(preventHandler=function(t){t.preventDefault()},this.hoverElem.on(s,function(){var n=function(o){var a=t(o.target);a.is(e.hoverElem)||a.closest(e.hoverElem).length||(e.hoverElem.off("click",preventHandler),t(document).off(s,n),e.setOnElem.removeClass(e.options.hoverClass))};e.setOnElem.hasClass(e.options.hoverClass)||(e.hoverElem.one("click",preventHandler),t(document).on(s,n),e.setOnElem.addClass(e.options.hoverClass))})):this.hoverElem.hover(function(){e.setClass()},function(){e.deleteClass()})},setClass:function(){if(!this.setOnElem.hasClass(this.options.hoverClass))return this.setOnElem.addClass(this.options.hoverClass)},deleteClass:function(){if(this.setOnElem.hasClass(this.options.hoverClass))return this.setOnElem.removeClass(this.options.hoverClass)}},t.fn.setClassOnHover=function(n){return this.each(function(){t(this).data("setClassOnHover",new e(t.extend(n,{holder:this})))})}}(jQuery),function(t){t.fn.slideAccordion=function(o){var s=t.extend({addClassBeforeAnimation:!1,allowClickWhenExpanded:!1,activeClass:"active",opener:".opener",slider:".slide",animSpeed:300,collapsible:!0,closeInactive:!1,event:"click"},o);return this.each(function(){t(this).find(":has("+s.slider+")").each(function(){var o=t(this),a=o.find(s.opener),r=o.find(s.slider);a.bind(s.event,function(t){if(!r.is(":animated")){if(o.hasClass(s.activeClass)){if(s.allowClickWhenExpanded)return;s.collapsible&&r.slideUp(s.animSpeed,function(){n(r),o.removeClass(s.activeClass)})}else{var a=o.siblings("."+s.activeClass),l=a.find(s.slider);o.addClass(s.activeClass),e(r).hide().slideDown(s.animSpeed),s.closeInactive&&l.slideUp(s.animSpeed,function(){a.removeClass(s.activeClass),n(l)})}}t.preventDefault()}),o.hasClass(s.activeClass)?e(r):n(r)})})};var e=function(t){return t.css({position:"",top:"",left:"",width:""})},n=function(t){return t.show().css({position:"absolute",top:-9999,left:-9999,width:t.width()})}}(jQuery),ResponsiveHelper=function(t){var e,n=[],o=t(window),s=!1;function a(){var s=o.width();s!==e&&(e=s,t.each(n,function(e,n){t.each(n.data,function(t,e){e.currentActive&&!r(e.range[0],e.range[1])&&(e.currentActive=!1,"function"==typeof e.disableCallback&&e.disableCallback())}),t.each(n.data,function(t,e){!e.currentActive&&r(e.range[0],e.range[1])&&(e.currentActive=!0,"function"==typeof e.enableCallback&&e.enableCallback())})}))}function r(t,n){var o,a="";return t>0&&(a+="(min-width: "+t+"px)"),n<1/0&&(a+=(a?" and ":"")+"(max-width: "+n+"px)"),o=a,window.matchMedia&&s?matchMedia(o).matches:window.styleMedia?styleMedia.matchMedium(o):window.media?media.matchMedium(o):e>=t&&e<=n}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?s=!0:window.matchMedia.toString().indexOf("native")>-1&&(s=!0)),o.bind("load resize orientationchange",a),{addRange:function(o){var s={data:{}};t.each(o,function(t,e){var n;s.data[t]={range:[parseInt((n=t.split(".."))[0],10)||-1/0,parseInt(n[1],10)||1/0].sort(function(t,e){return t-e}),enableCallback:e.on,disableCallback:e.off}}),n.push(s),e=null,a()}}}(jQuery),function(t,e,n,o){"use strict";var s=n("html"),a=n(t),r=n(e),l=n.fancybox=function(){l.open.apply(this,arguments)},h=navigator.userAgent.match(/msie/i),c=null,d=o!==e.createTouch,u=function(t){return t&&t.hasOwnProperty&&t instanceof n},p=function(t){return t&&"string"===n.type(t)},f=function(t){return p(t)&&t.indexOf("%")>0},m=function(t,e){var n=parseInt(t,10)||0;return e&&f(t)&&(n=l.getViewport()[e]/100*n),Math.ceil(n)},g=function(t,e){return m(t,e)+"px"};n.extend(l,{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:!d,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'+(h?' 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:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,
4skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(n.isPlainObject(e)||(e={}),!1!==l.close(!0)))return n.isArray(t)||(t=u(t)?n(t).get():[t]),n.each(t,function(s,a){var r,h,c,d,f,m,g,v={};"object"===n.type(a)&&(a.nodeType&&(a=n(a)),u(a)?(v={href:a.data("fancybox-href")||a.attr("href"),title:a.data("fancybox-title")||a.attr("title"),isDom:!0,element:a},n.metadata&&n.extend(!0,v,a.metadata())):v=a),r=e.href||v.href||(p(a)?a:null),h=o!==e.title?e.title:v.title||"",(d=(c=e.content||v.content)?"html":e.type||v.type)||!v.isDom||(d=a.data("fancybox-type"))||(d=(f=a.prop("class").match(/fancybox\.(\w+)/))?f[1]:null),p(r)&&(!d&&(l.isImage(r)?d="image":l.isSWF(r)?d="swf":"#"===r.charAt(0)?d="inline":p(a)&&(d="html",c=a)),"ajax"===d&&(r=(m=r.split(/\s+/,2)).shift(),g=m.shift())),c||("inline"===d?r?c=n(p(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):v.isDom&&(c=a):"html"===d?c=r:d||r||!v.isDom||(d="inline",c=a)),n.extend(v,{href:r,type:d,content:c,title:h,selector:g}),t[s]=v}),l.opts=n.extend(!0,{},l.defaults,e),o!==e.keys&&(l.opts.keys=!!e.keys&&n.extend({},l.defaults.keys,e.keys)),l.group=t,l._start(l.opts.index)},cancel:function(){var t=l.coming;t&&!1!==l.trigger("onCancel")&&(l.hideLoading(),l.ajaxLoad&&l.ajaxLoad.abort(),l.ajaxLoad=null,l.imgPreload&&(l.imgPreload.onload=l.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),l.coming=null,l.current||l._afterZoomOut(t))},close:function(t){l.cancel(),!1!==l.trigger("beforeClose")&&(l.unbindEvents(),l.isActive&&(l.isOpen&&!0!==t?(l.isOpen=l.isOpened=!1,l.isClosing=!0,n(".fancybox-item, .fancybox-nav").remove(),l.wrap.stop(!0,!0).removeClass("fancybox-opened"),l.transitions[l.current.closeMethod]()):(n(".fancybox-wrap").stop(!0).trigger("onReset").remove(),l._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(l.player.timer)},n=function(){e(),l.current&&l.player.isActive&&(l.player.timer=setTimeout(l.next,l.current.playSpeed))},o=function(){e(),r.unbind(".player"),l.player.isActive=!1,l.trigger("onPlayEnd")};!0!==t&&(l.player.isActive||!1===t)?o():l.current&&(l.current.loop||l.current.index<l.group.length-1)&&(l.player.isActive=!0,r.bind({"onCancel.player beforeClose.player":o,"onUpdate.player":n,"beforeLoad.player":e}),n(),l.trigger("onPlayStart"))},next:function(t){var e=l.current;e&&(p(t)||(t=e.direction.next),l.jumpto(e.index+1,t,"next"))},prev:function(t){var e=l.current;e&&(p(t)||(t=e.direction.prev),l.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,n){var s=l.current;s&&(t=m(t),l.direction=e||s.direction[t>=s.index?"next":"prev"],l.router=n||"jumpto",s.loop&&(t<0&&(t=s.group.length+t%s.group.length),t%=s.group.length),o!==s.group[t]&&(l.cancel(),l._start(t)))},reposition:function(t,e){var o,s=l.current,a=s?s.wrap:null;a&&(o=l._getPosition(e),t&&"scroll"===t.type?(delete o.position,a.stop(!0,!0).animate(o,200)):(a.css(o),s.pos=n.extend({},s.dim,o)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(c),c=null),l.isOpen&&!c&&(c=setTimeout(function(){var o=l.current;o&&!l.isClosing&&(l.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&o.autoResize)&&l._setDimension(),"scroll"===e&&o.canShrink||l.reposition(t),l.trigger("onUpdate"),c=null)},n&&!d?0:300))},toggle:function(t){l.isOpen&&(l.current.fitToView="boolean"===n.type(t)?t:!l.current.fitToView,d&&(l.wrap.removeAttr("style").addClass("fancybox-tmp"),l.trigger("onUpdate")),l.update())},hideLoading:function(){r.unbind(".loading"),n("#fancybox-loading").remove()},showLoading:function(){var t,e;l.hideLoading(),t=n('<div id="fancybox-loading"><div></div></div>').click(l.cancel).appendTo("body"),r.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),l.cancel())}),l.defaults.fixed||(e=l.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=l.current&&l.current.locked||!1,n={x:a.scrollLeft(),y:a.scrollTop()};return e?(n.w=e[0].clientWidth,n.h=e[0].clientHeight):(n.w=d&&t.innerWidth?t.innerWidth:a.width(),n.h=d&&t.innerHe
4ight?t.innerHeight:a.height()),n},unbindEvents:function(){l.wrap&&u(l.wrap)&&l.wrap.unbind(".fb"),r.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var t,e=l.current;e&&(a.bind("orientationchange.fb"+(d?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),l.update),(t=e.keys)&&r.bind("keydown.fb",function(s){var a=s.which||s.keyCode,r=s.target||s.srcElement;if(27===a&&l.coming)return!1;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||r&&(r.type||n(r).is("[contenteditable]"))||n.each(t,function(t,r){return e.group.length>1&&o!==r[a]?(l[t](r[a]),s.preventDefault(),!1):n.inArray(a,r)>-1?(l[t](),s.preventDefault(),!1):void 0})}),n.fn.mousewheel&&e.mouseWheel&&l.wrap.bind("mousewheel.fb",function(t,o,s,a){for(var r,h=n(t.target||null),c=!1;h.length&&!(c||h.is(".fancybox-skin")||h.is(".fancybox-wrap"));)c=(r=h[0])&&!(r.style.overflow&&"hidden"===r.style.overflow)&&(r.clientWidth&&r.scrollWidth>r.clientWidth||r.clientHeight&&r.scrollHeight>r.clientHeight),h=n(h).parent();0===o||c||!(l.group.length>1)||e.canShrink||(a>0||s>0?l.prev(a>0?"down":"left"):(a<0||s<0)&&l.next(a<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var o,s=e||l.coming||l.current;if(s){if(n.isFunction(s[t])&&(o=s[t].apply(s,Array.prototype.slice.call(arguments,1))),!1===o)return!1;s.helpers&&n.each(s.helpers,function(e,o){o&&l.helpers[e]&&n.isFunction(l.helpers[e][t])&&l.helpers[e][t](n.extend(!0,{},l.helpers[e].defaults,o),s)}),r.trigger(t)}},isImage:function(t){return p(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return p(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,o,s,a,r,h={};if(t=m(t),!(e=l.group[t]||null))return!1;if(a=(h=n.extend(!0,{},l.opts,e)).margin,r=h.padding,"number"===n.type(a)&&(h.margin=[a,a,a,a]),"number"===n.type(r)&&(h.padding=[r,r,r,r]),h.modal&&n.extend(!0,h,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),h.autoSize&&(h.autoWidth=h.autoHeight=!0),"auto"===h.width&&(h.autoWidth=!0),"auto"===h.height&&(h.autoHeight=!0),h.group=l.group,h.index=t,l.coming=h,!1===l.trigger("beforeLoad")){l.coming=null;return}if(s=h.type,o=h.href,!s)return l.coming=null,!!l.current&&!!l.router&&"jumpto"!==l.router&&(l.current.index=t,l[l.router](l.direction));if(l.isActive=!0,("image"===s||"swf"===s)&&(h.autoHeight=h.autoWidth=!1,h.scrolling="visible"),"image"===s&&(h.aspectRatio=!0),"iframe"===s&&d&&(h.scrolling="scroll"),h.wrap=n(h.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+s+" fancybox-tmp "+h.wrapCSS).appendTo(h.parent||"body"),n.extend(h,{skin:n(".fancybox-skin",h.wrap),outer:n(".fancybox-outer",h.wrap),inner:n(".fancybox-inner",h.wrap)}),n.each(["Top","Right","Bottom","Left"],function(t,e){h.skin.css("padding"+e,g(h.padding[t]))}),l.trigger("onReady"),"inline"===s||"html"===s){if(!h.content||!h.content.length)return l._error("content")}else if(!o)return l._error("href");"image"===s?l._loadImage():"ajax"===s?l._loadAjax():"iframe"===s?l._loadIframe():l._afterLoad()},_error:function(t){n.extend(l.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:l.coming.tpl.error}),l._afterLoad()},_loadImage:function(){var t=l.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,l.coming.width=this.width/l.opts.pixelRatio,l.coming.height=this.height/l.opts.pixelRatio,l._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,l._error("image")},t.src=l.coming.href,!0!==t.complete&&l.showLoading()},_loadAjax:function(){var t=l.coming;l.showLoading(),l.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){l.coming&&"abort"!==e?l._error("ajax",t):l.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,l._afterLoad())}}))},_loadIframe:function(){var t=l.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",d?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(l.showLoading(),e.one("load",function(){n(this).data("ready",1),d||n(this).bind("load.fb",l.update),n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),l._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||l._afterLoad()},_preloadImages:function(){var t,e,n=l.group,o=l.current,s=n.length,a=o.preload?Math.min(o.preload,s-1):0;for(e=1;e<=a;e+=1)"image"===(t=n[(o.index+e)%s]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,o,s,a,r=l.coming,h=l.current,c="fancybox-placeholder";if(l.hideLoading(),r&&!1!==l.isActive){if(!1===l.trigger("afterLoad",r,h)){r.wrap.stop(!0).trigger("onReset").remove(),l.coming=null;return}switch(h&&(l.trigger("beforeChange",h),h.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),l.unbindEvents(),t=r.content,e=r.type,o=r.scrolling,n.extend(l,{wrap:r.wrap,skin:r.skin,outer:r.outer,inner:r.inner,current:r,previous:h}),s=r.href,e){case"inline":case"ajax":case"html":r.selector?t=n("<div>").html(t).find(r.selector):u(t)&&(t.data(c)||t.data(c,n('<div class="'+c+'"></div>').insertAfter(t).hide()),t=t.show().detach(),r.wrap.bind("onReset",function(){n(this).find(t).length&&t.hide().replaceAll(t.data(c)).data(c,!1)}));break;case"image":t=r.tpl.image.replace("{href}",s);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"></param>',a="",n.each(r.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>',a+=" "+e+'="'+n+'"'}),t+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}u(t)&&t.parent().is(r.inner)||r.inner.append(t),l.trigger("beforeShow"),r.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),l._setDimension(),l.reposition(),l.isOpen=!1,l.coming=null,l.bindEvents(),l.isOpened?h.prevMethod&&l.transitions[h.prevMethod]():n(".fancybox-wrap").not(r.wrap).stop(!0).trigger("onReset").remove(),l.transitions[l.isOpened?r.nextMethod:r.openMethod](),l._preloadImages()}},_setDimension:function(){var t,e,o,s,a,r,h,c,d,u,p,v,_,b,y,w=l.getViewport(),x=0,C=!1,k=!1,T=l.wrap,S=l.skin,E=l.inner,P=l.current,I=P.width,D=P.height,A=P.minWidth,M=P.minHeight,O=P.maxWidth,N=P.maxHeight,z=P.scrolling,H=P.scrollOutside?P.scrollbarWidth:0,j=P.margin,W=m(j[1]+j[3]),B=m(j[0]+j[2]);if(T.add(S).add(E).width("auto").height("auto").removeClass("fancybox-tmp"),t=m(S.outerWidth(!0)-S.width()),e=m(S.outerHeight(!0)-S.height()),o=W+t,s=B+e,a=f(I)?(w.w-o)*m(I)/100:I,r=f(D)?(w.h-s)*m(D)/100:D,"iframe"===P.type){if(b=P.content,P.autoHeight&&1===b.data("ready"))try{b[0].contentWindow.document.location&&(E.width(a).height(9999),y=b.contents().find("body"),H&&y.css("overflow-x","hidden"),r=y.outerHeight(!0))}catch(t){}}else(P.autoWidth||P.autoHeight)&&(E.addClass("fancybox-tmp"),P.autoWidth||E.width(a),P.autoHeight||E.height(r),P.autoWidth&&(a=E.width()),P.autoHeight&&(r=E.height()),E.removeClass("fancybox-tmp"));if(I=m(a),D=m(r),d=a/r,A=m(f(A)?m(A,"w")-o:A),O=m(f(O)?m(O,"w")-o:O),M=m(f(M)?m(M,"h")-s:M),N=m(f(N)?m(N,"h")-s:N),h=O,c=N,P.fitToView&&
vendor: 7,258 bytes, line 4
4(O=Math.min(w.w-o,O),N=Math.min(w.h-s,N)),v=w.w-W,_=w.h-B,P.aspectRatio?(I>O&&(D=m((I=O)/d)),D>N&&(I=m((D=N)*d)),I<A&&(D=m((I=A)/d)),D<M&&(I=m((D=M)*d))):(I=Math.max(A,Math.min(I,O)),P.autoHeight&&"iframe"!==P.type&&(E.width(I),D=E.height()),D=Math.max(M,Math.min(D,N))),P.fitToView){if(E.width(I).height(D),T.width(I+t),u=T.width(),p=T.height(),P.aspectRatio)for(;(u>v||p>_)&&I>A&&D>M&&!(x++>19);)(I=m((D=Math.max(M,Math.min(N,D-10)))*d))<A&&(D=m((I=A)/d)),I>O&&(D=m((I=O)/d)),E.width(I).height(D),T.width(I+t),u=T.width(),p=T.height();else I=Math.max(A,Math.min(I,I-(u-v))),D=Math.max(M,Math.min(D,D-(p-_)))}H&&"auto"===z&&D<r&&I+t+H<v&&(I+=H),E.width(I).height(D),T.width(I+t),u=T.width(),p=T.height(),C=(u>v||p>_)&&I>A&&D>M,k=P.aspectRatio?I<h&&D<c&&I<a&&D<r:(I<h||D<c)&&(I<a||D<r),n.extend(P,{dim:{width:g(u),height:g(p)},origWidth:a,origHeight:r,canShrink:C,canExpand:k,wPadding:t,hPadding:e,wrapSpace:p-S.outerHeight(!0),skinSpace:S.height()-D}),!b&&P.autoHeight&&D>M&&D<N&&!k&&E.height("auto")},_getPosition:function(t){var e=l.current,n=l.getViewport(),o=e.margin,s=l.wrap.width()+o[1]+o[3],a=l.wrap.height()+o[0]+o[2],r={position:"absolute",top:o[0],left:o[3]};return e.autoCenter&&e.fixed&&!t&&a<=n.h&&s<=n.w?r.position="fixed":e.locked||(r.top+=n.y,r.left+=n.x),r.top=g(Math.max(r.top,r.top+(n.h-a)*e.topRatio)),r.left=g(Math.max(r.left,r.left+(n.w-s)*e.leftRatio)),r},_afterZoomIn:function(){var t=l.current;t&&(l.isOpen=l.isOpened=!0,l.wrap.css("overflow","visible").addClass("fancybox-opened"),l.update(),(t.closeClick||t.nextClick&&l.group.length>1)&&l.inner.css("cursor","pointer").bind("click.fb",function(e){n(e.target).is("a")||n(e.target).parent().is("a")||(e.preventDefault(),l[t.closeClick?"close":"next"]())}),t.closeBtn&&n(t.tpl.closeBtn).appendTo(l.skin).bind("click.fb",function(t){t.preventDefault(),l.close()}),t.arrows&&l.group.length>1&&((t.loop||t.index>0)&&n(t.tpl.prev).appendTo(l.outer).bind("click.fb",l.prev),(t.loop||t.index<l.group.length-1)&&n(t.tpl.next).appendTo(l.outer).bind("click.fb",l.next)),l.trigger("afterShow"),t.loop||t.index!==t.group.length-1?l.opts.autoPlay&&!l.player.isActive&&(l.opts.autoPlay=!1,l.play()):l.play(!1))},_afterZoomOut:function(t){t=t||l.current,n(".fancybox-wrap").trigger("onReset").remove(),n.extend(l,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),l.trigger("afterClose",t)}}),l.transitions={getOrigPosition:function(){var t=l.current,e=t.element,n=t.orig,o={},s=50,a=50,r=t.hPadding,h=t.wPadding,c=l.getViewport();return!n&&t.isDom&&e.is(":visible")&&!(n=e.find("img:first")).length&&(n=e),u(n)?(o=n.offset(),n.is("img")&&(s=n.outerWidth(),a=n.outerHeight())):(o.top=c.y+(c.h-a)*t.topRatio,o.left=c.x+(c.w-s)*t.leftRatio),("fixed"===l.wrap.css("position")||t.locked)&&(o.top-=c.y,o.left-=c.x),o={top:g(o.top-r*t.topRatio),left:g(o.left-h*t.leftRatio),width:g(s+h),height:g(a+r)}},step:function(t,e){var n,o,s=e.prop,a=l.current,r=a.wrapSpace,h=a.skinSpace;("width"===s||"height"===s)&&(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),l.isClosing&&(n=1-n),o=t-("width"===s?a.wPadding:a.hPadding),l.skin[s](m("width"===s?o:o-r*n)),l.inner[s](m("width"===s?o:o-r*n-h*n)))},zoomIn:function(){var t=l.current,e=t.pos,o=t.openEffect,s="elastic"===o,a=n.extend({opacity:1},e);delete a.position,s?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===o&&(e.opacity=.1),l.wrap.css(e).animate(a,{duration:"none"===o?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:l._afterZoomIn})},zoomOut:function(){var t=l.current,e=t.closeEffect,n="elastic"===e,o={opacity:.1};n&&(o=this.getOrigPosition(),t.closeOpacity&&(o.opacity=.1)),l.wrap.animate(o,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:l._afterZoomOut})},changeIn:function(){var t,e=l.current,n=e.nextEffect,o=e.pos,s={opacity:1},a=l.direction;o.opacity=.1,"elastic"===n&&(t="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(o[t]=g(m(o[t])-200),s[t]="+=200px"):(o[t]=g(m(o[t])+200),s[t]="-=200px")),"none"===n?l._afterZoomIn():l.wrap.css(o).animate(s,{duration:e.nextSpeed,easing:e.nextEasing,complete:l._afterZoomIn})},changeOut:function(){var t=l.previous,e=t.prevEffect,o={opacity:.1},s=l.direction;"elastic"===e&&(o["down"===s||"up"===s?"top":"left"]=("up"===s||"left"===s?"-":"+")+"=200px"),t.wrap.animate(o,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}},l.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!d,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(l.coming?l.coming.parent:t.parent),this.fixed=!1,t.fixed&&l.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=n.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(a.bind("resize.overlay",n.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay"))return l.isActive?l.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(n(".fancybox-margin").removeClass("fancybox-margin"),t=a.scrollTop(),e=a.scrollLeft(),this.el.removeClass("fancybox-lock"),a.scrollTop(t).scrollLeft(e)),n(".fancybox-overlay").remove().hide(),n.extend(this,{overlay:null,fixed:!1})},update:function(){var t,n="100%";this.overlay.width(n).height("100%"),h?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),r.width()>t&&(n=r.width())):r.width()>a.width()&&(n=r.width()),this.overlay.width(n).height(r.height())},onReady:function(t,e){var o=this.overlay;n(".fancybox-overlay").stop(!0,!0),o||this.create(t),t.locked&&this.fixed&&e.fixed&&(o||(this.margin=r.height()>a.height()&&n("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var o,s;e.locked&&(!1!==this.margin&&(n("*").filter(function(){return"fixed"===n(this).css("position")&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),o=a.scrollTop(),s=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(o).scrollLeft(s)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!l.coming&&this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}},l.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,o,s=l.current,a=s.title,r=t.type;if(n.isFunction(a)&&(a=a.call(s.element,s)),p(a)&&""!==n.trim(a)){switch(e=n('<div class="fancybox-title fancybox-title-'+r+'-wrap">'+a+"</div>"),r){case"inside":o=l.skin;break;case"outside":o=l.wrap;break;case"over":o=l.inner;break;default:o=l.skin,e.appendTo("body"),h&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),l.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}
4e["top"===t.position?"prependTo":"appendTo"](o)}}},n.fn.fancybox=function(t){var e,o=n(this),s=this.selector||"",a=function(a){var r,h,c=n(this).blur(),d=e;a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||c.is(".fancybox-wrap")||(r=t.groupAttr||"data-fancybox-group",(h=c.attr(r))||(r="rel",h=c.get(0)[r]),h&&""!==h&&"nofollow"!==h&&(d=(c=(c=s.length?n(s):o).filter("["+r+'="'+h+'"]')).index(this)),t.index=d,!1!==l.open(c,t)&&a.preventDefault())};return e=(t=t||{}).index||0,s&&!1!==t.live?r.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):o.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var e,a,r,h;o===n.scrollbarWidth&&(n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),o=e.innerWidth()-e.height(99).innerWidth();return t.remove(),o}),o===n.support.fixedPosition&&(n.support.fixedPosition=(h=20===(r=n('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===r[0].offsetTop,r.remove(),h)),n.extend(l.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")}),e=n(t).width(),s.addClass("fancybox-lock-test"),a=n(t).width(),s.removeClass("fancybox-lock-test"),n("<style type='text/css'>.fancybox-margin{margin-right:"+(a-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),/*! 5 Colorbox 1.6.4 6 license: MIT 7 http://www.jacklmoore.com/colorbox 8*/function(t,e,n){function o(n,o,s){var a=e.createElement(n);return o&&(a.id=J+o),s&&(a.style.cssText=s),t(a)}function s(){return n.innerHeight?n.innerHeight:t(n).height()}function a(e,n){n!==Object(n)&&(n={}),this.cache={},this.el=e,this.value=function(e){var o;return void 0===this.cache[e]&&(void 0!==(o=t(this.el).attr("data-cbox-"+e))?this.cache[e]=o:void 0!==n[e]?this.cache[e]=n[e]:void 0!==Q[e]&&(this.cache[e]=Q[e])),this.cache[e]},this.get=function(e){var n=this.value(e);return t.isFunction(n)?n.call(this.el,this):n}}function r(t){var e=k.length,n=(F+t)%e;return 0>n?e+n:n}function l(t,e){return Math.round((/%/.test(t)?("x"===e?T.width():s())/100:1)*parseInt(t,10))}function h(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function c(t,e){return t.get("retinaUrl")&&n.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in v[0]&&!v[0].contains(t.target)&&t.target!==g[0]&&(t.stopPropagation(),v.focus())}function u(t){u.str!==t&&(v.add(g).removeClass(u.str).addClass(t),u.str=t)}function p(n){t(e).trigger(n),tr.triggerHandler(n)}function f(s){var r;if(!V){if(r=t(s).data(X),H=new a(s,r),F=0,(f=H.get("rel"))&&!1!==f&&"nofollow"!==f?-1===(F=(k=t("."+tt).filter(function(){var e=t.data(this,X);return new a(this,e).get("rel")===f})).index(H.el))&&(F=(k=k.add(H.el)).length-1):k=t(H.el),!Z){Z=U=!0,u(H.get("className")),v.css({visibility:"hidden",display:"block",opacity:""}),S=o(tl,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(S),j=y.height()+C.height()+b.outerHeight(!0)-b.height(),W=w.width()+x.width()+b.outerWidth(!0)-b.width(),B=S.outerHeight(!0),R=S.outerWidth(!0);var f,m=l(H.get("initialWidth"),"x"),_=l(H.get("initialHeight"),"y"),T=H.get("maxWidth"),D=H.get("maxHeight");H.w=Math.max((!1!==T?Math.min(m,l(T,"x")):m)-R-W,0),H.h=Math.max((!1!==D?Math.min(_,l(D,"y")):_)-B-j,0),S.css({width:"",height:H.h}),K.position(),p(te),H.get("onOpen"),z.add(I).hide(),v.focus(),H.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),tr.one(ts,function(){e.removeEventListener("focus",d,!0)})),H.get("returnFocus")&&tr.one(ts,function(){t(H.el).focus()})}var A=parseFloat(H.get("opacity"));g.css({opacity:A==A?A:"",cursor:H.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),H.get("closeButton")?N.html(H.get("close")).appendTo(b):N.appendTo("<div/>"),function(){var e,s,a,r=K.prep,d=++th;if(U=!0,q=!1,p(ta),p(ti),H.get("onLoad"),H.h=H.get("height")?l(H.get("height"),"y")-B-j:H.get("innerHeight")&&l(H.get("innerHeight"),"y"),H.w=H.get("width")?l(H.get("width"),"x")-R-W:H.get("innerWidth")&&l(H.get("innerWidth"),"x"),H.mw=H.w,H.mh=H.h,H.get("maxWidth")&&(H.mw=l(H.get("maxWidth"),"x")-R-W,H.mw=H.w&&H.w<H.mw?H.w:H.mw),H.get("maxHeight")&&(H.mh=l(H.get("maxHeight"),"y")-B-j,H.mh=H.h&&H.h<H.mh?H.h:H.mh),e=H.get("href"),Y=setTimeout(function(){P.show()},100),H.get("inline")){var u=t(e).eq(0);a=t("<div>").hide().insertBefore(u),tr.one(ta,function(){a.replaceWith(u)}),r(u)}else H.get("iframe")?r(" "):H.get("html")?r(H.get("html")):h(H,e)?(e=c(H,e),t(q=H.get("createImg")).addClass(J+"Photo").bind("error."+J,function(){r(o(tl,"Error").html(H.get("imgError")))}).one("load",function(){d===th&&setTimeout(function(){var e;H.get("retinaImage")&&n.devicePixelRatio>
vendor: 4,492 bytes, line 8
81&&(q.height=q.height/n.devicePixelRatio,q.width=q.width/n.devicePixelRatio),H.get("scalePhotos")&&(s=function(){q.height-=q.height*e,q.width-=q.width*e},H.mw&&q.width>H.mw&&(e=(q.width-H.mw)/q.width,s()),H.mh&&q.height>H.mh&&(e=(q.height-H.mh)/q.height,s())),H.h&&(q.style.marginTop=Math.max(H.mh-q.height,0)/2+"px"),k[1]&&(H.get("loop")||k[F+1])&&(q.style.cursor="pointer",t(q).bind("click."+J,function(){K.next()})),q.style.width=q.width+"px",q.style.height=q.height+"px",r(q)},1)}),q.src=e):e&&E.load(e,H.get("data"),function(e,n){d===th&&r("error"===n?o(tl,"Error").html(H.get("xhrError")):t(this).contents())})}()}}function m(){v||(G=!1,T=t(n),v=o(tl).attr({id:X,class:!1===t.support.opacity?J+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(tl,"Overlay").hide(),P=t([o(tl,"LoadingOverlay")[0],o(tl,"LoadingGraphic")[0]]),_=o(tl,"Wrapper"),b=o(tl,"Content").append(I=o(tl,"Title"),D=o(tl,"Current"),O=t('<button type="button"/>').attr({id:J+"Previous"}),M=t('<button type="button"/>').attr({id:J+"Next"}),A=t('<button type="button"/>').attr({id:J+"Slideshow"}),P),N=t('<button type="button"/>').attr({id:J+"Close"}),_.append(o(tl).append(o(tl,"TopLeft"),y=o(tl,"TopCenter"),o(tl,"TopRight")),o(tl,!1,"clear:left").append(w=o(tl,"MiddleLeft"),b,x=o(tl,"MiddleRight")),o(tl,!1,"clear:left").append(o(tl,"BottomLeft"),C=o(tl,"BottomCenter"),o(tl,"BottomRight"))).find("div div").css({float:"left"}),E=o(tl,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),z=M.add(O).add(D).add(A)),e.body&&!v.parent().length&&t(e.body).append(g,v.append(_,E))}var g,v,_,b,y,w,x,C,k,T,S,E,P,I,D,A,M,O,N,z,H,j,W,B,R,F,q,Z,U,V,Y,K,G,Q={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,n=t(this).data("cbox-img-attrs");return"object"==typeof n&&t.each(n,function(t,n){e[t]=n}),e},createIframe:function(){var n=e.createElement("iframe"),o=t(this).data("cbox-iframe-attrs");return"object"==typeof o&&t.each(o,function(t,e){n[t]=e}),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),n.name=(new Date).getTime(),n.allowFullscreen=!0,n}},X="colorbox",J="cbox",tt=J+"Element",te=J+"_open",ti=J+"_load",tn=J+"_complete",to=J+"_cleanup",ts=J+"_closed",ta=J+"_purge",tr=t("<a/>"),tl="div",th=0,tc={},td=function(){function t(){clearTimeout(r)}function e(){(H.get("loop")||k[F+1])&&(t(),r=setTimeout(K.next,H.get("slideshowSpeed")))}function n(){A.html(H.get("slideshowStop")).unbind(h).one(h,o),tr.bind(tn,e).bind(ti,t),v.removeClass(l+"off").addClass(l+"on")}function o(){t(),tr.unbind(tn,e).unbind(ti,t),A.html(H.get("slideshowStart")).unbind(h).one(h,function(){K.next(),n()}),v.removeClass(l+"on").addClass(l+"off")}function s(){a=!1,A.hide(),t(),tr.unbind(tn,e).unbind(ti,t),v.removeClass(l+"off "+l+"on")}var a,r,l=J+"Slideshow_",h="click."+J;return function(){a?H.get("slideshow")||(tr.unbind(to,s),s()):H.get("slideshow")&&k[1]&&(a=!0,tr.one(to,s),H.get("slideshowAuto")?n():o(),A.show())}}();t[X]||(t(m),(K=t.fn[X]=t[X]=function(n,o){var s=this;return n=n||{},t.isFunction(s)&&(s=t("<a/>"),n.open=!0),s[0]&&(m(),function(){function n(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return!!v&&(G||(G=!0,M.click(function(){K.next()}),O.click(function(){K.prev()}),N.click(function(){K.close()}),g.click(function(){H.get("overlayClose")&&K.close()}),t(e).bind("keydown."+J,function(t){var e=t.keyCode;Z&&H.get("escKey")&&27===e&&(t.preventDefault(),K.close()),Z&&H.get("arrowKey")&&k[1]&&!t.altKey&&
8(37===e?(t.preventDefault(),O.click()):39===e&&(t.preventDefault(),M.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+J,"."+tt,n):t("."+tt).live("click."+J,n)),!0)}()&&(o&&(n.onComplete=o),s.each(function(){var e=t.data(this,X)||{};t.data(this,X,t.extend(e,n))}).addClass(tt),new a(s[0],n).get("open")&&f(s[0]))),s}).position=function(e,n){function o(){y[0].style.width=C[0].style.width=b[0].style.width=parseInt(v[0].style.width,10)-W+"px",b[0].style.height=w[0].style.height=x[0].style.height=parseInt(v[0].style.height,10)-j+"px"}var a,r,h,c=0,d=0,u=v.offset();if(T.unbind("resize."+J),v.css({top:-9e4,left:-9e4}),r=T.scrollTop(),h=T.scrollLeft(),H.get("fixed")?(u.top-=r,u.left-=h,v.css({position:"fixed"})):(c=r,d=h,v.css({position:"absolute"})),d+=!1!==H.get("right")?Math.max(T.width()-H.w-R-W-l(H.get("right"),"x"),0):!1!==H.get("left")?l(H.get("left"),"x"):Math.round(Math.max(T.width()-H.w-R-W,0)/2),c+=!1!==H.get("bottom")?Math.max(s()-H.h-B-j-l(H.get("bottom"),"y"),0):!1!==H.get("top")?l(H.get("top"),"y"):Math.round(Math.max(s()-H.h-B-j,0)/2),v.css({top:u.top,left:u.left,visibility:"visible"}),_[0].style.width=_[0].style.height="9999px",a={width:H.w+R+W,height:H.h+B+j,top:c,left:d},e){var p=0;t.each(a,function(t){return a[t]!==tc[t]?void(p=e):void 0}),e=p}tc=a,e||v.css(a),v.dequeue().animate(a,{duration:e||0,complete:function(){o(),U=!1,_[0].style.width=H.w+R+W+"px",_[0].style.height=H.h+B+j+"px",H.get("reposition")&&setTimeout(function(){T.bind("resize."+J,K.position)},1),t.isFunction(n)&&n()},step:o})},K.resize=function(t){var e;Z&&((t=t||{}).width&&(H.w=l(t.width,"x")-R-W),t.innerWidth&&(H.w=l(t.innerWidth,"x")),S.css({width:H.w}),t.height&&(H.h=l(t.height,"y")-B-j),t.innerHeight&&(H.h=l(t.innerHeight,"y")),t.innerHeight||t.height||(e=S.scrollTop(),S.css({height:"auto"}),H.h=S.height()),S.css({height:H.h}),e&&S.scrollTop(e),K.position("none"===H.get("transition")?0:H.get("speed")))},K.prep=function(n){if(Z){var s,l="none"===H.get("transition")?0:H.get("speed");S.remove(),(S=o(tl,"LoadedContent").append(n)).hide().appendTo(E.show()).css({width:(H.w=H.w||S.width(),H.w=H.mw&&H.mw<H.w?H.mw:H.w,H.w),overflow:H.get("scrolling")?"auto":"hidden"}).css({height:(H.h=H.h||S.height(),H.h=H.mh&&H.mh<H.h?H.mh:H.h,H.h)}).prependTo(b),E.hide(),t(q).css({float:"none"}),u(H.get("className")),s=function(){function n(){!1===t.support.opacity&&v[0].style.removeAttribute("filter")}var o,s,d=k.length;Z&&(s=function(){clearTimeout(Y),P.hide(),p(tn),H.get("onComplete")},I.html(H.get("title")).show(),S.show(),d>1?("string"==typeof H.get("current")&&D.html(H.get("current").replace("{current}",F+1).replace("{total}",d)).show(),M[H.get("loop")||d-1>F?"show":"hide"]().html(H.get("next")),O[H.get("loop")||F?"show":"hide"]().html(H.get("previous")),td(),H.get("preloading")&&t.each([r(-1),r(1)],function(){var n=k[this],o=new a(n,t.data(n,X)),s=o.get("href");s&&h(o,s)&&(s=c(o,s),e.createElement("img").src=s)})):z.hide(),H.get("iframe")?(o=H.get("createIframe"),H.get("scrolling")||(o.scrolling="no"),t(o).attr({src:H.get("href"),class:J+"Iframe"}).one("load",s).appendTo(S),tr.one(ta,function(){o.src="//about:blank"}),H.get("fastIframe")&&t(o).trigger("load")):s(),"fade"===H.get("transition")?v.fadeTo(l,1,n):n())},"fade"===H.get("transition")?v.fadeTo(l,0,function(){K.position(0,s)}):K.position(l,s)}},K.next=function(){!U&&k[1]&&(H.get("loop")||k[F+1])&&f(k[F=r(1)])},K.prev=function(){!U&&k[1]&&(H.get("loop")||F)&&f(k[F=r(-1)])},K.close=function(){Z&&!V&&(V=!0,Z=!1,p(to),H.get("onCleanup"),T.unbind("."+J),g.fadeTo(H.get("fadeOut")||0,0),v.stop().fadeTo(H.get("fadeOut")||0,0,function(){v.hide(),g.hide(),p(ta),S.remove(),setTimeout(function(){V=!1,p(ts),H.get("onClosed")},1)}))},K.remove=function(){v&&(v.stop(),t[X].close(),v.stop(!1,!0).remove(),g.remove(),V=!1,v=null,t("."+tt).removeData(X).removeClass(tt),t(e).unbind("click."+J).unbind("keydown."+J))},K.element=function(){return t(H.el)},K.settings=Q)}(jQuery,document,window),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".section.SNB-blade-discount");if(t){function e(){let e=t.querySelector(".image"),n=t.getBoundingClientRect().top,o=window.innerHeight/1;n<o&&e&&e.classList.add("active")}window.addEventListener("scroll",e),e()}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".section.SNB-blade-discount-animation");if(t){function e(){let e=t.querySelector(".blade__eyebrow"),n=t.querySelector(".blade__title"),o=t.querySelector(".blade__media"),s=t.querySelector(".blade__subtitle"),a=t.querySelector(".blade__links"),r=t.getBoundingClientRect().top,l=window.innerHeight/1;r<l&&e&&(e.classList.add("active"),n.classList.add("active"),o.classList.add("active"),s.classList.add("active"),a.classList.add("active"))}window.addEventListener("scroll",e),e()}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".SN-blade-offer-animation"),e=document.querySelector(".SN-blade-offer-animation .blade__media"),n=document.querySelector(".SN-blade-offer-animation .blade__text");if(t){function o(){let s=t.getBoundingClientRect().top,a=window.innerHeight/3;s<a&&(e.classList.add("active"),n.classList.add("active"),window.removeEventListener("scroll",o))}window.addEventListener("scroll",o)}});var st,scaleSize=1,bannerImageWrapper=$(".section.seville-new-banner .banner-a .banner__image-wrapper"),banner=$(".section.seville-new-banner .banner-a");if(banner.length)var bannerTopOffset=banner.offset().top,bannerHeight=banner.height();var tempSize=0,sizeRatio=0,bannerFTitleText=$(".section.seville-new-banner-f-accent .banner-f .banner__title");if(bannerFTitleText.length){var t=$("<span></span>").text(bannerFTitleText.text());bannerFTitleText.text(""),$(bannerFTitleText).append(t)}function setFAQsTitlesHeight(t){var e=t.find(".featuredblock__title");for(i=0;i<e.length;i++)$(e[i]).height()>$(e[i+1]).height()?$(e[i+1]).height($(e[i]).height()):$(e[i]).height($(e[i+1]).height()),i++}function menuPrepare(){origMenuContent.length||(origMenuContent=menu.html()),menuHolder.css("width",menuHolderMaxWidth),allMenus.push([currentMenu.html(),Math.round(calcTotalMenuItemsWidth())]);for(var t=0;t<=menuChildrenCount;t++){moreButton.length&&moreButton.remove();var e=currentMenu.children("li:last").remove();currentMenu.append(moreButton);var n=calcTotalMenuItemsWidth();moreButton.children("ul").prepend($(e)),allMenus.push([currentMenu.html(),Math.round(n)])}menuHolder.css("width","")}function calcTotalMenuItemsWidth(){var t=0;return currentMenu.children().each(function(){t+=$(this)[0].getBoundingClientRect().width}),t}function addMoreButton(){for(var t=0;t<=menuChildrenCount;t++){if(currentMenuWidth<=allMenus[0][1]&¤tMenuWidth>=allMenus[t][1]){currentMenu.empty(),currentMenu.append(allMenus[t][0]);return}if(currentMenuWidth>allMenus[0][1]){currentMenu.empty(),currentMenu.append(origMenuContent);return}}}function navADropDown2(){if($("body").hasClass("isEditor")){var t=$("nav[class^='navigation-']"),e=110;t.length&&(t.closest(".section--inner").addClass("fix-hover"),t.each(function(t){$(this).closest(".section-base-container").css({"z-index":--e})}))}$(".navigation-a").on("mouseover",".navigation__list--default li.has-drop-down",function(){$(this).parent().css("overflow","visible")})}function bannerDSwoop(){$(".section.banner-d-swoop .banner-d .banner__text-overlay--triangle").html('<svg preserveAspectRatio="none" viewBox="0 0 230 640"><path d="M19.0476 320C19.9223 175.303 175 60 200 0H0V640H192.381C175 580 18.1822 463.173 19.0476 320Z"/></svg>')}
8function bannerFAbstractShape(){$(".section.banner-f-abstract-shape .banner-f .banner__image").append('<svg viewBox="0 0 485 604" preserveAspectRatio="none"><path d="M483.517 276.495C478.395 332.998 417.997 361.109 384.893 407.184C338.52 471.726 330.461 573.271 254.203 595.653C170.328 620.271 61.9045 589.488 14.9268 515.771C-30.1316 445.066 46.0074 360.199 50.8125 276.495C55.053 202.625 -3.38703 122.467 40.9069 63.1982C86.8067 1.78029 178.409 -7.24325 254.203 4.34036C320.879 14.5304 367.485 68.1701 410.947 119.751C449.514 165.523 488.921 216.885 483.517 276.495Z"/></svg>')}function bladeNarrowSbg(){$(".section.blade-narrow-sbg .blade__text-media--swapped").closest(".section").addClass("blade__text-media--swapped")}function featuredBlocksAAccordion(){$(".section.fb-grid-a-accordion .featuredblock__wrap").each(function(){$(this).append('<div class="featuredblock__accordion"></div>');var t=$(this).find(".featuredblock-image-title-wrapper"),e=$(this).find(".featuredblock__accordion"),n=$(this).find(".featuredblock__content"),o=$(this).find(".featuredblock__sub-menu"),s=$(this).find(".featuredblock__cta"),a=t.has(".featuredblock__icon").length,r=t.has(".featuredblock__image").length;e.append(n,o,s),t.click(function(t){t.preventDefault(),$(this).toggleClass("expanded"),e.slideToggle()}),0==a&&0==r&&e.addClass("no-margin")})}function bluredBladeBG(){$(".section.blade-background-blur").each(function(){let t=$(this).find(".blade__media"),e=t.find("img"),n=e.attr("src");t.length&&e.length&&n&&(t.css({backgroundImage:"url("+n+")",backgroundSize:"cover",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat"}),e.remove())})}function staffOverlapped(){$(".section.staff-overlapped-card .staff-member").each(function(){let t=$(this).find(".staff-member__image-wrapper"),e=t.find("img"),n=e.attr("src");$(this).find(".staff-member__text"),t.length&&e.length&&n&&(t.css({backgroundImage:"url("+n+")",backgroundSize:"cover",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat"}),e.remove())})}function galleryTitle(){var t=$(".award-banner-1 .gallery .gallery__title").text();$(".award-banner-1 .gallery .gallery__title").replaceWith("<h1></h1>"),$(".award-banner-1 .gallery h1").text(t).addClass("gallery__title component__title")}function navigationVisibility(){if($(".mobileHeader-container").length){var t=$("#tabletHeaderEnabledFlag").val(),e=$(".section-navigation .navigation");1==t?e.addClass("d-none d-lg-block"):e.addClass("d-none d-md-block")}}function bannerOverImage(){"use strict";$(".banner-f-title-over-image").each(function(){$(this).find(".banner__item").each(function(){$(this).find(".banner__text-wrapper, .banner__image-wrapper").wrapAll("<div class='holder'/>")})})}function bannerAboveImage(){"use strict";$(".banner-a-title-above").each(function(){let t=$(this),e=t.find(".banner__title, .banner__tc-divider"),n=t.find(".banner__subtitle, .banner__cta-wrapper");e.wrapAll("<div class='text__holder'/>"),n.wrapAll("<div class='cta__holder'/>")})}function footerParallax(){"use strict";let t=document.querySelector(".footer-parallax");if(!t)return;t.style.transition="background-position .5s";let e=new IntersectionObserver(function(t,e){t.forEach(t=>{let e=t.intersectionRatio;t.target.style.backgroundPosition=`50% ${50+40*e}%`})},{root:null,rootMargin:"0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});e.observe(t)}function bladeParallax(){let t=document.querySelector(".blade-parallax");if(!t)return;let e=new IntersectionObserver(function(t,e){t.forEach(t=>{let e=t.intersectionRatio,n=t.target.querySelector(".blade__media");n.style.transition="transform .5s",n.style.transform=`translateY(${100*(1-e)}px)`})},{root:null,rootMargin:"0px",threshold:[0,.25,.3,.45,.5,.55,.6,.65,.7,.75,.8,.85,.9,.95,1]});e.observe(t)}function bannerTitleHighlight(){"use strict";let t=document.querySelector(".section.banner-a-highlighted-title");if(!t)return;let e=new IntersectionObserver(function(t,e){t.forEach(t=>{t.isIntersecting?t.target.classList.add("highlighted"):t.target.classList.remove("highlighted")})},{root:null,rootMargin:"0px",threshold:[.75]});t.querySelectorAll(".banner__title").forEach(t=>{e.observe(t);let n=t.textContent.trim();t.innerHTML=`<span>${n}</span>`,t.style.height=`${t.offsetHeight}px`})}function partialTestimonialsSlider(){"use strict";
8let t=$(".partial-testimonials-cta .js-testimonials-layout-settings.flexslider");function e(){return window.innerWidth<768?{itemWidth:75,itemMargin:5}:{itemWidth:98,itemMargin:22}}t&&(t.flexslider({animation:"slide",controlNav:!1,directionNav:!1,maxItems:5,...e(),keyboard:!1,slideshow:!1}),$(window).on("resize",function(){let{itemWidth:n,itemMargin:o}=e();t.flexslider("setOption","itemWidth",n),t.flexslider("setOption","itemMargin",o)}))}function fbFullImage(){"use strict";let t=document.querySelector(".section.fb-grid-a-full-image");t&&t.querySelectorAll(".featuredblock__item").forEach(function(t){let e=t.querySelectorAll(".featuredblock__icon, .featuredblock__title, .featuredblock__content, .featuredblock__sub-menu, .featuredblock__cta"),n=t.querySelector(".featuredblock__wrap"),o=document.createElement("div");o.classList.add("featuredblock__content--holder"),e.forEach(function(t){o.appendChild(t)}),n.appendChild(o)})}function disableLinks(t){$(t).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(t){t.preventDefault()})})}$(window).load(function(){var t=function(e,n){jQuery(e).length?n(jQuery(e)):setTimeout(function(){t(e,n)},100)};banner&&t(".section.seville-new-banner .banner-a .flexslider",function(t){setTimeout(function(){$(".section.seville-new-banner .banner-a .banner__title").hasClass("animated")||$(".section.seville-new-banner .banner-a .banner__title").addClass("animated"),$(".section.seville-new-banner .banner-a .banner__subtitle").hasClass("animated")||$(".section.seville-new-banner .banner-a .banner__subtitle").addClass("animated"),$(".section.seville-new-banner .banner-a .banner__image img").hasClass("animated")||$(".section.seville-new-banner .banner-a .banner__image img").addClass("animated"),$(".section.seville-new-banner").hasClass("animated")||$(".section.seville-new-banner").addClass("animated"),$(".section.seville-new-banner .banner-a .banner__text-wrapper").hasClass("animated")||$(".section.seville-new-banner .banner-a .banner__text-wrapper").addClass("animated"),$(".section.seville-new-banner .banner-a .banner__image-wrapper").hasClass("animated")||$(".section.seville-new-banner .banner-a .banner__image-wrapper").addClass("animated")},200)})}),$.fn.isInViewport=function(){var t=$(this).offset().top,e=t+$(this).outerHeight(),n=$(window).scrollTop(),o=n+$(window).height();return e>n&&t<o},$(window).on("scroll",function(){banner.length&&(st=$(this).scrollTop(),sizeRatio=100/(bannerHeight+bannerTopOffset)/100,banner.isInViewport()&&(tempSize=scaleSize+st*sizeRatio,bannerImageWrapper.css("transform","scale("+tempSize+")")))}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.SN-gallery-checkers-animation");if(t.length>0){let e={root:null,rootMargin:"0px",threshold:.25};t.forEach(t=>{let n=t.querySelector(".gallery-items-wrap"),o=t.querySelectorAll(".gallery-grid--item");if(!n||0===o.length)return;let s=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(e.unobserve(t.target),[0,1,2,3,5,4,7,6].forEach((t,e)=>{o[t]&&setTimeout(()=>{o[t].classList.add("visible")},200*e)}))})},e);s.observe(n)})}}),$(window).load(function(){let t=document.querySelector(".seville-new-FAQs");t&&window.innerWidth>768&&setFAQsTitlesHeight($(".seville-new-FAQs"))}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelector(".section.SN-fb-faqs-animation .featuredblocks-grid-a");if(t){let e=(e,n)=>{e.forEach(e=>{e.isIntersecting&&(t.querySelectorAll(".title-subtitle__wrapper, .featuredblocks .featuredblock__item").forEach(t=>{t.classList.add("animate")}),n.disconnect())})},n=new IntersectionObserver(e,{root:null,threshold:.5});n.observe(t)}}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.SN-fb-services-animation .featuredblock__wrap");if(t){let e=!1,n=0,o=new IntersectionObserver(o=>{o.forEach(o=>{!o.isIntersecting||o.target.classList.contains("animate")||e||o.target!==t[n]||function o(){n<t.length&&!e&&(e=!0,t[n].classList.add("animate"),setTimeout(()=>{e=!1,n++,o()},200))}()})},{threshold:.25,rootMargin:"0px"});t.forEach(t=>{o.observe(t)})}}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.Reviews-promo-animation .row.equal > *");if(t){let e=!1,n=0,o=new IntersectionObserver(o=>{o.forEach(o=>{!o.isIntersecting||o.target.classList.contains("animate")||e||o.target!==t[n]||function o(){n<t.length&&!e&&(e=!0,t[n].classList.add("animate"),setTimeout(()=>{e=!1,n++,o()},500))}()})},{threshold:.25,rootMargin:"0px"});t.forEach(t=>{o.observe(t)})}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".SN-blade-welcome-animation");if(t.length>0){function e(){t.forEach(t=>{let e=t.querySelector(".blade-a--4 .blade__wrap"),n=t.querySelector(".blade-a--8 .blade__wrap"),o=t.getBoundingClientRect().top,s=window.innerHeight/1;o<s&&(e&&e.classList.add("active"),n&&n.classList.add("active"))})}window.addEventListener("scroll",e),e()}}),document.addEventListener("DOMContentLoaded",()=>{let t=new IntersectionObserver(t=>{t.forEach(t=>{if(t.intersectionRatio>=.25){let e=t.target.querySelector(".cta-a.cta-a--12");e&&e.classList.add("visible")}})},{threshold:.25}
8),e=document.querySelectorAll(".section.SN-CTA-emergency-animation");e.length>0&&e.forEach(e=>{t.observe(e)})}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.SN-gallery-insurance-animation");if(t.length>0){let e={root:null,rootMargin:"0px",threshold:.25};t.forEach(t=>{let n=t.querySelector(".gallery .gallery-items-wrap"),o=t.querySelectorAll(".gallery .gallery-grid--item");if(!n||0===o.length)return;let s=new IntersectionObserver((t,e)=>{t.forEach(t=>{t.isIntersecting&&(e.unobserve(t.target),function(t){t.forEach((t,e)=>{setTimeout(()=>{t.classList.add("visible")},400*e)})}(o))})},e);s.observe(n)})}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".section.SN-form-animation");if(t){let e={root:null,threshold:.25},n=(e,n)=>{e.forEach(e=>{if(e.isIntersecting){let e=t.querySelector(".contactform--a, .form-a");e.classList.add("active"),n.disconnect()}})},o=new IntersectionObserver(n,e);o.observe(t)}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".section.SN-blade-animation");if(t.length>0){let e={root:null,threshold:.25};t.forEach(t=>{let n=(e,n)=>{e.forEach(e=>{if(e.isIntersecting){let e=t.querySelector(".blade__media"),o=t.querySelector(".blade__text");e&&e.classList.add("active"),o&&o.classList.add("active"),n.unobserve(t)}})},o=new IntersectionObserver(n,e);o.observe(t)})}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".SN-banner-awards-animation"),e=document.querySelector(".SN-banner-awards-animation .column-1"),n=document.querySelector(".SN-banner-awards-animation .column-2");if(t){function o(){let s=t.getBoundingClientRect().top,a=window.innerHeight/3;s<a&&(e.classList.add("active"),n.classList.add("active"),window.removeEventListener("scroll",o))}window.addEventListener("scroll",o)}}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.SN-title-content-animation");t&&t.forEach(t=>{let e=t.querySelector(".component");if(!e)return;let n=e.querySelector(".title-subtitle__wrapper"),o=n?[n.querySelector(".component__eyebrow"),n.querySelector(".component__title"),n.querySelector(".component__caption"),n.querySelector(".component__subtitle")].filter(t=>null!==t):[],s=Array.from(e.children).filter(t=>!t.classList.contains("title-subtitle__wrapper")),a=!1,r=0;function l(){s.forEach((t,e)=>{setTimeout(()=>{t.classList.add("animate")},100*e)})}let h=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&!a&&(o.length>0?function t(){r<o.length&&(o[r].classList.add("animate"),setTimeout(()=>{r++,t(),r>=o.length&&!a&&(a=!0,setTimeout(()=>{l()},300))},200))}():l())})},{threshold:.25,rootMargin:"0px"});h.observe(t)})}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.SN-editable-content-animation");t&&t.forEach(t=>{let e=t.querySelector(".editable__container");if(!e)return;let n=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&e.classList.add("animate")})},{threshold:.25,rootMargin:"0px"});n.observe(t)})}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".section.SN-banner-a-text-above-animation");if(t){let e={root:null,threshold:.3},n=(e,n)=>{e.forEach(e=>{if(e.isIntersecting){let e=t.querySelector(".banner__text-position--above .banner__text-wrapper"),o=t.querySelector(".flexslider");e&&e.classList.add("animate-text"),o&&o.classList.add("animate-image"),n.disconnect()}})},o=new IntersectionObserver(n,e);o.observe(t)}}),document.addEventListener("DOMContentLoaded",()=>{let t=new IntersectionObserver(t=>{t.forEach(t=>{if(t.intersectionRatio>=.25){let e=t.target.querySelector(".section.SN-FB-grid-a-b-animation .featuredblocks-grid-a .featuredblocks__title-caption-wrap"),n=t.target.querySelector(".section.SN-FB-grid-a-b-animation .featuredblocks-grid-b .featuredblocks__title-caption-wrap");e&&e.classList.add("visible"),n&&n.classList.add("visible"),setTimeout(()=>{let e=t.target.querySelectorAll(".section.SN-FB-grid-a-b-animation .featuredblocks-grid-a .featuredblocks .featuredblock__item");e.forEach((t,e)=>{setTimeout(()=>{t.classList.add("visible")},300*e)});let n=t.target.querySelectorAll(".section.SN-FB-grid-a-b-animation .featuredblocks-grid-b .featuredblocks .featuredblock__item");
8n.forEach((t,e)=>{setTimeout(()=>{t.classList.add("visible")},300*e)})},300)}})},{threshold:.25}),e=document.querySelectorAll(".section.SN-FB-grid-a-b-animation");e&&e.forEach(e=>{t.observe(e)})}),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".section.SN-gallery-animation");if(t.length){let e=new IntersectionObserver((t,e)=>{t.forEach(t=>{if(t.isIntersecting){let n=t.target,o=n.querySelector(".gallery__title-subtitle__wrapper"),s=n.querySelectorAll(".gallery-grid--item");setTimeout(()=>{o&&o.classList.add("visible")},100),function(t){t.forEach((t,e)=>{setTimeout(()=>{t.classList.add("visible")},400+200*e)})}(s),e.unobserve(n)}})},{root:null,rootMargin:"0px",threshold:.25});t.forEach(t=>{e.observe(t)})}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".section.SN-multi-staff-animation .staff-multiple-column");if(t){let e=window.matchMedia("(max-width: 767px)").matches,n={root:null,threshold:e?.1:.25},o=(e,n)=>{e.forEach(e=>{e.isIntersecting&&(t.querySelectorAll(".title-subtitle__wrapper, .staff-member").forEach(t=>{t.classList.add("animate-on-scroll")}),n.disconnect())})},s=new IntersectionObserver(o,n);s.observe(t)}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".section.SN-any-staff-animation");t&&t.forEach(t=>{let e=t.querySelector(".title-subtitle__wrapper"),n={root:null,threshold:.25},o=(t,n)=>{t.forEach(t=>{t.isIntersecting&&(t.target===e&&e.classList.add("animate-on-scroll"),t.target.querySelectorAll(".staff-member").forEach((t,e)=>{t.classList.add("animate-on-scroll")}),n.unobserve(t.target))})},s=new IntersectionObserver(o,n);e&&s.observe(e),t.querySelectorAll(".staff__item").forEach(t=>{s.observe(t)})})}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelectorAll(".SN-hamburger-menu-animation .navigation__button"),e=document.querySelector(".SN-hamburger-menu-animation .navigation__menu--container");t&&e&&t.forEach(t=>{t.addEventListener("click",()=>{t.classList.toggle("is-active")}),document.addEventListener("click",n=>{t.contains(n.target)||e.contains(n.target)||t.classList.remove("is-active")})})}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".fb-grid-a-gallery-like-animation .featuredblocks-grid-a");if(t){let e={root:null,threshold:.3},n=(e,n)=>{e.forEach(e=>{e.isIntersecting&&(t.querySelectorAll(".featuredblock__item, .featuredblock__title, .featuredblock__content, .featuredblock__cta").forEach(t=>{t.classList.add("active")}),n.disconnect())})},o=new IntersectionObserver(n,e);o.observe(t)}}),document.addEventListener("DOMContentLoaded",()=>{let t=document.querySelector(".section.SN-banner-zoom-in-animation"),e=document.querySelectorAll(".section.SN-banner-zoom-in-animation .banner__image");if(t){let n=t=>{if(!t)return!1;let e=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=.75*n;return e.top<=o},o=()=>{n(t)&&e.forEach(t=>{t.classList.contains("animation-triggered")||t.classList.add("animation-triggered")})};o(),window.addEventListener("scroll",o)}}),window.onload=function(){let t=document.querySelectorAll(".sn-parallax-bg"),e=document.querySelectorAll(".sn-parallax-bg .video-foreground");if(t){t.forEach(t=>{let e=`#${t.id}`;for(let n of document.styleSheets)try{let o=n.cssRules||n.rules;for(let n of o)if(n.selectorText===e&&n.style.backgroundImage){let e=n.style.backgroundImage.slice(4,-1).replace(/["']/g,""),o=document.createElement("div");o.className="image-background";let s=document.createElement("div");s.className="image-foreground";let a=document.createElement("img");a.src=e,a.setAttribute("preload","preload"),s.appendChild(a),o.appendChild(s),t.appendChild(o),t.style.backgroundImage="none"}}catch(t){}}),new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?t.target.dataset.visible="true":t.target.dataset.visible="false"})},{root:null,rootMargin:"0px",threshold:.1});let n=t=>{t.forEach(t=>{let e=!1,n=()=>{let n=t.getBoundingClientRect(),o=window.scrollY,s=n.top+o,a=n.height/2;t.style.transform=`translate3d(0px, ${Math.max(Math.min((o-s)*.6,a),-a)}px, 0px)`,e=!1};window.addEventListener("scroll",()=>{e||(requestAnimationFrame(n),e=!0)},{passive:!0}),n()})};n(e);let o=document.querySelectorAll(".sn-parallax-bg .image-foreground");n(o),setTimeout(()=>{let t=window.innerWidth,n=window.innerHeight;
8e.forEach(e=>{e.style.width=`${t}px`,e.style.height=`${n}px`}),o.forEach(e=>{e.style.width=`${t}px`,e.style.height=`${n}px`})},5)}},document.addEventListener("DOMContentLoaded",()=>{let t=$(".section.SNC-blade-decoration");var e=$(".section.SNC-blade-decoration .blade-a .blade__media");t&&e.append('<svg width="642" height="640" viewBox="0 0 642 640" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="shape1" d="M322.182 0.222993C412.362 -4.46173 490.661 65.4152 542.589 139.336C586.978 202.524 573.827 282.648 574.836 359.877C575.867 438.849 601.711 527.994 548.425 586.258C494.229 645.517 402.086 643.879 322.182 636.133C250.857 629.218 185.136 598.371 135.906 546.268C88.1241 495.697 63.3989 429.435 61.1642 359.877C58.8461 287.721 81.1368 219.521 123.532 161.106C175.569 89.4042 233.742 4.81736 322.182 0.222993Z"/><path class="shape2" d="M314.441 611.492C231.925 604.68 189.723 517.591 133.343 457.808C80.4409 401.713 -2.91329 355.772 1.14267 279.285C5.15359 203.648 89.3982 163.315 151.336 118.499C200.578 82.8684 254.511 64.2384 314.441 52.591C397.25 36.497 488.719 -8.47893 557.653 39.531C630.318 90.1391 645.569 191.755 639.938 279.285C634.643 361.577 586.755 431.131 528.643 490.441C469.204 551.105 399.701 618.53 314.441 611.492Z"/><path class="shape3" d="M327.559 18.5156C410.075 25.4307 452.277 113.839 508.657 174.529C561.559 231.473 644.913 278.111 640.857 355.757C636.846 432.539 552.602 473.483 490.664 518.979C441.422 555.149 387.489 574.061 327.559 585.885C244.75 602.223 153.281 647.88 84.3467 599.143C11.6815 547.768 -3.56907 444.613 2.06234 355.757C7.35676 272.218 55.2454 201.609 113.357 141.401C172.796 79.8174 242.299 11.3706 327.559 18.5156Z" stroke-width="2" /></svg>')}),document.addEventListener("DOMContentLoaded",()=>{let t=$(".section.SNC-banner-f");var e=$(".section.SNC-banner-f .banner-f .banner__image-wrapper");t&&e.append('<svg width="640" height="650" viewBox="0 0 640 650" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="shape1" d="M175.36 454.328C102.229 420.03 3.43034 381.384 0.0756924 300.667C-3.30787 219.254 107.598 190.801 161.882 130.027C196.903 90.8194 208.819 31.8801 257.619 12.3377C310.979 -9.03094 372.136 -1.35997 422.958 25.4763C475.703 53.3286 516.086 100.604 533.069 157.789C550.507 216.508 540.319 278.052 514.459 333.588C485.646 395.467 447.23 457.328 382.933 480.222C314.64 504.538 240.985 485.105 175.36 454.328Z"/><path class="shape2" d="M218.003 153.053C271.932 97.5209 363.566 163.887 440.249 174.071C499.644 181.959 569.738 161.075 610.338 205.159C650.438 248.7 628.87 316.244 625.653 375.386C622.713 429.442 625.347 484.886 592.772 528.118C555.44 577.663 501.22 610.919 440.147 621.579C365.413 634.624 270.364 652.047 223.171 592.632C176.165 533.454 245.553 451.083 244.664 375.473C243.751 297.849 163.929 208.736 218.003 153.053Z"/><path class="shape3" d="M595.674 289.338C622.617 356.003 652.412 424.857 631.687 493.636C611.461 560.755 555.037 611.085 490.492 638.389C432.881 662.76 372.42 635.256 310.073 629.684C222.353 621.846 116.031 665.768 57.6832 599.714C-2.41946 531.674 10.1844 418.199 52.3796 337.96C89.3343 267.687 187.024 271.56 253.261 227.802C328.675 177.982 370.904 52.7089 459.948 68.7112C548.245 84.5792 562.044 206.129 595.674 289.338Z" stroke-width="2" /></svg>')}),document.addEventListener("DOMContentLoaded",()=>{let t=$(".section.snc-staff");var e=$(".section.snc-staff .staff-single-column .staff-member__image-wrapper");t&&e.append('<svg width="640" height="650" viewBox="0 0 640 650" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="shape1" d="M175.36 454.328C102.229 420.03 3.43034 381.384 0.0756924 300.667C-3.30787 219.254 107.598 190.801 161.882 130.027C196.903 90.8194 208.819 31.8801 257.619 12.3377C310.979 -9.03094 372.136 -1.35997 422.958 25.4763C475.703 53.3286 516.086 100.604 533.069 157.789C550.507 216.508 540.319 278.052 514.459 333.588C485.646 395.467 447.23 457.328 382.933 480.222C314.64 504.538 240.985 485.105 175.36 454.328Z"/><path class="shape2" d="M218.003 153.053C271.932 97.5209 363.566 163.887 440.249 174.071C499.644 181.959 569.738 161.075 610.338 205.159C650.438 248.7 628.87 316.244 625.653 375.386C622.713 429.442 625.347 484.886 592.772 528.118C555.44 5
877.663 501.22 610.919 440.147 621.579C365.413 634.624 270.364 652.047 223.171 592.632C176.165 533.454 245.553 451.083 244.664 375.473C243.751 297.849 163.929 208.736 218.003 153.053Z"/><path class="shape3" d="M595.674 289.338C622.617 356.003 652.412 424.857 631.687 493.636C611.461 560.755 555.037 611.085 490.492 638.389C432.881 662.76 372.42 635.256 310.073 629.684C222.353 621.846 116.031 665.768 57.6832 599.714C-2.41946 531.674 10.1844 418.199 52.3796 337.96C89.3343 267.687 187.024 271.56 253.261 227.802C328.675 177.982 370.904 52.7089 459.948 68.7112C548.245 84.5792 562.044 206.129 595.674 289.338Z" stroke-width="2" /></svg>')}),document.addEventListener("DOMContentLoaded",()=>{let t=$(".section.SNC-gallery-decoration");var e=$(".section.SNC-gallery-decoration .gallery .grid-container .gallery-grid--item:last-child .gallery-item--image-wrap");t&&e.append('<svg width="528" height="525" viewBox="0 0 528 525" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="shape1" d="M526.816 263.062C530.674 337.317 473.135 401.79 412.265 444.549C360.234 481.099 294.257 470.27 230.664 471.101C165.635 471.95 92.2303 493.231 44.2535 449.354C-4.54268 404.728 -3.19386 328.856 3.1845 263.062C8.87811 204.331 34.2786 150.215 77.1829 109.678C118.825 70.3344 173.387 49.9753 230.664 48.1352C290.08 46.2265 346.238 64.5809 394.339 99.4897C453.381 142.338 523.033 190.239 526.816 263.062Z"/><path class="shape2" d="M527.549 267.88C521.494 335.569 444.081 370.188 390.94 416.437C341.078 459.834 300.241 528.21 232.253 524.883C165.021 521.593 129.169 452.486 89.3322 401.677C57.6608 361.283 41.1008 317.042 30.7475 267.88C16.4418 199.951 -23.5368 124.918 19.1387 68.3704C64.1237 8.76214 154.448 -3.74805 232.253 0.871469C305.401 5.21455 367.228 44.4982 419.947 92.1678C473.871 140.926 533.805 197.941 527.549 267.88Z"/></svg>')}),function(t,e,n){"use strict";var o,s,a,r,l,h,c,d,u,p,f,m,g,v,_,b,y,w={get:function(){return a},init:function(t){return a||new to(t)},VERSION:"0.6.30"},x=Object.prototype.hasOwnProperty,C=t.Math,k=t.getComputedStyle,T="touchstart",S="touchmove",E="skrollable",P=E+"-before",I=E+"-between",D=E+"-after",A="skrollr",M="no-"+A,O=A+"-desktop",N=A+"-mobile",z="linear",H="center",j="bottom",W="___skrollable_id",B=/^(?:input|textarea|button|select)$/i,R=/^\s+|\s+$/g,F=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,q=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,Z=/^(@?[a-z\-]+)\[(\w+)\]$/,U=/-([a-z0-9_])/g,V=function(t,e){return e.toUpperCase()}
8,Y=/[\-+]?[\d]*\.?[\d]+/g,K=/\{\?\}/g,G=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,Q=/[a-z\-]+-gradient/g,X="",J="",tt=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(k){var e=k(s,null);for(var n in e)if(X=n.match(t)||+n==n&&e[n].match(t))break;if(!X){X=J="";return}"-"===(X=X[0]).slice(0,1)?(J=X,X=({"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"})[X]):J="-"+X.toLowerCase()+"-"}},te=function(){var e=t.requestAnimationFrame||t[X.toLowerCase()+"RequestAnimationFrame"],n=tP();return(tW||!e)&&(e=function(e){var o=tP()-n,s=C.max(0,1e3/60-o);return t.setTimeout(function(){n=tP(),e()},s)}),e},ti=function(){var e=t.cancelAnimationFrame||t[X.toLowerCase()+"CancelAnimationFrame"];return(tW||!e)&&(e=function(e){return t.clearTimeout(e)}),e},tn={begin:function(){return 0},end:function(){return 1},linear:function(t){return t},quadratic:function(t){return t*t},cubic:function(t){return t*t*t},swing:function(t){return-C.cos(t*C.PI)/2+.5},sqrt:function(t){return C.sqrt(t)},outCubic:function(t){return C.pow(t-1,3)+1},bounce:function(t){var e;if(t<=.5083)e=3;else if(t<=.8489)e=9;else if(t<=.96208)e=27;else{if(!(t<=.99981))return 1;e=91}return 1-C.abs(3*C.cos(t*e*1.028)/e)}};function to(n){if(o=e.documentElement,s=e.body,tt(),a=this,d=(n=n||{}).constants||{},n.easing)for(var r in n.easing)tn[r]=n.easing[r];_=n.edgeStrategy||"set",h={beforerender:n.beforerender,render:n.render,keyframe:n.keyframe},(c=!1!==n.forceHeight)&&(tD=n.scale||1),u=n.mobileDeceleration||.004,f=!1!==n.smoothScrolling,m=n.smoothScrollingDuration||200,g={targetTop:a.getScrollTop()},(tW=(n.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||t.opera)})())?((l=e.getElementById(n.skrollrBody||"skrollr-body"))&&tg(),ts(),tT(o,[A,N],[M])):tT(o,[A,O],[M]),a.refresh(),tv(t,"resize orientationchange",function(){var t=o.clientWidth,e=o.clientHeight;(e!==tz||t!==tN)&&(tz=e,tN=t,tH=!0)});var p=te();return function t(){tl(),y=p(t)}(),a}to.prototype.refresh=function(t){var o=!1;for(n===t?(o=!0,r=[],tj=0,t=e.getElementsByTagName("*")):n===t.length&&(t=[t]),s=0,l=t.length;s<l;s++){var s,l,h,c,d,u=t[s],p=u,m=[],g=f,v=_,b=!1;if(o&&W in u&&delete u[W],u.attributes){for(var y=0,w=u.attributes.length;y<w;y++){var x=u.attributes[y];if("data-anchor-target"===x.name){if(null===(p=e.querySelector(x.value)))throw'Unable to find anchor target "'+x.value+'"';continue}if("data-smooth-scrolling"===x.name){g="off"!==x.value;continue}if("data-edge-strategy"===x.name){v=x.value;continue}if("data-emit-events"===x.name){b=!0;continue}var C=x.name.match(F);if(null!==C){var k={props:x.value,element:u,eventType:x.name.replace(U,V)};m.push(k);var T=C[1];T&&(k.constant=T.substr(1));var S=C[2];/p$/.test(S)?(k.isPercentage=!0,k.offset=(0|S.slice(0,-1))/100):k.offset=0|S;var P=C[3],I=C[4]||P;P&&"start"!==P&&"end"!==P?(k.mode="relative",k.anchors=[P,I]):(k.mode="absolute","end"===P?k.isEnd=!0:k.isPercentage||(k.offset=k.offset*tD))}}m.length&&(!o&&W in u?(h=r[d=u[W]].styleAttr,c=r[d].classAttr):(d=u[W]=tj++,h=u.style.cssText,c=tk(u)),r[d]={element:u,styleAttr:h,classAttr:c,anchorTarget:p,keyFrames:m,smoothScrolling:g,edgeStrategy:v,emitEvents:b,lastFrameIndex:-1},tT(u,[E],[]))}}for(tw(),s=0,l=t.length;s<l;s++){var D=r[t[s][W]];n!==D&&(th(D),td(D))}return a},to.prototype.relativeToAbsolute=function(t,e,n){var s=o.clientHeight,r=t.getBoundingClientRect(),l=r.top,h=r.bottom-r.top;return e===j?l-=s:e===H&&(l-=s/2),n===j?l+=h:n===H&&(l+=h/2),(l+=a.getScrollTop())+.5|0},to.prototype.animateTo=function(t,e){e=e||{};var o=tP(),s=a.getScrollTop(),r=n===e.duration?1e3:e.duration;return(p={startTop:s,topDiff:t-s,targetTop:t,duration:r,startTime:o,endTime:o+r,easing:tn[e.easing||z],done:e.done}).topDiff||(p.done&&p.done.call(a,!1),p=n),a},to.prototype.stopAnimateTo=function(){p&&p.done&&p.done.call(a,!0),p=n},to.prototype.isAnimatingTo=function(){return!!p},to.prototype.isMobile=function(){return tW},to.prototype.setScrollTop=function(e,n){return v=!0===n,tW?tB=C.min(C.max(e,0),tI):t.scrollTo(0,e),a},to.prototype.getScrollTop=function(){return tW?tB:t.pageYOffset||o.scrollTop||s.scrollTop||0},to.prototype.getMaxScrollTop=function(){return tI},to.prototype.on=function(t,e){return h[t]=e,a},to.prototype.off=function(t){return delete h[t],a},to.prototype.destroy=function(){ti()(y),tb(),tT(o,[M],[A,O,N]);for(var t=0,e=r.length;t<e;t++)tm(r[t].element);o.style.overflow=s.style.overflow="",o.style.height=s.style.height="",l&&w.setStyle(l,"transform","none"),a=n,l=n,h=n,c=n,tI=0,tD=1,d=n,u=n,tA="down",tM=-1,tN=0,tz=0,tH=!1,p=n,f=n,m=n,g=n,v=n,tj=0,_=n,tW=!1,tB=0,b=n};var ts=function(){var r,l,h,c,d,p,f,m,g,v,_;tv(o,[T,S,"touchcancel","touchend"].join(" "),function(t){var o=t.changedTouches[0];for(c=t.target;3===c.nodeType;)c=c.parentNode;switch(d=o.clientY,p=o.clientX,g=t.timeStamp,B.test(c.tagName)||t.preventDefault(),t.type){case T:r&&r.blur(),a.stopAnimateTo(),r=c,l=f=d,h=p;break;case S:B.test(c.tagName)&&e.activeElement!==c&&t.preventDefault(),m=d-f,_=g-v,a.setScrollTop(tB-m,!0),f=d,v=g;break;default:var s=l-d,b=h-p;if(b*b+s*s<49){if(!B.test(r.tagName)){r.focus();var y=e.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,t.view,1,o.screenX,o.screenY,o.clientX,o.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),r.dispatchEvent(y)}return}r=n;var w=m/_;w=C.max(C.min(w,3),-3);var x=C.abs(w/u),k=w*x+.5*u*x*x,E=a.getScrollTop()-k,P=0;E>tI?(P=(tI-E)/k,E=tI):E<0&&(P=-E/k,E=0),x*=1-P,a.animateTo(E+.5|0,{easing:"outCubic",duration:x})}}),t.scrollTo(0,0),o.style.overflow=s.style.overflow="hidden"},ta=function(){var t,e,n,s,l,h,d,u,p,f,m,g=o.clientHeight,v=tx();for(u=0,p=r.length;u<p;u++)for(e=(t=r[u]).element,n=t.anchorTarget,s=t.keyFrames,l=0,h=s.length;l<h;
8l++)f=(d=s[l]).offset,m=v[d.constant]||0,d.frame=f,d.isPercentage&&(f*=g,d.frame=f),"relative"===d.mode&&(tm(e),d.frame=a.relativeToAbsolute(n,d.anchors[0],d.anchors[1])-f,tm(e,!0)),d.frame+=m,c&&!d.isEnd&&d.frame>tI&&(tI=d.frame);for(tI=C.max(tI,tC()),u=0,p=r.length;u<p;u++){for(s=(t=r[u]).keyFrames,l=0,h=s.length;l<h;l++)m=v[(d=s[l]).constant]||0,d.isEnd&&(d.frame=tI-d.offset+m);t.keyFrames.sort(tL)}},tr=function(t,e){for(var n=0,o=r.length;n<o;n++){var s,a,l=r[n],h=l.element,c=l.smoothScrolling?t:e,d=l.keyFrames,u=d.length,p=d[0],f=d[d.length-1],m=c<p.frame,g=c>f.frame,v=m?p:f,_=l.emitEvents,b=l.lastFrameIndex;if(m||g){if(m&&-1===l.edge||g&&1===l.edge)continue;switch(m?(tT(h,[P],[D,I]),_&&b>-1&&(ty(h,p.eventType,tA),l.lastFrameIndex=-1)):(tT(h,[D],[P,I]),_&&b<u&&(ty(h,f.eventType,tA),l.lastFrameIndex=u)),l.edge=m?-1:1,l.edgeStrategy){case"reset":tm(h);continue;case"ease":c=v.frame;break;default:var y=v.props;for(s in y)x.call(y,s)&&(a=tf(y[s].value),0===s.indexOf("@")?h.setAttribute(s.substr(1),a):w.setStyle(h,s,a));continue}}else 0!==l.edge&&(tT(h,[E,I],[P,D]),l.edge=0);for(var C=0;C<u-1;C++)if(c>=d[C].frame&&c<=d[C+1].frame){var k=d[C],T=d[C+1];for(s in k.props)if(x.call(k.props,s)){var S=(c-k.frame)/(T.frame-k.frame);S=k.props[s].easing(S),a=tf(a=tp(k.props[s].value,T.props[s].value,S)),0===s.indexOf("@")?h.setAttribute(s.substr(1),a):w.setStyle(h,s,a)}_&&b!==C&&("down"===tA?ty(h,k.eventType,tA):ty(h,T.eventType,tA),l.lastFrameIndex=C);break}}},tl=function(){tH&&(tH=!1,tw());var t,e,o=a.getScrollTop(),s=tP();if(p?(s>=p.endTime?(o=p.targetTop,t=p.done,p=n):(e=p.easing((s-p.startTime)/p.duration),o=p.startTop+e*p.topDiff|0),a.setScrollTop(o,!0)):!v&&(g.targetTop-o&&(g={startTop:tM,topDiff:o-tM,targetTop:o,startTime:tO,endTime:tO+m}),s<=g.endTime&&(e=tn.sqrt((s-g.startTime)/m),o=g.startTop+e*g.topDiff|0)),v||tM!==o){tA=o>tM?"down":o<tM?"up":tA,v=!1;var r={curTop:o,lastTop:tM,maxTop:tI,direction:tA};!1!==(h.beforerender&&h.beforerender.call(a,r))&&(tr(o,a.getScrollTop()),tW&&l&&w.setStyle(l,"transform","translate(0, "+-tB+"px) "+b),tM=o,h.render&&h.render.call(a,r)),t&&t.call(a,!1)}tO=s},th=function(t){for(var e=0,n=t.keyFrames.length;e<n;e++){for(var o,s,a,r,l=t.keyFrames[e],h={};null!==(r=q.exec(l.props));)a=r[1],s=r[2],null!==(o=a.match(Z))?(a=o[1],o=o[2]):o=z,s=s.indexOf("!")?tc(s):[s.slice(1)],h[a]={value:s,easing:tn[o]};l.props=h}},tc=function(t){var e=[];return G.lastIndex=0,t=t.replace(G,function(t){return t.replace(Y,function(t){return t/255*100+"%"})}),J&&(Q.lastIndex=0,t=t.replace(Q,function(t){return J+t})),t=t.replace(Y,function(t){return e.push(+t),"{?}"}),e.unshift(t),e},td=function(t){var e,n,o={};for(e=0,n=t.keyFrames.length;e<n;e++)tu(t.keyFrames[e],o);for(o={},e=t.keyFrames.length-1;e>=0;e--)tu(t.keyFrames[e],o)},tu=function(t,e){var n;for(n in e)x.call(t.props,n)||(t.props[n]=e[n]);for(n in t.props)e[n]=t.props[n]},tp=function(t,e,n){var o,s=t.length;if(s!==e.length)throw"Can't interpolate between \""+t[0]+'" and "'+e[0]+'"';var a=[t[0]];for(o=1;o<s;o++)a[o]=t[o]+(e[o]-t[o])*n;return a},tf=function(t){var e=1;return K.lastIndex=0,t[0].replace(K,function(){return t[e++]})},tm=function(t,e){t=[].concat(t);for(var n,o,s=0,a=t.length;s<a;s++)(n=r[(o=t[s])[W]])&&(e?(o.style.cssText=n.dirtyStyleAttr,tT(o,n.dirtyClassAttr)):(n.dirtyStyleAttr=o.style.cssText,n.dirtyClassAttr=tk(o),o.style.cssText=n.styleAttr,tT(o,n.classAttr)))},tg=function(){b="translateZ(0)",w.setStyle(l,"transform",b);var t=k(l),e=t.getPropertyValue("transform"),n=t.getPropertyValue(J+"transform");e&&"none"!==e||n&&"none"!==n||(b="")};w.setStyle=function(t,e,n){var o=t.style;if("zIndex"===(e=e.replace(U,V).replace("-","")))isNaN(n)?o[e]=n:o[e]=""+(0|n);else if("float"===e)o.styleFloat=o.cssFloat=n;else try{X&&(o[X+e.slice(0,1).toUpperCase()+e.slice(1)]=n),o[e]=n}catch(t){}};var tv=w.addEvent=function(e,n,o){var s,a=function(e){return(e=e||t.event).target||(e.target=e.srcElement),e.preventDefault||(e.preventDefault=function(){e.returnValue=!1,e.defaultPrevented=!0}),o.call(this,e)};n=n.split(" ");for(var r=0,l=n.length;r<l;r++)s=n[r],e.addEventListener?e.addEventListener(s,o,!1):e.attachEvent("on"+s,a),tR.push({element:e,name:s,listener:o})},t_=w.removeEvent=function(t,e,n){e=e.split(" ");for(var o=0,s=e.length;o<s;o++)t.removeEventListener?t.removeEventListener(e[o],n,!1):t.detachEvent("on"+e[o],n)},tb=function(){for(var t,e=0,n=tR.length;e<n;e++)t_((t=tR[e]).element,t.name,t.listener);tR=[]},ty=function(t,e,n){h.keyframe&&h.keyframe.call(a,t,e,n)},tw=function(){var t=a.getScrollTop();tI=0,c&&!tW&&(s.style.height=""),ta(),c&&!tW&&(s.style.height=tI+o.clientHeight+"px"),tW?a.setScrollTop(C.min(a.getScrollTop(),tI)):a.setScrollTop(t,!0),v=!0},tx=function(){var t,e,n=o.clientHeight,s={};for(t in d)"function"==typeof(e=d[t])?e=e.call(a):/p$/.test(e)&&(e=e.slice(0,-1)/100*n),s[t]=e;return s},tC=function(){var t=0;return l&&(t=C.max(l.offsetHeight,l.scrollHeight)),C.max(t,s.scrollHeight,s.offsetHeight,o.scrollHeight,o.offsetHeight,o.clientHeight)-o.clientHeight},tk=function(e){var n="className";return t.SVGElement&&e instanceof t.SVGElement&&(e=e[n],n="baseVal"),e[n]},tT=function(e,o,s){var a="className";if(t.SVGElement&&e instanceof t.SVGElement&&(e=e[a],a="baseVal"),n===s){e[a]=o;return}for(var r=e[a],l=0,h=s.length;l<h;l++)r=tE(r).replace(tE(s[l])," ");r=tS(r);for(var c=0,d=o.length;c<d;c++)-1===tE(r).indexOf(tE(o[c]))&&(r+=" "+o[c]);e[a]=tS(r)},tS=function(t){return t.replace(R,"")},tE=function(t){return" "+t+" "},tP=Date.now||function(){return+new Date},tL=function(t,e){return t.frame-e.frame},tI=0,tD=1,tA="down",tM=-1,tO=tP(),tN=0,tz=0,tH=!1,tj=0,tW=!1,tB=0,tR=[];"function"==typeof define&&define.amd?define([],function(){return w}):"undefined"!=typeof module&&module.exports?module.exports=w:t.skrollr=w}(window,document),(()=>{"use strict";if(window.PLEStickyState)return;window.PLEStickyElements??=new WeakMap;let t={isSticky:"isSticky"in HTMLElement.prototype||"isSticky"in Element.prototype,exTop:"exTop"in HTMLElement.prototype||"exTop"in Element.prototype};(t.isSticky||t.exTop)&&console.error(` 9<hr/><hr/><hr/> 10exTop and isSticky have been found on HTMLElement or Element, conflicting with our deprecated properties!<br/> 11isSticky: ${t.isSticky}<br/> 12exTop: ${t.exTop}<br/> 13Any Non-migrated Sticky functionallity is now broken!!! 14<hr/><hr/><hr/> 15`);class e{static states=window.PLEStickyElements;static stickySectionSelector=".ple_module_sticky";static containerSelector=".container";static findOrNew=n=>{let o=this.states.get(n);return o||(o=new e,this.states.set(n,o)),"isSticky"in n&&!t.isSticky&&null!=n.isSticky&&(o.isSticky=n.isSticky),"exTop"in n&&!t.exTop&&null!=n.exTop&&(o.top=n.exTop),o};static getStickySectionElements=()=>document.querySelectorAll(this.stickySectionSelector);
15static getStickySectionsHeight=()=>{let{stickySectionSelector:t,containerSelector:e}=this,{innerHeight:n,innerWidth:o,scrollY:s}=window,a=s-document.documentElement.clientTop,r=!!document.querySelectorAll(".isEditor").length,l=0,h=[];for(let s of document.querySelectorAll(t)){let t=s.querySelectorAll(e),r=PLEStickyState.findOrNew(s);if(r.isSticky)for(let e of t)delete e.dataset.inViewport;else{let e=s.getBoundingClientRect();if(e.top>=0&&e.left>=0&&e.right<=o&&e.bottom<=n){for(let e of t)e.dataset.inViewport="true";r.top=e.top+a,r.isSticky=!0}}r.isSticky&&h.push(...t)}for(let t of h){let e=$(t).outerHeight(!0);l+=e,r&&"true"===t.dataset.inViewport&&(l+=e)}return 0===l?l=$(".mobileHeader-container").height():l+=$(".se__navbar-fixed .nav-bar").outerHeight(!0),l};isSticky=void 0;top=void 0}window.PLEStickyState=e,$(()=>{let n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),o=$(".isEditor"),s=!o.length,a=e.states,r=e.getStickySectionElements();for(let t of r)a.set(t,new e);if(s)for(let t of r)Object.assign(t.style,{maxHeight:"0",opacity:"0"});let l=null;if("onscrollend"in window)addEventListener("scroll",()=>{h(l??=e.getStickySectionElements())}),addEventListener("scrollend",()=>{l=null});else{let t=0;addEventListener("scroll",()=>{h(l??=e.getStickySectionElements()),t&&clearTimeout(t),t=setTimeout(()=>{l=null,t=0},300)})}let h=o=>{if(!o.length)return;let{scrollY:a}=window,r=a;if(r<=0){let t="",e="",n="";s&&(t="0",e="0",n="opacity 0s linear"),$(o).css({position:"relative",zIndex:"auto",maxHeight:e,transition:n,opacity:t,top:"0px",width:"100%"});return}let l=0,h=a-document.documentElement.clientTop;for(let a of o){let o=l,c=a.getBoundingClientRect(),d=c.height;l+=d;let u=c.top+h,p=e.findOrNew(a),f=p.isSticky&&r<=p.top,m=u<=r,g="",v="",_="",b="",y=1,w=0;s&&(b="0",v="0"),f?(p.isSticky=!1,g="relative",y=1):m&&(p.isSticky||(p.isSticky=!0,p.top=u),y=103,w+=o,s?(g="fixed",b="1",v="99999px",_="opacity 0.3s linear"):g=n?"-webkit-sticky":"fixed",r+=d),$(a).css({position:g,zIndex:y,maxHeight:v,transition:_,opacity:b,top:`${w}px`,width:"100%"});try{t.isSticky&&(a.isSticky=p.isSticky),t.exTop&&(a.exTop=p.top)}catch(t){console.error(t)}}}});e:{let t=()=>{let t=document.querySelectorAll(".section:not(.ple_module_sticky)");for(let e of t)e.removeAttribute("style")},e=()=>{let e=document.querySelectorAll('button[data-ple-id="$stickyBtnDisable"]');for(let n of e)n.addEventListener("click",t)};addEventListener("load",e,{once:!0})}})(),function(t,e){var n,o,s,a,r,l,h,c,d,u,p,f,m,g,v,_,b,y,w,x;function C(t){if(1/t==-1/0&&(t=0),t>4294967295)throw RangeError("Invalid array length");var e=[];return e.length=t,e}function k(t,e){var n=arguments.length>2?arguments[2]:[];if(!1===S(t))throw TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,n)}function T(t){return"[object Array]"===Object.prototype.toString.call(t)}function S(t){return"function"==typeof t}function E(t){if(null==t)throw TypeError();return Object(t)}function P(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function I(t){return"object"===P(t)&&"function"==typeof t&&!!t.prototype}function D(t){if("symbol"===P(t))throw TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function A(t){var e=D(t);return e<=0?0:Math.min(e,9007199254740991)}function M(n){var o=arguments.length>1?arguments[1]:e;if("object"===P(n)){if(arguments.length<2)var s="default";else o===String?s="string":o===Number&&(s="number");var a="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?function(t,e){var n=E(t)[e];if(null!=n){if(!1===S(n))throw TypeError("Method not callable: "+e);return n}}(n,t.Symbol.toPrimitive):e;if(e!==a){var r=k(a,n,[s]);if("object"!==P(r))return r;throw TypeError("Cannot convert exotic object to primitive.")}return"default"===s&&(s="number"),function(t,e){if("string"===e)var n=["toString","valueOf"];else n=["valueOf","toString"];for(var o=0;o<n.length;++o){var s=t[n[o]];if(S(s)){var a=k(s,t);if("object"!==P(a))return a}}throw TypeError("Cannot convert to primitive.")}(n,s)}return n}function O(t){switch(P(t)){case"symbol":throw TypeError("Cannot convert a Symbol value to a string");case"object":return O(M(t,String));default:return String(t)}}function N(t,e,n){var o=function(t,e,n){try{return Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0}),!0}catch(t){return!1}}(t,e,n);if(!o)throw TypeError("Cannot assign value `"+Object.prototype.toString.call(n)+"` to property `"+Object.prototype.toString.call(e)+"` on object `"+Object.prototype.toString.call(t)+"`");return o}function z(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!1,
15configurable:!0})}function H(n,o){if(0===o&&1/o==-1/0&&(o=0),!1===T(n))return C(o);var s=n.constructor;if("object"===P(s)&&null===(s="Symbol"in t&&"species"in t.Symbol?s[t.Symbol.species]:e)&&(s=e),e===s)return C(o);if(!I(s))throw TypeError("C must be a constructor");return function(t){var e=arguments.length>2?arguments[2]:t,n=arguments.length>1?arguments[1]:[];if(!I(t))throw TypeError("F must be a constructor.");if(!I(e))throw TypeError("newTarget must be a constructor.");if(e===t)return new(Function.prototype.bind.apply(t,[null].concat(n)));var o=function(t,e){var n,o=arguments[2]||{},s=Object.create(("object"!==P(n=t.prototype)&&(n=e),n));for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&Object.defineProperty(s,a,{configurable:!0,enumerable:!1,writable:!0,value:o[a]});return s}(e,Object.prototype);return k(t,o,n)}(s,[o])}"Date"in t&&"now"in t.Date&&"getTime"in t.Date.prototype||(Date.now=function(){return(new Date).getTime()}),"document"in t||"undefined"!=typeof WorkerGlobalScope||"function"==typeof importScripts||(t.HTMLDocument?t.Document=t.HTMLDocument:(t.Document=t.HTMLDocument=document.constructor=Function("return function Document() {}")(),t.Document.prototype=document)),"Element"in t&&"HTMLElement"in t||function(){function e(){return d--||clearTimeout(n),!(!document.body||document.body.prototype||!/(complete|interactive)/.test(document.readyState))&&(l(document,!0),n&&document.body.prototype&&clearTimeout(n),!!document.body.prototype)}if(!("Element"in t&&"HTMLElement"in t)){if(window.Element&&!window.HTMLElement)return void(window.HTMLElement=window.Element);window.Element=window.HTMLElement=Function("return function Element() {}")();var n,o=document.appendChild(document.createElement("body")),s=o.appendChild(document.createElement("iframe")).contentWindow.document,a=Element.prototype=s.appendChild(s.createElement("*")),r={},l=function(t,e){var n,o,s,a=t.childNodes||[],h=-1;if(1===t.nodeType&&t.constructor!==Element)for(n in t.constructor=Element,r)o=r[n],t[n]=o;for(;s=e&&a[++h];)l(s,e);return t},h=document.getElementsByTagName("*"),c=document.createElement,d=100;a.attachEvent("onpropertychange",function(t){for(var e,n=t.propertyName,o=!Object.prototype.hasOwnProperty.call(r,n),s=a[n],l=r[n],c=-1;e=h[++c];)1===e.nodeType&&(o||e[n]===l)&&(e[n]=s);r[n]=s}),a.constructor=Element,a.hasAttribute||(a.hasAttribute=function(t){return null!==this.getAttribute(t)}),e()||(document.onreadystatechange=e,n=setInterval(e,25)),document.createElement=function(t){return l(c(String(t).toLowerCase()))},document.removeChild(o)}}(),"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(t){return!1}}()||(n=Object.defineProperty,o=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),s="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(t,a,r){if(n&&(t===window||t===document||t===Element.prototype||t instanceof Element))return n(t,a,r);if(null===t||!(t instanceof Object||"object"==typeof t))throw TypeError("Object.defineProperty called on non-object");if(!(r instanceof Object))throw TypeError("Property description must be an object");var l=String(a),h="value"in r||"writable"in r,c="get"in r&&typeof r.get,d="set"in r&&typeof r.set;if(c){if(e===c)return t;if("function"!==c)throw TypeError("Getter must be a function");if(!o)throw TypeError("Getters & setters cannot be defined on this javascript engine");if(h)throw TypeError(s);Object.__defineGetter__.call(t,l,r.get)}else t[l]=r.value;if(d){if(e===d)return t;if("function"!==d)throw TypeError("Setter must be a function");if(!o)throw TypeError("Getters & setters cannot be defined on this javascript engine");if(h)throw TypeError(s);Object.__defineSetter__.call(t,l,r.set)}return"value"in r&&(t[l]=r.value),t}),"isArray"in Array||z(Array,"isArray",function(t){return T(t)}),"forEach"in Array.prototype||z(Array.prototype,"forEach",function(t){var n=E(this),o=n instanceof String?n.split(""):n,s=A(n.length);if(!1===S(t))throw TypeError(t+" is not a function");for(var a=arguments.length>1?arguments[1]:e,r=0;r<s;){var l=O(r);l in o&&k(t,a,[o[l],r,n]),r+=1}}),"includes"in Array.prototype||z(Array.prototype,"includes",function(t){"use strict";var e,n=E(this),o=A(n.length);if(0===o)return!1;var s=D(arguments[1]);if(s>=0)var a=s;else(a=o+s)<0&&(a=0);for(;a<o;){if(e=n[O(a)],P(t)===P(e)&&("number"===P(t)&&(!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0)||t===e))return!0;a+=1}return!1}),"indexOf"in Array.prototype||z(Array.prototype,"indexOf",function(t){var e=E(this),n=A(e.length);if(0===n)return -1;var o=D(arguments[1]);if(o>=n)return -1;if(o>=0)var s=1/o==-1/0?0:o;else(s=n+o)<0&&(s=0);for(;s<n;){if(O(s) in e&&t===e[O(s)])return s;s+=1}return -1}),"some"in Array.prototype||z(Array.prototype,"some",function(t){var n=E(this),o=A(n.length);if(!1===S(t))throw TypeError(t+" is not a function");for(var s=arguments.length>1?arguments[1]:e,a=0;a<o;){var r=O(a);if(r in n&&k(t,s,[n[r],a,n]))return!0;a+=1}return!1}),"bind"in Function.prototype||z(Function.prototype,"bind",function(t){var e=Object,n=Array.prototype,o=function(){},s=n.slice,a=n.concat,r=n.push,l=this;if(!S(l))throw TypeError("Function.prototype.bind called on incompatible "+l);
15for(var h,c=s.call(arguments,1),d=(0,Math.max)(0,l.length-c.length),u=[],p=0;p<d;p++)r.call(u,"$"+p);return h=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof h){var n=l.apply(this,a.call(c,s.call(arguments)));return e(n)===n?n:this}return l.apply(t,a.call(c,s.call(arguments)))}),l.prototype&&(o.prototype=l.prototype,h.prototype=new o,o.prototype=null),h}),"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{return"3"===Object.getOwnPropertyDescriptor("13.7",1).value}catch(t){return!1}}()||(a=Object.getOwnPropertyDescriptor,r=function(){try{return 1===Object.defineProperty(document.createElement("div"),"one",{get:function(){return 1}}).one}catch(t){return!1}},l=({}).toString,h="".split,z(Object,"getOwnPropertyDescriptor",function(t,e){var n,o,s=E(t);s=("string"===P(s)||s instanceof String)&&"[object String]"==l.call(t)?h.call(t,""):Object(t);var c="symbol"===P(n=M(e,String))?n:O(n);if(r)try{return a(s,c)}catch(t){}if(o=s,Object.prototype.hasOwnProperty.call(o,c))return{enumerable:!0,configurable:!0,writable:!0,value:s[c]}})),"getPrototypeOf"in Object||z(Object,"getPrototypeOf",function(t){if(t!==Object(t))throw TypeError("Object.getPrototypeOf called on non-object");var e=t.__proto__;return e||null===e?e:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Object.prototype:null}),"keys"in Object&&function(){return 2===Object.keys(arguments).length}(1,2)&&function(){try{return Object.keys(""),!0}catch(t){return!1}}()||z(Object,"keys",(c=Object.prototype.hasOwnProperty,d=Object.prototype.toString,p=!(u=Object.prototype.propertyIsEnumerable).call({toString:null},"toString"),f=u.call(function(){},"prototype"),m=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],g=function(t){var e=t.constructor;return e&&e.prototype===t},v={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},_=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!v["$"+t]&&c.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{g(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),b=function(t){if("undefined"==typeof window||!_)return g(t);try{return g(t)}catch(t){return!1}},function(t){var e,n,o="[object Function]"===d.call(t),s=((n="[object Arguments]"===(e=d.call(t)))||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===d.call(t.callee)),n),a="[object String]"===d.call(t),r=[];if(null==t)throw TypeError("Cannot convert undefined or null to object");var l=f&&o;if(a&&t.length>0&&!c.call(t,0))for(var h=0;h<t.length;++h)r.push(String(h));if(s&&t.length>0)for(var g=0;g<t.length;++g)r.push(String(g));else for(var v in t)(function(){var t;try{t=Object.create({})}catch(t){return!0}return u.call(t,"__proto__")})()&&"__proto__"===v||l&&"prototype"===v||!c.call(t,v)||r.push(String(v));if(p)for(var _=b(t),y=0;y<m.length;++y)_&&"constructor"===m[y]||!c.call(t,m[y])||r.push(m[y]);return r})),"defineProperties"in Object||z(Object,"defineProperties",function(t,n){if("object"!==P(t))throw TypeError("Object.defineProperties called on non-object");for(var o=E(n),s=Object.keys(o),a=[],r=0;r<s.length;r++){var l=s[r],h=Object.getOwnPropertyDescriptor(o,l);if(e!==h&&h.enumerable){var c=o[l];a.push([l,c])}}for(var d=0;d<a.length;d++)Object.defineProperty(t,a[d][0],c=a[d][1]);return t}),"create"in Object||function(){var t;function e(){}t=function(){var e=document.createElement("iframe");e.style.display="none";var n=document.body||document.documentElement;n.appendChild(e),e.src="javascript:";var o=e.contentWindow.Object.prototype;n.removeChild(e),e=null,delete o.constructor,delete o.hasOwnProperty,delete o.propertyIsEnumerable,delete o.isPrototypeOf,delete o.toLocaleStr
15ing,delete o.toString,delete o.valueOf;var s=function(){};return s.prototype=o,t=function(){return new s},new s},z(Object,"create",function(n,o){if("object"!==P(n)&&"null"!==P(n))throw TypeError("Object prototype may only be an Object or null");if("null"===P(n))var s=t();else e.prototype=n,(s=new e).__proto__=n,s.constructor.prototype=n,s.__proto__=n;return 1 in arguments?Object.defineProperties(s,o):s})}(),"filter"in Array.prototype||z(Array.prototype,"filter",function(t){var n=E(this),o=A(n.length);if(!1===S(t))throw TypeError(t+" is not a function");for(var s=arguments.length>1?arguments[1]:e,a=H(n,0),r=0,l=0;r<o;){var h=O(r);if(h in n){var c=n[h];k(t,s,[c,r,n])&&(N(a,O(l),c),l+=1)}r+=1}return a}),"map"in Array.prototype||z(Array.prototype,"map",function(t){var n=E(this),o=A(n.length);if(!1===S(t))throw TypeError(t+" is not a function");for(var s=arguments.length>1?arguments[1]:e,a=H(n,o),r=0;r<o;){var l=O(r);if(l in n){var h=k(t,s,[n[l],r,n]);N(a,l,h)}r+=1}return a}),"performance"in t&&"now"in t.performance||(y=t,w=Date.now(),y.performance||(y.performance={}),y.performance.now=function(){return Date.now()-w}),"Window"in t||"undefined"!=typeof WorkerGlobalScope||"function"==typeof importScripts||((x=t).constructor?x.Window=x.constructor:(x.Window=x.constructor=Function("return function Window() {}")()).prototype=t),!function(t){if(!("Event"in t))return!1;try{return new Event("click"),!0}catch(t){return!1}}(t)&&function(){function t(t,n){if(!t)throw Error("Not enough arguments");if("createEvent"in document){o=document.createEvent("Event");var o,s=!(!n||e===n.bubbles)&&n.bubbles,a=!(!n||e===n.cancelable)&&n.cancelable;return o.initEvent(t,s,a),o}return(o=document.createEventObject()).type=t,o.bubbles=!(!n||e===n.bubbles)&&n.bubbles,o.cancelable=!(!n||e===n.cancelable)&&n.cancelable,o}var n={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var o=window.Event&&window.Event.prototype||null;t.NONE=0,t.CAPTURING_PHASE=1,t.AT_TARGET=2,t.BUBBLING_PHASE=3,window.Event=Window.prototype.Event=t,o&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:o}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,e=arguments[0],o=arguments[1];if(t===window&&e in n)throw Error("In IE8 the event: "+e+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");t._events||(t._events={}),t._events[e]||(t._events[e]=function(e){var n,o=t._events[e.type].list,s=o.slice(),a=-1,r=s.length;for(e.preventDefault=function(){!1!==e.cancelable&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=t,e.relatedTarget=e.fromElement||null,e.target=e.target||e.srcElement||t,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop);++a<r&&!e.cancelImmediate;)a in s&&(n=s[a],o.includes(n)&&"function"==typeof n&&n.call(t,e))},t._events[e].list=[],t.attachEvent&&t.attachEvent("on"+e,t._events[e])),t._events[e].list.push(o)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,e=arguments[0],n=arguments[1];this._events&&this._events[e]&&this._events[e].list&&-1!==(t=this._events[e].list.indexOf(n))&&(this._events[e].list.splice(t,1),this._events[e].list.length||(this.detachEvent&&this.detachEvent("on"+e,this._events[e]),delete this._events[e]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw Error("DOM Events Exception 0");var e=this,n=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var o=function(t){t.cancelBubble=!0,(e||window).detachEvent("on"+n,o)};this.attachEvent("on"+n,o)}this.fireEvent("on"+n,t)}catch(o){t.target=e;do t.currentTarget=e,"_events"in e&&"function"==typeof e._events[n]&&e._events[n].call(e,t),"function"==typeof e["on"+n]&&e["on"+n].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode;while(e&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&document.dispatchEvent(new t("DOMContentLoaded",{bubbles:!0}))}
15))}}(),"getComputedStyle"in t||function(t){function e(t,n,o){var s,a=t.document&&t.currentStyle[n].match(/([\d.]+)(%|cm|em|in|mm|pc|pt|)/)||[0,0,""],r=a[1],l=a[2];return o=o?/%|em/.test(l)&&t.parentElement?e(t.parentElement,"fontSize",null):16:o,s="fontSize"==n?o:/width/i.test(n)?t.clientWidth:t.clientHeight,"%"==l?r/100*s:"cm"==l?.3937*r*96:"em"==l?r*o:"in"==l?96*r:"mm"==l?.3937*r*96/10:"pc"==l?12*r*96/72:"pt"==l?96*r/72:r}function n(t,e){var n="border"==e?"Width":"",o=e+"Top"+n,s=e+"Right"+n,a=e+"Bottom"+n,r=e+"Left"+n;t[e]=(t[o]==t[s]&&t[o]==t[a]&&t[o]==t[r]?[t[o]]:t[o]==t[a]&&t[r]==t[s]?[t[o],t[s]]:t[r]==t[s]?[t[o],t[s],t[a]]:[t[o],t[s],t[a],t[r]]).join(" ")}function o(t){var o,s=this,a=t.currentStyle,r=e(t,"fontSize"),l=function(t){return"-"+t.toLowerCase()};for(o in a)if(Array.prototype.push.call(s,"styleFloat"==o?"float":o.replace(/[A-Z]/,l)),"width"==o)s[o]=t.offsetWidth+"px";else if("height"==o)s[o]=t.offsetHeight+"px";else if("styleFloat"==o)s.float=a[o];else if(/margin.|padding.|border.+W/.test(o)&&"auto"!=s[o])s[o]=Math.round(e(t,o,r))+"px";else if(/^outline/.test(o))try{s[o]=a[o]}catch(t){s.outlineColor=a.color,s.outlineStyle=s.outlineStyle||"none",s.outlineWidth=s.outlineWidth||"0px",s.outline=[s.outlineColor,s.outlineWidth,s.outlineStyle].join(" ")}else s[o]=a[o];n(s,"margin"),n(s,"padding"),n(s,"border"),s.fontSize=Math.round(r)+"px"}o.prototype={constructor:o,getPropertyPriority:function(){throw Error("NotSupportedError: DOM Exception 9")},getPropertyValue:function(t){return this[t.replace(/-\w/g,function(t){return t[1].toUpperCase()})]},item:function(t){return this[t]},removeProperty:function(){throw Error("NoModificationAllowedError: DOM Exception 7")},setProperty:function(){throw Error("NoModificationAllowedError: DOM Exception 7")},getPropertyCSSValue:function(){throw Error("NotSupportedError: DOM Exception 9")}},t.getComputedStyle=function(t){return new o(t)}}(t),"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||function(t,e){"use strict";function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||l();try{this.isIntersecting=!!t.intersectionRect}catch(t){}var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,s=o.width*o.height;this.intersectionRatio=n?Number((s/n).toFixed(4)):this.isIntersecting?1:0}function o(t,e){var n,o,s,a=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(a.root&&1!=a.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,s=null,function(){s||(s=setTimeout(function(){n(),s=null},o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function s(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function r(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):l()}function l(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(t,e){for(var n=e;n;){if(n==t)return!0;n=c(n)}return!1}function c(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}var d=[];o.prototype.THROTTLE_TIMEOUT=100,o.prototype.POLL_INTERVAL=null,o.prototype.USE_MUTATION_OBSERVER=!0,o.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},o.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},o.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},o.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},o.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})},o.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},o.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},o.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},o.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),o=e?this._getRootRect():l();
15this._observationTargets.forEach(function(s){var a=s.element,l=r(a),h=this._rootContainsTarget(a),c=s.entry,d=e&&h&&this._computeTargetAndRootIntersection(a,o),u=s.entry=new n({time:t.performance&&performance.now&&performance.now(),target:a,boundingClientRect:l,rootBounds:o,intersectionRect:d});c?e&&h?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},o.prototype._computeTargetAndRootIntersection=function(n,o){if("none"!=t.getComputedStyle(n).display){for(var s=r(n),a=s,l=c(n),h=!1;!h;){var d=null,u=1==l.nodeType?t.getComputedStyle(l):{};if("none"==u.display)return;if(l==this.root||l==e?(h=!0,d=o):l!=e.body&&l!=e.documentElement&&"visible"!=u.overflow&&(d=r(l)),d&&!(a=function(t,e){var n=Math.max(t.top,e.top),o=Math.min(t.bottom,e.bottom),s=Math.max(t.left,e.left),a=Math.min(t.right,e.right),r=a-s,l=o-n;return r>=0&&l>=0&&{top:n,bottom:o,left:s,right:a,width:r,height:l}}(d,a)))break;l=c(l)}return a}},o.prototype._getRootRect=function(){var t;if(this.root)t=r(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},o.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},o.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var s=0;s<this.thresholds.length;s++){var a=this.thresholds[s];if(a==n||a==o||a<n!=a<o)return!0}},o.prototype._rootIsInDom=function(){return!this.root||h(e,this.root)},o.prototype._rootContainsTarget=function(t){return h(this.root||e,t)},o.prototype._registerInstance=function(){0>d.indexOf(this)&&d.push(this)},o.prototype._unregisterInstance=function(){var t=d.indexOf(this);-1!=t&&d.splice(t,1)},t.IntersectionObserver=o,t.IntersectionObserverEntry=n}(window,document)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t){"use strict";t(function(){var e,n,o=document.querySelectorAll(".section-lazy");function s(t){t.classList.remove("section-lazy")}("forEach"in o||(o=t.makeArray(o)),"IntersectionObserver"in window)?(e=new IntersectionObserver(function(t,e){t.forEach(function(t){if(t.isIntersecting||0!==t.intersectionRatio){var n=t.target;s(n),e.unobserve(n)}})},{rootMargin:"0px 0px 134% 0px"}),n=function(t){e.observe(t)}):n=function(){var t=0,e=2*window.innerHeight,n=function(t){var s=e>=t.getBoundingClientRect().top;return s||(n=o),s};function o(){return!1}return function(e){n(e)?s(e):setTimeout(function(){s(e)},300*(t+=1))}}(),o.forEach(n)})}(window.jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sweetalert2=e()}(this,function(){"use strict";var t,e,n="swal2-",o=function(t){var e={};for(var o in t)e[t[o]]=n+t[o];return e},s=o(["container","in","modal","overlay","close","content","spacer","confirm","cancel","icon","image","input","file","range","select","radio","checkbox","textarea","validationerror","progresssteps","activeprogressstep","progresscircle","progressline"]),a=o(["success","warning","info","question","error"]),r={title:"",text:"",html:"",type:null,customClass:"",animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusCancel:!1,showCloseButton:!1,showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onOpen:null,onClose:null},l='<div class="'+s.modal+'" style="display: none" tabIndex="-1"><ul class="'+s.progresssteps+'"></ul><div class="'+s.icon+" "+a.error+'"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="'+s.icon+" "+a.question+'">?</div><div class="'+s.icon+" "+a.warning+'">!</div><div class="'+s.icon+" "+a.info+'">i</div><div class="'+s.icon+" "+a.success+'"><span class="line tip"></span> <span class="line long"></span><div class="placeholder"></div> <div class="fix"></div></div><img class="'+s.image+'"><h2></h2><div class="'+s.content+'"></div><input class="'+s.input+'"><input type="file" class="'+s.file+'"><div class="'+s.range+'"><output></output><input type="range"></div><select class="'+s.select+'"></select><div class="'+s.radio+'"></div><label for="'+s.checkbox+'" class="'+s.checkbox+'"><input type="checkbox"></label><textarea class="'+s.textarea+'"></textarea><div class="'+s.validationerror+'"></div><hr class="'+s.spacer+'"><button type="button" class="'+s.confirm+'">OK</button><button type="button" class="'+s.cancel+'">Cancel</button><span class="'+s.close+'">×</span></div>',h=document.getElementsByClassName(s.container);h.length?t=h[0]:((t=document.createElement("div")).className=s.container,t.innerHTML=l);var c=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},d=function(t,e){(t=String(t).replace(/[^0-9a-f]/gi,"")).length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),e=e||0;for(var n="#",o=0;o<3;o++){var s=parseInt(t.substr(2*o,2),16);n+=("00"+(s=Math.round(Math.min(Math.max(0,s+s*e),255)).toString(16))).substr(s.length)}return n},u={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null},p=function(){if("undefined"==typeof document){console.error("SweetAlert2 requires document to initialize");return}if(!document.getElementsByClassName(s.container).length){document.body.appendChild(t);var e=m(),n=S(e,s.input),o=S(e,s.file),a=e.querySelector("."+s.range+" input"),r=S(e,s.select),l=e.querySelector("."+s.checkbox+" input"),h=S(e,s.textarea);return n.oninput=function(){sweetAlert.resetValidationError()},n.onkeyup=function(t){t.stopPropagation(),13===t.keyCode&&sweetAlert.clickConfirm()},o.onchange=function(){sweetAlert.resetValidationError()},a.oninput=function(){sweetAlert.resetValidationError(),a.previousSibling.value=a.value},a.onchange=function(){sweetAlert.resetValidationError(),a.previousSibling.value=a.value},r.onchange=function(){sweetAlert.resetValidationError()},l.onchange=function(){sweetAlert.resetValidationError()},h.oninput=function(){sweetAlert.resetValidationError()},e}},f=function(e){return t.querySelector("."+e)},m=function(){return document.body.querySelector("."+s.modal)||p()},g=function(){return f(s.spacer)},v=function(){return f(s.progresssteps)},_=function(){return f(s.validationerror)},b=function(){return f(s.confirm)},y=function(){return f(s.cancel)},w=function(t){var e=[b(),y()];return t&&e.reverse(),e.concat(Array.prototype.slice.call(m().querySelectorAll("button:not([class^="+n+"]), input:not([type=hidden]), textarea, select")))},x=function(t,e){return t.classList.contains(e)},C=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}}
15,k=function(t,e){t&&e&&e.split(/\s+/).forEach(function(e){t.classList.add(e)})},T=function(t,e){t&&e&&e.split(/\s+/).forEach(function(e){t.classList.remove(e)})},S=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(x(t.childNodes[n],e))return t.childNodes[n]},E=function(t,e){e||(e="block"),t.style.opacity="",t.style.display=e},P=function(t){t.style.opacity="",t.style.display="none"},I=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},D=function(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length},A=function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},M=function(t){if("function"==typeof MouseEvent){var e=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0});t.dispatchEvent(e)}else if(document.createEvent){var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),t.dispatchEvent(n)}else document.createEventObject?t.fireEvent("onclick"):"function"==typeof t.onclick&&t.onclick()},O=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):window.event&&window.event.hasOwnProperty("cancelBubble")&&(window.event.cancelBubble=!0)},N=function(){var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",animation:"animationend"};for(var n in e)if(e.hasOwnProperty(n)&&void 0!==t.style[n])return e[n];return!1}(),z=function(){var t=m();window.onkeydown=u.previousWindowKeyDown,u.previousActiveElement&&u.previousActiveElement.focus&&u.previousActiveElement.focus(),clearTimeout(t.timeout)},H=function(){var t=document.createElement("div");t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},j=function(t,e,n){var o;return function(){var s=this,a=arguments,r=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||t.apply(s,a)},e),r&&t.apply(s,a)}},W=c({},r),B=[],R=function(t){var e,n=m();for(var o in t)r.hasOwnProperty(o)||"extraParams"===o||console.warn('SweetAlert2: Unknown parameter "'+o+'"');n.style.width="number"==typeof t.width?t.width+"px":t.width,n.style.padding=t.padding+"px",n.style.background=t.background;var l=n.querySelector("h2"),h=n.querySelector("."+s.content),c=b(),d=y(),u=n.querySelector("."+s.close);if(l.innerHTML=t.title.split("\n").join("<br>"),t.text||t.html){if("object"==typeof t.html){if(h.innerHTML="",0 in t.html)for(e=0;(e in t.html);e++)h.appendChild(t.html[e].cloneNode(!0));else h.appendChild(t.html.cloneNode(!0))}else h.innerHTML=t.html||t.text.split("\n").join("<br>");E(h)}else P(h);t.showCloseButton?E(u):P(u),n.className=s.modal,t.customClass&&k(n,t.customClass);var p=v(),f=parseInt(null===t.currentProgressStep?U.getQueueStep():t.currentProgressStep,10);t.progressSteps.length?(E(p),I(p),f>=t.progressSteps.length&&console.warn("SweetAlert2: Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(e,n){var o=document.createElement("li");if(k(o,s.progresscircle),o.innerHTML=e,n===f&&k(o,s.activeprogressstep),p.appendChild(o),n!==t.progressSteps.length-1){var a=document.createElement("li");k(a,s.progressline),a.style.width=t.progressStepsDistance,p.appendChild(a)}})):P(p);var _=m().querySelectorAll("."+s.icon);for(e=0;e<_.length;e++)P(_[e]);if(t.type){var w=!1;for(var x in a)if(t.type===x){w=!0;break}if(!w)return console.error("SweetAlert2: Unknown alert type: "+t.type),!1;var C=n.querySelector("."+s.icon+"."+a[t.type]);switch(E(C),t.type){case"success":k(C,"animate"),k(C.querySelector(".tip"),"animate-success-tip"),k(C.querySelector(".long"),"animate-success-long");break;case"error":k(C,"animate-error-icon"),k(C.querySelector(".x-mark"),"animate-x-mark");break;case"warning":k(C,"pulse-warning")}}var S=n.querySelector("."+s.image);t.imageUrl?(S.setAttribute("src",t.imageUrl),E(S),t.imageWidth?S.setAttribute("width",t.imageWidth):S.removeAttribute("width"),t.imageHeight?S.setAttribute("height",t.imageHeight):S.removeAttribute("height"),S.className=s.image,t.imageClass&&k(S,t.imageClass)):P(S),t.showCancelButton?d.style.display="inline-block":P(d),t.showConfirmButton?A(c,"display"):P(c);var D=g();t.showConfirmButton||t.showCancelButton?E(D):P(D),c.innerHTML=t.confirmButtonText,d.innerHTML=t.cancelButtonText,t.buttonsStyling&&(c.style.backgroundColor=t.confirmButtonColor,d.style.backgroundColor=t.cancelButtonColor),c.className=s.confirm,k(c,t.confirmButtonClass),d.className=s.cancel,k(d,t.cancelButtonClass),t.buttonsStyling?(k(c,"styled"),k(d,"styled")):(T(c,"styled"),T(d,"styled"),c.style.backgroundColor=c.style.borderLeftColor=c.style.borderRightColor="",d.style.backgroundColor=d.style.borderLeftColor=d.style.borderRightColor=""),!0===t.animation?T(n,"no-animation"):k(n,"no-animation")},F=function(e,n){var o=m();e?(k(o,"show-swal2"),k(t,"fade"),T(o,"hide-swal2")):T(o,"fade"),E(o),t.style.overflowY="hidden",N&&!x(o,"no-animation")?o.addEventListener(N,function e(){o.removeEventListener(N,e),t.style.overflowY="auto"}):t.style.overflowY="auto",k(t,"in"),k(document.body,s.in),null===u.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(u.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=H()+"px"),u.previousActiveElement=document.activeElement,null!==n&&"function"==typeof n&&n.call(this,o)};function q(){null!==u.previousBodyPadding&&(document.body.style.paddingRight=u.previousBodyPadding,u.previousBodyPadding=null)}function Z(){if(void 0===arguments[0])return console.error("SweetAlert2 expects at least 1 attribute!"),!1;var n=c({},W);switch(typeof arguments[0]){case"string":n.title=arguments[0],n.text=arguments[1]||"",n.type=arguments[2]||"";break;case"object":c(n,arguments[0]),n.extraParams=arguments[0].extraParams,"email"===n.input&&null===n.inputValidator&&(n.inputValidator=function(t){return new Promise(function(e,n){/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(t)?e():n("Invalid email address")})});break;default:return console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]),!1}R(n);var o=m();return new Promise(function(a,r){n.timer&&(o.timeout=setTimeout(function(){U.closeModal(n.onClose),r("timer")},n.timer));var l,h,c,p=function(t){switch(t=t||n.input){case"select":case"textarea":case"file":return S(o,s[t]);case"checkbox":return o.querySelector("."+s.checkbox+" input");case"radio":return o.querySelector("."+s.radio+" input:checked")||o.querySelector("."+s.radio+" input:first-child");case"range":return o.querySelector("."+s.range+" input");default:return S(o,s.input)}},x=function(){var t=p();if(!t)return null;switch(n.input){case"checkbox":return t.checked?1:0;case"radio":return t.checked?t.value:null;case"file":return t.files.length?t.files[0]:null;default:return n.inputAutoTrim?t.value.trim():t.value}};n.input&&setTimeout(function(){var t=p();t&&C(t)},0);var I=function(t){n.showLoaderOnConfirm&&U.showLoading(),n.preConfirm?n.preConfirm(t,n.extraParams).then(function(e){U.closeModal(n.onClose),a(e||t)},function(t){U.hideLoading(),t&&U.showValidationError(t)}):(U.closeModal(n.onClose),a(t))},A=function(t){var e=t||window.event,o=e.target||e.srcElement,s=b(),a=y(),l=s===o||s.contains(o),h=a===o||a.contains(o);switch(e.type){case"mouseover":case"mouseup":n.buttonsStyling&&(l?s.style.backgroundColor=d(n.confirmButtonColor,-.1):h&&(a.style.backgroundColor=d(n.cancelButtonColor,-.1)));break;case"mouseout":n.buttonsStyling&&(l?s.style.backgroundColor=n.confirmButtonColor:h&&(a.style.backgroundColor=n.cancelButtonColor));break;case"mousedown":n.buttonsStyling&&(l?s.style.backgroundColor=d(n.confirmButtonColor,-.2):h&&(a.style.backgroundColor=d(n.cancelButtonColor,-.2)));break;case"click":if(l&&U.isVisible()){if(n.input){var c=x();n.inputValidator?(U.disableInput(),n.inputValidator(c,n.extraParams).then(function(){U.enableInput(),I(c)},function(t){U.enableInput(),t&&U.showValidationError(t)})):I(c)}else I(!0)}else h&&U.isVisible()&&(U.closeModal(n.onClose),r("cancel"))}},N=o.querySelectorAll("button");for(l=0;l<N.length;l++)N[l].onclick=A,N[l].onmouseover=A,N[l].onmouseout=A,N[l].onmousedown=A;f(s.close).onclick=function(){U.closeModal(n.onClose),r("close")},t.onclick=function(e){e.target===t&&n.allowOutsideClick&&(U.closeModal(n.onClose),r("overlay"))};var z=b(),H=y();function W(t,e){for(var o=w(n.focusCancel),s=0;s<o.length;s++){(t+=e)===o.length?t=0:-1===t&&(t=o.length-1);var a=o[t];if(D(a))return a.focus()}}n.reverseButtons?z.parentNode.insertBefore(H,z):z.parentNode.insertBefore(z,H),u.previousWindowKeyDown=window.onkeydown,window.onkeydown=function(t){var e=t||window.event,o=e.ke
15yCode||e.which;if(-1!==[9,13,32,27].indexOf(o)){for(var s=e.target||e.srcElement,a=w(n.focusCancel),l=-1,h=0;h<a.length;h++)if(s===a[h]){l=h;break}9===o?(e.shiftKey?W(l,-1):W(l,1),O(e)):13===o||32===o?-1===l&&(n.focusCancel?M(H,e):M(z,e)):27===o&&!0===n.allowEscapeKey&&(U.closeModal(n.onClose),r("esc"))}},n.buttonsStyling&&(z.style.borderLeftColor=n.confirmButtonColor,z.style.borderRightColor=n.confirmButtonColor),U.showLoading=U.enableLoading=function(){E(g()),E(z,"inline-block"),k(z,"loading"),k(o,"loading"),z.disabled=!0,H.disabled=!0},U.hideLoading=U.disableLoading=function(){n.showConfirmButton||(P(z),n.showCancelButton||P(g())),T(z,"loading"),T(o,"loading"),z.disabled=!1,H.disabled=!1},U.enableButtons=function(){z.disabled=!1,H.disabled=!1},U.disableButtons=function(){z.disabled=!0,H.disabled=!0},U.enableConfirmButton=function(){z.disabled=!1},U.disableConfirmButton=function(){z.disabled=!0},U.enableInput=function(){var t=p();if(!t)return!1;if("radio"===t.type)for(var e=t.parentNode.parentNode.querySelectorAll("input"),n=0;n<e.length;n++)e[n].disabled=!1;else t.disabled=!1},U.disableInput=function(){var t=p();if(!t)return!1;if(t&&"radio"===t.type)for(var e=t.parentNode.parentNode.querySelectorAll("input"),n=0;n<e.length;n++)e[n].disabled=!0;else t.disabled=!0},U.recalculateHeight=j(function(){var t=m(),e=t.style.display;t.style.minHeight="",E(t),t.style.minHeight=t.scrollHeight+1+"px",t.style.display=e},50),U.showValidationError=function(t){var e=_();e.innerHTML=t,E(e);var n=p();C(n),k(n,"error")},U.resetValidationError=function(){P(_()),U.recalculateHeight();var t=p();t&&T(t,"error")},U.getProgressSteps=function(){return n.progressSteps},U.setProgressSteps=function(t){n.progressSteps=t,R(n)},U.showProgressSteps=function(){E(v())},U.hideProgressSteps=function(){P(v())},U.enableButtons(),U.hideLoading(),U.resetValidationError();var B=["input","file","range","select","radio","checkbox","textarea"];for(l=0;l<B.length;l++){var q=s[B[l]],Z=S(o,q);if(h=p(B[l])){for(var V in h.attributes)if(h.attributes.hasOwnProperty(V)){var Y=h.attributes[V].name;"type"!==Y&&"value"!==Y&&h.removeAttribute(Y)}for(var K in n.inputAttributes)h.setAttribute(K,n.inputAttributes[K])}Z.className=q,n.inputClass&&k(Z,n.inputClass),P(Z)}switch(n.input){case"text":case"email":case"password":case"number":case"tel":(h=S(o,s.input)).value=n.inputValue,h.placeholder=n.inputPlaceholder,h.type=n.input,E(h);break;case"file":(h=S(o,s.file)).placeholder=n.inputPlaceholder,h.type=n.input,E(h);break;case"range":var G=S(o,s.range),Q=G.querySelector("input"),X=G.querySelector("output");Q.value=n.inputValue,Q.type=n.input,X.value=n.inputValue,E(G);break;case"select":var J=S(o,s.select);if(J.innerHTML="",n.inputPlaceholder){var tt=document.createElement("option");tt.innerHTML=n.inputPlaceholder,tt.value="",tt.disabled=!0,tt.selected=!0,J.appendChild(tt)}c=function(t){for(var e in t){var o=document.createElement("option");o.value=e,o.innerHTML=t[e],n.inputValue===e&&(o.selected=!0),J.appendChild(o)}E(J),J.focus()};break;case"radio":var te=S(o,s.radio);te.innerHTML="",c=function(t){for(var e in t){var o=1,a=document.createElement("input"),r=document.createElement("label"),l=document.createElement("span");a.type="radio",a.name=s.radio,a.value=e,a.id=s.radio+"-"+o++,n.inputValue===e&&(a.checked=!0),l.innerHTML=t[e],r.appendChild(a),r.appendChild(l),r.for=a.id,te.appendChild(r)}E(te);var h=te.querySelectorAll("input");h.length&&h[0].focus()};break;case"checkbox":var ti=S(o,s.checkbox),tn=p("checkbox");tn.type="checkbox",tn.value=1,tn.id=s.checkbox,tn.checked=!!n.inputValue;var to=ti.getElementsByTagName("span");to.length&&ti.removeChild(to[0]),(to=document.createElement("span")).innerHTML=n.inputPlaceholder,ti.appendChild(to),E(ti);break;case"textarea":var ts=S(o,s.textarea);ts.value=n.inputValue,ts.placeholder=n.inputPlaceholder,E(ts);break;case null:break;default:console.error('SweetAlert2: Unexpected type of input! Expected "text" or "email" or "password", "select", "checkbox", "textarea" or "file", got "'+n.input+'"')}("select"===n.input||"radio"===n.input)&&(n.inputOptions instanceof Promise?(U.showLoading(),n.inputOptions.then(function(t){U.hideLoading(),c(t)})):"object"==typeof n.inputOptions?c(n.inputOptions):console.error("SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got "+typeof n.inputOptions)),F(n.animation,n.onOpen),W(-1,1),t.scrollTop=0,"undefined"==typeof MutationObserver||e||(e=new MutationObserver(U.recalculateHeight)).observe(o,{childList:!0,characterData:!0,subtree:!0})})}function U(){var t=arguments;return U.isVisible()&&U.close(),Z.apply(this,t)}return U.isVisible=function(){return D(m())},U.queue=function(t){B=t;var e=m(),n=function(){B=[],e.removeAttribute("data-queue-step")};return new Promise(function(t,o){!function s(a,r){a<B.length?(e.setAttribute("data-queue-step",a),U(B[a]).then(function(){s(a+1,r)},function(t){n(),o(t)})):(n(),t())}(0)})},U.getQueueStep=function(){return m().getAttribute("data-queue-step")},U.insertQueueStep=function(t,e){return e&&e<B.length?B.splice(e,0,t):B.push(t)},U.deleteQueueStep=function(t){void 0!==B[t]&&B.splice(t,1)},U.close=U.closeModal=function(e){var n=m();T(n,"show-swal2"),k(n,"hide-swal2");var o=n.querySelector("."+s.icon+"."+a.success);T(o,"animate"),T(o.querySelector(".tip"),"animate-success-tip"),T(o.querySelector(".long"),"animate-success-long");var r=n.querySelector("."+s.icon+"."+a.error);T(r,"animate-error-icon"),T(r.querySelector(".x-mark"),"animate-x-mark"),T(n.querySelector("."+s.icon+"."+a.warning),"pulse-warning"),z(),N&&!x(n,"no-animation")?n.addEventListener(N,function e(){n.removeEventListener(N,e),x(n,"hide-swal2")&&(P(n),T(t,"in"),T(document.body,s.in),q())}):(P(n),T(t,"in"),T(document.body,s.in),q()),null!==e&&"function"==typeof e&&e.call(this,n)},U.clickConfirm=function(){b().click()},U.clickCancel=function(){y().click()},U.setDefaults=function(t){if(!t)throw Error("userParams is required");if("object"!=typeof t)throw Error("userParams has to be a object");c(W,t)},U.resetDefaults=function(){W=c({},r)},U.version="",window.sweetAlert=window.swalTwo=U,"function"==typeof Promise?Promise.prototype.done=Promise.prototype.done||function(){return this.catch(function(){})}:console.warn("SweetAlert2: Please inlude Promise polyfill BEFORE including sweetalert2.js if IE10+ support needed."),U}),function(t){"use strict";var e=function(t,e){this.$el=t,this.$parent=t.closest(".cta"),this.options=e,this.ctaVideo="",this.initColorbox()};e.prototype.initColorbox=function(){this.$parent.find(".lb-class").each(function(){t(this).colorbox(t.extend(e.defaults,t(t(this).attr("href")).data()))}),t(document).bind("cbox_complete",{context:this},this.cboxOpenCallBack),t(document).bind("cbox_closed",{context:this},this.cboxClosedCallBack)},e.prototype.cboxOpenCallBack=function(t){t.data.context.formSizeHandler(t),t.data.context.videoLoadHandler(t)},e.prototype.cboxClosedCallBack=function(e){var n=t.colorbox.element
15().attr("href");t(n+" [data-setup-run]").each(function(){t(this).remove()})},e.prototype.formSizeHandler=function(e){var n=t.colorbox.element().attr("href"),o=t(n).find("form"),s=new MutationObserver(function(e){t.colorbox.resize()}),a=document.querySelector(o.selector);null!=a&&s.observe(a,{attributes:!0})},e.prototype.videoLoadHandler=function(e){var n=t.colorbox.element().attr("href");if(t(n+" [data-setup-run]").length&&(e.data.context.ctaVideo=t(n+" [data-setup-run]")[0].outerHTML,t(n+" [data-setup-run]").remove()),e.data.context.ctaVideo){t(n+" .video").append(t(e.data.context.ctaVideo));var o=t(n+" [data-setup-run]");videojs(o[0],o.data("setupRun"),function(){})}},e.defaults={inline:!0,width:"50%",transition:"fade",returnFocus:!1},t.fn.colorBoxModal=function(n){var o;return arguments,this.each(function(){var s=t(this),a=t.extend({},s.data(),"object"==typeof n&&n);if(s.data("ColorBoxModal",new e(s,a)),void 0!==o)return!1}),o||this},t.fn.colorBoxModal.Constructor=e,t.fn.colorBoxModal.noConflict=function(){return t.fn.colorBoxModal=old,this},t(document).ready(function(){t('[data-control="colorbox-modal"]').colorBoxModal({})})}(window.jQuery),(t=>{"use strict";let e;let n=window.matchMedia("(max-width: 992px)");try{let t=document.createElement("STYLE");document.head.append(t),t.sheet.insertRule(".mm-menu.mm-offcanvas { display: none; }")}catch(t){console.error(t)}let o=new ResizeObserver((t,n)=>{if(e){e=!1;return}a()}),s=0;function a(){if(s)return;let t=s=requestAnimationFrame(()=>{t===s&&(r(),s=0)})}function r(){h.reposition(),u.reposition()}function l(){for(let t of document.querySelectorAll("nav.mm-menu a.mm-prev:not([title])")){let e=t.parentElement.querySelector("a.mm-title")?.textContent;e&&t.setAttribute("title",e)}for(let t of document.querySelectorAll("nav.mm-menu a.mm-next:not([title])")){let e=t.parentElement.querySelector(":scope > a[data-title]"),n=e?.dataset.title;n&&t.setAttribute("title",n)}for(let t of document.querySelectorAll("nav.mm-menu a.mm-close:not([title])"))t.setAttribute("title","Close")}class h{static Templates=new class{#t;get style1(){return this.#t()}#e;get style2(){return this.#e()}#i;get styleDefault(){return this.#i()}constructor(){let t=t=>{let e;return()=>{if(e)return e;let n=document.createElement("TEMPLATE");return n.innerHTML=t,e=n.content}};this.#t=t('<li class="navigation__item navigation__item--default has-drop-down show-drop-down drop-down-style--1 more"> <a href="#" class="navigation__item--link navigation__item--expand_more">More<span class="navigation__item--expand" title="View more" aria-expanded="false"></span> </a><ul class="navigation__list navigation__list--default navigation__list--sub"></ul> </li>'),this.#e=t('<li class="navigation__item navigation__item--default has-drop-down show-drop-down drop-down-style--2 more"> <a href="#" class="navigation__item--link navigation__item--expand_more">More<span class="navigation__item--expand" title="View more" aria-expanded="false"></span> </a><ul class="navigation__list navigation__list--default navigation__list--sub"></ul> </li>'),this.#i=t('<li class="navigation__item navigation__item--default has-drop-down more"> <a href="#" class="navigation__item--link navigation__item--expand_more">More<span class="navigation__item--expand" title="View more" aria-expanded="false"></span> </a><ul class="navigation__list navigation__list--default navigation__list--sub"></ul> </li>')}};static unmask(){let t=document.querySelectorAll(".navigation-a > .navigation__list.more_nav--loading");for(let e of t)e.classList.remove("more_nav--loading");return this}static create(t,e){let n=new this(t,e);return this.active.add(n),n}static active=new Set;static reposition(){for(let t of this.active)!1===t.arrange()&&this.active.delete(t)}ref;more;get el(){return this.ref.deref()}initalState;constructor(t,e={}){this.ref=new WeakRef(t);let n=t.parentElement.classList,{Templates:o}=this.constructor;this.initalState=Array.from(t.children).map(t=>new p(t));let s=n.contains("drop-down-style--1")?o.style1:n.contains("drop-down-style--2")?o.style2:o.styleDefault;this.more=new class{el;initalClasses;initalStyles;constructor(t){this.el=t,this.initalClasses=this.el.getAttribute("class")||"",this.initalStyles=this.el.getAttribute("styles")||"",t.querySelector("a.navigation__item.more")?.addEventListener("click",t=>{t.preventDefault()})}reset(){this.el.setAttribute("class",this.initalClasses),this.el.setAttribute("style",this.initalStyles),this.el.hidden=!1}hide(){this.el.hidden=!0}}(s.cloneNode(!0).firstElementChild),this.more.hide(),t.append(this.more.el),this.defaults={...this.constructor.Defaults,...e}}arrange(){let n=this.el;if(!n)return!1;if(!t(this.el).is(":visible"))return;for(let t of n.children)o.unobserve(t);let s=[];for(let t of this.initalState.slice()){let e=t.reset();if(e){s.push(e);continue}let n=this.initalState.indexOf(t);-1!==n&&this.initalState.splice(n,1)}for(let t of(n.replaceChildren(...s),n.children.length&&this.tryToFitMore(),e=!0,n.children))o.observe(t,{box:"border-box"})}static Defaults={menuWidthBuffer:4,menuMaxOtherItemsWhenMore:6};defaults;tryToFitMore(){let e=this.el,n=t(e),{menuWidthBuffer:o,menuMaxOtherItemsWhenMore:s}=this.defaults,a=e.children.length,r=n.closest("div[class*='alias-']"),l=r.
15is("div[class*='alias-partial-header']")?Math.floor(n.closest(".header-partial-navigation").width()):Math.floor(r.width());if(l<o){console.error("Navigation Error: Menu container width could not be established. Skipped adding the More menu.");return}if(a<=s&&Math.ceil(c(n))+o<=l)return;this.more.reset();let h=this.more.el.querySelector(":scope > ul"),d=document.createDocumentFragment(),u=n.children("li:not(.more)");if(e.append(this.more.el),a>s&&d.append(...u.slice(Math.max(s,0)).detach().toArray()),Math.ceil(c(n))+o<=l){h?.append(d);return}let p=u.slice(0,s).toArray().reverse();for(let t of p)if(d.prepend(t),Math.ceil(c(n))+o<=l)break;h?.append(d)}}function c(e){let n=0;return e.children().each(function(e){n+=Math.ceil(t(this).outerWidth(!0))}),n}let d=(e,n)=>{let o=t(n).outerWidth(!0);return o>e?o:e};class u{static reposition(e){e??=document.querySelectorAll(".navigation__item.mega-menu > ul, .navigation-b .navigation__menu--container, .navigation-c .navigation__menu--container");let n=t(window).width();for(let t of e)this._position(t,n)}static _position(e,n){let o=t(e),s=0;e.parentElement?.classList.contains("mega-menu")&&(s=15);let a=o.closest('[class*="alias-"]').offset().left;o.width(n),o.css("left",(n-o.width())/2-a+s)}}class p{ref;classes;styles;constructor(t){this.ref=new WeakRef(t),this.classes=t.getAttribute("class")||"",this.styles=t.getAttribute("style")||""}get el(){return this.ref.deref()}reset(){let t=this.el;return!!t&&(t.setAttribute("class",this.classes),t.setAttribute("style",this.styles),t)}}class f{static initialized=new WeakSet;static initializeAll(){let t=document.querySelectorAll(".component.navigation .navigation-a");for(let e of t)this.initialize(e);return this}static initialize(e){if(this.initialized.has(e))return;this.initialized.add(e);let o=t(e),s=e=>{t(e).toggleClass("expanded").parent().next("ul").slideToggle()},a=t=>{t.preventDefault(),t.stopImmediatePropagation(),s(t.currentTarget.querySelector(":scope > .navigation__item--expand"))},r=t=>{t.preventDefault(),t.stopImmediatePropagation(),s(t.currentTarget)},l=[],c=t=>{for(let t of l.splice(0,l.length))try{t()}catch(t){console.error(t)}if(!document.contains(e)){n.removeEventListener("change",c);return}let s=t.matches?o:o.find(".mega-menu");s.on("click",".navigation__item--expand_more",a),s.on("click","a.navigation__item--link .navigation__item--expand",r),l.push(()=>{s.off("click",".navigation__item--expand_more",a),s.off("click","a.navigation__item--link .navigation__item--expand",r),s.find(".navigation__list--sub").css("display","")})};if(n.addEventListener("change",c),c(n),"1"===e.dataset.moreButton){let t=e.querySelectorAll(".navigation__list.more_nav:not(.mm-listview)");for(let e of t)h.create(e)}let u=e=>{let n=e.currentTarget,o=t(n),s=o.children(".navigation__list--sub"),a=s.find("> .navigation__item.has-drop-down > .navigation__list--sub"),r=a.find("> .navigation__item.has-drop-down > .navigation__list--sub"),l=s.outerWidth(!0),h=o.offset().left,c=a.toArray().reduce(d,0),u=r.toArray().reduce(d,0),p=l+c+u-o.outerWidth(!0),f=t(document).width()-(h+o.outerWidth(!0)+60);n.classList.toggle("near-edge",!(f>p))};o.children(".navigation__list").on("mouseenter mouseleave","> .navigation__item.has-drop-down",u)}}class m{static initializeAll(){let t=document.querySelectorAll(".component.navigation .navigation-b, .component.navigation .navigation-c");for(let e of t)this.initialize(e)}static initialize(e){let n=t(e).children(".navigation__button"),o=t(e).children(".navigation__menu--container"),s=t(e).find(".navigation__item--expand");n.click(function(){n.hasClass("animating")||(n.addClass("animating"),n.children(".navigation__button--icon").toggleClass("is-active"),o.hasClass("animating")||(o.addClass("animating"),o.toggleClass("expanded"),setTimeout(function(){o.removeClass("animating"),n.removeClass("animating")},500)))}),t(document).click(function(t){o.is(t.target)||0!==o.has(t.target).length||n.is(t.target)||0!==n.has(t.target).length||(n.children(".navigation__button--icon").removeClass("is-active"),o.hasClass("animating")||(o.addClass("animating"),o.removeClass("expanded"),setTimeout(function(){o.removeClass("animating"),n.removeClass("animating")},500)))}),s.click(function(){t(this).toggleClass("expanded").next().slideToggle()})}}t(()=>
15{t("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),m.initializeAll(),h.unmask(),f.initializeAll(),l(),r(),window.addEventListener("resize",()=>{a()})})})(window.jQuery),function(t){var e=function(e,n){this.$el=t(e),this.inputAttributes=n.attributes,this.options=n||{},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:n.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)};e.prototype.init=function(t){this.attachEvents()},e.prototype.attachEvents=function(){var e=this;e.$el.on("change",":file",function(){var e=t(this),n=e.get(0).files?e.get(0).files.length:1,o=e.val().replace(/\\/g,"/").replace(/.*\//,""),s=document.getElementById(e.attr("id")).files[0];s&&e.trigger("fileselect",[n,o,s])}),e.$uploadFieldInput.on("fileselect",function(t,n,o,s){e.validateFiles(t,n,o,s)}),e.$uploadFieldInput.on("focus",function(){e.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){e.$uploadFieldInput.removeClass("has-focus")}),e.$close.on("click",function(t){t.preventDefault(),e.toggleInputState("reset"),e.uploadItems("removeLastUploaded"),e.$uploadFieldInput.val("")})},e.prototype.uploadItems=function(t){"object"!=typeof t?this.$uploadFieldInput.data("item",""):(this.$uploadFieldInput.data("item",JSON.stringify(t)),this.toggleInputState("close"))},e.prototype.toggleInputState=function(t){"reset"===t&&(t="upload",this.$label.html(this.config.defaultLabel)),this.$el.find(".la-cicon-"+t).show(),this.$el.find(".la-cicon-"+t).siblings("i").hide(),"upload"===t?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},e.prototype.encodeBaseSF=function(t,e,n){var o=this,s=new FileReader,a={};s.readAsDataURL(t),s.onload=function(){return a.id=e,a.string=s.result,a.size=t.size,a.extension=o.itemInfo.extension,a.icon=o.itemInfo.icon,n(a)},s.onerror=function(t){}},e.prototype.insertHTML=function(e){this.options.required;var n='<label for="'+e.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>',o=t("<input>",e).addClass("fileUpload");this.$el.append(o).append(n)},e.prototype.validateFiles=function(e,n,o,s){var a=this,r=a.$label.html(),l="",h=!1;t("label",a.$el).removeClass("has-error"),t(".error_container",a.$el.parent().parent()).remove(),a.itemInfo.extension=s.name.split(".").pop().toUpperCase(),a.itemInfo.icon="other",t.each(a.options.fileTypes,function(t,e){e.ext===a.itemInfo.extension&&(h=!0,a.itemInfo.icon=e.icon)}),e.target.value&&(l=e.target.value.split("\\").pop());var c='<span class="success"><i class="la-cicon-file-'+a.itemInfo.icon+'"></i>'+l+"</span>";l?(s.size>a.config.fileSize?a.updateLabel(a.config.maxSize):h?a.encodeBaseSF(s,l,function(t){a.uploadItems(t),a.updateLabel(c)}):a.updateLabel(a.config.notSupported),a.toggleInputState("close")):(a.$label.html(r),a.toggleInputState("load"))},e.prototype.updateLabel=function(t){void 0!==t&&this.$label.html(t)}
15;var n=t.fn.uploadField;t.fn.uploadField=function(n){n=t.extend({},t(this).data(),"object"==typeof n&&n),new e(this,n)},t.fn.uploadField.Constructor=e,t.fn.uploadField.noConflict=function(){return t.fn.uploadField=n,this}}(jQuery),function(t){var e=function(e,n){if(this.$form=t(e),this.options=n,this.options.advanceNotice>0){let t=new Date,e=new Date(t.getTime()+1e3*this.options.advanceNotice);this.options.advanceNotice=e}else this.options.advanceNotice=new Date;this.init(),this.attachEvents()};e.prototype.init=function(){this.formOptions()},e.prototype.attachEvents=function(){var e=this;e.$form.on("submit",function(){return e.requestLeadsApi(),!1}),e.$form.find(".fileField").each(function(){t(this).uploadField({attributes:{id:t(this).data("id"),name:t(this).data("name"),type:"file"},fileTypes:e.$form.data("file-types"),label:t(this).data("label"),helpText:t(this).data("placeholder"),required:t(this).data("required")})}),e.$form.find("input:checkbox").each(function(){var e=t(this).data("refName");t(this).attr("required")&&""!=e.trim()&&(this.checkValidity=function(){return t('*[data-ref-name="'+e+'"]:checkbox:checked').length>0})}),e.$form.find("input[data-form-datepicker='default']").each(function(){"preferred_date"==t(this).attr("name")?t(this).datepicker({minDate:e.options.advanceNotice,onSelect:function(){e.fillAvailableHours(t(this).datepicker("getDate"))}}):t(this).datepicker()})},e.prototype.requestLeadsApi=function(){var e=this;if(!this.checkFormValidity())return!1;t(":submit",e.$form).prop("disabled",!0);var n=e.buildPostData();let o=document.getElementById("error-form-dialog"),s=document.getElementById("p-error-message"),a=document.getElementById("close-dialog");function r(t){s.textContent=t,o.showModal(),document.body.style.overflow="hidden",o.style.display="block"}if(a.addEventListener("click",()=>{o.close(),o.style.display="none",document.body.style.overflow="auto"}),this.checkUrlsInComments(n))return r("Error: Your message could not be delivered because it contains a link to an external website. Please review your message and try again."),t(":submit",e.$form).prop("disabled",!1),!1;n.source=window.location.hostname,n.__lf_ref_name="",n.__lf_title_name="",n.__lf__ref_contact_field="",n.mh_template_id=e.$form.data("template-id"),n.mh_orgId=e.$form.data("mhorgid"),t.ajax({url:e.$form.data("submit-url"),type:"POST",dataType:"json",data:n,success:function(t){e.submitSuccessMessage()},error:function(e,n,o){if(e.hasOwnProperty("responseText")){var s=t.parseJSON(e.responseText);if(s.error_message){if("object"==typeof s.error_message)r("Error: "+s.error_message);else if("string"==typeof s.error_message)try{let t=JSON.parse(s.error_message);t=t[0].message,r("Error: "+t)}catch(t){r("Error: "+s.error_message)}}else r("Error: "+e.status+" "+e.statusText),t.support.placeholder||t("[placeholder]").each(function(){this.value=t(this).attr("placeholder")})}else r("Oops! Something went wrong!")},complete:function(){t(":submit",e.$form).prop("disabled",!1)}})},e.prototype.checkFormValidity=function(){var e=this,n=!0;return e.$form.find("input").each(function(){t(this).attr("required")&&(this.checkValidity()||(n=!1),e.$form.addClass("was-validated"))}),n},e.prototype.submitSuccessMessage=function(){"message"==this.options.submitType?(this.$form.hide(),this.$form.parent().find(".div-success-message."+this.$form.data("hash")).show()):"redirect"==this.options.submitType&&window.location.replace(this.options.submitValue)},e.prototype.buildPostData=function(){var e=this,n={},o={},s={};if(n.hash=e.options.hash,t.each(e.$form.find(":input").not(":submit"),function(){o[this.name]=e.$form.find(":input[name='"+this.name+"']"),s[this.getAttribute("data-ref-name")]=this.name}),void 0!=window.CampaignTracker)var a=window.CampaignTracker.readCookie();return a&&(n.source=a.source,n.medium="undefined"!=a.medium?a.medium:"",n.campaign="undefined"!=a.campaign?a.campaign:"",n.content="undefined"!=a.content?a.content:"",n.term="undefined"!=a.term?a.term:""),e.$form.find(":input").each(function(){"submit"!=this.type&&"button"!=this.type&&("tel"==this.getAttribute("type")?n[this.name]=this.value.replace(/[^0-9]/g,""):"date"==this.getAttribute("type")&&"date"!=t(this).prop("type")?n[this.name]=e.convertDate(this.value):"preferred_date"!=this.getAttribute("data-ref-name")||t(this).data("isCustom")?"checkbox"==this.type||"radio"==this.type?n[this.name]=t("input[name="+this.name+"]:checked").map(function(e,n){return t(n).val()}).get():"file"==this.type?n[this.name]=t(this).data("item"):n[this.name]=this.value:n[s.preferred_date]=e.convertDate(this.value))}),n},e.prototype.convertDate=function(t){var e=t.split("/");return e.length>0&&e[0]?e[2]+"-"+e[0]+"-"+e[1]:t},e.prototype.formOptions=function(e){t(".forms-option--b .form-a .form__group label").each(function(){t(this).hasClass("hidden")||t(this).parent().find(".form__input:not([type='radio']):not([type='checkbox']):not(.form__input--file)>:first-child , .form__input--file").addClass("optionB-enabled")})},e.prototype.fillAvailableHours=function(e){var n=this;t(n.$form).find(":submit").attr("disabled",!1);var o=t.datepicker.formatDate("D",e);if(Array.isArray(n.options.availableHours)){var s=[];t.each(n.options.availableHours,function(){if(o===this.day_of_week)return 1==this.closed?s.push("Closed"):t.each(this.hours,function(){var t=n.populateHours(this.from,this.to,n.options.timeInterval,e);s=s.concat(t)}),!1}),0==t(s).length&&s.push("Closed"),n.$form.find("[name='preferred_time']").empty(),t.each(s,function(e,o){n.$form.find("[name='preferred_time']").append(t("<option>",{value:o,text:o})),"Closed"==o&&t(n.$form).find(":submit").attr("disabled",!0)})}},e.prototype.populateHours=function(t,e,n,o){for(var s=[],o=void 0!==o?o:new Date,a=Date.parse(o.getFullYear()+"/"+(o.getMonth()+1)+"/"+o.getDate()+" "+t),r=Date.parse(o.getFullYear()+"/"+(o.getMonth()+1)+"/"+o.getDate()+" "+e);a<r;){var o=new Date(a),l=o.getHours()>12?o.getHours()-12:o.getHours(),h=o.getHours()>=12?"PM":"AM",c=l+":"+(10>
15o.getMinutes()?"0"+o.getMinutes():o.getMinutes())+" "+h;s.push(c),a+=1e3*n}return s},e.prototype.checkUrlsInComments=function(t){if(!("comments"in t))return!1;var e=RegExp("((https?|ftp):\\/\\/)?([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!!t.comments.match(e)},e.DEFAULTS={};var n=t.fn.Form;t.fn.Form=function(n){var o;return arguments,this.each(function(){var s=t(this),a=t.extend({},e.DEFAULTS,s.data(),"object"==typeof n&&n);if(s.data("se.form",new e(this,a)),void 0!==o)return!1}),o||this},t.fn.Form.Constructor=e,t.fn.Form.noConflict=function(){return t.fn.Form=n,this},t(window).load(function(){var e=t('[data-control="form"]');e.length&&e.each(function(){t(this).Form({})})})}(jQuery),function(t,e,n){"use strict";let o="math_captcha",s="math_captcha_token",a=new WeakMap;function r(t){return a.get(t)||{loading:!1,loaded:!1,fetchedAt:0,jqxhr:null,submitRetryArmed:!1}}function l(t,e){a.set(t,e)}function h(t){return!t.fetchedAt||Date.now()-t.fetchedAt>=295e3}function c(t){let e=t.find("#data-captcha-question").first(),n=t.find("#math_captcha").first(),a=t.find("#math_captcha_token").first();return n.length&&(n.attr("name")||"")!==o&&n.attr("name",o),a.length&&(a.attr("name")||"")!==s&&a.attr("name",s),{$q:e,$a:n,$t:a}}function d(e,n){let o=e.get(0);if(!o)return null;let s=r(o),a=!!(n&&n.force);if(s.loading||s.loaded&&!a&&!h(s))return s.jqxhr;let d=function(t){let e=t.attr("data-captcha-url");return e?String(e):null}(e);if(!d)return null;let{$q:u,$a:p,$t:f}=c(e);if(!u.length||!p.length||!f.length)return null;if(s.jqxhr&&4!==s.jqxhr.readyState)try{s.jqxhr.abort()}catch(t){}s.loading=!0,l(o,s);let m=t.ajax({url:d,method:"GET",dataType:"json",cache:!1,timeout:8e3,crossDomain:!0});return s.jqxhr=m,m.done(function(t){t&&"string"==typeof t.question&&t.question.trim()&&"string"==typeof t.token&&t.token.trim()?(u.text(t.question),f.val(t.token),s.loaded=!0,s.fetchedAt=Date.now()):s.loaded=!1}).fail(function(t){console.warn("[captcha]",function(t){let e=t&&t.responseJSON;return e&&"string"==typeof e.error&&e.error.trim()?e.error.trim():t&&404===t.status?"Invalid form hash":t&&403===t.status?"Captcha not enabled for this form":"Unable to load captcha"}(t)),s.loaded=!1}).always(function(){s.loading=!1,l(o,s)}),m}t(n).on("pointerdown keydown focusin input",function(e){let n=function(e){let n=t(e).closest("form[data-captcha-url]");if(!n.length)return null;let{$q:o,$a:s,$t:a}=c(n);return o.length&&s.length&&a.length?n:null}(e.target);n&&d(n)}),t(n).on("submit","form[data-captcha-url]",function(e){let n=t(this),{$q:o,$a:s,$t:a}=c(n);if(!o.length||!s.length||!a.length)return;let u=this,p=r(u);if(p.submitRetryArmed){p.submitRetryArmed=!1,l(u,p);return}let f=!a.val();if(f||h(p)){e.preventDefault();let t=d(n,{force:!0});if(!t)return;t.done(function(){let t=r(u);t.submitRetryArmed=!0,l(u,t),"function"==typeof u.requestSubmit?u.requestSubmit():u.submit()})}}),e.refreshMathCaptcha=function(e){let n=t(e);return n.length?d(n,{force:!0}):null}}(jQuery,window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function t(t){return t&&"[object Function]"===({}).toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var n=window.getComputedStyle(t,null);return e?n[e]:n}function n(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var s=e(t),a=s.overflow,r=s.overflowX,l=s.overflowY;return/(auto|scroll)/.test(a+l+r)?t:o(n(t))}function s(t){var n=t&&t.offsetParent,o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===e(n,"position")?s(n):n:window.document.documentElement}function a(t){return null===t.parentNode?t:a(t.parentNode)}function r(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return window.document.documentElement;var n,o=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,l=o?t:e,h=o?e:t,c=document.createRange();c.setStart(l,0),c.setEnd(h,0);var d=c.commonAncestorContainer;if(t!==d&&e!==d||l.contains(h))return"BODY"!==(n=d.nodeName)&&("HTML"===n||s(d.firstElementChild)===d)?d:s(d);var u=a(t);return u.host?r(u.host,e):r(t,a(e).host)}function l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var s=window.document.documentElement;return(window.document.scrollingElement||s)[n]}return t[n]}function h(t,e){var n="x"===e?"Left":"Top";return+t["border"+n+"Width"].split("px")[0]+ +t["border"+("Left"==n?"Right":"Bottom")+"Width"].split("px")[0]}function c(t,e,n,o){return z(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Z()?n["offset"+t]+o["margin"+("Height"===t?"Top":"Left")]+o["margin"+("Height"===t?"Bottom":"Right")]:0)}function d(){var t=window.document.body,e=window.document.documentElement,n=Z()&&window.getComputedStyle(e);return{height:c("Height",t,e,n),width:c("Width",t,e,n)}}function u(t){return K({},t,{right:t.left+t.width,bottom:t.top+t.height})}function p(t){var n={};if(Z())try{n=t.getBoundingClientRect();var o=l(t,"top"),s=l(t,"left");n.top+=o,n.left+=s,n.bottom+=o,n.right+=s}catch(t){}else n=t.getBoundingClientRect();var a={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},r="HTML"===t.nodeName?d():{},c=r.width||t.clientWidth||a.right-a.left,p=r.height||t.clientHeight||a.bottom-a.top,f=t.offsetWidth-c,m=t.offsetHeight-p;if(f||m){var g=e(t);f-=h(g,"x"),m-=h(g,"y"),a.width-=f,a.height-=m}return u(a)}function f(t,n){var s=Z(),a="HTML"===n.nodeName,r=p(t),h=p(n),c=o(t),d=e(n),f=+d.borderTopWidth.split("px")[0],m=+d.borderLeftWidth.split("px")[0],g=u({to
15p:r.top-h.top-f,left:r.left-h.left-m,width:r.width,height:r.height});if(g.marginTop=0,g.marginLeft=0,!s&&a){var v=+d.marginTop.split("px")[0],_=+d.marginLeft.split("px")[0];g.top-=f-v,g.bottom-=f-v,g.left-=m-_,g.right-=m-_,g.marginTop=v,g.marginLeft=_}return(s?n.contains(c):n===c&&"BODY"!==c.nodeName)&&(g=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],o=l(e,"top"),s=l(e,"left"),a=n?-1:1;return t.top+=o*a,t.bottom+=o*a,t.left+=s*a,t.right+=s*a,t}(g,n)),g}function m(t,s,a,h){var c={top:0,left:0},p=r(t,s);if("viewport"===h)g=f(p,m=window.document.documentElement),v=z(m.clientWidth,window.innerWidth||0),_=z(m.clientHeight,window.innerHeight||0),b=l(m),y=l(m,"left"),c=u({top:b-g.top+g.marginTop,left:y-g.left+g.marginLeft,width:v,height:_});else{"scrollParent"===h?"BODY"===(w=o(n(t))).nodeName&&(w=window.document.documentElement):w="window"===h?window.document.documentElement:h;var m,g,v,_,b,y,w,x=f(w,p);if("HTML"===w.nodeName&&!function t(o){var s=o.nodeName;return"BODY"!==s&&"HTML"!==s&&("fixed"===e(o,"position")||t(n(o)))}(p)){var C=d(),k=C.height,T=C.width;c.top+=x.top-x.marginTop,c.bottom=k+x.top,c.left+=x.left-x.marginLeft,c.right=T+x.left}else c=x}return c.left+=a,c.top+=a,c.right-=a,c.bottom-=a,c}function g(t,e,n,o,s){var a=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var r=m(n,o,a,s),l={top:{width:r.width,height:e.top-r.top},right:{width:r.right-e.right,height:r.height},bottom:{width:r.width,height:r.bottom-e.bottom},left:{width:e.left-r.left,height:r.height}},h=Object.keys(l).map(function(t){var e;return K({key:t},l[t],{area:(e=l[t]).width*e.height})}).sort(function(t,e){return e.area-t.area}),c=h.filter(function(t){var e=t.width,o=t.height;return e>=n.clientWidth&&o>=n.clientHeight}),d=0<c.length?c[0].key:h[0].key,u=t.split("-")[1];return d+(u?"-"+u:"")}function v(t,e,n){var o=r(e,n);return f(n,o)}function _(t){var e=window.getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),o=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function b(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function y(t,e,n){n=n.split("-")[0];var o=_(t),s={width:o.width,height:o.height},a=-1!==["right","left"].indexOf(n),r=a?"top":"left",l=a?"left":"top",h=a?"height":"width";return s[r]=e[r]+e[h]/2-o[h]/2,s[l]=n===l?e[l]-o[a?"width":"height"]:e[b(l)],s}function w(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function x(e,n,o){return(void 0===o?e:e.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var o=w(t,function(t){return t[e]===n});return t.indexOf(o)}(e,"name",o))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var o=e.function||e.fn;e.enabled&&t(o)&&(n.offsets.popper=u(n.offsets.popper),n.offsets.reference=u(n.offsets.reference),n=o(n,e))}),n}function C(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=v(this.state,this.popper,this.reference),t.placement=g(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=y(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=x(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function k(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function T(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length-1;o++){var s=e[o],a=s?""+s+n:t;if(void 0!==window.document.body.style[a])return a}return null}function S(){return this.state.isDestroyed=!0,k(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[T("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function E(){var t,e,n,s;this.state.eventsEnabled||(this.state=(t=this.reference,this.options,e=this.state,n=this.scheduleUpdate,e.updateBound=n,window.addEventListener("resize",e.updateBound,{passive:!0}),function t(e,n,s,a){var r="BODY"===e.nodeName,l=r?window:e;l.addEventListener(n,s,{passive:!0}),r||t(o(l.parentNode),n,s,a),a.push(l)}(s=o(t),"scroll",e.updateBound,e.scrollParents),e.scrollElement=s,e.eventsEnabled=!0,e))}function P(){var t;this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=(this.reference,t=this.state,window.removeEventListener("resize",t.updateBound),t.scrollParents.forEac
15h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function I(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function D(t,e){Object.keys(e).forEach(function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&I(e[n])&&(o="px"),t.style[n]=e[n]+o})}function A(t,e,n){var o=w(t,function(t){return t.name===e}),s=!!o&&t.some(function(t){return t.name===n&&t.enabled&&t.order<o.order});if(!s){var a="`"+e+"`";console.warn("`"+n+"` modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return s}function M(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(t),o=Q.slice(n+1).concat(Q.slice(0,n));return e?o.reverse():o}for(var O=Math.min,N=Math.floor,z=Math.max,H="undefined"!=typeof window,j=["Edge","Trident","Firefox"],W=0,B=0;B<j.length;B+=1)if(H&&0<=navigator.userAgent.indexOf(j[B])){W=1;break}var R,F,q=H&&(R=window.MutationObserver,["native code","[object MutationObserverConstructor]"].some(function(t){return -1<(R||"").toString().indexOf(t)}))?function(t){var e=!1,n=0,o=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(o,{attributes:!0}),function(){e||(e=!0,o.setAttribute("x-index",n),++n)}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},W))}},Z=function(){return void 0==F&&(F=-1!==navigator.appVersion.indexOf("MSIE 10")),F},U=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")},V=function(){function t(t,e){for(var n,o=0;o<e.length;o++)(n=e[o]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),Y=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},K=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},G=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=G.slice(3),X={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},J=function(){function e(n,o){var s=this,a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};U(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(s.update)},this.update=q(this.update.bind(this)),this.options=K({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=n.jquery?n[0]:n,this.popper=o.jquery?o[0]:o,this.options.modifiers={},Object.keys(K({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){s.options.modifiers[t]=K({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return K({name:t},s.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(e){e.enabled&&t(e.onLoad)&&e.onLoad(s.reference,s.popper,s.options,e,s.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return V(e,[{key:"update",value:function(){return C.call(this)}},{key:"destroy",value:function(){return S.call(this)}},{key:"enableEventListeners",value:function(){return E.call(this)}},{key:"disableEventListeners",value:function(){return P.call(this)}}]),e}();return J.Utils=("undefined"==typeof window?global:window).PopperUtils,J.placements=G,J.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],o=e.split("-")[1];if(o){var s=t.offsets,a=s.reference,r=s.popper,l=-1!==["bottom","top"].indexOf(n),h=l?"left"
15:"top",c=l?"width":"height",d={start:Y({},h,a[h]),end:Y({},h,a[h]+a[c]-r[c])};t.offsets.popper=K({},r,d[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,o,s,a,r,l,h=e.offset,c=t.placement,d=t.offsets,p=d.popper,f=d.reference,m=c.split("-")[0];return l=I(+h)?[+h,0]:(n=[0,0],o=-1!==["right","left"].indexOf(m),a=(s=h.split(/(\+|\-)/).map(function(t){return t.trim()})).indexOf(w(s,function(t){return -1!==t.search(/,|\s/)})),s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),r=/\s*,\s*|\s+/,(-1===a?[s]:[s.slice(0,a).concat([s[a].split(r)[0]]),[s[a].split(r)[1]].concat(s.slice(a+1))]).map(function(t,e){var n=(1===e?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){var e,o,s,a;return s=+(o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],a=o[2],s?0===a.indexOf("%")?u("%p"===a?p:f)[n]/100*s:"vh"===a||"vw"===a?("vh"===a?z(document.documentElement.clientHeight,window.innerHeight||0):z(document.documentElement.clientWidth,window.innerWidth||0))/100*s:s:t})}).forEach(function(t,e){t.forEach(function(o,s){I(o)&&(n[e]+=o*("-"===t[s-1]?-1:1))})}),n),"left"===m?(p.top+=l[0],p.left-=l[1]):"right"===m?(p.top+=l[0],p.left+=l[1]):"top"===m?(p.left+=l[0],p.top-=l[1]):"bottom"===m&&(p.left+=l[0],p.top+=l[1]),t.popper=p,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||s(t.instance.popper);t.instance.reference===n&&(n=s(n));var o=m(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=o;var a=e.priority,r=t.offsets.popper,l={primary:function(t){var n=r[t];return r[t]<o[t]&&!e.escapeWithReference&&(n=z(r[t],o[t])),Y({},t,n)},secondary:function(t){var n="right"===t?"left":"top",s=r[n];return r[t]>o[t]&&!e.escapeWithReference&&(s=O(r[n],o[t]-("right"===t?r.width:r.height))),Y({},n,s)}};return a.forEach(function(t){r=K({},r,l[-1===["left","top"].indexOf(t)?"secondary":"primary"](t))}),t.offsets.popper=r,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,s=-1!==["top","bottom"].indexOf(t.placement.split("-")[0]),a=s?"right":"bottom",r=s?"left":"top";return n[a]<N(o[r])&&(t.offsets.popper[r]=N(o[r])-n[s?"width":"height"]),n[r]>N(o[a])&&(t.offsets.popper[r]=N(o[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,n){if(!A(t.instance.modifiers,"arrow","keepTogether"))return t;var o=n.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var s=t.placement.split("-")[0],a=t.offsets,r=a.popper,l=a.reference,h=-1!==["left","right"].indexOf(s),c=h?"height":"width",d=h?"Top":"Left",p=d.toLowerCase(),f=h?"bottom":"right",m=_(o)[c];l[f]-m<r[p]&&(t.offsets.popper[p]-=r[p]-(l[f]-m)),l[p]+m>r[f]&&(t.offsets.popper[p]+=l[p]+m-r[f]);var g=l[p]+l[c]/2-m/2,v=e(t.instance.popper,"margin"+d).replace("px",""),b=g-u(t.offsets.popper)[p]-v;return b=z(O(r[c]-m,b),0),t.arrowElement=o,t.offsets.arrow={},t.offsets.arrow[p]=Math.round(b),t.offsets.arrow[h?"left":"top"]="",t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(k(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var n=m(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),o=t.placement.split("-")[0],s=b(o),a=t.placement.split("-")[1]||"",r=[];switch(e.behavior){case X.FLIP:r=[o,s];break;case X.CLOCKWISE:r=M(o);break;case X.COUNTERCLOCKWISE:r=M(o,!0);break;default:r=e.behavior}return r.forEach(function(l,h){if(o!==l||r.length===h+1)return t;s=b(o=t.placement.split("-")[0]);var c,d=t.offsets.popper,u=t.offsets.reference,p="left"===o&&N(d.right)>N(u.left)||"right"===o&&N(d.left)<N(u.right)||"top"===o&&N(d.bottom)>N(u.top)||"bottom"===o&&N(d.top)<N(u.bottom),f=N(d.left)<N(n.left),m=N(d.right)>N(n.right),g=N(d.top)<N(n.top),v=N(d.bottom)>
15N(n.bottom),_="left"===o&&f||"right"===o&&m||"top"===o&&g||"bottom"===o&&v,w=-1!==["top","bottom"].indexOf(o),C=!!e.flipVariations&&(w&&"start"===a&&f||w&&"end"===a&&m||!w&&"start"===a&&g||!w&&"end"===a&&v);(p||_||C)&&(t.flipped=!0,(p||_)&&(o=r[h+1]),C&&(a="end"===(c=a)?"start":"start"===c?"end":c),t.placement=o+(a?"-"+a:""),t.offsets.popper=K({},t.offsets.popper,y(t.instance.popper,t.offsets.reference,t.placement)),t=x(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,r=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return s[r?"left":"top"]=a[n]-(l?s[r?"width":"height"]:0),t.placement=b(e),t.offsets.popper=u(s),t}},hide:{order:800,enabled:!0,fn:function(t){if(!A(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=w(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,a=t.offsets.popper,r=w(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l,h,c=void 0===r?e.gpuAcceleration:r,d=p(s(t.instance.popper)),u={position:a.position},f={left:N(a.left),top:N(a.top),bottom:N(a.bottom),right:N(a.right)},m="bottom"===n?"top":"bottom",g="right"===o?"left":"right",v=T("transform");(h="bottom"==m?-d.height+f.bottom:f.top,l="right"==g?-d.width+f.right:f.left,c&&v)?(u[v]="translate3d("+l+"px, "+h+"px, 0)",u[m]=0,u[g]=0,u.willChange="transform"):(u[m]=h*("bottom"==m?-1:1),u[g]=l*("right"==g?-1:1),u.willChange=m+", "+g);var _={"x-placement":t.placement};return t.attributes=K({},_,t.attributes),t.styles=K({},u,t.styles),t.arrowStyles=K({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return D(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach(function(n){!1===e[n]?t.removeAttribute(n):t.setAttribute(n,e[n])})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&D(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,s){var a=v(s,e,t),r=g(n.placement,a,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",r),D(e,{position:"absolute"}),n},gpuAcceleration:void 0}}},J}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,n){"use strict";function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var r,l,h,c,d,u,p,f,m,g,v,_,b,y,w,x,C,k,T,S,E,P,I,D,A,M,O,N,z,H,j,W,B,R,F,q,Z,U,V,Y,K,G,Q,X,J,tt,te,ti,tn,to,ts,ta,tr,tl,th,tc,td,tu,tp,tf,tm,tg,tv,t_,tb,ty,tw,tx,tC,tk,tT,tS,tE,tP,tL,tI,tD,tA,tM,tO,tN,tz,tH,tj,tW,tB,tR,tF,t$,tq,tZ,tU,tV,tY,tK,tG,tQ,tX,tJ,t0,t1,t2,t3,t5,t4,t6,t9,t8,t7,et,ee,ei,en,eo,es,ea,er,el,eh,ec,ed,eu,ep,ef,em,eg,ev=(r=e,l=!1,h={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e,n=t.getAttribute("data-target");n&&"#"!==n||(n=t.getAttribute("href")||""),"#"===n.charAt(0)&&(e=n,n=e="function"==typeof r.escapeSelector?r.escapeSelector(e).substr(1):e.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return r(document).find(n).length>0?n:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){r(t).trigger(l.end)},supportsTransitionEnd:function(){return!!l},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)){var s=n[o],a=e[o],r=a&&h.isElement(a)?"element":({}).toString.call(a).match(/\s([a-zA-Z]+)/)[1].toLowerCase();if(!new RegExp(s).test(r))throw Error(t.toUpperCase()+': Option "'+o+'" provided type "'+r+'" but expected type "'+s+'".')}}},l=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},r.fn.emulateTransitionEnd=function(t){var e=this,n=!1;return r(this).one(h.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||h.triggerTransitionEnd(e)},t),this},h.supportsTransitionEnd()&&(r.event.special[h.TRANSITION_END]={bindType:l.end,delegateType:l.end,handle:function(t){if(r(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),h),e_=(et="alert",ei="."+(ee="bs.alert"),en=(t7=e).fn[et],eo={CLOSE:"close"+ei,CLOSED:"closed"+ei,CLICK_DATA_API:"click"+ei+".data-api"},es=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){t7.removeData(this._element,ee),this._element=null},e._getRootElement=function(t){var e=ev.getSelectorFromElement(t),n=!1;return e&&(n=t7(e)[0]),n||(n=t7(t).closest(".alert")[0]),n},e._triggerCloseEvent=function(t){var e=t7.Event(eo.CLOSE);return t7(t).trigger(e),e},e._removeElement=function(t){var e=this;t7(t).removeClass("show"),ev.supportsTransitionEnd()&&t7(t).hasClass("fade")?t7(t).one(ev.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){t7(t).detach().trigger(eo.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=t7(this),o=n.data(ee);o||(o=new t(this),n.data(ee,o)),"close"===e&&o[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),t7(document).on(eo.CLICK_DATA_API,'[data-dismiss="alert"]',es._handleDismiss(new es)),t7.fn[et]=es._jQueryInterface,t7.fn[et].Constructor=es,t7.fn[et].noConflict=function(){return t7.fn[et]=en,es._jQueryInterface},es),eb=(er="button",eh="."+(el="bs.button"),ec=".data-api",ed=(ea=e).fn[er],eu="active",ep='[data-toggle^="button"]',ef=".btn",em={CLICK_DATA_API:"click"+eh+ec,FOCUS_BLUR_DATA_API:"focus"+eh+ec+" blur"+eh+ec},eg=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=ea(this._element).closest('[data-toggle="buttons"]')[0];if(n){var o=ea(this._element).find("input")[0];if(o){if("radio"===o.type){if(o.checked&&ea(this._element).hasClass(eu))t=!1;else{var s=ea(n).find(".active")[0];s&&ea(s).removeClass(eu)}}if(t){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!ea(this._element).hasClass(eu),ea(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!ea(this._element).hasClass(eu)),t&&ea(this._element).toggleClass(eu)},e.dispose=function(){ea.removeData(this._element,el),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=ea(this).data(el);n||(n=new t(this),ea(this).data(el,n)),"toggle"===e&&n[e]()})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),ea(document).on(em.CLICK_DATA_API,ep,function(t){t.preventDefault();var e=t.target;ea(e).hasClass("btn")||(e=ea(e).closest(ef)),eg._jQueryInterface.call(ea(e),"toggle")}).on(em.FOCUS_BLUR_DATA_API,ep,function(t){var e=ea(t.target).closest(ef)[0];ea(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),ea.fn[er]=eg._jQueryInterface,ea.fn[er].Constructor=eg,ea.fn[er].noConflict=function(){return ea.fn[er]=ed,eg._jQueryInterface},eg),ey=(c=e,d="carousel",p="."+(u="bs.carousel"),f=c.fn[d],m={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},g={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},v="next",_="prev",b={SLIDE:"slide"+p,SLID:"slid"+p,KEYDOWN:"keydown"+p,MOUSEENTER:"mouseenter"+p,MOUSELEAVE:"mouseleave"+p,TOUCHEND:"touchend"+p,LOAD_DATA_API:"load"+p+".data-api",CLICK_DATA_API:"click"+p+".data-api"},y="active",w={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-sli
15de], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},x=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=c(t)[0],this._indicatorsElement=c(this._element).find(w.INDICATORS)[0],this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(v)},e.nextWhenVisible=function(){!document.hidden&&c(this._element).is(":visible")&&"hidden"!==c(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(_)},e.pause=function(t){t||(this._isPaused=!0),c(this._element).find(w.NEXT_PREV)[0]&&ev.supportsTransitionEnd()&&(ev.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=c(this._element).find(w.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)c(this._element).one(b.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();this._slide(t>n?v:_,this._items[t])}}},e.dispose=function(){c(this._element).off(p),c.removeData(this._element,u),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=a({},m,t),ev.typeCheckConfig(d,t,g),t},e._addEventListeners=function(){var t=this;this._config.keyboard&&c(this._element).on(b.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(c(this._element).on(b.MOUSEENTER,function(e){return t.pause(e)}).on(b.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&c(this._element).on(b.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=c.makeArray(c(t).parent().find(w.ITEM)),this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=this._getItemIndex(e),o=this._items.length-1;if((t===_&&0===n||t===v&&n===o)&&!this._config.wrap)return e;var s=(n+(t===_?-1:1))%this._items.length;return -1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),o=this._getItemIndex(c(this._element).find(w.ACTIVE_ITEM)[0]),s=c.Event(b.SLIDE,{relatedTarget:t,direction:e,from:o,to:n});return c(this._element).trigger(s),s},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){c(this._indicatorsElement).find(w.ACTIVE).removeClass(y);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&c(e).addClass(y)}},e._slide=function(t,e){var n,o,s,a=this,r=c(this._element).find(w.ACTIVE_ITEM)[0],l=this._getItemIndex(r),h=e||r&&this._getItemByDirection(t,r),d=this._getItemIndex(h),u=!!this._interval;if(t===v?(n="carousel-item-left",o="carousel-item-next",s="left"):(n="carousel-item-right",o="carousel-item-prev",s="right"),h&&c(h).hasClass(y))this._isSliding=!1;else if(!this._triggerSlideEvent(h,s).isDefaultPrevented()&&r&&h){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(h);var p=c.Event(b.SLID,{relatedTarget:h,direction:s,from:l,to:d});ev.supportsTransitionEnd()&&c(this._element).hasClass("slide")?(c(h).addClass(o),ev.reflow(h),c(r).addClass(n),c(h).addClass(n),c(r).one(ev.TRANSITION_END,function(){c(h).removeClass(n+" "+o).addClass(y),c(r).removeClass(y+" "+o+" "+n),a._isSliding=!1,setTimeout(function(){return c(a._element).trigger(p)},0)}).emulateTransitionEnd(600)):(c(r).removeClass(y),c(h).addClass(y),this._isSliding=!1,c(this._element).trigger(p)),u&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=c(this).data(u),o=a({},m,c(this).data());"object"==typeof e&&(o=a({},o,e));var s="string"==typeof e?e:o.slide;if(n||(n=new t(this,o),c(this).data(u,n)),"number"==typeof e)n.to(e);else if("string"==typeof s){if(void 0===n[s])throw TypeError('No method n
15amed "'+s+'"');n[s]()}else o.interval&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=ev.getSelectorFromElement(this);if(n){var o=c(n)[0];if(o&&c(o).hasClass("carousel")){var s=a({},c(o).data(),c(this).data()),r=this.getAttribute("data-slide-to");r&&(s.interval=!1),t._jQueryInterface.call(c(o),s),r&&c(o).data(u).to(r),e.preventDefault()}}},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return m}}]),t}(),c(document).on(b.CLICK_DATA_API,w.DATA_SLIDE,x._dataApiClickHandler),c(window).on(b.LOAD_DATA_API,function(){c(w.DATA_RIDE).each(function(){var t=c(this);x._jQueryInterface.call(t,t.data())})}),c.fn[d]=x._jQueryInterface,c.fn[d].Constructor=x,c.fn[d].noConflict=function(){return c.fn[d]=f,x._jQueryInterface},x),ew=(C=e,k="collapse",S="."+(T="bs.collapse"),E=C.fn[k],P={toggle:!0,parent:""},I={toggle:"boolean",parent:"(string|element)"},D={SHOW:"show"+S,SHOWN:"shown"+S,HIDE:"hide"+S,HIDDEN:"hidden"+S,CLICK_DATA_API:"click"+S+".data-api"},A="show",M="collapse",O="collapsing",N="collapsed",z="width",H={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},j=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=C.makeArray(C('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=C(H.DATA_TOGGLE),o=0;o<n.length;o++){var s=n[o],a=ev.getSelectorFromElement(s);null!==a&&C(a).filter(t).length>0&&(this._selector=a,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){C(this._element).hasClass(A)?this.hide():this.show()},e.show=function(){var e,n,o=this;if(!this._isTransitioning&&!C(this._element).hasClass(A)&&(this._parent&&0===(e=C.makeArray(C(this._parent).find(H.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(n=C(e).not(this._selector).data(T))&&n._isTransitioning))){var s=C.Event(D.SHOW);if(C(this._element).trigger(s),!s.isDefaultPrevented()){e&&(t._jQueryInterface.call(C(e).not(this._selector),"hide"),n||C(e).data(T,null));var a=this._getDimension();C(this._element).removeClass(M).addClass(O),this._element.style[a]=0,this._triggerArray.length>0&&C(this._triggerArray).removeClass(N).attr("aria-expanded",!0),this.setTransitioning(!0);var r=function(){C(o._element).removeClass(O).addClass(M).addClass(A),o._element.style[a]="",o.setTransitioning(!1),C(o._element).trigger(D.SHOWN)};if(ev.supportsTransitionEnd()){var l="scroll"+(a[0].toUpperCase()+a.slice(1));C(this._element).one(ev.TRANSITION_END,r).emulateTransitionEnd(600),this._element.style[a]=this._element[l]+"px"}else r()}}},e.hide=function(){var t=this;if(!this._isTransitioning&&C(this._element).hasClass(A)){var e=C.Event(D.HIDE);if(C(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",ev.reflow(this._element),C(this._element).addClass(O).removeClass(M).removeClass(A),this._triggerArray.length>0)for(var o=0;o<this._triggerArray.length;o++){var s=this._triggerArray[o],a=ev.getSelectorFromElement(s);null!==a&&(C(a).hasClass(A)||C(s).addClass(N).attr("aria-expanded",!1))}this.setTransitioning(!0);var r=function(){t.setTransitioning(!1),C(t._element).removeClass(O).addClass(M).trigger(D.HIDDEN)};this._element.style[n]="",ev.supportsTransitionEnd()?C(this._element).one(ev.TRANSITION_END,r).emulateTransitionEnd(600):r()}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){C.removeData(this._element,T),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=a({},P,t)).toggle=!!t.toggle,ev.typeCheckConfig(k,t,I),t},e._getDimension=function(){return C(this._element).hasClass(z)?z:"height"},e._getParent=function(){var e=this,n=null;ev.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=C(this._config.parent)[0];var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return C(n).find(o).each(function(n,o){e._addAriaAndCollapsedClass(t._getTargetFromElement(o),[o])}),n},e._addAriaAndCollapsedClass=function(t,e){if(t){var n=C(t).hasClass(A);e.length>0&&C(e).toggleClass(N,!n).attr("aria-expanded",n)}},t._getTargetFromElement=function(t){var e=ev.getSelectorFromElement(t);return e?C(e)[0]:null},t._jQueryInterface=function(e){return this.each(function(){var n=C(this),o=n.data(T),s=a({},P,n.data(),"object"==typeof e&&e);if(!o&&s.toggle&&/show|hide/.test(e)&&(s.toggle=!1),o||(o=new t(this,s),n.data(T,o)),"string"==typeof e){if(void 0===o[e])throw TypeError('No method n
15amed "'+e+'"');o[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return P}}]),t}(),C(document).on(D.CLICK_DATA_API,H.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=C(this);C(ev.getSelectorFromElement(this)).each(function(){var t=C(this),n=t.data(T)?"toggle":e.data();j._jQueryInterface.call(t,n)})}),C.fn[k]=j._jQueryInterface,C.fn[k].Constructor=j,C.fn[k].noConflict=function(){return C.fn[k]=E,j._jQueryInterface},j),ex=(W=e,B="dropdown",F="."+(R="bs.dropdown"),q=".data-api",Z=W.fn[B],U=RegExp("38|40|27"),V={HIDE:"hide"+F,HIDDEN:"hidden"+F,SHOW:"show"+F,SHOWN:"shown"+F,CLICK:"click"+F,CLICK_DATA_API:"click"+F+q,KEYDOWN_DATA_API:"keydown"+F+q,KEYUP_DATA_API:"keyup"+F+q},Y="disabled",K="show",G="dropup",Q="dropdown-menu-right",X='[data-toggle="dropdown"]',J=".dropdown-menu",tt={offset:0,flip:!0,boundary:"scrollParent"},te={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},ti=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!W(this._element).hasClass(Y)){var e=t._getParentFromElement(this._element),o=W(this._menu).hasClass(K);if(t._clearMenus(),!o){var s={relatedTarget:this._element},a=W.Event(V.SHOW,s);if(W(e).trigger(a),!a.isDefaultPrevented()){if(!this._inNavbar){if(void 0===n)throw TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var r=this._element;W(e).hasClass(G)&&(W(this._menu).hasClass("dropdown-menu-left")||W(this._menu).hasClass(Q))&&(r=e),"scrollParent"!==this._config.boundary&&W(e).addClass("position-static"),this._popper=new n(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===W(e).closest(".navbar-nav").length&&W("body").children().on("mouseover",null,W.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),W(this._menu).toggleClass(K),W(e).toggleClass(K).trigger(W.Event(V.SHOWN,s))}}}},e.dispose=function(){W.removeData(this._element,R),W(this._element).off(F),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;W(this._element).on(V.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=a({},this.constructor.Default,W(this._element).data(),t),ev.typeCheckConfig(B,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);this._menu=W(e).find(J)[0]}return this._menu},e._getPlacement=function(){var t=W(this._element).parent(),e="bottom-start";return t.hasClass(G)?(e="top-start",W(this._menu).hasClass(Q)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":W(this._menu).hasClass(Q)&&(e="bottom-end"),e},e._detectNavbar=function(){return W(this._element).closest(".navbar").length>0},e._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},t._jQueryInterface=function(e){return this.each(function(){var n=W(this).data(R);if(n||(n=new t(this,"object"==typeof e?e:null),W(this).data(R,n)),"string"==typeof e){if(void 0===n[e])throw TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=W.makeArray(W(X)),o=0;o<n.length;o++){var s=t._getParentFromElement(n[o]),a=W(n[o]).data(R),r={relatedTarget:n[o]};if(a){var l=a._menu;if(W(s).hasClass(K)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&W.contains(s,e.target))){var h=W.Event(V.HIDE,r);W(s).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&W("body").children().off("mouseover",null,W.noop),n[o].setAttribute("aria-expanded","fal
15se"),W(l).removeClass(K),W(s).removeClass(K).trigger(W.Event(V.HIDDEN,r)))}}}},t._getParentFromElement=function(t){var e,n=ev.getSelectorFromElement(t);return n&&(e=W(n)[0]),e||t.parentNode},t._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||W(e.target).closest(J).length)):U.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!W(this).hasClass(Y))){var n=t._getParentFromElement(this),o=W(n).hasClass(K);if((o||27===e.which&&32===e.which)&&(!o||27!==e.which&&32!==e.which)){var s=W(n).find(".dropdown-menu .dropdown-item:not(.disabled)").get();if(0!==s.length){var a=s.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}else{if(27===e.which){var r=W(n).find(X)[0];W(r).trigger("focus")}W(this).trigger("click")}}},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tt}},{key:"DefaultType",get:function(){return te}}]),t}(),W(document).on(V.KEYDOWN_DATA_API,X,ti._dataApiKeydownHandler).on(V.KEYDOWN_DATA_API,J,ti._dataApiKeydownHandler).on(V.CLICK_DATA_API+" "+V.KEYUP_DATA_API,ti._clearMenus).on(V.CLICK_DATA_API,X,function(t){t.preventDefault(),t.stopPropagation(),ti._jQueryInterface.call(W(this),"toggle")}).on(V.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),W.fn[B]=ti._jQueryInterface,W.fn[B].Constructor=ti,W.fn[B].noConflict=function(){return W.fn[B]=Z,ti._jQueryInterface},ti),eC=(tn=e,ts="."+(to="bs.modal"),ta=tn.fn.modal,tr={backdrop:!0,keyboard:!0,focus:!0,show:!0},tl={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},th={HIDE:"hide"+ts,HIDDEN:"hidden"+ts,SHOW:"show"+ts,SHOWN:"shown"+ts,FOCUSIN:"focusin"+ts,RESIZE:"resize"+ts,CLICK_DISMISS:"click.dismiss"+ts,KEYDOWN_DISMISS:"keydown.dismiss"+ts,MOUSEUP_DISMISS:"mouseup.dismiss"+ts,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ts,CLICK_DATA_API:"click"+ts+".data-api"},tc="modal-open",td="fade",tu="show",tp={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},tf=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=tn(t).find(tp.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){ev.supportsTransitionEnd()&&tn(this._element).hasClass(td)&&(this._isTransitioning=!0);var n=tn.Event(th.SHOW,{relatedTarget:t});tn(this._element).trigger(n),this._isShown||n.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),tn(document.body).addClass(tc),this._setEscapeEvent(),this._setResizeEvent(),tn(this._element).on(th.CLICK_DISMISS,tp.DATA_DISMISS,function(t){return e.hide(t)}),tn(this._dialog).on(th.MOUSEDOWN_DISMISS,function(){tn(e._element).one(th.MOUSEUP_DISMISS,function(t){tn(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var n=tn.Event(th.HIDE);if(tn(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=ev.supportsTransitionEnd()&&tn(this._element).hasClass(td);o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),tn(document).off(th.FOCUSIN),tn(this._element).removeClass(tu),tn(this._element).off(th.CLICK_DISMISS),tn(this._dialog).off(th.MOUSEDOWN_DISMISS),o?tn(this._element).one(ev.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},e.dispose=function(){tn.removeData(this._element,to),tn(window,document,this._element,this._backdrop).off(ts),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=a({},tr,t),ev.typeCheckConfig("modal",t,tl),t},e._showElement=function(t){var e=this,n=ev.supportsTransitionEnd()&&tn(this._element).hasClass(td);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&ev.reflow(this._element),tn(this._element).addClass(tu),this._config.focus&&this._enforceFocus();var o=tn.Event(th.SHOWN,{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,tn(e._element).trigger(o)};n?tn(this._dialog).one(ev.TRANSITION_END,s).emulateTransitionEnd(300):s()},e._enforceFocus=function(){var t=this;tn(document).off(th.FOCUSIN).on(th.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===tn(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?tn(this._element).on(th.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||tn(this._element).off(th.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?tn(window).on(th.RESIZE,function(e){return t.handleUpdate(e)}):tn(window).off(th.RESIZE)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){tn(document.body).removeClass(tc),t._resetAdjustments(),t._resetScrollbar(),tn(t._element).trigger(th.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(tn(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,n=tn(this._element).hasClass(td)?td:"";if(this._isShown&&this._config.backdrop){var o=ev.supportsTransitionEnd()&&n;if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&tn(this._backdrop).addClass(n),tn(this._backdrop).appendTo(document.body),tn(this._element).on(th.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),o&&ev.reflow(this._backdrop),tn(this._backdrop).addClass(tu),!t)return;if(!o)return void t();tn(this._backdrop).one(ev.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){tn(this._backdrop).removeClass(tu);var s=function(){e._removeBackdrop(),t&&t()};ev.supportsTransitionEnd()&&tn(this._element).hasClass(td)?tn(this._backdrop).one(ev.TRANSITION_END,s).emulateTransitionEnd(150):s()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){tn(tp.FIXED_CONTENT).each(function(e,n){var o=tn(n)[0].style.paddingRight,s=tn(n).css("padding-right");tn(n).data("padding-right",o).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")}),tn(tp.STICKY_CONTENT).each(function(e,n){var o=tn(n)[0].style.marginRight,s=tn(n).css("margin-right");tn(n).data("margin-right",o).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")}),tn(tp.NAVBAR_TOGGLER).each(function(e,n){var o=tn(n)[0].style.marginRight,s=tn(n).css("margin-right");tn(n).data("margin-right",o).css("margin-right",parseFloat(s)+t._scrollbarWidth+"px")});var e=document.body.style.paddingRight,n=tn("body").css("padding-right");tn("body").data("padding-right",e).css("padding-right",parseFloat(n)+this._scrollbarWidth+"px")}},e._resetScrollbar=function(){tn(tp.FIXED_CONTENT).each(function(t,e){var n=tn(e).data("padding-right");void 0!==n&&tn(e).css("padding-right",n).removeData("padding-right")}),tn(tp.STICKY_CONTENT+", "+tp.NAVBAR_TOGGLER).each(function(t,e){var n=tn(e).data("margin-right");void 0!==n&&tn(e).css("margin-right",n).removeData("margin-right")});var t=tn("body").data("padding-right");void 0!==t&&tn("body").css("padding-right",t).removeData("padding-right")},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each(function(){var o=tn(this).data(to),s=a({},t.Default,tn(this).data(),"object"==typeof e&&e);if(o||(o=new t(this,s),tn(this).data(to,o)),"string"==typeof e){if(void 0===o[e])throw TypeError('No method n
15amed "'+e+'"');o[e](n)}else s.show&&o.show(n)})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tr}}]),t}(),tn(document).on(th.CLICK_DATA_API,tp.DATA_TOGGLE,function(t){var e,n=this,o=ev.getSelectorFromElement(this);o&&(e=tn(o)[0]);var s=tn(e).data(to)?"toggle":a({},tn(e).data(),tn(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=tn(e).one(th.SHOW,function(t){t.isDefaultPrevented()||r.one(th.HIDDEN,function(){tn(n).is(":visible")&&n.focus()})});tf._jQueryInterface.call(tn(e),s,this)}),tn.fn.modal=tf._jQueryInterface,tn.fn.modal.Constructor=tf,tn.fn.modal.noConflict=function(){return tn.fn.modal=ta,tf._jQueryInterface},tf),ek=(tm=e,tg="tooltip",t_="."+(tv="bs.tooltip"),tb=tm.fn[tg],ty=RegExp("(^|\\s)bs-tooltip\\S+","g"),tw={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},tx={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},tC={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},tk="show",tT={HIDE:"hide"+t_,HIDDEN:"hidden"+t_,SHOW:"show"+t_,SHOWN:"shown"+t_,INSERTED:"inserted"+t_,CLICK:"click"+t_,FOCUSIN:"focusin"+t_,FOCUSOUT:"focusout"+t_,MOUSEENTER:"mouseenter"+t_,MOUSELEAVE:"mouseleave"+t_},tS="fade",tE="show",tP="hover",tL="focus",tI=function(){function t(t,e){if(void 0===n)throw TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled){if(t){var e=this.constructor.DATA_KEY,n=tm(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),tm(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(tm(this.getTipElement()).hasClass(tE))return void this._leave(null,this);this._enter(null,this)}}},e.dispose=function(){clearTimeout(this._timeout),tm.removeData(this.element,this.constructor.DATA_KEY),tm(this.element).off(this.constructor.EVENT_KEY),tm(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&tm(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var e=this;if("none"===tm(this.element).css("display"))throw Error("Please use show on visible elements");var o=tm.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){tm(this.element).trigger(o);var s=tm.contains(this.element.ownerDocument.documentElement,this.element);if(o.isDefaultPrevented()||!s)return;var a=this.getTipElement(),r=ev.getUID(this.constructor.NAME);a.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&tm(a).addClass(tS);var l="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,h=this._getAttachment(l);this.addAttachmentClass(h);var c=!1===this.config.container?document.body:tm(this.config.container);tm(a).data(this.constructor.DATA_KEY,this),tm.contains(this.element.ownerDocument.documentElement,this.tip)||tm(a).appendTo(c),tm(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,{placement:h,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"}
15,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),tm(a).addClass(tE),"ontouchstart"in document.documentElement&&tm("body").children().on("mouseover",null,tm.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,tm(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};ev.supportsTransitionEnd()&&tm(this.tip).hasClass(tS)?tm(this.tip).one(ev.TRANSITION_END,d).emulateTransitionEnd(t._TRANSITION_DURATION):d()}},e.hide=function(t){var e=this,n=this.getTipElement(),o=tm.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==tk&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),tm(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};tm(this.element).trigger(o),o.isDefaultPrevented()||(tm(n).removeClass(tE),"ontouchstart"in document.documentElement&&tm("body").children().off("mouseover",null,tm.noop),this._activeTrigger.click=!1,this._activeTrigger[tL]=!1,this._activeTrigger[tP]=!1,ev.supportsTransitionEnd()&&tm(this.tip).hasClass(tS)?tm(n).one(ev.TRANSITION_END,s).emulateTransitionEnd(150):s(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return!!this.getTitle()},e.addAttachmentClass=function(t){tm(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||tm(this.config.template)[0],this.tip},e.setContent=function(){var t=tm(this.getTipElement());this.setElementContent(t.find(".tooltip-inner"),this.getTitle()),t.removeClass(tS+" "+tE)},e.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?tm(e).parent().is(t)||t.empty().append(e):t.text(tm(e).text()):t[n?"html":"text"](e)},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getAttachment=function(t){return tx[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)tm(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var n=e===tP?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o=e===tP?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;tm(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(o,t.config.selector,function(e){return t._leave(e)})}tm(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||tm(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),tm(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?tL:tP]=!0),tm(e.getTipElement()).hasClass(tE)||e._hoverState===tk?e._hoverState=tk:(clearTimeout(e._timeout),e._hoverState=tk,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===tk&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||tm(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),tm(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?tL:tP]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){return"number"==typeof(t=a({},this.constructor.Default,tm(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),ev.typeCheckConfig(tg,t,this.constructor.DefaultType),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=tm(this.getTipElement()),e=t.attr("class").match(ty);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(tm(t).removeClass(tS),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=tm(this).data(tv);if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,"object"==typeof e&&e),tm(this).data(tv,n)),"string"==typeof e)){if(void 0===n[e])throw TypeError('No method n
15amed "'+e+'"');n[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tC}},{key:"NAME",get:function(){return tg}},{key:"DATA_KEY",get:function(){return tv}},{key:"Event",get:function(){return tT}},{key:"EVENT_KEY",get:function(){return t_}},{key:"DefaultType",get:function(){return tw}}]),t}(),tm.fn[tg]=tI._jQueryInterface,tm.fn[tg].Constructor=tI,tm.fn[tg].noConflict=function(){return tm.fn[tg]=tb,tI._jQueryInterface},tI),eT=(tD=e,tA="popover",tO="."+(tM="bs.popover"),tN=tD.fn[tA],tz=RegExp("(^|\\s)bs-popover\\S+","g"),tH=a({},ek.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),tj=a({},ek.DefaultType,{content:"(string|element|function)"}),tW={HIDE:"hide"+tO,HIDDEN:"hidden"+tO,SHOW:"show"+tO,SHOWN:"shown"+tO,INSERTED:"inserted"+tO,CLICK:"click"+tO,FOCUSIN:"focusin"+tO,FOCUSOUT:"focusout"+tO,MOUSEENTER:"mouseenter"+tO,MOUSELEAVE:"mouseleave"+tO},tB=function(t){function e(){return t.apply(this,arguments)||this}(n=e).prototype=Object.create(t.prototype),n.prototype.constructor=n,n.__proto__=t;var n,o=e.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){tD(this.getTipElement()).addClass("bs-popover-"+t)},o.getTipElement=function(){return this.tip=this.tip||tD(this.config.template)[0],this.tip},o.setContent=function(){var t=tD(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=tD(this.getTipElement()),e=t.attr("class").match(tz);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each(function(){var n=tD(this).data(tM);if((n||!/destroy|hide/.test(t))&&(n||(n=new e(this,"object"==typeof t?t:null),tD(this).data(tM,n)),"string"==typeof t)){if(void 0===n[t])throw TypeError('No method named "'+t+'"');n[t]()}})},s(e,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tH}},{key:"NAME",get:function(){return tA}},{key:"DATA_KEY",get:function(){return tM}},{key:"Event",get:function(){return tW}},{key:"EVENT_KEY",get:function(){return tO}},{key:"DefaultType",get:function(){return tj}}]),e}(ek),tD.fn[tA]=tB._jQueryInterface,tD.fn[tA].Constructor=tB,tD.fn[tA].noConflict=function(){return tD.fn[tA]=tN,tB._jQueryInterface},tB),eS=(tR=e,tF="scrollspy",tq="."+(t$="bs.scrollspy"),tZ=tR.fn[tF],tU={offset:10,method:"auto",target:""},tV={offset:"number",method:"string",target:"(string|element)"},tY={ACTIVATE:"activate"+tq,SCROLL:"scroll"+tq,LOAD_DATA_API:"load"+tq+".data-api"},tK="active",tG={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},tQ="position",tX=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+tG.NAV_LINKS+","+this._config.target+" "+tG.LIST_ITEMS+","+this._config.target+" "+tG.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,tR(this._scrollElement).on(tY.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":tQ,n="auto"===this._config.method?e:this._config.method,o=n===tQ?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),tR.makeArray(tR(this._selector)).map(function(t){var e,s=ev.getSelectorFromElement(t);if(s&&(e=tR(s)[0]),e){var a=e.getBoundingClientRect();if(a.width||a.height)return[tR(e)[n]().top+o,s]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
15).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){tR.removeData(this._element,t$),tR(this._scrollElement).off(tq),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=a({},tU,t)).target){var e=tR(t.target).attr("id");e||(e=ev.getUID(tF),tR(t.target).attr("id",e)),t.target="#"+e}return ev.typeCheckConfig(tF,t,tV),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var o=this._targets[this._targets.length-1];this._activeTarget!==o&&this._activate(o)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t<this._offsets[s+1])&&this._activate(this._targets[s])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(","),n=tR((e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})).join(","));n.hasClass("dropdown-item")?(n.closest(tG.DROPDOWN).find(tG.DROPDOWN_TOGGLE).addClass(tK),n.addClass(tK)):(n.addClass(tK),n.parents(tG.NAV_LIST_GROUP).prev(tG.NAV_LINKS+", "+tG.LIST_ITEMS).addClass(tK),n.parents(tG.NAV_LIST_GROUP).prev(tG.NAV_ITEMS).children(tG.NAV_LINKS).addClass(tK)),tR(this._scrollElement).trigger(tY.ACTIVATE,{relatedTarget:t})},e._clear=function(){tR(this._selector).filter(tG.ACTIVE).removeClass(tK)},t._jQueryInterface=function(e){return this.each(function(){var n=tR(this).data(t$);if(n||(n=new t(this,"object"==typeof e&&e),tR(this).data(t$,n)),"string"==typeof e){if(void 0===n[e])throw TypeError('No method named "'+e+'"');n[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tU}}]),t}(),tR(window).on(tY.LOAD_DATA_API,function(){for(var t=tR.makeArray(tR(tG.DATA_SPY)),e=t.length;e--;){var n=tR(t[e]);tX._jQueryInterface.call(n,n.data())}}),tR.fn[tF]=tX._jQueryInterface,tR.fn[tF].Constructor=tX,tR.fn[tF].noConflict=function(){return tR.fn[tF]=tZ,tX._jQueryInterface},tX),eE=(tJ=e,t1="."+(t0="bs.tab"),t2=tJ.fn.tab,t3={HIDE:"hide"+t1,HIDDEN:"hidden"+t1,SHOW:"show"+t1,SHOWN:"shown"+t1,CLICK_DATA_API:"click.bs.tab.data-api"},t5="active",t4="show",t6=".active",t9="> li > .active",t8=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&tJ(this._element).hasClass(t5)||tJ(this._element).hasClass("disabled"))){var e,n,o=tJ(this._element).closest(".nav, .list-group")[0],s=ev.getSelectorFromElement(this._element);if(o){var a="UL"===o.nodeName?t9:t6;n=(n=tJ.makeArray(tJ(o).find(a)))[n.length-1]}var r=tJ.Event(t3.HIDE,{relatedTarget:this._element}),l=tJ.Event(t3.SHOW,{relatedTarget:n});if(n&&tJ(n).trigger(r),tJ(this._element).trigger(l),!l.isDefaultPrevented()&&!r.isDefaultPrevented()){s&&(e=tJ(s)[0]),this._activate(this._element,o);var h=function(){var e=tJ.Event(t3.HIDDEN,{relatedTarget:t._element}),o=tJ.Event(t3.SHOWN,{relatedTarget:n});tJ(n).trigger(e),tJ(t._element).trigger(o)};e?this._activate(e,e.parentNode,h):h()}}},e.dispose=function(){tJ.removeData(this._element,t0),this._element=null},e._activate=function(t,e,n){var o=this,s=("UL"===e.nodeName?tJ(e).find(t9):tJ(e).children(t6))[0],a=n&&ev.supportsTransitionEnd()&&s&&tJ(s).hasClass("fade"),r=function(){return o._transitionComplete(t,s,n)};s&&a?tJ(s).one(ev.TRANSITION_END,r).emulateTransitionEnd(150):r()},e._transitionComplete=function(t,e,n){if(e){tJ(e).removeClass(t4+" "+t5);var o=tJ(e.parentNode).find("> .dropdown-menu .active")[0];o&&tJ(o).removeClass(t5),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(tJ(t).addClass(t5),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),ev.reflow(t),tJ(t).addClass(t4),t.parentNode&&tJ(t.parentNode).hasClass("dropdown-menu")){var s=tJ(t).closest(".dropdown")[0];s&&tJ(s).find(".dropdown-toggle").addClass(t5),t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each(function(){var n=tJ(this),o=n.data(t0);if(o||(o=new t(this),n.data(t0,o)),"string"==typeof e){if(void 0===o[e])throw TypeError('No method n
15amed "'+e+'"');o[e]()}})},s(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),tJ(document).on(t3.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),t8._jQueryInterface.call(tJ(this),"show")}),tJ.fn.tab=t8._jQueryInterface,tJ.fn.tab.Constructor=t8,tJ.fn.tab.noConflict=function(){return tJ.fn.tab=t2,t8._jQueryInterface},t8);(function(t){if(void 0===t)throw TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")})(e),t.Util=ev,t.Alert=e_,t.Button=eb,t.Carousel=ey,t.Collapse=ew,t.Dropdown=ex,t.Modal=eC,t.Popover=eT,t.Scrollspy=eS,t.Tab=eE,t.Tooltip=ek,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,n=-1,o=function(t){return parseFloat(t)||0},s=function(e){var n=t(e),s=null,a=[];return n.each(function(){var e=t(this),n=e.offset().top-o(e.css("margin-top")),r=a.length>0?a[a.length-1]:null;null===r?a.push(e):1>=Math.floor(Math.abs(s-n))?a[a.length-1]=r.add(e):a.push(e),s=n}),a},a=function(e){var n={byRow:!0,property:"min-height",target:null,remove:!1};return"object"==typeof e?t.extend(n,e):("boolean"==typeof e?n.byRow=e:"remove"===e&&(n.remove=!0),n)},r=t.fn.matchHeight=function(e){var n=a(e);if(n.remove){var o=this;return this.css(n.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(o)}),this}return this.length<=1&&!n.target||(r._groups.push({elements:this,options:n}),r._apply(this,n)),this};r.version="master",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=s,r._parse=o,r._parseOptions=a,r._apply=function(e,n){var l=a(n),h=t(e),c=[h],d=t(window).scrollTop(),u=t("html").outerHeight(!0),p=h.parents().filter(":hidden");return p.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),p.css("display","block"),l.byRow&&!l.target&&(h.each(function(){var e=t(this),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block"),e.data("style-cache",e.attr("style")),e.css({display:n,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=s(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(c,function(e,n){var s=t(n),a=0;if(l.target)a=l.target.outerHeight(!1);else{if(l.byRow&&s.length<=1){s.css(l.property,"");return}s.each(function(){var e=t(this),n=e.attr("style"),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block");var s={display:o};s[l.property]="",e.css(s),e.outerHeight(!1)>a&&(a=e.outerHeight(!1)),n?e.attr("style",n):e.css("display","")})}s.each(function(){var e=t(this),n=0;!(l.target&&e.is(l.target))&&("border-box"!==e.css("box-sizing")&&(n+=o(e.css("border-top-width"))+o(e.css("border-bottom-width"))+(o(e.css("padding-top"))+o(e.css("padding-bottom")))),e.is("[data-mh-source]")||e.css(l.property,a-n+"px"))})}),p.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(d/u*t("html").outerHeight(!0)),this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var n=t(this),o=n.attr("data-mh")||n.attr("data-match-height");o in e?e[o]=e[o].add(n):e[o]=n}),t.each(e,function(){this.matchHeight(!0)})};var l=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(o,s){if(s&&"resize"===s.type){var a=t(window).width();if(a===e)return;e=a}o?-1===n&&(n=setTimeout(function(){l(s),n=-1},r._throttle)):l(s)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})}),$(document).ready(function(){var t=$(".editable__container");t.length&&t.each(function(){var t=$(this),e=t.find(".contentExpandWrap"),n=t.find("#readMoreLink");n.length&&("SPAN"==n[0].nodeName&&(n.attr("href","#editableAnimateShowLess"),function(t,e){$(t).each(function(){var t=$(e,{html:$
15(this).html()});$.each(this.attributes,function(){t.attr(this.name,this.value)}),$(this).replaceWith(t)})}(n,"<a></a>")),e.add(n).removeClass("expand"),e.hide(),n.text("Show More"),t.on("click","#readMoreLink",function(n){n.preventDefault();var o=$(this),s=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");s.length&&s.parent().css("visibility","hidden"),"Show More"===o.text()?(t.removeAttr("id"),o.text("Show Less")):(t.attr("id","editableAnimateShowLess"),o.text("Show More")),e.add(o).toggleClass("expand")}))})}),(t=>{"use strict";class e{constructor(t){this.$el=t,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',e=>{let n=e.target;if(!n)return;let o=decodeURI(n.hash).slice(1);if(!o)return;let s=document.getElementById(o);s&&this.animateToAnchor(t(s))})}animateToAnchor(e,n){n??=this.getStickySectionsHeight(),t("html, body").animate({scrollTop:e.offset().top-n},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}t(()=>{for(let n of document.querySelectorAll(".editable__container")){let o=t(n);o.data(e.dataAttribute,new e(o))}})})(window.jQuery),function(t){"use strict";var e=function(e,n){var o=this;return o.$element=t(e),o.options=n,t.extend(o.options,{start:function(e){o.fixVerticalSlideSmoothHeight(e),t(window).resize(function(){o.fixVerticalSlideSmoothHeight(e)})},after:function(t){o.fixVerticalSlideSmoothHeight(t)}}),o.attachEvents(),o.initializeSlider(),o};e.prototype.attachEvents=function(){var e=this;"vertical"===e.options.direction&&t(window).resize(function(){e.fixVerticalSlideHeight()})},e.prototype.initializeSlider=function(){var t=this;t.$bxSlider=t.$element.flexslider(t.options),"vertical"===t.options.direction&&t.fixVerticalSlideHeight(),t.controlsWrap()},e.prototype.fixVerticalSlideHeight=function(){var e=0,n=this.$element.find(".slides");n.children().height("auto").each(function(){e=Math.max(e,t(this).height())}).height(e),n.height(e)},e.prototype.fixVerticalSlideSmoothHeight=function(e){if("vertical"===this.options.direction&&1==this.options.smoothHeight){var n=t(e).find(".flex-active-slide > div").height();t(e).find(".flex-viewport").height(n)}},e.prototype.controlsWrap=function(){var t=this.$element.find(".flex-control-nav"),e=this.$element.find(".flex-direction-nav .flex-prev"),n=this.$element.find(".flex-direction-nav .flex-next");this.$element.append("<div class='controls-wrapper'></div>");var o=this.$element.find(".controls-wrapper");t.length?(o.append(t),e.insertBefore(t),n.insertAfter(t)):o.append(e,n),this.$element.find(".flex-direction-nav").remove(),1==this.$element.find(".slides li:not(.clone)").length&&o.remove()},e.DEFAULTS={easing:null,useCSS:!1};var n=t.fn.LocationSlider;t.fn.LocationSlider=function(n){arguments;var o=t(this);e.DEFAULTS.controlsContainer=t(".flex-control-nav",t(this).parent()),e.DEFAULTS.customDirectionNav=t(".controls-wrapper a",t(this).parent());var s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);return new e(this,s)},t.fn.LocationSlider.Constructor=e,t.fn.LocationSlider.noConflict=function(){t.fn.LocationSlider=n},t(window).load(function(){var e=t(".locations.slider .flexslider");e.length&&e.each(function(){t(this).LocationSlider()})})}(window.jQuery),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})})(this,function(t){let e,n,o,s=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++s),t._leaflet_id}function r(t,e,n){let o,s;function a(){o=!1,s&&(r.apply(n,s),s=!1)}function r(...l){o?s=l:(t.apply(n,l),setTimeout(a,e),o=!0)}return r}function l(t,e,n){var o=e[1],e=e[0],s=o-e;return t===o&&n?t:((t-e)%s+s)%s+e}function h(){return!1}function c(t,e){return!1===e?t:Math.round(t*(e=10**(void 0===e?6:e)))/e}function d(t){return t.trim().split(/\s+/)}function u(t,e){for(var n in Object.hasOwn(t,"options")||(t.options=t.options?Object.create(t.options):{}),e)Object.hasOwn(e,n)&&(t.options[n]=e[n]);return t.options}let p=/\{ *([\w_ -]+) *\}/g;function f(t,e){return t.replace(p,(t,n)=>{let o=e[n];if(void 0===o)throw Error("No value provided for variable "+t);return"function"==typeof o?o(e):o})}let m="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",g={__proto__:null,emptyImageUrl:m,falseFn:h,formatNum:c,get lastId(){return s},setOptions:u,splitWords:d,stamp:a,template:f,throttle:r,wrapNum:l};class v{static extend({statics:t,includes:e,...n}){var o=class extends this{}
15,s=(Object.setPrototypeOf(o,this),this.prototype),a=o.prototype;if(t&&Object.assign(o,t),Array.isArray(e))for(var r of e)Object.assign(a,r);else e&&Object.assign(a,e);return Object.assign(a,n),a.options&&(a.options=s.options?Object.create(s.options):{},Object.assign(a.options,n.options)),a._initHooks=[],o}static include(t){var e=this.prototype.options;return Object.assign(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this}static mergeOptions(t){return this.prototype.options??={},Object.assign(this.prototype.options,t),this}static addInitHook(t,...e){return this.prototype._initHooks??=[],this.prototype._initHooks.push("function"==typeof t?t:function(){this[t].apply(this,e)}),this}constructor(...t){this._initHooksCalled=!1,u(this),this.initialize&&this.initialize(...t),this.callInitHooks()}callInitHooks(){if(!this._initHooksCalled){var t,e=[];let o=this;for(;null!==(o=Object.getPrototypeOf(o));)e.push(o);for(t of(e.reverse(),e))for(var n of t._initHooks??[])n.call(this);this._initHooksCalled=!0}}}var _={on(t,e,n){if("object"==typeof t)for(var[o,s]of Object.entries(t))this._on(o,s,e);else for(var a of d(t))this._on(a,e,n);return this},off(t,e,n){if(arguments.length){if("object"==typeof t)for(var[o,s]of Object.entries(t))this._off(o,s,e);else{var a,r=1==arguments.length;for(a of d(t))r?this._off(a):this._off(a,e,n)}}else delete this._events;return this},_on(t,e,n,o){"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1===this._listens(t,e,n)&&(e={fn:e,ctx:n=n===this?void 0:n},o&&(e.once=!0),this._events??={},this._events[t]??=[],this._events[t].push(e))},_off(t,e,n){if(this._events){let s=this._events[t];if(s){if(1==arguments.length){if(this._firingCount)for(var o of s)o.fn=h;delete this._events[t]}else"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1!==(e=this._listens(t,e,n))&&(n=s[e],this._firingCount&&(n.fn=h,this._events[t]=s=s.slice()),s.splice(e,1))}}},fire(t,e,n){if(this.listens(t,n)){var o={...e,type:t,target:this,sourceTarget:e?.sourceTarget||this};if(this._events&&(e=this._events[t])){for(var s of(this._firingCount=this._firingCount+1||1,e)){var a=s.fn;s.once&&this.off(t,a,s.ctx),a.call(s.ctx||this,o)}this._firingCount--}n&&this._propagateEvent(o)}return this},listens(t,e,n,o){"string"!=typeof t&&console.warn('"string" type argument expected');let s=e;if("function"!=typeof e&&(o=!!e,n=s=void 0),this._events?.[t]?.length&&!1!==this._listens(t,s,n))return!0;if(o){for(var a of Object.values(this._eventParents??{}))if(a.listens(t,e,n,o))return!0}return!1},_listens(t,e,n){return!!this._events&&((t=this._events[t]??[],e)?(n===this&&(n=void 0),-1!==(t=t.findIndex(t=>t.fn===e&&t.ctx===n))&&t):!!t.length)},once(t,e,n){if("object"==typeof t)for(var[o,s]of Object.entries(t))this._on(o,s,e,!0);else for(var a of d(t))this._on(a,e,n,!0);return this},addEventParent(t){return this._eventParents??={},this._eventParents[a(t)]=t,this},removeEventParent(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent(t){for(var e of Object.values(this._eventParents??{}))e.fire(t.type,{propagatedFrom:t.target,...t},!0)}},_=(_.addEventListener=_.on,_.removeEventListener=_.clearAllEventListeners=_.off,_.addOneTimeEventListener=_.once,_.fireEvent=_.fire,_.hasEventListeners=_.listens,v.extend(_));class b{constructor(t,e,n){let o,s;if(!b.validate(t,e))throw Error(`Invalid Point object: (${t}, ${e})`);if(t instanceof b)return t;s=Array.isArray(t)?(o=t[0],t[1]):"object"==typeof t&&"x"in t&&"y"in t?(o=t.x,t.y):(o=t,e),this.x=n?Math.round(o):o,this.y=n?Math.round(s):s}static validate(t,e){return!!(t instanceof b||Array.isArray(t))||!!(t&&"object"==typeof t&&"x"in t&&"y"in t)||!(!t&&0!==t||!e&&0!==e)}clone(){var t=new b(0,0);return t.x=this.x,t.y=this.y,t}add(t){return this.clone()._add(new b(t))}_add(t){return this.x+=t.x,this.y+=t.y,this}subtract(t){return this.clone()._subtract(new b(t))}_subtract(t){return this.x-=t.x,this.y-=t.y,this}divideBy(t){return this.clone()._divideBy(t)}_divideBy(t){return this.x/=t,this.y/=t,this}multiplyBy(t){return this.clone()._multiplyBy(t)}_multiplyBy(t){return this.x*=t,this.y*=t,this}scaleBy(t){return new b(this.x*t.x,this.y*t.y)}unscaleBy(t){return new b(this.x/t.x,this.y/t.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(t){var e=(t=new b(t)).x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)}equals(t){return(t=new b(t)).x===this.x&&t.y===this.y}contains(t){return Math.abs((t=new b(t)).x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)}toString(){return`Point(${c(this.x)}, ${c(this.y)})`}}class y{constructor(t,e){if(t){var n;if(t instanceof y)return t;for(n of e?[t,e]:t)this.extend(n)}}extend(t){let e,n;if(t){if(t instanceof b||"number"==typeof t[0]||"x"in t)e=n=new b(t);else if(e=(t=new y(t)).min,n=t.max,!e||!n)return this;this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone())}return this}getCenter(t){return new b((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)}getBottomLeft(){return new b(this.min.x,this.max.y)}getTopRight(){return new b(this.max.x,this.min.y)}getTopLeft(){return this.min}getBottomRight(){return this.max}getSize(){return this.max.subtract(this.min)}contains(t){let e,n;return(t=new("number"==typeof t[0]||t instanceof b?b:y)(t))instanceof y?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y}intersects(t){t=new y(t);var e=this.min,n=this.max,o=t.min,t=t.max,s=t.x>=e.x&&o.x<=n.x,e=e.y<=t.y&&o.y<=n.y;return s&&e}overlaps(t){t=new y(t);var e=this.min,n=this.max,o=t.min,t=t.max,s=t.x>e.x&&o.x<n.x,e=e.y<t.y&&o.y<n.y;return s&&e}isValid(){return!(!this.min||!this.max)}pad(t){var e=this.min,n=this.max,o=Math.abs(e.x-n.x)*t,t=Math.abs(e.y-n.y)*t;return new y(new b(e.x-o,e.y-t),new b(n.x+o,n.y+t))}equals(t){return!!t&&(t=new y(t),this.min.equals(t.getTopLeft()))&&this.max.equals(t.getBottomRight())}}class w{constructor(t,e){if(t){var n;if(t instanceof w)return t;for(n of e?[t,e]:t)this.extend(n)}}extend(t){let e,n;var o=this._southWest,s=this._northEast;if(t instanceof x)e=t,n=t;else{if(!(t instanceof w))return t?x.validate(t)?this.extend(new x(t)):this.extend(new w(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return o||s?(o.lat=Math.min(e.lat,o.lat),o.lng=Math.min(e.lng,o.lng),s.lat=Math.max(n.lat,s.lat),s.lng=Math.max(n.lng,s.lng)):(this._southWest=new x(e.lat,e.lng),this._northEast=new x(n.lat,n.lng)),this}pad(t){var e=this._southWest,n=this._northEast,o=Math.abs(e.lat-n.lat)*t,t=Math.abs(e.lng-n.lng)*t;return new w(new x(e.lat-o,e.lng-t),new x(n.lat+o,n.lng+t))}getCenter(){return new x((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)}
15getSouthWest(){return this._southWest}getNorthEast(){return this._northEast}getNorthWest(){return new x(this.getNorth(),this.getWest())}getSouthEast(){return new x(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(t){let e,n;t=new(x.validate(t)?x:w)(t);var o=this._southWest,s=this._northEast;return t instanceof w?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=o.lat&&n.lat<=s.lat&&e.lng>=o.lng&&n.lng<=s.lng}intersects(t){t=new w(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),t=t.getNorthEast(),s=t.lat>=e.lat&&o.lat<=n.lat,t=t.lng>=e.lng&&o.lng<=n.lng;return s&&t}overlaps(t){t=new w(t);var e=this._southWest,n=this._northEast,o=t.getSouthWest(),t=t.getNorthEast(),s=t.lat>e.lat&&o.lat<n.lat,t=t.lng>e.lng&&o.lng<n.lng;return s&&t}toBBoxString(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")}equals(t,e){return!!t&&(t=new w(t),this._southWest.equals(t.getSouthWest
15(),e))&&this._northEast.equals(t.getNorthEast(),e)}isValid(){return!(!this._southWest||!this._northEast)}}class x{constructor(t,e,n){let o,s,a;if(!x.validate(t,e,n))throw Error(`Invalid LatLng object: (${t}, ${e})`);if(t instanceof x)return t;Array.isArray(t)&&"object"!=typeof t[0]?3===t.length?(o=t[0],s=t[1],a=t[2]):2===t.length&&(o=t[0],s=t[1]):a="object"==typeof t&&"lat"in t?(o=t.lat,s="lng"in t?t.lng:t.lon,t.alt):(o=t,s=e,n),this.lat=+o,this.lng=+s,void 0!==a&&(this.alt=+a)}static validate(t,e,n){return t instanceof x||"object"==typeof t&&"lat"in t||(t&&Array.isArray(t)&&"object"!=typeof t[0]?3===t.length||2===t.length:!(!t&&0!==t||!e&&0!==e))}equals(t,e){return!!t&&(t=new x(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(e??1e-9))}toString(t){return`LatLng(${c(this.lat,t)}, ${c(this.lng,t)})`}distanceTo(t){return k.distance(this,new x(t))}wrap(){return k.wrapLatLng(this)}toBounds(t){var t=180*t/40075017,e=t/Math.cos(Math.PI/180*this.lat);return new w([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])}clone(){var t=new x(0,0);return t.lat=this.lat,t.lng=this.lng,t.alt=this.alt,t}}class C{static projection=void 0;static transformation=void 0;static latLngToPoint(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)}static pointToLatLng(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)}static project(t){return this.projection.project(t)}static unproject(t){return this.projection.unproject(t)}static scale(t){return 256*2**t}static zoom(t){return Math.log(t/256)/Math.LN2}static getProjectedBounds(t){var e,n;return this.infinite?null:(n=this.projection.bounds,t=this.scale(t),e=this.transformation.transform(n.min,t),n=this.transformation.transform(n.max,t),new y(e,n))}static infinite=!1;static wrapLatLng(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,t=t.alt;return new x(n,e,t)}static wrapLatLngBounds(t){var e=t.getCenter(),n=this.wrapLatLng(e),o=e.lat-n.lat,e=e.lng-n.lng;
15return 0==o&&0==e?t:(n=t.getSouthWest(),t=t.getNorthEast(),n=new x(n.lat-o,n.lng-e),o=new x(t.lat-o,t.lng-e),new w(n,o))}}class k extends C{static wrapLng=[-180,180];static R=6371e3;static distance(t,e){var n=Math.PI/180,o=t.lat*n,s=e.lat*n,a=Math.sin((e.lat-t.lat)*n/2),e=Math.sin((e.lng-t.lng)*n/2),t=a*a+Math.cos(o)*Math.cos(s)*e*e,n=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*n}}let T={R:6378137,MAX_LATITUDE:85.0511287798,project(t){var e=Math.PI/180,n=this.MAX_LATITUDE,n=Math.max(Math.min(n,t.lat),-n),n=Math.sin(n*e);return new b(this.R*t.lng*e,this.R*Math.log((1+n)/(1-n))/2)},unproject(t){var e=180/Math.PI;return new x((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(P=6378137*Math.PI,new y([-P,-P],[P,P]))};class S{constructor(t,e,n,o){Array.isArray(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=n,this._d=o)}transform(t,e){return this._transform(t.clone(),e)}_transform(t,e){return t.x=(e||=1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t}untransform(t,e){return e||=1,new b((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}}class E extends k{static code="EPSG:3857";static projection=T;static transformation=(P=.5/(Math.PI*T.R),new S(P,.5,-P,.5))}var P=O("chrome"),I=!P&&O("safari"),D="undefined"!=typeof orientation||O("mobile"),A="undefined"!=typeof window&&!!window.PointerEvent,M="undefined"!=typeof window&&("ontouchstart"in window||!!window.TouchEvent);function O(t){return"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)}var N={chrome:P,safari:I,mobile:D,pointer:A,touch:M||A,touchNative:M,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")};function z(t){return"string"==typeof t?document.getElementById(t):t}function H(t,e,n){return(t=document.createElement(t)).className=e??"",n&&n.appendChild(t),t}function j(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function W(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function B(t,e,n){e=e??new b(0,0),t.style.transform=`translate3d(${e.x}px,${e.y}px,0)`+(n?` scale(${n})`:"")}let R=new WeakMap;function F(t,e){R.set(t,e),B(t,e)}function q(t){return R.get(t)??new b(0,0)}let Z="undefined"==typeof document?{}:document.documentElement.style,U=["userSelect","WebkitUserSelect"].find(t=>t in Z),V;function Y(){var t=Z[U];"none"!==t&&(V=t,Z[U]="none")}function K(){void 0!==V&&(Z[U]=V,V=void 0)}function G(){tc(window,"dragstart",ty)}function Q(){tu(window,"dragstart",ty)}function X(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(J(),e=t,n=t.style.outlineStyle,t.style.outlineStyle="none",tc(window,"keydown",J))}function J(){e&&(e.style.outlineStyle=n,e=void 0,n=void 0,tu(window,"keydown",J))}function tt(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function te(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}let ti={__proto__:null,create:H,disableImageDrag:G,disableTextSelection:Y,enableImageDrag:Q,enableTextSelection:K,get:z,getPosition:q,getScale:te,getSizedParentNode:tt,preventOutline:X,restoreOutline:J,setPosition:F,setTransform:B,toBack:W,toFront:j},tn=new Map,to=!1;function ts(){to||(to=!0,document.addEventListener("pointerdown",ta,{capture:!0}),document.addEventListener("pointermove",tr,{capture:!0}),document.addEventListener("pointerup",tl,{capture:!0}),document.addEventListener("pointercancel",tl,{capture:!0}),tn=new Map)}function ta(t){tn.set(t.pointerId,t)}function tr(t){tn.has(t.pointerId)&&tn.set(t.pointerId,t)}function tl(t){tn.delete(t.pointerId)}function th(){return[...tn.values()]}function tc(t,e,n,o){if(e&&"object"==typeof e)for(var[s,a]of Object.entries(e))tm(t,s,a,n);else for(var r of d(e))tm(t,r,n,o);return this}P={__proto__:null,cleanupPointers:function(){tn.clear()},disablePointerDetection:function(){document.removeEventListener("pointerdown",ta,{capture:!0}),document.removeEventListener("pointermove",tr,{capture:!0}),document.removeEventListener("pointerup",tl,{capture:!0}),document.removeEventListener("pointercancel",tl,{capture:!0}),to=!1},enablePointerDetection:ts,getPointers:th};let td="_leaflet_events";function tu(t,e,n,o){if(1==arguments.length)tp(t),delete t[td];else if(e&&"object"==typeof e)for(var[s,a]of Object.entries(e))tg(t,s,a,n);else if(e=d(e),2==arguments.length)tp(t,t=>e.includes(t));else for(var r of e)tg(t,r,n,o);return this}function tp(t,e){for(var n of Object.keys(t[td]??{})){var o=n.split(/\d/)[0];e&&!e(o)||tg(t,o,null,null,n)}}let tf={pointerenter:"pointerover",pointerleave:"pointerout",wheel:"undefined"!=typeof window&&!("onwheel"in window)&&"mousewheel"};function tm(t,e,n,o){var s=e+a(n)+(o?"_"+a(o):"");if(!t[td]||!t[td][s]){let a=function(e){return n.call(o||t,e||window.event)},r=a;N.touch&&"dblclick"===e?a=function(t,e){t.addEventListener("dblclick",e);let n=0,o;function s(t){var e;let s;
151!==t.detail?o=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(e=tx(t)).some(t=>t instanceof HTMLLabelElement&&t.attributes.for)&&!e.some(t=>t instanceof HTMLInputElement||t instanceof HTMLSelectElement)||((e=Date.now())-n<=200?2==++o&&t.target.dispatchEvent((s={bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:2,view:t.view,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons,relatedTarget:t.relatedTarget,region:t.region},new(t instanceof PointerEvent?(s={...s,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary},PointerEvent):MouseEvent)("dblclick",s))):o=1,n=e)}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}(t,a):"addEventListener"in t?"wheel"===e||"mousewheel"===e?t.addEventListener(tf[e]||e,a,{passive:!1}):"pointerenter"===e||"pointerleave"===e?(a=function(e){tS(t,e??=window.event)&&r(e)},t.addEventListener(tf[e],a,!1)):t.addEventListener(e,r,!1):t.attachEvent("on"+e,a),t[td]??={},t[td][s]=a}}function tg(t,e,n,o,s){s??=e+a(n)+(o?"_"+a(o):"");var n=t[td]&&t[td][s];n&&(N.touch&&"dblclick"===e?(o=n,t.removeEventListener("dblclick",o.dblclick),t.removeEventListener("click",o.simDblclick)):"removeEventListener"in t?t.removeEventListener(tf[e]||e,n,!1):t.detachEvent("on"+e,n),t[td][s]=null)}function tv(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function t_(t){return tm(t,"wheel",tv),this}function tb(t){return tc(t,"pointerdown dblclick contextmenu",tv),t._leaflet_disable_click=!0,this}function ty(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function tw(t){return ty(t),tv(t),this}function tx(t){return t.composedPath()}function tC(t,e){var n,o;return e?(o=(n=te(e)).boundingClientRect,new b((t.clientX-o.left)/n.x-e.clientLeft,(t.clientY-o.top)/n.y-e.clientTop)):new b(t.clientX,t.clientY)}function tk(){var t=window.devicePixelRatio;return N.linux&&N.chrome?t:N.mac?3*t:0<t?2*t:1}function tT(t){return t.deltaY&&0===t.deltaMode?-t.deltaY/tk():t.deltaY&&1===t.deltaMode?-(20*t.deltaY):t.deltaY&&2===t.deltaMode?-(60*t.deltaY):(t.deltaX||t.deltaZ,0)}function tS(t,e){let n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var tE={__proto__:null,PointerEvents:P,addListener:tc,disableClickPropagation:tb,disableScrollPropagation:t_,getPointerPosition:tC,getPropagationPath:tx,getWheelDelta:tT,getWheelPxFactor:tk,isExternalTarget:tS,off:tu,on:tc,preventDefault:ty,removeListener:tu,stop:tw,stopPropagation:tv};let tP=_.extend({run(t,e,n,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=n??.25,this._easeOutPower=1/Math.max(o??.5,.2),this._startPos=q(t),this._offset=e.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(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),F(this._el,t),this.fire("step")},_complete(){cancelAnimationFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut(t){return 1-(1-t)**this._easeOutPower}});I=_.extend({options:{crs:E,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(t,e){e=u(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(new x(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated&&this._createAnimProxy(),this._addLayers(this.options.layers)}
15,setView(t,e,n){return(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(new x(t),e,this.options.maxBounds),n??={},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom={animate:n.animate,...n.zoom},n.pan={animate:n.animate,duration:n.duration,...n.pan}),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,n.pan?.noMoveStart),this)},setZoom(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom+t,e)},zoomOut(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom-t,e)},setZoomAround(t,e,n){var o=this.getZoomScale(e),s=this.getSize().divideBy(2),t=(t instanceof b?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/o),o=this.containerPointToLatLng(s.add(t));return this.setView(o,e,{zoom:n})},_getBoundsCenterZoom(t,e){e??={},t=t.getBounds?t.getBounds():new w(t);var n=new b(e.paddingTopLeft||e.padding||[0,0]),o=new b(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,n.add(o));return(s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0?{center:t.getCenter(),zoom:s}
15:(e=o.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),s),n=this.project(t.getNorthEast(),s),{center:this.unproject(o.add(n).divideBy(2).add(e),s),zoom:s})},fitBounds(t,e){if((t=new w(t)).isValid())return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e);throw Error("Bounds are not valid.")},fitWorld(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo(t,e){return this.setView(t,this._zoom,{pan:e})},panBy(t,e){var n;return e??={},(t=new b(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new tP,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(this._mapPane.classList.add("leaflet-pan-anim"),n=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo(t,e,n){if(!1===(n??={}).animate)return this.setView(t,e,n);this._stop();let o=this.project(this.getCenter()),s=this.project(t),a=this.getSize(),r=this._zoom,l=(t=new x(t),e=void 0===e?r:this._limitZoom(e),Math.max(a.x,a.y)),h=l*this.getZoomScale(r,e),c=s.distanceTo(o)||1;function d(t){var e=t?-1:1,t=t?h:l,e=(h*h-l*l+2.0164*e*2.0164*c*c)/(2*t*2.0164*c),t=Math.sqrt(e*e+1)-e;return t<1e-9?-18:Math.log(t)}function u(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}let f=d(0),m=Date.now(),g=(d(1)-f)/1.42,v=n.duration?1e3*n.duration:1e3*g*.8;return this._moveStart(!0,n.noMoveStart),(function n(){var a,h=(Date.now()-m)/v,d=(1-(1-h)**1.5)*g;h<=1?(this._flyToFrame=requestAnimationFrame(n.bind(this)),this._move(this.unproject(o.add(s.subtract(o).multiplyBy((a=d,l*(p(f)*(u(a=f+1.42*a)/p(a))-u(f))/2.0164/c))),r),this.getScaleZoom(l/(h=d,l*(p(f)/p(f+1.42*h))),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}).call(this),this},flyToBounds(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds(t){return t=new w(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds(t,e){this._enforcingBounds=!0;var n=this.getCenter(),t=this._limitCenter(n,this._zoom,new w(t));return n.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside(t,e){e??={};var n=new b(e.paddingTopLeft||e.padding||[0,0]),o=new b(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),t=this.project(t),a=this.getPixelBounds(),n=new y([a.min.add(n),a.max.subtract(o)]),a=n.getSize();return n.contains(t)||(this._enforcingBounds=!0,o=t.subtract(n.getCenter()),n=n.extend(t).getSize().subtract(a),s.x+=o.x<0?-n.x:n.x,s.y+=o.y<0?-n.y:n.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1),this},invalidateSize(t){if(!this._loaded)return this;t={animate:!1,pan:!0,...!0===t?{animate:!0}:t};var e=this.getSize(),n=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=e.divideBy(2).round(),s=n.divideBy(2).round(),o=o.subtract(s);return o.x||o.y?(t.animate&&t.pan?this.panBy(o):(t.pan&&this._rawPanBy(o),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(this.fire.bind(this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate(t){var e,n;return t=this._locateOptions={timeout:1e4,watch:!1,...t},"geolocation"in navigator?(e=this._handleGeolocationResponse.bind(this),n=this._handleGeolocationError.bind(this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate(){return navigator.geolocation?.clearWatch?.(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:`Geolocation error: ${t}.`}))},_handleGeolocationResponse(t){if(this._container._leaflet_id){var e,n,o=t.coords.latitude,s=t.coords.longitude,o=new x(o,s),s=o.toBounds(2*t.coords.accuracy),a=this._locateOptions,r=(a.setVie
15w&&(e=this.getBoundsZoom(s),this.setView(o,a.maxZoom?Math.min(e,a.maxZoom):e)),{latlng:o,bounds:s,timestamp:t.timestamp});for(n of Object.keys(t.coords))"number"==typeof t.coords[n]&&(r[n]=t.coords[n]);this.fire("locationfound",r)}},addHandler(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t])&&e.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t 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)))t.remove();for(var e of Object.values(this._panes))e.remove();return this._layers={},this._panes={},delete this._mapPane,delete this._renderer,this},createPane(t,e){return e=H("div","leaflet-pane"+(t?` leaflet-${t.replace("Pane","")}-pane`:""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom(){return this._zoom},getBounds(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),t=this.unproject(t.getTopRight());return new w(e,t)},getMinZoom(){return this.options.minZoom??this._layersMinZoom??0},getMaxZoom(){return this.options.maxZoom??this._layersMaxZoom??1/0},getBoundsZoom(t,e,n){t=new w(t),n=new b(n??[0,0]);let o=this.getZoom()??0;var s=this.getMinZoom(),a=this.getMaxZoom(),r=t.getNorthWest(),t=t.getSouthEast(),n=this.getSize().subtract(n),t=new y(this.project(t,o),this.project(r,o)).getSize(),r=this.options.zoomSnap,l=n.x/t.x,n=n.y/t.y,t=e?Math.max(l,n):Math.min(l,n);return o=this.getScaleZoom(t,o),r&&(o=Math.round(o/(r/100))*(r/100),o=e?Math.ceil(o/r)*r:Math.floor(o/r)*r),Math.max(s,Math.min(a,o))},getSize(){return this._size&&!this._sizeChanged||(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds(t,e){return t=this._getTopLeftPoint(t,e),new y(t,t.add(this.getSize()))},getPixelOrigin(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds(t){return this.options.crs.getProjectedBounds(t??this.getZoom())},getPane(t){return"string"==typeof t?this._panes[t]:t},getPanes(){return this._panes},getContainer(){return this._container},getZoomScale(t,e){var n=this.options.crs;return e??=this._zoom,n.scale(t)/n.scale(e)},getScaleZoom(t,e){var n=this.options.crs,t=(e??=this._zoom,n.zoom(t*n.scale(e)));return isNaN(t)?1/0:t},project(t,e){return e??=this._zoom,this.options.crs.latLngToPoint(new x(t),e)},unproject(t,e){return e??=this._zoom,this.options.crs.pointToLatLng(new b(t),e)},layerPointToLatLng(t){return t=new b(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint(t){return this.project(new x(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng(t){return this.options.crs.wrapLatLng(new x(t))},wrapLatLngBounds(t){return this.options.crs.wrapLatLngBounds(new w(t))},distance(t,e){return this.options.crs.distance(new x(t),new x(e))},containerPointToLayerPoint(t){return new b(t).subtract(this._getMapPanePos())},layerPointToContainerPoint(t){return new b(t).add(this._getMapPanePos())},containerPointToLatLng(t){return t=this.containerPointToLayerPoint(new b(t)),this.layerPointToLatLng(t)},latLngToContainerPoint(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(new x(t)))},pointerEventToContainerPoint(t){return tC(t,this._container)},pointerEventToLayerPoint(t){return this.containerPointToLayerPoint(this.pointerEventToContainerPoint(t))},pointerEventToLatLng(t){return this.layerPointToLatLng(this.pointerEventToLayerPoint(t))},_initContainer(t){if(!(t=this._container=z(t)))throw Error("Map container not found.");if(t._leaflet_id)throw Error("Map container is already initialized.");tc(t,"scroll",this._onScroll,this),this._containerId=a(t),ts()},_initLayout(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation,["leaflet-container"]),e=(N.touch&&e.push("leaflet-touch"),N.retina&&e.push("leaflet-retina"),N.safari&&e.push("leaflet-safari"),this._fadeAnimated&&e.push("leaflet-fade-anim"),t.classList.add(...e),getComputedStyle(t)).position;"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),F(this._mapPane,new b(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t.markerPane.classList.add("leaflet-zoom-hide"),t.shadowPane.classList.add("leaflet-zoom-hide"))},_resetView(t,e,n){F(this._mapPane,new b(0,0));var o=!this._loaded,s=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(s,n)._move(t,e)._moveEnd(s),this.fire("viewreset"),o&&this.fire("load")},_moveStart(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move(t,e,n,o){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?n?.pinch&&this.fire("zoom",n):((s||n?.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop(){return cancelAnimationFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy(t){F(this._mapPane,this._getMapPanePos().subtract(t))},_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(t){this._targets={},(t?tu:tc)((this._targets[a(this._container)]=this)._container,"click dblclick pointerdown pointerup pointerover pointerout pointermove c
15ontextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&(t?this._resizeObserver.disconnect():(this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._onResize.bind(this))),this._resizeObserver.observe(this._container))),this.options.transform3DLimit&&(t?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 t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets(t,e){let n=[],o,s=t.target||t.srcElement,r=!1;for(var l="pointerout"===e||"pointerover"===e;s;){if((o=this._targets[a(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(o)){r=!0;break}if(o&&o.listens(e,!0)&&(l&&!tS(s,t)||(n.push(o),l))||s===this._container)break;s=s.parentNode}return n.length||r||l||!this.listens(e,!0)?n:[this]},_isClickDisabled(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click||!t.parentNode)return!0;t=t.parentNode}},_handleDOMEvent(t){var e,n=t.target??t.srcElement;!this._loaded||n._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(n)||("pointerdown"===(e=t.type)&&X(n),this._fireDOMEvent(t,e))},_pointerEvents:["click","dblclick","pointerover","pointerout","contextmenu"],_fireDOMEvent(t,e,n){"click"===e&&this._fireDOMEvent(t,"preclick",n);let o=this._findEventTargets(t,e);if(n&&(o=(n=n.filter(t=>t.listens(e,!0))).concat(o)),o.length){"contextmenu"===e&&ty(t);var s,a,n=o[0],r={originalEvent:t};for(a of("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(s=n.getLatLng&&(!n._radius||n._radius<=10),r.containerPoint=s?this.latLngToContainerPoint(n.getLatLng()):this.pointerEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=s?n.getLatLng():this.layerPointToLatLng(r.layerPoint)),o))if(a.fire(e,r,!0),r.originalEvent._stopped||!1===a.options.bubblingPointerEvents&&this._pointerEvents.includes(e))return}},_draggableMoved(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers(){for(var t of this._handlers)t.disable()},whenReady(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos(){return q(this._mapPane)},_moved(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint(t,e,n){return n=this._getNewPixelOrigin(n,e),this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds(t,e,n){return n=this._getNewPixelOrigin(n,e),new y([this.project(t.getSouthWest
15(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter(t,e,n){var o,s;return!n||(o=this.project(t,e),s=this.getSize().divideBy(2),s=new y(o.subtract(s),o.add(s)),1>=Math.abs((s=this._getBoundsOffset(s,n,e)).x)&&1>=Math.abs(s.y))?t:this.unproject(o.add(s),e)},_limitOffset(t,e){var n;return e?(n=this.getPixelBounds(),n=new y(n.min.add(t),n.max.add(t)),t.add(this._getBoundsOffset(n,e))):t},_getBoundsOffset(t,e,n){return n=(e=new y(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n))).min.subtract(t.min),e=e.max.subtract(t.max),t=this._rebound(n.x,-e.x),n=this._rebound(n.y,-e.y),new b(t,n)},_rebound:(t,e)=>0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e)),_limitZoom(t){var e=this.getMinZoom(),n=this.getMaxZoom(),o=this.options.zoomSnap;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(n,t))},_onPanTransitionStep(){this.fire("move")},_onPanTransitionEnd(){this._mapPane.classList.remove("leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==e?.animate&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy(){this._proxy=H("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),tc(this._proxy,"transitionend",this._catchTransitionEnd,this)},_animateProxyZoom(t){var e=this._proxy.style.transform;B(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style.transform&&this._animatingZoom&&this._onZoomTransitionEnd()},_animMoveEnd(){var t=this.getCenter(),e=this.getZoom();B(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_destroyAnimProxy(){this._proxy&&(tu(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(t){this._animatingZoom&&t.propertyName.includes("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom(t,e,n){if(!this._animatingZoom){if(n??={},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/o);if(!0!==n.animate&&!this.getSize().contains(o))return!1;requestAnimationFrame(()=>{this._moveStart(!0,n.noMoveStart??!1)._animateZoom(t,e,!0)})}return!0},_animateZoom(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,this._mapPane.classList.add("leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),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 tL=v.extend({options:{position:"topright"},initialize(t){u(this,t)},getPosition(){return this.options.position},setPosition(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer(){return this._container},addTo(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),t=t._controlCorners[n];return e.classList.add("leaflet-control"),n.includes("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),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(t){this._map&&t&&(0!==t.screenX||0!==t.screenY)&&this._map.getContainer().focus()}});I.include({addControl(t){return t.addTo(this),this},removeControl(t){return t.remove(),this}
15,_initControlPos(){let t=this._controlCorners={},e="leaflet-",n=this._controlContainer=H("div",e+"control-container",this._container);function o(o,s){t[o+s]=H("div",e+o+" "+e+s,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos(){for(var t of Object.values(this._controlCorners))t.remove();this._controlContainer.remove(),delete this._controlCorners,delete this._controlContainer}}),D=tL.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:(t,e,n,o)=>n<o?-1:o<n?1:0},initialize(t,e,n){for(var[o,s]of(u(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,Object.entries(t??{})))this._addLayer(s,o);for(var[a,r]of Object.entries(e??{}))this._addLayer(r,a,!0)},onAdd(t){for(var e of(this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this),this._layers))e.layer.on("add remove",this._onLayerChange,this);return this.options.collapsed||t.on("resize",this._expandIfNotCollapsed,this),this._container},addTo(t){return tL.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove(){for(var t of(this._map.off("zoomend",this._checkDisabledLayers,this),this._layers))t.layer.off("add remove",this._onLayerChange,this);this._map.off("resize",this._expandIfNotCollapsed,this)},addBaseLayer(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(a(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand(){this._container.classList.add("leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(this._section.classList.add("leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):this._section.classList.remove("leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse(t){return t&&("pointerleave"===t.type||"pointerout"===t.type)&&"touch"===t.pointerType||this._container.classList.remove("leaflet-control-layers-expanded"),this},_initLayout(){var t="leaflet-control-layers",e=this._container=H("div",t),n=this.options.collapsed,o=(tb(e),t_(e),this._section=H("fieldset",t+"-list")),s=(n&&(this._map.on("click",this.collapse,this),tc(e,{pointerenter:this._expandSafely,pointerleave:this.collapse},this)),this._layersLink=H("a",t+"-toggle",e));s.href="#",s.title="Layers",s.setAttribute("role","button"),tc(s,{keydown(t){"Enter"===t.code&&this._expandSafely()},click(t){ty(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=H("div",t+"-base",o),this._separator=H("div",t+"-separator",o),this._overlaysList=H("div",t+"-overlays",o),e.appendChild(o)},_getLayer(t){for(var e of this._layers)if(e&&a(e.layer)===t)return e},_addLayer(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort((t,e)=>this.options.sortFunction(t.layer,e.layer,t.name,e.name)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update(){if(this._container){this._baseLayersList.replaceChildren(),this._overlaysList.replaceChildren(),this._layerControlInputs=[];let e,n,o=0;for(var t of this._layers)this._addItem(t),n||=t.overlay,e||=!t.overlay,o+=t.overlay?0:1;this.options.hideSingleBase&&(e=e&&1<o,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=n&&e?"":"none"}return this},_onLayerChange(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;t&&this._map.fire(t,e)},_createRadioElement:(t,e)=>(t=`<input type="radio" class="leaflet-control-layers-selector" name="${t}"${e?' checked="checked"':""}/>`,(e=document.createElement("div")).innerHTML=t,e.firstChild),_addItem(t){let e;var n=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers_"+a(this),o),this._layerControlInputs.push(e),e.layerId=a(t.layer),tc(e,"click",this._onInputClick,this);var o=document.createElement("span"),s=(o.innerHTML=" "+t.name,document.createElement("span"));return n.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick(t){if(!this._preventClick){var e,n,o,s=this._layerControlInputs,a=[],r=[];for(e of(this._handlingClick=!0,s)){var l=this._getLayer(e.layerId).layer;(e.checked?a:(e.checked,r)).push(l)}for(n of r)this._map.hasLayer(n)&&this._map.removeLayer(n);for(o of a)this._map.hasLayer(o)||this._map.addLayer(o);this._handlingClick=!1,this._refocusOnMap(t)}},_checkDisabledLayers(){var t,e=this._layerControlInputs,n=this._map.getZoom();for(t of e){var o=this._getLayer(t.layerId).layer;t.disabled=void 0!==o.options.minZoom&&n<o.options.minZoom||void 0!==o.options.maxZoom&&n>o.options.maxZoom}},_expandIfNotCollapsed(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely(){let t=this._section;this._preventClick=!0,tc(t,"click",ty),this.expand(),setTimeout(()=>{tu(t,"click",ty),this._preventClick=!1})}});let tI=tL.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd(t){var e="leaflet-control-zoom",n=H("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable(){return this._disabled=!0,this._updateDisabled(),this},enable(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton(t,e,n,o,s){return(n=H("a",n,o)).innerHTML=t,n.href="#",n.title=e,n.setAttribute("role","button"),n.setAttribute("aria-label",e),tb(n),tc(n,"click",tw),tc(n,"click",s,this),tc(n,"click",this._refocusOnMap,this),n},_updateDisabled(){var t=this._map,e="leaflet-disabled";this._zoomInButton.classList.remove(e),this._zoomOutButton.classList.remove(e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(this._zoomOutButton.classList.add(e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(this._zoomInButton.classList.add(e),this._zoomInButton.setAttribute("aria-disabled","true"))}});I.mergeOptions({zoomControl:!0}),I.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tI,this.addControl(this.zoomControl))}),A=tL.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd(t){var e="leaflet-control-scale",n=H("div",e),o=this.options;return this._addScales(o,e+"-line",n),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales(t,e,n){t.metric&&(this._mScale=H("div",e,n)),t.imperial&&(this._iScale=H("div",e,n))},_update(){var t=this._map,e=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial(t){var e,n,t=3.2808399*t;5280<t?(n=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,n+" mi",n/e)):(n=this._getRoundNum(t),this._updateScale(this._iScale,n+" ft",n/t))},_updateScale(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum(t){var e=10**((""+Math.floor(t)).length-1),t=t/e;return e*(10<=t?10:5<=t?5:3<=t?3:2<=t?2:1)}});let tD=tL.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(t){u(this,t),this._attributions={}}
15,onAdd(t){for(var e of((t.attributionControl=this)._container=H("div","leaflet-control-attribution"),tb(this._container),Object.values(t._layers)))e.getAttribution&&this.addAttribution(e.getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove(t){t.off("layeradd",this._addAttribution,this)},_addAttribution(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",()=>this.removeAttribution(t.layer.getAttribution())))},setPrefix(t){return this.options.prefix=t,this._update(),this},addAttribution(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update(){var t,e;this._map&&(t=Object.keys(this._attributions).filter(t=>this._attributions[t]),e=[],this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> '))}});I.mergeOptions({attributionControl:!0}),I.addInitHook(function(){this.options.attributionControl&&(new tD).addTo(this)}),tL.Layers=D,tL.Zoom=tI,tL.Scale=A,tL.Attribution=tD,(M=v.extend({initialize(t){this._map=t},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(t,e){return t.addHandler(e,this),this};let tA=_.extend({options:{clickTolerance:3},initialize(t,e,n,o){u(this,o),this._element=t,this._dragStartTarget=e??t,this._preventOutline=n},enable(){this._enabled||(tc(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!0)},disable(){this._enabled&&(tA._dragging===this&&this.finishDrag(!0),tu(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown(t){var e;this._enabled&&(this._moved=!1,this._element.classList.contains("leaflet-zoom-anim")||(1!==th().length?tA._dragging===this&&this.finishDrag():tA._dragging||t.shiftKey||0!==t.button&&"touch"!==t.pointerType||((tA._dragging=this)._preventOutline&&X(this._element),G(),Y(),this._moving)||(this.fire("down"),e=tt(this._element),this._startPoint=new b(t.clientX,t.clientY),this._startPos=q(this._element),this._parentScale=te(e),tc(document,"pointermove",this._onMove,this),tc(document,"pointerup pointercancel",this._onUp,this))))},_onMove(t){var e;this._enabled&&(1<th().length?this._moved=!0:!(e=new b(t.clientX,t.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,t.cancelable&&ty(t),this._moved||(this.fire("dragstart"),this._moved=!0,document.body.classList.add("leaflet-dragging"),this._lastTarget=t.target??t.srcElement,this._lastTarget.classList.add("leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),F(this._element,this._newPos),this.fire("drag",t)},_onUp(){this._enabled&&this.finishDrag()},finishDrag(t){document.body.classList.remove("leaflet-dragging"),this._lastTarget&&(this._lastTarget.classList.remove("leaflet-drag-target"),this._lastTarget=null),tu(document,"pointermove",this._onMove,this),tu(document,"pointerup pointercancel",this._onUp,this),Q(),K();var e=this._moved&&this._moving;this._moving=!1,tA._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function tM(t,e,n){let o,s,a,r,l,h,c,d,u;var p=[1,4,2,8];for(s=0,c=t.length;s<c;s++)t[s]._code=tB(t[s],e);for(r=0;r<4;r++){for(d=p[r],o=[],s=0,a=(c=t.length)-1;s<c;a=s++)l=t[s],h=t[a],l._code&d?h._code&d||((u=tW(h,l,d,e,n))._code=tB(u,e),o.push(u)):(h._code&d&&((u=tW(h,l,d,e,n))._code=tB(u,e),o.push(u)),o.push(l));t=o}return t}function tO(t,e){let n,o,s,a,r,l,h,c,d;if(!t||0===t.length)throw Error("latlngs not passed");tF(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);let u=new x([0,0]);
15var p=new w(t),f=(p.getNorthWest().distanceTo(p.getSouthWest())*p.getNorthEast().distanceTo(p.getNorthWest())<1700&&(u=tN(t)),t.length),m=[];for(n=0;n<f;n++){var g=new x(t[n]);m.push(e.project(new x([g.lat-u.lat,g.lng-u.lng])))}for(l=h=c=0,n=0,o=f-1;n<f;o=n++)s=m[n],a=m[o],r=s.y*a.x-a.y*s.x,h+=(s.x+a.x)*r,c+=(s.y+a.y)*r,l+=3*r;return d=0===l?m[0]:[h/l,c/l],p=e.unproject(new b(d)),new x([p.lat+u.lat,p.lng+u.lng])}function tN(t){let e=0,n=0,o=0;for(var s of t)e+=(s=new x(s)).lat,n+=s.lng,o++;return new x([e/o,n/o])}function tz(t,e){if(e&&t.length){e*=e;{var n=t=((t,e)=>{let n=[t[0]],o=0;for(let s=1;s<t.length;s++)((t,e)=>{var n=e.x-t.x;return n*n+(e=e.y-t.y)*e})(t[s],t[o])>e&&(n.push(t[s]),o=s);return o<t.length-1&&n.push(t[t.length-1]),n})(t,e),o=n.length,s=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(o);s[0]=s[o-1]=1,function t(e,n,o,s,a){let r=0,l,h,c;for(h=s+1;h<=a-1;h++)(c=tR(e[h],e[s],e[a],!0))>r&&(l=h,r=c);r>o&&(n[l]=1,t(e,n,o,s,l),t(e,n,o,l,a))}(n,s,e,0,o-1);let a,r=[];for(a=0;a<o;a++)s[a]&&r.push(n[a]);return r}}return t.slice()}function tH(t,e,n){return Math.sqrt(tR(t,e,n,!0))}function tj(t,e,n,s,a){let r=s?o:tB(t,n),l=tB(e,n),h,c,d;for(o=l;;){if(!(r|l))return[t,e];if(r&l)return!1;d=tB(c=tW(t,e,h=r||l,n,a),n),h===r?(t=c,r=d):(e=c,l=d)}}function tW(t,e,n,o,s){let a,r;var l=e.x-t.x,e=e.y-t.y,h=o.min,o=o.max;return 8&n?(a=t.x+l*(o.y-t.y)/e,r=o.y):4&n?(a=t.x+l*(h.y-t.y)/e,r=h.y):2&n?(a=o.x,r=t.y+e*(o.x-t.x)/l):1&n&&(a=h.x,r=t.y+e*(h.x-t.x)/l),new b(a,r,s
15)}function tB(t,e){let n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function tR(t,e,n,o){let s=e.x,a=e.y,r=n.x-s,l=n.y-a,h;return 0<(e=r*r+l*l)&&(1<(h=((t.x-s)*r+(t.y-a)*l)/e)?(s=n.x,a=n.y):0<h&&(s+=r*h,a+=l*h)),r=t.x-s,l=t.y-a,o?r*r+l*l:new b(s,a)}function tF(t){return!Array.isArray(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function t$(t,e){let n,o,s,a,r,l,h,c;if(!t||0===t.length)throw Error("latlngs not passed");tF(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);let d=new x([0,0]);var u=new w(t),p=(u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(d=tN(t)),t.length),f=[];for(n=0;n<p;n++){var m=new x(t[n]);f.push(e.project(new x([m.lat-d.lat,m.lng-d.lng])))}for(n=0,o=0;n<p-1;n++)o+=f[n].distanceTo(f[n+1])/2;if(0===o)c=f[0];else for(n=0,a=0;n<p-1;n++)if(r=f[n],l=f[n+1],(a+=s=r.distanceTo(l))>o){h=(a-o)/s,c=[l.x-h*(l.x-r.x),l.y-h*(l.y-r.y)];break}return u=e.unproject(new b(c)),new x([u.lat+d.lat,u.lng+d.lng])}P={__proto__:null,centroid:tN,clipPolygon:tM,polygonCenter:tO},D={__proto__:null,_getBitCode:tB,_getEdgeIntersection:tW,_sqClosestPointOnSegment:tR,clipSegment:tj,closestPointOnSegment:function(t,e,n){return tR(t,e,n)},isFlat:tF,pointToSegmentDistance:tH,polylineCenter:t$,simplify:tz},A={project:t=>new b(t.lng,t.lat),unproject:t=>new x(t.y,t.x),bounds:new y([-180,-90],[180,90])};let tq={R:6378137,R_MINOR:6356752.314245179,bounds:new y([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project(t){var e=Math.PI/180,n=this.R,o=this.R_MINOR/n,o=Math.sqrt(1-o*o),s=t.lat*e,a=o*Math.sin(s),a=Math.tan(Math.PI/4-s/2)/((1-a)/(1+a))**(o/2),s=-n*Math.log(Math.max(a,1e-10));return new b(t.lng*e*n,s)},unproject(t){var e=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),a=Math.exp(-t.y/n);let r=Math.PI/2-2*Math.atan(a);for(let t=0,e=.1,n;t<15&&1e-7<Math.abs(e);t++)n=s*Math.sin(r),e=Math.PI/2-2*Math.atan(a*((1-n)/(1+n))**(s/2))-r,r+=e;return new x(r*e,t.x*e/n)}},tZ={__proto__:null,LonLat:A,Mercator:tq,SphericalMercator:T};class tU extends k{static code="EPSG:3395";static projection=tq;static transformation=(tK=.5/(Math.PI*tq.R),new S(tK,.5,-tK,.5))}class tV extends k{static code="EPSG:4326";static projection=A;static transformation=new S(1/180,1,-1/180,.5)}class tY extends C{static projection=A;static transformation=new S(1,0,-1,0);static scale(t){return 2**t}static zoom(t){return Math.log(t)/Math.LN2}static distance(t,e){var n=e.lng-t.lng,e=e.lat-t.lat;return Math.sqrt(n*n+e*e)}static infinite=!0}C.Earth=k,C.EPSG3395=tU,C.EPSG3857=E,C.EPSG900913=class extends E{static code="EPSG:900913"},C.EPSG4326=tV,C.Simple=tY;var tK=_.extend({options:{pane:"overlayPane",attribution:null,bubblingPointerEvents:!0},addTo(t){return t.addLayer(this),this},remove(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom(t){return t&&t.removeLayer(this),this},getPane(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget(t){return this._map._targets[a(t)]=this},removeInteractiveTarget(t){return delete this._map._targets[a(t)],this},getAttribution(){return this.options.attribution},_layerAdd(t){let e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){let t=this.getEvents();e.on(t,this),this.once("remove",()=>e.off(t,this))}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});I.include({addLayer(t){var e;if(t._layerAdd)return e=a(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw Error("The provided object is not a Layer.")},removeLayer(t){var e=a(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer(t){return a(t) in this._layers},eachLayer(t,e){for(var n of Object.values(this._layers))t.call(e,n);return this},_addLayers(t){for(var e of t=t?Array.isArray(t)?t:[t]:[])this.addLayer(e)}
15,_addZoomLimit(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit(t){t=a(t),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels(){let t=1/0,e=-1/0;var n,o=this._getZoomSpan();for(n of Object.values(this._zoomBoundLayers)){var s=n.options;t=Math.min(t,s.minZoom??1/0),e=Math.max(e,s.maxZoom??-1/0)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,o!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});let tG=tK.extend({initialize(t,e){for(var n of(u(this,e),this._layers={},t??[]))this.addLayer(n)},addLayer(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers(){return this.eachLayer(this.removeLayer,this)},invoke(t,...e){for(var n of Object.values(this._layers))n[t]&&n[t].apply(n,e);return this},onAdd(t){this.eachLayer(t.addLayer,t)},onRemove(t){this.eachLayer(t.removeLayer,t)},eachLayer(t,e){for(var n of Object.values(this._layers))t.call(e,n);return this},getLayer(t){return this._layers[t]},getLayers(){var t=[];return this.eachLayer(t.push,t),t},setZIndex(t){return this.invoke("setZIndex",t)},getLayerId:t=>a(t)}),tQ=tG.extend({addLayer(t){return this.hasLayer(t)?this:(t.addEventParent(this),tG.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),tG.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle(t){return this.invoke("setStyle",t)},bringToFront(){return this.invoke("bringToFront")},bringToBack(){return this.invoke("bringToBack")},getBounds(){var t,e=new w;for(t of Object.values(this._layers))e.extend(t.getBounds?t.getBounds():t.getLatLng());return e}}),tX=v.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize(t){u(this,t)},createIcon(t){return this._createIcon("icon",t)},createShadow(t){return this._createIcon("shadow",t)},_createIcon(t,e){var n=this._getIconUrl(t);if(n)return n=this._createImg(n,e&&"IMG"===e.tagName?e:null),this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n;if("icon"===t)throw Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles(t,e){var n=this.options;let o=n[e+"Size"];"number"==typeof o&&(o=[o,o]);var s=b.validate(o)&&new b(o),a="shadow"===e&&n.shadowAnchor||n.iconAnchor||s&&s.divideBy(2,!0),a=b.validate(a)&&new b(a);t.className=`leaflet-marker-${e} `+(n.className||""),a&&(t.style.marginLeft=-a.x+"px",t.style.marginTop=-a.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:(t,e)=>((e??=document.createElement("img")).src=t,e),_getIconUrl(t){return N.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),tJ=tX.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(t){return tJ.imagePath||(tJ.imagePath=this._detectIconPath()),(t=tX.prototype._getIconUrl.call(this,t))?(this.options.imagePath||tJ.imagePath)+t:null},_stripUrl(t){function e(t,e,n){return(e=e.exec(t))&&e[n]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath(){var t=H("div","leaflet-default-icon-path",document.body),e=this._stripUrl(getComputedStyle(t).backgroundImage);return document.body.removeChild(t),e||((t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):"")}}),t0=M.extend({initialize(t){this._marker=t},addHooks(){var t=this._marker._icon;this._draggable||(this._draggable=new tA(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t.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(t){var e=this._marker,n=e._map,o=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,a=q(e._icon),r=n.getPixelBounds(),l=n.getPixelOrigin(),l=new y(r.min._subtract(l).add(s),r.max._subtract(l).subtract(s));l.contains(a)||(s=new b((Math.max(l.max.x,a.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,a.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,a.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,a.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(o),n.panBy(s,{animate:!1}),this._draggable._newPos._add(s),this._draggable._startPos._add(s),F(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))},_onDragStart(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag(t){this._marker.options.autoPan&&(cancelAnimationFrame(this._panRequest),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))},_onDrag(t){var e=this._marker,n=e._shadow,o=q(e._icon),s=e._map.layerPointToLatLng(o);n&&F(n,o),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd(t){cancelAnimationFrame(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),t1=tK.extend({options:{icon:new tJ,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(t,e){u(this,e),this._latlng=new x(t)},onAdd(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents(){return{zoom:this.update,viewreset:this.update}},getLatLng(){return this._latlng},setLatLng(t){var e=this._latlng;return this._latlng=new x(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset(t){return this.options.zIndexOffset=t,this.update()},getIcon(){return this.options.icon},setIcon(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement(){return this._icon},update(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon);let o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(n.title=t.title),"IMG"===n.tagName)&&(n.alt=t.alt??""),n.classList.add(e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&tc(n,"focus",this._panOnFocus,this);let s=!1;(n=t.icon.createShadow(this._shadow))!==this._shadow&&(this._removeShadow(),s=!0),n&&(n.classList.add(e),n.alt=""),this._shadow=n,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),n&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon(){this.options.riseOnHover&&this.off({pointerover:this._bringToFront,pointerout:this._resetZIndex}
15),this.options.autoPanOnFocus&&tu(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(t){this._icon&&F(this._icon,t),this._shadow&&F(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction(){if(this.options.interactive&&(this._icon.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._icon),t0)){let t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new t0(this),t&&this.dragging.enable()}},setOpacity(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity(){var t=this.options.opacity;this._icon&&(this._icon.style.opacity=t),this._shadow&&(this._shadow.style.opacity=t)},_bringToFront(){this._updateZIndex(this.options.riseOffset)},_resetZIndex(){this._updateZIndex(0)},_panOnFocus(){var t,e,n=this._map;n&&(t=(e=this.options.icon.options).iconSize?new b(e.iconSize):new b(0,0),e=e.iconAnchor?new b(e.iconAnchor):new b(0,0),n.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor(){return this.options.icon.options.popupAnchor},_getTooltipAnchor(){return this.options.icon.options.tooltipAnchor}}),t2=tK.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(t){this._renderer=t.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(t){return u(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke)&&t&&Object.hasOwn(t,"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 A=t2.extend({options:{fill:!0,radius:10},initialize(t,e){u(this,e),this._latlng=new x(t),this._radius=this.options.radius},setLatLng(t){var e=this._latlng;return this._latlng=new x(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng(){return this._latlng},setRadius(t){return this.options.radius=this._radius=t,this.redraw()},getRadius(){return this._radius},setStyle(t){var e=t?.radius??this._radius;return t2.prototype.setStyle.call(this,t),this.setRadius(e),this},_project(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds(){var t=this._radius,e=this._radiusY??t,n=this._clickTolerance(),t=[t+n,e+n];this._pxBounds=new y(this._point.subtract(t),this._point.add(t))},_update(){this._map&&this._updatePath()},_updatePath(){this._renderer._updateCircle(this)},_empty(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),t3=A.extend({initialize(t,e){if(u(this,e),this._latlng=new x(t),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius(t){return this._mRadius=t,this.redraw()},getRadius(){return this._mRadius},getBounds(){var t=[this._radius,this._radiusY??this._radius];return new w(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:t2.prototype.setStyle,_project(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===k.distance){var s=Math.PI/180,a=this._mRadius/k.R/s,r=n.project([e+a,t]),l=n.project([e-a,t]),l=r.add(l).divideBy(2),h=n.unproject(l).lat;let o=Math.acos((Math.cos(a*s)-Math.sin(e*s)*Math.sin(h*s))/(Math.cos(e*s)*Math.cos(h*s)))/s;(isNaN(o)||0===o)&&(o=a/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(o)?0:l.x-n.project([h,t-o]).x,this._radiusY=l.y-r.y}else s=o.unproject(o.project(this._latlng).subtract([this._mRadius,0])),this._point=n.latLngToLayerPoint(this._latlng),this._radius=Math.abs(this._point.x-n.latLngToLayerPoint(s).x);this._updateBounds()}});let t5=t2.extend({options:{smoothFactor:1,noClip:!1},initialize(t,e){u(this,e),this._setLatLngs(t)},getLatLngs(){return this._latlngs},setLatLngs(t){return this._setLatLngs(t),this.redraw()},isEmpty(){return!this._latlngs.length},closestLayerPoint(t){let e=1/0,n=null,o,s;var a,r=tR;for(a of this._parts)for(let h=1,c=a.length;h<c;h++){var l=r(t,o=a[h-1],s=a[h],!0);l<e&&(e=l,n=r(t,o,s))}return n&&(n.distance=Math.sqrt(e)),n},getCenter(){if(this._map)return t$(this._defaultShape(),this._map.options.crs);
15throw Error("Must add layer to map before using getCenter()")},getBounds(){return this._bounds},addLatLng(t,e){return e??=this._defaultShape(),t=new x(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs(t){this._bounds=new w,this._latlngs=this._convertLatLngs(t)},_defaultShape(){return tF(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs(t){var e=[],n=tF(t);for(let o=0,s=t.length;o<s;o++)n?(e[o]=new x(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project(){var t=new y;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds(){var t=this._clickTolerance(),t=new b(t,t);this._rawPxBounds&&(this._pxBounds=new y([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs(t,e,n){var o;t[0]instanceof x?((o=t.map(t=>this._map.latLngToLayerPoint(t))).forEach(t=>n.extend(t)),e.push(o)):t.forEach(t=>this._projectLatlngs(t,e,n))},_clipPoints(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else{let n,o,s,a,r,l,h;var e=this._parts;for(n=0,s=0,a=this._rings.length;n<a;n++)for(h=this._rings[n],o=0,r=h.length;o<r-1;o++)(l=tj(h[o],h[o+1],t,o,!0))&&(e[s]??=[],e[s].push(l[0]),l[1]===h[o+1]&&o!==r-2||(e[s].push(l[1]),s++))}}},_simplifyPoints(){var t=this._parts,e=this.options.smoothFactor;for(let n=0,o=t.length;n<o;n++)t[n]=tz(t[n],e)},_update(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath(){this._renderer._updatePoly(this)},_containsPoint(t,e){let n,o,s,a,r,l;var h=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t)){for(n=0,a=this._parts.length;n<a;n++)for(l=this._parts[n],o=0,s=(r=l.length)-1;o<r;s=o++)if((e||0!==o)&&tH(t,l[s],l[o])<=h)return!0}return!1}}),t4=t5.extend({options:{fill:!0},isEmpty(){return!this._latlngs.length||!this._latlngs[0].length},getCenter(){if(this._map)return tO(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},_convertLatLngs(t){var t=t5.prototype._convertLatLngs.call(this,t),e=t.length;return 2<=e&&t[0]instanceof x&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs(t){t5.prototype._setLatLngs.call(this,t),tF(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape(){return(tF(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints(){let t=this._renderer._bounds;var e=this.options.weight,e=new b(e,e);if(t=new y(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else for(var n of this._rings)(n=tM(n,t,!0)).length&&this._parts.push(n)}},_updatePath(){this._renderer._updatePoly(this,!0)},_containsPoint(t){let e=!1,n,o,s,a,r,l,h,c;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(a=0,h=this._parts.length;a<h;a++)for(n=this._parts[a],r=0,l=(c=n.length)-1;r<c;l=r++)o=n[r],s=n[l],o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(e=!e);return e||t5.prototype._containsPoint.call(this,t,!0)}});var t6=tQ.extend({initialize(t,e){u(this,e),this._layers={},t&&this.addData(t)},addData(t){var e=Array.isArray(t)?t:t.features;if(e){for(var n of e)(n.geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o,e=this.options;return(!e.filter||e.filter(t))&&(o=t9(t,e))?(o.feature=eo(t),o.defaultOptions=o.options,this.resetStyle(o),e.onEachFeature&&e.onEachFeature(t,o),this.addLayer(o)):this},resetStyle(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=Object.create(t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle(t){return this.eachLayer(e=>this._setLayerStyle(e,t))},_setLayerStyle(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function t9(t,e){let n,o;var s="Feature"===t.type?t.geometry:t,a=s?.coordinates,r=[],l=e?.pointToLayer,h=e?.coordsToLatLng??t7;if(!a&&!s)return null;switch(s.type){case"Point":return t8(l,t,n=h(a),e);case"MultiPoint":for(var c of a)n=h(c),r.push(t8(l,t,n,e));return new tQ(r);case"LineString":case"MultiLineString":return o=et(a,"LineString"===s.type?0:1,h),new t5(o,e);case"Polygon":case"MultiPolygon":return o=et(a,"Polygon"===s.type?1:2,h),new t4(o,e);case"GeometryCollection":for(var d of s.geometries)(d=t9({geometry:d,type:"Feature",properties:t.properties},e))&&r.push(d);return new tQ(r);case"FeatureCollection":for(var u of s.features)(u=t9(u,e))&&r.push(u);return new tQ(r);default:throw Error("Invalid GeoJSON object.")}}function t8(t,e,n,o){return t?t(e,n):new t1(n,o?.markersInheritOptions&&o)}function t7(t){return new x(t[1],t[0],t[2])}function et(t,e,n){return t.map(t=>e?et(t,e-1,n):(n||t7)(t))}function ee(t,e){return void 0!==(t=new x(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function ei(t,e,n,o){return t=t.map(t=>e?ei(t,tF(t)?0:e-1,n,o):ee(t,o)),!e&&n&&0<t.length&&t.push(t[0].slice()),t}function en(t,e){return t.feature?{...t.feature,geometry:e}:eo(e)}function eo(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var es={toGeoJSON(t){return en(this,{type:"Point",coordinates:ee(this.getLatLng(),t)})}};t1.include(es),t3.include(es),A.include(es),t5.include({toGeoJSON(t){var e=!tF(this._latlngs);return en(this,{type:`${e?"Multi":""}LineString`,coordinates:ei(this._latlngs,e?1:0,!1,t)})}}),t4.include({toGeoJSON(t){var e=!tF(this._latlngs),n=e&&!tF(this._latlngs[0]);let o=ei(this._latlngs,n?2:e?1:0,!0,t);return en(this,{type:`${n?"Multi":""}Polygon`,coordinates:o=e?o:[o]})}}),tG.include({toMultiPoint(t){let e=[];return this.eachLayer(n=>{e.push(n.toGeoJSON(t).geometry.coordinates)}),en(this,{type:"MultiPoint",coordinates:e})},toGeoJSON(t){var e=this.feature?.geometry?.type;if("MultiPoint"===e)return this.toMultiPoint(t);let n="GeometryCollection"===e,o=[];return this.eachLayer(e=>{e.toGeoJSON&&(e=e.toGeoJSON(t),n?o.push(e.geometry):"FeatureCollection"===(e=eo(e)).type?o.push.apply(o,e.features):o.push(e))}),n?en(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});let ea=tK.extend({options:{padding:.1,continuous:!1},initialize(t){u(this,t)},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 t={viewreset:this._reset,zoom:this._onZoom,moveend:this._onMoveEnd,zoomend:this._onZoomEnd,resize:this._resizeContainer};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),this.options.continuous&&(t.move=this._onMoveEnd),t},_onAnimZoom(t){this._updateTransform(t.center,t.zoom)},_onZoom(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform(t,e){var n=this._map.getZoomScale(e,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),o=o.multiplyBy(-n).add(s).subtract(this._map._getNewPixelOrigin(t,e));B(this._container,o,n)},_onMoveEnd(t){var e=this.options.padding,n=this._map.getSize(),o=this._map.containerPointToLayerPoint(n.multiplyBy(-e)).round();this._bounds=new y(o,o.add(n.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this._updateTransform(this._center,this._zoom),this._onSettled(t)},_reset(){this._onSettled(),this._updateTransform(this._center,this._zoom),this._onViewReset()},_initContainer(){this._container=H("div")},_destroyContainer(){tu(this._container),this._container.remove(),delete this._container},_resizeContainer(){var t=this.options.padding,t=this._map.getSize().multiplyBy(1+2*t).round();return this._container.style.width=t.x+"px",this._container.style.height=t.y+"px",t},_onZoomEnd:h,_onViewReset:h,_onSettled:h});var es=tK.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",decoding:"auto"},initialize(t,e,n){this._url=t,this._bounds=new w(e),u(this,n)},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(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront(){return this._map&&j(this._image),this},bringToBack(){return this._map&&W(this._image),this},setUrl(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds(t){return this._bounds=new w(t),this._map&&this._reset(),this},getEvents(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds(){return this._bounds},getElement(){return this._image},_initImage(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:H("img");e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...d(this.options.className)),e.onselectstart=h,e.onpointermove=h,e.onload=this.fire.bind(this,"load"),e.onerror=this._overlayOnError.bind(this),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e.decoding=this.options.decoding,this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom(t){var e=this._map.getZoomScale(t.zoom),t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;B(this._image,t,e)},_reset(){var t=this._image,e=new y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();F(t,e.min),t.style.width=n.x+"px",t.style.height=n.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 t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter(){return this._bounds.getCenter()}}),er=es.extend({options:{autoplay:!0,controls:!1,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
15ine:!0},_initImage(){var t,e="VIDEO"===this._url.tagName;let n=this._image=e?this._url:H("video");if(n.classList.add("leaflet-image-layer"),this._zoomAnimated&&n.classList.add("leaflet-zoom-animated"),this.options.className&&n.classList.add(...d(this.options.className)),tc(n,"pointerdown",t=>{n.controls&&tv(t)}),n.onloadeddata=this.fire.bind(this,"load"),e)t=(e=n.getElementsByTagName("source")).map(t=>t.src),this._url=0<e.length?t:[n.src];else for(var o of(Array.isArray(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.hasOwn(n.style,"objectFit")&&(n.style.objectFit="fill"),n.autoplay=!!this.options.autoplay,n.controls=!!this.options.controls,n.loop=!!this.options.loop,n.muted=!!this.options.muted,n.playsInline=!!this.options.playsInline,this._url)){var s=H("source");s.src=o,n.appendChild(s)}}}),el=es.extend({_initImage(){var t=this._image=this._url;t.classList.add("leaflet-image-layer"),this._zoomAnimated&&t.classList.add("leaflet-zoom-animated"),this.options.className&&t.classList.add(...d(this.options.className)),t.onselectstart=h,t.onpointermove=h}});let eh=tK.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize(t,e){t instanceof x||Array.isArray(t)?(this._latlng=new x(t),u(this,e)):(u(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close(){return this._map&&this._map.removeLayer(this),this},toggle(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&(this._container.style.opacity=0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&(this._container.style.opacity=1),this.bringToFront(),this.options.interactive&&(this._container.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove(t){t._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(t){return this._latlng=new x(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent(){return this._content},setContent(t){return this._content=t,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 t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen(){return!!this._map&&this._map.hasLayer(this)},bringToFront(){return this._map&&j(this._container),this},bringToBack(){return this._map&&W(this._container),this},_prepareOpen(t){let e=this._source;if(!e._map)return!1;if(e instanceof tQ){for(var n of(e=null,Object.values(this._source._layers)))if(n._map){e=n;break}if(!e)return!1;this._source=e}if(!t){if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source??this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._getAnchor();let n=new b(this.options.offset);this._zoomAnimated?F(this._container,t.add(e)):n=n.add(t).add(e),t=this._containerBottom=-n.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+n.x,this._container.style.bottom=t+"px",this._container.style.left=e+"px"}},_getAnchor:()=>[0,0]}),ec=(I.include({_initOverlay(t,e,n,o){let s=e;return s instanceof t||(s=new t(o).setContent(e)),n&&s.setLatLng(n),s}}),tK.include({_initOverlay(t,e,n,o){let s=n;return s instanceof t?(u(s,o),s._source=this):(s=e&&!o?e:new t(o,this)).setContent(n),s}}),eh.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(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,eh.prototype.openOn.call(this,t)},onAdd(t){eh.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof t2||this._source.on("preclick",tv))},onRemove(t){eh.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof t2||this._source.off("preclick",tv))},getEvents(){var t=eh.prototype.getEvents.call(this);return(this.options.closeOnClick??this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
15(t.moveend=this._adjustPan),t},_initLayout(){var t="leaflet-popup",e=this._container=H("div",t+` ${this.options.className||""} leaflet-zoom-animated`),n=this._wrapper=H("div",t+"-content-wrapper",e);this._contentNode=H("div",t+"-content",n),tb(e),t_(this._contentNode),tc(e,"contextmenu",tv),this._tipContainer=H("div",t+"-tip-container",e),this._tip=H("div",t+"-tip",this._tipContainer),this.options.closeButton&&((n=this._closeButton=H("a",t+"-close-button",e)).setAttribute("role","button"),n.setAttribute("aria-label",this.options.closeButtonLabel),n.href="#close",n.innerHTML='<span aria-hidden="true">×</span>',tc(n,"click",t=>{ty(t),this.close()})),this.options.trackResize&&(this._resizeObserver=new ResizeObserver(t=>{this._map&&(this._containerWidth=t[0]?.contentRect?.width,this._containerHeight=t[0]?.contentRect?.height,this._updateLayout(),this._updatePosition(),this._adjustPan())}),this._resizeObserver.observe(this._contentNode))},_updateLayout(){var t=this._contentNode,e=t.style,n=(e.width="",e.whiteSpace="nowrap",e.maxWidth=this.options.maxWidth+"px",e.minWidth=this.options.minWidth+"px",e.whiteSpace="",e.height="",this._containerHeight??t.offsetHeight),o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&o<n?(e.height=o+"px",t.classList.add(s)):t.classList.remove(s),this._containerWidth=this._container.offsetWidth,this._containerHeight=this._container.offsetHeight},_animateZoom(t){var t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();F(this._container,t.add(e))},_adjustPan(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(getComputedStyle(this._container).marginBottom,10)||0,e=this._containerHeight+e,n=this._containerWidth,o=new b(this._containerLeft,-e-this._containerBottom),o=(o._add(q(this._container)),t.layerPointToContainerPoint(o)),s=new b(this.options.autoPanPadding),a=new b(this.options.autoPanPaddingTopLeft??s),s=new b(this.options.autoPanPaddingBottomRight??s),r=t.getSize();let l=0,h=0;o.x+n+s.x>r.x&&(l=o.x+n-r.x+s.x),o.x-l-a.x<0&&(l=o.x-a.x),o.y+e+s.y>r.y&&(h=o.y+e-r.y+s.y),o.y-h-a.y<0&&(h=o.y-a.y),(l||h)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([l,h]))}}},_getAnchor(){return new b(this._source?._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),ed=(I.mergeOptions({closePopupOnClick:!0}),I.include({openPopup(t,e,n){return this._initOverlay(ec,t,e,n).openOn(this),this},closePopup(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),tK.include({bindPopup(t,e){return this._popup=this._initOverlay(ec,this._popup,t,e),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(t){return this._popup&&(this instanceof tQ||(this._popup._source=this),this._popup._prepareOpen(t||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(t){return this._popup&&this._popup.setContent(t),this},getPopup(){return this._popup},_openPopup(t){var e;this._popup&&this._map&&(tw(t),e=t.propagatedFrom??t.target,this._popup._source!==e||e instanceof t2?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup(t){this._popup.setLatLng(t.latlng)},_onKeyPress(t){"Enter"===t.originalEvent.code&&this._openPopup(t)}}),eh.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd(t){eh.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove(t){eh.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents(){var t=eh.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout(){var t=`leaflet-tooltip ${this.options.className||""} leaflet-zoom-`+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=H("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout(){},_adjustPan(){},_setPosition(t){let e,n,o=this.options.direction;var s=this._map,a=this._container,r=s.latLngToContainerPoint(s.getCenter()),s=s.layerPointToContainerPoint(t),l=a.offsetWidth,h=a.offsetHeight,c=new b(this.options.offset),d=this._getAnchor();n="top"===o?(e=l/2,h):"bottom"===o?(e=l/2,0):(e="center"===o?l/2:"right"===o?0:"left"===o?l:s.x<r.x?(o="right",0):(o="left",l+2*(c.x+d.x)),h/2),t=t.subtract(new b(e,n,!0)).add(c).add(d),a.classList.remove("leaflet-tooltip-right","leaflet-tooltip-left","leaflet-tooltip-top","leaflet-tooltip-bottom"),a.classList.add("leaflet-tooltip-"+o),F(a,t)},_updatePosition(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity(t){this.options.opacity=t,this._container&&(this._container.style.opacity=t)},_animateZoom(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor(){return new b(this._source?._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}));I.include({openTooltip(t,e,n){return this._initOverlay(ed,t,e,n).openOn(this),this},closeTooltip(t){return t.close(),this}}),tK.include({bindTooltip(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ed,this._tooltip,t,e),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(t){var e;!t&&this._tooltipHandlersAdded||(e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.pointerover=this._openTooltip,e.pointerout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners(t):e.add=()=>this._addFocusListeners(t)),this._tooltip.options.sticky&&(e.pointermove=this._moveTooltip),this[t?"off":"on"](e),this._tooltipHandlersAdded=!t)},openTooltip(t){return this._tooltip&&(this instanceof tQ||(this._tooltip._source=this),this._tooltip._prepareOpen(t))&&(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(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip(){return this._tooltip},_addFocusListeners(t){this.getElement?this._addFocusListenersOnLayer(this,t):this.eachLayer&&this.eachLayer(e=>this._addFocusListenersOnLayer(e,t),this)},_addFocusListenersOnLayer(t,e){var n,o="function"==typeof t.getElement&&t.getElement();o&&(n=e?"off":"on",e||(o._leaflet_focus_handler&&tu(o,"focus",o._leaflet_focus_handler,this),o._leaflet_focus_handler=()=>{this._tooltip&&(this._tooltip._source=t,this.openTooltip())}),o._leaflet_focus_handler&&tE[n](o,"focus",o._leaflet_focus_handler,this),tE[n](o,"blur",this.closeTooltip,this),e)&&delete o._leaflet_focus_handler},_setAriaDescribedByOnLayer(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip(t){this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()?"add"!==t.type||this._moveEndOpensTooltip||(this._moveEndOpensTooltip=!0,this._map.once("moveend",()=>{this._moveEndOpensTooltip=!1,this._openTooltip(t)})):(this._tooltip._source=t.propagatedFrom??t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip(t){let e=t.latlng,n,o;this._tooltip.options.sticky&&t.originalEvent&&(n=this._map.pointerEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(n),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var eu=tX.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon(t){var t=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;return e.html instanceof Element?(t.replaceChildren(),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=new b(e.bgPos),t.style.backgroundPosition=-e.x+`px ${-e.y}px`),this._setIconStyles(t,"icon"),t},createShadow:()=>null});tX.Default=tJ;let ep=tK.extend({options:{tileSize:256,opacity:1,updateWhenIdle:N.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(t){u(this,t)},onAdd(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd(t){t._addZoomLimit(this)},onRemove(t){this._removeAllTiles(),this._container.remove(),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0,clearTimeout(this._pruneTimeout)},bringToFront(){return this._map&&(j(this._container),this._setAutoZIndex(Math.max)),this},bringToBack(){return this._map&&(W(this._container),this._setAutoZIndex(Math.min)),this},getContainer(){return this._container},setOpacity(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading(){return this._loading},redraw(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=r(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:()=>document.createElement("div"),getTileSize(){var t=this.options.tileSize;return t instanceof b?t:new b(t,t)},_updateZIndex(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex(t){var e,n=this.getPane().children;let o=-t(-1/0,1/0);for(e of n){var s=e.style.zIndex;e!==this._container&&s&&(o=t(o,+s))}
15isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity(){if(this._map){this._container.style.opacity=this.options.opacity;var t,e,n=+new Date;let o=!1,s=!1;for(t of Object.values(this._tiles??{}))t.current&&t.loaded&&(e=Math.min(1,(n-t.loaded)/200),(t.el.style.opacity=e)<1?o=!0:(t.active?s=!0:this._onOpaqueTile(t),t.active=!0));s&&!this._noPrune&&this._pruneTiles(),o&&(cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this)))}},_onOpaqueTile:h,_initContainer(){this._container||(this._container=H("div","leaflet-layer "+(this.options.className??"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n of Object.keys(this._levels))n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(this._levels[n].el.remove(),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);let s=this._levels[t];var o=this._map;return s||((s=this._levels[t]={}).el=H("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=e,s.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),s.zoom=t,this._setZoomTransform(s,o.getCenter(),o.getZoom()),s.el.offsetWidth,this._onCreateLevel(s)),this._level=s}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles(){if(this._map){var t=this._map.getZoom();if(t>this.options.maxZoom||t<this.options.minZoom)this._removeAllTiles();else{for(var e of Object.values(this._tiles))e.retain=e.current;for(var n of Object.values(this._tiles))n.current&&!n.active&&(n=n.coords,this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2));for(var[o,s]of Object.entries(this._tiles))s.retain||this._removeTile(o)}}},_removeTilesAtZoom(t){for(var[e,n]of Object.entries(this._tiles))n.coords.z===t&&this._removeTile(e)},_removeAllTiles(){for(var t of Object.keys(this._tiles))this._removeTile(t)},_invalidateAll(){for(var t of Object.keys(this._levels))this._levels[t].el.remove(),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent(t,e,n,o){var t=Math.floor(t/2),e=Math.floor(e/2),n=n-1,s=new b(+t,+e),s=(s.z=n,this._tileCoordsToKey(s)),s=this._tiles[s];return s?.active?s.retain=!0:(s?.loaded&&(s.retain=!0),o<n&&this._retainParent(t,e,n,o))},_retainChildren(t,e,n,o){for(let a=2*t;a<2*t+2;a++)for(let t=2*e;t<2*e+2;t++){var s=new b(a,t),s=(s.z=n+1,this._tileCoordsToKey(s)),s=this._tiles[s];s?.active?s.retain=!0:(s?.loaded&&(s.retain=!0),n+1<o&&this._retainChildren(a,t,n+1,o))}},_resetView(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView(t,e,n,o){let s=Math.round(e);s=void 0!==this.options.maxZoom&&s>this.options.maxZoom||void 0!==this.options.minZoom&&s<this.options.minZoom?void 0:this._clampZoom(s);var a=this.options.updateWhenZooming&&s!==this._tileZoom;o&&!a||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms(t,e){for(var n of Object.values(this._levels))this._setZoomTransform(n,t,e)},_setZoomTransform(t,e,n){var o=this._map.getZoomScale(n,t.zoom),e=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,n)).round();B(t.el,e,o)},_resetGrid(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,s=this._map.getPixelWorldBounds(this._tileZoom);s&&(this._globalTileRange=this._pxBoundsToTileRange(s)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],o).y/n.y)]},_onMoveEnd(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(n,this._tileZoom),t=e.project(t,this._tileZoom).floor(),e=e.getSize().divideBy(2*n);return new y(t.subtract(e),t.add(e))},_update(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){let e=this._getTiledPixelBounds(t),c=this._pxBoundsToTileRange(e),d=c.getCenter(),u=[],p=this.options.keepBuffer,f=new y(c.getBottomLeft().subtract([p,-p]),c.getTopRight().add([p,-p]));if(!(isFinite(c.min.x)&&isFinite(c.min.y)&&isFinite(c.max.x)&&isFinite(c.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var o of Object.values(this._tiles)){var s=o.coords;s.z===this._tileZoom&&f.contains(new b(s.x,s.y))||(o.current=!1)}
15if(1<Math.abs(n-this._tileZoom))this._setView(t,n);else{for(let t=c.min.y;t<=c.max.y;t++)for(let e=c.min.x;e<=c.max.x;e++){var a,r=new b(e,t);r.z=this._tileZoom,this._isValidTile(r)&&((a=this._tiles[this._tileCoordsToKey(r)])?a.current=!0:u.push(r))}if(u.sort((t,e)=>t.distanceTo(d)-e.distanceTo(d)),0!==u.length){this._loading||(this._loading=!0,this.fire("loading"));var l,h=document.createDocumentFragment();for(l of u)this._addTile(l,h);this._level.el.appendChild(h)}}}}},_isValidTile(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),new w(this.options.bounds).overlaps(e))},_keyToBounds(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe(t){var e=this._map,n=this.getTileSize(),o=t.scaleBy(n),n=o.add(n);return[e.unproject(o,t.z),e.unproject(n,t.z)]},_tileCoordsToBounds(t){t=this._tileCoordsToNwSe(t);let e=new w(t[0],t[1]);return this.options.noWrap?e:this._map.wrapLatLngBounds(e)},_tileCoordsToKey:t=>t.x+`:${t.y}:`+t.z,_keyToTileCoords(t){var t=t.split(":"),e=new b(+t[0],+t[1]);return e.z=+t[2],e},_removeTile(t){var e=this._tiles[t];e&&(e.el.remove(),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile(t){t.classList.add("leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onpointermove=h},_addTile(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),this._tileReady.bind(this,t));this._initTile(s),this.createTile.length<2&&requestAnimationFrame(this._tileReady.bind(this,t,null,s)),F(s,n),this._tiles[o]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(n.el.style.opacity=0,cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this))):(n.active=!0,this._pruneTiles()),e||(n.el.classList.add("leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),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(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords(t){var e=new b(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange(t){var e=this.getTileSize();return new y(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad(){return Object.values(this._tiles).every(t=>t.loaded)}}),ef=ep.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize(t,e){if(this._url=t,null===(e=u(this,e)).attribution&&URL.canParse(t)){let n=new URL(t).hostname;["tile.openstreetmap.org","tile.osm.org"].some(t=>n.endsWith(t))&&(e.attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}e.detectRetina&&N.retina&&0<e.maxZoom?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile(t,e){var n=document.createElement("img");return tc(n,"load",this._tileOnLoad.bind(this,e,n)),tc(n,"error",this._tileOnError.bind(this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl(t){var e={...this.options,r:N.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(e.y=t),e["-y"]=t),f(this._url,e)},_tileOnLoad(t,e){t(null,e)},_tileOnError(t,e,n){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(n,e)},_onTileRemove(t){t.tile.onload=null},_getZoomForUrl(){let t=this._tileZoom;var e=this.options.maxZoom,n=this.options.zoomReverse,o=this.options.zoomOffset;return(t=n?e-t:t)+o},_getSubdomain(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading(){let t,e;
15for(t of Object.keys(this._tiles)){var n;this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=h,e.onerror=h,e.complete||(e.src=m,n=this._tiles[t].coords,e.remove(),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})))}},_removeTile(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",m),ep.prototype._removeTile.call(this,t)},_tileReady(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==m))return ep.prototype._tileReady.call(this,t,e,n)},_clampZoom(t){return Math.round(ep.prototype._clampZoom.call(this,t))}});var em=ef.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize(t,e){this._url=t;var n,o={...this.defaultWmsParams};for(n of Object.keys(e))n in this.options||(o[n]=e[n]);var t=(e=u(this,e)).detectRetina&&N.retina?2:1,s=this.getTileSize();o.width=s.x*t,o.height=s.y*t,this.wmsParams=o},onAdd(t){this._crs=this.options.crs??t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,ef.prototype.onAdd.call(this,t)},getTileUrl(t){var e,n,o=this._tileCoordsToNwSe(t),s=this._crs,s=new y(s.project(o[0]),s.project(o[1])),o=s.min,s=s.max,o=(1.3<=this._wmsVersion&&this._crs===tV?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=new URL(ef.prototype.getTileUrl.call(this,t));for([e,n]of Object.entries({...this.wmsParams,bbox:o}))a.searchParams.append(this.options.uppercase?e.toUpperCase():e,n);return a.toString()},setParams(t,e){return Object.assign(this.wmsParams,t),e||this.redraw(),this}});ef.WMS=em;let eg=ea.extend({initialize(t){u(this,{...t,continuous:!1}),a(this),this._layers??={}},onAdd(t){ea.prototype.onAdd.call(this,t),this.on("update",this._updatePaths,this)},onRemove(){ea.prototype.onRemove.call(this),this.off("update",this._updatePaths,this)},_onZoomEnd(){for(var t of Object.values(this._layers))t._project()},_updatePaths(){for(var t of Object.values(this._layers))t._update()},_onViewReset(){for(var t of Object.values(this._layers))t._reset()},_onSettled(){this._update()},_update:h}),ev=eg.extend({options:{tolerance:0},getEvents(){var t=eg.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset(){this._postponeUpdatePaths=!0},onAdd(t){eg.prototype.onAdd.call(this,t),this._draw()},onRemove(){eg.prototype.onRemove.call(this),clearTimeout(this._pointerHoverThrottleTimeout)}
15,_initContainer(){var t=this._container=document.createElement("canvas");tc(t,"pointermove",this._onPointerMove,this),tc(t,"click dblclick pointerdown pointerup contextmenu",this._onClick,this),tc(t,"pointerout",this._handlePointerOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer(){cancelAnimationFrame(this._redrawRequest),this._redrawRequest=null,delete this._ctx,eg.prototype._destroyContainer.call(this)},_resizeContainer(){var t=eg.prototype._resizeContainer.call(this),e=this._ctxScale=window.devicePixelRatio;this._container.width=e*t.x,this._container.height=e*t.y},_updatePaths(){if(!this._postponeUpdatePaths){for(var t of(this._redrawBounds=null,Object.values(this._layers)))t._update();this._redraw()}},_update(){var t,e;this._map._animatingZoom&&this._bounds||(t=this._bounds,e=this._ctxScale,this._ctx.setTransform(e,0,0,e,-t.min.x*e,-t.min.y*e),this.fire("update"))},_reset(){eg.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath(t){this._updateDashArray(t),t=(this._layers[a(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst??=this._drawLast},_addPath(t){this._requestRedraw(t)},_removePath(t){var e=t._order,n=e.next,e=e.prev;n?n.prev=e:this._drawLast=e,e?e.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray(t){var e;"string"==typeof t.options.dashArray?(e=t.options.dashArray.split(/[, ]+/),t.options._dashArray=e.map(t=>Number(t)).filter(t=>!isNaN(t))):t.options._dashArray=t.options.dashArray},_requestRedraw(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest??=requestAnimationFrame(this._redraw.bind(this)))},_extendRedrawBounds(t){var e;t._pxBounds&&(e=(t.options.weight??0)+1,this._redrawBounds??=new y,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_redraw(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.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 t,e,n=this._redrawBounds;this._ctx.save(),n&&(e=n.getSize(),this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(let e=this._drawFirst;e;e=e.next)t=e.layer,(!n||t._pxBounds&&t._pxBounds.intersects(n))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly(t,e){if(this._drawing){let n=t._parts,o=this._ctx;n.length&&(o.beginPath(),n.forEach(t=>{t.forEach((t,e)=>{o[e?"lineTo":"moveTo"](t.x,t.y)}),e&&o.closePath()}),this._fillStroke(o,t))}},_updateCircle(t){var e,n,o,s;this._drawing&&!t._empty()&&(e=t._point,n=this._ctx,o=Math.max(Math.round(t._radius),1),1!=(s=(Math.max(Math.round(t._radiusY),1)||o)/o)&&(n.save(),n.scale(1,s)),n.beginPath(),n.arc(e.x,e.y/s,o,0,2*Math.PI,!1),1!=s&&n.restore(),this._fillStroke(n,t))},_fillStroke(t,e){(e=e.options).fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor??e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&(t.lineDashOffset=Number(e.dashOffset??0),t.setLineDash(e._dashArray??[])),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick(t){let e,n;var o=this._map.pointerEventToLayerPoint(t);for(let s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(o)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(n=e));this._fireEvent(!!n&&[n],t)},_onPointerMove(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.pointerEventToLayerPoint(t),this._handlePointerHover(t,e))},_handlePointerOut(t){var e=this._hoveredLayer;e&&(this._container.classList.remove("leaflet-interactive"),this._fireEvent([e],t,"pointerout"),this._hoveredLayer=null,this._pointerHoverThrottled=!1)},_handlePointerHover(t,e){if(!this._pointerHoverThrottled){let n,o;for(let t=this._drawFirst;t;t=t.next)(n=t.layer).options.interactive&&n._containsPoint(e)&&(o=n);o!==this._hoveredLayer&&(this._handlePointerOut(t),o)&&(this._container.classList.add("leaflet-interactive"),this._fireEvent([o],t,"pointerover"),this._hoveredLayer=o),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._pointerHoverThrottled=!0,this._pointerHoverThrottleTimeout=setTimeout(()=>{this._pointerHoverThrottled=!1},32)}},_fireEvent(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront(t){var e,n,o=t._order;o&&(e=o.next,n=o.prev,e)&&((e.prev=n)?n.next=e:e&&(this._drawFirst=e),o.prev=this._drawLast,(this._drawLast.next=o).next=null,this._drawLast=o,this._requestRedraw(t))},_bringToBack(t){var e,n,o=t._order;o&&(e=o.next,n=o.prev)&&((n.next=e)?e.prev=n:n&&(this._drawLast=n),o.prev=null,o.next=this._drawFirst,this._drawFirst.prev=o,this._drawFirst=o,this._requestRedraw(t))}});function e_(t,e){return t.flatMap(t=>[...t.map((t,e)=>(e?"L":"M")+t.x+" "+t.y),e?"z":""]).join("")||"M0 0"}let eb=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},ey=eg.extend({_initContainer(){this._container=eb("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=eb("g"),this._container.appendChild(this._rootGroup)},_destroyContainer(){eg.prototype._destroyContainer.call(this),delete this._rootGroup,delete this._svgSize},_resizeContainer(){var t=eg.prototype._resizeContainer.call(this);this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,this._container.setAttribute("width",t.x),this._container.setAttribute("height",t.y))},_update(){var t,e;this._map._animatingZoom&&this._bounds||(e=(t=this._bounds).getSize(),this._container.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath(t){var e=t._path=eb("path");t.options.className&&e.classList.add(...d(t.options.className)),t.options.interactive&&e.classList.add("leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath(t){t._path.remove(),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath(t){t._project(),t._update()},_updateStyle(t){var e=t._path,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly(t,e){this._setPath(t,e_(t._parts,e))}
15,_updateCircle(t){var e=t._point,n=Math.max(Math.round(t._radius),1),o=`a${n},${Math.max(Math.round(t._radiusY),1)||n} 0 1,0 `,e=t._empty()?"M0 0":`M${e.x-n},${e.y}${o}${2*n},0 ${o}${-(2*n)},0 `;this._setPath(t,e)},_setPath(t,e){t._path.setAttribute("d",e)},_bringToFront(t){j(t._path)},_bringToBack(t){W(t._path)}});I.include({getRenderer(t){let e=t.options.renderer??this._getPaneRenderer(t.options.pane)??this.options.renderer??this._renderer;return e=e||(this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer(t){if("overlayPane"!==t&&void 0!==t){let e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e}},_createRenderer(t){return this.options.preferCanvas&&new ev(t)||new ey(t)}});var em=t4.extend({initialize(t,e){t4.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:t=>[(t=new w(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}),ew=(ey.create=eb,ey.pointsToPath=e_,t6.geometryToLayer=t9,t6.coordsToLatLng=t7,t6.coordsToLatLngs=et,t6.latLngToCoords=ee,t6.latLngsToCoords=ei,t6.getFeature=en,t6.asFeature=eo,I.mergeOptions({boxZoom:!0}),M.extend({initialize(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks(){tc(this._container,"pointerdown",this._onPointerDown,this)},removeHooks(){tu(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(t){if(!t.shiftKey||0!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Y(),G(),this._startPoint=this._map.pointerEventToContainerPoint(t),tc(document,{contextmenu:tw,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerMove(t){this._moved||(this._moved=!0,this._box=H("div","leaflet-zoom-box",this._container),this._container.classList.add("leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.pointerEventToContainerPoint(t);var t=new y(this._point,this._startPoint),e=t.getSize();F(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish(){this._moved&&(this._box.remove(),this._container.classList.remove("leaflet-crosshair")),K(),Q(),tu(document,{contextmenu:tw,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerUp(t){0===t.button&&(this._finish(),this._moved)&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(this._resetState.bind(this),0),t=new w(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t}))},_onKeyDown(t){"Escape"===t.code&&(this._finish(),this._clearDeferredResetState(),this._resetState())}})),ex=(I.addInitHook("addHandler","boxZoom",ew),I.mergeOptions({doubleClickZoom:!0}),M.extend({addHooks(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick(t){var e=this._map,n=e.getZoom(),o=e.options.zoomDelta,n=t.originalEvent.shiftKey?n-o:n+o;"center"===e.options.doubleClickZoom?e.setZoom(n):e.setZoomAround(t.containerPoint,n)}})),eC=(I.addInitHook("addHandler","doubleClickZoom",ex),I.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),M.extend({addHooks(){var t;this._draggable||(t=this._map,this._draggable=new tA(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.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}
15,moving(){return this._draggable?._moving},_onDragStart(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=new w(this._map.options.maxBounds),this._offsetLimit=new y(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag(t){var e,n;this._map.options.inertia&&(e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(n),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,s=(o-e+n)%t+e-n,o=(o+e+n)%t-e-n,t=Math.abs(s+n)<Math.abs(o+n)?s:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd(t){let e=this._map,n=e.options,o=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);let t=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=t.multiplyBy(s/o),r=a.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,r),h=a.multiplyBy(l/r),c=l/(n.inertiaDeceleration*s),d=h.multiplyBy(-c/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),requestAnimationFrame(()=>{e.panBy(d,{duration:c,easeLinearity:s,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}})),ek=(I.addInitHook("addHandler","dragging",eC),I.mergeOptions({keyboard:!0,keyboardPanDelta:80}),M.extend({keyCodes:{left:["ArrowLeft"],right:["ArrowRight"],down:["ArrowDown"],up:["ArrowUp"],zoomIn:["Equal","NumpadAdd","BracketRight"],zoomOut:["Minus","NumpadSubtract","Digit6","Slash"]},initialize(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),t.ariaKeyShortcuts=Object.values(this.keyCodes).flat().join(" "),tc(t,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks(){this._removeHooks(),tu(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 t,e,n;this._focused||(n=document.body,t=document.documentElement,e=n.scrollTop||t.scrollTop,n=n.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(n,e))},_onFocus(){this._focused=!0,this._map.fire("focus")},_onBlur(){this._focused=!1,this._map.fire("blur")},_setPanDelta(t){var e,n,o,s,a=this._panKeys={},r=this.keyCodes;for(e of r.left)a[e]=[-1*t,0];for(n of r.right)a[n]=[t,0];for(o of r.down)a[o]=[0,t];for(s of r.up)a[s]=[0,-1*t]},_setZoomDelta(t){var e,n,o=this._zoomKeys={},s=this.keyCodes;for(e of s.zoomIn)o[e]=t;for(n of s.zoomOut)o[n]=-t},_addHooks(){tc(document,"keydown",this._onKeyDown,this)},_removeHooks(){tu(document,"keydown",this._onKeyDown,this)},_onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){let s;var e,n=t.code,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(s=this._panKeys[n],t.shiftKey&&(s=new b(s).multiplyBy(3)),o.options.maxBounds&&(s=o._limitOffset(new b(s),o.options.maxBounds)),o.options.worldCopyJump?(e=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(s))),o.panTo(e)):o.panBy(s));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if("Escape"!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}tw(t)}}}
15)),eT=(I.addInitHook("addHandler","keyboard",ek),I.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),M.extend({addHooks(){tc(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks(){tu(this._map._container,"wheel",this._onWheelScroll,this),clearTimeout(this._timer)},_onWheelScroll(t){var e=tT(t),n=this._map.options.wheelDebounceTime,e=(this._delta+=e,this._lastMousePos=this._map.pointerEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(n-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(this._performZoom.bind(this),e),tw(t)},_performZoom(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap??0,o=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),o=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,n=n?Math.ceil(o/n)*n:o,o=t._limitZoom(e+(0<this._delta?n:-n))-e;this._delta=0,this._startTime=null,o&&("center"===t.options.scrollWheelZoom?t.setZoom(e+o):t.setZoomAround(this._lastMousePos,e+o))}}));I.addInitHook("addHandler","scrollWheelZoom",eT),I.mergeOptions({tapHold:N.touchNative&&N.safari&&N.mobile,tapTolerance:15});var eS=M.extend({addHooks(){tc(this._map._container,"pointerdown",this._onDown,this)},removeHooks(){tu(this._map._container,"pointerdown",this._onDown,this),clearTimeout(this._holdTimeout)},_onDown(t){clearTimeout(this._holdTimeout),1===th().length&&"mouse"!==t.pointerType&&(this._startPos=this._newPos=new b(t.clientX,t.clientY),this._holdTimeout=setTimeout(()=>{this._cancel(),this._isTapValid()&&(tc(document,"pointerup",ty),tc(document,"pointerup pointercancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},600),tc(document,"pointerup pointercancel contextmenu",this._cancel,this),tc(document,"pointermove",this._onMove,this))},_cancelClickPrevent:function t(){tu(document,"pointerup",ty),tu(document,"pointerup pointercancel",t)},_cancel(){clearTimeout(this._holdTimeout),tu(document,"pointerup pointercancel contextmenu",this._cancel,this),tu(document,"pointermove",this._onMove,this)},_onMove(t){this._newPos=new b(t.clientX,t.clientY)},_isTapValid(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}}),eE=(I.addInitHook("addHandler","tapHold",eS),I.mergeOptions({pinchZoom:N.touch,bounceAtZoomLimits:!0}),M.extend({addHooks(){this._map._container.classList.add("leaflet-touch-zoom"),tc(this._map._container,"pointerdown",this._onPointerStart,this)},removeHooks(){this._map._container.classList.remove("leaflet-touch-zoom"),tu(this._map._container,"pointerdown",this._onPointerStart,this)},_onPointerStart(t){var e,n=this._map,o=th();2!==o.length||n._animatingZoom||this._zooming||(e=n.pointerEventToContainerPoint(o[0]),o=n.pointerEventToContainerPoint(o[1]),this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),"center"!==n.options.pinchZoom&&(this._pinchStartLatLng=n.containerPointToLatLng(e.add(o)._divideBy(2))),this._startDist=e.distanceTo(o),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),tc(document,"pointermove",this._onPointerMove,this),tc(document,"pointerup pointercancel",this._onPointerEnd,this),ty(t))},_onPointerMove(t){var e=th();if(2===e.length&&this._zooming){var n=this._map,o=n.pointerEventToContainerPoint(e[0]),e=n.pointerEventToContainerPoint(e[1]),s=o.distanceTo(e)/this._startDist;if(this._zoom=n.getScaleZoom(s,this._startZoom),!n.options.bounceAtZoomLimits&&(this._zoom<n.getMinZoom()&&s<1||this._zoom>n.getMaxZoom()&&1<s)&&(this._zoom=n._limitZoom(this._zoom)),"center"===n.options.pinchZoom){if(this._center=this._startLatLng,1==s)return}else{if(o=o._add(e)._divideBy(2)._subtract(this._centerPoint),1==s&&0===o.x&&0===o.y)return;this._center=n.unproject(n.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(n._moveStart(!0,!1),this._moved=!0),cancelAnimationFrame(this._animRequest),e=n._move.bind(n,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=requestAnimationFrame(e.bind(this)),ty(t)}},_onPointerEnd(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimationFrame(this._animRequest),tu(document,"pointermove",this._onPointerMove,this),tu(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}})),ew=(I.addInitHook("addHandler","pinchZoom",eE),I.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()}),I.BoxZoom=ew,I.DoubleClickZoom=ex,I.Drag=eC,I.Keyboard=ek,I.ScrollWheelZoom=eT,I.TapHold=eS,I.PinchZoom=eE,I.TouchZoom=eE,"2.0.0-alpha"),ex={__proto__:null,BlanketOverlay:ea,Bounds:y,Browser:N,CRS:C,Canvas:ev,Circle:t3,CircleMarker:A,Class:v,Control:tL,DivIcon:eu,DivOverlay:eh,DomEvent:tE,DomUtil:ti,Draggable:tA,Evented:_,FeatureGroup:tQ,GeoJSON:t6,GridLayer:ep,Handler:M,Icon:tX,ImageOverlay:es,LatLng:x,LatLngBounds:w,Layer:tK,LayerGroup:tG,LineUtil:D,Map:I,Marker:t1,Path:t2,Point:b,PolyUtil:P,Polygon:t4,Polyline:t5,Popup:ec,PosAnimation:tP,Projection:tZ,Rectangle:em,Renderer:eg,SVG:ey,SVGOverlay:el,TileLayer:ef,Tooltip:ed,Transformation:S,Util:g,VideoOverlay:er,version:ew};let eP=eL().L;function eL(){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.")}eL().L=ex,eL().L.noConflict=function(){return eL().L=eP,this},t.BlanketOverlay=ea,t.Bounds=y,t.Browser=N,t.CRS=C,t.Canvas=ev,t.Circle=t3,t.CircleMarker=A,t.Class=v,t.Control=tL,t.DivIcon=eu,t.DivOverlay=eh,t.DomEvent=tE,t.DomUtil=ti,t.Draggable=tA,t.Evented=_,t.FeatureGroup=tQ,t.GeoJSON=t6,t.GridLayer=ep,t.Handler=M,t.Icon=tX,t.ImageOverlay=es,t.LatLng=x,t.LatLngBounds=w,t.Layer=tK,t.LayerGroup=tG,t.LineUtil=D,t.Map=I,t.Mar
15ker=t1,t.Path=t2,t.Point=b,t.PolyUtil=P,t.Polygon=t4,t.Polyline=t5,t.Popup=ec,t.PosAnimation=tP,t.Projection=tZ,t.Rectangle=em,t.Renderer=eg,t.SVG=ey,t.SVGOverlay=el,t.TileLayer=ef,t.Tooltip=ed,t.Transformation=S,t.Util=g,t.VideoOverlay=er,t.default=ex,t.version=ew}),function(t){"use strict";var e=function(){this.confData={},this.selfCount={},this.mapInstance={},this.mapMarkers={},this.activeMap=null,t(".js-mapComponent").length&&this.initialize()};e.prototype.getAddressForPostcode=function(t,e,n){for(var o="",s=this.confData[t].locations,a=0;a<s.length;a++)if(-1!==s[a].address.indexOf(e)){if(null!==n){if(-1!==s[a].address.indexOf(n)){o=s[a].address;break}}else{o=s[a].address;break}}return o},e.prototype.initialize=function(){var e=this;"undefined"!=typeof L&&L&&(!L.map&&L.Map&&(L.map=(t,e)=>new L.Map(t,e)),!L.tileLayer&&L.TileLayer&&(L.tileLayer=(t,e)=>new L.TileLayer(t,e)),!L.marker&&L.Marker&&(L.marker=(t,e)=>new L.Marker(t,e)),!L.polygon&&L.Polygon&&(L.polygon=(t,e)=>new L.Polygon(t,e)),!L.polyline&&L.Polyline&&(L.polyline=(t,e)=>new L.Polyline(t,e)),!L.circle&&L.Circle&&(L.circle=(t,e,n)=>new L.Circle(t,e,n)),!L.circleMarker&&L.CircleMarker&&(L.circleMarker=(t,e)=>new L.CircleMarker(t,e)),!L.rectangle&&L.Rectangle&&(L.rectangle=(t,e)=>new L.Rectangle(t,e)),!L.featureGroup&&L.FeatureGroup&&(L.featureGroup=t=>new L.FeatureGroup(t)),!L.layerGroup&&L.LayerGroup&&(L.layerGroup=t=>new L.LayerGroup(t)),!L.geoJSON&&L.GeoJSON&&(L.geoJSON=(t,e)=>new L.GeoJSON(t,e)),!L.imageOverlay&&L.ImageOverlay&&(L.imageOverlay=(t,e,n)=>new L.ImageOverlay(t,e,n)),!L.videoOverlay&&L.VideoOverlay&&(L.videoOverlay=(t,e,n)=>new L.VideoOverlay(t,e,n)),!L.svgOverlay&&L.SVGOverlay&&(L.svgOverlay=(t,e,n)=>new L.SVGOverlay(t,e,n)),!L.icon&&L.Icon&&(L.icon=t=>new L.Icon(t)),!L.divIcon&&L.DivIcon&&(L.divIcon=t=>new L.DivIcon(t)),L.control=L.control||{},!L.control.zoom&&L.Control?.Zoom&&(L.control.zoom=t=>new L.Control.Zoom(t)),!L.control.layers&&L.Control?.Layers&&(L.control.layers=(t,e,n)=>new L.Control.Layers(t,e,n)),!L.control.scale&&L.Control?.Scale&&(L.control.scale=t=>new L.Control.Scale(t)),!L.control.attribution&&L.Control?.Attribution&&(L.control.attribution=t=>new L.Control.Attribution(t)),!L.popup&&L.Popup&&(L.popup=(t,e)=>new L.Popup(t,e)),!L.tooltip&&L.Tooltip&&(L.tooltip=(t,e)=>new L.Tooltip(t,e)),!L.latLng&&L.LatLng&&(L.latLng=(t,e)=>Array.isArray(t)?new L.LatLng(t[0],t[1],t[2]):new L.LatLng(t,e)),!L.latLngBounds&&L.LatLngBounds&&(L.latLngBounds=(t,e)=>Array.isArray(t)?new L.LatLngBounds(t[0],t[1]??t[0]):new L.LatLngBounds(t,e)),!L.point&&L.Point&&(L.point=(t,e,n)=>Array.isArray(t)?new L.Point(t[0],t[1],e):new L.Point(t,e,n)),!L.bounds&&L.Bounds&&(L.bounds=(t,e)=>Array.isArray(t)?new L.Bounds(t[0],t[1]??t[0]):new L.Bounds(t,e)));var n=t(".js-mapComponent");window.mapPopupTriggered=!1,n.each(function(){var n=t(this).closest("[data-component-name]").data("componentName");e.mapInstance[n]=L.map(this),L.tileLayer("//smbmaps.ibsrv.net/world_tiles/{z}/{x}/{y}.png",{attribution:'Map data provided by <a href="http://www.internetbrands.com/">Internet Brands</a>',maxZoom:18}).addTo(e.mapInstance[n]),e.mapInstance[n].scrollWheelZoom.disable(),e.confData[n]=JSON.parse(t(this).closest("[data-component-name]").find("input[type=hidden]").val()),e.setupMap(e.mapInstance[n],e.confData[n]),e.mapSize(this,e.confData[n],n),e.attachEvents(this,e.confData[n],n),e.searchByZipCode(this,e.confData[n],e.mapInstance[n],n,!1);var o=e.confData[n].locations;o.length>1&&!e.confData[n].fitBounds&&(o=o.reverse());for(var s=0;s<o.length;s++)if(2==o[s].cta.buttonStyle&&(o[s].cta.iconHtm='\n<span aria-label="'+o[s].cta.iconClass.replace(/-/g," ")+'">\n<span class="'+o[s].cta.iconClass+' icon" aria-hidden="true"></span>\n</span>\n'),3==o[s].cta.buttonStyle&&(o[s].cta.iconHtm='\n<span class="'+o[s].cta.iconClass+' icon" aria-hidden="true"></span>\n'+o[s].cta.buttonText+"\n"),null!=o[s].latitude&&null!=o[s].longitude){var a=[{lat:o[s].latitude,lon:o[s].longitude,address:{name:o[s].address}}];e.applyData(a,n,this,s)}else e.geolocateLocation(o[s],n,this);var r=e.confData[n].xaxis,l=e.confData[n].yaxis;t(window).width()>768&&(0!=r||0!=l)&&e.mapInstance[n].panBy([r,l])}),t("body").click(function(n){if(t(n.target).hasClass("js-mapComponent")){var o=t(n.target).closest("[data-component-name]").data("c
15omponentName");null!==e.activeMap&&e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=o,e.confData[o].zoomControl&&e.mapInstance[o].scrollWheelZoom.enable()}else null!==e.activeMap&&(e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=null)})},e.prototype.attachEvents=function(e,n,o){var s,a=this;t(window).resize(function(){a.mapSize(e,n,o),clearTimeout(s),s=setTimeout(function(){if(a.mapMarkers[o].length>1&&a.confData[o].fitBounds){var t=L.featureGroup(a.mapMarkers[o]);a.mapCenter(o,t)}},250)})},e.prototype.setupMap=function(e,n){n.zoomControl||(e.boxZoom.disable(),e.doubleClickZoom.disable(),e.keyboard.disable(),e.scrollWheelZoom.disable(),e.tap&&e.tap.disable(),e.touchZoom.disable(),t(".leaflet-control-zoom").css("visibility","hidden"))},e.prototype.mapCenter=function(t,e){this.mapInstance[t].fitBounds(e.getBounds().pad(.5)),this.confData[t].alwaysShowInfoWindow&&this.mapMarkers[t][this.mapMarkers[t].length-1].isPopupOpen()&&!window.mapPopupTriggered&&(this.mapMarkers[t][this.mapMarkers[t].length-1].closePopup(),this.mapMarkers[t][this.mapMarkers[t].length-1].openPopup(),window.mapPopupTriggered=!0)},e.prototype.mapSize=function(e,n,o){var s=t(e).parent();if(n.autoFit){this.confData[o].isPle?r=s.find(".map__wrap").outerHeight(!0):a=s.children(".component__title-caption-wrap").outerHeight(!0),s.css("height","100%");var a,r,l=s.height();this.confData[o].isPle||null===a?768>=t(window).width()&&null!==r&&(l-=r):l-=a,t(e).css({height:l}),t(e).trigger("map.resize")}else t(e).css({width:n.width,height:n.height})},e.prototype.geocodeURL="https://nominatim.openstreetmap.org/search?[QUERY]&format=json&polygon=1&addressdetails=1&limit=1",e.prototype.geolocateLocation=function(e,n,o){var s=this,a=this.geocodeURL;a=a.replace("[QUERY]",e.query),t.ajax({url:a,dataType:"jsonp",jsonp:"json_callback",success:function(t){s.applyData(t,n,o)}})},e.prototype.searchByZipCode=function(e,n,o,s,a){var r=this,l=this.geocodeURL;t("#location-zip").submit(function(e){e.preventDefault();var h=t("#location-search").val();if(!h||"Enter your zip code and state"==h){alert("Please enter your current city or ZIP code.");return}l="https://nominatim.openstreetmap.org/search?q="+h+"&format=json",t.ajax({url:l,dataType:"jsonp",jsonp:"json_callback",success:function(t){r.getDistance(t,n,o,s,a)}})})},e.prototype.getDistance=function(e,n,o,s,a){var r=this;if(r.markerTemp,0!==Object.keys(e).length){var l=n.locations,h=e[0].lat,c=e[0].lon,d=new L.Icon({iconUrl:n.assetsPath+"css/images/marker-icon-green.png",shadowUrl:n.assetsPath+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),u=L.marker([h,c],{icon:d});u.addTo(o),void 0!==r.markerTemp&&(r.markerTemp.removeFrom(o),this.mapMarkers[s].pop(u)),null!=u&&(r.markerTemp=u),this.mapMarkers[s].push(u),o.closePopup();var p=L.featureGroup(this.mapMarkers[s]).addTo(o);o.fitBounds(p.getBounds().pad(.5));for(var f=0;f<l.length;f++)if(null!=l[f].latitude&&null!=l[f].longitude)for(var m=Math.round(621371e-9*L.latLng([l[f].latitude,l[f].longitude]).distanceTo([h,c])),g=t(".gmap-location b"),v=t(".gmap-location .gmap-distance"),_=0;_<g.length;_++)-1!==g[_].innerText.indexOf(l[f].title)&&(t(g[_]).closest(".gmap-location").data("distanceMiles",m),m=m.toLocaleString(),v.show(),v[_].innerHTML=m+" mi");t(".gmap-location-list li").sort(function(e,n){return t(n).data("distanceMiles")<t(e).data("distanceMiles")?1:-1}).appendTo(".gmap-location-list"),a=!0,t(".gmap-location-list li").first().children().trigger("click",[a])}else{for(var g=t(".gmap-location b"),b=t(".map-search__location-distance > b"),v=t(".gmap-location .gmap-distance"),f=0;f<v.length;f++)v.show(),v[f].innerHTML=" -- mi";for(var f=0;f<b.length;f++)b.show(),b[f].innerHTML=" -- mi";for(var f=0;f<g.length;f++)t(g[f]).closest(".gmap-location").data("distanceMiles","--")}},e.prototype.applyData=function(e,n,o,s){var a=this;if(e.length>0){a.selfCount[n]=a.selfCount[n]||0;var r=e[0],l=r.lat,h=r.lon;a.mapInstance[n].setView([l,h],a.confData[n].zoom,{animation:!0}),a.selfCount[n]++;var c=[];c.alt="Map Marker";var d=a.confData[n].assetsPath;if(a.confData[n].iconUrl){var u=a.confData[n].iconUrl,p=new L.Icon({iconUrl:u,shadowUrl:d+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});c.icon=p}var f=L.marker([l,h],c);if(a.confData[n].alwaysShowInfoWindow||a.confData[n].showAddressOnHover){var m=r.display_name||null,g=null;if("postcode"in r.address){var v="house_number"in r.address?r.address.house_number:null;m=""!=(g=a.getAddressForPostcode(n,r.address.postcode,v))?g:m}else r.address.name&&(m=r.address.name);m&&f.bindPopup(m)}if(a.mapMarkers[n]=a.mapMarkers[n]||[],a.mapMarkers[n].push(f),a.confData[n].hue){var _=a.confData[n].hue.stylers,b=(_[0].gama,_[1].lightness,_[2].hue);"none"!==b&&(t(o).css("background-color",b),t("div.leaflet-tile-pane",o).css("opacity","0.9"))}if(a.selfCount[n]>=a.confData[n].locations.length){var y=L.featureGroup(a.mapMarkers[n]).addTo(a.mapInstance[n]);a.mapMarkers[n].length>1&&a.confData[n].fitBounds&&a.mapCenter(n,y),a.confData[n].alwaysShowInfoWindow&&(a.mapMarkers[n][a.mapMarkers[n].length-1].closePopup(),a.mapMarkers[n][a.mapMarkers[n].length-1].openPopup())}}else console.log("No data found.")},t(document).ready(function(){if(window.webManagerMap=new e,t(".map-a").length>0){var n;n=[{selector:".map-search__location-distance p",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"}],t("#gmap-location-list").on("click",".gmap-location a",function(e,o){e.preventDefault();
15var s=t(this).closest("[data-component-name]").data("componentName"),a=window.webManagerMap.confData[s].locations,r=t(this).parent().attr("id"),l=a.find(function(t){return t.ID===r}),h=window.webManagerMap.mapMarkers[s].find(function(t){return t._latlng.lat==l.latitude&&t._latlng.lng==l.longitude});if(void 0===o){let t=window.webManagerMap.mapInstance[s],e=window.webManagerMap.confData[s],n=[l.latitude,l.longitude],o=e.xaxis,a=e.yaxis;function c(){h&&h.openPopup()}o>-140&&(o=-140),t.invalidateSize(),t.stop(),window.innerWidth>768?(t.setView(n,e.zoom,{animate:!1}),t.panBy([o,a],{animate:!0}),t.once("moveend",function(){c()})):(t.setView(n,e.zoom,{animate:!1}),c())}var d=t(this).closest(".gmap-location").data("distanceMiles"),u=t(".map-search__location-distance > b");void 0!==d?(u.show(),d=d.toLocaleString(),u[0].innerHTML=d+" mi"):u[0].innerHTML=" -- mi",n.forEach(function(e,n){var o={},s=e.property;if(".map-search__location-directions a"==e.selector){for(var a="",n=0;n<=3;n++)if(l.cta.buttonStyle==n){switch(l.cta.buttonStyle){case"0":a="cta__link component__link--";break;case"1":a="cta__button component__button--";break;case"2":a="cta__link--icon ";break;case"3":a="cta__button--icon component__button--"}2==l.cta.buttonStyle||3==l.cta.buttonStyle?t(e.selector).html(l.cta.iconHtm):t(e.selector).text(l.cta.buttonText),t(e.selector).removeClass().addClass(a+l.cta.displayStyle),2==l.cta.linkType?t(e.selector).attr("href","#"):1==l.cta.linkType?t(e.selector).attr("href",l.cta.linkUrl):t(e.selector).attr("href",l.cta.linkPage),l.cta.openInNew?t(e.selector).attr("target","_blank"):t(e.selector).attr("target",""),l.cta.openInNew&&1==l.cta.linkType?t(e.selector).attr("rel","noopener"):t(e.selector).attr("rel","")}}else{if("string"==typeof s||s instanceof String)o=l[s];else{var r=l;s.forEach(function(t){r=r[t]}),o=r}if("string"==typeof o||o instanceof String)"text"===e.type?(t(e.selector).text(o),(".map-search__location-phone"==e.selector||".map-search__location-phone2"==e.selector)&&t(e.selector).attr("href","tel:"+o)):"href"===e.type&&t(e.selector).attr("href",o),o.length>0?t(e.selector).show():t(e.selector).hide();else{var h=Object.values(Object.keys(l[s]).map(function(t){return l[s][t]}));t(e.selector).html(h.join("<br>"))}}})})}})}(window.jQuery),function(t){"use strict";var e,n,o,s,a,r,l,h=!0,c="",d=0,u="",p=null,f="",m=!1,g={resize:1,click:1},v=!0,_=1,b="bodyOffset",y=b,w=!0,x="",C={},k=32,T=null,S=!1,E="[iFrameSizer]",P=E.length,I="",D={max:1,min:1,bodyScroll:1,documentElementScroll:1},A="child",M=!0,O=t.parent,N="*",z=0,H=!1,j=null,W=16,B=1,R="scroll",F=R,q=t,Z=function(){tt("MessageCallback function not defined")},U=function(){},V=function(){};function Y(e,n,o){"addEventListener"in t?e.addEventListener(n,o,!1):"attachEvent"in t&&e.attachEvent("on"+n,o)}function K(e,n,o){"removeEventListener"in t?e.removeEventListener(n,o,!1):"detachEvent"in t&&e.detachEvent("on"+n,o)}function G(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Q=Date.now||function(){return new Date().getTime()};function X(t){return E+"["+I+"] "+t}function J(e){S&&"object"==typeof t.console&&console.log(X(e))}function tt(e){"object"==typeof t.console&&console.warn(X(e))}function te(t,e){void 0!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,J("Body "+t+' set to "'+e+'"'))}function ti(e){function n(){t_(e.eventName,e.eventType)}var o={add:function(e){Y(t,e,n)},remove:function(e){K(t,e,n)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(o[e.method])):o[e.method](e.eventName),J(G(e.method)+" event listener: "+e.eventType)}function tn(t){ti({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ti({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ti({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ti({method:t,eventType:"Input",eventName:"input"}),ti({method:t,eventType:"Mouse Up",eventName:"mouseup"}),ti({method:t,eventType:"Mouse Down",eventName:"mousedown"}),ti({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),ti({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),ti({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),ti({method:t,eventType:"Touch Start",eventName:"touchstart"}),ti({method:t,eventType:"Touch End",eventName:"touchend"}),ti({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),ti({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ti({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ti({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
15),"child"===A&&ti({method:t,eventType:"IFrame Resized",eventName:"resize"})}function to(t,e,n,o){return e!==t&&(t in n||(tt(t+" is not a valid option for "+o+"CalculationMethod."),t=e),J(o+' calculation method set to "'+t+'"')),t}function ts(){y=to(y,b,tm,"height")}function ta(){F=to(F,R,tg,"width")}function tr(){var e;!0===h?(tn("add"),e=0>k,t.MutationObserver||t.WebKitMutationObserver?e?th():p=function(){function e(t){function e(t){!1===t.complete&&(J("Attach listeners to "+t.src),t.addEventListener("load",s,!1),t.addEventListener("error",a,!1),l.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function n(t){J("Remove listeners from "+t.src),t.removeEventListener("load",s,!1),t.removeEventListener("error",a,!1),l.splice(l.indexOf(t),1)}function o(t,e,o){n(t.target),t_(e,o+": "+t.target.src,void 0,void 0)}function s(t){o(t,"imageLoad","Image loaded")}function a(t){o(t,"imageLoadFailed","Image load failed")}var r,l=[],h=t.MutationObserver||t.WebKitMutationObserver,c=(r=document.querySelector("body"),c=new h(function(t){t_("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}),J("Create body MutationObserver"),c.observe(r,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),c);return{disconnect:function(){"disconnect"in c&&(J("Disconnect body MutationObserver"),c.disconnect(),l.forEach(n))}}}():(J("MutationObserver not supported in this browser!"),th())):J("Auto Resize disabled")}function tl(){tn("remove"),null!==p&&p.disconnect(),clearInterval(T)}function th(){0!==k&&(J("setInterval: "+k+"ms"),T=setInterval(function(){t_("interval","setInterval: "+k)},Math.abs(k)))}function tc(t,e){var n=0;return e=e||document.body,parseInt(n="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(n=document.defaultView.getComputedStyle(e,null))?n[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,10);var n=e.style.left,o=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=n,e.runtimeStyle.left=o,t}(e.currentStyle[t]),10)}function td(t,e){for(var n,o=e.length,s=0,a=0,r=G(t),l=Q(),h=0;h<o;h++)(s=e[h].getBoundingClientRect()[t]+tc("margin"+r,e[h]))>a&&(a=s);return l=Q()-l,J("Parsed "+o+" HTML elements"),J("Element position calculated in "+l+"ms"),(n=l)>W/2&&J("Event throttle increased to "+(W=2*n)+"ms"),a}function tu(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function tp(t,e){var n=document.querySelectorAll("["+e+"]");return 0===n.length?(tt("No tagged elements ("+e+") found on page"),_):td(t,n)}function tf(){return document.querySelectorAll("body *")}var tm={bodyOffset:function(){return document.body.offsetHeight+tc("marginTop")+tc("marginBottom")},offset:function(){return tm.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,tu(tm))},min:function(){return Math.min.apply(null,tu(tm))},grow:function(){return tm.max()},lowestElement:function(){return Math.max(tm.bodyOffset(),td("bottom",tf()))},taggedElement:function(){return tp("bottom","data-iframe-height")}},tg={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(tg.bodyScroll(),tg.documentElementScroll())},max:function(){return Math.max.apply(null,tu(tg))},min:function(){return Math.min.apply(null,tu(tg))},rightMostElement:function(){return td("right",tf())},taggedElement:function(){return tp("right","data-iframe-width")}},tv=(e=function(t,e,n,o){var s,a;(function(){function t(t,e){return!(Math.abs(t-e)<=z)}return s=void 0!==n?n:tm[y](),a=void 0!==o?o:tg[F](),t(_,s)||m&&t(B,a)})()||"init"===t?(tb(),tx(_=s,B=a,t)):!(t in{init:1,interval:1,size:1}
15)&&(y in D||m&&F in D)?tw(e):t in{interval:1}||J("No change in size detected")},a=null,r=0,l=function(){r=Q(),a=null,s=e.apply(n,o),a||(n=o=null)},function(){var t=Q();r||(r=t);var h=W-(t-r);return n=this,o=arguments,h<=0||h>W?(a&&(clearTimeout(a),a=null),r=t,s=e.apply(n,o),a||(n=o=null)):a||(a=setTimeout(l,h)),s});function t_(t,e,n,o){H&&t in g?J("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||J("Trigger event: "+e),tv(t,e,n,o))}function tb(){H||(H=!0,J("Trigger event lock on")),clearTimeout(j),j=setTimeout(function(){H=!1,J("Trigger event lock off"),J("--")},128)}function ty(t){_=tm[y](),B=tg[F](),tx(_,B,t)}function tw(t){var e=y;y=b,J("Reset trigger event: "+t),tb(),ty("reset"),y=e}function tx(t,e,n,o,s){if(!0===M){var a;void 0===s?s=N:J("Message targetOrigin: "+s),J("Sending message to host page ("+(a=I+":"+t+":"+e+":"+n+(void 0!==o?":"+o:""))+")"),O.postMessage(E+a,s)}}Y(t,"message",function e(n){var o,s;function a(){return n.data.split("]")[1].split(":")[0]}function r(){return n.data.substr(n.data.indexOf(":")+1)}function l(){return n.data.split(":")[2]in{true:1,false:1}}E===(""+n.data).substr(0,P)&&(!1===v?function(){var e,o,s;switch(a()){case"reset":w?J("Page reset ignored by init"):(J("Page size reset by host page"),ty("resetPage"));break;case"resize":t_("resizeParent","Parent window requested size check");break;case"moveToAnchor":e=r(),C.findTarget(e);break;case"message":J("MessageCallback called from parent: "+(o=r())),Z(JSON.parse(o)),J(" --");break;case"pageInfo":J("PageInfoFromParent called from parent: "+(s=r())),V(JSON.parse(s)),J(" --");break;default:"iFrameResize"in t||l()||tt("Unexpected message ("+n.data+")")}}():l()?(x=n.data,O=n.source,function(){function t(t){return"true"===t}var e=x.substr(P).split(":");I=e[0],d=void 0!==e[1]?Number(e[1]):d,m=void 0!==e[2]?t(e[2]):m,S=void 0!==e[3]?t(e[3]):S,k=void 0!==e[4]?Number(e[4]):k,h=void 0!==e[6]?t(e[6]):h,u=e[7],y=void 0!==e[8]?e[8]:y,c=e[9],f=e[10],z=void 0!==e[11]?Number(e[11]):z,C.enable=void 0!==e[12]&&t(e[12]),A=void 0!==e[13]?e[13]:A,F=void 0!==e[14]?e[14]:F}(),J("Initialising iFrame ("+location.href+")"),function(){if("iFrameResizer"in t&&Object===t.iFrameResizer.constructor){var e;J("Reading data from page: "+JSON.stringify(e=t.iFrameResizer)),Z="messageCallback"in e?e.messageCallback:Z,U="readyCallback"in e?e.readyCallback:U,N="targetOrigin"in e?e.targetOrigin:N,y="heightCalculationMethod"in e?e.heightCalculationMethod:y,F="widthCalculationMethod"in e?e.widthCalculationMethod:F}J("TargetOrigin for parent set to: "+N)}(),void 0===u&&(u=d+"px"),te("margin",(-1!==(o=u).indexOf("-")&&(tt("Negative CSS value ignored for margin"),o=""),o)),te("background",c),te("padding",f),(s=document.createElement("div")).style.clear="both",s.style.display="block",document.body.appendChild(s),ts(),ta(),document.documentElement.style.height="",document.body.style.height="",J('HTML & body height set to "auto"'),J("Enable public methods"),q.parentIFrame={autoResize:function(t){return!0===t&&!1===h?(h=!0,tr()):!1===t&&!0===h&&(h=!1,tl()),h},close:function(){tx(0,0,"close"),J("Disable outgoing messages"),M=!1,J("Remove event listener: Message"),K(t,"message",e),!0===h&&tl()},getId:function(){return I},getPageInfo:function(t){"function"==typeof t?(V=t,tx(0,0,"pageInfo")):(V=function(){},tx(0,0,"pageInfoStop"))},moveToAnchor:function(t){C.findTarget(t)},reset:function(){tw("parentIFrame.reset")},scrollTo:function(t,e){tx(e,t,"scrollTo")},scrollToOffset:function(t,e){tx(e,t,"scrollToOffset")},sendMessage:function(t,e){tx(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){y=t,ts()},setWidthCalculationMethod:function(t){F=t,ta()},setTargetOrigin:function(t){J("Set targetOrigin: "+t),N=t},size:function(t,e){t_("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},tr(),C=function(){function e(e){var n,o,s,a=e.split("#")[1]||e,r=decodeURIComponent(a),l=document.getElementById(r)||document.getElementsByName(r)[0];void 0!==l?(n=l.getBoundingClientRect(),o={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},J("Moving to in page link (#"+a+") at x: "+(s={x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}).x+" y: "+s.y),tx(s.y,s.x,"scrollToOffset")):(J("In page link (#"+a+") not found in iFrame, so sending to parent"),tx(0,0,"inPageLink","#"+a))}function n(){""!==location.hash&&"#"!==location.hash&&e(location.href)}return C.enable?Array.prototype.forEach&&document.querySelectorAll?(J("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&Y(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}),Y(t,"hashchange",n),setTimeout(n,128)):tt("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):J("In page linking not enabled"),{findTarget:e}}(),t_("init","Init message from host page"),U(),v=!1,setTimeout(function(){w=!1},128)):J('Ignored message of type "'+a()+'". Received before initialization.'))}),"loading"!==document.readyState&&t.parent.postMessage("[iFrameResizerChild]Ready","*")}(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=$('
15<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'),window.allMenus=[]}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,o=window.Cookies=t();o.noConflict=function(){return window.Cookies=n,o}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function e(n){function o(e,s,a){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(a=t({path:"/"},o.defaults,a)).expires){var r,l=new Date;l.setMilliseconds(l.getMilliseconds()+864e5*a.expires),a.expires=l}try{r=JSON.stringify(s),/^[\{\[]/.test(r)&&(s=r)}catch(t){}return s=n.write?n.write(s,e):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",s,a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}e||(r={});for(var h=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,d=0;d<h.length;d++){var u=h[d].split("="),p=u.slice(1).join("=");'"'===p.charAt(0)&&(p=p.slice(1,-1));try{var f=u[0].replace(c,decodeURIComponent);if(p=n.read?n.read(p,f):n(p,f)||p.replace(c,decodeURIComponent),this.json)try{p=JSON.parse(p)}catch(t){}if(e===f){r=p;break}e||(r[f]=p)}catch(t){}}return r}}return o.set=o,o.get=function(t){return o.call(o,t)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(e,n){o(e,"",t(n,{expires:-1}))},o.withConverter=e,o}(function(){})}),$(()=>{"use strict";let t=document.querySelectorAll("#shapePnl a"),e=({currentTarget:t})=>{let e=t.classList.item(0),n=t.parentElement.querySelectorAll(":scope > .selected");for(let t of n)t.classList.remove("selected");t.classList.add("selected");let o=document.querySelectorAll("#facePnl");for(let t of o)t.setAttribute("class",e);let s=document.querySelectorAll(`#infoPnl div.${e}`);for(let t of s)for(let e of t.parentElement.children)e.style.display=e===t?"block":"none"};for(let n of t)n.addEventListener("click",e);let n=document.querySelectorAll('#framePnl span[class*="frm"]'),o=({currentTarget:t})=>{let e=t.getAttribute("class"),n=document.querySelectorAll("#framePnl a.selected");for(let t of n)t.classList.remove("selected");t.parentElement.classList.add("selected");let o=document.querySelectorAll("#lrgFrame");for(let t of o)t.setAttribute("class",e)};for(let t of n)t.addEventListener("click",o);let s=1,a=document.querySelectorAll("ul#frameSets li").length,r=document.querySelectorAll("a.prvSet"),l=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(s>1){e.animate({left:"+=720px"},500),s-=1;return}e.animate({left:`-${(a-1)*720}px`},500),s=a};for(let t of r)t.addEventListener("click",l);let h=document.querySelectorAll("a.nxtSet"),c=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(s<a){e.animate({left:"-=720px"},500),s+=1;return}e.animate({left:"0px"},500),s=1};for(let t of h)t.addEventListener("click",c);let d=document.querySelectorAll("a.lnchFrmSlctr"),u=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let t of d)t.addEventListener("click",u);let p=document.querySelectorAll("button.lnch3dspine"),f=t=>{t.stopPropagation(),t.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let t of p)t.addEventListener("click",f);let m=document.querySelectorAll("button.lnchpetselector"),g=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let t of m)t.addEventListener("click",g)}),document.addEventListener("DOMContentLoaded",function(){let t;let e=document.querySelectorAll(".navigation__item.has-drop-down");function n(){e.forEach(t=>{let e=t.getBoundingClientRect(),n=window.innerWidth,o=n-e.right;o<300?t.classList.add("near-edge"):t.classList.remove("near-edge")})}n(),window.addEventListener("resize",function(){clearTimeout(t),t=setTimeout(n,100)})}),function(){"use strict";function t(t){return{enumerable:!0,value:t}}function e(t){return{enumerable:!0,writable:!0,value:t}}function n(t,e){return{enumerable:!0,get:t,set:e}}function o(){throw Error("This method has not been configured!")}window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,window.cancelAnimationFrame||window.mozCancelAnimationFrame,jQuery(document).ready(function(s){var a,r,l=s("body");(s(window),s("<span></span>")).get(0);var h=s(".contactform").first();function c(t){return function(){s("html, body").animate({scrollTop:t.offset().top},"slow")}}
15function d(t){return t.closest('.section[data-control="section"]')}(function(){var a="navigation-open",r="."+a;function h(t){var e=this,n=!1;this.el=t,this.$el=s(t),1===this.$el.data("more-button")&&this.$el,this.$ul=this.$el.children("ul:first-child");var o=this.$el.children("ul").children("li"),a={prev:function(t){t.parent("li").prev("li").children("a").focus()},next:function(t){t.parent("li").next("li").children("a").focus()},parent:function(t){t.parent("li").parent("ul").siblings("a").focus()},child:function(t){t.siblings("ul").find("> li:first-child > a:first-child").focus()}};function r(t){return e.$ul.children("li").children("a").is(t)}var h={ArrowDown:function(t,e){r(t.target)?a.child(e):a.next(e)},ArrowUp:function(t,e){r(t.target)||a.prev(e)},ArrowLeft:function(t,e){r(t.target)?a.prev(e):a.parent(e)},ArrowRight:function(t,e){r(t.target)?a.next(e):a.child(e)}};function d(t){e.el.contains(t.target)||e.closeAll()}this.$el.on("keydown",".navigation__item--link:focus",function(t){h.hasOwnProperty(t.key)&&h[t.key](t,s(t.target))}),this.subMenuR=o.toArray().map(function(t){return new(t.classList.contains("mega-menu"),c)(t,e)}),this.watchAfterOpen=function(){n||(n=!0,l.on("click touchstart",d))},this.ignoreAfterClose=function(){n&&(n=!1,l.off("click touchstart",d))}}function c(t,e,n){var o=this;this.root=e,this.parent=n||null,this.el=t,this.$el=s(t),this.$a=this.$el.children("a"),this.$ul=this.$el.children("ul"),this.$a.on("focus",function(){o.clearExpand(),o.expand()}),this.$ul.find("a").last().on("blur",function(){o.contract()}),this.$ul.length?(this.$el.hover(function(){o.expand()},function(t){o.contract()}),this.$a.on("touchend",function(t){if(!o.isExpanded)return o.clearExpand(),o.expand(),!1}),this.subMenuR=this.$ul.children("li").toArray().map(function(t){return new c(t,e,o)})):this.subMenuR=[]}s(".component.navigation .navigation-a").each(function(t,e){new h(e)}),Object.defineProperties(h,{}),Object.defineProperties(h.prototype,{hasFocus:n(function(){return!!this.$el.find("a:focus").length}),expandedClass:t(a),expandedSelector:t(r),markOpened:t(function(){this.watchAfterOpen()}),closeAll:t(function(){this.$el.find(this.expandedSelector).removeClass(this.expandedClass),this.ignoreAfterClose()}),watchAfterOpen:e(o),ignoreAfterClose:e(o)}),Object.defineProperties(c,{}),Object.defineProperties(c.prototype,{expandedClass:t(a),expandedSelector:t(r),isExpanded:n(function(){return this.el.classList.contains(this.expandedClass)}),expand:t(function(){this.root.markOpened(),this.$el.addClass(this.expandedClass),this.$a.parents("li").addClass(this.expandedClass)}),contract:t(function(){this.$el.removeClass(this.expandedClass).find(this.expandedSelector).removeClass(this.expandedClass)}),clearExpand:t(function(){this.root.closeAll()})})})(),function(t){var e,n,o,a,r=[],h="mobile-controls",u=s(".section-navigation-mobile, .section-navigation-mobile--no-hide").find(".component.navigation").find(".navigation-a, .navigation-b, .navigation-c").first(),p=s(".section-phone-mobile .phone__container").find(".phone__number").first(),f=s(".map__container").first();function m(t,e,n,o){var a=s('<div class="'+h+"__"+t+'"></div>'),r=s('<a title="'+e+'" class="btn btn-link">'+('<i class="icon '+n)+'" aria-hidden="true"></i><span class="sr-only">'+e+"</span></a>").attr("href",o).appendTo(a);return{$el:a,$link:r}}function g(t,e,n,o){var s=m(e,n,o,"#"+(d(t).attr("id")||""));return s.$link.on("click",c(t)),{$el:s.$el,source:t.get(0)}}![u,p,t,f].every(function(t){return 0===t.length})&&(u.length&&(a=s('<div class="'+h+' d-lg-none sticky-top"></div>').prependTo(l),(e=u.clone()).find("button").remove(),e.removeClass().addClass("d-lg-none").find("ul, li, a").removeClass(),u.addClass("d-none d-lg-block"),n=s('<button type="button" title="Show Navigation Menu"><i aria-hidden="true" class="icon icon-bars"></i><span> Menu</span></button>').appendTo(a),e.mmenu({extensions:["pagedim-black"],counters:!0,navbars:[{position:"top",content:["prev","title","close"]},{position:"top",content:["searchfield"]}]}),o=e.data("mmenu"),n.on("click",function(){o.open()})),p.length&&r.push((d(p).attr("id"),{$el:m("phone","Call","icon-phone","tel:+"+p.text().trim().replace(/([^0123456789\-.()])/g,"")).$el,source:p.get(0)}
15)),f.length&&r.push(g(f,"location","Location","icon icon-location-arrow")),t.length&&r.push(g(t,"contact-us","Contact Us","icon-envelope-o")),r.length&&r.sort(function(t,e){return t.source.compareDocumentPosition(e.source)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}).reduce(function(t,e){return t.append(e.$el)},s('<div class="'+h+'__quick-links"></div>')).appendTo(a))}(h),function(t){if(t.length){var e=s("<div>").addClass("contactform-lock");e.on("click",c(t));var n=s("<div>").addClass("browser-lock").append(e);s("body").prepend(n)}}(h),function(){if(self==top){var t=s("link[rel=canonical]").attr("href");if(void 0!=t){var e=t.split("/"),n=e.indexOf("my.martindalenolo.com");if(n>=0){var o=e[n+1];if(!o)return;var a=s("div[data-component-name=editable] a[data-source-type=my-pages]");if(void 0==a||0==a.length)return;a.each(function(){var t=s(this).attr("href");t.split("/").indexOf(o)>=0||s(this).attr("href","/"+o+t)})}}}}(),function(){var t=JSON.parse(s("#ple-data-json").text()).fixedSection;if(void 0!==t){var e=s("#"+t.id).find(".ple__browserlock-modules"),n=e.find("> .row .row");if("custom"==t.spacing.space&&t.spacing.offsetDistance&&parseInt(t.spacing.offsetDistance)!=NaN&&n.each(function(e,n){s(n).css({marginBottom:t.spacing.offsetDistance})}),null!=t.placement.place)switch(t.placement.place){case"center-right":e.css({top:"50%",transform:"translateY(-50%)"});break;case"bottom-right":e.css({top:"auto"}),parseInt(t.placement.offsetDistance)==NaN||t.placement.useDefaultOffset||e.css({bottom:t.placement.offsetDistance});break;default:parseInt(t.placement.offsetDistance)==NaN||t.placement.useDefaultOffset||e.css({top:t.placement.offsetDistance})}}else console.log("browserlock Settings is undefinded")}(),a=s(".ple__back-to-top"),r="active",a.on("click",function(t){t.preventDefault(),s([document.documentElement,document.body]).animate({scrollTop:0},1e3)}),s(window).scroll(function(){s(window).scrollTop()>=400?a.addClass(r):a.removeClass(r)}),function(){function t(){if(!s(".mobileHeader-form").length&&!s(".mobileHeader-location").length&&!s(".mobileHeader-phone").length&&s("#mobileHeaderNavBtn").length){var t=s(".mobileHeader-navigation #mobileHeaderNavBtn").outerWidth(!0);s(".mobileHeader-logo").css("margin-right",t)}if((s(".mobileHeader-form").length||s(".mobileHeader-location").length||s(".mobileHeader-phone").length)&&!s("#mobileHeaderNavBtn").length){var e=s(".mobileHeader-form").width()+s(".mobileHeader-location").width()+s(".mobileHeader-phone").width();e<46&&s(".mobileHeader-logo").css("margin-left",e)}}function e(t){return function(){var e=s(".ple_module_sticky"),n=0;e.length&&e.each(function(){n+=s(this).find(".container").outerHeight(!0)}),0==n&&(n=s(".mobileHeader-container").height()),s("html, body").animate({scrollTop:t.offset().top-n},"slow")}}s(".mobileHeader-container").length&&(s(".section-navigation").length||s(".section-partial nav").length)&&function(){var n,o=s(".mobileHeader-container"),a=o.height(),r=s("#mobileHeaderNavBtn"),l=s("#mobileHeaderNav"),h=s(".mobileHeader-homeIcon"),c=s(".formIconLink"),d=s(".locIconLink"),u=s(".phoneIconLinkExpand"),p=s(".map__container").first(),f=s(".form__container").first(),m=s(".location-list"),g=s(".ple_module_sticky");if(f.length||(f=s(".contactform__container").first()),g.length){var v=g.first().find(".container");s(window).resize(function(){a=o.height(),v.css("padding-top",a)})}if(l.children().length&&(l.mmenu({extensions:["pagedim-black"],counters:!0,navbars:[{position:"top",content:["prev","title","close"]}]}),n=l.data("mmenu"),r.on("click",function(){n.open()})),f.length?c.click(e(f)):c.fadeOut(),p.length?d.click(e(p)):d.fadeOut(),u.click(function(){m.addClass("expand")}),s(".mobileHeader-locWrap").find(".icon-times").click(function(){m.removeClass("expand")}),h.length&&s(".mobileHeader-homeIcon .mm-homeIcon").insertBefore(s("#mobileHeaderNav .mm-navbar-top .mm-title")),o.is("[class*=section__bg]")){var _=o.prop("classList");s.each(_,function(t,e){e.startsWith("section__bg")&&l.addClass(e)})}s(window).load(function(){t()}),s(window).resize(function(){t()})}()}()})}(),$(document).ready(function(){featuredBlocksAAccordion(),bluredBladeBG(),staffOverlapped(),galleryTitle(),navigationVisibility(),bannerOverImage(),bannerAboveImage(),bannerFAb
15stractShape(),footerParallax(),bladeParallax(),bannerTitleHighlight(),partialTestimonialsSlider(),fbFullImage()}),$(window).load(function(){navADropDown2(),bannerDSwoop(),bladeNarrowSbg()}),$(window).resize(function(){navADropDown2()}),$(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.