PageSourceSearch

https://www.vgregion.se/js/visuell-identitet/dist/main.f7a97467402461860df5.js

js vgregion.se collected 2026-09-24 08:59:36 UTC 1,100,807 bytes, 3 lines download raw bytes

1/*! For license information please see main.f7a97467402461860df5.js.LICENSE.txt */
2!function(){var t={4053:function(){const t=document.getElementById("RightsText")?.value,e=[],i=[],n=document.getElementById("area"),s=document.getElementById("function"),o=document.getElementById("D"),r=t?.split("_");if(r)switch(r.length){case 1:a(s),h(o);break;case 2:n.selectedIndex="1",n.disabled=!0,a(s),h(o),function(t){for(var i=0;i<e.length;i++){var n=e[i].value;if(""===n)s.add(e[i]);else{var o=n.split("_");o[0]+"_"+o[1]===t&&s.add(e[i])}}}(t);break;case 3:n.selectedIndex="1",n.disabled=!0,s.selectedIndex="1",s.disabled=!0;break;case 4:n.selectedIndex="1",n.disabled=!0,s.selectedIndex="1",s.disabled=!0,o.selectedIndex=1}function a(t){for(var i=0;i<t.options.length;i++)e.push(t.options[i]);t.innerText=null}function h(t,e){for(var n=0;n<t.options.length;n++)i.push(t.options[n]);t.innerText=null}n&&n.addEventListener("change",function(){s.innerText="Välj verksamhet",o.innerText="Välj avdelning",s.options.length=0;const t=document.createElement("option");t.value="",t.textContent="Välj verksamhet",s.add(t),o.options.length=0;const i=document.createElement("option");i.value="",i.textContent="Välj avdelning",o.add(i);for(var n=0;n<e.length;n++){var r=e[n].value;""!==r&&r.split("_")[0]+"_"+r.split("_")[1]===this.value&&s.add(e[n])}s.selectedIndex=0,o.selectedIndex=0}),s&&s.addEventListener("change",function(){o.innerText="Välj avdelning";for(var t=0;t<i.length;t++){var e=i[t].value;if(""===e)o.add(i[t]);else{var n=e.split("_");n[0]+"_"+n[1]+"_"+n[2]===this.value&&o.add(i[t])}}})},4304:function(t,e,i){var n,s,o;!function(){"use strict";s=[i(4692)],n=function(t){t.ui=t.ui||{},t.ui.version="1.13.0";var e,i,n=0,s=Array.prototype.hasOwnProperty,o=Array.prototype.slice;if(t.cleanData=(e=t.cleanData,function(i){var n,s,o;for(o=0;null!=(s=i[o]);o++)(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove");e(i)}),t.widget=function(e,i,n){var s,o,r,a={},h=e.split(".")[0],l=h+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[l.toLowerCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},s=t[h][e],o=t[h][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(n,function(t,e){a[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=n,this._superApply=s,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||e},a,{constructor:o,namespace:h,widgetName:e,widgetFullName:l}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)}),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,n,r=o.call(arguments,1),a=0,h=r.length;a<h;a++)for(i in r[a])n=r[a][i],s.call(r[a],i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var r="string"==typeof s,a=o.call(arguments,1),h=this;return r?this.length||"instance"!==s?this.each(function(){var i,o=t.data(this,n);return"instance"===s?(h=o,!1):o?"function"!=typeof o[s]||"_"===s.charAt(0)?t.error("no such method '"+s+"' for "+e+" widget instance"):(i=o[s].apply(o,a))!==o&&void 0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):h=void 0:(a.length&&(s=t.widget.extend.apply(null,[s].concat(a))),this.each(function(){var e=t.data(this,n);e?(e.option(s||{}),e._init&&e._init()):t.data(this,n,new i(s,this))})),h}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t
vendor: 5,466 bytes, line 2
2(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),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,i){e._removeClass(i,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,i){var n,s,o,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},n=e.split("."),e=n.shift(),n.length){for(s=r[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)s[n[o]]=s[n[o]]||{},s=s[n[o]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}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 i,n,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(n=t(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,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){var i=[],n=this;function s(){e.element.each(function(e,i){t.map(n.classesElementLookup,function(t){return t}).some(function(t){return t.is(i)})||n._on(t(i),{remove:"_untrackClassesElement"})})}function o(o,r){var a,h;for(h=0;h<o.length;h++)a=n.classesElementLookup[o[h]]||t(),e.add?(s(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),n.classesElementLookup[o[h]]=a,i.push(o[h]),r&&e.classes[o[h]]&&i.push(e.classes[o[h]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,s){-1!==t.inArray(e.target,s)&&(i.classesElementLookup[n]=t(s.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof t||null===t,o={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(e,i,n){var s,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,r){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var h=n.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+o.eventNamespace,c=h[2];c?s.on(l,c,a):i.on(l,a)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),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 i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,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,i,n){var s,o,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,o){var r;"string"==typeof s&&(s={effect:s});var a=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!t.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}}
vendor: 3,897 bytes, line 2
2),t.widget,function(){var e,i=Math.max,n=Math.abs,s=/left|center|right/,o=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,h=/%$/,l=t.fn.position;function c(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function u(e,i){return parseInt(t.css(e,i),10)||0}function d(t){return null!=t&&t===t.window}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,n,s=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),i=o.offsetWidth,s.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=s[0].clientWidth),s.remove(),e=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=d(i[0]),s=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:s,offset:n||s?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return l.apply(this,arguments);var h,p,f,m,g,v,_,y,b="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),x=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(x),M=(e.collision||"flip").split(" "),S={};return v=9===(y=(_=b)[0]).nodeType?{width:_.width(),height:_.height(),offset:{top:0,left:0}}:d(y)?{width:_.width(),height:_.height(),offset:{top:_.scrollTop(),left:_.scrollLeft()}}:y.preventDefault?{width:0,height:0,offset:{top:y.pageY,left:y.pageX}}:{width:_.outerWidth(),height:_.outerHeight(),offset:_.offset()},b[0].preventDefault&&(e.at="left top"),p=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=s.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]),n[0]=s.test(n[0])?n[0]:"center",n[1]=o.test(n[1])?n[1]:"center",t=r.exec(n[0]),i=r.exec(n[1]),S[this]=[t?t[0]:0,i?i[0]:0],e[this]=[a.exec(n[0])[0],a.exec(n[1])[0]]}),1===M.length&&(M[1]=M[0]),"right"===e.at[0]?g.left+=p:"center"===e.at[0]&&(g.left+=p/2),"bottom"===e.at[1]?g.top+=f:"center"===e.at[1]&&(g.top+=f/2),h=c(S.at,p,f),g.left+=h[0],g.top+=h[1],this.each(function(){var s,o,r=t(this),a=r.outerWidth(),l=r.outerHeight(),d=u(this,"marginLeft"),v=u(this,"marginTop"),_=a+d+u(this,"marginRight")+w.width,y=l+v+u(this,"marginBottom")+w.height,C=t.extend({},g),k=c(S.my,r.outerWidth(),r.outerHeight());"right"===e.my[0]?C.left-=a:"center"===e.my[0]&&(C.left-=a/2),"bottom"===e.my[1]?C.top-=l:"center"===e.my[1]&&(C.top-=l/2),C.left+=k[0],C.top+=k[1],s={marginLeft:d,marginTop:v},t.each(["left","top"],function(i,n){t.ui.position[M[i]]&&t.ui.position[M[i]][n](C,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:s,collisionWidth:_,collisionHeight:y,offset:[h[0]+k[0],h[1]+k[1]],my:e.my,at:e.at,within:x,elem:r})}),e.using&&(o=function(t){var s=m.left-C.left,o=s+p-a,h=m.top-C.top,c=h+f-l,u={target:{element:b,left:m.left,top:m.top,width:p,height:f},element:{element:r,left:C.left,top:C.top,width:a,height:l},horizontal:o<0?"left":s>0?"right":"center",vertical:c<0?"top":h>0?"bottom":"middle"};p<a&&n(s+o)<p&&(u.horizontal="center"),f<l&&n(h+c)<f&&(u.vertical="middle"),i(n(s),n(o))>i(n(h),n(c))?u.important="horizontal":u.important="vertical",e.using.call(this,t,u)}),r.offset(t.extend(C,{using:o}))})},t.ui.position={fit:{left:function(t,e){var n,s=e.within,o=s.isWindow?s.scrollLeft:s.offset.left,r=s.width,a=t.left-e.collisionPosition.marginLeft,h=o-a,l=a+e.collisionWidth-r-o;e.collisionWidth>r?h>
vendor: 4,412 bytes, line 2
20&&l<=0?(n=t.left+h+e.collisionWidth-r-o,t.left+=h-n):t.left=l>0&&h<=0?o:h>l?o+r-e.collisionWidth:o:h>0?t.left+=h:l>0?t.left-=l:t.left=i(t.left-a,t.left)},top:function(t,e){var n,s=e.within,o=s.isWindow?s.scrollTop:s.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,h=o-a,l=a+e.collisionHeight-r-o;e.collisionHeight>r?h>0&&l<=0?(n=t.top+h+e.collisionHeight-r-o,t.top+=h-n):t.top=l>0&&h<=0?o:h>l?o+r-e.collisionHeight:o:h>0?t.top+=h:l>0?t.top-=l:t.top=i(t.top-a,t.top)}},flip:{left:function(t,e){var i,s,o=e.within,r=o.offset.left+o.scrollLeft,a=o.width,h=o.isWindow?o.scrollLeft:o.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-a-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];c<0?((i=t.left+d+p+f+e.collisionWidth-a-r)<0||i<n(c))&&(t.left+=d+p+f):u>0&&((s=t.left-e.collisionPosition.marginLeft+d+p+f-h)>0||n(s)<u)&&(t.left+=d+p+f)},top:function(t,e){var i,s,o=e.within,r=o.offset.top+o.scrollTop,a=o.height,h=o.isWindow?o.scrollTop:o.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-a-h,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];c<0?((s=t.top+d+p+f+e.collisionHeight-a-r)<0||s<n(c))&&(t.top+=d+p+f):u>0&&((i=t.top-e.collisionPosition.marginTop+d+p+f-h)>0||n(i)<u)&&(t.top+=d+p+f)}},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.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])}}),t.fn.extend({disableSelection:(i="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(i+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(e,i){var n,s,o,r,a,h=e.nodeName.toLowerCase();return"area"===h?(s=(n=e.parentNode).name,!(!e.href||!s||"map"!==n.nodeName.toLowerCase())&&(o=t("img[usemap='#"+s+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(h)?(r=!e.disabled)&&(a=t(e).closest("fieldset")[0])&&(r=!a.disabled):r="a"===h&&e.href||i,r&&t(e).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"visible"===e}(t(e)))},t.extend(t.expr.pseudos,{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 i=e.data("ui-form-reset-instances");t.each(i,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")}}},t.expr.pseudos||(t.expr.pseudos=t.expr[":"]),t.uniqueSort||(t.uniqueSort=t.unique),!t.escapeSelector){var r=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,a=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t};t.escapeSelector=function(t){return(t+"").replace(r,a)}}t.fn.even&&t.fn.odd||t.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),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.fn.labels=function(){var e,i,n,s,o;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(n=this.attr("id"))&&(o=(e=this.eq(0).parents().last(
vendor: 4,129 bytes, line 2
2)).add(e.length?e.siblings():this.siblings()),i="label[for='"+t.escapeSelector(n)+"']",s=s.add(o.find(i).addBack(i))),this.pushStack(s)):this.pushStack([])},t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr.pseudos,{tabbable:function(e){var i=t.attr(e,"tabindex"),n=null!=i;return(!n||i>=0)&&t.ui.focusable(e,n)}}),t.fn.extend({uniqueId:(h=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++h)})}),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 h,l=!1;t(document).on("mouseup",function(){l=!1}),t.widget("ui.mouse",{version:"1.13.0",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(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!l){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.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 i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),l=!0,0)))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!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,l=!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,i,n){var s,o=t.ui[e].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])}
vendor: 10,369 bytes, line 2
2,call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)t.options[o[s][0]]&&o[s][1].apply(t.element,i)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){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.13.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.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 i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=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,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.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,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.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 i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._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 i=this.options,n="function"==typeof i.helper,s=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&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(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&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,i,n,s=this.options,o=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=t(s.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=s.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]: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()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,o,r=this.options,a=this._isRootNode(this.scrollParent[0]),h=t.pageX,l=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,l=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,o=r.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)
vendor: 4,883 bytes, line 2
2/r.grid[0])*r.grid[0]:this.originalPageX,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(h=this.originalPageX),"x"===r.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?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:a?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,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},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,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.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,i,n){t.each(n.sortables,function(){var s=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(s=!0,t.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(s=!1),s})),s?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",e),n.dropped=o.element,t.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),o=n.options;s.css("cursor")&&(o._cursor=s.css("cursor")),s.css("cursor",o.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),o=n.options;s.css("opacity")&&(o._opacity=s.css("opacity")),s.css("opacity",o.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,o=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-e.pageY<s.scrollSensitivity?r.scrollTop=o=r.scrollTop+s.scrollSpeed:e.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-e.pageX<s.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+s.scrollSpeed:e.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t
vendor: 12,969 bytes, line 2
2(a).scrollTop()<s.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<s.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(a).scrollLeft()<s.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<s.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+s.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var s=n.options;n.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){var s,o,r,a,h,l,c,u,d,p,f=n.options,m=f.snapTolerance,g=i.offset.left,v=g+n.helperProportions.width,_=i.offset.top,y=_+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)l=(h=n.snapElements[d].left-n.margins.left)+n.snapElements[d].width,u=(c=n.snapElements[d].top-n.margins.top)+n.snapElements[d].height,v<h-m||g>l+m||y<c-m||_>u+m||!t.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(c-y)<=m,o=Math.abs(u-_)<=m,r=Math.abs(h-v)<=m,a=Math.abs(l-g)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left)),p=s||o||r||a,"outer"!==f.snapMode&&(s=Math.abs(c-_)<=m,o=Math.abs(u-y)<=m,r=Math.abs(h-g)<=m,a=Math.abs(l-v)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(s||o||r||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=s||o||r||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,o=n.options,r=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).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,i,n){var s=t(i.helper),o=n.options;s.css("zIndex")&&(o._zIndex=s.css("zIndex")),s.css("zIndex",o.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.13.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(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;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept="function"==typeof i?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return s=!0,!1}),!s&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),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")}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&t<e+i}return function(e,i,n,s){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,a=o+e.helperProportions.width,h=r+e.helperProportions.height,l=i.offset.left,c=i.offset.top,u=l+i.proportions().width,d=c+i.proportions().height;switch(n){case"fit":return l<=o&&a<=u&&c<=r&&h<=d;case"intersect":return l<o+e.helperProportions.width/2&&a-e.helperProportions.width/2<u&&c<r+e.helperProportions.height/2&&h-e.helperProportions.height/2<d;case"pointer":return t(s.pageY,c,i.proportions().height)&&t(s.pageX,l,i.proportions().width);case"touch":return(r>=c&&r<=d||h>=c&&h<=d||r<c&&h>d)&&(o>=l&&o<=u||a>=l&&a<=u||o<l&&a>u);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,s,o=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(s=0;s<a.length;s++)if(a[s]===o[n].element[0]){o[n].proportions().height=0;continue t}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!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,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,o,r=t.ui.intersect(e,this,this.options.tolerance,i),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===s})).length&&((n=t(o[0]).droppable("instance")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},!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.13.0",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,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;if(e[n]>0)return!0;try{e[n]=1,s=e[n]>0,e[n]=0}catch(t){}return s},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.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'></div>").css({overflow:"hidden",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(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(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),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,n,s,o,r=this.options,a=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._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)s="ui-resizable-"+(e=String.prototype.trim.call(n[i])),o=t("<
2div>"),this._addClass(o,"ui-resizable-handle "+s),o.css({zIndex:r.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var i,n,s,o;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(s,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,n,s,o=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,n+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},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:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.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 i,n,s=this.originalMousePosition,o=this.axis,r=e.pageX-s.left||0,a=e.pageY-s.top||0,h=this._change[o];return this._updatePrevProperties(),!!h&&(i=h.apply(this,[e,r,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,s,o,r,a,h,l=this.options,c=this;return this._helper&&(s=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=n?0:c.sizeDiff.width,r={width:c.helper.width()-o,height:c.helper.height()-s},a=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,h=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(r,{top:h,left:a})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.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,i,n,s,o,r=this.options;o={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=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),s<o.maxHeight&&(o.maxHeight=s)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 14,552 bytes, line 2
2=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&l&&(t.left=a-e.minWidth),n&&l&&(t.left=a-e.maxWidth),r&&c&&(t.top=h-e.minHeight),s&&c&&(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,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),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:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,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 i=t(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,h={width:i.size.width-a,height:i.size.height-r},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,s,o,r,a,h=t(this).resizable("instance"),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(h.containerElement=t(d),/document/.test(u)||u===document?(h.containerOffset={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(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){i[t]=h._num(e.css("padding"+n))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=h.containerOffset,s=h.containerSize.height,o=h.containerSize.width,r=h._hasScroll(d,"left")?d.scrollWidth:o,a=h._hasScroll(d)?d.scrollHeight:s,h.parentData={element:d,left:n.left,top:n.top,width:r,height:a}))},resize:function(e){var i,n,s,o,r=t(this).resizable("instance"),a=r.options,h=r.containerOffset,l=r.position,c=r._aspectRatio||e.shiftKey,u={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(r._helper?h.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-h.left:r.position.left-u.left),c&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=a.helper?h.left:0),l.top<(r._helper?h.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-h.top:r.position.top),c&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?h.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),s&&o?(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),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-u.left:r.offset.left-h.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-u.top:r.offset.top-h.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,c&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,c&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(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"),i=e.options,n=e.containerOffset,s=e.containerPosition,o=e.containerElement,r=t(e.helper),a=r.offset(),h=r.outerWidth()-e.sizeDiff.width,l=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-s.left-n.left,width:h,height:l})}}),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,i){var n=t(this).resizable("instance"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};t(s.alsoResize).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),s={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(n[e]||0)+(a[e]||0);i&&i>=0&&(s[e]=i||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"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.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,i=t(this).resizable("instance"),n=i.options,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,h="number"==typeof n.grid?[n.grid,n.grid]:n.grid,l=h[0]||1,c=h[1]||1,u=Math.round((s.width-o.width)/l)*l,d=Math.round((s.height-o.height)/c)*c,p=o.width+u,f=o.height+d,m=n.maxWidth&&n.maxWidth<p,g=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,_=n.minHeight&&n.minHeight>f;n.grid=h,v&&(p+=l),_&&(f+=c),m&&(p-=l),g&&(f-=c),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-u):((f-c<=0||p-l<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=r.top-d):(f=c-e.height,i.size.height=f,i.position.top=r.top+o.height-f),p-l>0?(i.size.width=p,i.position.left=r.left-u):(p=l-e.width,i.size.width=p,i.position.left=r.left+o.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.13.0",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 i=t(this),n=i.offset(),s={left:n.left-e.elementPos.left,top:n.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.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 i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,s=t.data(this,"selectable-item");if(s)return n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,o=this.opos[0],r=this.opos[1],a=e.pageX,h=e.pageY;return o>a&&(i=a,a=o,o=i),r>h&&(i=h,h=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:h-r}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),l=!1,c={};i&&i.element!==n.element[0]&&(c.left=i.left+n.elementPos.left,c.right=i.right+n.elementPos.left,c.top=i.top+n.elementPos.top,c.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?l=!(c.left>a||c.right<o||c.top>h||c.bottom<r):"fit"===s.tolerance&&(l=c.left>o&&c.right<a&&c.top>r&&c.bottom<h),l?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.13.0",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}
vendor: 22,017 bytes, line 2
2,_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var 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")})},_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,i){var n=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(s=!0)}),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),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},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),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(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),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(),!n)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.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,s,o,r=this.options;if(this.position=this._generatePosition(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"),this._contactContainers(e),null!==this.innermostContainer)for(r.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"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===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(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(){n._clear(e)})}else this._clear(e,i);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 i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,h=a+t.height,l=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||n+l>a&&n+l<h,d="y"===this.options.axis||e+c>o&&e+c<r,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<h},_intersectsWithPointer:function(t){var e,i,n="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!(!n||!s)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!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;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,o,r=[],a=[],h=this._connectWith();if(h&&e)for(i=h.length-1;i>=0;i--)for(n=(s=t(h[i],this.document[0])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function l(){r.push(this)}for(a.push(["function"==typeof 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]),i=a.length-1;i>=0;i--)a[i][0].each(l);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,o,r,a,h,l,c=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(s=t(d[i],this.document[0])).length-1;n>=0;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(r=u[i][1],n=0,l=(a=u[i][0]).length;n<l;n++)(h=t(a[n])).data(this.widgetName+"-item",r),c.push({item:h,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,s,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),o=s.offset(),n.left=o.left,n.top=o.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),null!==this.innermostContainer&&this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,o){i&&!s.forcePlaceholderSize||(o.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,s,o,r,a,h,l,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(this.innermostContainer=d,d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,o=null,r=(c=d.floating||this._isFloating(this.currentItem))?"left":"top",a=c?"width":"height",u=c?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(h=this.items[n].item.offset()[r],l=!1,e[u]-h>this.items[n][a]/2&&(l=!0),Math.abs(e[u]-h)<s&&(s=Math.abs(e[u]-h),o=this.items[n],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[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")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var 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,i,n,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],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?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,i.top+(n?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,i){i||(i=this.position);var n="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,o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,o=e.pageX,r=e.pageY,a="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(a[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]&&(o=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]&&(o=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&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:a.scrollLeft())}}
vendor: 7,648 bytes, line 2
2,_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.13.0",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:function(t){return t.find("> li > :first-child").add(t.find("> :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(),e.active<0&&(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,i,n=this.options.icons;n&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+n.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,n.header)._addClass(i,null,n.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).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?(e.active=!1,this.active=t()):!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),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):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,i=this.options,n=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.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),i=e.uniqueId().attr("id"),n=e.next(),s=n.uniqueId().attr("id");e.attr("aria-controls",s),n.attr("aria-labelledby",i)}).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(i.event),"fill"===n?(e=s.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.
vendor: 4,848 bytes, line 2
2css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.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"===n&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,n,s=this.options,o=this.active,r=t(e.currentTarget),a=r[0]===o[0],h=a&&s.collapsible,l=h?t():r.next(),c=o.next(),u={oldHeader:o,oldPanel:c,newHeader:h?t():r,newPanel:l};e.preventDefault(),a&&!s.collapsible||!1===this._trigger("beforeActivate",e,u)||(s.active=!h&&this.headers.index(r),this.active=a?t():r,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.activeHeader)._addClass(i,null,s.icons.header)),a||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),s.icons&&(n=r.children(".ui-accordion-header-icon"),this._removeClass(n,null,s.icons.header)._addClass(n,null,s.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,s,o,r=this,a=0,h=t.css("box-sizing"),l=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},u=l&&c.down||c,d=function(){r._toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(s=u),s=s||u.easing||c.easing,o=o||u.duration||c.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:s,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===h&&(a+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-a),a=0)}})):e.animate(this.hideProps,o,s,d):t.animate(this.showProps,o,s,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.13.0",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.lastMousePosition={x:null,y:null},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(),this._activateItem(t)},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.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":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(e){this._delay(function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)}
vendor: 5,933 bytes, line 2
2)},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(e){if(!this.previousFilter&&(e.clientX!==this.lastMousePosition.x||e.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:e.clientX,y:e.clientY};var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n)))}},_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 i,n,s,o,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,n=this.previousFilter||"",o=!1,s=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),s===n?o=!0:s=n+s,i=this._filterMenuItems(s),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(s=String.fromCharCode(e.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(e,i),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,i,n,s,o=this,r=this.options.icons.submenu,a=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=a.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(n,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=a.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")}),s=(n=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"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 i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,s;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.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),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,s,o,r,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,s=e.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.outerHeight(),s<0?this.activeMenu.scrollTop(o+s):s+a>r&&this.activeMenu.scrollTop(o+s-r+a))},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 i=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(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},i?0: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
2se")},_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._menuItems(this.active.children(".ui-menu")).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},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first()),n&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n-s<0}),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,s;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n+s>0}),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu).first())):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 i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return n.test(String.prototype.trim.call(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.13.0",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,i,n,s=this.element[0].nodeName.toLowerCase(),o="textarea"===s,r="input"===s;this.isMultiLine=o||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[o||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,n=!0,void(i=!0);e=!1,n=!1,i=!1;var o=t.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",s);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case o.UP:e=!0,this._keyEvent("previous",s);break;case o.DOWN:e=!0,this._keyEvent("next",s);break;case o.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case o.TAB:this.menu.active&&this.menu.select(s);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 7,263 bytes, line 2
2)},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(e,i){var n,s;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});s=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(n=i.item.attr("aria-label")||s.value)&&String.prototype.trim.call(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(e,i){var n=i.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=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),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 i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,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,i,n=this;Array.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,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(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(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 t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(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 i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.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,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.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 i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var c,u,d=/ui-corner-([a-z]){2,6}/g;function p(){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","Frid
2ay","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:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},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,onUpdateDatepicker: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=f(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function f(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,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",i,m)}function m(){t.datepicker._isDisabledDatepicker(c.inline?c.dpDiv.parent()[0]:c.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 g(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}function v(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.controlgroup",{version:"1.13.0",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,i=[];t.each(this.options.items,function(n,s){var o,r={};if(s)return"controlgroupLabel"===n?((o=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(o,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(o.get()))):void(t.fn[n]&&(r=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(s).each(function(){var s=t(this),o=s[n]("instance"),a=t.widget.extend({},r);if("button"!==n||!s.parent(".ui-spinner").length){o||(o=s[n]()[n]("instance")),o&&(a.classes=e._resolveClassesValues(a.classes,o)),s[n](a);var h=s[n]("widget");t.data(h[0],"ui-controlgroup-data",o||s[n]("instance")),i.push(h[0])}})))}),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var i=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,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){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,i){var n={};return t.each(e,function(t){var s=i.options.classes[t]||"";s=String.prototype.trim.call(s.replace(d,"")),n[t]=(s+" "+e[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=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,n){var s=e[n]().data("ui-controlgroup-data");if(s&&i["_"+s.widgetName+"Options"]){var o=i["_"+s.widgetName+"Options"](1===e.length?"only":n);o.classes=i._resolveClassesValues(o.classes,s),s.element[s.widgetName](o)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.13.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,n=this,s=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){n.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._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();
vendor: 1,426 bytes, line 2
2this.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,i="input[name='"+t.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).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){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>
2"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),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.13.0",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,i){var n="iconPosition"!==e,s=n?this.options.iconPosition:i,o="top"===s||"bottom"===s;this.icon?n&&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")),n&&this._addClass(this.icon,null,i),this._attachIcon(s),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 7,085 bytes, line 2
2pace||(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,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.trigger("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.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),t.fn.button=function(e){return function(i){var n="string"==typeof i,s=Array.prototype.slice.call(arguments,1),o=this;return n?this.length||"instance"!==i?this.each(function(){var e,n=t(this).attr("type"),r="checkbox"!==n&&"radio"!==n?"button":"checkboxradio",a=t.data(this,"ui-"+r);return"instance"===i?(o=a,!1):a?"function"!=typeof a[i]||"_"===i.charAt(0)?t.error("no such method '"+i+"' for button widget instance"):(e=a[i].apply(a,s))!==a&&void 0!==e?(o=e&&e.jquery?o.pushStack(e.get()):e,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):o=void 0:(s.length&&(i=t.widget.extend.apply(null,[i].concat(s))),this.each(function(){var n=t(this).attr("type"),s="checkbox"!==n&&"radio"!==n?"button":"checkboxradio",o=t.data(this,"ui-"+s);if(o)o.option(i||{}),o._init&&o._init();else{if("button"===s)return void e.call(t(this),i);t(this).checkboxradio(t.extend({icon:!1},i))}})),o}}(t.fn.button),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.13.0"}}),t.extend(p.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return g(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,o;s="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,o):s&&this._inlineDatepicker(e,o)},_newInst:function(e,i){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:i,dpDiv:i?f(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,o,r=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span>").addClass(this._appendClass).text(r),e[a?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:o,alt:s,title:s}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),o?i.trigger.html(t("<img>").attr({src:o,alt:s,title:s})):i.trigger.text(s)),e[a?"before":"after"](i.trigger),i.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])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,o=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},o.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,o){var r,a,h,l,c,u=this._dialogInst;return u||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>
2"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",u)),g(u.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(u,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(a=document.documentElement.clientWidth,h=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+l,h/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=n,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",u),this},_destroyDatepicker:function(e){var i,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),c===s&&(c=null,this._curInst=null))},_enableDatepicker:function(e){var i,n,s=t(e),o=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.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 i,n,s=t(e),o=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.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;e<this._disabledInputs.length;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,i,n){var s,o,r,a,h=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):h?"all"===i?t.extend({},h.settings):this._get(h,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),h&&(this._curInst===h&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(h,"min"),a=this._getMinMaxDate(h,"max"),g(h.settings,s),null!==r&&void 0!==s.dateFormat&&void 0===s.minDate&&(h.settings.minDate=this._formatDate(h,r)),null!==a&&void 0!==s.dateFormat&&void 0===s.maxDate&&(h.settings.maxDate=this._formatDate(h,a)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),h),this._autoSize(h),this._setDate(h,o),this._updateAlternate(h),this._updateDatepicker(h))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,s,o=t.datepicker._getInst(e.target),r=!0,a=o.dpDiv.is(".ui-datepicker-rtl");if(o._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+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,s[0]),(i=t.datepicker._get(o,"onSelect"))?(n=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"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,a?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"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,a?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"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 i,n,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,s,o,r,a,h;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(s=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(g(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return!(o|="fixed"===t(this).css("position"))}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,o),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:r.left+"px",to
vendor: 38,049 bytes, line 2
2p:r.top+"px"}),i.inline||(a=t.datepicker._get(i,"showAnim"),h=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[a]?i.dpDiv.show(a,t.datepicker._get(i,"showOptions"),h):i.dpDiv[a||"show"](a?h:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,c=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),s=n[1],o=e.dpDiv.find("."+this._dayOverClass+" a"),r=t.datepicker._get(e,"onUpdateDatepicker");o.length>0&&m.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&e.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),e.dpDiv[(1!==n[0]||1!==n[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&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),i=e.yearshtml=null},0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>h&&h>s?Math.abs(i.left+s-h):0),i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,s,o,r=this._curInst;!r||e&&r!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){t.datepicker._tidyDialog(r)},t.effects&&(t.effects.effect[i]||t.effects[i])?r.dpDiv.hide(i,t.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(o=this._get(r,"onClose"))&&o.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 i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),o=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(o,i,n),this._updateDatepicker(o))},_gotoToday:function(e){var i,n=t(e),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),o=this._getInst(s[0]);o["selected"+("M"===n?"Month":"Year")]=o["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(s)},_selectDay:function(e,i,n,s){var o,r=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((o=this._getInst(r[0])).selectedDay=o.currentDay=parseInt(t("a",s).attr("data-date")),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),o=this._getInst(s[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(n=this._get(o,"onSelect"))?n.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(document).find(o).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,o,r,a,h=0,l=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),u=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,_=-1,y=!1,b=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},x=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),o=i.substring(h).match(s);if(!o)throw"Missing number at position "+h;return h+=o[0].length,parseInt(o[0],10)},w=function(e,n,s){var o=-1,r=t.map(b(e)?s:n,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 n=e[1];if(i.substr(h,n.length).toLowerCase()===n.toLowerCase())return o=e[0],h+=n.length,!1}),-1!==o)return o+1;throw"Unknown name at position "+h},M=function(){if(i.charAt(h)!==e.charAt(s))throw"Unexpected literal at position "+h;h++};for(s=0;s<e.length;s++)if(y)"'"!==e.charAt(s)||b("'")?M():y=!1;else switch(e.charAt(s)){case"d":v=x("d");break;case"D":w("D",u,d);break;case"o":_=x("o");break;case"m":g=x("m");break;case"M":g=w("M",p,f);break;case"y":m=x("y");break;case"@":m=(a=new Date(x("@"))).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"!":m=(a=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"'":b("'")?M():y=!0;break;default:M()}if(h<i.length&&(r=i.substr(h),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=c?0:-100)),_>-1)for(g=1,v=_;!(v<=(o=this._getDaysInMonth(m,g-1)));)g++,v-=o;if((a=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||a.getMonth()+1!==g||a.getDate()!==v)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,h=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},l=function(t,e,i){var n=""+e;if(h(t))for(;n.length<i;)n="0"+n;return n},c=function(t,e,i,n){return h(t)?n[e]:i[e]},u="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||h("'")?u+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":u+=l("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),s,o);break;case"o":u+=l("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+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),r,a);break;case"y":u+=h("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charAt(n)}return u},_possibleChars:function(t){var e,i="",n=!1,s=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_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 i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),o=s,r=this._getFormatConfig(t);try{o=this.parseDate(i,n,r)||s}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=n.getFullYear(),o=n.getMonth(),r=n.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=a.exec(i);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":o+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(h[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,o))}h=a.exec(i)}return new Date(s,o,r)}(i):"number"==typeof i?isNaN(i)?n:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(s=s&&"Invalid Date"===s.toString()?n:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),s===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var i,n,s,o,r,a,h,l,c,u,d,p,f,m,g,v,_,y,b,x,w,M,S,C,k,P,T,E,L,A,O,I,D,N,z,j,R,G,B,H=new Date,F=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),W=this._get(e,"isRTL"),q=this._get(e,"showButtonPanel"),U=this._get(e,"hideIfNoPrevNext"),Z=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),V=this._get(e,"showCurrentAtPos"),X=this._get(e,"stepMonths"),K=1!==Y[0]||1!==Y[1],$=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(e,"min"),Q=this._getMinMaxDate(e,"max"),tt=e.drawMonth-V,et=e.drawYear;if(tt<0&&(tt+=12,et--),Q)for(i=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-Y[0]*Y[1]+1,Q.getDate())),i=J&&i<J?J:i;this._daylightSavingAdjust(new Date(et,tt,1))>i;)--tt<0&&(tt=11,et--);for(e.drawMonth=tt,e.drawYear=et,n=this._get(e,"prevText"),n=Z?this.formatDate(n,this._daylightSavingAdjust(new Date(et,tt-X,1)),this._getFormatConfig(e)):n,s=this._canAdjustMonth(e,-1,et,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML:U?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML,o=this._get(e,"nextText"),o=Z?this.formatDate(o,this._daylightSavingAdjust(new Date(et,tt+X,1)),this._getFormatConfig(e)):o,r=this._canAdjustMonth(e,1,et,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:o}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(o))[0].outerHTML:U?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:o}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(o))[0].outerHTML,a=this._get(e,"currentText"),h=this._get(e,"gotoCurrent")&&e.currentDay?$:F,a=Z?this.formatDate(a,h,this._getFormatConfig(e)):a,l="",e.inline||(l=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),c="",q&&(c=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?l:"").append(this._isInRange(e,h)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(a):"").append(W?"":l)[0].outerHTML),u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(e,"showWeek"),p=this._get(e,"dayNames"),f=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),g=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),_=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),x="",M=0;M<Y[0];M++){for(S="",this.maxRows=4,C=0;C<Y[1];C++){if(k=this._daylightSavingAdjust(new Date(et,tt,e.selectedDay)),P=" ui-corner-all",T="",K){if(T+="<div class='ui-datepicker-group",Y[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",P=" ui-corner-"+(W?"right":"left");break;case Y[1]-1:T+=" ui-datepicker-group-last",P=" ui-corner-"+(W?"left":"right");break;default:T+=" ui-datepicker-group-middle",P=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+P+"'>"+(/all|left/.test(P)&&0===M?W?r:s:"")+(/all|right/.test(P)&&0===M?W?s:r:"")+this._generateMonthYearHeader(e,tt,et,J,Q,M>0||C>0,m,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=d?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",w=0;w<7;w++)E+="<th scope='col'"+((w+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[L=(w+u)%7]+"'>"+f[L]+"</span></th>";for(T+=E+"</tr></thead><tbody>",A=this._getDaysInMonth(et,tt),et===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,A)),O=(this._getFirstDayOfMonth(et,tt)-u+7)%7,I=Math.ceil((O+A)/7),D=K&&this.maxRows>I?this.maxRows:I,this.maxRows=D,N=this._daylightSavingAdjust(new Date(et,tt,1-O)),z=0;z<D;z++){for(T+="<tr>",j=d?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(N)+"</td>":"",w=0;w<7;w++)R=v?v.apply(e.input?e.input[0]:null,[N]):[!0,""],B=(G=N.getMonth()!==tt)&&!y||!R[0]||J&&N<J||Q&&N>Q,j+="<td class='"+((w+u+6)%7>=5?" ui-datepicker-week-end":"")+(G?" ui-datepicker-other-month":"")+(N.getTime()===k.getTime()&&tt===e.selectedMonth&&e._keyEvent||b.getTime()===N.getTime()&&b.getTime()===k.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(G&&!_?"":" "+R[1]+(N.getTime()===$.getTime()?" "+this._currentClass:"")+(N.getTime()===F.getTime()?" ui-datepicker-today":""))+"'"+(G&&!_||!R[2]?"":" title='"+R[2].replace(/'/g,"&#39;")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(G&&!_?"&#xa0;":B?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===F.getTime()?" ui-state-highlight":"")+(N.getTime()===$.getTime()?" ui-state-active":"")+(G?" ui-priority-secondary":"")+"' href='#' aria-current='"+(N.getTime()===$.getTime()?"true":"false")+"' data-date='"+N.getDate()+"'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);T+=j+"</tr>"}++tt>11&&(tt=0,et++),S+=T+="</tbody></table>"+(K?"</div>"+(Y[0]>0&&C===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}x+=S}return x+=c,e._keyEvent=!1,x},_generateMonthYearHeader:function(t,e,i,n,s,o,r,a){var h,l,c,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),b=this._get(t,"selectYearLabel"),x="<div class='ui-datepicker-title'>",w="";if(o||!g)w+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(h=n&&n.getFullYear()===i,l=s&&s.getFullYear()===i,w+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!h||c>=n.getMonth())&&(!l||c<=s.getMonth())&&(w+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+a[c]+"</option>");w+="</select>"}if(_||(x+=w+(!o&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!v)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),m=Math.max(f,p(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+b+"' data-handler='selectYear' data-event='change'>";f<=m;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",x+=t.yearshtml,t.yearshtml=null}return x+=this._get(t,"yearSuffix"),_&&(x+=(!o&&g&&v?"":"&#xa0;")+w),x+"</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,o)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return n&&s>n?n: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,i,n){var s=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),r=null,a=null,h=this._get(t,"yearRange");return h&&(i=h.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!s||e.getTime()>=s.getTime())&&(!o||e.getTime()<=o.getTime())&&(!r||e.getFullYear()>=r)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),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 i=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(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new p,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.13.0",t.datepicker,t.widget("ui.dialog",{version:"1.13.0",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 i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},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 i=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(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,s);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;this._isOpen?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(),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")},_restoreTabbableFocus:function(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_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 i=this.uiDialog.find(":tabbable"),n=i.first(),s=i.last();e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){s.trigger("focus")}),e.preventDefault()):(this._delay(function(){n.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.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_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,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,function(i,n){var s,o;n="function"==typeof n?{click:n,text:i}:n,n=t.extend({type:"button"},n),s=n.click,o={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,t("<button></button>",n).button(o).appendTo(e.uiButtonSet).on("click",function(){s.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var e=this,i=this.options;function n(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,s){e._addClass(t(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",i,n(s))},drag:function(t,i){e._trigger("drag",t,n(i))},stop:function(s,o){var r=o.offset.left-e.document.scrollLeft(),a=o.offset.top-e.document.scrollTop();i.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(a>=0?"+":"")+a,of:e.window},e._removeClass(t(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",s,n(o))}})},_makeResizable:function(){var e=this,i=this.options,n=i.resizable,s=this.uiDialog.css("position"),o="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";function r(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:o,start:function(i,n){e._addClass(t(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",i,r(n))},resize:function(t,i){e._trigger("resize",t,r(i))},stop:function(n,s){var o=e.uiDialog.offset(),a=o.left-e.document.scrollLeft(),h=o.top-e.document.scrollTop();i.height=e.uiDialog.height(),i.width=e.uiDialog.width(),i.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(h>=0?"+":"")+h,of:e.window},e._removeClass(t(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",n,r(s))}}).css("position",s)},_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(),i=t.inArray(this,e);-1!==i&&e.splice(i,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 i=this,n=!1,s={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,i){var n,s,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"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&&((n=o.is(":data(ui-draggable)"))&&!i&&o.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((s=o.is(":data(ui-resizable)"))&&!i&&o.resizable("destroy"),s&&"string"==typeof i&&o.resizable("option","handles",i),s||!1===i||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var 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=t.fn.jquery.substring(0,4),i=!0;this._delay(function(){i=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){if(!i){var n=this._trackingInstances()[0];n._allowInteraction(t)||(t.preventDefault(),n._focusTabbable(),"3.4."!==e&&"3.5."!==e||n._delay(n._restoreTabbableFocus))}}.bind(this)),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.document.off("focusin.ui-dialog"),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.13.0",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){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.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.13.0",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"}
vendor: 4,719 bytes, line 2
2,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,i=this,n=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.trigger("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(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._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,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.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 i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var n=this,s="";t.each(i,function(i,o){var r;o.optgroup!==s&&(r=t("<li>",{text:o.optgroup}),n._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(e),s=o.optgroup),n._renderItemData(e,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>"),s=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(s,i.label),n.append(s).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")}
vendor: 21,317 bytes, line 2
2,_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.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 i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!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),i=!1}i&&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 i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){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 i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var 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;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,n=[];e.each(function(e,s){s.hidden||n.push(i._parseOption(t(s),e))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.13.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,s=this.element.find(".ui-slider-handle"),o=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),e=s.length;e<i;e++)o.push("<span tabindex='0'></span>");this.handles=s.add(t(o.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]]:Array.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 i,n,s,o,r,a,h,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-l.values(e));(s>i||s===i&&(e===l._lastChangedValue||l.values(e)===c.min))&&(s=i,o=t(this),r=e)}),!1!==this._start(e,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),a=o.offset(),h=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-a.left-o.width()/2,top:e.pageY-a.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!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,i,n,s,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),o=this._valueMin()+n*s,this._trimAlignValue(o)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),o[e]=i),i!==s&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,n,s;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!Array.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,n=arguments[0],s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(t,e){var i,n=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,n,s,o,r=this.options.range,a=this.options,h=this,l=!this._animateOff&&a.animate,c={};this._hasMultipleValues()?this.handles.each(function(n){i=(h.values(n)-h._valueMin())/(h._valueMax()-h._valueMin())*100,c["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"animate":"css"](c,a.animate),!0===h.options.range&&("horizontal"===h.orientation?(0===n&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===n&&h.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&h.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),s=this._valueMin(),o=this._valueMax(),i=o!==s?(n-s)/(o-s)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(e){var i,n,s,o=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,o)))return}switch(s=this.options.step,i=n=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(e,o,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.13.0",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(),i=this.element;return t.each(["min","max","step"],function(t,n){var s=i.attr(n);null!=s&&s.length&&(e[n]=s)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(e,i){var n=t.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&i){if(!this.spinning&&!this._start(e))return!1;this._spin((i>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){var i;function n(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}i=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.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){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"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 i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.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,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=t-(e=null!==n.min?n.min:0),t=e+(i=Math.round(i/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,n,s;if("culture"===t||"numberFormat"===t)return i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:v(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:v(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:v(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:v(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:v(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());v(this._value).call(this,t)},widget:function(){return this.uiSpinner}}
vendor: 18,779 bytes, line 2
2),!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.13.0",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,i;e=t.href.replace(u,""),i=location.href.replace(u,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return t.hash.length>1&&e===i}),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),Array.isArray(i.disabled)&&(i.disabled=t.uniqueSort(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,s){if(t(s).attr("aria-controls")===n)return e=i,!1}),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=!i&&0),!i&&!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 i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},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,i){var n=this.tabs.length-1;function s(){return e>n&&(e=0),e<0&&(e=n),e}for(;-1!==t.inArray(s(),this.options.disabled);)e=i?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){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.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,i=this.tabs,n=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({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,n){var s,o,r,a=t(n).uniqueId().attr("id"),h=t(n).closest("li"),l=h.attr("aria-controls");e._isLocal(n)?(r=(s=n.hash).substring(1),o=e.element.find(e._sanitizeSelector(s))):(s="#"+(r=h.attr("aria-controls")||t({}).uniqueId()[0].id),(o=e.element.find(s)).length||(o=e._createPanel(r)).insertAfter(e.panels[i-1]||e.tablist),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-controls":r,"aria-labelledby":a}),o.attr("aria-labelledby",a)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.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 i,n,s;for(Array.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),s=0;n=this.tabs[s];s++)i=t(n),!0===e||-1!==t.inArray(s,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget).closest("li"),o=s[0]===n[0],r=o&&i.collapsible,a=r?t():this._getPanelForTab(s),h=n.length?this._getPanelForTab(n):t(),l={oldTab:n,oldPanel:h,newTab:r?t():s,newPanel:a};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||!1===this._trigger("beforeActivate",e,l)||(i.active=!r&&this.tabs.index(s),this.active=o?t():s,this.xhr&&this.xhr.abort(),h.length||a.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),e),this._toggle(e,l))},_toggle:function(e,i){var n=this,s=i.newPanel,o=i.oldPanel;function r(){n.running=!1,n._trigger("activate",e,i)}function a(){n._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&n.options.show?n._show(s,n.options.show,r):(s.show(),r())}this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){n._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),a()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&o.length?i.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),s.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,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.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),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=Array.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=Array.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var n=this,s=this.tabs.eq(e),o=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),a={tab:s,panel:r},h=function(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(s,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,a)),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),n._trigger("load",i,a),h(s,e)},1)}).fail(function(t,e){setTimeout(function(){h(t,e)},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!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.13.0",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(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),s=t.inArray(i,n);-1!==s&&n.splice(s,1),e.removeData("ui-tooltip-id"),(n=String.prototype.trim.call(n.join(" ")))?e.attr("aria-describedby",n):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,i){var n=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n.element[0],e.close(s,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_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 i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._registerCloseHandlers(e,n),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,s=this,o=e?e.type:null;if("string"==typeof n||n.nodeType||n.jquery)return this._open(e,t,n);(i=n.call(t[0],function(i){s._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))})}))&&this._open(e,t,i)},_open:function(e,i,n){var s,o,r,a,h=t.extend({},this.options.position);function l(t){h.of=t,o.is(":hidden")||o.position(h)}n&&((s=this._find(i))?s.tooltip.find(".ui-tooltip-content").html(n):(i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),o=s.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(a=t("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:l}),l(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){o.is(":visible")&&(l(h.of),clearInterval(r))},13)),this._trigger("open",e,{tooltip:o})))},_registerCloseHandlers:function(e,i){var n={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(n.mouseleave="close"),e&&"focusin"!==e.type||(n.focusout="close"),this._on(!0,i,n)},close:function(e){var i,n=this,s=t(e?e.currentTarget:this.element),o=this._find(s);o?(i=o.tooltip,o.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){n._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,i){t(i.element).attr("title",i.title),delete n.parents[e]}),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),n=t("<div>").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[s]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),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(i,n){var s=t.Event("blur"),o=n.element;s.target=s.currentTarget=o[0],e.close(s,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.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 _,y=t,b={},x=b.toString,w=/^([\-+])=\s*(\d+\.?\d*)/,M=[{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})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([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),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{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]]}}
vendor: 10,864 bytes, line 2
2],S=y.Color=function(t,e,i,n){return new y.Color.fn.parse(t,e,i,n)},C={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},k={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},P=S.support={},T=y("<p>")[0],E=y.each;function L(t){return null==t?t+"":"object"==typeof t?b[x.call(t)]||"object":typeof t}function A(t,e,i){var n=k[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:Math.min(n.max,Math.max(0,t)))}function O(t){var e=S(),i=e._rgba=[];return t=t.toLowerCase(),E(M,function(n,s){var o,r=s.re.exec(t),a=r&&s.parse(r),h=s.space||"rgba";if(a)return o=e[h](a),e[C[h].cache]=o[C[h].cache],i=e._rgba=o._rgba,!1}),i.length?("0,0,0,0"===i.join()&&y.extend(i,_.transparent),e):_[t]}function I(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}T.style.cssText="background-color:rgba(1,1,1,.5)",P.rgba=T.style.backgroundColor.indexOf("rgba")>-1,E(C,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){b["[object "+e+"]"]=e.toLowerCase()}),S.fn=y.extend(S.prototype,{parse:function(t,e,i,n){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=y(t).css(e),e=void 0);var s=this,o=L(t),r=this._rgba=[];return void 0!==e&&(t=[t,e,i,n],o="array"),"string"===o?this.parse(O(t)||_._default):"array"===o?(E(C.rgba.props,function(e,i){r[i.idx]=A(t[i.idx],i)}),this):"object"===o?(E(C,t instanceof S?function(e,i){t[i.cache]&&(s[i.cache]=t[i.cache].slice())}:function(e,i){var n=i.cache;E(i.props,function(e,o){if(!s[n]&&i.to){if("alpha"===e||null==t[e])return;s[n]=i.to(s._rgba)}s[n][o.idx]=A(t[e],o,!0)}),s[n]&&y.inArray(null,s[n].slice(0,3))<0&&(null==s[n][3]&&(s[n][3]=1),i.from&&(s._rgba=i.from(s[n])))}),this):void 0},is:function(t){var e=S(t),i=!0,n=this;return E(C,function(t,s){var o,r=e[s.cache];return r&&(o=n[s.cache]||s.to&&s.to(n._rgba)||[],E(s.props,function(t,e){if(null!=r[e.idx])return i=r[e.idx]===o[e.idx]})),i}),i},_space:function(){var t=[],e=this;return E(C,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var i=S(t),n=i._space(),s=C[n],o=0===this.alpha()?S("transparent"):this,r=o[s.cache]||s.to(o._rgba),a=r.slice();return i=i[s.cache],E(s.props,function(t,n){var s=n.idx,o=r[s],h=i[s],l=k[n.type]||{};null!==h&&(null===o?a[s]=h:(l.mod&&(h-o>l.mod/2?o+=l.mod:o-h>l.mod/2&&(o-=l.mod)),a[s]=A((h-o)*e+o,n)))}),this[n](a)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=S(t)._rgba;return S(y.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=y.map(this._rgba,function(t,e){return null!=t?t:e>2?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=y.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+y.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),S.fn.parse.prototype=S.fn,C.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,o=t[2]/255,r=t[3],a=Math.max(n,s,o),h=Math.min(n,s,o),l=a-h,c=a+h,u=.5*c;return e=h===a?0:n===a?60*(s-o)/l+360:s===a?60*(o-n)/l+120:60*(n-s)/l+240,i=0===l?0:u<=.5?l/c:l/(2-c),[Math.round(e)%360,i,u,null==r?1:r]},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,i=t[1],n=t[2],s=t[3],o=n<=.5?n*(1+i):n+i-n*i,r=2*n-o;return[Math.round(255*I(r,o,e+1/3)),Math.round(255*I(r,o,e)),Math.round(255*I(r,o,e-1/3)),s]},E(C,function(t,e){var i=e.props,n=e.cache,s=e.to,o=e.from;S.fn[t]=function(t){if(s&&!this[n]&&(this[n]=s(this._rgba)),void 0===t)return this[n].slice();var e,r=L(t),a="array"===r||"object"===r?t:arguments,h=this[n].slice();return E(i,function(t,e){var i=a["object"===r?t:e.idx];null==i&&(i=h[e.idx]),h[e.idx]=A(i,e)}),o?((e=S(o(h)))[n]=h,e):S(h)},E(i,function(e,i){S.fn[e]||(S.fn[e]=function(n){var s,o,r,a,h=L(n);return o=(s=this[a="alpha"===e?this._hsla?"hsla":"rgba":t]())[i.idx],"undefined"===h?o:("function"===h&&(h=L(n=n.call(this,o))),null==n&&i.empty?this:("string"===h&&(r=w.exec(n))&&(n=o+parseFloat(r[2])*("+"===r[1]?1:-1)),s[i.idx]=n,this[a](s)))})})}),S.hook=function(t){var e=t.split(" ");E(e,function(t,e){y.cssHooks[e]={set:function(t,i){var n,s,o="";if("transparent"!==i&&("string"!==L(i)||(n=O(i)))){if(i=S(n||i),!P.rgba&&1!==i._rgba[3]){for(s="backgroundColor"===e?t.parentNode:t;(""===o||"transparent"===o)&&s&&s.style;)try{o=y.css(s,"backgroundColor"),s=s.parentNode}catch(t){}i=i.blend(o&&"transparent"!==o?o:"_default")}i=i.toRgbaString()}try{t.style[e]=i}catch(t){}}},y.fx.step[e]=function(t){t.colorInit||(t.start=S(t.elem,e),t.end=S(t.end),t.colorInit=!0),y.cssHooks[e].set(t.elem,t.start.transition(t.end,t.pos))}})},S.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),y.cssHooks.borderColor={expand:function(t){var e={};return E(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},_=y.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"};var D,N="ui-effects-",z="ui-effects-style",j="ui-effects-animated";t.effects={effect:{}},function(){var e=["add","remove","toggle"],i={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function n(t){return t.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})}function s(t){var e,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[e=s[i]]&&(o[n(e)]=s[e]);else for(e in s)"string"==typeof s[e]&&(o[e]=s[e]);return o}t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(y.style(t.elem,i,t.end),t.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,r,a){var h=t.speed(o,r,a);return this.queue(function(){var o,r=t(this),a=r.attr("class")||"",l=h.children?r.find("*").addBack():r;l=l.map(function(){return{el:t(this),start:s(this)}}),(o=function(){t.each(e,function(t,e){n[e]&&r[e+"Class"](n[e])})})(),l=l.map(function(){return this.end=s(this.el[0]),this.diff=function(e,n){var s,o,r={};for(s in n)o=n[s],e[s]!==o&&(i[s]||!t.fx.step[s]&&isNaN(parseFloat(o))||(r[s]=o));return r}(this.start,this.end),this}),r.attr("class",a),l=l.map(function(){var e=this,i=t.Deferred(),n=t.extend({},h,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,l.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.complete.call(r[0])})})},t.fn.extend({addClass:function(e){return function(i,n,s,o){return n?t.effects.animateClass.call(this,{add:i},n,s,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,s,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,s,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,s,o,r){return"boolean"==typeof n||void 0===n?s?t.effects.animateClass.call(this,n?{add:i}:{remove:i},s,o,r):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,s,o)}}(t.fn.toggleClass),switchClass:function(e,i,n,s,o){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,o)}})}(),function(){function e(e,i,n,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),"function"==typeof i&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),"function"==typeof n&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||"function"==typeof e||"object"==typeof e&&!e.effect}function n(t,e){var i=e.outerWidth(),n=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,i,n,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?n:parseFloat(s[3]),left:parseFloat(s[4])||0}}t.expr&&t.expr.pseudos&&t.expr.pseudos.animated&&(t.expr.pseudos.animated=function(e){return function(i){return!!t(i).data(j)||e(i)}}(t.expr.pseudos.animated)),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(N+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(N+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=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()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(n),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.13.0",define:function(e,i,n){return n||(n=i,i="effect"),t.effects.effect[e]=n,t.effects.effect[e].mode=i,n}
vendor: 5,499 bytes, line 2
2,scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1,s="vertical"!==i?(e||100)/100:1;return{height:t.height()*s,width:t.width()*n,outerHeight:t.outerHeight()*s,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();e>1&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(z,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(z)||"",t.removeData(z)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(e){var i,n=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(n)&&(n="absolute",i=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(N+"placeholder",i)),e.css({position:n,left:s.left,top:s.top}),i},removePlaceholder:function(t){var e=N+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(s[i]=o[0]*n+o[1])}),s}}),t.fn.extend({effect:function(){var i=e.apply(this,arguments),n=t.effects.effect[i.effect],s=n.mode,o=i.queue,r=o||"fx",a=i.complete,h=i.mode,l=[],c=function(e){var i=t(this),n=t.effects.mode(i,h)||s;i.data(j,!0),l.push(n),s&&("show"===n||n===s&&"hide"===n)&&i.show(),s&&"none"===n||t.effects.saveStyle(i),"function"==typeof e&&e()};if(t.fx.off||!n)return h?this[h](i.duration,a):this.each(function(){a&&a.call(this)});function u(e){var o=t(this);function r(){"function"==typeof a&&a.call(o[0]),"function"==typeof e&&e()}i.mode=l.shift(),!1===t.uiBackCompat||s?"none"===i.mode?(o[h](),r()):n.call(o[0],i,function(){o.removeData(j),t.effects.cleanUp(o),"hide"===i.mode&&o.hide(),r()}):(o.is(":hidden")?"hide"===h:"show"===h)?(o[h](),r()):n.call(o[0],i,r)}return!1===o?this.each(c).each(u):this.queue(r,c).queue(r,u)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var s=e.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):n(this.css("clip"),this)},transfer:function(e,i){var n=t(this),s=t(e.to),o="fixed"===s.css("position"),r=t("body"),a=o?r.scrollTop():0,h=o?r.scrollLeft():0,l=s.offset(),c={top:l.top-a,left:l.left-h,height:s.innerHeight(),width:s.innerWidth()},u=n.offset(),d=t("<div class='ui-effects-transfer'></div>");d.appendTo("body").addClass(e.className).css({top:u.top-a,left:u.left-h,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),"function"==typeof i&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=n(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})}}(),D={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){D[e]=function(e){return Math.pow(e,t+2)}}),t.extend(D,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(D,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}}),t.effects,t.effects.define("blind","hide",function(e,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=t(this),o=e.direction||"up",r=s.cssClip(),a={clip:t.extend({},r)},h=t.effects.createPlaceholder(s);
vendor: 2,233 bytes, line 2
2a.clip[n[o][0]]=a.clip[n[o][1]],"show"===e.mode&&(s.cssClip(a.clip),h&&h.css(t.effects.clipToBox(a)),a.clip=r),h&&h.animate(t.effects.clipToBox(a),e.duration,e.easing),s.animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var n,s,o,r=t(this),a=e.mode,h="hide"===a,l="show"===a,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(l||h?1:0),f=e.duration/p,m=e.easing,g="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,_=0,y=r.queue().length;for(t.effects.createPlaceholder(r),o=r.css(g),u||(u=r["top"===g?"outerHeight":"outerWidth"]()/3),l&&((s={opacity:1})[g]=o,r.css("opacity",0).css(g,v?2*-u:2*u).animate(s,f,m)),h&&(u/=Math.pow(2,d-1)),(s={})[g]=o;_<d;_++)(n={})[g]=(v?"-=":"+=")+u,r.animate(n,f,m).animate(s,f,m),u=h?2*u:u/2;h&&((n={opacity:0})[g]=(v?"-=":"+=")+u,r.animate(n,f,m)),r.queue(i),t.effects.unshift(r,y,p+1)}),t.effects.define("clip","hide",function(e,i){var n,s={},o=t(this),r=e.direction||"vertical",a="both"===r,h=a||"horizontal"===r,l=a||"vertical"===r;n=o.cssClip(),s.clip={top:l?(n.bottom-n.top)/2:n.top,right:h?(n.right-n.left)/2:n.right,bottom:l?(n.bottom-n.top)/2:n.bottom,left:h?(n.right-n.left)/2:n.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(s.clip),s.clip=n),o.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var n,s=t(this),o="show"===e.mode,r=e.direction||"left",a="up"===r||"down"===r?"top":"left",h="up"===r||"left"===r?"-=":"+=",l="+="===h?"-=":"+=",c={opacity:0};t.effects.createPlaceholder(s),n=e.distance||s["top"===a?"outerHeight":"outerWidth"](!0)/2,c[a]=h+n,o&&(s.css(c),c[a]=l+n,c.opacity=1),s.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){var n,s,o,r,a,h,l=e.pieces?Math.round(Math.sqrt(e.pieces)):3,c=l,u=t(this),d="show"===e.mode,p=u.show().css("visibility","hidden").offset(),f=Math.ceil(u.outerWidth()/c),m=Math.ceil(u.outerHeight()/l),g=[];function v(){g.push(this),g.length===l*c&&(u.css({visibility:"visible"}),t(g).remove(),i())}for(n=0;n<l;n++)for(r=p.top+n*m,h=n-(l-1)/2,s=0;s<c;s++)o=p.left+s*f,a=s-(c-1)/2,u.clone().appendTo("body").wrap("<div></div>
2").css({position:"absolute",visibility:"visible",left:-s*f,top:-n*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:m,left:o+(d?a*f:0),top:r+(d?h*m:0),opacity:d?0:1}).animate({left:o+(d?0:a*f),top:r+(d?0:h*m),opacity:d?1:0},e.duration||500,e.easing,v)}),t.effects.define("fade","toggle",function(e,i){var n="show"===e.mode;t(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var n=t(this),s=e.mode,o="show"===s,r="hide"===s,a=e.size||15,h=/([0-9]+)%/.exec(a),l=e.horizFirst?["right","bottom"]:["bottom","right"],c=e.duration/2,u=t.effects.createPlaceholder(n),d=n.cssClip(),p={clip:t.extend({},d)},f={clip:t.extend({},d)},m=[d[l[0]],d[l[1]]],g=n.queue().length;h&&(a=parseInt(h[1],10)/100*m[r?0:1]),p.clip[l[0]]=a,f.clip[l[0]]=a,f.clip[l[1]]=0,o&&(n.cssClip(f.clip),u&&u.css(t.effects.clipToBox(f)),f.clip=d),n.queue(function(i){u&&u.animate(t.effects.clipToBox(p),c,e.easing).animate(t.effects.clipToBox(f),c,e.easing),i()}).animate(p,c,e.easing).animate(f,c,e.easing).queue(i),t.effects.unshift(n,g,4)}),t.effects.define("highlight","show",function(e,i){var n=t(this),s={backgroundColor:n.css("backgroundColor")};"hide"===e.mode&&(s.opacity=0),t.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var n,s,o,r=t(this),a=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,u="effect"!==c,d=e.scale||"both",p=e.origin||["middle","center"],f=r.css("position"),m=r.position(),g=t.effects.scaledDimensions(r),v=e.from||g,_=e.to||t.effects.scaledDimensions(r,0);t.effects.createPlaceholder(r),"show"===c&&(o=v,v=_,_=o),s={from:{y:v.height/g.height,x:v.width/g.width},to:{y:_.height/g.height,x:_.width/g.width}},"box"!==d&&"both"!==d||(s.from.y!==s.to.y&&(v=t.effects.setTransition(r,h,s.from.y,v),_=t.effects.setTransition(r,h,s.to.y,_)),s.from.x!==s.to.x&&(v=t.effects.setTransition(r,l,s.from.x,v),_=t.effects.setTransition(r,l,s.to.x,_))),"content"!==d&&"both"!==d||s.from.y!==s.to.y&&(v=t.effects.setTransition(r,a,s.from.y,v),_=t.effects.setTransition(r,a,s.to.y,_)),p&&(n=t.effects.getBaseline(p,g),v.top=(g.outerHeight-v.outerHeight)*n.y+m.top,v.left=(g.outerWidth-v.outerWidth)*n.x+m.left,_.top=(g.outerHeight-_.outerHeight)*n.y+m.top,_.left=(g.outerWidth-_.outerWidth)*n.x+m.left),delete v.outerHeight,delete v.outerWidth,r.css(v),"content"!==d&&"both"!==d||(h=h.concat(["marginTop","marginBottom"]).concat(a),l=l.concat(["marginLeft","marginRight"]),r.find("*[width]").each(function(){var i=t(this),n=t.effects.scaledDimensions(i),o={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},r={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x};s.from.y!==s.to.y&&(o=t.effects.setTransition(i,h,s.from.y,o),r=t.effects.setTransition(i,h,s.to.y,r)),s.from.x!==s.to.x&&(o=t.effects.setTransition(i,l,s.from.x,o),r=t.effects.setTransition(i,l,s.to.x,r)),u&&t.effects.saveStyle(i),i.css(o),i.animate(r,e.duration,e.easing,function(){u&&t.effects.restoreStyle(i)})})),r.animate(_,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=r.offset();0===_.opacity&&r.css("opacity",v.opacity),u||(r.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(r)),i()}})}),t.effects.define("scale",function(e,i){var n=t(this),s=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==s?0:100),r=t.extend(!0,{from:t.effects.scaledDimensions(n),to:t.effects.scaledDimensions(n,o,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,i)}),t.effects.define("puff","hide",function(e,i){var n=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,n,i)}),t.effects.define("pulsate","show",function(e,i){var n=t(this),s=e.mode,o="show"===s,r=o||"hide"===s,a=2*(e.times||5)+(r?1:0),h=e.duration/a,l=0,c=1,u=n.queue().length;for(!o&&n.is(":visible")||(n.css("opacity",0).show(),l=1);c<a;c++)n.animate({opacity:l},h,e.easing),l=1-l;n.animate({opacity:l},h,e.easing),n.queue(i),t.effects.unshift(n,u,a+1)}),t.effects.define("shake",function(e,i){var n=1,s=t(this),o=e.direction||"left",r=e.distance||20,a=e.times||3,h=2*a+1,l=Math.round(e.duration/h),c="up"===o||"down"===o?"top":"left",u="up"===o||"left"===o,d={},p={},f={},m=s.queue().length;for(t.effects.createPlaceholder(s),d[c]=(u?"-=":"+=")+r,p[c]=(u?"+=":"-=")+2*r,f[c]=(u?"-=":"+=")+2*r,s.animate(d,l,e.easing);n<a;n++)s.animate(p,l,e.easing).animate(f,l,e.easing);s.animate(p,l,e.easing).animate(d,l/2,e.easing).queue(i),t.effects.unshift(s,m,h+1)}),t.effects.define("slide","show",function(e,i){var n,s,o=t(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]}
2,a=e.mode,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h,u=e.distance||o["top"===l?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),n=o.cssClip(),s=o.position()[l],d[l]=(c?-1:1)*u+s,d.clip=o.cssClip(),d.clip[r[h][1]]=d.clip[r[h][0]],"show"===a&&(o.cssClip(d.clip),o.css(l,d[l]),d.clip=n,d[l]=s),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),!1!==t.uiBackCompat&&t.effects.define("transfer",function(e,i){t(this).transfer(e,i)})},void 0===(o=n.apply(e,s))||(t.exports=o)}()},4550:function(){class t{constructor(t,e){this.element=t,this.options={source:"",header:"",...e},this.initQueryCompletion()}getFrontendLogger(){return window.VgrFrontend&&window.VgrFrontend.logger}setAutocompleteVisibility(t,e,i,n){if(e.classList.toggle("d-none",!n),e.setAttribute("aria-hidden",n?"false":"true"),t.setAttribute("aria-expanded",n?"true":"false"),!n)return t.removeAttribute("aria-activedescendant"),i.classList.remove("search-control-block__has-border"),t.style.border="",void(t.style.boxShadow="");t.style.border="none",t.style.boxShadow="none",i.classList.add("search-control-block__has-border")}initQueryCompletion(){const t=this.element;if(null==t)return;const e=document.getElementById("autocomplete-result"),i=document.getElementById("SearchButton");let n=t.dataset.querycompletionstring,s=location.pathname,o=document.querySelector(".search-control-block__search-input-autocomplete-wrapper");const r=document.getElementById("autocomplete-result-list");s.endsWith("/")||(s+="/");var a="OrganizationQueryCompletion";"episerver"===this.options.source&&(a="ProjectSearchQueryCompletion"),this.addCloseResultContainerListener(t,i,e,o),null!=e&&e.setAttribute("aria-hidden","true"),t.setAttribute("aria-expanded","false"),n||(n="q=");let h="";const l=document.getElementById("SearchScope");l&&l.dataset.scope;const c=this;let u=null;t.addEventListener("keyup",function(i){if("Enter"===i.key)return void c.setAutocompleteVisibility(t,e,o,!1);if("ArrowLeft"==i.key||"ArrowRight"==i.key)return;const s=i.target.value;clearTimeout(u),u=setTimeout(()=>{const h=`/api/querycompletions/OrganizationQueryCompletion?${n.replace(/q=[^&]*/,`q=${encodeURIComponent(s)}`)}`;fetch(h,{method:"Get",headers:{"Content-Type":"application/json"}}).then(t=>{if(!t.ok){const e=c.getFrontendLogger();return e&&"function"==typeof e.logError&&e.logError({category:"organization-search",eventName:"querycompletion-non-ok-response",componentOrWidget:"OrganizationQueryCompletion",url:h,data:{endpoint:a,query:s,status:t.status,url:h}}),console.error("Error fetching autocomplete suggestions:",{status:t.status,url:h,endpoint:a,query:s}),null}return t.json()}).then(i=>{i&&""!==i&&(0!==i.suggestions.length?(c.addSearchQueries(i.suggestions,e,r,t),c.setAutocompleteVisibility(t,e,o,!0)):c.setAutocompleteVisibility(t,e,o,!1))}).catch(t=>{const e=c.getFrontendLogger();e&&"function"==typeof e.logError&&e.logError({category:"organization-search",eventName:"querycompletion-request-failed",componentOrWidget:"OrganizationQueryCompletion",url:h,data:{endpoint:a,query:s,status:t&&t.status,url:h,name:t&&t.name,message:t&&t.message}}),console.error("Error fetching autocomplete suggestions:",t)}),("Alt"===i.key||""==t.value)&&""==t.value.trim()&&c.setAutocompleteVisibility(t,e,o,!1)},300)})}addSearchQueries(t,e,i,n){const s=null!=navigator.userAgent.match(/iPad/i),o=null!=navigator.userAgent.match(/iPhone/i)||null!=navigator.userAgent.match(/iPod/i);e.innerHTML="";var r=document.createElement("section");r.innerHTML='<h2 class="autocomplete-header">'+this.options.header+"<h2>",e.appendChild(r);var a=i??document.createElement("ul");if(a.id="autocomplete-result-list",a.setAttribute("role","listbox"),a.setAttribute("aria-label",this.options.header||"Sökordsförslag"),a.innerHTML="",e.appendChild(a),t.length<1)return;const h=this;t.forEach((t,e)=>{let i="";i="episerver"==h.options.source?t.label:n.dataset.fullquerycompletionresultstring.split("#")[0].replace(/&?q=([^&]$|[^&]*)/i,"")+"&q="+t.label+"#scroll-container";const r=a.appendChild(document.createElement("li"));r.setAttribute("role","presentation");const l=r.appendChild(document.createElement("a"));l.id=`autocomplete-result-option-${e}`,l.innerHTML=t.label_hl,l.href=i,l.tabIndex=0,l.setAttribute("role","option"),0===e&&n.setAttribute("aria-activedescendant",l.id),(s||o)&&a.addEventListener("click",function(t){t.preventDefault();const e=t.target.closest("a");if(e){const t=e.getAttribute("href");window.open(t,"_self")}})})}addCloseResultContainerListener(t,e,i,n){this.closeResultContainerMousedown(t,e,i,n),this.closeResultContainerFocusin(t,e,i,n),this.closeResultContainerEsc(t,i,n)}closeResultContainerMousedown(t,e,i,n){document.body.addEventListener("mousedown",function(e){i.contains(e.target)||e.target===t||this.setAutocompleteVisibility(t,i,n,!1)}.bind(this))}closeResultContainerFocusin(t,e,i,n){document.body.addEventListener("focusin",function(s){const o=document.activeElement.id;
2o===t.id||o===e.id||i.contains(s.target)||this.setAutocompleteVisibility(t,i,n,!1)}.bind(this))}closeResultContainerEsc(t,e,i){document.body.addEventListener("keyup",function(n){27===n.keyCode&&this.setAutocompleteVisibility(t,e,i,!1)}.bind(this))}}document.addEventListener("DOMContentLoaded",function(){new t(document.getElementById("SearchQuery"),{source:"kiv",header:"Sökordsförslag"})})},1799:function(){window.vgrValidationSummaryFieldNavigationInitialized||(window.vgrValidationSummaryFieldNavigationInitialized=!0,document.addEventListener("click",function(t){var e=t.target;if(e instanceof HTMLElement){var i=e.closest("[data-validation-summary-field]");if(i instanceof HTMLAnchorElement){var n=i.getAttribute("data-validation-summary-field");if(n){var s=n.toLowerCase(),o=document.querySelectorAll("input, select, textarea"),r=Array.from(o).find(function(t){return t.id&&t.id.toLowerCase()===s||t.getAttribute("name")&&t.getAttribute("name").toLowerCase()===s});r&&(t.preventDefault(),r.scrollIntoView({behavior:"smooth",block:"start"}),window.setTimeout(function(){r instanceof HTMLElement&&r.focus()},200))}}}}))},4942:function(t,e,i){var n,s,o;s="undefined"!=typeof window?window:this,o=function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}var i={};return e(i,"Core/Globals.js",[],function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,n=e.navigator&&e.navigator.userAgent||"",s=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(n)&&!e.opera,r=-1!==n.indexOf("Firefox"),a=-1!==n.indexOf("Chrome"),h=r&&4>parseInt(n.split("Firefox/")[1],10),l=function(){};return{product:"Highcharts",version:"9.0.1",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:h,hasTouch:!!e.TouchEvent,isMS:o,isWebKit:-1!==n.indexOf("AppleWebKit"),isFirefox:r,isChrome:a,isSafari:!a&&-1!==n.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},supportsPassiveEvents:function(){var t=!1;if(!o){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener&&e.removeEventListener&&(e.addEventListener("testPassive",l,i),e.removeEventListener("testPassive",l,i))}return t}(),symbolSizes:{},svg:s,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:l,charts:[],dateFormats:{}}}),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],function(t){function e(t,i,n,s){var o=i?"Highcharts error":"Highcharts warning";32===t&&(t=o+": Deprecated member");var r=l(t),a=r?o+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(o=function(){if(i)throw Error(a);C.console&&-1===e.messages.indexOf(a)&&console.warn(a)},void 0!==s){var h="";r&&(a+="?"),y(s,function(t,e){h+="\n - "+e+": "+t,r&&(a+=encodeURI(e)+"="+encodeURI(t))}),a+=h}n?x(n,"displayError",{code:t,message:a,params:s},o):o(),e.messages.push(a)}function i(){var t,e=arguments,i={},n=function(t,e){return"object"!=typeof t&&(t={}),y(e,function(i,s){"__proto__"!==s&&"constructor"!==s&&(!r(i,!0)||h(i)||a(i)?t[s]=e[s]:t[s]=n(t[s]||{},i))}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t<s;t++)i=n(i,e[t]);return i}function n(t,e){return parseInt(t,e||10)}function s(t){return"string"==typeof t}function o(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&o(t))}function a(t){return r(t)&&"number"==typeof t.nodeType}function h(t){var e=t&&t.constructor;return!(!r(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function c(t){return null!=t}function u(t,e,i){var n;return s(e)?c(i)?t.setAttribute(e,i):t&&t.getAttribute&&((n=t.getAttribute(e))||"class"!==e||(n=t.getAttribute(e+"Name"))):y(e,function(e,i){t.setAttribute(i,e)}),n}function d(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function p(){for(var t=arguments,e=t.length,i=0;i<e;i++){var n=t[i];if(null!=n)return n}}function f(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),d(e.style,i)}function m(t,e,i,n,s){return t=S.createElement(t),e&&d(t,e),s&&f(t,{padding:"0",border:"none",margin:"0"}),i&&f(t,i),n&&n.appendChild(t),t}function g(t,e){return parseFloat(t.toPrecision(e||14))}function v(e,i,s,o){e=+e||0,i=+i;var r=t.defaultOptions.lang,a=(e.toString().split(".")[1]||"").split("e")[0].length,h=e.toString().split("e"),c=i;if(-1===i)i=Math.min(a,20);else if(l(i)){if(i&&h[1]&&0>h[1]){var u=i+ +h[1];0<=u?(h[0]=(+h[0]).toExponential(u).split("e")[0],i=u):(h[0]=h[0].split(".")[0]||0,e=20>i?(h[0]*Math.pow(10,h[1])).toFixed(i):0,h[1]=0)}}else i=2;var d=(Math.abs(h[1]?h[0]:e)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i);return u=3<(a=String(n(d))).length?a.length%3:0,s=p(s,r.decimalPoint),o=p(o,r.thousandsSep),e=(0>e?"-":"")+(u?a.substr(0,u)+o:""),e=0>+h[1]&&!c?"0":e+a.substr(u).replace(/(\d{3}
2)(?=\d)/g,"$1"+o),i&&(e+=s+d.slice(-i)),h[1]&&0!==+e&&(e+="e"+h[1]),e}function _(t,e){if(!t)return e;var i=t.split(".").reverse();if(1===i.length)return e[t];for(t=i.pop();void 0!==t&&null!=e;)e=e[t],t=i.pop();return e}function y(t,e,i){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(i||t[n],t[n],n,t)}function b(e,i,n){function s(i,n){var s=e.removeEventListener||t.removeEventListenerPolyfill;s&&s.call(e,i,n,!1)}function o(t){var n;if(e.nodeName){if(i){var o={};o[i]=!0}else o=t;y(o,function(e,i){if(t[i])for(n=t[i].length;n--;)s(i,t[i][n].fn)})}}var r="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(r,"hcEvents")){var a=r.hcEvents;i?(r=a[i]||[],n?(a[i]=r.filter(function(t){return n!==t.fn}),s(i,n)):(o(a),a[i]=[])):(o(a),delete r.hcEvents)}}function x(t,e,i,n){if(i=i||{},S.createEvent&&(t.dispatchEvent||t.fireEvent)){var s=S.createEvent("Events");s.initEvent(e,!0,!0),d(s,i),t.dispatchEvent?t.dispatchEvent(s):t.fireEvent(e,s)}else if(t.hcEvents){i.target||d(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e}),s=[];for(var o=t,r=!1;o.hcEvents;)Object.hasOwnProperty.call(o,"hcEvents")&&o.hcEvents[e]&&(s.length&&(r=!0),s.unshift.apply(s,o.hcEvents[e])),o=Object.getPrototypeOf(o);r&&s.sort(function(t,e){return t.order-e.order}),s.forEach(function(e){!1===e.fn.call(t,i)&&i.preventDefault()})}n&&!i.defaultPrevented&&n.call(t,i)}var w,M=t.charts,S=t.doc,C=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var k=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]};y({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,n){t[n]=function(t){var s;return e(32,!1,void 0,((s={})["Highcharts."+n]="use Array."+i,s)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}});var P,T=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(P?"":t)+e++}}(),E=t.getOptions=function(){return t.defaultOptions},L=t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(i(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions};return C.jQuery&&(C.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[s(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):M[u(this[0],"data-highcharts-chart")]}),{addEvent:function(e,i,n,s){void 0===s&&(s={});var o="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={}),o=o.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var r=e.addEventListener||t.addEventListenerPolyfill;return r&&r.call(e,i,n,!!t.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==i.indexOf("touch"):s.passive,capture:!1}),o[i]||(o[i]=[]),o[i].push({fn:n,order:"number"==typeof s.order?s.order:1/0}),o[i].sort(function(t,e){return t.order-e.order}),function(){b(e,i,n)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:u,clamp:function(t,e,i){return t>e?t<i?t:i:e},cleanRecursively:function t(e,i){var n={};return y(e,function(s,o){r(e[o],!0)&&!e.nodeType&&i[o]?(s=t(e[o],i[o]),Object.keys(s).length&&(n[o]=s)):(r(e[o])||e[o]!==i[o])&&(n[o]=e[o])}),n},clearTimeout:function(t){c(t)&&clearTimeout(t)},correctFloat:g,createElement:m,css:f,defined:c,destroyObjectProperties:function(t,e){y(t,function(i,n){i&&i!==e&&i.destroy&&i.destroy(),delete t[n]})},discardElement:function(t){w||(w=m("div")),t&&w.appendChild(t),w.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:d,extendClass:function(t,e){var i=function(){};return d(i.prototype=new t,e),i},find:k,fireEvent:x,format:function(e,i,n){var s="{",o=!1,r=[],a=/f$/,h=/\.([0-9])/,l=t.defaultOptions.lang,c=n&&n.time||t.time;for(n=n&&n.numberFormatter||v;e;){var u=e.indexOf(s);if(-1===u)break;var d=e.slice(0,u);if(o){if(s=_((d=d.split(":")).shift()||"",i),d.length&&"number"==typeof s)if(d=d.join(":"),a.test(d)){var p=parseInt((d.match(h)||["","-1"])[1],10);null!==s&&(s=n(s,p,l.decimalPoint,-1<d.indexOf(",")?l.thousandsSep:""))}else s=c.dateFormat(d,s);r.push(s)}else r.push(d);e=e.slice(u+1),s=(o=!o)?"}":"{"}return r.push(e),r.join("")},getMagnitude:function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},getNestedProperty:_,getOptions:E,getStyle:function(i,s,o){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),(o=i.getBoundingClientRect&&i.getBoundingClientRect().width)<s&&o>=s-1&&(s=Math.floor(o)),Math.max(0,s-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===s?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(C.getComputedStyle||e(27,!0),(i=C.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),p(o,"opacity"!==s)&&(i=n(i))),i)},inArray:function(t,i,n){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,n)},isArray:o,isClass:h,isDOMElement:a,isFunction:function(t){return"function"==typeof t},isNumber:l,isObject:r,isString:s,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)}
2,merge:i,normalizeTickInterval:function(t,e,i,n,s){var o=t,r=t/(i=p(i,1));for(e||(e=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===n&&(1===i?e=e.filter(function(t){return 0==t%1}):.1>=i&&(e=[1/i]))),n=0;n<e.length&&(o=e[n],!(s&&o*i>=t||!s&&r<=(e[n]+(e[n+1]||e[n]))/2));n++);return g(o*i,-Math.round(Math.log(.001)/Math.LN10))},numberFormat:v,objectEach:y,offset:function(t){var e=S.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(C.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(C.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:p,pInt:n,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:b,setOptions:L,splat:function(t){return o(t)?t:[t]},stableSort:function(t,e){var i,n,s=t.length;for(n=0;n<s;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i}),n=0;n<s;n++)delete t[n].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:T,useSerialIds:function(t){return P=p(t,P)},wrap:function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,s=this;return s.proceed=function(){n.apply(s,arguments.length?arguments:e)},t.unshift(n),t=i.apply(this,t),s.proceed=null,t}}}}),e(i,"Core/Renderer/HTML/AST.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.SVG_NS,n=e.attr,s=e.createElement,o=e.discardElement,r=e.error,a=e.isString,h=e.objectEach,l=e.splat,c=!1;try{c=!!(new DOMParser).parseFromString("","text/html")}catch(t){}return function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return h(t,function(i,n){var s=!0;-1===e.allowedAttributes.indexOf(n)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(n)&&(s=a(i)&&e.allowedReferences.some(function(t){return 0===i.indexOf(t)})),s||(r("Highcharts warning: Invalid attribute '"+n+"' in config"),delete t[n])}),t},e.setElementHTML=function(t,i){t.innerHTML="",i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(s){return function s(o,a){var c;return l(o).forEach(function(o){var l=o.tagName,u=o.textContent?t.doc.createTextNode(o.textContent):void 0;if(l)if("#text"===l)var d=u;else if(-1!==e.allowedTags.indexOf(l)){l=t.doc.createElementNS("svg"===l?i:a.namespaceURI||i,l);var p=o.attributes||{};h(o,function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"textContent"!==e&&(p[e]=t)}),n(l,e.filterUserAttributes(p)),u&&l.appendChild(u),s(o.children||[],l),d=l}else r("Highcharts warning: Invalid tagName '"+l+"' in config");d&&a.appendChild(d),c=d}),c}(this.nodes,s)},e.prototype.parseMarkup=function(t){var e=[];if(c)t=(new DOMParser).parseFromString(t,"text/html");else{var i=s("div");i.innerHTML=t,t={body:i}}var n=function(t,e){var i=t.nodeName.toLowerCase(),s={tagName:i};if("#text"===i){if(i=t.textContent||"",/^[\s]*$/.test(i))return;s.textContent=i}if(i=t.attributes){var o={};[].forEach.call(i,function(t){o[t.name]=t.value}),s.attributes=o}if(t.childNodes.length){var r=[];[].forEach.call(t.childNodes,function(t){n(t,r)}),r.length&&(s.children=r)}e.push(s)};return[].forEach.call(t.body.childNodes,function(t){return n(t,e)}),i&&o(i),e},e.allowedTags="a b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text thead tbody tspan td th tr ul #text".split(" "),e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style result rowspan summary target tabindex text-align textAnchor textLength type valign width x x1 xy y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e}()}),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.isNumber,n=e.merge,s=e.pInt;return e=function(){function e(i){return this.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),1]}}],this.rgba=[],t.Color!==e?new t.Color(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return new e(t)},e.prototype.init=function(t){var i,n;
2if((this.input=t=e.names[t&&t.toLowerCase?t.toLowerCase():""]||t)&&t.stops)this.stops=t.stops.map(function(t){return new e(t[1])});else{if(t&&t.charAt&&"#"===t.charAt()){var s=t.length;t=parseInt(t.substr(1),16),7===s?i=[(16711680&t)>>16,(65280&t)>>8,255&t,1]:4===s&&(i=[(3840&t)>>4|(3840&t)>>8,(240&t)>>4|240&t,(15&t)<<4|15&t,1])}if(!i)for(n=this.parsers.length;n--&&!i;){var o=this.parsers[n];(s=o.regex.exec(t))&&(i=o.parse(s))}}this.rgba=i||[]},e.prototype.get=function(t){var e=this.input,s=this.rgba;if(void 0!==this.stops){var o=n(e);o.stops=[].concat(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]})}else o=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":e;return o},e.prototype.brighten=function(t){var e,n=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(e=0;3>e;e++)n[e]+=s(255*t),0>n[e]&&(n[e]=0),255<n[e]&&(n[e]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var i=this.rgba,n=t.rgba;return n.length&&i&&i.length?((t=1!==n[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(n[0]+(i[0]-n[0])*(1-e))+","+Math.round(n[1]+(i[1]-n[1])*(1-e))+","+Math.round(n[2]+(i[2]-n[2])*(1-e))+(t?","+(n[3]+(i[3]-n[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e}(),t.Color=e,t.color=e.parse,e}),e(i,"Core/Color/Palette.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),backgroundColor:"#ffffff",neutralColor100:"#000000",neutralColor80:"#333333",neutralColor60:"#666666",neutralColor40:"#999999",neutralColor20:"#cccccc",neutralColor10:"#e6e6e6",neutralColor5:"#f2f2f2",neutralColor3:"#f7f7f7",highlightColor100:"#003399",highlightColor80:"#335cad",highlightColor60:"#6685c2",highlightColor20:"#ccd6eb",highlightColor10:"#e6ebf5",indicatorPositiveLine:"#06b535",indicatorNegativeLine:"#f21313"}}),e(i,"Core/Animation/Fx.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.win,n=e.isNumber,s=e.objectEach;return e=function(){function e(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return e.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=[],s=this.now||0;if(1!==s&&e&&t)if(e.length===t.length&&1>s)for(var o=0;o<t.length;o++){for(var r=e[o],a=t[o],h=[],l=0;l<a.length;l++){var c=r[l],u=a[l];n(c)&&n(u)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=c+s*(u-c):h[l]=u}i.push(h)}else i=t;else i=this.toD||[];this.elem.attr("d",i,void 0,!0)},e.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},e.prototype.run=function(t,n,s){var o=this,r=o.options,a=function(t){return!a.stopped&&o.step(t)},h=i.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var t=0;t<e.timers.length;t++)e.timers[t]()||e.timers.splice(t--,1);e.timers.length&&h(l)};t!==n||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=n,this.unit=s,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===e.timers.push(a)&&h(l)):(delete r.curAnim[this.prop],r.complete&&0===Object.keys(r.curAnim).length&&r.complete.call(this.elem))},e.prototype.step=function(t){var e=+new Date,i=this.options,n=this.elem,o=i.complete,r=i.duration,a=i.curAnim;if(n.attr&&!n.element)t=!1;else if(t||e>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;s(a,function(t){!0!==t&&(h=!1)}),h&&o&&o.call(n),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,i){function s(t,e){for(;t.length<d;){var i=t[0],n=e[d-t.length];n&&"M"===i[0]&&(t[0]="C"===n[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),h&&t.push(t[t.length-1])}}function o(t,e){for(;t.length<d;)if("C"===(e=t[t.length/l-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),h){var i=t[t.length/l].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}var r=t.startX,a=t.endX;e=e&&e.slice(),i=i.slice();var h=t.isArea,l=h?2:1;if(!e)return[i,i];if(r&&a){for(t=0;t<r.length;t++){if(r[t]===a[0]){var c=t;break}if(r[0]===a[a.length-r.length+t]){c=t;var u=!0;break}if(r[r.length-1]===a[a.length-r.length+t]){c=r.length-t;break}}void 0===c&&(e=[])}if(e.length&&n(c)){var d=i.length+c*l;u?(s(e,i),o(i,e)):(s(i,e),o(e,i))}return[e,i]},e.prototype.fillSetter=function(){e.prototype.strokeSetter.apply(this,arguments)},e.prototype.strokeSetter=function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)},e.timers=[],e}(),t.Fx=e,t.timers=e.timers,e}),e(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,
2i){var n=i.defined,s=i.getStyle,o=i.isArray,r=i.isNumber,a=i.isObject,h=i.merge,l=i.objectEach,c=i.pick;i=e.setAnimation=function(t,e){e.renderer.globalAnimation=c(t,e.options.chart.animation,!0)};var u=e.animObject=function(t){return a(t)?h({duration:500,defer:0},t):{duration:t?500:0,defer:0}},d=e.getDeferredAnimation=function(t,e,i){var s=u(e),o=0,r=0;return(i?[i]:t.series).forEach(function(t){t=u(t.options.animation),o=e&&n(e.defer)?s.defer:Math.max(o,t.duration+t.defer),r=Math.min(s.duration,t.duration)}),t.renderer.forExport&&(o=0),{defer:Math.max(0,o-r),duration:Math.min(o,r)}},p=e.stop=function(e,i){for(var n=t.timers.length;n--;)t.timers[n].elem!==e||i&&i!==t.timers[n].prop||(t.timers[n].stopped=!0)};return{animate:function(e,i,n){var c,u,d,f="";if(!a(n)){var m=arguments;n={duration:m[2],easing:m[3],complete:m[4]}}r(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=h(i),l(i,function(r,a){p(e,a),d=new t(e,n,a),u=null,"d"===a&&o(i.d)?(d.paths=d.initPath(e,e.pathArray,i.d),d.toD=i.d,c=0,u=1):e.attr?c=e.attr(a):(c=parseFloat(s(e,a))||0,"opacity"!==a&&(f="px")),u||(u=r),u&&u.match&&u.match("px")&&(u=u.replace(/px/g,"")),d.run(c,u,f)})},animObject:u,getDeferredAnimation:d,setAnimation:i,stop:p}}),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o){var r=t.animate,a=t.animObject,h=t.stop,l=n.deg2rad,c=n.doc,u=n.hasTouch,d=n.noop,p=n.svg,f=n.SVG_NS,m=n.win,g=o.attr,v=o.createElement,_=o.css,y=o.defined,b=o.erase,x=o.extend,w=o.fireEvent,M=o.isArray,S=o.isFunction,C=o.isNumber,k=o.isString,P=o.merge,T=o.objectEach,E=o.pick,L=o.pInt,A=o.syncTimeout,O=o.uniqueKey;return t=function(){function t(){this.height=this.element=void 0,this.opacity=1,this.renderer=void 0,this.SVG_NS=f,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY roun
2ded".split(" "),this.width=void 0}return t.prototype._defaultGetter=function(t){return t=E(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var n=this.zIndexSetter();return n||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var n,s,o,r={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||k(i))&&(this.alignTo=n=i||"renderer",b(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=E(i,a[n],a),n=t.align,a=t.verticalAlign,h=(i.x||0)+(t.x||0);var l=(i.y||0)+(t.y||0);return"right"===n?s=1:"center"===n&&(s=2),s&&(h+=(i.width-(t.width||0))/s),r[e?"translateX":"x"]=Math.round(h),"bottom"===a?o=1:"middle"===a&&(o=2),o&&(l+=(i.height-(t.height||0))/o),r[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](r),this.placed=!0,this.alignAttr=r,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var n=this,s=a(E(e,this.renderer.globalAnimation,!0));return e=s.defer,E(c.hidden,c.msHidden,c.webkitHidden,!1)&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),A(function(){n.element&&r(n,t,s)},e)):(this.attr(t,void 0,i),T(t,function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})},this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var i=t.split(" ");if(t=i[i.length-1],(i=i[0])&&"none"!==i&&n.svg){this.fakeTS=!0,this.ySetter=this.xSetter,i=i.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*Number(e)+i}),this.removeTextOutline();var s=c.createElementNS(f,"tspan");g(s,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":i,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(t){return e.removeAttribute(t)}),s.appendChild(e)}),(t=c.createElementNS(f,"tspan")).textContent="​",g(t,{x:e.getAttribute("x"),y:e.getAttribute("y")}),s.appendChild(t),e.insertBefore(s,e.firstChild)}},t.prototype.attr=function(t,e,i,n){var s,o,r,a=this.element,l=this,c=this.symbolCustomAttribs;if("string"==typeof t&&void 0!==e){var u=t;(t={})[u]=e}return"string"==typeof t?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,a):(T(t,function(e,i){o=!1,n||h(this,i),this.symbolName&&-1!==c.indexOf(i)&&(s||(this.symbolAttr(t),s=!0),o=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),o||((r=this[i+"Setter"]||this._defaultSetter).call(this,e,i,a),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,r))},this),this.afterSetters()),i&&i.call(this),l},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),y(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,n){var s,o,r,a,h,l,c,u,d,p,f,m=this.renderer,g=[];w(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(r=t[o],h=m.gradients,l=t.stops,d=n.radialReference,M(r)&&(t[o]=r={x1:r[0],y1:r[1],x2:r[2],y2:r[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&d&&!y(r.gradientUnits)&&(a=r,r=P(r,m.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),T(r,function(t,e){"id"!==e&&g.push(e,t)}),T(l,function(t){g.push(t)}),g=g.join(","),h[g])p=h[g].attr("id");else{r.id=p=O();var v=h[g]=m.createElement(o).attr(r).add(m.defs);v.radAttr=a,v.stops=[],l.forEach(function(t){0===t[1].indexOf("rgba")?(s=i.parse(t[1]),c=s.get("rgb"),u=s.get("a")):(c=t[1],u=1),t=m.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":u}).add(v),v.stops.push(t)})}f="url("+m.url+"#"+p+")",n.setAttribute(e,f),n.gradient=g,t.toString=function(){return f}}})},t.prototype.css=function(t){var e=this.styles,i={},n=this.element,s="",o=!e,r=["textOutline","textOverflow","width"];if(t&&t.color&&(t.fill=t.color),e&&T(t,function(t,n){e&&e[n]!==t&&(i[n]=t,o=!0)}),o){if(e&&(t=x(e,i)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===n.nodeName.toLowerCase()&&t.width)var a=this.textWidth=L(t.width);if(this.styles=t,a&&!p&&this.renderer.forExport&&delete t.width,n.namespaceURI===this.SVG_NS){var h=function(t,e){return"-"+e.toLowerCase()};T(t,function(t,e){-1===r.indexOf(e)&&(s+=e.replace(/([A-Z])/g,h)+":"+t+";")}),s&&g(n,"style",s)}else _(n,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=i.length;t--;)i[t]=""+L(i[t])*E(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,n=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0,s=e.ownerSVGElement;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,h(t),t.clipPath&&s){var o=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(o.element.i
2d)&&t.removeAttribute("clip-path")}),t.clipPath=o.destroy()}if(t.stops){for(s=0;s<t.stops.length;s++)t.stops[s].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,t.safeRemoveChild(n.div),delete n.div,n=e;t.alignTo&&b(i.alignedObjects,t),T(t,function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]})},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},t.prototype.destroyTextPath=function(t,e){var i=t.getElementsByTagName("text")[0];if(i){if(i.removeAttribute("dx"),i.removeAttribute("dy"),e.element.setAttribute("id",""),this.textPathWrapper&&i.getElementsByTagName("textPath").length){for(t=this.textPathWrapper.element.childNodes;t.length;)i.appendChild(t[0]);i.removeChild(this.textPathWrapper.element)}}else(t.getAttribute("dx")||t.getAttribute("dy"))&&(t.removeAttribute("dx"),t.removeAttribute("dy"));this.textPathWrapper&&(this.textPathWrapper=this.textPathWrapper.destroy())},t.prototype.dSetter=function(t,e,i){M(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce(function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()},"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0}
2,{duration:E(t,150),complete:function(){e.attr({y:-9999}).hide()}})},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.getBBox=function(e,i){var n,s=this.renderer,o=this.element,r=this.styles,a=this.textStr,h=s.cache,c=s.cacheKeys,u=o.namespaceURI===this.SVG_NS;i=E(i,this.rotation,0);var d=s.styledMode?o&&t.prototype.getStyle.call(o,"font-size"):r&&r.fontSize;if(y(a)){var p=a.toString();-1===p.indexOf("<")&&(p=p.replace(/[0-9]/g,"0")),p+=["",i,d,this.textWidth,r&&r.textOverflow,r&&r.fontWeight].join()}if(p&&!e&&(n=h[p]),!n){if(u||s.forExport){try{var f=this.fakeTS&&function(t){var e=o.querySelector(".highcharts-text-outline");e&&_(e,{display:t})};S(f)&&f("none"),n=o.getBBox?x({},o.getBBox()):{width:o.offsetWidth,height:o.offsetHeight},S(f)&&f("")}catch(t){}(!n||0>n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(s.isSVG&&(e=n.width,s=n.height,u&&(n.height=s={"11px,17":14,"13px,20":16}[r&&r.fontSize+","+Math.round(s)]||s),i&&(r=i*l,n.width=Math.abs(s*Math.sin(r))+Math.abs(e*Math.cos(r)),n.height=Math.abs(s*Math.cos(r))+Math.abs(e*Math.sin(r)))),p&&0<n.height){for(;250<c.length;)delete h[c.shift()];h[p]||c.push(p),h[p]=n}}return n},t.prototype.getStyle=function(t){return m.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?v(e):c.createElementNS(this.SVG_NS,e),this.renderer=t,w(this,"afterInit")},t.prototype.invert=function(t){return this.inverted=t,this.updateTransform(),this},t.prototype.on=function(t,e){var i,n,s,o=this.element;return u&&"click"===t?(o.ontouchstart=function(t){i=t.touches[0].clientX,n=t.touches[0].clientY},o.ontouchend=function(t){i&&4<=Math.sqrt(Math.pow(i-t.changedTouches[0].clientX,2)+Math.pow(n-t.changedTouches[0].clientY,2))||e.call(o,t),s=!0,!1!==t.cancelable&&t.preventDefault()},o.onclick=function(t){s||e.call(o,t)}):o["on"+t]=e,this},t.prototype.opacitySetter=function(t,e,i){this.opacity=t=Number(Number(t).toFixed(3)),i.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(k(t)?new RegExp("(^| )"+t+"( |$)"):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,i){var n=this.element,s=this.text?this.text.element:n,o={textAnchor:"text-anchor"},r=!1,a=this.textPathWrapper,h=!a;i=P(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i);var l=e.filterUserAttributes(i.attributes);if(t&&i&&i.enabled){a&&null===a.element.parentNode?(h=!0,a=a.destroy()):a&&this.removeTextOutline.call(a.parentGroup),this.options&&this.options.padding&&(l.dx=-this.options.padding),a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),r=!0);var c=a.element;if((i=t.element.getAttribute("id"))||t.element.setAttribute("id",i=O()),h)for(s.setAttribute("y",0),C(l.dx)&&s.setAttribute("x",-l.dx),t=[].slice.call(s.childNodes),h=0;h<t.length;h++){var u=t[h];u.nodeType!==Node.TEXT_NODE&&"tspan"!==u.nodeName||c.appendChild(u)}r&&a&&a.add({element:s}),c.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),y(l.dy)&&(c.parentNode.setAttribute("dy",l.dy),delete l.dy),y(l.dx)&&(c.parentNode.setAttribute("dx",l.dx),delete l.dx),T(l,function(t,e){c.setAttribute(o[e]||e,t)}),n.removeAttribute("transform"),this.removeTextOutline.call(a),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=d}else a&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(n,t),this.updateTransform(),this.options&&this.options.rotation&&this.applyTextOutline(this.options.style.textOutline));return this}
2,t.prototype.shadow=function(t,e,i){var n,o=[],r=this.element,a=!1,h=this.oldShadowOptions,l={color:s.neutralColor100,offsetX:1,offsetY:1,opacity:.15,width:3};if(!0===t?n=l:"object"==typeof t&&(n=x(l,t)),n&&(n&&h&&T(n,function(t,e){t!==h[e]&&(a=!0)}),a&&this.destroyShadows(),this.oldShadowOptions=n),n){if(!this.shadows){var c=n.opacity/n.width,u=this.parentInverted?"translate(-1,-1)":"translate("+n.offsetX+", "+n.offsetY+")";for(l=1;l<=n.width;l++){var d=r.cloneNode(!1),p=2*n.width+1-2*l;g(d,{stroke:t.color||s.neutralColor100,"stroke-opacity":c*l,"stroke-width":p,transform:u,fill:"none"}),d.setAttribute("class",(d.getAttribute("class")||"")+" highcharts-shadow"),i&&(g(d,"height",Math.max(g(d,"height")-p,0)),d.cutHeight=p),e?e.element.appendChild(d):r.parentNode&&r.parentNode.insertBefore(d,r),o.push(d)}this.shadows=o}}else this.destroyShadows();return this},t.prototype.show=function(t){return this.attr({visibility:t?"inherit":"visible"})},t.prototype.strokeSetter=function(e,i,n){this[i]=e,this.stroke&&this["stroke-width"]?(t.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===e&&this.hasStroke?(n.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=L(t);else if(""!==t){var i=c.createElementNS(f,"rect");g(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(i){e[i]=E(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||c.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(E(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,i){var n=this.shadows;if(n)for(var s=n.length;s--;)i.call(n[s],"height"===t?Math.max(e-(n[s].cutHeight||0),0):"d"===t?this.d:e,t,n[s])},t.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,s=this.inverted,o=this.rotation,r=this.matrix,a=this.element;s&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],y(r)&&t.push("matrix("+r.join(",")+")"),s?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+E(this.rotationOriginX,a.getAttribute("x"),0)+" "+E(this.rotationOriginY,a.getAttribute("y")||0)+")"),(y(i)||y(n))&&t.push("scale("+E(i,1)+" "+E(n,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i=this.renderer,n=this.parentGroup,s=(n||i).element||i.box,o=this.element,r=!1;i=s===i.box;var a,h=this.added;if(y(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):y(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&n&&(n.handleZ=!0),a=(e=s.childNodes).length-1;0<=a&&!r;a--){h=(n=e[a]).getAttribute("data-z-index");var l=!y(h);n!==o&&(0>t&&l&&!i&&!a?(s.insertBefore(o,e[a]),r=!0):(L(h)<=t||l&&(!y(t)||0<=t))&&(s.insertBefore(o,e[a+1]||null),r=!0))}r||(s.insertBefore(o,e[i?3:0]||null),r=!0)}return r},t}(),t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},n.SVGElement=t,n.SVGElement}
2),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e){function i(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=e.defined,o=e.extend,r=e.isNumber,a=e.merge,h=e.pick,l=e.removeEvent;return function(e){function c(t,n,s,o,r,a,h,l,u,d){var p=e.call(this)||this;if(p.paddingSetter=i,p.paddingLeftSetter=i,p.paddingRightSetter=i,p.init(t,"g"),p.textStr=n,p.x=s,p.y=o,p.anchorX=a,p.anchorY=h,p.baseline=u,p.className=d,"button"!==d&&p.addClass("highcharts-label"),d&&p.addClass("highcharts-"+d),p.text=t.text("",0,0,l).attr({zIndex:1}),"string"==typeof r){var f=/^url\((.*?)\)$/.test(r);(p.renderer.symbols[r]||f)&&(p.symbolKey=r)}return p.bBox=c.emptyBBox,p.padding=3,p.baselineOffset=0,p.needsBox=t.styledMode||f,p.deferredAttr={},p.alignFactor=0,p}return n(c,e),c.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},c.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},c.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},c.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},c.prototype.css=function(e){if(e){var i={};e=a(e),c.textProps.forEach(function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])}),this.text.css(i);var n="width"in i;"fontSize"in i||"fontWeight"in i?this.updateTextPadding():n&&this.updateBoxSize()}return t.prototype.css.call(this,e)},c.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},c.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},c.prototype.getBBox=function(){var t=this.bBox,e=this.padding,i=h(this.paddingLeft,e);return{width:this.width,height:this.height,x:t.x-i,y:t.y-e}},c.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},c.prototype.heightSetter=function(t){this.heightSetting=t},c.prototype.on=function(e,i){var n=this,s=n.text,o=s&&"SPAN"===s.element.tagName?s:void 0;if(o){var r=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(n.element.compareDocumentPosition(t.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY||o.element.compareDocumentPosition(t.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||i.call(n.element,t)};o.on(e,r)}return t.prototype.on.call(n,e,r||i),n},c.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},c.prototype.rSetter=function(t,e){this.boxAttr(e,t)},c.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},c.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},c.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},c.prototype["text-alignSetter"]=function(t){this.textAlign=t},c.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},c.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,n=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?c.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||n.height||0)+2*i,this.baselineOffset=i+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,n.height||1/0),this.needsBox&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(o(e,this.deferredAttr)),this.deferredAttr={})},c.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=h(this.paddingLeft,this.padding);s(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||
2(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},c.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},c.prototype.getPaddedWidth=function(){var t=this.padding,e=h(this.paddingLeft,t);return t=h(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},c.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},c.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},c.emptyBBox={width:0,height:0,x:0,y:0},c.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),c}(t)}),e(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],function(t,e,i){var n=t.doc,s=t.SVG_NS,o=e.attr,r=e.isString,a=e.objectEach,h=e.pick;return function(){function t(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return t.prototype.buildSVG=function(){var t=this.svgElement,e=t.element,s=t.renderer,o=h(t.textStr,"").toString(),a=-1!==o.indexOf("<"),l=e.childNodes,c=l.length;s=this.width&&!t.added&&s.box;var u=[o,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(u!==t.textCache){for(t.textCache=u,delete t.actualWidth;c--;)e.removeChild(l[c]);a||this.ellipsis||this.width||-1!==o.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(o))?""!==o&&(s&&s.appendChild(e),o=new i(o),this.modifyTree(o.nodes),o.addToDOM(t.element),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("…")&&t.attr("title",this.unescapeEntities(t.textStr||"",["&lt;","&gt;"])),s&&s.removeChild(e)):e.appendChild(n.createTextNode(this.unescapeEntities(o))),r(this.textOutline)&&t.applyTextOutline&&t.applyTextOutline(this.textOutline)}},t.prototype.modifyDOM=function(){var t=this,e=this.svgElement,i=o(e.element,"x");[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),function(e){e.nextSibling&&e.previousSibling&&o(e,{dy:t.getLineHeight(e.nextSibling),x:i})});var r=this.width||0;if(r){var a=function(a,h){var l=a.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),u=!t.noWrap&&(1<c.length||1<e.element.childNodes.length),d=t.getLineHeight(h),p=0,f=e.actualWidth;if(t.ellipsis)l&&t.truncate(a,l,void 0,0,Math.max(0,r-parseInt(t.fontSize||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(u){for(l=[],u=[];h.firstChild&&h.firstChild!==a;)u.push(h.firstChild),h.removeChild(h.firstChild);for(;c.length;)c.length&&!t.noWrap&&0<p&&(l.push(a.textContent||""),a.textContent=c.join(" ").replace(/- /g,"-")),t.truncate(a,void 0,c,0===p&&f||0,r,function(t,e){return c.slice(0,e).join(" ").replace(/- /g,"-")}),f=e.actualWidth,p++;u.forEach(function(t){h.insertBefore(t,a)}),l.forEach(function(t){h.insertBefore(n.createTextNode(t),a),(t=n.createElementNS(s,"tspan")).textContent="​",o(t,{dy:d,x:i}),h.insertBefore(t,a)})}},h=function(t){[].slice.call(t.childNodes).forEach(function(i){i.nodeType===Node.TEXT_NODE?a(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),h(i))})};h(e.element)}},t.prototype.getLineHeight=function(t){var e;return t=t.nodeType===Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},t.prototype.modifyTree=function(t){var e=this,i=function(n,s){var o=n.tagName,a=e.renderer.styledMode,h=n.attributes||{};"b"===o||"strong"===o?a?h.class="highcharts-strong":h.style="font-weight:bold;"+(h.style||""):"i"!==o&&"em"!==o||(a?h.class="highcharts-emphasized":h.style="font-style:italic;"+(h.style||"")),r(h.style)&&(h.style=h.style.replace(/(;| |^)color([ :])/,"$1fill$2")),"br"===o&&(h.class="highcharts-br",n.textContent="​",(s=t[s+1])&&s.textContent&&(s.textContent=s.textContent.replace(/^ +/gm,""))),"#text"!==o&&"a"!==o&&(n.tagName="tspan"),n.attributes=h,n.children&&n.children.filter(function(t){return"#text"!==t.tagName}
2).forEach(i)};for(t.forEach(i);t[0]&&"tspan"===t[0].tagName&&!t[0].children;)t.splice(0,1)},t.prototype.truncate=function(t,e,i,n,s,o){var r,a=this.svgElement,h=a.renderer,l=a.rotation,c=[],u=i?1:0,d=(e||i||"").length,p=d,f=function(s,r){r=r||s;var l=t.parentNode;if(l&&void 0===c[r])if(l.getSubStringLength)try{c[r]=n+l.getSubStringLength(0,i?r+1:r)}catch(t){}else h.getSpanWidth&&(t.textContent=o(e||i,s),c[r]=n+h.getSpanWidth(a,t));return c[r]};a.rotation=0;var m=f(t.textContent.length);if(n+m>s){for(;u<=d;)p=Math.ceil((u+d)/2),i&&(r=o(i,p)),m=f(p,r&&r.length-1),u===d?u=d+1:m>s?d=p-1:u=p;0===d?t.textContent="":e&&d===e.length-1||(t.textContent=r||o(e||i,p))}i&&i.splice(0,p),a.actualWidth=m,a.rotation=l},t.prototype.unescapeEntities=function(t,e){return a(this.renderer.escapes,function(i,n){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),n))}),t},t}()}),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o,r,a){var h=a.addEvent,l=a.attr,c=a.createElement,u=a.css,d=a.defined,p=a.destroyObjectProperties,f=a.extend,m=a.isArray,g=a.isNumber,v=a.isObject,_=a.isString,y=a.merge,b=a.pick,x=a.pInt,w=a.uniqueKey,M=e.charts,S=e.deg2rad,C=e.doc,k=e.isFirefox,P=e.isMS,T=e.isWebKit;a=e.noop;var E,L=e.SVG_NS,A=e.symbolSizes,O=e.win,I=function(){function e(t,e,i,n,s,o,r){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,n,s,o,r)}return e.prototype.init=function(t,e,i,n,s,o,r){var a,c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});r||c.css(this.getStyle(n)),n=c.element,t.appendChild(n),l(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&l(n,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=n,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(C.createTextNode("Created with Highcharts 9.0.1")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=s,this.styledMode=r,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),k&&t.getBoundingClientRect&&((e=function(){u(t,{left:0,top:0}),a=t.getBoundingClientRect(),u(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=h(O,"resize",e))},e.prototype.definition=function(t){return new o([t]).addToDOM(this.defs.element)},e.prototype.getReferenceURL=function(){if((k||T)&&C.getElementsByTagName("base").length){if(!d(E)){var t=w();t=new o([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+t+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(C.body),u(t,{position:"fixed",top:0,left:0,zIndex:9e5});var e=C.elementFromPoint(6,6);E="hitme"===(e&&e.id),C.body.removeChild(t)}if(E)return O.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},e.prototype.getStyle=function(t){return this.style=f({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),p(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},e.prototype.buildText=function(t){new r(t).buildSVG()},e.prototype.getContrast=function(e){return(e=t.parse(e).rgba)[0]*=1,e[1]*=1.2,e[2]*=.5,459<e[0]+e[1]+e[2]?"#000000":"#FFFFFF"},e.prototype.button=function(t,e,n,s,r,a,l,c,u,d){var p=this.label(t,e,n,u,void 0,void 0,d,void 0,"button"),m=0,g=this.styledMode,v=r?y(r):{};if(t=v&&v.style||{},v=o.filterUserAttributes(v),p.attr(y({padding:8,r:2},v)),!g){var _=(v=y({fill:i.neutralColor3,stroke:i.neutralColor20,"stroke-width":1,style:{color:i.neutralColor80,cursor:"pointer",fontWeight:"normal"}},{style:t},v)).style;delete v.style;var b=(a=y(v,{fill:i.neutralColor10},o.filterUserAttributes(a||{}))).style;delete a.style;var x=(l=y(v,{fill:i.highlightColor10,style:{color:i.neutralColor100,fontWeight:"bold"}},o.filterUserAttributes(l||{}))).style;delete l.style;var w=(c=y(v,{style:{color:i.neutralColor20}},o.filterUserAttributes(c||{}))).style;delete c.style}return h(p.element,P?"mouseover":"mouseenter",function(){3!==m&&p.setState(1)}),h(p.element,P?"mouseout":"mouseleave",function(){3!==m&&p.setState(m)}),p.setState=function(t){1!==t&&(p.state=m=t),p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),g||p.attr([v,a,l,c][t||0]).css([_,b,x,w][t||0])},g||p.attr(v).css(f({cursor:"default"},_)),p.on("click",function(t){3!==m&&s.call(p,t)})}
2,e.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var n=t[0],s=t[1];return n[1]===s[1]&&(n[1]=s[1]=Math[i](n[1])-e%2/2),n[2]===s[2]&&(n[2]=s[2]=Math[i](n[2])+e%2/2),t},e.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return m(t)?e.d=t:v(t)&&f(e,t),this.createElement("path").attr(e)},e.prototype.circle=function(t,e,i){return t=v(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},e.prototype.arc=function(t,e,i,n,s,o){return v(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:s,end:o},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},e.prototype.rect=function(t,e,i,n,s,o){s=v(t)?t.r:s;var r=this.createElement("rect");return t=v(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(n,0)},this.styledMode||(void 0!==o&&(t.strokeWidth=o,t=r.crisp(t)),t.fill="none"),s&&(t.r=s),r.rSetter=function(t,e,i){r.r=t,l(i,{rx:t,ry:t})},r.rGetter=function(){return r.r},r.attr(t)},e.prototype.setSize=function(t,e,i){var n=this.alignedObjects,s=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:b(i,!0)?void 0:0});s--;)n[s].align()},e.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},e.prototype.image=function(t,e,i,n,s,o){var r={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},l=function(e){a(c.element,t),o.call(c,e)};1<arguments.length&&f(r,{x:e,y:i,width:n,height:s});var c=this.createElement("image").attr(r);return o?(a(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r=new O.Image,h(r,"load",l),r.src=t,r.complete&&l({})):a(c.element,t),c},e.prototype.symbol=function(t,e,i,n,s,o){var r,a=this,h=/^url\((.*?)\)$/,l=h.test(t),p=!l&&(this.symbols[t]?t:"circle"),m=p&&this.symbols[p];if(m){"number"==typeof e&&(r=m.call(this.symbols,Math.round(e||0),Math.round(i||0),n||0,s||0,o));var g=this.path(r);a.styledMode||g.attr("fill","none"),f(g,{symbolName:p,x:e,y:i,width:n,height:s}),o&&f(g,o)}else if(l){var v=t.match(h)[1];(g=this.image(v)).imgwidth=b(A[v]&&A[v].width,o&&o.width),g.imgheight=b(A[v]&&A[v].height,o&&o.height);var _=function(){g.attr({width:g.width,height:g.height})};["width","height"].forEach(function(t){g[t+"Setter"]=function(t,e){var i={},n=this["img"+e],s="width"===e?"translateX":"translateY";this[e]=t,d(n)&&(o&&"within"===o.backgroundSize&&this.width&&this.height&&(n=Math.round(n*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,n),this.alignByTranslate||(i[s]=((this[e]||0)-n)/2,this.attr(i)))}}),d(e)&&g.attr({x:e,y:i}),g.isImg=!0,d(g.imgwidth)&&d(g.imgheight)?_():(g.attr({width:0,height:0}),c("img",{onload:function(){var t=M[a.chartIndex];0===this.width&&(u(this,{position:"absolute",top:"-999em"}),C.body.appendChild(this)),A[v]={width:this.width,height:this.height},g.imgwidth=this.width,g.imgheight=this.height,g.element&&_(),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:v}),this.imgCount++)}return g},e.prototype.clipRect=function(t,e,i,n){var s=w()+"-",o=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,n,0).add(o)).id=s,t.clipPath=o,t.count=0,t},e.prototype.text=function(t,e,i,n){var s={};return!n||!this.allowHTML&&this.forExport?(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),d(t)&&(s.text=t),t=this.createElement("text").attr(s),n||(t.xSetter=function(t,e,i){var n,s=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(n=0;n<s.length;n++){var r=s[n];r.getAttribute(e)===o&&r.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},e.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!O.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&n.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?x(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}}
2,e.prototype.rotCorr=function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*S),4)),{x:-t/3*Math.sin(e*S),y:n}},e.prototype.pathToSegments=function(t){for(var e=[],i=[],n={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},s=0;s<t.length;s++)_(i[0])&&g(t[s])&&i.length===n[i[0].toUpperCase()]&&t.splice(s,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[s]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[s]);return e.push(i.slice(0)),e},e.prototype.label=function(t,e,i,n,o,r,a,h,l){return new s(this,t,e,i,n,o,r,a,h,l)},e}();return I.prototype.Element=n,I.prototype.SVG_NS=L,I.prototype.draw=a,I.prototype.escapes={"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},I.prototype.symbols={circle:function(t,e,i,n){return this.arc(t+i/2,e+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,n){return[["M",t,e],["L",t+i,e],["L",t+i,e+n],["L",t,e+n],["Z"]]},triangle:function(t,e,i,n){return[["M",t+i/2,e],["L",t+i,e+n],["L",t,e+n],["Z"]]},"triangle-down":function(t,e,i,n){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+n],["Z"]]},diamond:function(t,e,i,n){return[["M",t+i/2,e],["L",t+i,e+n/2],["L",t+i/2,e+n],["L",t,e+n/2],["Z"]]},arc:function(t,e,i,n,s){var o=[];if(s){var r=s.start||0,a=s.end||0,h=s.r||i;i=s.r||n||i;var l=.001>Math.abs(a-r-2*Math.PI);a-=.001,n=s.innerR,l=b(s.open,l);var c=Math.cos(r),u=Math.sin(r),p=Math.cos(a),f=Math.sin(a);r=b(s.longArc,.001>a-r-Math.PI?0:1),o.push(["M",t+h*c,e+i*u],["A",h,i,0,r,b(s.clockwise,1),t+h*p,e+i*f]),d(n)&&o.push(l?["M",t+n*p,e+n*f]:["L",t+n*p,e+n*f],["A",n,n,0,r,d(s.clockwise)?1-s.clockwise:0,t+n*c,e+n*u]),l||o.push(["Z"])}return o},callout:function(t,e,i,n,s){var o=Math.min(s&&s.r||0,i,n),r=o+6,a=s&&s.anchorX;s=s&&s.anchorY||0;var h=[["M",t+o,e],["L",t+i-o,e],["C",t+i,e,t+i,e,t+i,e+o],["L",t+i,e+n-o],["C",t+i,e+n,t+i,e+n,t+i-o,e+n],["L",t+o,e+n],["C",t,e+n,t,e+n,t,e+n-o],["L",t,e+o],["C",t,e,t,e,t+o,e]];return g(a)?(t+a>=i?s>e+r&&s<e+n-r?h.splice(3,1,["L",t+i,s-6],["L",t+i+6,s],["L",t+i,s+6],["L",t+i,e+n-o]):h.splice(3,1,["L",t+i,n/2],["L",a,s],["L",t+i,n/2],["L",t+i,e+n-o]):0>=t+a?s>e+r&&s<e+n-r?h.splice(7,1,["L",t,s+6],["L",t-6,s],["L",t,s-6],["L",t,e+o]):h.splice(7,1,["L",t,n/2],["L",a,s],["L",t,n/2],["L",t,e+o]):s&&s>n&&a>t+r&&a<t+i-r?h.splice(5,1,["L",a+6,e+n],["L",a,e+n+6],["L",a-6,e+n],["L",t+o,e+n]):s&&0>s&&a>t+r&&a<t+i-r&&h.splice(1,1,["L",a-6,e],["L",a,e-6],["L",a+6,e],["L",i-o,e]),h):h}},e.SVGRenderer=I,e.Renderer=e.SVGRenderer,e.Renderer}),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i){var n=i.css,s=i.defined,o=i.extend,r=i.pick,a=i.pInt,h=t.isFirefox;return o(e.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=r(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var s=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=o(this.styles,t),n(this.element,t),s&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,r=this.x||0,h=this.y||0,l=this.textAlign||"left",c={left:0,center:.5,right:1}[l],u=this.styles,d=u&&u.whiteSpace;if(n(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){n(t,{marginLeft:i+1,marginTop:o+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){u=this.rotation;var p,f=this.textWidth&&a(this.textWidth),m=[u,l,e.innerHTML,this.textWidth,this.textAlign].join();(p=f!==this.oldTextWidth)&&!(p=f>this.oldTextWidth)&&((p=this.textPxLength)||(n(e,{width:"",whiteSpace:d||"nowrap"}),p=e.offsetWidth),p=p>f),p&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(n(e,{width:f+"px",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,m!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!s(u)||u===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(u,c,d),this.get
2SpanCorrection(!s(u)&&this.textPxLength||e.offsetWidth,d,c,u,l)),n(e,{left:r+(this.xCorr||0)+"px",top:h+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=u,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},o=this.renderer.getTransformKey();s[o]=s.transform="rotate("+t+"deg)",s[o+(h?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",n(this.element,s)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),e}),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Globals.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,n,s){var o=t.isFirefox,r=t.isMS,a=t.isWebKit,h=t.win,l=s.attr,c=s.createElement,u=s.extend,d=s.pick;return u(n.prototype,{getTransformKey:function(){return r&&!/Edge/.test(h.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":o?"MozTransform":h.opera?"-o-transform":""},html:function(t,n,s){var o=this.createElement("span"),r=o.element,a=o.renderer,h=a.isSVG,p=function(t,e){["opacity","visibility"].forEach(function(n){t[n+"Setter"]=function(s,o,r){var a=t.div?t.div.style:e;i.prototype[n+"Setter"].call(this,s,o,r),a&&(a[o]=s)}}),t.addedSetters=!0};return o.textSetter=function(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,e.setElementHTML(this.element,d(t,"")),this.textStr=t,o.doTransform=!0)},h&&p(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e?o.alignValue=o.textAlign=t:o[e]=t,o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(n),y:Math.round(s)}).css({position:"absolute"}),a.styledMode||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),r.style.whiteSpace="nowrap",o.css=o.htmlCss,h&&(o.add=function(t){var e=a.box.parentNode,i=[];if(this.parentGroup=t){var n=t.div;if(!n){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach(function(t){function s(e,i){t[i]=e,"translateX"===i?h.left=e+"px":h.top=e+"px",t.doTransform=!0}var r=l(t.element,"class"),a=t.styles||{},h=(n=t.div=t.div||c("div",r?{className:r}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:a.cursor,pointerEvents:a.pointerEvents},n||e)).style;u(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(n),on:function(){return i[0].div&&o.on.apply({element:i[0].div},arguments),t},translateXSetter:s,translateYSetter:s}),t.addedSetters||p(t)})}}else n=e;return n.appendChild(r),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}}),n}),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.win,n=e.defined,s=e.error,o=e.extend,r=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,c=e.pick,u=e.splat,d=e.timeUnits;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),n=i-this.getTimezoneOffset(e);return e.setTime(n),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](i);var n=this.getTimezoneOffset(e);return n=e.getTime()-n,e.setTime(n),e["setUTC"+t](i),t=this.getTimezoneOffset(e),n=e.getTime()+t,e.setTime(n)}return this.useUTC?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=c(t&&t.useUTC,!0);this.options=t=a(!0,this.options||{},t),this.Date=t.Date||i.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,n,s,o,r){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(a);a+=h;var l=this.getTimezoneOffset(a);h!==l?a+=l-h:h-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,c(n,1),c(s,0),c(o,0),c(r,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,n=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(n)return function(t){return 6e4*-n.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,s){var r;if(!n(i)||isNaN(i))return(null===(r=t.defaultOptions.lang)||void 0===r?void 0:r.invali
2dDate)||"";e=c(e,"%Y-%m-%d %H:%M:%S");var a=this;r=new this.Date(i);var u=this.get("Hours",r),d=this.get("Day",r),p=this.get("Date",r),f=this.get("Month",r),m=this.get("FullYear",r),g=t.defaultOptions.lang,v=null==g?void 0:g.weekdays,_=null==g?void 0:g.shortWeekdays;return r=o({a:_?_[d]:v[d].substr(0,3),A:v[d],d:l(p),e:l(p,2," "),w:d,b:g.shortMonths[f],B:g.months[f],m:l(f+1),o:f+1,y:m.toString().substr(2,2),Y:m,H:l(u),k:u,I:l(u%12||12),l:u%12||12,M:l(this.get("Minutes",r)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:l(r.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(r,function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t.call(a,i):t)}),s?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return r(t,!0)?t:{main:(t=u(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,s){var r,a=this,h=[],l={},u=new a.Date(e),p=t.unitRange,f=t.count||1;if(s=c(s,1),n(e)){if(a.set("Milliseconds",u,p>=d.second?0:f*Math.floor(a.get("Milliseconds",u)/f)),p>=d.second&&a.set("Seconds",u,p>=d.minute?0:f*Math.floor(a.get("Seconds",u)/f)),p>=d.minute&&a.set("Minutes",u,p>=d.hour?0:f*Math.floor(a.get("Minutes",u)/f)),p>=d.hour&&a.set("Hours",u,p>=d.day?0:f*Math.floor(a.get("Hours",u)/f)),p>=d.day&&a.set("Date",u,p>=d.month?1:Math.max(1,f*Math.floor(a.get("Date",u)/f))),p>=d.month){a.set("Month",u,p>=d.year?0:f*Math.floor(a.get("Month",u)/f));var m=a.get("FullYear",u)}p>=d.year&&a.set("FullYear",u,m-m%f),p===d.week&&(m=a.get("Day",u),a.set("Date",u,a.get("Date",u)-m+s+(m<s?-7:0))),m=a.get("FullYear",u),s=a.get("Month",u);var g=a.get("Date",u),v=a.get("Hours",u);for(e=u.getTime(),!a.variableTimezone&&a.useUTC||!n(i)||(r=i-e>4*d.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=u.getTime(),u=1;e<i;)h.push(e),e=p===d.year?a.makeTime(m+u*f,0):p===d.month?a.makeTime(m,s+u*f):!r||p!==d.day&&p!==d.week?r&&p===d.hour&&1<f?a.makeTime(m,s,g,v+u*f):e+p*f:a.makeTime(m,s,g+u*f*(p===d.day?1:7)),u++;h.push(e),p<=d.hour&&1e4>h.length&&h.forEach(function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")})}return h.info=o(t,{higherRanks:l,totalRange:p*f}),h},e}(),t.Time=e,t.Time}),e(i,"Core/Options.js",[i["Core/Globals.js"],i["Core/Color/Color.js"],i["Core/Color/Palette.js"],i["Core/Time.js"],i["Core/Utilities.js"]],function(t,e,i,n,s){var o=t.isTouchDevice,r=t.svg;return e=e.parse,s=s.merge,t.defaultOptions={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,width:null,height:null,borderColor:i.highlightColor80,backgroundColor:i.backgroundColor,plotBorderColor:i.neutralColor20},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:i.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:i.neutralColor40,borderRadius:0,navigation:{activeColor:i.highlightColor100,inactiveColor:i.neutralColor20},itemStyle:{color:i.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:i.neutralColor100},itemHiddenStyle:{color:i.neutralColor20},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:i.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:r,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:o?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e(i.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:i.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:i.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}},t.defaultOptions.chart.styledMode=!1,t.time=new n(s(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,n){return t.time.dateFormat(e,i,n)},{dateFormat:t.dateFormat,defaultOptions:t.defaultOptions,time:t.time}}),e(i,"Core/Axis/Tick.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=t.deg2rad,n=e.clamp,s=e.correctFloat,o=e.defined,r=e.destroyObjectProperties,a=e.extend,h=e.fireEvent,l=e.isNumber,c=e.merge,u=e.objectEach,d=e.pick;return e=function(){function t(t,e,i,n,s){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,h(this,"init"),i||n||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,i=e.options,n=e.chart,r=e.categories,h=e.logarithmic,l=e.names,c=t.pos,u=d(t.options&&t.options.labels,i.labels),p=e.tickPositions,f=c===p[0],m=c===p[p.length-1];l=this.parameters.category||(r?d(r[c],l[c],c):c);var g,v,_=t.label;if(r=(!u.step||1===u.step)&&1===e.tickInterval,p=p.info,e.dateTime&&p)var y=n.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&p.higherRanks[c]||p.unitName]),b=y.main;t.isFirst=f,t.isLast=m,t.formatCtx={axis:e,chart:n,isFirst:f,isLast:m,dateTimeLabelFormat:b,tickPositionInfo:p,value:h?s(h.lin2log(l)):l,pos:c},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(v=y&&y.list)&&(t.shortenLabel=function(){for(g=0;g<v.length;g++)if(_.attr({text:e.labelFormatter.call(a(t.formatCtx,{dateTimeLabelFormat:v[g]}))}),_.getBBox().width<e.getSlotWidth(t)-2*d(u.padding,5))return;_.attr({text:""})}),r&&e._addedPlotLB&&t.moveLabel(i,u),o(_)||t.movedLabel?_&&_.textStr!==i&&!r&&(!_.textWidth||u.style&&u.style.width||_.styles.width||_.css({width:null}),_.attr({text:i}),_.textPxLength=_.getBBox().width):(t.label=_=t.createLabel({x:0,y:0},i,u),t.rotation=0)}
2,t.prototype.createLabel=function(t,e,i){var n=this.axis,s=n.chart;return(t=o(e)&&i.enabled?s.renderer.text(e,t.x,t.y,i.useHTML).add(n.labelGroup):null)&&(s.styledMode||t.css(c(i.style)),t.textPxLength=t.getBBox().width),t},t.prototype.destroy=function(){r(this,this.axis)},t.prototype.getPosition=function(t,e,i,o){var r=this.axis,a=r.chart,l=o&&a.oldChartHeight||a.chartHeight;return(t={x:t?s(r.translate(e+i,null,null,o)+r.transB):r.left+r.offset+(r.opposite?(o&&a.oldChartWidth||a.chartWidth)-r.right-r.left:0),y:t?l-r.bottom+r.offset-(r.opposite?r.height:0):s(l-r.translate(e+i,null,null,o)-r.transB)}).y=n(t.y,-1e5,1e5),h(this,"afterGetPosition",{pos:t}),t},t.prototype.getLabelPosition=function(t,e,n,s,r,a,l,c){var u=this.axis,d=u.transA,p=u.isLinked&&u.linkedParent?u.linkedParent.reversed:u.reversed,f=u.staggerLines,m=u.tickRotCorr||{x:0,y:0},g=r.y,v=s||u.reserveSpaceDefault?0:-u.labelOffset*("center"===u.labelAlign?.5:1),_={};return o(g)||(g=0===u.side?n.rotation?-8:-n.getBBox().height:2===u.side?m.y+8:Math.cos(n.rotation*i)*(m.y-n.getBBox(!1,0).height/2)),t=t+r.x+v+m.x-(a&&s?a*d*(p?-1:1):0),e=e+g-(a&&!s?a*d*(p?1:-1):0),f&&(n=l/(c||1)%f,u.opposite&&(n=f-n-1),e+=u.labelOffset/f*n),_.x=t,_.y=Math.round(e),h(this,"afterGetLabelPosition",{pos:_,tickmarkOffset:a,index:l}),_},t.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},t.prototype.getMarkPath=function(t,e,i,n,s,o){return o.crispLine([["M",t,e],["L",t+(s?0:-i),e+(s?i:0)]],n)},t.prototype.handleOverflow=function(t){var e=this.axis,n=e.options.labels,s=t.x,o=e.chart.chartWidth,r=e.chart.spacing,a=d(e.labelLeft,Math.min(e.pos,r[3]));r=d(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,o-r[1]));var h,l=this.label,c=this.rotation,u={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],p=l.getBBox().width,f=e.getSlotWidth(this),m=f,g=1,v={};c||"justify"!==d(n.overflow,"justify")?0>c&&s-u*p<a?h=Math.round(s/Math.cos(c*i)-a):0<c&&s+u*p>r&&(h=Math.round((o-s)/Math.cos(c*i))):(o=s+(1-u)*p,s-u*p<a?m=t.x+m*(1-u)-a:o>r&&(m=r-t.x+m*u,g=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=g*(f-m-u*(f-Math.min(p,m)))),(p>m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(v.width=Math.floor(h)+"px",(n.style||{}).textOverflow||(v.textOverflow="ellipsis"),l.css(v)))},t.prototype.moveLabel=function(t,e){var i=this,n=i.label,s=!1,o=i.axis,r=o.reversed;if(n&&n.textStr===t?(i.movedLabel=n,s=!0,delete i.label):u(o.ticks,function(e){s||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,s=!0,e.labelPos=i.movedLabel.xy,delete e.label)}),!s&&(i.labelPos||n)){var a=i.labelPos||n.xy;n=o.horiz?r?0:o.width+o.left:a.x,o=o.horiz?a.y:r?o.width+o.left:0,i.movedLabel=i.createLabel({x:n,y:o},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,i){var n=this.axis,s=n.horiz,o=this.pos,r=d(this.tickmarkOffset,n.tickmarkOffset);r=(o=this.getPosition(s,o,r,e)).x;var a=o.y;n=s&&r===n.pos+n.len||!s&&a===n.pos?-1:1,i=d(i,1),this.isActive=!0,this.renderGridLine(e,i,n),this.renderMark(o,i,n),this.renderLabel(o,e,i,t),this.isNew=!1,h(this,"afterRender")},t.prototype.renderGridLine=function(t,e,i){var n=this.axis,s=n.options,o=this.gridLine,r={},a=this.pos,h=this.type,l=d(this.tickmarkOffset,n.tickmarkOffset),c=n.chart.renderer,u=h?h+"Grid":"grid",p=s[u+"LineWidth"],f=s[u+"LineColor"];s=s[u+"LineDashStyle"],o||(n.chart.styledMode||(r.stroke=f,r["stroke-width"]=p,s&&(r.dashstyle=s)),h||(r.zIndex=1),t&&(e=0),this.gridLine=o=c.path().attr(r).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(n.gridGroup)),o&&(i=n.getPlotLinePath({value:a+l,lineWidth:o.strokeWidth()*i,force:"pass",old:t}))&&o[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e,i){var n=this.axis,s=n.options,o=n.chart.renderer,r=this.type,a=r?r+"Tick":"tick",h=n.tickSize(a),l=this.mark,c=!l,u=t.x;t=t.y;var p=d(s[a+"Width"],!r&&n.isXAxis?1:0);s=s[a+"Color"],h&&(n.opposite&&(h[0]=-h[0]),c&&(this.mark=l=o.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||l.attr({stroke:s,"stroke-width":p})),l[c?"attr":"animate"]({d:this.getMarkPath(u,t,h[0],l.strokeWidth()*i,n.horiz,o),opacity:e}))}
2,t.prototype.renderLabel=function(t,e,i,n){var s=this.axis,o=s.horiz,r=s.options,a=this.label,h=r.labels,c=h.step;s=d(this.tickmarkOffset,s.tickmarkOffset);var u=!0,p=t.x;t=t.y,a&&l(p)&&(a.xy=t=this.getLabelPosition(p,t,a,o,h,s,n,c),this.isFirst&&!this.isLast&&!d(r.showFirstLabel,1)||this.isLast&&!this.isFirst&&!d(r.showLastLabel,1)?u=!1:!o||h.step||h.rotation||e||0===i||this.handleOverflow(t),c&&n%c&&(u=!1),u&&l(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var n=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:n,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick}),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Options.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o,r){var a=t.animObject,h=s.defaultOptions,l=r.addEvent,c=r.arrayMax,u=r.arrayMin,d=r.clamp,p=r.correctFloat,f=r.defined,m=r.destroyObjectProperties,g=r.erase,v=r.error,_=r.extend,y=r.fireEvent,b=r.format,x=r.getMagnitude,w=r.isArray,M=r.isFunction,S=r.isNumber,C=r.isString,k=r.merge,P=r.normalizeTickInterval,T=r.objectEach,E=r.pick,L=r.relativeLength,A=r.removeEvent,O=r.splat,I=r.syncTimeout,D=i.deg2rad;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX,n=this;n.chart=t,n.horiz=t.inverted&&!n.isZAxis?!i:i,n.isXAxis=i,n.coll=n.coll||(i?"xAxis":"yAxis"),y(this,"init",{userOptions:e}),n.opposite=E(e.opposite,n.opposite),n.side=E(e.side,n.side,n.horiz?n.opposite?0:2:n.opposite?1:3),n.setOptions(e);var s=this.options,o=s.type;n.labelFormatter=s.labels.formatter||n.defaultLabelFormatter,n.userOptions=e,n.minPixelPadding=0,n.reversed=E(s.reversed,n.reversed),n.visible=!1!==s.visible,n.zoomEnabled=!1!==s.zoomEnabled,n.hasNames="category"===o||!0===s.categories,n.categories=s.categories||n.hasNames,n.names||(n.names=[],n.names.keys={}),n.plotLinesAndBandsGroups={},n.positiveValuesOnly=!!n.logarithmic,n.isLinked=f(s.linkedTo),n.ticks={},n.labelEdge=[],n.minorTicks={},n.plotLinesAndBands=[],n.alternateBands={},n.len=0,n.minRange=n.userMinRange=s.minRange||s.maxZoom,n.range=s.range,n.offset=s.offset||0,n.max=null,n.min=null,n.crosshair=E(s.crosshair,O(t.options.tooltip.crosshairs)[i?0:1],!1),e=n.options.events,-1===t.axes.indexOf(n)&&(i?t.axes.splice(t.xAxis.length,0,n):t.axes.push(n),t[n.coll].push(n)),n.series=n.series||[],t.inverted&&!n.isZAxis&&i&&void 0===n.reversed&&(n.reversed=!0),n.labelRotation=n.options.labels.rotation,T(e,function(t,e){M(t)&&l(n,e,t)}),y(this,"afterInit")},t.prototype.setOptions=function(e){this.options=k(t.defaultOptions,"yAxis"===this.coll&&t.defaultYAxisOptions,[t.defaultTopAxisOptions,t.defaultRightAxisOptions,t.defaultBottomAxisOptions,t.defaultLeftAxisOptions][this.side],k(h[this.coll],e)),y(this,"afterSetOptions",{userOptions:e})},t.prototype.defaultLabelFormatter=function(){var t=this.axis,e=S(this.value)?this.value:NaN,i=t.chart.time,n=t.categories,s=this.dateTimeLabelFormat,o=h.lang,r=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var a=r&&r.length,l=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var c=this.chart,u=c.numberFormatter;if(l)var d=b(l,this,c);else if(n)d=""+this.value;else if(s)d=i.dateFormat(s,e);else if(a&&1e3<=t)for(;a--&&void 0===d;)t>=(i=Math.pow(o,a+1))&&0==10*e%i&&null!==r[a]&&0!==e&&(d=u(e/i,-1)+r[a]);return void 0===d&&(d=1e4<=Math.abs(e)?u(e,-1):u(e,-1,void 0,"")),d},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;y(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEac
2h(function(n){if(n.visible||!i.options.chart.ignoreHiddenSeries){var s=n.options,o=s.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((s=n.xData).length){s=e.logarithmic?s.filter(e.validatePositiveValue):s;var r=(t=n.getXExtremes(s)).min,a=t.max;S(r)||r instanceof Date||(s=s.filter(S),r=(t=n.getXExtremes(s)).min,a=t.max),s.length&&(e.dataMin=Math.min(E(e.dataMin,r),r),e.dataMax=Math.max(E(e.dataMax,a),a))}}else n=n.applyExtremes(),S(n.dataMin)&&(r=n.dataMin,e.dataMin=Math.min(E(e.dataMin,r),r)),S(n.dataMax)&&(a=n.dataMax,e.dataMax=Math.max(E(e.dataMax,a),a)),f(o)&&(e.threshold=o),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),y(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,n,s,o){var r=this.linkedParent||this,a=1,h=0,l=n&&r.old?r.old.transA:r.transA;n=n&&r.old?r.old.min:r.min;var c=r.minPixelPadding;return s=(r.isOrdinal||r.brokenAxis&&r.brokenAxis.hasBreaks||r.logarithmic&&s)&&r.lin2val,l||(l=r.transA),i&&(a*=-1,h=r.len),r.reversed&&(h-=(a*=-1)*(r.sector||r.len)),e?(t=(t*a+h-c)/l+n,s&&(t=r.lin2val(t))):(s&&(t=r.val2lin(t)),t=S(n)?a*(t-n)*l+h+a*c+(S(o)?l*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==g&&t<e||t>i)&&(g?t=d(t,e,i):r=!0),t}var i,n,s,o,r,a=this,h=a.chart,l=a.left,c=a.top,u=t.old,p=t.value,f=t.translatedValue,m=t.lineWidth,g=t.force,v=u&&h.oldChartHeight||h.chartHeight,_=u&&h.oldChartWidth||h.chartWidth,b=a.transB;return t={value:p,lineWidth:m,old:u,force:g,acrossPanes:t.acrossPanes,translatedValue:f},y(this,"getPlotLinePath",t,function(t){f=E(f,a.translate(p,null,null,u)),f=d(f,-1e5,1e5),i=s=Math.round(f+b),n=o=Math.round(v-f-b),S(f)?a.horiz?(n=c,o=v-a.bottom,i=s=e(i,l,l+a.width)):(i=l,s=_-a.right,n=o=e(n,c,c+a.height)):(r=!0,g=!1),t.path=r&&!g?null:h.renderer.crispLine([["M",i,n],["L",s,o]],m||1)}),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var n=p(Math.floor(e/t)*t);i=p(Math.ceil(i/t)*t);var s,o=[];if(p(n+t)===n&&(s=20),this.single)return[e];for(e=n;e<=i&&(o.push(e),(e=p(e+t,s))!==r);)var r=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?E(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,n=[],s=this.pointRangePadding||0,o=this.min-s,r=(s=this.max+s)-o;if(r&&r/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach(function(t,e,s){e&&n.push.apply(n,a.getLogTickPositions(i,s[e-1],s[e],!0))});else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),o,s,t.startOfWeek));else for(t=o+(e[0]-o)%i;t<=s&&t!==n[0];t+=i)n.push(t)}return 0!==n.length&&this.trimTicks(n),n},t.prototype.adjustForMinRange=function(){var t,e,i,n,s=this.options,o=this.min,r=this.max,a=this.logarithmic,h=0;if(this.isXAxis&&void 0===this.minRange&&!a&&(f(s.min)||f(s.max)?this.minRange=null:(this.series.forEach(function(s){if(i=s.xData,n=s.xIncrement?1:i.length-1,1<i.length)for(t=n;0<t;t--)e=i[t]-i[t-1],(!h||e<h)&&(h=e)}),this.minRange=Math.min(5*h,this.dataMax-this.dataMin))),r-o<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,d=this.minRange,p=(d-r+o)/2;p=[o-p,E(s.min,o-p)],l&&(p[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),r=[(o=c(p))+d,E(s.max,o+d)],l&&(r[2]=a?a.log2lin(this.dataMax):this.dataMax),(r=u(r))-o<d&&(p[0]=r-d,p[1]=E(s.min,r-d),o=c(p))}this.min=o,this.max=r},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&f(i)&&n&&(t=f(t)?Math.min(t,i):i)}),t},t.prototype.nameToX=function(t){var e=w(this.categories),i=e?this.categories:this.names,n=t.options.x;if(t.series.requireSorting=!1,f(n)||(n=!1===this.options.uniqueNames?t.series.autoIncrement():e?i.indexOf(t.name):E(i.keys[t.name],-1)),-1===n){if(!e)var s=i.length}else s=n;return void 0!==s&&(this.names[s]=t.name,this.names.keys[t.name]=s),s},t.prototype.updateNames=function(){var t=this,e=this.names;
20<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(i,n){if(i&&i.options&&void 0!==i.name){var s=t.nameToX(i);void 0!==s&&s!==i.x&&(i.x=s,e.xData[n]=s)}})}))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.axisPointRange||0,n=0,s=0,o=t.linkedParent,r=!!t.categories,a=t.transA,h=t.isXAxis;if(h||r||i){var l=t.getClosest();o?(n=o.minPointOffset,s=o.pointRangePadding):t.series.forEach(function(e){var o=r?1:h?E(e.options.pointRange,l,0):t.axisPointRange||0,a=e.options.pointPlacement;i=Math.max(i,o),t.single&&!r||(e=e.is("xrange")?!h:h,n=Math.max(n,e&&C(a)?0:o/2),s=Math.max(s,e&&"on"===a?0:o))}),o=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=n*=o,t.pointRangePadding=s*=o,t.pointRange=Math.min(i,t.single&&r?1:e),h&&(t.closestPointRange=l)}t.translationSlope=t.transA=a=t.staticScale||t.len/(e+s||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=a*n,y(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this,i=e.chart,n=e.logarithmic,s=e.options,o=e.isXAxis,r=e.isLinked,a=s.maxPadding,h=s.minPadding,l=s.tickInterval,c=s.tickPixelInterval,u=e.categories,d=S(e.threshold)?e.threshold:null,m=e.softThreshold;e.dateTime||u||r||this.getTickAmount();var g=E(e.userMin,s.min),_=E(e.userMax,s.max);if(r){e.linkedParent=i[e.coll][s.linkedTo];var b=e.linkedParent.getExtremes();e.min=E(b.min,b.dataMin),e.max=E(b.max,b.dataMax),s.type!==e.linkedParent.options.type&&v(11,1,i)}else{if(m&&f(d))if(e.dataMin>=d)b=d,h=0;else if(e.dataMax<=d){var w=d;a=0}e.min=E(g,b,e.dataMin),e.max=E(_,w,e.dataMax)}n&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,E(e.dataMin,e.min))&&v(10,1,i),e.min=p(n.log2lin(e.min),16),e.max=p(n.log2lin(e.max),16)),e.range&&f(e.max)&&(e.userMin=e.min=g=Math.max(e.dataMin,e.minFromRange()),e.userMax=_=e.max,e.range=null),y(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(u||e.axisPointRange||e.stacking&&e.stacking.usePercentage||r)&&f(e.min)&&f(e.max)&&(i=e.max-e.min)&&(!f(g)&&h&&(e.min-=i*h),!f(_)&&a&&(e.max+=i*a)),S(e.userMin)||(S(s.softMin)&&s.softMin<e.min&&(e.min=g=s.softMin),S(s.floor)&&(e.min=Math.max(e.min,s.floor))),S(e.userMax)||(S(s.softMax)&&s.softMax>e.max&&(e.max=_=s.softMax),S(s.ceiling)&&(e.max=Math.min(e.max,s.ceiling))),m&&f(e.dataMin)&&(d=d||0,!f(g)&&e.min<d&&e.dataMin>=d?e.min=e.options.minRange?Math.min(d,e.max-e.minRange):d:!f(_)&&e.max>d&&e.dataMax<=d&&(e.max=e.options.minRange?Math.max(d,e.min+e.minRange):d)),S(e.min)&&S(e.max)&&!this.chart.polar&&e.min>e.max&&(f(e.options.min)?e.max=e.min:f(e.options.max)&&(e.min=e.max)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:r&&!l&&c===e.linkedParent.options.tickPixelInterval?l=e.linkedParent.tickInterval:E(l,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,u?1:(e.max-e.min)*c/Math.max(e.len,c)),o&&!t&&e.series.forEach(function(t){var i,n;t.processData(e.min!==(null===(i=e.old)||void 0===i?void 0:i.min)||e.max!==(null===(n=e.old)||void 0===n?void 0:n.max))}),e.setAxisTranslation(),y(this,"initialAxisTranslation"),e.pointRange&&!l&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=E(s.minTickInterval,e.dateTime&&!e.series.some(function(t){return t.noSharedTooltip})?e.closestPointRange:0),!l&&e.tickInterval<t&&(e.tickInterval=t),e.dateTime||e.logarithmic||l||(e.tickInterval=P(e.tickInterval,void 0,x(e.tickInterval),E(s.allowDecimals,.5>e.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),n=t.tickPositioner,s=this.hasVerticalPanning(),o="colorAxis"===this.coll,r=(o||!s)&&t.startOnTick;s=(o||!s)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&f(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],v(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()])[0]===i[1]&&(i.length=1),this.tickPositions=i,n&&(n=n.apply(this,[this.min,this.max])))&&
2(this.tickPositions=i=n),this.paddedTicks=i.slice(0),this.trimTicks(i,r,s),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some(function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement})&&(this.min-=.5,this.max+=.5),e||n||this.adjustTickAmount()),y(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var n=t[0],s=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(y(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-o>t[0];)t.shift();if(i)this.max=s;else for(;this.max+o<t[t.length-1];)t.pop();0===t.length&&f(n)&&!this.options.tickPositions&&t.push((s+n)/2)}},t.prototype.alignToOthers=function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.logarithmic||this.chart[this.coll].forEach(function(i){var n=i.options;n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join(),i.series.length&&(e[n]?t=!0:e[n]=1)}),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!f(t.tickInterval)&&!e&&this.len<i&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,i=this.tickPositions,n=this.tickAmount,s=this.finalTickAmt,o=i&&i.length,r=E(this.threshold,this.softThreshold?0:null);if(this.hasData()&&S(this.min)&&S(this.max)){if(o<n){for(;i.length<n;)i.length%2||this.min===r?i.push(p(i[i.length-1]+e)):i.unshift(p(i[0]-e));this.transA*=(o-1)/(n-1),this.min=t.startOnTick?i[0]:Math.min(this.min,i[0]),this.max=t.endOnTick?i[i.length-1]:Math.max(this.max,i[i.length-1])}else o>n&&(this.tickInterval*=2,this.setTickPositions());if(f(s)){for(e=t=i.length;e--;)(3===s&&1==e%2||2>=s&&0<e&&e<t-1)&&i.splice(e,1);this.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t,e,i,n,s,o,r=!1,a=!1;this.series.forEach(function(t){var e;r=r||t.isDirtyData||t.isDirty,a=a||(null===(e=t.xAxis)||void 0===e?void 0:e.isDirty)||!1}),this.setAxisSize(),(o=this.len!==(null===(t=this.old)||void 0===t?void 0:t.len))||r||a||this.isLinked||this.forceRedraw||this.userMin!==(null===(e=this.old)||void 0===e?void 0:e.userMin)||this.userMax!==(null===(i=this.old)||void 0===i?void 0:i.userMax)||this.alignToOthers()?(this.stacking&&this.stacking.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=o||this.min!==(null===(n=this.old)||void 0===n?void 0:n.min)||this.max!==(null===(s=this.old)||void 0===s?void 0:s.max))):this.stacking&&this.stacking.cleanStacks(),r&&this.panningState&&(this.panningState.isDirty=!0),y(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,n,s){var o=this,r=o.chart;i=E(i,!0),o.series.forEach(function(t){delete t.kdTree}),s=_(s,{min:t,max:e}),y(o,"setExtremes",s,function(){o.userMin=t,o.userMax=e,o.eventArgs=s,i&&r.redraw(n)})},t.prototype.zoom=function(t,e){var i=this,n=this.dataMin,s=this.dataMax,o=this.options,r=Math.min(n,E(o.min,n)),a=Math.max(s,E(o.max,s));return y(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,o=t.newMax;e===i.min&&o===i.max||(i.allowZoomOutside||(f(n)&&(e<r&&(e=r),e>a&&(e=a)),f(s)&&(o<r&&(o=r),o>a&&(o=a))),i.displayBtn=void 0!==e||void 0!==o,i.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],n=this.horiz,s=this.width=Math.round(L(E(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(L(E(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),r=this.top=Math.round(L(E(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(L(E(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-r,this.right=t.chartWidth-s-e,this.len=Math.max(n?s:o,0),this.pos=n?e:r},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?p(t.lin2log(this.min)):this.min,max:t?p(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(E(t,0)-90*this.side+720)%360;return y(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")}),t.align},t.prototype.tickSize=function(t){var e=this.options,i=e["tick"===t?"tickLength":"minorTickLength"],n=E(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var s=[i,n]}return y(this,"afterTickSize",t={tickSize:s}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,i,n=this.options.labels,s=this.horiz,o=this.tickInterval,r=o,a=this.len/(((this.categories?1:0)+this.max-this.min)/o),h=n.rotation,l=this.labelMetrics(),c=Number.MAX_VALUE,u=Math.max(this.max-this.min,0),d=function(t){var e=t/(a||1);return(e=1<e?Math.ceil(e):1)*o>u&&1/0!==t&&1/0!==a&&u&&(e=Math.ceil(u/o)),p(e*o)};return s?(i=!n.staggerLines&&!n.step&&(f(h)?[h]:a<E(n.autoRotationLimit,80)&&n.autoRotation))&&i.forEac
2h(function(i){if(i===h||i&&-90<=i&&90>=i){var n=(e=d(Math.abs(l.h/Math.sin(D*i))))+Math.abs(i/360);n<c&&(c=n,t=i,r=e)}}):n.step||(r=d(l.h)),this.autoRotation=i,this.labelRotation=E(t,h),r},t.prototype.getSlotWidth=function(t){var e,i=this.chart,n=this.horiz,s=this.options.labels,o=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=i.margin[3];if(t&&S(t.slotWidth))return t.slotWidth;if(n&&s&&2>(s.step||0))return s.rotation?0:(this.staggerLines||1)*this.len/o;if(!n){if(void 0!==(t=null===(e=null==s?void 0:s.style)||void 0===e?void 0:e.width))return parseInt(t,10);if(r)return r-i.spacing[3]}return.33*i.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,n=this.ticks,s=this.options.labels,o=s&&s.style||{},r=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*(s.padding||5))),l={},c=this.labelMetrics(),u=s.style&&s.style.textOverflow,d=0;if(C(s.rotation)||(l.rotation=s.rotation||0),i.forEach(function(t){(t=n[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>d&&(d=t.label.textPxLength)}),this.maxLabelLength=d,this.autoRotation)d>h&&d>c.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=h;if(!u){var f="clip";for(h=i.length;!r&&h--;){var m=i[h];(m=n[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>a&&m.css({width:a+"px"}),m.getBBox().height>this.len/i.length-(c.h-c.f)&&(m.specificTextOverflow="ellipsis"))}}}l.rotation&&(p=d>.5*t.chartHeight?.33*t.chartHeight:d,u||(f="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEac
2h(function(t){var e=(t=n[t])&&t.label,i=o.width,s={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():p&&!i&&"nowrap"!==o.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(s.width=p+"px",u||(s.textOverflow=e.specificTextOverflow||f),e.css(s)):e.styles&&e.styles.width&&!s.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)},this),this.tickRotCorr=e.rotCorr(c.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&f(this.min)&&f(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,n=this.horiz,s=this.opposite,o=this.options.title,r=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),r||this.axisTitle.css(k(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),r||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new o(this,t)},t.prototype.getOffset=function(){var t,e=this,i=this,n=i.chart,s=n.renderer,o=i.options,r=i.tickPositions,a=i.ticks,h=i.horiz,l=i.side,c=n.inverted&&!i.isZAxis?[1,0,3,2][l]:l,u=0,d=0,p=o.title,m=o.labels,g=0,v=n.axisOffset;n=n.clipOffset;var _=[-1,1,1,-1][l],b=o.className,x=i.axisParent,w=i.hasData();if(i.showAxis=t=w||E(o.showEmpty,!0),i.staggerLines=i.horiz&&m.staggerLines,!i.axisGroup){var M=function(t,i,n){return s.g(t).attr({zIndex:n}).addClass("highcharts-"+e.coll.toLowerCase()+i+" "+(e.isRadial?"highcharts-radial-axis"+i+" ":"")+(b||"")).add(x)};i.gridGroup=M("grid","-grid",o.gridZIndex||1),i.axisGroup=M("axis","",o.zIndex||2),i.labelGroup=M("axis-labels","-labels",m.zIndex||7)}if(w||i.isLinked?(r.forEach(function(t,e){i.generateTick(t,e)}),i.renderUnsquish(),i.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===i.labelAlign,E(m.reserveSpace,"center"===i.labelAlign||null,i.reserveSpaceDefault)&&r.forEach(function(t){g=Math.max(a[t].getLabelSize(),g)}),i.staggerLines&&(g*=i.staggerLines),i.labelOffset=g*(i.opposite?-1:1)):T(a,function(t,e){t.destroy(),delete a[e]}),p&&p.text&&!1!==p.enabled&&(i.addTitle(t),t&&!1!==p.reserveSpace)){i.titleOffset=u=i.axisTitle.getBBox()[h?"height":"width"];var S=p.offset;d=f(S)?0:E(p.margin,h?5:10)}i.renderLine(),i.offset=_*E(o.offset,v[l]?v[l]+(o.margin||0):0),i.tickRotCorr=i.tickRotCorr||{x:0,y:0},p=0===l?-i.labelMetrics().h:2===l?i.tickRotCorr.y:0,d=Math.abs(g)+d,g&&(d=d-p+_*(h?E(m.y,i.tickRotCorr.y+8*_):m.x)),i.axisTitleMargin=E(S,d),i.getMaxLabelDimensions&&(i.maxLabelDimensions=i.getMaxLabelDimensions(a,r)),h=this.tickSize("tick"),v[l]=Math.max(v[l],i.axisTitleMargin+u+_*i.offset,d,r&&r.length&&h?h[0]+_*i.offset:0),o=o.offset?0:2*Math.floor(i.axisLine.strokeWidth()/2),n[c]=Math.max(n[c],o),y(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,n=this.offset,s=this.horiz,o=this.left+(i?this.width:0)+n;return n=e.chartHeight-this.bottom-(i?this.height:0)+n,i&&(t*=-1),e.renderer.crispLine([["M",s?this.left:o,s?n:this.top],["L",s?e.chartWidth-this.right:o,s?n:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,s=this.options.title,o=t?e:i,r=this.opposite,a=this.offset,h=s.x||0,l=s.y||0,c=this.axisTitle,u=this.chart.renderer.fontMetrics(s.style&&s.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-u.h-1,0),n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[s.align],e=(t?i+this.height:e)+(t?1:-1)*(r?-1:1)*this.axisTitleMargin+[-c,c,u.f,-c][this.side],t={x:t?n+h:e+(r?this.width:0)+a+h,y:t?e+l-(r?this.height:0)+a:n+l},y(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t){var e=this.chart.hasRendered&&this.old,i=this.minorTicks;i[t]||(i[t]=new o(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e){var i,n=this.ticks,s=this.chart.hasRendered&&this.old;(!this.isLinked||t>=this.min&&t<=this.max||null!==(i=this.grid)&&void 0!==i&&i.isColumn)&&(n[t]||(n[t]=new o(this,t)),s&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},t.prototype.render=function(){var t,e,n=this,s=n.chart,r=n.logarithmic,h=n.options,l=n.isLinked,c=n.tickPositions,u=n.axisTitle,d=n.ticks,p=n.minorTicks,f=n.alternateBands,m=h.stackLabels,g=h.alternateGridColor,v=n.tickmarkOffset,_=n.axisLine,b=n.showAxis,x=a(s.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,[d,p,f].forEach(function(t){T(t,function(t){t.isActive=!1})}),(n.hasData()||l)&&(n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEac
2h(function(t){n.renderMinorTick(t)}),c.length&&(c.forEach(function(t,e){n.renderTick(t,e)}),v&&(0===n.min||n.single)&&(d[-1]||(d[-1]=new o(n,-1,null,!0)),d[-1].render(-1))),g&&c.forEach(function(o,a){e=void 0!==c[a+1]?c[a+1]+v:n.max-v,0==a%2&&o<n.max&&e<=n.max+(s.polar?-v:v)&&(f[o]||(f[o]=new i.PlotLineOrBand(n)),t=o+v,f[o].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:g,className:"highcharts-alternate-grid"},f[o].render(),f[o].isActive=!0)}),n._addedPlotLB||(n._addedPlotLB=!0,(h.plotLines||[]).concat(h.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)}))),[d,p,f].forEach(function(t){var e,i=[],n=x.duration;T(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),I(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==f&&s.hasRendered&&n?n:0)}),_&&(_[_.isPlaced?"animate":"attr"]({d:this.getLinePath(_.strokeWidth())}),_.isPlaced=!0,_[b?"show":"hide"](b)),u&&b&&(h=n.getTitlePosition(),S(h.y)?(u[u.isNew?"attr":"animate"](h),u.isNew=!1):(u.attr("y",-9999),u.isNew=!0)),m&&m.enabled&&n.stacking&&n.stacking.renderStackTotals(),n.old={len:n.len,max:n.max,min:n.min,transA:n.transA,userMax:n.userMax,userMin:n.userMin},n.isDirty=!1,y(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e,i=this,n=i.plotLinesAndBands;if(y(this,"destroy",{keepEvents:t}),t||A(i),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(t){m(t)}),n)for(t=n.length;t--;)n[t].destroy();for(e in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){i[t]&&(i[t]=i[t].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();T(i,function(t,e){-1===i.getKeepProps().indexOf(e)&&delete i[e]})},t.prototype.drawCrosshair=function(t,i){var s,o=this.crosshair,r=E(o.snap,!0),a=this.cross,h=this.chart;if(y(this,"drawCrosshair",{e:t,point:i}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(f(i)||!r)){if(r?f(i)&&(s=E("colorAxis"!==this.coll?i.crosshairPos:null,this.isXAxis?i.plotX:this.len-i.plotY)):s=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),f(s)){var l={value:i&&(this.isXAxis?i.x:E(i.stackY,i.y)),translatedValue:s};h.polar&&_(l,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:i}),l=this.getPlotLinePath(l)||null}if(!f(l))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=h.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+o.className).attr({zIndex:E(o.zIndex,2)}).add(),h.styledMode||(a.attr({stroke:o.color||(r?e.parse(n.highlightColor20).setOpacity(.25).get():n.neutralColor20),"stroke-width":E(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&a.attr({dashstyle:o.dashStyle}))),a.show().attr({d:l}),r&&!o.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();y(this,"afterDrawCrosshair",{e:t,point:i})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),y(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t,e=null===(t=this.chart.options.chart)||void 0===t?void 0:t.panning;return!!(e&&e.enabled&&/y/.test(e.type))},t.prototype.validatePositiveValue=function(t){return S(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart,n=t&&t.events||{};t=k(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),T(i.options[this.coll].events,function(t,e){void 0===n[e]&&(n[e]=void 0)}),this.destroy(!0),this.init(i,_(t,{events:n})),i.isDirtyBox=!0,E(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,n=this.series,s=n.length;s--;)n[s]&&n[s].remove(!1);g(e.axes,this),g(e[i],this),w(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,E(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)}
2,t.defaultOptions={dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:n.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:n.neutralColor60}},type:"linear",minorGridLineColor:n.neutralColor5,minorGridLineWidth:1,minorTickColor:n.neutralColor40,lineColor:n.highlightColor20,lineWidth:1,gridLineColor:n.neutralColor10,tickColor:n.highlightColor20},t.defaultYAxisOptions={endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:n.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),i.Axis=t,i.Axis}),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],function(t,e){var i=e.addEvent,n=e.getMagnitude,s=e.normalizeTickInterval,o=e.timeUnits,r=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=i[i.length-1];var r,a=o[e[0]],h=e[1];for(r=0;r<i.length&&(e=i[r],a=o[e[0]],h=e[1],!(i[r+1]&&t<=(a*h[h.length-1]+o[i[r+1][0]])/2));r++);return a===o.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=s(t/a,h,"year"===e[0]?Math.max(n(t/a),1):1),unitName:e[0]}},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("dateTime"),t.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},i(t,"init",function(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new r(this))})},t.AdditionsClass=r,t}(),e.compose(t),e}),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Axis/Axis.js"],i["Core/Utilities.js"]],function(t,e){var i=e.addEvent,n=e.getMagnitude,s=e.normalizeTickInterval,o=e.pick,r=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,r){var a=this.axis,h=a.len,l=a.options,c=[];if(r||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),c=a.getLinearTickPositions(t,e,i);else if(.08<=t){var u,d;for(l=Math.floor(e),h=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];l<i+1&&!d;l++){var p=h.length;for(u=0;u<p&&!d;u++){var f=this.log2lin(this.lin2log(l)*h[u]);f>e&&(!r||m<=i)&&void 0!==m&&c.push(m),m>i&&(d=!0);var m=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?a.getMinorTickInterval():l.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,l.tickPixelInterval/(r?5:1)*(i-e)/((r?h/a.tickPositions.length:h)||1)),t=s(t,void 0,n(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic"),i(t,"init",function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new r(this))}),i(t,"afterInit",function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})})},t}(),e.compose(t),e}),e(i,"Core/Axis/PlotLineOrBand.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Utilities.js"]],function(t,e,
2i,n){var s=n.arrayMax,o=n.arrayMin,r=n.defined,a=n.destroyObjectProperties,h=n.erase,l=n.extend,c=n.fireEvent,u=n.merge,d=n.objectEach,p=n.pick;return n=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){c(this,"render");var t=this,e=t.axis,n=e.horiz,s=e.logarithmic,o=t.options,a=o.label,h=t.label,l=o.to,f=o.from,m=o.value,g=r(f)&&r(l),v=r(m),_=t.svgElem,y=!_,b=[],x=o.color,w=p(o.zIndex,0),M=o.events;b={class:"highcharts-plot-"+(g?"band ":"line ")+(o.className||"")};var S={},C=e.chart.renderer,k=g?"bands":"lines";if(s&&(f=s.log2lin(f),l=s.log2lin(l),m=s.log2lin(m)),e.chart.styledMode||(v?(b.stroke=x||i.neutralColor40,b["stroke-width"]=p(o.width,1),o.dashStyle&&(b.dashstyle=o.dashStyle)):g&&(b.fill=x||i.highlightColor10,o.borderWidth&&(b.stroke=o.borderColor,b["stroke-width"]=o.borderWidth))),S.zIndex=w,k+="-"+w,(s=e.plotLinesAndBandsGroups[k])||(e.plotLinesAndBandsGroups[k]=s=C.g("plot-"+k).attr(S).add()),y&&(t.svgElem=_=C.path().attr(b).add(s)),v)b=e.getPlotLinePath({value:m,lineWidth:_.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!g)return;b=e.getPlotBandPath(f,l,o)}return!t.eventsAdded&&M&&(d(M,function(e,i){_.on(i,function(e){M[i].apply(t,[e])})}),t.eventsAdded=!0),(y||!_.d)&&b&&b.length?_.attr({d:b}):_&&(b?(_.show(!0),_.animate({d:b})):_.d&&(_.hide(),h&&(t.label=h=h.destroy()))),a&&(r(a.text)||r(a.formatter))&&b&&b.length&&0<e.width&&0<e.height&&!b.isFlat?(a=u({align:n&&g&&"center",x:n?!g&&4:10,verticalAlign:!n&&g&&"middle",y:n?g?16:10:g?6:-4,rotation:n&&!g&&90},a),this.renderLabel(a,b,g,w)):h&&h.hide(),t},t.prototype.renderLabel=function(t,e,i,n){var r=this.label,a=this.axis.chart.renderer;r||((r={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=n,n=this.getLabelText(t),this.label=r=a.text(n,0,0,t.useHTML).attr(r).add(),this.axis.chart.styledMode||r.css(t.style)),a=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],i=o(a),n=o(e),r.align(t,!1,{x:i,y:n,width:s(a)-i,height:s(e)-n}),r.show(!0)},t.prototype.getLabelText=function(t){return r(t.formatter)?t.formatter.call(this):t.text},t.prototype.destroy=function(){h(this.axis.plotLinesAndBands,this),delete this.axis,a(this)},t}(),l(t.prototype,{getPlotBandPath:function(t,e,i){void 0===i&&(i=this.options);var n=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes});i=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes});var s=[],o=this.horiz,r=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,i&&n){if(t){var a=i.toString()===n.toString();r=0}for(t=0;t<i.length;t+=2){e=i[t];var h=i[t+1],l=n[t],c=n[t+1];"M"!==e[0]&&"L"!==e[0]||"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==c[0]&&"L"!==c[0]||(o&&l[1]===e[1]?(l[1]+=r,c[1]+=r):o||l[2]!==e[2]||(l[2]+=r,c[2]+=r),s.push(["M",e[1],e[2]],["L",h[1],h[2]],["L",c[1],c[2]],["L",l[1],l[2]],["Z"])),s.isFlat=a}}return s},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,i){var n=this,s=new e.PlotLineOrBand(this,t),o=this.userOptions;if(this.visible&&(s=s.render()),s){if(this._addedPlotLB||(this._addedPlotLB=!0,(o.plotLines||[]).concat(o.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)})),i){var r=o[i]||[];r.push(t),o[i]=r}this.plotLinesAndBands.push(s)}return s},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,s=e.length;s--;)e[s].id===t&&e[s].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(e){for(s=e.length;s--;)(e[s]||{}).id===t&&h(e,e[s])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}}),e.PlotLineOrBand=n,e.PlotLineOrBand}),e(i,"Core/Tooltip.js",[i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Utilities.js"]],function(t,e,i){var n=t.doc,s=i.clamp,o=i.css,r=i.defined,a=i.discardElement,h=i.extend,l=i.fireEvent,c=i.format,u=i.isNumber,d=i.isString,p=i.merge,f=i.pick,m=i.splat,g
2=i.syncTimeout,v=i.timeUnits,_=function(){function _(t,e){this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return _.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},_.prototype.bodyFormatter=function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},_.prototype.cleanSplit=function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},_.prototype.defaultFormatter=function(t){var e=this.points||m(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},_.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt
2=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),a(this.container)),i.clearTimeout(this.hideTimer),i.clearTimeout(this.tooltipTimeout)},_.prototype.getAnchor=function(t,e){var i,n,s=this.chart,o=s.pointer,r=s.inverted,a=s.plotTop,h=s.plotLeft,l=0,c=0;return t=m(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),o=[e.chartX-h,e.chartY-a]):t[0].tooltipPos?o=t[0].tooltipPos:(t.forEach(function(t){i=t.series.yAxis,n=t.series.xAxis,l+=t.plotX||0,c+=t.plotLow?(t.plotLow+(t.plotHigh||0))/2:t.plotY||0,n&&i&&(r?(l+=a+s.plotHeight-n.len-n.pos,c+=h+s.plotWidth-i.len-i.pos):(l+=n.pos-h,c+=i.pos-a))}),l/=t.length,c/=t.length,o=[r?s.plotWidth-c:l,r?s.plotHeight-l:c],this.shared&&1<t.length&&e&&(r?o[0]=e.chartX-h:o[1]=e.chartY-a)),o.map(Math.round)},_.prototype.getDateFormat=function(t,e,i,n){var s=this.chart.time,o=s.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(h in v){if(t===v.week&&+s.dateFormat("%w",e)===i&&"00:00:00.000"===o.substr(6)){var h="week";break}if(v[h]>t){h=a;break}if(r[h]&&o.substr(r[h])!=="01-01 00:00:00.000".substr(r[h]))break;"week"!==h&&(a=h)}if(h)var l=s.resolveDTLFormat(n[h]).main;return l},_.prototype.getLabel=function(){var e,i,n,s,a=this,h=this.chart.renderer,l=this.chart.styledMode,c=this.options,u="tooltip"+(r(c.className)?" "+c.className:""),d=(null===(e=c.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&c.stickOnContact?"auto":"none");if(e=function(){a.inContact=!0},!this.label){if(this.outside){var p=null===(i=this.chart.options.chart)||void 0===i?void 0:i.style;this.container=s=t.doc.createElement("div"),s.className="highcharts-tooltip-container",o(s,{position:"absolute",top:"1px",pointerEvents:d,zIndex:Math.max((null===(n=this.options.style)||void 0===n?void 0:n.zIndex)||0,((null==p?void 0:p.zIndex)||0)+3)}),t.doc.body.appendChild(s),this.renderer=h=new t.Renderer(s,0,0,p,void 0,void 0,h.styledMode)}if(this.split?this.label=h.g(u):(this.label=h.label("",0,0,c.shape||"callout",null,null,c.useHTML,null,u).attr({padding:c.padding,r:c.borderRadius}),l||this.label.attr({fill:c.backgroundColor,"stroke-width":c.borderWidth}).css(c.style).css({pointerEvents:d}).shadow(c.shadow)),l&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),a.outside&&!a.split){var f=this.label,m=f.xSetter,g=f.ySetter;f.xSetter=function(t){m.call(f,a.distance),s.style.left=t+"px"},f.ySetter=function(t){g.call(f,a.distance),s.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",function(){var t=a.chart.hoverSeries;a.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()}).attr({zIndex:8}).add()}return this.label},_.prototype.getPosition=function(t,e,i){var s,o=this.chart,r=this.distance,a={},h=o.inverted&&i.h||0,l=this.outside,c=l?n.documentElement.clientWidth-2*r:o.chartWidth,u=l?Math.max(n.body.scrollHeight,n.documentElement.scrollHeight,n.body.offsetHeight,n.documentElement.offsetHeight,n.documentElement.clientHeight):o.chartHeight,d=o.pointer.getChartPosition(),p=function(n){var s="x"===n;return[n,s?c:u,s?t:e].concat(l?[s?t*d.scaleX:e*d.scaleY,s?d.left-r+(i.plotX+o.plotLeft)*d.scaleX:d.top-r+(i.plotY+o.plotTop)*d.scaleY,0,s?c:u]:[s?t:e,s?i.plotX+o.plotLeft:i.plotY+o.plotTop,s?o.plotLeft:o.plotTop,s?o.plotLeft+o.plotWidth:o.plotTop+o.plotHeight])},m=p("y"),g=p("x"),v=!this.followPointer&&f(i.ttBelow,!o.inverted==!!i.negative),_=function(t,e,i,n,s,o,c){var u=l?"y"===t?r*d.scaleY:r*d.scaleX:r,p=(i-n)/2,f=n<s-r,m=s+r+n<e,g=s-u-i+p;if(s=s+u-p,v&&m)a[t]=s;else if(!v&&f)a[t]=g;else if(f)a[t]=Math.min(c-n,0>g-h?g:g-h);else{if(!m)return!1;a[t]=Math.max(o,s+h+i>e?s:s+h)}},y=function(t,e,i,n,s){var o;return s<r||s>e-r?o=!1:a[t]=s<i/2?1:s>e-n/2?e-n-2:s-i/2,o},b=function(t){var e=m;m=g,g=e,s=t},x=function(){!1!==_.apply(0,m)?!1!==y.apply(0,g)||s||(b(!0),x()):s?a.x=a.y=0:(b(!0),x())};return(o.inverted||1<this.len)&&b(),x(),a},_.prototype.getXDateFormat=function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},_.prototype.hide=function(t){var e=this;i.clearTimeout(this.hideTimer),t=f(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=g(function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0},t))},_.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=f(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},_.prototype.isStickyOnContact=function(){return!(this.followPointer||!this.options.stickOnContact||!this.inContact)},_.prototype.move=function(t,e,n,s){var o=this,r=o.now,a=!1!==o.options.animation&&!o.isHidden&&(1<Math.abs(t-r.x)||1<Math.abs(e-r.y)),l=o.followPointer||1<o.len;h(r,{x:a?(2*r.x+t)/3:t,y:a?(r.y+e)/2:e,anchorX:l?void 0:a?(2*r.anchorX+n)/3:n,anchorY:l?void 0:a?(r.anchorY+s)/2:s}),o.getLabel().attr(r),o.drawTracker(),a&&(i.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(t,e,n,s)},32))},_.prototype.refresh=function(t,n){var s=this.chart,o=this.options,r=t,a={},h=[],c=o.formatter||this.defaultFormatter;a=this.shared;var u=s.styledMode;if(o.enabled){i.clearTimeout(this.hideTimer),this.followPointer=m(r)[0].series.tooltipOptions.followPointer;var d=this.getAnchor(r,n);n=d[0];var p=d[1];!a||r.series&&r.series.noSharedTooltip?a=r.getLabelConfig():(s.pointer.applyInactiveState(r),r.forEach(function(t){t.setState("hover"),h.push(t.getLabelConfig())}),(a={x:r[0].category,y:r[0].y}).points=h,r=r[0]),this.len=h.length,s=c.call(a,this),c=r.series,this.distance=f(c.tooltipOptions.distance,16),!1===s?this.hide():(this.split?this.renderSplit(s,m(t)):(t=this.getLabel(),o.style.width&&!u||t.css({width:this.chart.spacingBox.width+"px"}),t.attr({text:s&&s.join?s.join(""):s}),t.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+f(r.colorIndex,c.colorIndex)),u||t.attr({stroke:o.borderColor||r.color||c.color||e.neutralColor60}),this.updatePosition({plotX:n,plotY:p,negative:r.negative,ttBelow:r.ttBelow,h:d[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),l(this,"refresh")}},_.prototype.renderSplit=function(i,n){function o(t,e,i,n,o){return void 0===o&&(o=!0),i?(e=P?0:L,t=s(t-n/2,C.left,C.right-n)):(e-=T,t=s(t=o?t-n-w:t+w,o?t:C.left,C.right)),{x:t,y:e}}var r=this,a=r.chart,l=r.chart,c=l.plotHeight,u=l.plotLeft,p=l.plotTop,m=l.pointer,g=l.renderer,v=l.scrollablePixelsY,_=void 0===v?0:v,y=(v=void 0===(v=l.scrollingContainer)?{scrollLeft:0,scrollTop:0}:v).scrollLeft,b=v.scrollTop,x=l.styledMode,w=r.distance,M=r.options,S=r.options.positioner,C={left:y,right:y+l.chartWidth,top:b,bottom:b+l.chartHeight},k=r.getLabel(),P=!(!a.xAxis[0]||!a.xAxis[0].opposite),T=p+b,E=0,L=c-_;d(i)&&(i=[!1,i]),i=i.slice(0,n.length+1).reduce(function(t,i,a){if(!1!==i&&""!==i){var h=(a=n[a-1]||{isHeader:!0,plotX:n[0].plotX,plotY:c,series:{}}).isHeader,l=h?r:a.series,d=l.tt,m=a.isHeader,v=a.series,y="highcharts-color-"+f(a.colorIndex,v.colorIndex,"none");d||(d={padding:M.padding,r:M.borderRadius},x||(d.fill=M.backgroundColor,d["stroke-width"]=M.borderWidth),d=g.label("",0,0,M[m?"headerShape":"shape"]||"callout",void 0,void 0,M.useHTML).addClass((m?"highcharts-tooltip-header ":"")+"highcharts-tooltip-box "+y).attr(d).add(k)),d.isActive=!0,d.attr({text:i}),x||d.css(M.style).shadow(M.shadow).attr({stroke:M.borderColor||a.color||v.color||e.neutralColor80}),i=l.tt=d,l=(m=i.getBBox()).width+i.strokeWidth(),h&&(E=m.height,L+=E,P&&(T-=E)),v=void 0===(v=a.plotX)?0:v,y=void 0===(y=a.plotY)?0:y;var A=a.series;if(a.isHeader){v=u+v;var O=p+c/2}else d=A.xAxis,A=A.yAxis,v=d.pos+s(v,-w,d.len+w),A.pos+y>=b+p&&A.pos+y<=b+p+c-_&&(O=A.pos+y);v=s(v,C.left-w,C.right+w),"number"==typeof O?(m=m.height+1,y=S?S.call(r,l,m,a):o(v,O,h,l),t.push({align:S?0:void 0,anchorX:v,anchorY:O,boxWidth:l,point:a,rank:f(y.rank,h?1:0),size:m,target:y.y,tt:i,x:y.x})):i.isActive=!1}return t},[]),!S&&i.some(function(t){return t.x<C.left})&&(i=i.map(function(t){var e=o(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return h(t,{target:e.y,x:e.x})}
2)),r.cleanSplit(),t.distribute(i,L),i.forEach(function(t){var e=t.pos;t.tt.attr({visibility:void 0===e?"hidden":"inherit",x:t.x,y:e+T,anchorX:t.anchorX,anchorY:t.anchorY})}),i=r.container,a=r.renderer,r.outside&&i&&a&&(l=k.getBBox(),a.setSize(l.width+l.x,l.height+l.y,!1),m=m.getChartPosition(),i.style.left=m.left+"px",i.style.top=m.top+"px")},_.prototype.drawTracker=function(){if(this.followPointer||!this.options.stickOnContact)this.tracker&&this.tracker.destroy();else{var t=this.chart,e=this.label,i=t.hoverPoint;if(e&&i){var n={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var s=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,n.x=Math.min(0,i[0]),n.y=Math.min(0,i[1]),n.width=0>i[0]?Math.max(Math.abs(i[0]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),n.height=0>i[1]?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.height),this.tracker?this.tracker.attr(n):(this.tracker=e.renderer.rect(n).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},_.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},_.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",n=t.series,s=n.tooltipOptions,o=s.xDateFormat,r=n.xAxis,a=r&&"datetime"===r.options.type&&u(t.key),h=s[i+"Format"];return l(this,"headerFormatter",e={isFooter:e,labelConfig:t}
2,function(e){a&&!o&&(o=this.getXDateFormat(t,s,r)),a&&o&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach(function(t){h=h.replace("{point."+t+"}","{point."+t+":"+o+"}")}),n.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=c(h,{point:t,series:n},this.chart)}),e.text},_.prototype.update=function(t){this.destroy(),p(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,p(!0,this.options,t))},_.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,n=this.getLabel(),s=t.plotX+e.plotLeft;if(e=t.plotY+e.plotTop,i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,n.width,n.height,t),this.outside){var r=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(n.width+r,n.height+r,!1),1===i.scaleX&&1===i.scaleY||(o(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),s*=i.scaleX,e*=i.scaleY),s+=i.left-t.x,e+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),s,e)},_}();return t.Tooltip=_,t.Tooltip}),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],function(t,e,i,n,s){var o=t.parse,r=e.charts,a=e.noop,h=s.addEvent,l=s.attr,c=s.css,u=s.defined,d=s.extend,p=s.find,f=s.fireEvent,m=s.isNumber,g=s.isObject,v=s.objectEach,_=s.offset,y=s.pick,b=s.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},t.prototype.destroy=function(){var t=this;void 0!==t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),v(t,function(e,i){t[i]=void 0})},t.prototype.drag=function(t){var e=this.chart,n=e.options.chart,s=t.chartX,r=t.chartY,a=this.zoomHor,h=this.zoomVert,l=e.plotLeft,c=e.plotTop,u=e.plotWidth,d=e.plotHeight,p=this.selectionMarker,f=this.mouseDownX||0,m=this.mouseDownY||0,v=g(n.panning)?n.panning&&n.panning.enabled:n.panning,_=n.panKey&&t[n.panKey+"Key"];if((!p||!p.touch)&&(s<l?s=l:s>l+u&&(s=l+u),r<c?r=c:r>c+d&&(r=c+d),this.hasDragged=Math.sqrt(Math.pow(f-s,2)+Math.pow(m-r,2)),10<this.hasDragged)){var y=e.isInsidePlot(f-l,m-c);e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&y&&!_&&!p&&(this.selectionMarker=p=e.renderer.rect(l,c,a?1:u,h?1:d,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||p.attr({fill:n.selectionMarkerFill||o(i.highlightColor80).setOpacity(.25).get()})),p&&a&&(s-=f,p.attr({width:Math.abs(s),x:(0<s?0:s)+f})),p&&h&&(s=r-m,p.attr({height:Math.abs(s),y:(0<s?0:s)+m})),y&&!p&&v&&e.pan(t,n.panning)}},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.drop=function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var s,o={originalEvent:t,xAxis:[],yAxis:[]},r=this.selectionMarker,a=r.attr?r.attr("x"):r.x,h=r.attr?r.attr("y"):r.y,l=r.attr?r.attr("width"):r.width,p=r.attr?r.attr("height"):r.height;(this.hasDragged||n)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&u(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&m(a)&&m(h)){var r=i.horiz,c="touchend"===t.type?i.minPixelPadding:0,d=i.toValue((r?a:h)+c);r=i.toValue((r?a+l:h+p)-c),o[i.coll].push({axis:i,min:Math.min(d,r),max:Math.max(d,r)}),s=!0}}),s&&f(i,"selection",o,function(t){i.zoom(d(t,n?{animation:!1}:null))})),m(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),n&&this.scaleGroups()}i&&m(i.index)&&(c(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}
2,t.prototype.findNearestKDPoint=function(t,e,i){var n,s=this.chart,o=s.hoverPoint;return s=s.tooltip,o&&s&&s.isStickyOnContact()?o:(t.forEach(function(t){var s=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,s),(s=g(t,!0)&&t.series)&&!(s=!g(n,!0))){s=n.distX-t.distX;var o=n.dist-t.dist,r=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);s=0<(0!==s&&e?s:0!==o?o:0!==r?r:n.series.index>t.series.index?-1:1)}s&&(n=t)}),n)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,n=i.xAxis;i=i.yAxis;var s=y(t.clientX,t.plotX),o=t.shapeArgs;return n&&i?e?{chartX:n.len+n.pos-s,chartY:i.len+i.pos-t.plotY}:{chartX:s+n.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=_(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2<i&&2<t&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},t.prototype.getHoverData=function(t,e,i,n,s,o){var r,a=[];n=!(!n||!t);var h=e&&!e.stickyTracking,l={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:s};return f(this,"beforeGetHoverData",l),h=h?[e]:i.filter(function(t){return l.filter?l.filter(t):t.visible&&!(!s&&t.directTouch)&&y(t.options.enableMouseTracking,!0)&&t.stickyTracking}),e=(r=n||!o?t:this.findNearestKDPoint(h,s,o))&&r.series,r&&(s&&!e.noSharedTooltip?(h=i.filter(function(t){return l.filter?l.filter(t):t.visible&&!(!s&&t.directTouch)&&y(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=p(t.points,function(t){return t.x===r.x&&!t.isNull});g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))}):a.push(r)),f(this,"afterGetHoverData",l={hoverPoint:r}),{hoverPoint:l.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=l(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},n&&(t.tooltip=new n(t,e.tooltip),this.followTouchMove=y(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,n=i?i.length?i.item(0):y(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=n.pageX-e.left,n=n.pageY-e.top,i/=e.scaleX,n/=e.scaleY,d(t,{chartX:Math.round(i),chartY:Math.round(n)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var n=e.plotLeft,s=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(f(i.series,"click",d(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(d(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-s)&&f(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=!(1&~(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(t){var i=r[y(e.hoverChartIndex,-1)],n=this.chart.tooltip;t=this.normalize(t),i&&(t.relatedTarget||t.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),n&&!n.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){r[e.hoverChartIndex]&&r[e.hoverChartIndex].pointer.drop(t)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var n=e.tooltip;!i||n&&n.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var i=r[y(e.hoverChartIndex,-1)];i&&i.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,i=e.chart,n=e.pinchDown,s=t.touches||[],o=s.length,r=e.lastValidTouch,h=e.hasZoom,l=e.selectionMarker,c={},u=1===o&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={};1<o&&(e.initiated=!0),h&&e.initiated&&!u&&!1!==t.cancelable&&t.preventDefault(),[].map.call(s,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(s,function(t,e){n[e]={chartX:t.chartX,chartY:t.chartY}}),r.x=[n[0].chartX,n[1]&&n[1].chartX],r.y=[n[0].chartY,n[1]&&n[1].chartY],i.axes.forEac
2h(function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,s=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),o=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),r=Math.max(s,o);e.min=Math.min(t.pos,Math.min(s,o)-n),e.max=Math.max(t.pos+t.len,r+n)}}),e.res=!0):e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):n.length&&(l||(e.selectionMarker=l=d({destroy:a,touch:!0},i.plotBox)),e.pinchTranslate(n,s,c,l,p,r),e.hasPinched=h,e.scaleGroups(c,p),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,n,s,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,s,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,s,o)},t.prototype.pinchTranslateDirection=function(t,e,i,n,s,o,r,a){var h,l,c=this.chart,u=t?"x":"y",d=t?"X":"Y",p="chart"+d,f=t?"width":"height",m=c["plot"+(t?"Left":"Top")],g=a||1,v=c.inverted,_=c.bounds[t?"h":"v"],y=1===e.length,b=e[0][p],x=i[0][p],w=!y&&e[1][p],M=!y&&i[1][p];if((i=function(){"number"==typeof M&&20<Math.abs(b-w)&&(g=a||Math.abs(x-M)/Math.abs(b-w)),l=(m-x)/g+b,h=c["plot"+(t?"Width":"Height")]/g})(),(e=l)<_.min){e=_.min;var S=!0}else e+h>_.max&&(e=_.max-h,S=!0);S?(x-=.8*(x-r[u][0]),"number"==typeof M&&(M-=.8*(M-r[u][1])),i()):r[u]=[x,M],v||(o[u]=l-m,o[f]=h),o=v?1/g:g,s[f]=h,s[u]=e,n[v?t?"scaleY":"scaleX":"scale"+d]=g,n["translate"+d]=o*m+(x-o*b)},t.prototype.reset=function(t,e){var i=this.chart,n=i.hoverSeries,s=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,a=r&&r.shared?o:s;t&&a&&b(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?r&&a&&b(a).length&&(r.refresh(a),r.shared&&o?o.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):s&&(s.setState(s.state,!0),i.axes.forEach(function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)}))):(s&&s.onMouseOut(),o&&o.forEach(function(t){t.setState()}),n&&n.onMouseOut(),r&&r.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(t,i){var n=this.chart,s=n.tooltip&&n.tooltip.options.enabled?n.tooltip:void 0,o=!!s&&s.shared,a=i||n.hoverPoint,l=a&&a.series||n.hoverSeries;a=(l=this.getHoverData(a,l,n.series,(!t||"touchmove"!==t.type)&&(!!i||l&&l.directTouch&&this.isDirectTouch),o,t)).hoverPoint;var c=l.hoverPoints;if(i=(l=l.hoverSeries)&&l.tooltipOptions.followPointer,o=o&&l&&!l.noSharedTooltip,a&&(a!==n.hoverPoint||s&&s.isHidden)){if((n.hoverPoints||[]).forEach(function(t){-1===c.indexOf(t)&&t.setState()}),n.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!a.series)return;n.hoverPoints=c,n.hoverPoint=a,a.firePointEvent("mouseOver"),s&&s.refresh(o?c:a,t)}else i&&s&&!s.isHidden&&(a=s.getAnchor([{}],t),s.updatePosition({plotX:a[0],plotY:a[1]}));this.unDocMouseMove||(this.unDocMouseMove=h(n.container.ownerDocument,"mousemove",function(t){var i=r[e.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(t)})),n.axes.forEach(function(e){var i,s=y((e.crosshair||{}).snap,!0);s&&((i=n.hoverPoint)&&i.series[e.coll]===e||(i=p(c,function(t){return t.series[e.coll]===e}))),i||!s?e.drawCrosshair(t,i):e.hideCrosshair()})},t.prototype.scaleGroups=function(t,e){var i,n=this.chart;n.series.forEach(function(s){i=t||s.getPlotBox(),s.xAxis&&s.xAxis.zoomEnabled&&s.group&&(s.group.attr(i),s.markerGroup&&(s.markerGroup.attr(i),s.markerGroup.clip(e?n.clipRect:null)),s.dataLabelsGroup&&s.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var t=this,i=this.chart.container,n=i.ownerDocument;i.onmousedown=this.onContainerMouseDown.bind(this),i.onmousemove=this.onContainerMouseMove.bind(this),i.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=h(i,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=h(i,"mouseleave",this.onContainerMouseLeave.bind(this)),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=h(n,"mouseup",this.onDocumentMouseUp.bind(this)));for(var s=this.chart.renderTo.parentElement;s&&"BODY"!==s.tagName;)h(s,"scroll",function(){delete t.chartPosition}),s=s.parentElement;e.hasTouch&&(h(i,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),h(i,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1}),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=h(n,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var t=this.chart,i=e.charts[y(e.hoverChartIndex,-1)];i&&i!==t&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(e.hoverChartIndex=t.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var n=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));y(n,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,n=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(n=y(i.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}(),e.Pointer=t}),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],function(t,e,
2i){function n(){var t=[];return t.item=function(t){return this[t]},u(p,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}function s(e,i,s,o){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!r[t.hoverChartIndex]||(o(e),(o=r[t.hoverChartIndex].pointer)[i]({type:s,target:e.currentTarget,preventDefault:h,touches:n()}))}var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=t.charts,a=t.doc,h=t.noop,l=i.addEvent,c=i.css,u=i.objectEach,d=i.removeEvent,p={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(d),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&c(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){s(t,"onContainerTouchStart","touchstart",function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},e.prototype.onContainerPointerMove=function(t){s(t,"onContainerTouchMove","touchmove",function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)})},e.prototype.onDocumentPointerUp=function(t){s(t,"onDocumentTouchEnd","touchend",function(t){delete p[t.pointerId]})},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(l)},e}(e)}),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Options.js"],i["Core/Utilities.js"]],function(t,e,i,n,s){var o=e.animObject,r=n.defaultOptions,a=s.addEvent,h=s.defined,l=s.erase,c=s.extend,u=s.fireEvent,d=s.format,p=s.getNestedProperty,f=s.isArray,m=s.isFunction,g=s.isNumber,v=s.isObject,_=s.merge,y=s.objectEach,b=s.pick,x=s.syncTimeout,w=s.removeEvent,M=s.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t,e=this,i={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(n){t="dataLabel"===n,e[n]=e[n].animate(t?{x:e[n].startXPos,y:e[n].startYPos,opacity:0}:i)}),n.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.animate(c({x:e.startXPos},t.startYPos?{x:t.startXPos,y:t.startYPos}:{}))})})},e.prototype.applyOptions=function(t,i){var n=this.series,s=n.options.pointValKey||n.pointValKey;return t=e.prototype.optionsToObject.call(this,t),c(this,t),this.options=this.options?c(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=e.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=b(this.isValid&&!this.isValid(),null===this.x||!g(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n&&(this.x=void 0===i?n.autoIncrement(this):i),this},e.prototype.destroy=function(){function t(){for(s in(e.graphic||e.dataLabel||e.dataLabels)&&(w(e),e.destroyElements()),e)e[s]=null}var e=this,i=e.series,n=i.chart;i=i.options.dataSorting;var s,r=n.hoverPoints,a=o(e.series.chart.renderer.globalAnimation);e.legendItem&&n.legend.destroyItem(e),r&&(e.setState(),l(r,e),r.length||(n.hoverPoints=null)),e===n.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),x(t,a.duration)):t(),n.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach(function(t){e[t]=e[t].destroy()}),t.plural.forEach(function(t){e[t].forEach(function(t){t.element&&t.destroy()}),delete e[t]})}
2,e.prototype.firePointEvent=function(t,e,i){var n=this,s=this.series.options;(s.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&n.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),u(n,t,e,i)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,i=this,n=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&n.push("dataLabel","dataLabelUpper","connector"),e=n.length;e--;){var o=n[e];i[o]&&s.singular.push(o)}return["dataLabel","connector"].forEach(function(e){var n=e+"s";t[e]&&i[n]&&s.plural.push(n)}),s},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?p(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,n=0;for(i=e[n];this[t]>=i.value;)i=e[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=h(this.id)?this.id:M(),this.resolveColor(),t.chart.pointCount++,u(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var i={},n=this.series,s=n.options.keys,o=s||n.pointArrayMap||["y"],r=o.length,a=0,h=0;if(g(t)||null===t)i[o[0]]=t;else if(f(t))for(!s&&t.length>r&&("string"==(n=typeof t[0])?i.name=t[0]:"number"===n&&(i.x=t[0]),a++);h<r;)s&&void 0===t[a]||(0<o[h].indexOf(".")?e.prototype.setNestedProperty(i,t[a],o[h]):i[o[h]]=t[a]),a++,h++;else"object"==typeof t&&(i=t,t.dataLabels&&(n._hasPointLabels=!0),t.marker&&(n._hasPointMarkers=!0));return i},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;delete this.nonZonedColor,i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=b(this.options.colorIndex,i)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce(function(t,i,n,s){return t[i]=s.length-1===n?e:v(t[i],!0)?t[i]:{},t[i]},t),t},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,n=b(i.valueDecimals,""),s=i.valuePrefix||"",o=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEac
2h(function(e){e="{point."+e,(s||o)&&(t=t.replace(RegExp(e+"}","g"),s+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+n+"f}")}),d(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,i,n){function s(){r.applyOptions(t);var n=h&&r.hasDummyGraphic;n=null===r.y?!n:n,h&&n&&(r.graphic=h.destroy(),delete r.hasDummyGraphic),v(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(r.graphic=h.destroy()),t&&t.dataLabels&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy()),r.connector&&(r.connector=r.connector.destroy())),o=r.index,a.updateParallelArrays(r,o),c.data[o]=v(c.data[o],!0)||v(t,!0)?r.options:b(t,c.data[o]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===c.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var o,r=this,a=r.series,h=r.graphic,l=a.chart,c=a.options;e=b(e,!0),!1===n?s():r.firePointEvent("update",{options:t},s)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var i=this,n=i.series,s=n.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[n.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||s.getSelectedPoints().forEac
2h(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(s.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=_(t.series.options.point,t.options).events;t.events=e,y(e,function(e,i){m(e)&&a(t,i,e)}),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var n,s=this.series,o=this.state,a=s.options.states[e||"normal"]||{},h=r.plotOptions[s.type].marker&&s.options.marker,l=h&&!1===h.enabled,d=h&&h.states&&h.states[e||"normal"]||{},p=!1===d.enabled,f=s.stateMarkerGraphic,m=this.marker||{},g=s.chart,v=s.halo,_=h&&s.markerAttribs;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===a.enabled||e&&(p||l&&!1===d.enabled)||e&&m.states&&m.states[e]&&!1===m.states[e].enabled)){if(this.state=e,_&&(n=s.markerAttribs(this,e)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){var y=s.pointAttribs(this,e),x=b(g.options.chart.animation,a.animation);s.options.inactiveOtherPoints&&y.opacity&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:y.opacity},x)}),this.connector&&this.connector.animate({opacity:y.opacity},x)),this.graphic.animate(y,x)}n&&this.graphic.animate(n,b(g.options.chart.animation,d.animation,h.animation)),f&&f.hide()}else e&&d&&(o=m.symbol||s.symbol,f&&f.currentSymbol!==o&&(f=f.destroy()),n&&(f?f[i?"animate":"attr"]({x:n.x,y:n.y}):o&&(s.stateMarkerGraphic=f=g.renderer.symbol(o,n.x,n.y,n.width,n.height).add(s.markerGroup),f.currentSymbol=o)),!g.styledMode&&f&&f.attr(s.pointAttribs(this,e))),f&&(f[e&&this.isInside?"show":"hide"](),f.element.point=this);e=a.halo,a=(f=this.graphic||f)&&f.visibility||"inherit",e&&e.size&&f&&"hidden"!==a&&!this.isCluster?(v||(s.halo=v=g.renderer.path().add(f.parentGroup)),v.show()[i?"animate":"attr"]({d:this.haloPath(e.size)}),v.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:a,zIndex:-1}),v.point=this,g.styledMode||v.attr(c({fill:this.color||s.color,"fill-opacity":e.opacity},t.filterUserAttributes(e.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),u(this,"afterSetState")}},e.prototype.haloPath=function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)},e}(),i.Point=e}),e(i,"Core/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i,n){var s=t.animObject,o=t.setAnimation;t=e.isFirefox;var r=e.marginNames,a=e.win,h=n.addEvent,l=n.createElement,c=n.css,u=n.defined,d=n.discardElement,p=n.find,f=n.fireEvent,m=n.format,g=n.isNumber,v=n.merge,_=n.pick,y=n.relativeLength,b=n.stableSort,x=n.syncTimeout;n=n.wrap;var w=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),h(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=h(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=_(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=v(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.
2itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=_(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(v(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,_(e,!0)&&i.redraw(),f(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,n=t.legendItem,s=t.legendLine,o=t.legendSymbol,r=this.itemHiddenStyle.color;i=e?i.itemStyle.color:r;var a=e&&t.color||r,h=t.options&&t.options.marker,l={fill:a};n&&n.css({fill:i,color:i}),s&&s.attr({stroke:a}),o&&(h&&o.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=r)),o.attr(l))}f(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=this.options,n=i.symbolPadding,s=!i.rtl,o=t._legendItemPos;i=o[0],o=o[1];var r=t.checkbox,a=t.legendGroup;a&&a.element&&(n={translateX:s?i:this.legendWidth-i-2*n-4,translateY:o},s=function(){f(e,"afterPositionItem",{item:t})},u(a.translateY)?a.animate(n,void 0,s):(a.attr(n),s())),r&&(r.x=i,r.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&d(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}
2this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var n=t.translateY;this.allItems.forEach(function(s){var o=s.checkbox;if(o){var r=n+i+o.y+(this.scrollOffset||0)+3;c(o,{left:t.translateX+s.checkboxOffset+o.x-20+"px",top:r+"px",display:this.proximate||r>n-6&&r<n+e-6?"":"none"})}},this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},t.prototype.setText=function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?m(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=this.chart,i=e.renderer,n=this.options,s=this.symbolWidth,o=n.symbolPadding,r=this.itemStyle,a=this.itemHiddenStyle,h="horizontal"===n.layout?_(n.itemDistance,20):0,l=!n.rtl,c=t.legendItem,u=!t.series,d=!u&&t.series.drawLegendSymbol?t.series:t,p=d.options;h=s+o+h+((p=this.createCheckboxForItem&&p&&p.showCheckbox)?20:0);var f=n.useHTML,m=t.options.className;c||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=c=i.text("",l?s+o:-o,this.baseline||0,f),e.styledMode||c.css(v(t.visible?r:a)),c.attr({align:l?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:r.fontSize,c),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,c.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,c,f)),p&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&r.width||c.css({width:(n.itemWidth||this.widthOption||e.spacingBox.width)-h+"px"}),this.setText(t),e=c.getBBox(),t.itemWidth=t.checkboxOffset=n.itemWidth||t.legendItemWidth||e.width+h,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,n="horizontal"===e.layout,s=t.itemHeight,o=this.itemMarginBottom,r=this.itemMarginTop,a=n?_(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,n&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=r+this.itemY+o,this.lastLineHeight=Math.max(s,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=r+s+o,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach(function(e){var i=e&&e.options;e&&_(i.showInLegend,!u(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),f(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,n=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEac
2h(function(o,a){o.test(s)&&!u(t[a])&&(i[r[a]]=Math.max(i[r[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*n[a%2?"x":"y"]+_(n.margin,12)+e[a]+(i.titleOffset[a]||0)))})},t.prototype.proximatePositions=function(){var t=this.chart,i=[],n="left"===this.options.align;this.allItems.forEach(function(e){var s,o=n;if(e.yAxis){e.xAxis.options.reversed&&(o=!o),e.points&&(s=p(o?e.points:e.points.slice(0).reverse(),function(t){return g(t.plotY)})),o=this.itemMarginTop+e.legendItem.getBBox().height+this.itemMarginBottom;var r=e.yAxis.top-t.plotTop;e.visible?(s=s?s.plotY:e.yAxis.height,s+=r-.3*o):s=r+e.yAxis.height,i.push({target:s,size:o,item:e})}},this),e.distribute(i,t.plotHeight),i.forEach(function(e){e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos})},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,n=this.box,s=this.options,o=this.padding;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=y(s.width,t.spacingBox.width-o);var r=t.spacingBox.width-2*o-s.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(r/=2),this.maxLegendWidth=this.widthOption||r,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();b(a,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),s.reversed&&a.reverse(),this.allItems=a,this.display=r=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+o;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=o,n||(this.box=n=e.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(i),n.isNew=!0),t.styledMode||n.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),0<a&&0<h&&(n[n.isNew?"attr":"animate"](n.crisp.call({},{x:0,y:0,width:a,height:h},n.strokeWidth())),n.isNew=!1),n[r?"show":"hide"](),t.styledMode&&"none"===i.getStyle("display")&&(a=h=0),this.legendWidth=a,this.legendHeight=h,r&&this.align(),this.proximate||this.positionItems(),f(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,n=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?n+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(n-=e.titleOffset[2]),n!==t.y&&(t=v(t,{y:n})),this.group.align(v(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e=this,i=this.chart,n=i.renderer,s=this.options,o=s.y,r=this.padding;o=i.spacingBox.height+("top"===s.verticalAlign?-o:o)-r;var a,h,l=s.maxHeight,c=this.clipRect,u=s.navigation,d=_(u.animation,!0),p=u.arrowSize||12,f=this.nav,m=this.pages,g=this.allItems,v=function(t){"number"==typeof t?c.attr({height:t}):c&&(e.clipRect=c.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+r+"px,9999px,"+(r+t)+"px,0)":"auto")},y=function(t){return e[t]=n.circle(0,0,1.3*p).translate(p/2,p/2).add(f),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==s.layout||"middle"===s.verticalAlign||s.floating||(o/=2),l&&(o=Math.min(o,l)),m.length=0,t>o&&!1!==u.enabled?(this.clipHeight=a=Math.max(o-20-this.titleHeight-r,0),this.currentPage=_(this.currentPage,1),this.fullHeight=t,g.forEach(function(t,e){var i=t._legendItemPos[1],n=Math.round(t.legendItem.getBBox().height),s=m.length;(!s||i-m[s-1]>a&&(h||i)!==m[s-1])&&(m.push(h||i),s++),t.pageIx=s-1,h&&(g[e-1].pageIx=s-1),e===g.length-1&&i+n-m[s-1]>a&&i!==h&&(m.push(i),t.pageIx=s),i!==h&&(h=i)}),c||(c=e.clipRect=n.clipRect(0,r,9999,0),e.contentGroup.clip(c)),v(a),f||(this.nav=f=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,p,p).add(f),y("upTracker").on("click",function(){e.scroll(-1,d)}),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(u.style),this.pager.add(f),this.down=n.symbol("triangle-down",0,0,p,p).add(f),y("downTracker").on("click",function(){e.scroll(1,d)})),e.scroll(0),t=o):f&&(v(),this.nav=f.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,n=this.chart,r=this.pages,a=r.length,h=this.currentPage+t;t=this.clipHeight;var l=this.options.navigation,c=this.pager,u=this.padding;h>
2a&&(h=a),0<h&&(void 0!==e&&o(e,n),this.nav.attr({translateX:u,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),c.attr({text:h+"/"+a}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:h===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:1===h?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===a?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:h===a?"default":"pointer"})),this.scrollOffset=-r[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes(),e=s(_(e,n.renderer.globalAnimation,!0)),x(function(){f(i,"afterScroll",{currentPage:h})},e.duration))},t.prototype.setItemEvents=function(t,e,n){var s=this,o=s.chart.renderer.boxWrapper,r=t instanceof i,a="highcharts-legend-"+(r?"point":"series")+"-active",h=s.chart.styledMode;(n?[e,t.legendSymbol]:[t.legendGroup]).forEach(function(i){i&&i.on("mouseover",function(){t.visible&&s.allItems.forEach(function(e){t!==e&&e.setState("inactive",!r)}),t.setState("hover"),t.visible&&o.addClass(a),h||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(v(t.visible?s.itemStyle:s.itemHiddenStyle)),s.allItems.forEach(function(e){t!==e&&e.setState("",!r)}),o.removeClass(a),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),s.allItems.forEach(function(e){t!==e&&e.setState(t.visible?"inactive":"",!r)})};o.removeClass(a),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):f(t,"legendItemClick",e,i)})})},t.prototype.createCheckboxForItem=function(t){t.checkbox=l("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),h(t.checkbox,"click",function(e){f(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})},t}();return(/Trident\/7\.0/.test(a.navigator&&a.navigator.userAgent)||t)&&n(w.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),i.bubbleLegend||setTimeout(n)}),e.Legend=w,e.Legend}),e(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/Options.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i,n){var s,o=e.defaultOptions,r=n.error,a=n.extendClass,h=n.merge;return function(t){function e(e,n){var s=o.plotOptions||{},r=n.defaultOptions;n.prototype.pointClass||(n.prototype.pointClass=i),n.prototype.type=e,r&&(s[e]=r),t.seriesTypes[e]=n}t.seriesTypes={},t.getSeries=function(e,i){void 0===i&&(i={});var n=e.options.chart;n=i.type||n.type||n.defaultSeriesType||"";var s=t.seriesTypes[n];return t||r(17,!0,e,{missingModuleFor:n}),"function"==typeof(n=new s).init&&n.init(e,i),n},t.registerSeriesType=e,t.seriesType=function(n,s,r,l,c){var u=o.plotOptions||{};return s=s||"",u[n]=h(u[s],r),e(n,a(t.seriesTypes[s]||function(){},l)),t.seriesTypes[n].prototype.type=n,c&&(t.seriesTypes[n].prototype.pointClass=a(i,c)),t.seriesTypes[n]}}(s||(s={})),t.seriesType=s.seriesType,t.seriesTypes=s.seriesTypes,s}),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Legend.js"],i["Core/MSPointer.js"],i["Core/Options.js"],i["Core/Color/Palette.js"],i["Core/Pointer.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],function(t,e,i,n,s,o,r,a,h,l,c,u){var d=t.animate,p=t.animObject,f=t.setAnimation,m=i.charts,g=i.doc,v=i.win,_=o.defaultOptions,y=o.time,b=h.seriesTypes,x=c.addEvent,w=c.attr,M=c.cleanRecursively,S=c.createElement,C=c.css,k=c.defined,P=c.discardElement,T=c.erase,E=c.error,L=c.extend,A=c.find,O=c.fireEvent,I=c.getStyle,D=c.isArray,N=c.isFunction,z=c.isNumber,j=c.isObject,R=c.isString,G=c.merge,B=c.numberFormat,H=c.objectEach,F=c.pick,W=c.pInt,q=c.relativeLength,U=c.removeEvent,Z=c.splat,Y=c.syncTimeout,V=c.uniqueKey,X=i.marginNames,K=function(){function t(t,e,i){this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHe
2ight=this.bounds=this.axisOffset=this.axes=void 0,this.getArgs(t,e,i)}return t.prototype.getArgs=function(t,e,i){R(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var n,s=t.series,o=t.plotOptions||{};O(this,"init",{args:arguments},function(){t.series=null;var r=(n=G(_,t)).chart||{};H(n.plotOptions,function(t,e){j(t)&&(t.tooltip=o[e]&&G(o[e].tooltip)||void 0)}),n.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,n.series=t.series=s,this.userOptions=t;var a=r.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new l(t.time):i.time,this.numberFormatter=r.numberFormatter||B,this.styledMode=r.styledMode,this.hasCartesianSeries=r.showAxes;var h=this;h.index=m.length,m.push(h),i.chartCount++,a&&H(a,function(t,e){N(t)&&x(h,e,t)}),h.xAxis=[],h.yAxis=[],h.pointCount=h.colorCounter=h.symbolCounter=0,O(h,"afterInit"),h.firstRender()})},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var i=b[e];return i||E(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new i).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})},t.prototype.orderSeries=function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){var n=i?e:t;return n={x:n,y:t=i?t:e,isInsidePlot:0<=n&&n<=this.plotWidth&&0<=t&&t<=this.plotHeight},O(this,"afterIsInsidePlot",n),n.isInsidePlot},t.prototype.redraw=function(t){O(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,n=this.pointer,s=this.legend,o=this.userOptions.legend,r=this.isDirtyLegend,a=this.isDirtyBox,h=this.renderer,l=h.isHidden(),c=[];for(this.setResponsive&&this.setResponsive(!1),f(!!this.hasRendered&&t,this),l&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var u=i[t];if(u.options.stacking||u.options.centerInCategory){var d=!0;if(u.isDirty){var p=!0;break}}}if(p)for(t=i.length;t--;)(u=i[t]).options.stacking&&(u.isDirty=!0);i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),r=!0):o&&(o.labelFormatter||o.labelFormat)&&(r=!0)),t.isDirtyData&&O(t,"updatedData")}),r&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),e.forEach(function(t){t.isDirty&&(a=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,c.push(function(){O(t,"afterSetExtremes",L(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(a||d)&&t.redraw()}),a&&this.drawChartBox(),O(this,"predraw"),i.forEach(function(t){(a||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),n&&n.reset(!0),h.draw(),O(this,"redraw"),O(this,"render"),l&&this.temporaryDisplay(!0),c.forEach(function(t){t.call()})},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,n=this.series,s=A(this.axes,e)||A(this.series,e);for(i=0;!s&&i<n.length;i++)s=A(n[i].points||[],e);return s},t.prototype.getAxes=function(){var t=this,i=this.options,n=i.xAxis=Z(i.xAxis||{});i=i.yAxis=Z(i.yAxis||{}),O(this,"getAxes"),n.forEach(function(t,e){t.index=e,t.isX=!0}),i.forEach(function(t,e){t.index=e}),n.concat(i).forEach(function(i){new e(t,i)}),O(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){var t=[];return this.series.forEach(function(e){t=t.concat(e.getPointsCollection().filter(function(t){return F(t.selectedStaging,t.selected)}))}),t},t.prototype.getSelectedSeries=function(){return this.series.filter(function(t){return t.selected})}
2,t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i=this,n="title"===t?{color:r.neutralColor80,fontSize:this.options.isStock?"16px":"18px"}:{color:r.neutralColor60};n=this.options[t]=G(!this.styledMode&&{style:n},this.options[t],e);var s=this[t];s&&e&&(this[t]=s=s.destroy()),n&&!s&&((s=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||s.css(n.style),this[t]=s)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,n=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var s=this[t],o=this.options[t],r=o.verticalAlign||"top";if(t="title"===t?-3:"top"===r?e[0]+2:0,s){if(!this.styledMode)var a=o.style.fontSize;a=i.fontMetrics(a,s).b,s.css({width:(o.width||n.width+(o.widthAdjust||0))+"px"});var h=Math.round(s.getBBox(o.useHTML).height);s.align(L({y:"bottom"===r?a:t+a,height:h},o),!1,"spacingBox"),o.floating||("top"===r?e[0]=Math.ceil(e[0]+h):"bottom"===r&&(e[2]=Math.ceil(e[2]+h)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,O(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&F(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var i=this.renderTo;k(e)||(this.containerWidth=I(i,"width")),k(t)||(this.containerHeight=I(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,q(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(C(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(g.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(g.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,g.body.appendChild(e)),("none"===I(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),C(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==g.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e,n=this.options,s=n.chart,o=this.renderTo,r=V();o||(this.renderTo=o=s.renderTo),R(o)&&(this.renderTo=o=g.getElementById(o)),o||E(13,!0,this);var a=W(w(o,"data-highcharts-chart"));z(a)&&m[a]&&m[a].hasRendered&&m[a].destroy(),w(o,"data-highcharts-chart",this.index),o.innerHTML="",s.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize(),a=this.chartWidth;var h=this.chartHeight;if(C(o,{overflow:"hidden"}),this.styledMode||(t=L({position:"relative",overflow:"hidden",width:a+"px",height:h+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none"},s.style)),this.container=o=S("div",{id:r},t,o),this._cursor=o.style.cursor,this.renderer=new(i[s.renderer]||i.Renderer)(o,a,h,null,s.forExport,n.exporting&&n.exporting.allowHTML,this.styledMode),f(void 0,this),this.setClassName(s.className),this.styledMode)for(e in n.defs)this.renderer.definition(n.defs[e]);else this.renderer.setStyle(s.style);this.renderer.chartIndex=this.index,O(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n[0]&&!k(i[0])&&(this.plotTop=Math.max(this.plotTop,n[0]+e[0])),n[2]&&!k(i[2])&&(this.marginBottom=Math.max(this.marginBottom,n[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),O(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,n=t.margin,s=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};
2t.hasCartesianSeries?s(t.axes):i&&i.length&&s(i),X.forEach(function(i,s){k(n[s])||(t[i]+=e[s])}),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,n=e.renderTo,s=k(i.width)&&k(i.height),o=i.width||I(n,"width");i=i.height||I(n,"height"),n=t?t.target:v,delete e.pointer.chartPosition,s||e.isPrinting||!o||!i||n!==v&&n!==g||(o===e.containerWidth&&i===e.containerHeight||(c.clearTimeout(e.reflowTimeout),e.reflowTimeout=Y(function(){e.container&&e.setSize(void 0,void 0,!1)},t?100:0)),e.containerWidth=o,e.containerHeight=i)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=x(v,"resize",function(t){e.options&&e.reflow(t)}),x(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var n=this,s=n.renderer;n.isResizing+=1,f(i,n),i=s.globalAnimation,n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==t&&(n.options.chart.width=t),void 0!==e&&(n.options.chart.height=e),n.getChartSize(),n.styledMode||(i?d:C)(n.container,{width:n.chartWidth+"px",height:n.chartHeight+"px"},i),n.setChartSize(!0),s.setSize(n.chartWidth,n.chartHeight,i),n.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(i),n.oldChartHeight=null,O(n,"resize"),Y(function(){n&&O(n,"endResize",null,function(){--n.isResizing})},p(i).duration)},t.prototype.setChartSize=function(t){var e,i,n,s,o=this.inverted,r=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,c=this.spacing,u=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=s=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=o?s:n,this.plotSizeY=o?n:s,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=r.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:h-c[0]-c[2]},this.plotBox=r.plotBox={x:e,y:i,width:n,height:s},a=2*Math.floor(this.plotBorderWidth/2),o=Math.ceil(Math.max(a,u[3])/2),r=Math.ceil(Math.max(a,u[0])/2),this.clipBox={x:o,y:r,width:Math.floor(this.plotSizeX-Math.max(a,u[1])/2-o),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,u[2])/2-r))},t||this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),O(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){O(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var n=e[i],s=j(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach(function(n,o){t[i][o]=F(e[i+n],s[o])})}),X.forEach(function(e,i){t[e]=F(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,s=this.chartHeight,o=this.chartBackground,r=this.plotBackgroun
2d,a=this.plotBorder,h=this.styledMode,l=this.plotBGImage,c=e.backgroundColor,u=e.plotBackgroundColor,d=e.plotBackgroundImage,p=this.plotLeft,f=this.plotTop,m=this.plotWidth,g=this.plotHeight,v=this.plotBox,_=this.clipRect,y=this.clipBox,b="animate";if(o||(this.chartBackground=o=i.rect().addClass("highcharts-background").add(),b="attr"),h)var x=t=o.strokeWidth();else t=(x=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(x||o["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=x),o.attr(c).shadow(e.shadow);o[b]({x:t/2,y:t/2,width:n-t-x%2,height:s-t-x%2,r:e.borderRadius}),b="animate",r||(b="attr",this.plotBackground=r=i.rect().addClass("highcharts-plot-background").add()),r[b](v),h||(r.attr({fill:u||"none"}).shadow(e.plotShadow),d&&(l?(d!==l.attr("href")&&l.attr("href",d),l.animate(v)):this.plotBGImage=i.image(d,p,f,m,g).add())),_?_.animate({width:y.width,height:y.height}):this.clipRect=i.clipRect(y),b="animate",a||(b="attr",this.plotBorder=a=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),h||a.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),a[b](a.crisp({x:p,y:f,width:m,height:g},-a.strokeWidth())),this.isDirtyBox=!1,O(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,n=this,s=n.options.chart,o=n.options.series;["inverted","angular","polar"].forEach(function(r){for(t=b[s.type||s.defaultSeriesType],i=s[r]||t&&t.prototype[r],e=o&&o.length;!i&&e--;)(t=b[o[e].type])&&t.prototype[r]&&(i=!0);n[r]=i})},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var i=e.options.linkedTo;R(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=F(e.options.visible,i.options.visible,e.visible))}),O(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach(function(t){t.translate(),t.render()})},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(i){var n=L(e.style,i.style),s=W(n.left)+t.plotLeft,o=W(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,s,o).attr({zIndex:2}).css(n).add()})},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options,o=0,r=function(t){t.forEach(function(t){t.visible&&t.render()})};this.setTitle(),this.legend=new n(this,s.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),s=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return o=21,!0});var a=this.plotHeight=Math.max(this.plotHeight-o,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var h=1.1<s/this.plotWidth,l=1.05<a/this.plotHeight;(h||l)&&(t.forEach(function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?r(t):e&&e.length&&r(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=G(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(v.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,n=e.axes,s=e.series,o=e.container,r=o&&o.parentNode;for(O(e,"destroy"),e.renderer.forExport?T(m,e):m[e.index]=void 0,i.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),U(e),t=n.length;t--;)n[t]=n[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=s.length;t--;)s[t]=s[t].destroy();
2"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),o&&(o.innerHTML="",U(o),r&&P(o)),H(e,function(t,i){delete e[i]})},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(D(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),t.setSeriesData(),O(t,"beforeRender"),a&&(t.pointer=i.hasTouch||!v.PointerEvent&&!v.MSPointerEvent?new a(t,e):new s(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),O(this,"load"),O(this,"render"),k(this.index)&&this.setReflow(this.options.chart.reflow),this.hasLoaded=!0},t.prototype.addSeries=function(t,e,i){var n,s=this;return t&&(e=F(e,!0),O(s,"addSeries",{options:t},function(){n=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),n.enabledDataSorting&&n.setData(t.data,!1),O(s,"afterAddSeries",{series:n}),e&&s.redraw(i)})),n},t.prototype.addAxis=function(t,e,i,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:n})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,n){var s=this.options,o="colorAxis"===t,r=n.redraw,a=n.animation;n=G(n.axis,{index:this[t].length,isX:"xAxis"===t});var h=o?new i.ColorAxis(this,n):new e(this,n);return s[t]=Z(s[t]||{}),s[t].push(n),o&&(this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0})),F(r,!0)&&this.redraw(a),h},t.prototype.showLoading=function(t){var e=this,i=e.options,n=e.loadingDiv,s=e.loadingSpan,o=i.loading,r=function(){n&&C(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};n||(e.loadingDiv=n=S("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),s||(e.loadingSpan=s=S("span",{className:"highcharts-loading-inner"},null,n),x(e,"redraw",r)),n.className="highcharts-loading",u.setElementHTML(s,F(t,i.lang.loading,"")),e.styledMode||(C(n,L(o.style,{zIndex:10})),C(s,o.labelStyle),e.loadingShown||(C(n,{opacity:0,display:""}),d(n,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,r()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||d(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){C(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,n){var s,o,r,a=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,u=[];if(O(a,"update",{options:t}),c||a.setResponsive(!1,!0),t=M(t,a.options),a.userOptions=G(a.userOptions,t),s=t.chart){if(G(!0,a.options.chart,s),"className"in s&&a.setClassName(s.className),"reflow"in s&&a.setReflow(s.reflow),"inverted"in s||"polar"in s||"type"in s){a.propFromSeries();var d=!0}"alignTicks"in s&&(d=!0),H(s,function(t,e){-1!==a.propsRequireUpdateSeries.indexOf("chart."+e)&&(o=!0),-1!==a.propsRequireDirtyBox.indexOf(e)&&(a.isDirtyBox=!0),-1!==a.propsRequireReflow.indexOf(e)&&(c?a.isDirtyBox=!0:r=!0)}),!a.styledMode&&"style"in s&&a.renderer.setStyle(s.style)}!a.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===y&&(this.time=new l(t.time)),G(!0,a.options.time,t.time)),H(t,function(e,i){a[i]&&"function"==typeof a[i].update?a[i].update(e,!1):"function"==typeof a[h[i]]?a[h[i]](e):"color"!==i&&-1===a.collectionsWithUpdate.indexOf(i)&&G(!0,a.options[i],t[i]),"chart"!==i&&-1!==a.propsRequireUpdateSeries.indexOf(i)&&(o=!0)}),this.collectionsWithUpdate.forEach(function(e){if(t[e]){if("series"===e){var n=[];a[e].forEach(function(t,e){t.options.isInternal||n.push(F(t.options.index,e))})}
2Z(t[e]).forEach(function(t,s){var o,r=k(t.id);r&&(o=a.get(t.id)),!o&&a[e]&&(o=a[e][n?n[s]:s])&&r&&k(o.options.id)&&(o=void 0),o&&o.coll===e&&(o.update(t,!1),i&&(o.touched=!0)),!o&&i&&a.collectionsWithInit[e]&&(a.collectionsWithInit[e][0].apply(a,[t].concat(a.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)}),i&&a[e].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:u.push(t)})}}),u.forEach(function(t){t.chart&&t.remove(!1)}),d&&a.axes.forEach(function(t){t.update({},!1)}),o&&a.getSeriesOrderByLinks().forEach(function(t){t.chart&&t.update({},!1)},this),d=s&&s.width,s=s&&s.height,R(s)&&(s=q(s,d||a.chartWidth)),r||z(d)&&d!==a.chartWidth||z(s)&&s!==a.chartHeight?a.setSize(d,s,n):F(e,!0)&&a.redraw(n),O(a,"afterUpdate",{options:t,redraw:e,animation:n})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,i=_.lang,n=e.options.chart.resetZoomButton,s=n.theme,o=s.states,r="chart"===n.relativeTo||"spaceBox"===n.relativeTo?null:this.scrollablePlotBox||"plotBox";O(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,s,o&&o.hover).attr({align:n.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,r)}),O(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){O(this,"selection",{resetSelection:!0}
2,this.zoom)},t.prototype.zoom=function(t){var e,i=this,n=i.pointer,s=!1,o=i.inverted?n.mouseDownX:n.mouseDownY;!t||t.resetSelection?(i.axes.forEach(function(t){e=t.zoom()}),n.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var r=t.axis,a=i.inverted?r.left:r.top,h=i.inverted?a+r.width:a+r.height,l=r.isXAxis,c=!1;(!l&&o>=a&&o<=h||l||!k(o))&&(c=!0),n[l?"zoomX":"zoomY"]&&c&&(e=r.zoom(t.min,t.max),r.displayBtn&&(s=!0))});var r=i.resetZoomButton;s&&!r?i.showResetZoom():!s&&j(r)&&(i.resetZoomButton=r.destroy()),e&&i.redraw(F(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i,n=this,s=n.hoverPoints,o=n.options.chart,r=n.options.mapNavigation&&n.options.mapNavigation.enabled;e="object"==typeof e?e:{enabled:e,type:"x"},o&&o.panning&&(o.panning=e);var a=e.type;O(this,"pan",{originalEvent:t},function(){s&&s.forEach(function(t){t.setState()});var e=[1];"xy"===a?e=[1,0]:"y"===a&&(e=[0]),e.forEach(function(e){var s=n[e?"xAxis":"yAxis"][0],o=s.horiz,h=t[o?"chartX":"chartY"],l=n[o=o?"mouseDownX":"mouseDownY"],c=(s.pointRange||0)/2,u=s.reversed&&!n.inverted||!s.reversed&&n.inverted?-1:1,d=s.getExtremes(),p=s.toValue(l-h,!0)+c*u,f=(u=s.toValue(l+s.len-h,!0)-c*u)<p;l=f?u:p,p=f?p:u,u=s.hasVerticalPanning();var m=s.panningState;!u||e||m&&!m.isDirty||s.series.forEach(function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),m||(m={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(e.dataMin)&&z(e.dataMax)&&(m.startMin=Math.min(F(t.options.threshold,1/0),e.dataMin,m.startMin),m.startMax=Math.max(F(t.options.threshold,-1/0),e.dataMax,m.startMax))}),e=Math.min(F(null==m?void 0:m.startMin,d.dataMin),c?d.min:s.toValue(s.toPixels(d.min)-s.minPixelPadding)),c=Math.max(F(null==m?void 0:m.startMax,d.dataMax),c?d.max:s.toValue(s.toPixels(d.max)+s.minPixelPadding)),s.panningState=m,s.isOrdinal||(0<(u=e-l)&&(p+=u,l=e),0<(u=p-c)&&(p=c,l-=u),s.series.length&&l!==d.min&&p!==d.max&&l>=e&&p<=c&&(s.setExtremes(l,p,!1,!1,{trigger:"pan"}),n.resetZoomButton||r||l===e||p===c||!a.match("y")||(n.showResetZoom(),s.displayBtn=!1),i=!0),n[o]=h)}),i&&n.redraw(!1),C(n.container,{cursor:"move"})})},t}();return L(K.prototype,{callbacks:[],collectionsWithInit:{xAxis:[K.prototype.addAxis,[!0]],yAxis:[K.prototype.addAxis,[!1]],series:[K.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","zAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroun
2dColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),i.chart=function(t,e,i){return new K(t,e,i)},i.Chart=K,K}),e(i,"Mixins/LegendSymbol.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e){var i=e.merge,n=e.pick;return t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,s=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(s?(t.symbolWidth-i)/2:0,t.baseline-i+1,s?i:t.symbolWidth,i,n(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,s=e.marker,o=t.symbolWidth,r=t.symbolHeight,a=r/2,h=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={};this.chart.styledMode||(c={"stroke-width":e.lineWidth||0},e.dashStyle&&(c.dashstyle=e.dashStyle)),this.legendLine=h.path([["M",0,t],["L",o,t]]).addClass("highcharts-graph").attr(c).add(l),s&&!1!==s.enabled&&o&&(e=Math.min(n(s.radius,a),a),0===this.symbol.indexOf("url")&&(s=i(s,{width:r,height:r}),e=0),this.legendSymbol=s=h.symbol(this.symbol,o/2-e,t-e,2*e,2*e,s).addClass("highcharts-point").add(l),s.isMarker=!0)}}}),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Options.js"],i["Core/Color/Palette.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o,r,a,h){var l=t.animObject,c=t.setAnimation,u=e.hasTouch,d=e.svg,p=e.win,f=n.defaultOptions,m=r.seriesTypes,g=h.addEvent,v=h.arrayMax,_=h.arrayMin,y=h.clamp,b=h.cleanRecursively,x=h.correctFloat,w=h.defined,M=h.erase,S=h.error,C=h.extend,k=h.find,P=h.fireEvent,T=h.getNestedProperty,E=h.isArray,L=h.isFunction,A=h.isNumber,O=h.isString,I=h.merge,D=h.objectEach,N=h.pick,z=h.removeEvent,j=h.splat,R=h.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){P(this,"init",{options:e});var i,n=this,s=t.series;this.eventOptions=this.eventOptions||{},this.eventsToUnbind=[],n.chart=t,n.options=e=n.setOptions(e),n.linkedSeries=[],n.bindAxes(),C(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected});var o=e.events;D(o,function(t,e){L(t)&&n.eventOptions[e]!==t&&(L(n.eventOptions[e])&&z(n,e,n.eventOptions[e]),n.eventOptions[e]=t,g(n,e,t))}),(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach(function(t){n[t+"Data"]||(n[t+"Data"]=[])}),n.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),n._i=N(i&&i._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(s)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),P(this,"afterInit")},t.prototype.is=function(t){return m[t]&&this instanceof m[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(A(i)){for(e=t.length;e--;)if(i>=N(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return N(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,n=e.chart;P(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(s){n[s].forEach(function(n){t=n.options,
2(i[s]===t.index||void 0!==i[s]&&i[s]===t.id||void 0===i[s]&&0===t.index)&&(e.insert(n.series),e[s]=n,n.isDirty=!0)}),e[s]||e.optionalAxis===s||S(18,!0,n)})}),P(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,n=arguments,s=A(e)?function(n){var s="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};i.parallelArrays.forEach(s)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,s=this.chart.time;return i=N(i,e.pointStart,0),this.pointInterval=t=N(this.pointInterval,e.pointInterval,1),n&&(e=new s.Date(i),"day"===n?s.set("Date",e,s.get("Date",e)+t):"month"===n?s.set("Month",e,s.get("Month",e)+t):"year"===n&&s.set("FullYear",e,s.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},t.prototype.setDataSortingOptions=function(){var t=this.options;C(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),w(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,n=i.plotOptions,s=e.userOptions||{};t=I(t),e=e.styledMode;var o={plotOptions:n,userOptions:t};P(this,"setOptions",o);var r=o.plotOptions[this.type],a=s.plotOptions||{};return this.userOptions=o.userOptions,s=I(r,n.series,s.plotOptions&&s.plotOptions[this.type],t),this.tooltipOptions=I(f.tooltip,f.plotOptions.series&&f.plotOptions.series.tooltip,f.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=N(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||s.stickyTracking),null===r.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,i=this.zones=(s.zones||[]).slice(),!s.negativeColor&&!s.negativeFillColor||s.zones||(n={value:s[this.zoneAxis+"Threshold"]||s.threshold||0,className:"highcharts-negative"},e||(n.color=s.negativeColor,n.fillColor=s.negativeFillColor),i.push(n)),i.length&&w(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),P(this,"afterSetOptions",{options:s}),s},t.prototype.getName=function(){return N(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var n=this.chart,s=this.userOptions,o=t+"Index",r=t+"Counter",a=i?i.length:N(n.options.chart[t+"Count"],n[t+"Count"]);if(!e){var h=N(s[o],s["_"+o]);w(h)||(n.series.length||(n[r]=0),s["_"+o]=h=n[r]%a,n[r]+=1),i&&(e=i[h])}void 0!==h&&(this[o]=h),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||f.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var i,n=t.id,s=t.x,o=this.points,r=this.options.dataSorting;if(n)var a=this.chart.get(n);else if(this.linkedParent||this.enabledDataSorting){var h=r&&r.matchByName?"name":"index";if(a=k(o,function(e){return!e.touched&&e[h]===t[h]}),!a)return}if(a){var l=a&&a.index;void 0!==l&&(i=!0)}return void 0===l&&A(s)&&(l=this.xData.indexOf(s,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!i&&o[l]&&o[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,n,s,o=this.options,r=o.dataSorting,a=this.points,h=[],l=this.requireSorting,c=t.length===a.length,u=!0;if(this.xIncrement=null,t.forEach(function(t,e){var n=w(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},u=n.x;n.id||A(u)?(-1===(u=this.findPointIndex(n,s))||void 0===u?h.push(t):a[u]&&t!==o.data[u]?(a[u].update(t,!1,null,!1),a[u].touched=!0,l&&(s=u+1)):a[u]&&(a[u].touched=!0),(!c||e!==u||r&&r.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)},this),i)for(t=a.length;t--;)(n=a[t])&&!n.touched&&n.remove&&n.remove(!1,e);else!c||r&&r.enabled?u=!1:(t.forEach(function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)}),h.length=0);return a.forEach(function(t){t&&(t.touched=!1)}
2),!!u&&(h.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=v(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,n){var s,o=this,r=o.points,a=r&&r.length||0,h=o.options,l=o.chart,c=h.dataSorting,u=null,d=o.xAxis;u=h.turboThreshold;var p,f=this.xData,m=this.yData,g=(s=o.pointArrayMap)&&s.length,v=h.keys,_=0,y=1;if(s=(t=t||[]).length,e=N(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==n&&s&&a&&!o.cropped&&!o.hasGroupedData&&o.visible&&!o.isSeriesBoosting&&(p=this.updateData(t,i)),!p){if(o.xIncrement=null,o.colorCounter=0,this.parallelArrays.forEach(function(t){o[t+"Data"].length=0}),u&&s>u)if(u=o.getFirstValidPoint(t),A(u))for(i=0;i<s;i++)f[i]=this.autoIncrement(),m[i]=t[i];else if(E(u))if(g)for(i=0;i<s;i++)n=t[i],f[i]=n[0],m[i]=n.slice(1,g+1);else for(v&&(_=0<=(_=v.indexOf("x"))?_:0,y=0<=(y=v.indexOf("y"))?y:1),i=0;i<s;i++)n=t[i],f[i]=n[_],m[i]=n[y];else S(12,!1,l);else for(i=0;i<s;i++)void 0!==t[i]&&(n={series:o},o.pointClass.prototype.applyOptions.apply(n,[t[i]]),o.updateParallelArrays(n,i));for(m&&O(m[0])&&S(14,!0,l),o.data=[],o.options.data=o.userOptions.data=t,i=a;i--;)r[i]&&r[i].destroy&&r[i].destroy();d&&(d.minRange=d.userMinRange),o.isDirty=l.isDirtyBox=!0,o.isDirtyData=!!r,i=!1}"point"===h.legendType&&(this.processData(),this.generatePoints()),e&&l.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",n=function(t,e){return w(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach(function(i,s){t[s]=n(e,i),t[s].index=s},this),t.concat().sort(function(t,e){return t=T(i,t),(e=T(i,e))<t?-1:e>t?1:0}).forEach(function(t,e){t.x=e},this),e.linkedSeries&&e.linkedSeries.forEach(function(e){var i=e.options,s=i.data;i.dataSorting&&i.dataSorting.enabled||!s||(s.forEach(function(i,o){s[o]=n(e,i),t[o]&&(s[o].x=t[o].x,s[o].index=o)}),e.setData(s,!1))}),t},t.prototype.getProcessedData=function(t){var e=this.xData,i=this.yData,n=e.length,s=0,o=this.xAxis,r=this.options,a=r.cropThreshold,h=t||this.getExtremesFromAll||r.getExtremesFromAll,l=this.isCartesian;t=o&&o.val2lin,r=!(!o||!o.logarithmic);var c=this.requireSorting;if(o)var u=(o=o.getExtremes()).min,d=o.max;if(l&&this.sorted&&!h&&(!a||n>a||this.forceCrop))if(e[n-1]<u||e[0]>d)e=[],i=[];else if(this.yData&&(e[0]<u||e[n-1]>d)){e=(s=this.cropData(this.xData,this.yData,u,d)).xData,i=s.yData,s=s.start;var p=!0}for(a=e.length||1;--a;)if(0<(n=r?t(e[a])-t(e[a-1]):e[a]-e[a-1])&&(void 0===f||n<f))var f=n;else 0>n&&c&&(S(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:p,cropStart:s,closestPointRange:f}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},t.prototype.cropData=function(t,e,i,n,s){var o,r=t.length,a=0,h=r;for(s=N(s,this.cropShoulder),o=0;o<r;o++)if(t[o]>=i){a=Math.max(0,o-s);break}for(i=o;i<r;i++)if(t[i]>n){h=i+s;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t,e=this.options,i=e.data,n=this.data,s=this.processedXData,o=this.processedYData,r=this.pointClass,a=s.length,h=this.cropStart||0,l=this.hasGroupedData;e=e.keys;var c,u=[];for(n||l||((n=[]).length=i.length,n=this.data=n),e&&l&&(this.options.keys=!1),c=0;c<a;c++){var d=h+c;if(l){var p=(new r).init(this,[s[c]].concat(j(o[c])));p.dataGroup=this.groupMap[c],p.dataGroup.options&&(p.options=p.dataGroup.options,C(p,p.dataGroup.options),delete p.dataLabels)}else(p=n[d])||void 0===i[d]||(n[d]=p=(new r).init(this,i[d],s[c]));p&&(p.index=d,u[c]=p)}if(this.options.keys=e,n&&(a!==(t=n.length)||l))for(c=0;c<t;c++)c!==h||l||(c+=a),n[c]&&(n[c].destroyElements(),n[c].plotX=void 0);this.data=n,this.points=u,P(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:_(t),max:v(t)}},t.prototype.getExtremes=function(t,e){var i,n=this.xAxis,s=this.yAxis,o=this.processedXData||this.xData,r=[],a=0,h=0,l=0,c=this.requireSorting?this.cropShoulder:0,u=!!s&&s.positiveValuesOnly;for(s=(t=t||this.stackedYData||this.processedYData||[]).length,n&&(h=(l=n.getExtremes()).min,l=l.max),i=0;i<s;i++){var d=o[i],p=t[i],f=(A(p)||E(p))&&(p.length||0<p||!u);if(d=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!n||(o[i+c]||d)>=h&&(o[i-c]||d)<=l,f&&d)if(f=p.length)for(;f--;)A(p[f])&&(r[a++]=p[f]);else r[a++]=p}return t={dataMin:_(r),dataMax:v(r)},P(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=null,i=t.length,n=0;null===e&&n<i;)e=t[n],n++;return e},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,n=i.stacking,s=this.xAxis,o=s.categories,r
2=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,c=!!this.modifyValue,u=this.pointPlacementToXValue(),d=!!u,p=i.threshold,f=i.startFromThreshold?p:0,m=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<l;t++){var v=h[t],_=v.x,b=v.y,M=v.low,S=n&&a.stacking&&a.stacking.stacks[(this.negStacks&&b<(f?0:p)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(b)||s.positiveValuesOnly&&!s.validatePositiveValue(_))&&(v.isNull=!0),v.plotX=e=x(y(s.translate(_,0,0,0,1,u,"flags"===this.type),-1e5,1e5)),n&&this.visible&&S&&S[_]){var C=this.getStackIndicator(C,_,this.index);if(!v.isNull)var k=S[_],T=k.points[C.key]}if(E(T)&&(M=T[0],b=T[1],M===f&&C.key===S[_].base&&(M=N(A(p)&&p,a.min)),a.positiveValuesOnly&&0>=M&&(M=null),v.total=v.stackTotal=k.total,v.percentage=k.total&&v.y/k.total*100,v.stackY=b,this.irregularWidths||k.setOffset(this.pointXOffset||0,this.barW||0)),v.yBottom=w(M)?y(a.translate(M,0,1,0,1),-1e5,1e5):null,c&&(b=this.modifyValue(b,v)),v.plotY=void 0,A(b)&&void 0!==(b=a.translate(b,!1,!0,!1,!0))&&(v.plotY=y(b,-1e5,1e5)),v.isInside=this.isPointInside(v),v.clientX=d?x(s.translate(_,0,0,0,1,u)):e,v.negative=v[m]<(i[m+"Threshold"]||p||0),v.category=o&&void 0!==o[v.x]?o[v.x]:v.x,!v.isNull&&!1!==v.visible){void 0!==L&&(g=Math.min(g,Math.abs(e-L)));var L=e}v.zone=this.zones.length&&v.getZone(),!v.graphic&&this.group&&r&&(v.isNew=!0)}this.closestPointRangePx=g,P(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var n=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&!1!==t.visible&&(i||!t.isNull)})},t.prototype.getClipBox=function(t,e){var i=this.options,n=this.chart,s=n.inverted,o=this.xAxis,r=o&&this.yAxis,a=n.options.chart.scrollablePlotArea||{};return t&&!1===i.clip&&r?t=s?{y:-n.chartWidth+r.len+r.pos,height:n.chartWidth,width:n.chartHeight,x:-n.chartHeight+o.len+o.pos}:{y:-r.pos,height:n.chartHeight,width:n.chartWidth,x:-o.pos}:(t=this.clipBox||n.clipBox,e&&(t.width=n.plotSizeX,t.x=(n.scrollablePixelsX||0)*(a.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},t.prototype.setClip=function(t){var e=this.chart,i=this.options,n=e.renderer,s=e.inverted,o=this.clipBox,r=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,t&&t.defer,r.height,i.xAxis,i.yAxis].join(),h=e[a],l=e[a+"m"];t&&(r.width=0,s&&(r.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),h?e.hasLoaded||h.attr(r):(t&&(e[a+"m"]=l=n.clipRect(s?e.plotSizeX+99:-99,s?-e.plotLeft:-e.plotTop,99,s?e.chartWidth:e.chartHeight)),e[a]=h=n.clipRect(r),h.count={length:0}),t&&!h.count[this.index]&&(h.count[this.index]=!0,h.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||o?h:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=a),t||(h.count[this.index]&&(delete h.count[this.index],--h.count.length),0===h.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},t.prototype.animate=function(t){var e=this.chart,i=l(this.options.animation);if(t)this.setClip(i);else{var n=this.sharedClipKey;t=e[n];var s=this.getClipBox(i,!0);t&&t.animate(s,i),e[n+"m"]&&e[n+"m"].animate({width:s.width+99,x:s.x-(e.inverted?0:99)},i)}},t.prototype.afterAnimate=function(){this.setClip(),P(this,"afterAnimate"),this.finishedAnimating=!0},t.prototype.drawPoints=function(){var t,e,i=this.points,n=this.chart,s=this.options.marker,o=this[this.specialGroup]||this.markerGroup,r=this.xAxis,a=N(s.enabled,!(r&&!r.isRadial)||null,this.closestPointRangePx>=s.enabledThreshold*s.radius);if(!1!==s.enabled||this._hasPointMarkers)for(t=0;t<i.length;t++){var h=i[t],l=(e=h.graphic)?"animate":"attr",c=h.marker||{},u=!!h.marker;if((a&&void 0===c.enabled||c.enabled)&&!h.isNull&&!1!==h.visible){var d=N(c.symbol,this.symbol),p=this.markerAttribs(h,h.selected&&"select");this.enabledDataSorting&&(h.startXPos=r.reversed?-p.width:r.width);var f=!1!==h.isInside;e?e[f?"show":"hide"](f).animate(p):f&&(0<p.width||h.hasImage)&&(h.graphic=e=n.renderer.symbol(d,p.x,p.y,p.width,p.height,u?c:s).add(o),this.enabledDataSorting&&n.hasRendered&&(e.attr({x:h.startXPos}),l="animate")),e&&"animate"===l&&e[f?"show":"hide"](f).animate(p),e&&!n.styledMode&&e[l](this.pointAttribs(h,h.selected&&"select")),e&&e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,n=i.marker,s=t.marker||{},o=s.symbol||n.symbol,r=N(s.radius,n.radius);return e&&(n=n.states[e],e=s.states&&s.states[e],r=N(e&&e.radius,n&&n.radius,r+(n&&n.radiusPlus||0))),t.hasImage=o&&0===o.indexOf("url"),t.hasImage&&(r=0),t={x:i.crisp?Math.floor(t.plotX)-r:t.plotX-r,y:t.plotY-r},r&&(t.width=t.height=2*r),t},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,n=t&&t.options,s=n&&n.marker||{}
2,o=this.color,r=n&&n.color,a=t&&t.color;n=N(s.lineWidth,i.lineWidth);var h=t&&t.zone&&t.zone.color;return t=1,o=r||h||a||o,r=s.fillColor||i.fillColor||o,o=s.lineColor||i.lineColor||o,e=e||"normal",i=i.states[e],e=s.states&&s.states[e]||{},n=N(e.lineWidth,i.lineWidth,n+N(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,{stroke:o=e.lineColor||i.lineColor||o,"stroke-width":n,fill:r,opacity:t=N(e.opacity,i.opacity,t)}},t.prototype.destroy=function(t){var e,i,n,s=this,o=s.chart,r=/AppleWebKit\/533/.test(p.navigator.userAgent),l=s.data||[];for(P(s,"destroy"),this.removeEvents(t),(s.axisTypes||[]).forEach(function(t){(n=s[t])&&n.series&&(M(n.series,s),n.isDirty=n.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=l.length;e--;)(i=l[e])&&i.destroy&&i.destroy();s.points=null,h.clearTimeout(s.animationTimeout),D(s,function(t,e){t instanceof a&&!t.survive&&t[r&&"group"===e?"hide":"destroy"]()}),o.hoverSeries===s&&(o.hoverSeries=null),M(o.series,s),o.orderSeries(),D(s,function(e,i){t&&"hcEvents"===i||delete s[i]})},t.prototype.applyZones=function(){var t,e,i,n,s,o,r,a,h=this,l=this.chart,c=l.renderer,u=this.zones,d=this.clips||[],p=this.graph,f=this.area,m=Math.max(l.chartWidth,l.chartHeight),g=this[(this.zoneAxis||"y")+"Axis"],v=l.inverted,_=!1;if(u.length&&(p||f)&&g&&void 0!==g.min){var b=g.reversed,x=g.horiz;p&&!this.showLine&&p.hide(),f&&f.hide();var w=g.getExtremes();u.forEach(function(u,M){t=b?x?l.plotWidth:0:x?0:g.toPixels(w.min)||0,t=y(N(e,t),0,m),e=y(Math.round(g.toPixels(N(u.value,w.max),!0)||0),0,m),_&&(t=e=g.toPixels(w.max)),n=Math.abs(t-e),s=Math.min(t,e),o=Math.max(t,e),g.isXAxis?(i={x:v?o:s,y:0,width:n,height:m},x||(i.x=l.plotHeight-i.x)):(i={x:0,y:v?o:s,width:m,height:n},x&&(i.y=l.plotWidth-i.y)),v&&c.isVML&&(i=g.isXAxis?{x:0,y:b?s:o,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),d[M]?d[M].animate(i):d[M]=c.clipRect(i),r=h["zone-area-"+M],a=h["zone-graph-"+M],p&&a&&a.clip(d[M]),f&&r&&r.clip(d[M]),_=u.value>w.max,h.resetZones&&0===e&&(e=void 0)}),this.clips=d}else h.visible&&(p&&p.show(!0),f&&f.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(n.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))})}var i=this,n=i.chart;i.xAxis&&(i.eventsToUnbind.push(g(n,"resize",e)),e(),i.invertGroups=e)},t.prototype.plotGroup=function(t,e,i,n,s){var o=this[t],r=!o;return i={visibility:i,zIndex:n||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),r&&(this[t]=o=this.chart.renderer.g().add(s)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(w(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(i)[r?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||z(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(t){t()}),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,n=l(i.animation),s=!t.finishedAnimating&&e.renderer.isSVG&&n.duration,o=t.visible?"inherit":"hidden",r=i.zIndex,a=t.hasRendered,h=e.seriesGroup,c=e.inverted;P(this,"render");var u=t.plotGroup("group","series",o,r,h);t.markerGroup=t.plotGroup("markerGroup","markers",o,r,h),s&&t.animate&&t.animate(!0),u.inverted=!!N(t.invertible,t.isCartesian)&&c,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(c),!1===i.clip||t.sharedClipKey||a||u.clip(e.clipRect),s&&t.animate&&t.animate(),a||(s&&n.defer&&(s+=n.defer),t.animationTimeout=R(function(){t.afterAnimate()}
2,s||0)),t.isDirty=!1,t.hasRendered=!0,P(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,s=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:N(n&&n.left,t.plotLeft),translateY:N(s&&s.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,n=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,n,s){var o;if(o=t&&t.length){var r=i.kdAxisArray[n%s];return t.sort(function(t,e){return t[r]-e[r]}),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),n+1,s),right:e(t.slice(o+1),n+1,s)}}}this.buildingKdTree=!0;var i=this,n=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,R(function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),n,n),i.buildingKdTree=!1},i.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,i){var n=this,s=this.kdAxisArray[0],o=this.kdAxisArray[1],r=e?"distX":"dist";if(e=-1<n.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h){var l=i.point,c=n.kdAxisArray[a%h],u=l,d=w(e[s])&&w(l[s])?Math.pow(e[s]-l[s],2):null,p=w(e[o])&&w(l[o])?Math.pow(e[o]-l[o],2):null;return p=(d||0)+(p||0),l.dist=w(p)?Math.sqrt(p):Number.MAX_VALUE,l.distX=w(d)?Math.sqrt(d):Number.MAX_VALUE,d=0>(c=e[c]-l[c])?"right":"left",i[p=0>c?"left":"right"]&&(u=(p=t(e,i[p],a+1,h))[r]<u[r]?p:l),i[d]&&Math.sqrt(c*c)<u[r]&&(u=(e=t(e,i[d],a+1,h))[r]<u[r]?e:u),u}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),A(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=this.yAxis.len&&0<=t.plotX&&t.plotX<=this.xAxis.len},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,n=[].concat(i?t.areaPath:t.graphPath),s=t.chart,o=s.pointer,r=s.renderer,a=s.options.tooltip.snap,h=t.tracker,l=function(e){s.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(d?1e-4:.002)+")";h?h.attr({d:n}):t.graph&&(t.tracker=r.path(n).attr({visibility:t.visible?"visible":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),s.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup].forEach(function(t){t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",function(t){o.onTrackerMouseOut(t)}),e.cursor&&!s.styledMode&&t.css({cursor:e.cursor}),u&&t.on("touchstart",l)})),P(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,n,s){var o=this.options,r=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,c=o.data,u=this.xData;e=N(e,!0);var d={series:this};this.pointClass.prototype.applyOptions.apply(d,[t]);var p=d.x,f=u.length;if(this.requireSorting&&p<u[f-1])for(l=!0;f&&u[f-1]>p;)f--;this.updateParallelArrays(d,"splice",f,0,0),this.updateParallelArrays(d,f),h&&d.name&&(h[p]=d.name),c.splice(f,0,t),l&&(this.data.splice(f,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(r[0]&&r[0].remove?r[0].remove(!1):(r.shift(),this.updateParallelArrays(d,"shift"),c.shift())),!1!==s&&P(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(n)},t.prototype.removePoint=function(t,e,i){var n=this,s=n.data,o=s[t],r=n.points,a=n.chart,h=function(){r&&r.length===s.length&&r.splice(t,1),s.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};c(i,a),e=N(e,!0),o?o.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,n){function s(){o.destroy(n),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),N(t,!0)&&r.redraw(e)}var o=this,r=o.chart;!1!==i?P(o,"remove",null,s):s()},t.prototype.update=function(t,e){t=b(t,this.userOptions),P(this,"update",{options:t});var i,n=this,s=n.chart,o=n.userOptions,r=n.initialType||n.type,a=s.options.plotOptions,h=t.type||o.type||s.options.chart.type,l=!(this.hasDerivedData||h&&h!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||n.hasOptionChanged("dataGrouping")||n.hasOptionChanged("pointStart")||n.hasOptionChanged("pointInterval")||n.hasOptionChanged("pointIntervalUnit")||n.hasOptionChanged("keys")),c=m[r].prototype,u=["eventOptions","navigatorSeries","baseSeries"],d=n.finishedAnimating&&{animation:!1},p={};if(l&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),n.parallelArrays.forEach(function(t){u.push(t+"Data")}),t.data&&(t.dataSorting&&C(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=I(o,d,{index:void 0===o.index?n.index:o.index,pointStart:N(a&&a.series&&a.series.pointStart,o.pointStart,n.xData[0])},!l&&{data:n.options.data},t),l&&t.data&&(t.data=n.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEac
2h(function(t){u[t]=n[t],delete n[t]}),m[h||r]){if(o=h!==n.type,n.remove(!1,!1,!1,!0),o)if(Object.setPrototypeOf)Object.setPrototypeOf(n,m[h||r].prototype);else{for(i in o=Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents,c)n[i]=void 0;C(n,m[h||r].prototype),o?n.hcEvents=o:delete n.hcEvents}}else S(17,!0,s,{missingModuleFor:h||r});if(u.forEach(function(t){n[t]=u[t]}),n.init(s,t),l&&this.points){var f=n.options;!1===f.visible?(p.graphic=1,p.dataLabel=1):n._hasPointLabels||(t=f.marker,h=f.dataLabels,t&&(!1===t.enabled||"symbol"in t)&&(p.graphic=1),h&&!1===h.enabled&&(p.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(p).length&&t.destroyElements(p),!1===f.showInLegend&&t.legendItem&&s.legend.destroyItem(t))},this)}n.initialType=r,s.linkSeries(),P(this,"afterUpdate"),N(e,!0)&&s.redraw(!!l&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],i=this.chart.options.plotOptions,n=this.userOptions[t];return n?e!==n:e!==N(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&P(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&P(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState("",!0)})},t.prototype.setState=function(t,e){var i=this,n=i.options,s=i.graph,o=n.inactiveOtherPoints,r=n.states,a=n.lineWidth,h=n.opacity,l=N(r[t||"normal"]&&r[t||"normal"].animation,i.chart.options.chart.animation);if(n=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(r[t]&&!1===r[t].enabled)return;if(t&&(a=r[t].lineWidth||a+(r[t].lineWidthPlus||0),h=N(r[t].opacity,h)),s&&!s.dashstyle)for(r={"stroke-width":a},s.animate(r,l);i["zone-graph-"+n];)i["zone-graph-"+n].animate(r,l),n+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:h},l)})}e&&o&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},t.prototype.setVisible=function(t,e){var i=this,n=i.chart,s=i.legendItem,o=n.options.chart.ignoreHiddenSeries,r=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][a]()}),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),s&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),o&&(n.isDirtyBox=!0),P(i,a),!1!==e&&n.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),P(this,t?"select":"unselect")},t.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:s.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:s.neutralColor20,lineColor:s.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},t}(),C(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:o,requireSorting:!0,sorted:!0}
2),r.series=t,t}),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o){var r=t.stop,a=o.addEvent,h=o.createElement,l=o.merge,c=o.pick;a(i,"afterSetChartSize",function(t){var e=this.options.chart.scrollablePlotArea,i=e&&e.minWidth;if(e=e&&e.minHeight,!this.renderer.forExport){if(i){if(this.scrollablePixelsX=i=Math.max(0,i-this.chartWidth)){this.scrollablePlotBox=l(this.plotBox),this.plotWidth+=i,this.inverted?(this.clipBox.height+=i,this.plotBox.height+=i):(this.clipBox.width+=i,this.plotBox.width+=i);var n={1:{name:"right",value:i}}}}else e&&(this.scrollablePixelsY=i=Math.max(0,e-this.chartHeight))&&(this.scrollablePlotBox=l(this.plotBox),this.plotHeight+=i,this.inverted?(this.clipBox.width+=i,this.plotBox.width+=i):(this.clipBox.height+=i,this.plotBox.height+=i),n={2:{name:"bottom",value:i}});n&&!t.skipAxes&&this.axes.forEach(function(t){n[t.side]?t.getPlotLinePath=function(){var e=n[t.side].name,i=this[e];this[e]=i-n[t.side].value;var o=s.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[e]=i,o}:(t.setAxisSize(),t.setAxisTranslation())})}}),a(i,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),i.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},e,this.scrollingParent),a(this.scrollingContainer,"scroll",function(){t.pointer&&delete t.pointer.chartPosition}),this.innerContainer=h("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,n=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&n.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),n.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},i.prototype.applyFixed=function(){var t,i,o,l=this,u=!this.fixedDiv,d=this.options.chart,p=d.scrollablePlotArea;u?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(t=d.style)||void 0===t?void 0:t.zIndex)||0)+2,top:0},null,!0),null===(i=this.scrollingContainer)||void 0===i||i.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=t=new s.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight,null===(o=this.options.chart)||void 0===o?void 0:o.style),this.scrollableMask=t.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(p.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements),a(e,"afterInit",function(){l.scrollableDirty=!0}),a(n,"show",function(){l.scrollableDirty=!0})):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||u)&&(this.scrollableDirty=!1,this.moveFixedElements()),o=this.chartWidth+(this.scrollablePixelsX||0),t=this.chartHe
2ight+(this.scrollablePixelsY||0),r(this.container),this.container.style.width=o+"px",this.container.style.height=t+"px",this.renderer.boxWrapper.attr({width:o,height:t,viewBox:[0,0,o,t].join(" ")}),this.chartBackground.attr({width:o,height:t}),this.scrollingContainer.style.height=this.chartHeight+"px",u&&(p.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*p.scrollPositionX),p.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*p.scrollPositionY)),t=this.axisOffset,u=this.plotTop-t[0]-1,p=this.plotLeft-t[3]-1,o=this.plotTop+this.plotHeight+t[2]+1,t=this.plotLeft+this.plotWidth+t[1]+1,i=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),d=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0),u=this.scrollablePixelsX?[["M",0,u],["L",this.plotLeft-1,u],["L",this.plotLeft-1,o],["L",0,o],["Z"],["M",i,u],["L",this.chartWidth,u],["L",this.chartWidth,o],["L",i,o],["Z"]]:this.scrollablePixelsY?[["M",p,0],["L",p,this.plotTop-1],["L",t,this.plotTop-1],["L",t,0],["Z"],["M",p,d],["L",p,this.chartHeight],["L",t,this.chartHeight],["L",t,d],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:u})}}),e(i,"Core/Axis/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Utilities.js"]],function(t,e){var i=t.getDeferredAnimation,n=e.addEvent,s=e.destroyObjectProperties,o=e.fireEvent,r=e.objectEach,a=e.pick,h=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,n=a(e.options.reversedStacks,!0),s=i.length;if(!e.isXAxis){for(this.usePercentage=!1,t=s;t--;){var r=i[n?t:s-t-1];r.setStackedPoints(),r.setGroupedPoints()}for(t=0;t<s;t++)i[t].modifyStacks();o(e,"afterBuildStacks")}},t.prototype.cleanStacks=function(){if(!this.axis.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;r(t,function(t){r(t,function(t){t.cumulative=t.total})})}},t.prototype.resetStacks=function(){var t=this,e=t.stacks;t.axis.isXAxis||r(e,function(e){r(e,function(i,n){i.touched<t.stacksTouched?(i.destroy(),delete e[n]):(i.total=null,i.cumulative=null)})})},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,n=e.renderer,s=this.stacks;t=i(e,t.options.stackLabels.animation);var o=this.stackTotalGroup=this.stackTotalGroup||n.g("stack-labels").attr({visibility:"visible",zIndex:6,opacity:0}).add();o.translate(e.plotLeft,e.plotTop),r(s,function(t){r(t,function(t){t.render(o)})}),o.animate({opacity:1},t)},t}();return function(){function t(){}return t.compose=function(e){n(e,"init",t.onInit),n(e,"destroy",t.onDestroy)},t.onDestroy=function(){var t=this.stacking;if(t){var e=t.stacks;r(e,function(t,i){s(t),e[i]=null}),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}},t.onInit=function(){this.stacking||(this.stacking=new h(this))},t}()}),e(i,"Extensions/Stacking.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Axis/StackingAxis.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o){var r=o.correctFloat,a=o.defined,h=o.destroyObjectProperties,l=o.format,c=o.isArray,u=o.isNumber,d=o.pick,p=function(){function t(t,e,i,n,s){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=n,this.total=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?i?"right":"left":"center")}return t.prototype.destroy=function(){h(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,n=i.format;n=n?l(n,this,e):i.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={r:i.borderRadius||0,text:n,rotation:i.rotation,padding:d(i.padding,5),visibility:"hidden"},e.styledMode||(n.fill=i.backgroundColor,n.stroke=i.borderColor,n["stroke-width"]=i.borderWidth,this.label.css(i.style)),this.label.attr(n),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY}
2,t.prototype.setOffset=function(t,e,i,s,o){var r=this.axis,h=r.chart;s=r.translate(r.stacking.usePercentage?100:s||this.total,0,0,0,1),i=r.translate(i||0),i=a(s)&&Math.abs(s-i),t=d(o,h.xAxis[0].translate(this.x))+t,r=a(s)&&this.getStackBox(h,this,t,s,e,i,r),e=this.label,i=this.isNegative,t="justify"===d(this.options.overflow,"justify");var l=this.textAlign;e&&r&&(o=e.getBBox(),s=e.padding,l="left"===l?h.inverted?-s:s:"right"===l?o.width:h.inverted&&"center"===l?o.width/2:h.inverted?i?o.width+s:-s:o.width/2,i=h.inverted?o.height/2:i?-s:o.height,this.alignOptions.x=d(this.options.x,0),this.alignOptions.y=d(this.options.y,0),r.x-=l,r.y-=i,e.align(this.alignOptions,null,r),h.isInsidePlot(e.alignAttr.x+l-this.alignOptions.x,e.alignAttr.y+i-this.alignOptions.y)?e.show():(e.alignAttr.y=-9999,t=!1),t&&n.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,e.alignAttr,o,r),e.attr({x:e.alignAttr.x,y:e.alignAttr.y}),d(!t&&this.options.crop,!0)&&((h=u(e.x)&&u(e.y)&&h.isInsidePlot(e.x-s+e.width,e.y)&&h.isInsidePlot(e.x+s,e.y))||e.hide()))},t.prototype.getStackBox=function(t,e,i,n,s,o,r){var a=e.axis.reversed,h=t.inverted,l=r.height+r.pos-(h?t.plotLeft:t.plotTop);return e=e.isNegative&&!a||!e.isNegative&&a,{x:h?e?n-r.right:n-o+r.pos-t.plotLeft:i+t.xAxis[0].transB-t.plotLeft,y:h?r.height-i-s:e?l-n-o:l-n,width:h?o:s,height:h?s:o}},t}();return e.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),t.series.forEach(function(i){var n=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,d(i.options.stack,""),e?n.top:n.left,e?n.height:n.width].join())})},s.compose(t),n.prototype.setGroupedPoints=function(){this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length&&n.prototype.setStackedPoints.call(this,"group")},n.prototype.setStackedPoints=function(t){var e=t||this.options.stacking;if(e&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var i=this.processedXData,n=this.processedYData,s=[],o=n.length,h=this.options,l=h.threshold,u=d(h.startFromThreshold&&l,0);h=h.stack;var f,m,g="-"+(t=t?this.type+","+e:this.stackKey),v=this.negStacks,_=this.yAxis,y=_.stacking.stacks,b=_.stacking.oldStacks;for(_.stacking.stacksTouched+=1,m=0;m<o;m++){var x=i[m],w=n[m],M=this.getStackIndicator(M,x,this.index),S=M.key,C=(f=v&&w<(u?0:l))?g:t;y[C]||(y[C]={}),y[C][x]||(b[C]&&b[C][x]?(y[C][x]=b[C][x],y[C][x].total=null):y[C][x]=new p(_,_.options.stackLabels,f,x,h)),C=y[C][x],null!==w?(C.points[S]=C.points[this.index]=[d(C.cumulative,u)],a(C.cumulative)||(C.base=S),C.touched=_.stacking.stacksTouched,0<M.index&&!1===this.singleStacks&&(C.points[S][0]=C.points[this.index+","+x+",0"][0])):C.points[S]=C.points[this.index]=null,"percent"===e?(f=f?t:g,v&&y[f]&&y[f][x]?(f=y[f][x],C.total=f.total=Math.max(f.total,C.total)+Math.abs(w)||0):C.total=r(C.total+(Math.abs(w)||0))):"group"===e?(c(w)&&(w=w[0]),null!==w&&(C.total=(C.total||0)+1)):C.total=r(C.total+(w||0)),C.cumulative="group"===e?(C.total||1)-1:d(C.cumulative,u)+(w||0),null!==w&&(C.points[S].push(C.cumulative),s[m]=C.cumulative,C.hasValidPoints=!0)}"percent"===e&&(_.stacking.usePercentage=!0),"group"!==e&&(this.stackedYData=s),_.stacking.oldStacks={}}},n.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacking.stacks,s=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var r,a,h=s.length;h--;)r=s[h],t=e.getStackIndicator(t,r,e.index,i),(a=(r=n[i]&&n[i][r])&&r.points[t.key])&&e[o+"Stacker"](a,r,h)})},n.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=r(t[0]*e),t[1]=r(t[1]*e),this.stackedYData[i]=t[1]},n.prototype.getStackIndicator=function(t,e,i,n){return!a(t)||t.x!==e||n&&t.key!==n?t={x:e,index:0,key:n}:t.index++,t.key=[i,e,t.index].join(),t},i.StackItem=p,i.StackItem}),e(i,"Series/Line/LineSeries.js",[i["Core/Color/Palette.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,
2i,n){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=n.defined,r=n.merge;return n=function(i){function n(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(n,i),n.prototype.drawGraph=function(){var e=this,i=this.options,n=(this.gappedPath||this.getGraphPath).call(this),s=this.chart.styledMode,o=[["graph","highcharts-graph"]];s||o[0].push(i.lineColor||this.color||t.neutralColor20,i.dashStyle),(o=e.getZonesGraphs(o)).forEach(function(t,o){var r=t[0],a=e[r],h=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:n.xMap,a.animate({d:n})):n.length&&(e[r]=a=e.chart.renderer.path(n).addClass(t[1]).attr({zIndex:1}).add(e.group)),a&&!s&&(r={stroke:t[2],"stroke-width":i.lineWidth,fill:e.fillGraph&&e.color||"none"},t[3]?r.dashstyle=t[3]:"square"!==i.linecap&&(r["stroke-linecap"]=r["stroke-linejoin"]="round"),a[h](r).shadow(2>o&&i.shadow)),a&&(a.startX=n.xMap,a.isArea=n.isArea)})},n.prototype.getGraphPath=function(t,e,i){var n,s,r=this,a=r.options,h=a.step,l=[],c=[];return(n=(t=t||r.points).reversed)&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&n&&(h=4-h),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!i))).forEach(function(n,u){var d=n.plotX,p=n.plotY,f=t[u-1];(n.leftCliff||f&&f.rightCliff)&&!i&&(s=!0),n.isNull&&!o(e)&&0<u?s=!a.connectNulls:n.isNull&&!e?s=!0:(0===u||s?u=[["M",n.plotX,n.plotY]]:r.getPointSpline?u=[r.getPointSpline(t,n,u)]:h?(u=1===h?[["L",f.plotX,p]]:2===h?[["L",(f.plotX+d)/2,f.plotY],["L",(f.plotX+d)/2,p]]:[["L",d,f.plotY]]).push(["L",d,p]):u=[["L",d,p]],c.push(n.x),h&&(c.push(n.x),2===h&&c.push(n.x)),l.push.apply(l,u),s=!1)}),l.xMap=c,r.graphPath=l},n.prototype.getZonesGraphs=function(t){return this.zones.forEach(function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)},this),t},n.defaultOptions=r(e.defaultOptions,{}),n}(e),i.registerSeriesType("line",n),n}),e(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Mixins/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,n){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=t.parse,r=i.seriesTypes.line;t=n.extend;var a=n.merge,h=n.objectEach,l=n.pick;return n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,n=this.options,s=[["area","highcharts-area",this.color,n.fillColor]];this.zones.forEach(function(t,i){s.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||n.fillColor])}),s.forEach(function(t){var s=t[0],r=e[s],a=r?"animate":"attr",h={};r?(r.endX=e.preventGraphAnimation?null:i.xMap,r.animate({d:i})):(h.zIndex=0,(r=e[s]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(h.fill=l(t[3],o(t[2]).setOpacity(l(n.fillOpacity,.75)).get())),r[a](h),r.startX=i.xMap,r.shiftUnit=n.step?2:1})},e.prototype.getGraphPath=function(t){var e,i=r.prototype.getGraphPath,n=this.options,s=n.stacking,o=this.yAxis,a=[],h=[],c=this.index,u=o.stacking.stacks[this.stackKey],d=n.threshold,p=Math.round(o.getThreshold(n.threshold));n=l(n.connectNulls,"percent"===s);var f=function(e,i,n){var r=t[e];e=s&&u[r.x].points[c];var l=r[n+"Null"]||0;if(n=r[n+"Cliff"]||0,r=!0,n||l){var f=(l?e[0]:e[1])+n,m=e[0]+n;r=!!l}else!s&&t[i]&&t[i].isNull&&(f=m=d);void 0!==f&&(h.push({plotX:g,plotY:null===f?p:o.getThreshold(f),isNull:r,isCliff:!0}),a.push({plotX:g,plotY:null===m?p:o.getThreshold(m),doCurve:!1}))};for(t=t||this.points,s&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){s||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var m=t[e].isNull,g=l(t[e].rectPlotX,t[e].plotX),v=s?l(t[e].yBottom,p):p;m&&!n||(n||f(e,e-1,"left"),m&&!s&&n||(h.push(t[e]),a.push({x:e,plotX:g,plotY:v})),n||f(e,e+1,"right"))}return e=i.call(this,h,!0,!0),a.reversed=!0,(v=(m=i.call(this,a,!0,
2!0))[0])&&"M"===v[0]&&(m[0]=["L",v[1],v[2]]),m=e.concat(m),i=i.call(this,h,!1,n),m.xMap=e.xMap,this.areaPath=m,i},e.prototype.getStackPoints=function(t){var e,i=[],n=[],s=this.xAxis,o=this.yAxis,r=o.stacking.stacks[this.stackKey],a={},c=this.index,u=o.series,d=u.length,p=l(o.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,a[t[e].x]=t[e];h(r,function(t,e){null!==t.total&&n.push(e)}),n.sort(function(t,e){return t-e});var f=u.map(function(t){return t.visible});n.forEach(function(t,h){var l,u,m=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach(function(i){var s=1===i?"rightNull":"leftNull",o=0,m=r[n[h+i]];if(m)for(e=c;0<=e&&e<d;)(l=m.points[e])||(e===c?a[t][s]=!0:f[e]&&(u=r[t].points[e])&&(o-=u[1]-u[0])),e+=p;a[t][1===i?"rightCliff":"leftCliff"]=o});else{for(e=c;0<=e&&e<d;){if(l=r[t].points[e]){m=l[1];break}e+=p}m=o.translate(m,0,1,0,1),i.push({isNull:!0,plotX:s.translate(t,0,0,0,1),x:t,plotY:m,yBottom:m})}})}return i},e.defaultOptions=a(r.defaultOptions,{threshold:0}),e}(r),t(n.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("area",n),n}),e(i,"Series/Spline/SplineSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),n=t.seriesTypes.line,s=e.merge,o=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.getPointSpline=function(t,e,i){var n=e.plotX||0,s=e.plotY||0,r=t[i-1];if(i=t[i+1],r&&!r.isNull&&!1!==r.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=r.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*n+(r.plotX||0))/2.5,c=(1.5*s+t)/2.5,u=(1.5*s+i)/2.5;(a=(1.5*n+a)/2.5)!==l&&(h=(u-c)*(a-n)/(a-l)+s-u),u+=h,(c+=h)>t&&c>s?u=2*s-(c=Math.max(t,s)):c<t&&c<s&&(u=2*s-(c=Math.min(t,s))),u>i&&u>s?c=2*s-(u=Math.max(i,s)):u<i&&u<s&&(c=2*s-(u=Math.min(i,s))),e.rightContX=a,e.rightContY=u}return e=["C",o(r.rightContX,r.plotX,0),o(r.rightContY,r.plotY,0),o(l,n,0),o(c,s,0),n,s],r.rightContX=r.rightContY=void 0,e},e.defaultOptions=s(n.defaultOptions),e}(n),t.registerSeriesType("spline",e),e}),e(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Area/AreaSeries.js"],i["Series/Spline/SplineSeries.js"],i["Mixins/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,n,s){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),r=t.prototype,a=s.extend,h=s.merge;return s=function(i){function n(){var t=null!==i&&i.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return o(n,i),n.defaultOptions=h(e.defaultOptions,t.defaultOptions),n}(e),a(s.prototype,{getGraphPath:r.getGraphPath,getStackPoints:r.getStackPoints,drawGraph:r.drawGraph,drawLegendSymbol:i.drawRectangle}),n.registerSeriesType("areaspline",s),s}),e(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Color/Palette.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o,r,a){var h=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=t.animObject,c=e.parse,u=i.hasTouch;t=i.noop;var d=a.clamp,p=a.css,f=a.defined,m=a.extend,g=a.fireEvent,v=a.isArray,_=a.isNumber,y=a.merge,b=a.pick,x=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;
2return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return h(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,n=e.options,s=this.chart.inverted,o={},r=s?"translateX":"translateY";if(t)o.scaleY=.001,t=d(i.toPixels(n.threshold),i.pos,i.pos+i.len),s?o.translateX=t-i.len:o.translateY=t,e.clipBox&&e.setClip(),e.group.attr(o);else{var a=e.group.attr(r);e.group.animate({scaleY:1},m(l(e.options.animation),{step:function(t,n){e.group&&(o[r]=a+n.pos*(i.pos-a),e.group.attr(o))}}))}},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var n=this;(e=n.chart).hasRendered&&e.series.forEach(function(t){t.type===n.type&&(t.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,i=t.xAxis,n=t.yAxis,s=i.options.reversedStacks;s=i.reversed&&!s||!i.reversed&&s;var o,r={},a=0;!1===e.grouping?a=1:t.chart.series.forEach(function(e){var i=e.yAxis,s=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&n.len===i.len&&n.pos===i.pos){if(s.stacking&&"group"!==s.stacking){o=e.stackKey,void 0===r[o]&&(r[o]=a++);var h=r[o]}else!1!==s.grouping&&(h=a++);e.columnIndex=h}});var h=Math.min(Math.abs(i.transA)*(i.ordinal&&i.ordinal.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),l=h*e.groupPadding,c=(h-2*l)/(a||1);return e=Math.min(e.maxPointWidth||i.len,b(e.pointWidth,c*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(c-e)/2+(l+((t.columnIndex||0)+(s?1:0))*c-h/2)*(s?-1:1),paddedWidth:c,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,i,n){var s=this.chart,o=this.borderWidth,r=-(o%2?.5:0);return o=o%2?.5:1,s.inverted&&s.renderer.isVML&&(o+=1),this.options.crisp&&(i=Math.round(t+i)+r,i-=t=Math.round(t)+r),n=Math.round(e+n)+o,r=.5>=Math.abs(e)&&.5<n,n-=e=Math.round(e)+o,r&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},e.prototype.adjustForMissingColumns=function(t,e,i,n){var s=this,o=this.options.stacking;if(!i.isNull&&1<n.columnCount){var r=0,a=0;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(t){if("number"==typeof i.x&&(t=t[i.x.toString()])){var e=t.points[s.index],n=t.total;o?(e&&(r=a),t.hasValidPoints&&a++):v(e)&&(r=e[1],a=n||0)}}),t=(i.plotX||0)+((a-1)*n.paddedWidth+e)/2-e-r*n.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,n=t.dense=2>t.closestPointRange*t.xAxis.transA;n=t.borderWidth=b(i.borderWidth,n?0:1);var s=t.xAxis,r=t.yAxis,a=i.threshold,h=t.translatedThreshold=r.getThreshold(a),l=b(i.minPointLength,5),c=t.getColumnMetrics(),u=c.width,p=t.barW=Math.max(u,1+2*n),m=t.pointXOffset=c.offset,g=t.dataMin,v=t.dataMax;e.inverted&&(h-=.5),i.pointPadding&&(p=Math.ceil(p)),o.prototype.translate.apply(t),t.points.forEach(function(n){var o=b(n.yBottom,h),y=999+Math.abs(o),x=u,w=n.plotX||0;y=d(n.plotY,-y,r.len+y);var M=w+m,S=p,C=Math.min(y,o),k=Math.max(y,o)-C;if(l&&Math.abs(k)<l){k=l;var P=!r.reversed&&!n.negative||r.reversed&&n.negative;_(a)&&_(v)&&n.y===a&&v<=a&&(r.min||0)<a&&(g!==v||(r.max||0)<=a)&&(P=!P),C=Math.abs(C-
2h)>l?o-l:h-(P?l:0)}f(n.options.pointWidth)&&(x=S=Math.ceil(n.options.pointWidth),M-=Math.round((x-u)/2)),i.centerInCategory&&(M=t.adjustForMissingColumns(M,x,n,c)),n.barX=M,n.pointWidth=x,n.tooltipPos=e.inverted?[d(r.len+r.pos-e.plotLeft-y,r.pos-e.plotLeft,r.len+r.pos-e.plotLeft),s.len+s.pos-e.plotTop-(w||0)-m-S/2,k]:[s.left-e.plotLeft+M+S/2,d(y+r.pos-e.plotTop,r.pos-e.plotTop,r.len+r.pos-e.plotTop),k],n.shapeType=t.pointClass.prototype.shapeType||"rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[M,h,S,0]:[M,C,S,k])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,n=this.pointAttrToOptions||{},s=n.stroke||"borderColor",o=n["stroke-width"]||"borderWidth",r=t&&t.color||this.color,a=t&&t[s]||i[s]||this.color||r,h=t&&t[o]||i[o]||this[o]||0;n=t&&t.options.dashStyle||i.dashStyle;var l=b(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var u=t.getZone();r=t.options.color||u&&(u.color||t.nonZonedColor)||this.color,u&&(a=u.borderColor||a,n=u.dashStyle||n,h=u.borderWidth||h)}return e&&t&&(e=(t=y(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,r=t.color||void 0!==e&&c(r).brighten(t.brightness).get()||r,a=t[s]||a,h=t[o]||h,n=t.dashStyle||n,l=b(t.opacity,l)),s={fill:r,stroke:a,"stroke-width":h,opacity:l},n&&(s.dashstyle=n),s},e.prototype.drawPoints=function(){var t,e=this,i=this.chart,n=e.options,s=i.renderer,o=n.animationLimit||250;e.points.forEach(function(r){var a=r.graphic,h=!!a,l=a&&i.pointCount<o?"animate":"attr";_(r.plotY)&&null!==r.y?(t=r.shapeArgs,a&&r.hasNewShapeType()&&(a=a.destroy()),e.enabledDataSorting&&(r.startXPos=e.xAxis.reversed?-(t?t.width:0):e.xAxis.width),a||(r.graphic=a=s[r.shapeType](t).add(r.group||e.group))&&e.enabledDataSorting&&i.hasRendered&&i.pointCount<o&&(a.attr({x:r.startXPos}),h=!0,l="animate"),a&&h&&a[l](y(t)),n.borderRadius&&a[l]({r:n.borderRadius}),i.styledMode||a[l](e.pointAttribs(r,r.selected&&"select")).shadow(!1!==r.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),a&&(a.addClass(r.getClassName(),!0),a.attr({visibility:r.visible?"inherit":"hidden"}))):a&&(r.graphic=a.destroy())})},e.prototype.drawTracker=function(){var t,e=this,i=e.chart,n=i.pointer,s=function(t){var e=n.getPointFromEvent(t);void 0!==e&&(n.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach(function(e){t=v(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||(e.trackerGroups.forEach(function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){n.onTrackerMouseOut(t)}),u&&e[t].on("touchstart",s),!i.styledMode&&e.options.cursor&&e[t].css(p).css({cursor:e.options.cursor}))}),e._hasTracking=!0),g(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),o.prototype.remove.apply(t,arguments)},e.defaultOptions=y(o.defaultOptions,{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:s.neutralColor20,borderColor:s.neutralColor100}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:s.backgroundColor}),e}(o),m(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:n.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("column",a),a}),e(i,"Series/Bar/BarSeries.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=i.extend,o=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return n(i,e),i.defaultOptions=o(t.defaultOptions,{}),i}(t),s(i.prototype,{inverted:!0}),e.registerSeriesType("bar",i),i}),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Column/ColumnSeries.js"],i["Series/Line/LineSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,
2i,n){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),o=n.addEvent,r=n.extend,a=n.merge;return n=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(i,t),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(n,s){["x","y"].forEach(function(o,r){var a="plot"+o.toUpperCase();if(e[o]&&!n.isNull){var h=t[o+"Axis"],l=e[o]*h.transA;if(h&&!h.isLog){var c=Math.max(0,n[a]-l);h=Math.min(h.len,n[a]+l),r=1e4*Math.sin(s+r*i),n[a]=c+(h-c)*(r-Math.floor(r)),"x"===o&&(n.clientX=n.plotX)}}})})},i.prototype.drawGraph=function(){(this.options.lineWidth||0===this.options.lineWidth&&this.graph&&this.graph.strokeWidth())&&t.prototype.drawGraph.call(this)},i.defaultOptions=a(e.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),i}(e),r(n.prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(n,"afterTranslate",function(){this.applyJitter()}),i.registerSeriesType("scatter",n),n}),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],function(t,e,i){var n=i.isNumber,s=i.pick,o=i.relativeLength,r=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var t=this.options,i=this.chart,n=2*(t.slicedOffset||0),r=i.plotWidth-2*n,a=i.plotHeight-2*n,h=t.center,l=Math.min(r,a),c=t.size,u=t.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof u&&(u=parseFloat(u)),t=[s(h[0],"50%"),s(h[1],"50%"),s(c&&0>c?void 0:t.size,"100%"),s(u&&0>u?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),h=0;4>h;++h)c=t[h],i=2>h||2===h&&/%$/.test(c),t[h]=o(c,[r,a,l,t[2]][h])+(i?n:0);return t[3]>t[2]&&(t[3]=t[2]),t},getStartAndEndRadians:function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}}),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],function(t,e,i){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),s=t.setAnimation,o=i.addEvent,r=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.relativeLength;return i=function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return n(i,t),i.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,n=this.connectorShapes;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},i.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},i.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},i.prototype.init=function(){e.prototype.init.apply(this,arguments);var t=this;t.name=h(t.name,"Slice");var i=function(e){t.slice("select"===e.type)};return o(t,"select",i),o(t,"unselect",i),t},i.prototype.isValid=function(){return a(this.y)&&0<=this.y},i.prototype.setVisible=function(t,e){var i=this,n=i.series,s=n.chart,o=n.options.ignoreHiddenPoint;e=h(e,o),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,n.options.data[n.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](t)}),i.legendItem&&s.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),o&&(n.isDirty=!0),e&&s.redraw())}
2,i.prototype.slice=function(t,e,i){var n=this.series;s(i,n.chart),h(e,!0),this.sliced=this.options.sliced=r(t)?t:!this.sliced,n.options.data[n.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},i}(e),t(i.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var n=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var n=this.series,s=n.center[0],o=n.chart.plotWidth,r=n.chart.plotLeft;n=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",o="left"===n?s+a+(o+r-s-a)*(1-i):r+(s-a)*i,t.y],s=!0,("left"===n?o>t.x||o<e.x:o<t.x||o>e.x)&&(s=!1),t=[["M",t.x,t.y]],s&&t.push(i),t.push(["L",e.x,e.y]),t}}}),i}),e(i,"Series/Pie/PieSeries.js",[i["Mixins/CenteredSeries.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Mixins/LegendSymbol.js"],i["Core/Color/Palette.js"],i["Series/Pie/PiePoint.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o,r,a,h,l){var c=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),u=t.getStartAndEndRadians;i=i.noop;var d=l.clamp,p=l.extend,f=l.fireEvent,m=l.merge,g=l.pick,v=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,i=e.points,n=e.startAngleRad;t||i.forEach(function(t){var i=t.graphic,s=t.shapeArgs;i&&s&&(i.attr({r:g(t.startR,e.center&&e.center[3]/2),start:n,end:n}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))})},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var n=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(n,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.prototype.symbols.arc(n,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||s.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var n=this.center,s=this.radii?this.radii[i.index]||0:n[2]/2;return t=Math.asin(d((t-n[1])/(s+i.labelDistance),-1,1)),n[0]+(e?-1:1)*Math.cos(t)*(s+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,i,n,s=this,o=s.chart,r=o.renderer,a=s.options.shadow;this.drawEmpty(),!a||s.shadowGroup||o.styledMode||(s.shadowGroup=r.g("shadow").attr({zIndex:-1}).add(s.group)),s.points.forEach(function(h){var l={};if(e=h.graphic,!h.isNull&&e){if(n=h.shapeArgs,t=h.getTranslate(),!o.styledMode){var c=h.shadowGroup;a&&!c&&(c=h.shadowGroup=r.g("shadow").add(s.shadowGroup)),c&&c.attr(t),i=s.pointAttribs(h,h.selected&&"select")}h.delayedRendering?(e.setRadialReference(s.center).attr(n).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),h.delayedRendering=!1):(e.setRadialReference(s.center),o.styledMode||m(!0,l,i),m(!0,l,
2n,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())})},e.prototype.sortByAngle=function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},e.prototype.translate=function(t){this.generatePoints();var e=0,i=this.options,n=i.slicedOffset,s=n+(i.borderWidth||0),o=u(i.startAngle,i.endAngle),r=this.startAngleRad=o.start;o=(this.endAngleRad=o.end)-r;var a=this.points,h=i.dataLabels.distance;i=i.ignoreHiddenPoint;var l,c=a.length;for(t||(this.center=t=this.getCenter()),l=0;l<c;l++){var d=a[l],p=r+e*o;!d.isValid()||i&&!d.visible||(e+=d.percentage/100);var m=r+e*o;d.shapeType="arc",d.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*p)/1e3,end:Math.round(1e3*m)/1e3},d.labelDistance=g(d.options.dataLabels&&d.options.dataLabels.distance,h),d.labelDistance=v(d.labelDistance,d.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,d.labelDistance),(m=(m+p)/2)>1.5*Math.PI?m-=2*Math.PI:m<-Math.PI/2&&(m+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(m)*n),translateY:Math.round(Math.sin(m)*n)};var _=Math.cos(m)*t[2]/2,y=Math.sin(m)*t[2]/2;d.tooltipPos=[t[0]+.7*_,t[1]+.7*y],d.half=m<-Math.PI/2||m>Math.PI/2?1:0,d.angle=m,p=Math.min(s,d.labelDistance/5),d.labelPosition={natural:{x:t[0]+_+Math.cos(m)*d.labelDistance,y:t[1]+y+Math.sin(m)*d.labelDistance},final:{},alignment:0>d.labelDistance?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+_+Math.cos(m)*p,y:t[1]+y+Math.sin(m)*p},touchingSliceAt:{x:t[0]+_,y:t[1]+y}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=0,i=this.points,n=i.length,s=this.options.ignoreHiddenPoint;for(t=0;t<n;t++){var o=i[t];!o.isValid()||s&&!o.visible||(e+=o.y)}for(this.total=e,t=0;t<n;t++)(o=i[t]).percentage=0<e&&(o.visible||!s)?o.y/e*100:0,o.total=e},e.defaultOptions=m(r.defaultOptions,{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:s.backgroundColor,borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}),e}(r),p(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:null,drawLegendSymbol:n.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:o,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l}),e(i,"Core/Series/DataLabels.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Globals.js"],i["Core/Color/Palette.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],function(t,e,i,n,s,o){var r=t.getDeferredAnimation;t=e.noop,s=s.seriesTypes;var a=o.arrayMax,h=o.clamp,l=o.defined,c=o.extend,u=o.fireEvent,d=o.format,p=o.isArray,f=o.merge,m=o.objectEach,g=o.pick,v=o.relativeLength,_=o.splat,y=o.stableSort;e.distribute=function(t,i,n){function s(t,e){return t.target-e.target}var o,r=!0,a=t,l=[],c=0,u=a.reducedLen||i;for(o=t.length;o--;)c+=t[o].size;if(c>u){for(y(t,function(t,e){return(e.rank||0)-(t.rank||0)}),c=o=0;c<=u;)c+=t[o].size,o++;l=t.splice(o-1,t.length)}for(y(t,s),t=t.map(function(t){return{size:t.size,targets:[t.target],align:g(t.align,.5)}});r;){for(o=t.length;o--;)r=t[o],c=(Math.min.apply(0,r.targets)+Math.max.apply(0,r.targets))/2,r.pos=h(c-r.size*r.align,0,i-r.size);for(o=t.length,r=!1;o--;)0<o&&t[o-1].pos+t[o-1].size>t[o].pos&&(t[o-1].size+=t[o].size,t[o-1].targets=t[o-1].targets.concat(t[o].targets),t[o-1].align=.5,t[o-1].pos+t[o-1].size>i&&(t[o-1].pos=i-t[o-1].size),t.splice(o,1),r=!0)}a.push.apply(a,l),o=0,t.some(function(t){var s=0;if(t.targets.some(function(){if(a[o].pos=t.pos+s,void 0!==n&&Math.abs(a[o].pos-a[o].target)>
2n)return a.slice(0,o+1).forEach(function(t){delete t.pos}),a.reducedLen=(a.reducedLen||i)-.1*i,a.reducedLen>.1*i&&e.distribute(a,i,n),!0;s+=a[o].size,o++}))return!0}),y(a,s)},n.prototype.drawDataLabels=function(){function t(t,e){var i,n=[];if(p(t)&&!p(e))n=t.map(function(t){return f(t,e)});else if(p(e)&&!p(t))n=e.map(function(e){return f(t,e)});else if(p(t)||p(e))for(i=Math.max(t.length,e.length);i--;)n[i]=f(t[i],e[i]);else n=f(t,e);return n}var e=this,n=e.chart,s=e.options,o=s.dataLabels,a=e.points,h=e.hasRendered||0,c=o.animation;c=o.defer?r(n,c,e):{defer:0,duration:0};var v=n.renderer;if(o=t(t(n.options.plotOptions&&n.options.plotOptions.series&&n.options.plotOptions.series.dataLabels,n.options.plotOptions&&n.options.plotOptions[e.type]&&n.options.plotOptions[e.type].dataLabels),o),u(this,"drawDataLabels"),p(o)||o.enabled||e._hasPointLabels){var y=e.plotGroup("dataLabelsGroup","data-labels",h?"inherit":"hidden",o.zIndex||6);y.attr({opacity:+h}),!h&&(h=e.dataLabelsGroup)&&(e.visible&&y.show(!0),h[s.animation?"animate":"attr"]({opacity:1},c)),a.forEach(function(r){_(t(o,r.dlOptions||r.options&&r.options.dataLabels)).forEach(function(t,o){var a=t.enabled&&(!r.isNull||r.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(r,t),h=r.dataLabels?r.dataLabels[o]:r.dataLabel,c=r.connectors?r.connectors[o]:r.connector,u=g(t.distance,r.labelDistance),p=!h;if(a){var f=r.getLabelConfig(),_=g(t[r.formatPrefix+"Format"],t.format);f=l(_)?d(_,f,n):(t[r.formatPrefix+"Formatter"]||t.formatter).call(f,t),_=t.style;var b=t.rotation;n.styledMode||(_.color=g(t.color,_.color,e.color,i.neutralColor100),"contrast"===_.color?(r.contrastColor=v.getContrast(r.color||e.color),_.color=!l(u)&&t.inside||0>u||s.stacking?r.contrastColor:i.neutralColor100):delete r.contrastColor,s.cursor&&(_.cursor=s.cursor));var x={r:t.borderRadius||0,rotation:b,padding:t.padding,zIndex:1};n.styledMode||(x.fill=t.backgroundColor,x.stroke=t.borderColor,x["stroke-width"]=t.borderWidth),m(x,function(t,e){void 0===t&&delete x[e]})}!h||a&&l(f)?a&&l(f)&&(h?x.text=f:(r.dataLabels=r.dataLabels||[],h=r.dataLabels[o]=b?v.text(f,0,-9999,t.useHTML).addClass("highcharts-data-label"):v.label(f,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),o||(r.dataLabel=h),h.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),h.options=t,h.attr(x),n.styledMode||h.css(_).shadow(t.shadow),h.added||h.add(y),t.textPath&&!t.useHTML&&(h.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(h)||r.graphic,t.textPath),r.dataLabelPath&&!t.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),e.alignDataLabel(r,h,t,null,p)):(r.dataLabel=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(1===r.dataLabels.length?delete r.dataLabels:delete r.dataLabels[o]),o||delete r.dataLabel,c&&(r.connector=r.connector.destroy(),r.connectors&&(1===r.connectors.length?delete r.connectors:delete r.connectors[o])))})})}u(this,"afterDrawDataLabels")},n.prototype.alignDataLabel=function(t,e,i,n,s){var o=this,r=this.chart,a=this.isCartesian&&r.inverted,h=this.enabledDataSorting,l=g(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),u=g(t.plotY,-9999),d=e.getBBox(),p=i.rotation,f=i.align,m=r.isInsidePlot(l,Math.round(u),a),v="justify"===g(i.overflow,h?"none":"justify"),_=this.visible&&!1!==t.visible&&(t.series.forceDL||h&&!v||m||i.inside&&n&&r.isInsidePlot(l,a?n.x+1:n.y+n.height-1,a)),y=function(i){h&&o.xAxis&&!v&&o.setDataLabelStartPos(t,e,s,m,i)};if(_){var b=r.renderer.fontMetrics(r.styledMode?void 0:i.style.fontSize,e).b;n=c({x:a?this.yAxis.len-u:l,y:Math.round(a?this.xAxis.len-l:u),width:0,height:0},n),c(i,{width:d.width,height:d.height}),p?(v=!1,l=r.renderer.rotCorr(b,p),y(l={x:n.x+(i.x||0)+n.width/2+l.x,y:n.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height}),e[s?"attr":"animate"](l).attr({align:f}),y=180<(y=(p+720)%360)&&360>y,"left"===f?l.y-=y?d.height:0:"center"===f?(l.x-=d.width/2,l.y-=d.height/2):"right"===f&&(l.x-=d.width,l.y-=y?0:d.height),e.placed=!0,e.alignAttr=l):(y(n),e.align(i,null,n),l=e.alignAttr),v&&0<=n.height?this.justifyDataLabel(e,i,l,d,n,s):g(i.crop,!0)&&(_=r.isInsidePlot(l.x,l.y)&&r.isInsidePlot(l.x+d.width,l.y+d.height)),i.shape&&!p&&e[s?"attr":"animate"]({anchorX:a?r.plotWidth-t.plotY:t.plotX,anchorY:a?r.plotHeight-t.plotX:t.plotY})}s&&h&&(e.placed=!1),_||h&&!v||(e.hide(!0),e.placed=!1)}
2,n.prototype.setDataLabelStartPos=function(t,e,i,n,s){var o=this.chart,r=o.inverted,a=this.xAxis,h=a.reversed,l=r?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=r?s.x:h?-l-t:a.width-l+t,s=r?h?this.yAxis.height-l+t:-l-t:s.y,e.startXPos=a,e.startYPos=s,n?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},n.prototype.justifyDataLabel=function(t,e,i,n,s,o){var r=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var u=e.y,d=void 0===u?0:u;if(0>(u=i.x+l)){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=u;var p=!0}return(u=i.x+n.width-l)>r.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=r.plotWidth-u,p=!0),0>(u=i.y+l)&&("bottom"===h&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=u,p=!0),(u=i.y+n.height-l)>r.plotHeight&&("top"===h&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=r.plotHeight-u,p=!0),p&&(e.x=c,e.y=d,t.placed=!o,t.align(e,void 0,s)),p},s.pie&&(s.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,n){return t.getX(i<e.top+2||i>e.bottom-2?n:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,n){return t=t.getBBox().width,e?t+n:i-t-n},alignToConnectors:function(t,e,i,n){var s,o=0;return t.forEach(function(t){(s=t.dataLabel.getBBox().width)>o&&(o=s)}),e?o+n:i-o-n}},s.pie.prototype.drawDataLabels=function(){var t,s,o,r,h,c,u,d,p,m,v,_,y=this,b=y.data,x=y.chart,w=y.options.dataLabels||{},M=w.connectorPadding,S=x.plotWidth,C=x.plotHeight,k=x.plotLeft,P=Math.round(x.chartWidth/3),T=y.center,E=T[2]/2,L=T[1],A=[[],[]],O=[0,0,0,0],I=y.dataLabelPositioners;y.visible&&(w.enabled||y._hasPointLabels)&&(b.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),n.prototype.drawDataLabels.apply(y),b.forEach(function(t){t.dataLabel&&(t.visible?(A[t.half].push(t),t.dataLabel._pos=null,!l(w.style.width)&&!l(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>P&&(t.dataLabel.css({width:Math.round(.7*P)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),A.forEach(function(i,n){var s,o=i.length,a=[];if(o){if(y.sortByAngle(i,n-.5),0<y.maxLabelDistance){var f=Math.max(0,L-E-y.maxLabelDistance),b=Math.min(L+E+y.maxLabelDistance,x.plotHeight);i.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,L-E-t.labelDistance),t.bottom=Math.min(L+E+t.labelDistance,x.plotHeight),s=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+s/2,size:s,rank:t.y},a.push(t.distributeBox))}),f=b+s-f,e.distribute(a,f,f/5)}for(v=0;v<o;v++){if(t=i[v],c=t.labelPosition,r=t.dataLabel,m=!1===t.visible?"hidden":"inherit",p=f=c.natural.y,a&&l(t.distributeBox)&&(void 0===t.distributeBox.pos?m="hidden":(u=t.distributeBox.size,p=I.radialDistributionY(t))),delete t.positionIndex,w.justify)d=I.justify(t,E,T);else switch(w.alignTo){case"connectors":d=I.alignToConnectors(i,n,S,k);break;case"plotEdges":d=I.alignToPlotEdges(r,n,S,k);break;default:d=I.radialDistributionX(y,t,p,f)}r._attr={visibility:m,align:c.alignment},_=t.options.dataLabels||{},r._pos={x:d+g(_.x,w.x)+({left:M,right:-M}[c.alignment]||0),y:p+g(_.y,w.y)-10},c.final.x=d,c.final.y=p,g(w.crop,!0)&&(h=r.getBBox().width,f=null,d-h<M&&1===n?(f=Math.round(h-d+M),O[3]=Math.max(f,O[3])):d+h>S-M&&0===n&&(f=Math.round(d+h-S+M),O[1]=Math.max(f,O[1])),0>p-u/2?O[0]=Math.max(Math.round(u/2-p),O[0]):p+u/2>C&&(O[2]=Math.max(Math.round(p+u/2-C),O[2])),r.sideOverflow=f)}}}),0===a(O)||this.verifyDataLabelOverflow(O))&&(this.placeDataLabels(),this.points.forEach(function(t){var e;_=f(w,t.options.dataLabels),(s=g(_.connectorWidth,1))&&(o=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0<t.labelDistance?(m=r._attr.visibility,(e=!o)&&(t.connector=o=x.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),x.styledMode||o.attr({"stroke-width":s,stroke:_.connectorColor||t.color||i.neutralColor60})),o[e?"attr":"animate"]({d:t.getConnectorPath()}),o.attr("visibility",m)):o&&(t.connector=o.destroy()))}))}
2,s.pie.prototype.placeDataLabels=function(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)},s.pie.prototype.alignDataLabel=t,s.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,n=i.center,s=i.minSize||80,o=null!==i.size;if(!o){if(null!==n[0])var r=Math.max(e[2]-Math.max(t[1],t[3]),s);else r=Math.max(e[2]-t[1]-t[3],s),e[0]+=(t[3]-t[1])/2;null!==n[1]?r=h(r,s,e[2]-Math.max(t[0],t[2])):(r=h(r,s,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r<e[2]?(e[2]=r,e[3]=Math.min(v(i.innerSize||0,r),r),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}),s.column&&(s.column.prototype.alignDataLabel=function(t,e,i,s,o){var r=this.chart.inverted,a=t.series,h=t.dlBox||t.shapeArgs,l=g(t.below,t.plotY>g(this.translatedThreshold,a.yAxis.len)),c=g(i.inside,!!this.options.stacking);h&&(0>(s=f(h)).y&&(s.height+=s.y,s.y=0),0<(h=s.y+s.height-a.yAxis.len)&&h<s.height&&(s.height-=h),r&&(s={x:a.yAxis.len-s.y-s.height,y:a.xAxis.len-s.x-s.width,width:s.height,height:s.width}),c||(r?(s.x+=l?0:s.width,s.width=0):(s.y+=l?s.height:0,s.height=0))),i.align=g(i.align,!r||c?"center":l?"right":"left"),i.verticalAlign=g(i.verticalAlign,r||c?"middle":l?"top":"bottom"),n.prototype.alignDataLabel.call(this,t,e,i,s,o),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})}),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(t,e){var i=e.addEvent,n=e.fireEvent,s=e.isArray,o=e.isNumber,r=e.objectEach,a=e.pick;i(t,"render",function(){var t=[];(this.labelCollectors||[]).forEach(function(e){t=t.concat(e())}),(this.yAxis||[]).forEach(function(e){e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&r(e.stacking.stacks,function(e){r(e,function(e){t.push(e.label)})})}),(this.series||[]).forEach(function(e){var i=e.options.dataLabels;e.visible&&(!1!==i.enabled||e._hasPointLabels)&&(i=function(e){return e.forEach(function(e){e.visible&&(s(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach(function(i){var n=i.options;i.labelrank=a(n.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),n.allowOverlap||t.push(i)})})},i(e.nodes||[]),i(e.points))}),this.hideOverlappingLabels(t)}),t.prototype.hideOverlappingLabels=function(t){var e,i,s,r=this,a=t.length,h=r.renderer,l=!1,c=function(t){var e,i,n=t.box?0:t.padding||0,s=e=0;if(t&&(!t.alignAttr||t.placed)){var r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=h.fontMetrics(null,t.element).h);var l=t.width-2*n;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?s=+i*l:o(t.x)&&Math.round(t.x)!==t.translateX&&(s=t.x-t.translateX),{x:r.x+(a.translateX||0)+n-(s||0),y:r.y+(a.translateY||0)+n-e,width:t.width-2*n,height:t.height-2*n}}};for(i=0;i<a;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=c(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),i=0;i<a;i++){var u=(c=t[i])&&c.absoluteBox;for(e=i+1;e<a;++e){var d=(s=t[e])&&s.absoluteBox;!u||!d||c===s||0===c.newOpacity||0===s.newOpacity||d.x>=u.x+u.width||d.x+d.width<=u.x||d.y>=u.y+u.height||d.y+d.height<=u.y||((c.labelrank<s.labelrank?c:s).newOpacity=0)}}t.forEach(function(t){if(t){var e=t.newOpacity;t.oldOpacity!==e&&(t.alignAttr&&t.placed?(t[e?"removeClass":"addClass"]("highcharts-data-label-hidden"),l=!0,t.alignAttr.opacity=e,t[t.isOld?"animate":"attr"](t.alignAttr,null,function(){r.styledMode||t.css({pointerEvents:e?"auto":"none"}),t.visibility=e?"inherit":"hidden"}),n(r,"afterHideOverlappingLabel")):t.attr({opacity:e})),t.isOld=!0}}),l&&n(r,"afterHideAllOverlappingLabels")}}),e(i,"Core/Responsive.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],function(t,e){var i=e.find,n=e.isArray,s=e.isObject,o=e.merge,r=e.objectEach,a=e.pick,h=e.splat,l=e.uniqueKey;t.prototype.setResponsive=function(t,e){var n=this.options.responsive,s=[],r=this.currentResponsive;
2!e&&n&&n.rules&&n.rules.forEach(function(t){void 0===t._id&&(t._id=l()),this.matchResponsiveRule(t,s)},this),e=o.apply(0,s.map(function(t){return i(n.rules,function(e){return e._id===t}).chartOptions})),e.isResponsiveOptions=!0,(s=s.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),s?((r=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,o,a,l){var c;r(i,function(i,r){if(!l&&-1<e.collectionsWithUpdate.indexOf(r)&&o[r])for(i=h(i),a[r]=[],c=0;c<Math.max(i.length,o[r].length);c++)o[r][c]&&(void 0===i[c]?a[r][c]=o[r][c]:(a[r][c]={},t(i[c],o[r][c],a[r][c],l+1)));else s(i)?(a[r]=n(i)?[]:{},t(i,o[r]||{},a[r],l+1)):a[r]=void 0===o[r]?null:o[r]})}(t,this.options,i,0),i}}),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/Series/Series.js"]],function(t,e,i,n){return t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.format=e.format,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.numberFormat=e.numberFormat,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,t.AST=i,t.Series=n,t}),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},t.exports?(o.default=o,t.exports=s.document?o(s):o):void 0===(n=function(){return o(s)}.call(e,i,e,t))||(t.exports=n)},4692:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,function(n,s){"use strict";var o=[],r=Object.getPrototypeOf,a=o.slice,h=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,u={},d=u.toString,p=u.hasOwnProperty,f=p.toString,m=f.call(Object),g={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},_=function(t){return null!=t&&t===t.window},y=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,i){var n,s,o=(i=i||y).createElement("script");if(o.text=t,e)for(n in b)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function w(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[d.call(t)]||"object":typeof t}var M="3.7.1",S=/HTML$/i,C=function(t,e){return new C.fn.init(t,e)};function k(t){var e=!!t&&"length"in t&&t.length,i=w(t);return!v(t)&&!_(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function P(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}C.fn=C.prototype={jquery:M,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]}
vendor: 19,379 bytes, line 2
2,pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(t){return this.pushStack(C.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,h=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===h&&(r=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(l&&n&&(C.isPlainObject(n)||(s=Array.isArray(n)))?(i=r[e],o=s&&!Array.isArray(i)?[]:s||C.isPlainObject(i)?i:{},s=!1,r[e]=C.extend(l,o,n)):void 0!==n&&(r[e]=n));return r},C.extend({expando:"jQuery"+(M+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==d.call(t)||(e=r(t))&&("function"!=typeof(i=p.call(e,"constructor")&&e.constructor)||f.call(i)!==m))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){x(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(k(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,s=t.nodeType;if(!s)for(;e=t[n++];)i+=C.text(e);return 1===s||11===s?t.textContent:9===s?t.documentElement.textContent:3===s||4===s?t.nodeValue:i},makeArray:function(t,e){var i=e||[];return null!=t&&(k(Object(t))?C.merge(i,"string"==typeof t?[t]:t):l.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:c.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!S.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,r=[];if(k(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&r.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&r.push(s);return h(r)},guid:1,support:g}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){u["[object "+e+"]"]=e.toLowerCase()});var T=o.pop,E=o.sort,L=o.splice,A="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g");C.contains=function(t,e){var i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}C.escapeSelector=function(t){return(t+"").replace(I,D)};var N=y,z=l;!function(){var t,e,i,s,r,h,l,u,d,f,m=z,v=C.expando,_=0,y=0,b=tt(),x=tt(),w=tt(),M=tt(),S=function(t,e){return t===e&&(r=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",D="\\["+A+"*("+I+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+A+"*\\]",j=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+D+")*)|.*)\\)|)",R=new RegExp(A+"+","g"),G=new RegExp("^"+A+"*,"+A+"*"),B=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),H=new RegExp(A+"|>"),F=new RegExp(j),W=new RegExp("^"+I+"$"),q={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},$=function(){ht()},J=dt(function(t){return!0===t.disabled&&P(t,"fieldset")},{dir:"parentNode",next:"legend"});try{m.apply(o=a.call(N.childNodes),N.childNodes),o[N.childNodes.length].nodeType}catch(t){m={apply:function(t,e){z.apply(t,a.call(e))},call:function(t){z.apply(t,a.call(arguments,1))}}}function Q(t,e,i,n){var s,o,r,a,l,c,p,f=e&&e.ownerDocument,_=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return i;if(!n&&(ht(e),e=e||h,u)){if(11!==_&&(l=Y.exec(t)))if(s=l[1]){if(9===_){if(!(r=e.getElementById(s)))return i;if(r.id===s)return m.call(i,r),i}else if(f&&(r=f.getElementById(s))&&Q.contains(e,r)&&r.id===s)return m.call(i,r),i}else{if(l[2])return m.apply(i,e.getElementsByTagName(t)),i;if((s=l[3])&&e.getElementsByClassName)return m.apply(i,e.getElementsByClassName(s)),i}if(!(M[t+" "]||d&&d.test(t))){if(p=t,f=e,1===_&&(H.test(t)||B.test(t))){for((f=V.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=C.escapeSelector(a):e.setAttribute("id",a=v)),o=(c=ct(t)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+ut(c[o]);p=c.join(",")}try{return m.apply(i,f.querySelectorAll(p)),i}catch(e){M(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return _t(t.replace(O,"$1"),e,i,n)}function tt(){var t=[];return function i(n,s){return t.push(n+" ")>e.cacheLength&&delete i[t.shift()],i[n+" "]=s}}function et(t){return t[v]=!0,t}function it(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return P(e,"input")&&e.type===t}}function st(t){return function(e){return(P(e,"input")||P(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function rt(t){return et(function(e){return e=+e,et(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ht(t){var i,n=t?t.ownerDocument||t:N;return n!=h&&9===n.nodeType&&n.documentElement?(l=(h=n).documentElement,u=!C.isXMLDoc(h),f=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&N!=h&&(i=h.defaultView)&&i.top!==i&&i.addEventListener("unload",$),g.getById=it(function(t){return l.appendChild(t).id=C.expando,!h.getElementsByName||!h.getElementsByName(C.expando).length}),g.disconnectedMatch=it(function(t){return f.call(t,"*")}),g.scope=it(function(){return h.querySelectorAll(":scope")}),g.cssHas=it(function(){try{return h.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),g.getById?(e.filter.ID=function(t){var e=t.replace(X,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i=e.getElementById(t);return i?[i]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,K);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&u)return e.getElementsByClassName(t)},d=[],it(function(t){var e;l.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+A+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+v+"-]").length||d.push("~="),t.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=h.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")")}),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),S=function(t,e){if(t===e)return r=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!g.sortDetached&&e.compareDocumentPosition(t)===i?t===h||t.ownerDocument==N&&Q.contains(N,t)?-1:e===h||e.ownerDocument==N&&Q.contains(N,e)?1:s?c.call(s,t)-c.call(s,e):0:4&i?-1:1)},h):h}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(ht(t),u&&!M[e+" "]&&(!d||!d.test(e)))try{var i=f.call(t,e);if(i||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){M(e,!0)}return Q(e,h,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=h&&ht(t),C.contains(t,e)},Q.attr=function(t,i){(t.ownerDocument||t)!=h&&ht(t);var n=e.attrHandle[i.toLowerCase()],s=n&&p.call(e.attrHandle,i.toLowerCase())?n(t,i,!u):void 0;return void 0!==s?s:t.getAttribute(i)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},C.uniqueSort=function(t){var e,i=[],n=0,o=0;if(r=!g.sortStable,s=!g.sortStable&&a.call(t,0),E.call(t,S),r){for(;e=t[o++];)e===t[o]&&(n=i.push(o));for(;n--;)L.call(t,i[n],1)}return s=null,t},C.fn.uniqueSort=function(){return this.pushStack(C.uniqueSort(a.apply(this)))},e=C.expr={cacheLength:50,createPseudo:et,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(X,K),t[3]=(t[3]||t[4]||t[5]||"").replace(X,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&F.test(i)&&(e=ct(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(X,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return P(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+A+")"+t+"("+A+"|$)"))&&b(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,i){return function(n){var s=Q.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&s.indexOf(i)>-1:"$="===e?i&&s.slice(-i.length)===i:"~="===e?(" "+s.replace(R," ")+" ").indexOf(i)>-1:"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,h){var l,c,u,d,p,f=o!==r?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),y=!h&&!a,b=!1;if(m){if(o){for(;f;){for(u=e;u=u[f];)if(a?P(u,g):1===u.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&y){for(b=(d=(l=(c=m[v]||(m[v]={}))[t]||[])[0]===_&&l[1])&&l[2],u=d&&m.childNodes[d];u=++d&&u&&u[f]||(b=d=0)||p.pop();)if(1===u.nodeType&&++b&&u===e){c[t]=[_,d,b];break}}else if(y&&(b=d=(l=(c=e[v]||(e[v]={}))[t]||[])[0]===_&&l[1]),!1===b)for(;(u=++d&&u&&u[f]||(b=d=0)||p.pop())&&(!(a?P(u,g):1===u.nodeType)||!++b||(y&&((c=u[v]||(u[v]={}))[t]=[_,b]),u!==e)););return(b-=s)===n||b%n===0&&b/n>=0}}},PSEUDO:function(t,i){var n,s=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return s[v]?s(i):s.length>1?(n=[t,t,"",i],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var n,o=s(t,i),r=o.length;r--;)t[n=c.call(t,o[r])]=!(e[n]=o[r])}):function(t){return s(t,0,n)}):s}},pseudos:{not:et(function(t){var e=[],i=[],n=vt(t.replace(O,"$1"));return n[v]?et(function(t,e,i,s){for(var o,r=n(t,null,s,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,s,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:et(function(t){return function(e){return Q(t,e).length>0}}),contains:et(function(t){return t=t.replace(X,K),function(e){return(e.textContent||C.text(e)).indexOf(t)>-1}}),lang:et(function(t){return W.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace(X,K).toLowerCase(),function(e){var i;do{if(i=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return h.activeElement}catch(t){}}()&&h.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return P(t,"input")&&!!t.checked||P(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return U.test(t.nodeName)},button:function(t){return P(t,"input")&&"button"===t.type||P(t,"button")},text:function(t){var e;return P(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:rt(function(){return[0]}),last:rt(function(t,e){return[e-1]}),eq:rt(function(t,e,i){return[i<0?i+e:i]}),even:rt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:rt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:rt(function(t,e,i){var n;for(n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t}),gt:rt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=nt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=st(t);function lt(){}function ct(t,i){var n,s,o,r,a,h,l,c=x[t+" "];if(c)return i?0:c.slice(0);for(a=t,h=[],l=e.preFilter;a;){for(r in n&&!(s=G.exec(a))||(s&&(a=a.slice(s[0].length)||a),h.push(o=[])),n=!1,(s=B.exec(a))&&(n=s.shift(),o.push({value:n,type:s[0].replace(O," ")}),a=a.slice(n.length)),e.filter)!(s=q[r].exec(a))||l[r]&&!(s=l[r](s))||(n=s.shift(),o.push({value:n,type:r,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?Q.error(t):x(t,h).slice(0)}function ut(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function dt(t,e,i){var n=e.dir,s=e.next,o=s||n,r=i&&"parentNode"===o,a=y++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,s);return!1}:function(e,i,h){var l,c,u=[_,a];if(h){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,h))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(c=e[v]||(e[v]={}),s&&P(e,s))e=e[n]||e;else{if((l=c[o])&&l[0]===_&&l[1]===a)return u[2]=l[2];if(c[o]=u,u[2]=t(e,i,h))return!0}return!1}}function pt(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function ft(t,e,i,n,s){for(var o,r=[],a=0,h=t.length,l=null!=e;a<h;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),l&&e.push(a)));return r}function mt(t,e,i,n,s,o){return n&&!n[v]&&(n=mt(n)),s&&!s[v]&&(s=mt(s,o)),et(function(o,r,a,h){var l,u,d,p,f=[],g=[],v=r.length,_=o||function(t,e,i){for(var n=0,s=e.length;n<s;n++)Q(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),y=!t||!o&&e?_:ft(_,f,t,a,h);if(i?i(y,p=s||(o?t:v||n)?[]:r,a,h):p=y,n)for(l=ft(p,g),n(l,[],a,h),u=l.length;u--;)(d=l[u])&&(p[g[u]]=!(y[g[u]]=d));if(o){if(s||t){if(s){for(l=[],u=p.length;u--;)(d=p[u])&&l.push(y[u]=d);s(null,p=[],l,h)}for(u=p.length;u--;)(d=p[u])&&(l=s?c.call(o,d):f[u])>-1&&(o[l]=!(r[l]=d))}}else p=ft(p===r?p.splice(v,p.length):p),s?s(null,r,p,h):m.apply(r,p)})}function gt(t){for(var n,s,o,r=t.length,a=e.relative[t[0].type],h=a||e.relative[" "],l=a?1:0,u=dt(function(t){return t===n},h,!0),d=dt(function(t){return c.call(n,t)>-1},h,!0),p=[function(t,e,s){var o=!a&&(s||e!=i)||((n=e).nodeType?u(t,e,s):d(t,e,s));return n=null,o}];l<r;l++)if(s=e.relative[t[l].type])p=[dt(pt(p),s)];else{if((s=e.filter[t[l].type].apply(null,t[l].matches))[v]){for(o=++l;o<r&&!e.relative[t[o].type];o++);return mt(l>1&&pt(p),l>1&&ut(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(O,"$1"),s,l<o&&gt(t.slice(l,o)),o<r&&gt(t=t.slice(o)),o<r&&ut(t))}p.push(s)}return pt(p)}function vt(t,n){var s,o=[],r=[],a=w[t+" "];if(!a){for(n||(n=ct(t)),s=n.length;s--;)(a=gt(n[s]))[v]?o.push(a):r.push(a);a=w(t,function(t,n){var s=n.length>0,o=t.length>0,r=function(r,a,l,c,d){var p,f,g,v=0,y="0",b=r&&[],x=[],w=i,M=r||o&&e.find.TAG("*",d),S=_+=null==w?1:Math.random()||.1,k=M.length;for(d&&(i=a==h||a||d);y!==k&&null!=(p=M[y]);y++){if(o&&p){for(f=0,a||p.ownerDocument==h||(ht(p),l=!u);g=t[f++];)if(g(p,a||h,l)){m.call(c,p);break}d&&(_=S)}s&&((p=!g&&p)&&v--,r&&b.push(p))}if(v+=y,s&&y!==v){for(f=0;g=n[f++];)g(b,x,a,l);if(r){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=T.call(c));x=ft(x)}m.apply(c,x),d&&!r&&x.length>0&&v+n.length>1&&C.uniqueSort(c)}return d&&(_=S,i=w),b};return s?et(r):r}(r,o)),a.selector=t}return a}function _t(t,i,n,s){var o,r,a,h,l,c="function"==typeof t&&t,d=!s&&ct(t=c.selector||t);if(n=n||[],1===d.length){if((r=d[0]=d[0].slice(0)).length>2&&"ID"===(a=r[0]).type&&9===i.nodeType&&u&&e.relative[r[1].type]){if(!(i=(e.find.ID(a.matches[0].replace(X,K),i)||[])[0]))return n;c&&(i=i.parentNode),t=t.slice(r.shift().value.length)}for(o=q.needsContext.test(t)?0:r.length;o--&&(a=r[o],!e.relative[h=a.type]);)if((l=e.find[h])&&(s=l(a.matches[0].replace(X,K),V.test(r[0].type)&&at(i.parentNode)||i))){if(r.splice(o,1),!(t=s.length&&ut(r)))return m.apply(n,s),n;break}}return(c||vt(t,d))(s,i,!u,n,!i||V.test(t)&&at(i.parentNode)||i),n}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,g.sortStable=v.split("").sort(S).join("")===v,ht(),g.sortDetached=it(function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))}),C.find=Q,C.expr[":"]=C.expr.pseudos,C.unique=C.uniqueSort,Q.compile=vt,Q.select=_t,Q.setDocument=ht,Q.tokenize=ct,Q.escape=C.escapeSelector,Q.getText=C.text,Q.isXML=C.isXMLDoc,Q.selectors=C.expr,Q.support=C.support,Q.uniqueSort=C.uniqueSort}();
vendor: 5,215 bytes, line 2
2var j=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&C(t).is(i))break;n.push(t)}return n},R=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},G=C.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function H(t,e,i){return v(e)?C.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?C.grep(t,function(t){return t===e!==i}):"string"!=typeof e?C.grep(t,function(t){return c.call(e,t)>-1!==i}):C.filter(e,t,i)}C.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?C.find.matchesSelector(n,t)?[n]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e<n;e++)if(C.contains(s[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)C.find(t,s[e],i);return n>1?C.uniqueSort(i):i},filter:function(t){return this.pushStack(H(this,t||[],!1))},not:function(t){return this.pushStack(H(this,t||[],!0))},is:function(t){return!!H(this,"string"==typeof t&&G.test(t)?C(t):t||[],!1).length}});var F,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||F,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),B.test(n[1])&&C.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=y.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(C):C.makeArray(t,this)}).prototype=C.fn,F=C(y);var q=/^(?:parents|prev(?:Until|All))/,U={children:!0,contents:!0,next:!0,prev:!0};function Z(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(C.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,s=this.length,o=[],r="string"!=typeof t&&C(t);if(!G.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&C.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(C(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return j(t,"parentNode")},parentsUntil:function(t,e,i){return j(t,"parentNode",i)},next:function(t){return Z(t,"nextSibling")},prev:function(t){return Z(t,"previousSibling")},nextAll:function(t){return j(t,"nextSibling")},prevAll:function(t){return j(t,"previousSibling")},nextUntil:function(t,e,i){return j(t,"nextSibling",i)},prevUntil:function(t,e,i){return j(t,"previousSibling",i)},siblings:function(t){return R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&r(t.contentDocument)?t.contentDocument:(P(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(t,e){C.fn[t]=function(i,n){var s=C.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=C.filter(n,s)),this.length>1&&(U[t]||C.uniqueSort(s),q.test(t)&&s.reverse()),this.pushStack(s)}});var Y=/[^\x20\t\r\n\f]+/g;function V(t){return t}function X(t){throw t}function K(t,e,i,n){var s;try{t&&v(s=t.promise)?s.call(t).done(e).fail(i):t&&v(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}C.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return C.each(t.match(Y)||[],function(t,i){e[i]=!0}),e}(t):C.extend({},t);var e,i,n,s,o=[],r=[],a=-1,h=function(){for(s=s||t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=o.length,i=!1);t.memory||(i=!1),e=!1,s&&(o=i?[]:"")},l={add:function(){return o&&(i&&!e&&(a=o.length-1,r.push(i)),function e(i){C.each(i,function(i,n){v(n)?t.unique&&l.has(n)||o.push(n):n&&n.length&&"string"!==w(n)&&e(n)})}(arguments),i&&!e&&h()),this},remove:function(){return C.each(arguments,function(t,e){for(var i;(i=C.inArray(e,o,i))>-1;)o.splice(i,1),i<=a&&a--}),this},has:function(t){return t?C.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||e||(o=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||h()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},C.extend({Deferred:function(t){var e=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.
vendor: 4,129 bytes, line 2
2Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var t=arguments;return C.Deferred(function(i){C.each(e,function(e,n){var s=v(t[n[4]])&&t[n[4]];o[n[1]](function(){var t=s&&s.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[t]:arguments)})}),t=null}).promise()},then:function(t,i,s){var o=0;function r(t,e,i,s){return function(){var a=this,h=arguments,l=function(){var n,l;if(!(t<o)){if((n=i.apply(a,h))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(l)?s?l.call(n,r(o,e,V,s),r(o,e,X,s)):(o++,l.call(n,r(o,e,V,s),r(o,e,X,s),r(o,e,V,e.notifyWith))):(i!==V&&(a=void 0,h=[n]),(s||e.resolveWith)(a,h))}},c=s?l:function(){try{l()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,c.error),t+1>=o&&(i!==X&&(a=void 0,h=[n]),e.rejectWith(a,h))}};t?c():(C.Deferred.getErrorHook?c.error=C.Deferred.getErrorHook():C.Deferred.getStackHook&&(c.error=C.Deferred.getStackHook()),n.setTimeout(c))}}return C.Deferred(function(n){e[0][3].add(r(0,n,v(s)?s:V,n.notifyWith)),e[1][3].add(r(0,n,v(t)?t:V)),e[2][3].add(r(0,n,v(i)?i:X))}).promise()},promise:function(t){return null!=t?C.extend(t,s):s}},o={};return C.each(e,function(t,n){var r=n[2],a=n[5];s[n[1]]=r.add,a&&r.add(function(){i=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),r.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=r.fireWith}),s.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),s=a.call(arguments),o=C.Deferred(),r=function(t){return function(i){n[t]=this,s[t]=arguments.length>1?a.call(arguments):i,--e||o.resolveWith(n,s)}};if(e<=1&&(K(t,o.done(r(i)).resolve,o.reject,!e),"pending"===o.state()||v(s[i]&&s[i].then)))return o.then();for(;i--;)K(s[i],r(i),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&$.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){n.setTimeout(function(){throw t})};var J=C.Deferred();function Q(){y.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),C.ready()}C.fn.ready=function(t){return J.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==t&&--C.readyWait>0||J.resolveWith(y,[C]))}}),C.ready.then=J.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var tt=function(t,e,i,n,s,o,r){var a=0,h=t.length,l=null==i;if("object"===w(i))for(a in s=!0,i)tt(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,v(n)||(r=!0),l&&(r?(e.call(t,n),e=null):(l=e,e=function(t,e,i){return l.call(C(t),i)})),e))for(;a<h;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:l?e.call(t):h?e(t[0],i):o},et=/^-ms-/,it=/-([a-z])/g;function nt(t,e){return e.toUpperCase()}function st(t){return t.replace(et,"ms-").replace(it,nt)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function rt(){this.expando=C.expando+rt.uid++}rt.uid=1,rt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[st(e)]=i;else for(n in e)s[st(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][st(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];
vendor: 11,028 bytes, line 2
2if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(st):(e=st(e))in n?[e]:e.match(Y)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||C.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var at=new rt,ht=new rt,lt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function ut(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:lt.test(t)?JSON.parse(t):t)}(i)}catch(t){}ht.set(t,e,i)}else i=void 0;return i}C.extend({hasData:function(t){return ht.hasData(t)||at.hasData(t)},data:function(t,e,i){return ht.access(t,e,i)},removeData:function(t,e){ht.remove(t,e)},_data:function(t,e,i){return at.access(t,e,i)},_removeData:function(t,e){at.remove(t,e)}}),C.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=ht.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=st(n.slice(5)),ut(o,n,s[n]));at.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){ht.set(this,t)}):tt(this,function(e){var i;if(o&&void 0===e)return void 0!==(i=ht.get(o,t))||void 0!==(i=ut(o,t))?i:void 0;this.each(function(){ht.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){ht.remove(this,t)})}}),C.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=at.get(t,e),i&&(!n||Array.isArray(i)?n=at.access(t,e,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=C.queue(t,e),n=i.length,s=i.shift(),o=C._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,function(){C.dequeue(t,e)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return at.get(t,i)||at.access(t,i,{empty:C.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",i])})})}}),C.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?C.queue(this[0],t):void 0===e?this:this.each(function(){var i=C.queue(this,t,e);C._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&C.dequeue(this,t)})},dequeue:function(t){return this.each(function(){C.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=C.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=at.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],mt=y.documentElement,gt=function(t){return C.contains(t.ownerDocument,t)},vt={composed:!0};mt.getRootNode&&(gt=function(t){return C.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var _t=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===C.css(t,"display")};function yt(t,e,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return C.css(t,e,"")},h=a(),l=i&&i[3]||(C.cssNumber[e]?"":"px"),c=t.nodeType&&(C.cssNumber[e]||"px"!==l&&+h)&&pt.exec(C.css(t,e));if(c&&c[3]!==l){for(h/=2,l=l||c[3],c=+h||1;r--;)C.style(t,e,c+l),(1-o)*(1-(o=a()/h||.5))<=0&&(r=0),c/=o;c*=2,C.style(t,e,c+l),i=i||[]}return i&&(c=+c||+h||0,s=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=l,n.start=c,n.end=s)),s}var bt={};function xt(t){var e,i=t.ownerDocument,n=t.nodeName,s=bt[n];return s||(e=i.body.appendChild(i.createElement(n)),s=C.css(e,"display"),e.parentNode.removeChild(e),"none"===s&&(s="block"),bt[n]=s,s)}function wt(t,e){for(var i,n,s=[],o=0,r=t.length;o<r;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(s[o]=at.get(n,"display")||null,s[o]||(n.style.display="")),""===n.style.display&&_t(n)&&(s[o]=xt(n))):"none"!==i&&(s[o]="none",at.set(n,"display",i)));for(o=0;o<r;o++)null!=s[o]&&(t[o].style.display=s[o]);return t}C.fn.extend({show:function(){return wt(this,!0)},hide:function(){return wt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){_t(this)?C(this).show():C(this).hide()})}});var Mt,St,Ct=/^(?:checkbox|radio)$/i,kt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Pt=/^$|^module$|\/(?:java|ecma)script/i;Mt=y.createDocumentFragment().appendChild(y.createElement("div")),(St=y.createElement("input")).setAttribute("type","radio"),St.setAttribute("checked","checked"),St.setAttribute("name","t"),Mt.appendChild(St),g.checkClone=Mt.cloneNode(!0).cloneNode(!0).lastChild.checked,Mt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Mt.cloneNode(!0).lastChild.defaultValue,Mt.innerHTML="<option></option>",g.option=!!Mt.lastChild;var Tt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Et(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&P(t,e)?C.merge([t],i):i}function Lt(t,e){for(var i=0,n=t.length;i<n;i++)at.set(t[i],"globalEval",!e||at.get(e[i],"globalEval"))}Tt.tbody=Tt.tfoot=Tt.colgroup=Tt.caption=Tt.thead,Tt.th=Tt.td,g.option||(Tt.optgroup=Tt.option=[1,"<select multiple='multiple'>","</select>"]);var At=/<|&#?\w+;/;function Ot(t,e,i,n,s){for(var o,r,a,h,l,c,u=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===w(o))C.merge(d,o.nodeType?[o]:o);else if(At.test(o)){for(r=r||u.appendChild(e.createElement("div")),a=(kt.exec(o)||["",""])[1].toLowerCase(),h=Tt[a]||Tt._default,r.innerHTML=h[1]+C.htmlPrefilter(o)+h[2],c=h[0];c--;)r=r.lastChild;C.merge(d,r.childNodes),(r=u.firstChild).textContent=""}else d.push(e.createTextNode(o));for(u.textContent="",p=0;o=d[p++];)if(n&&C.inArray(o,n)>-1)s&&s.push(o);else if(l=gt(o),r=Et(u.appendChild(o),"script"),l&&Lt(r),i)for(c=0;o=r[c++];)Pt.test(o.type||"")&&i.push(o);return u}var It=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Nt(){return!1}function zt(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)zt(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Nt;else if(!s)return t;return 1===o&&(r=s,s=function(t){return C().off(t),r.apply(this,arguments)},s.guid=r.guid||(r.guid=C.guid++)),t.each(function(){C.event.add(this,e,s,n,i)})}function jt(t,e,i){i?(at.set(t,e,!1),C.event.add(t,e,{namespace:!1,handler:function(t){var i,n=at.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(C.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),at.set(this,e,n),this[e](),i=at.get(this,e),at.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(at.set(this,e,C.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&C.event.add(t,e,Dt)}C.event={global:{},add:function(t,e,i,n,s){var o,r,a,h,l,c,u,d,p,f,m,g=at.get(t);if(ot(t))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&C.find.matchesSelector(mt,s),i.guid||(i.guid=C.guid++),(h=g.events)||(h=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(Y)||[""]).length;l--;)p=m=(a=It.exec(e[l])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=C.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=C.event.special[p]||{},c=C.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=h[p])||((d=h[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,c):d.push(c),C.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,h,l,c,u,d,p,f,m,g=at.hasData(t)&&at.get(t);if(g&&(h=g.events)){for(l=(e=(e||"").match(Y)||[""]).length;l--;)if(p=m=(a=It.exec(e[l])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},d=h[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)c=d[o],!s&&m!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));r&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,f,g.handle)||C.removeEvent(t,p,g.handle),delete h[p])}else for(p in h)C.event.remove(t,p+e[l],i,n,!0);C.isEmptyObject(h)&&at.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r,a=new Array(arguments.length),h=C.event.fix(t),l=(at.get(this,"events")||Object.create(null))[h.type]||[],c=C.event.special[h.type]||{};for(a[0]=h,e=1;e<arguments.length;e++)a[e]=arguments[e];if(h.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,h)){for(r=C.event.handlers.call(this,h,l),e=0;(s=r[e++])&&!h.isPropagationStopped();)for(h.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!1!==o.namespace&&!h.rnamespace.test(o.namespace)||(h.handleObj=o,h.data=o.data,void 0!==(n=((C.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a))&&!1===(h.result=n)&&(h.preventDefault(),h.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,h),h.result}},handlers:function(t,e){var i,n,s,o,r,a=[],h=e.delegateCount,l=t.target;if(h&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],r={},i=0;i<h;i++)void 0===r[s=(n=e[i]).selector+" "]&&(r[s]=n.needsContext?C(s,this).index(l)>-1:C.find(s,this,null,[l]).length),r[s]&&o.push(n);o.length&&a.push({elem:l,handlers:o})}return l=this,h<e.length&&a.push({elem:l,handlers:e.slice(h)}),a},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[C.expando]?t:new C.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Ct.test(e.type)&&e.click&&P(e,"input")&&jt(e,"click",!0),!1},trigger:function(t){var e=this||t;return Ct.test(e.type)&&e.click&&P(e,"input")&&jt(e,"click"),!0},_default:function(t){var e=t.target;return Ct.test(e.type)&&e.click&&P(e,"input")&&at.get(e,"click")||P(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}}
vendor: 9,697 bytes, line 2
2,C.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},C.Event=function(t,e){if(!(this instanceof C.Event))return new C.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Dt:Nt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&C.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Nt,isPropagationStopped:Nt,isImmediatePropagationStopped:Nt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Dt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Dt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Dt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(t,e){function i(t){if(y.documentMode){var i=at.get(this,"handle"),n=C.event.fix(t);n.type="focusin"===t.type?"focus":"blur",n.isSimulated=!0,i(t),n.target===n.currentTarget&&i(n)}else C.event.simulate(e,t.target,C.event.fix(t))}C.event.special[t]={setup:function(){var n;if(jt(this,t,!0),!y.documentMode)return!1;(n=at.get(this,e))||this.addEventListener(e,i),at.set(this,e,(n||0)+1)},trigger:function(){return jt(this,t),!0},teardown:function(){var t;if(!y.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,i),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},C.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,s=y.documentMode?this:n,o=at.get(s,e);o||(y.documentMode?this.addEventListener(e,i):n.addEventListener(t,i,!0)),at.set(s,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,s=y.documentMode?this:n,o=at.get(s,e)-1;o?at.set(s,e,o):(y.documentMode?this.removeEventListener(e,i):n.removeEventListener(t,i,!0),at.remove(s,e))}}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){C.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,s=t.handleObj;return n&&(n===this||C.contains(this,n))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),C.fn.extend({on:function(t,e,i,n){return zt(this,t,e,i,n)},one:function(t,e,i,n){return zt(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,C(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Nt),this.each(function(){C.event.remove(this,t,i,e)})}});var Rt=/<script|<style|<link/i,Gt=/checked\s*(?:[^=]|=\s*.checked.)/i,Bt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ht(t,e){return P(t,"table")&&P(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function Ft(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var i,n,s,o,r,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(s in at.remove(e,"handle events"),a)for(i=0,n=a[s].length;i<n;i++)C.event.add(e,s,a[s][i]);ht.hasData(t)&&(o=ht.access(t),r=C.extend({},o),ht.set(e,r))}}function Ut(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Ct.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Zt(t,e,i,n){e=h(e);var s,o,r,a,l,c,u=0,d=t.length,p=d-1,f=e[0],m=v(f);if(m||d>1&&"string"==typeof f&&!g.checkClone&&Gt.test(f))return t.each(function(s){var o=t.eq(s);m&&(e[0]=f.call(this,s,o.html())),Zt(o,e,i,n)});if(d&&(o=(s=Ot(e,t[0].ownerDocument,!1,t,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(a=(r=C.map(Et(s,"script"),Ft)).length;u<d;u++)l=s,u!==p&&(l=C.clone(l,!0,!0),a&&C.merge(r,Et(l,"script"))),i.call(t[u],l,u);if(a)for(c=r[r.length-1].ownerDocument,C.map(r,Wt),u=0;u<a;u++)l=r[u],Pt.test(l.type||"")&&!at.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):x(l.textContent.replace(Bt,""),l,c))}return t}function Yt(t,e,i){for(var n,s=e?C.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||C.cleanData(Et(n)),n.parentNode&&(i&&gt(n)&&Lt(Et(n,"script")),n.parentNode.removeChild(n));return t}C.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,s,o,r,a=t.cloneNode(!0),h=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(r=Et(a),n=0,s=(o=Et(t)).length;n<s;n++)Ut(o[n],r[n]);if(e)if(i)for(o=o||Et(t),r=r||Et(a),n=0,s=o.length;n<s;n++)qt(o[n],r[n]);else qt(t,a);return(r=Et(a,"script")).length>0&&Lt(r,!h&&Et(t,"script")),a},cleanData:function(t){for(var e,i,n,s=C.event.special,o=0;void 0!==(i=t[o]);o++)if(ot(i)){if(e=i[at.expando]){if(e.events)for(n in e.events)s[n]?C.event.remove(i,n):C.removeEvent(i,n,e.handle);i[at.expando]=void 0}i[ht.expando]&&(i[ht.expando]=void 0)}}}),C.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Zt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ht(this,t).appendChild(t)})},prepend:function(){return Zt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ht(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Zt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Zt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Rt.test(t)&&!Tt[(kt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(C.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Zt(this,arguments,function(e){var i=this.parentNode;C.inArray(this,t)<0&&(C.cleanData(Et(this)),i&&i.replaceChild(e,this))},t)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){C.fn[t]=function(t){for(var i,n=[],s=C(t),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),C(s[r])[e](i),l.apply(n,i.get());return this.pushStack(n)}});var Vt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Xt=/^--/,Kt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},$t=function(t,e,i){var n,s,o={};for(s in e)o[s]=t.style[s],t.style[s]=e[s];for(s in n=i.call(t),e)t.style[s]=o[s];return n},Jt=new RegExp(ft.join("|"),"i");function Qt(t,e,i){var n,s,o,r,a=Xt.test(e),h=t.style;return(i=i||Kt(t))&&(r=i.getPropertyValue(e)||i[e],a&&r&&(r=r.replace(O,"$1")||void 0),""!==r||gt(t)||(r=C.style(t,e)),!g.pixelBoxStyles()&&Vt.test(r)&&Jt.test(e)&&(n=h.width,s=h.minWidth,o=h.maxWidth,h.minWidth=h.maxWidth=h.width=r,r=i.width,h.width=n,h.minWidth=s,h.maxWidth=o)),void 0!==r?r+"":r}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(l).appendChild(c);var t=n.getComputedStyle(c);i="1%"!==t.top,h=12===e(t.marginLeft),c.style.right="60%",r=36===e(t.right),s=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),mt.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var i,s,o,r,a,h,l=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(g,{boxSizingReliable:function(){return t(),s},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),h},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,i,s;return null==a&&(t=y.createElement("table"),e=y.createElement("tr"),i=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;
2border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",mt.appendChild(t).appendChild(e).appendChild(i),s=n.getComputedStyle(e),a=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===e.offsetHeight,mt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ie=y.createElement("div").style,ne={};function se(t){return C.cssProps[t]||ne[t]||(t in ie?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=ee.length;i--;)if((t=ee[i]+e)in ie)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,re={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function he(t,e,i){var n=pt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function le(t,e,i,n,s,o){var r="width"===e?1:0,a=0,h=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=C.css(t,i+ft[r],!0,s)),n?("content"===i&&(h-=C.css(t,"padding"+ft[r],!0,s)),"margin"!==i&&(h-=C.css(t,"border"+ft[r]+"Width",!0,s))):(h+=C.css(t,"padding"+ft[r],!0,s),"padding"!==i?h+=C.css(t,"border"+ft[r]+"Width",!0,s):a+=C.css(t,"border"+ft[r]+"Width",!0,s));return!n&&o>=0&&(h+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-h-a-.5))||0),h+l}function ce(t,e,i){var n=Kt(t),s=(!g.boxSizingReliable()||i)&&"border-box"===C.css(t,"boxSizing",!1,n),o=s,r=Qt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Vt.test(r)){if(!i)return r;r="auto"}return(!g.boxSizingReliable()&&s||!g.reliableTrDimensions()&&P(t,"tr")||"auto"===r||!parseFloat(r)&&"inline"===C.css(t,"display",!1,n))&&t.getClientRects().length&&(s="border-box"===C.css(t,"boxSizing",!1,n),(o=a in t)&&(r=t[a])),(r=parseFloat(r)||0)+le(t,e,i||(s?"border":"content"),o,n,r)+"px"}function ue(t,e,i,n,s){return new ue.prototype.init(t,e,i,n,s)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Qt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=st(e),h=Xt.test(e),l=t.style;if(h||(e=se(a)),r=C.cssHooks[e]||C.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:l[e];"string"==(o=typeof i)&&(s=pt.exec(i))&&s[1]&&(i=yt(t,e,s),o="number"),null!=i&&i==i&&("number"!==o||h||(i+=s&&s[3]||(C.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(h?l.setProperty(e,i):l[e]=i))}},css:function(t,e,i,n){var s,o,r,a=st(e);return Xt.test(e)||(e=se(a)),(r=C.cssHooks[e]||C.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=Qt(t,e,n)),"normal"===s&&e in ae&&(s=ae[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),C.each(["height","width"],function(t,e){C.cssHooks[e]={get:function(t,i,n){if(i)return!oe.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,n):$t(t,re,function(){return ce(t,e,n)})},set:function(t,i,n){var s,o=Kt(t),r=!g.scrollboxSize()&&"absolute"===o.position,a=(r||n)&&"border-box"===C.css(t,"boxSizing",!1,o),h=n?le(t,e,n,a,o):0;return a&&r&&(h-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-le(t,e,"border",!1,o)-.5)),h&&(s=pt.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=C.css(t,e)),he(0,i,h)}}}),C.cssHooks.marginLeft=te(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(t,e){C.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+ft[n]+e]=o[n]||o[n-2]||o[0];return s}},"margin"!==t&&(C.cssHooks[t+e].set=he)}
vendor: 8,871 bytes, line 2
2),C.fn.extend({css:function(t,e){return tt(this,function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=Kt(t),s=e.length;r<s;r++)o[e[r]]=C.css(t,e[r],!1,n);return o}return void 0!==i?C.style(t,e,i):C.css(t,e)},t,e,arguments.length>1)}}),C.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(C.cssNumber[i]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,i=ue.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||!C.cssHooks[t.prop]&&null==t.elem.style[se(t.prop)]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=ue.prototype.init,C.fx.step={};var de,pe,fe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){pe&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ge):n.setTimeout(ge,C.fx.interval),C.fx.tick())}function ve(){return n.setTimeout(function(){de=void 0}),de=Date.now()}function _e(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=ft[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function ye(t,e,i){for(var n,s=(be.tweeners[e]||[]).concat(be.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function be(t,e,i){var n,s,o=0,r=be.prefilters.length,a=C.Deferred().always(function(){delete h.elem}),h=function(){if(s)return!1;for(var e=de||ve(),i=Math.max(0,l.startTime+l.duration-e),n=1-(i/l.duration||0),o=0,r=l.tweens.length;o<r;o++)l.tweens[o].run(n);return a.notifyWith(t,[l,n,i]),n<1&&r?i:(r||a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l]),!1)},l=a.promise({elem:t,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},i),originalProperties:e,originalOptions:i,startTime:de||ve(),duration:i.duration,tweens:[],createTween:function(e,i){var n=C.Tween(t,l.opts,e,i,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var i=0,n=e?l.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)l.tweens[i].run(1);return e?(a.notifyWith(t,[l,1,0]),a.resolveWith(t,[l,e])):a.rejectWith(t,[l,e]),this}}),c=l.props;for(function(t,e){var i,n,s,o,r;for(i in t)if(s=e[n=st(i)],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=C.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(c,l.opts.specialEasing);o<r;o++)if(n=be.prefilters[o].call(l,t,c,l.opts))return v(n.stop)&&(C._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return C.map(c,ye,l),v(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),C.fx.timer(C.extend(h,{elem:t,anim:l,queue:l.opts.queue})),l}C.Animation=C.extend(be,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return yt(i.elem,t,pt.exec(e),i),i}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(Y);for(var i,n=0,s=t.length;n<s;n++)i=t[n],be.tweeners[i]=be.tweeners[i]||[],be.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,h,l,c,u="width"in e||"height"in e,d=this,p={},f=t.style,m=t.nodeType&&_t(t),g=at.get(t,"fxshow");for(n in i.queue||(null==(r=C._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always(function(){d.always(function(){r.unqueued--,C.queue(t,"fx").length||r.empty.fire()})})),e)if(s=e[n],fe.test(s)){if(delete e[n],o=o||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||C.style(t,n)}if((h=!C.isEmptyObject(e))||!C.isEmptyObject(p))for(n in u&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=g&&g.display)&&(l=at.get(t,"display")),"none"===(c=C.css(t,"display"))&&(l?c=l:(wt([t],!0),l=t.style.display||l,c=C.css(t,"display"),wt([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===C.css(t,"float")&&(h||(d.done(function(){f.display=l}),null==l&&(c=f.display,l="none"===c?"":c)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),h=!1,p)h||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:l}),o&&(g.hidden=!m),m&&wt([t],!0),d.done(function(){for(n in m||wt([t]),at.remove(t,"fxshow"),p)C.style(t,n,p[n])})),h=ye(m?g[n]:0,n,d),n in g||(g[n]=h.start,m&&(h.end=h.start,h.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),C.speed=function(t,e,i){var n=t&&"object"==typeof t?C.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return C.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in C.fx.speeds?n.duration=C.fx.speeds[n.duration]:n.duration=C.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(t,e,i,n){return this.filter(_t).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=C.isEmptyObject(t),o=C.speed(e,i,n),r=function(){var e=be(this,C.extend({},t),o);(s||at.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",o=C.timers,r=at.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&me.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||C.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,i=at.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=C.timers,r=n?n.length:0;for(i.finish=!0,C.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),C.each(["toggle","show","hide"],function(t,e){var i=C.fn[e];C.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(_e(e,!0),t,n,s)}}),C.each({slideDown:_e("show"),slideUp:_e("hide"),slideToggle:_e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){C.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),C.timers=[],C.fx.tick=function(){var t,e=0,i=C.timers;for(de=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||C.fx.stop(),de=void 0},C.fx.timer=function(t){C.timers.push(t),C.fx.start()},C.fx.interval=13,C.fx.start=function(){pe||(pe=!0,ge())},C.fx.stop=function(){pe=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(t,e){return t=C.fx&&C.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,i){var s=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(s)}})},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",g.checkOn=""!==t.value,g.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",g.radioValue="t"===t.value}();var xe,we=C.expr.attrHandle;C.fn.extend({attr:function(t,e){return tt(this,C.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?C.prop(t,e,i):(1===o&&C.isXMLDoc(t)||(s=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?xe:void 0)),void 0!==i?null===i?void C.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=C.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&P(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match(Y);
vendor: 17,981 bytes, line 2
2if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),xe={set:function(t,e,i){return!1===e?C.removeAttr(t,i):t.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var i=we[e]||C.find.attr;we[e]=function(t,e,n){var s,o,r=e.toLowerCase();return n||(o=we[r],we[r]=s,s=null!=i(t,e,n)?r:null,we[r]=o),s}});var Me=/^(?:input|select|textarea|button)$/i,Se=/^(?:a|area)$/i;function Ce(t){return(t.match(Y)||[]).join(" ")}function ke(t){return t.getAttribute&&t.getAttribute("class")||""}function Pe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Y)||[]}C.fn.extend({prop:function(t,e){return tt(this,C.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,s=C.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):Me.test(t.nodeName)||Se.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,i,n,s,o,r;return v(t)?this.each(function(e){C(this).addClass(t.call(this,e,ke(this)))}):(e=Pe(t)).length?this.each(function(){if(n=ke(this),i=1===this.nodeType&&" "+Ce(n)+" "){for(o=0;o<e.length;o++)s=e[o],i.indexOf(" "+s+" ")<0&&(i+=s+" ");r=Ce(i),n!==r&&this.setAttribute("class",r)}}):this},removeClass:function(t){var e,i,n,s,o,r;return v(t)?this.each(function(e){C(this).removeClass(t.call(this,e,ke(this)))}):arguments.length?(e=Pe(t)).length?this.each(function(){if(n=ke(this),i=1===this.nodeType&&" "+Ce(n)+" "){for(o=0;o<e.length;o++)for(s=e[o];i.indexOf(" "+s+" ")>-1;)i=i.replace(" "+s+" "," ");r=Ce(i),n!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(t,e){var i,n,s,o,r=typeof t,a="string"===r||Array.isArray(t);return v(t)?this.each(function(i){C(this).toggleClass(t.call(this,i,ke(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(i=Pe(t),this.each(function(){if(a)for(o=C(this),s=0;s<i.length;s++)n=i[s],o.hasClass(n)?o.removeClass(n):o.addClass(n);else void 0!==t&&"boolean"!==r||((n=ke(this))&&at.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+Ce(ke(i))+" ").indexOf(e)>-1)return!0;return!1}});var Te=/\r/g;C.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=v(t),this.each(function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,C(this).val()):t)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=C.map(s,function(t){return null==t?"":t+""})),(e=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))})):s?(e=C.valHooks[s.type]||C.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(Te,""):null==i?"":i:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:Ce(C.text(t))}},select:{get:function(t){var e,i,n,s=t.options,o=t.selectedIndex,r="select-one"===t.type,a=r?null:[],h=r?o+1:s.length;for(n=o<0?h:r?o:0;n<h;n++)if(((i=s[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!P(i.parentNode,"optgroup"))){if(e=C(i).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var i,n,s=t.options,o=C.makeArray(e),r=s.length;r--;)((n=s[r]).selected=C.inArray(C.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=C.inArray(C(t).val(),e)>-1}},g.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=n.location,Le={guid:Date.now()},Ae=/\?/;C.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||C.error("Invalid XML: "+(i?C.map(i.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Oe=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,i,s){var o,r,a,h,l,c,u,d,f=[i||y],m=p.call(t,"type")?t.type:t,g=p.call(t,"namespace")?t.namespace.split("."):[];if(r=d=a=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!Oe.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[C.expando]?t:new C.Event(m,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:C.makeArray(e,[t]),u=C.event.special[m]||{},s||!u.trigger||!1!==u.trigger.apply(i,e))){if(!s&&!u.noBubble&&!_(i)){for(h=u.delegateType||m,Oe.test(h+m)||(r=r.parentNode);r;r=r.parentNode)f.push(r),a=r;a===(i.ownerDocument||y)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(r=f[o++])&&!t.isPropagationStopped();)d=r,t.type=o>1?h:u.bindType||m,(c=(at.get(r,"events")||Object.create(null))[t.type]&&at.get(r,"handle"))&&c.apply(r,e),(c=l&&r[l])&&c.apply&&ot(r)&&(t.result=c.apply(r,e),!1===t.result&&t.preventDefault());return t.type=m,s||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(f.pop(),e)||!ot(i)||l&&v(i[m])&&!_(i)&&((a=i[l])&&(i[l]=null),C.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,Ie),i[m](),t.isPropagationStopped()&&d.removeEventListener(m,Ie),C.event.triggered=void 0,a&&(i[l]=a)),t.result}},simulate:function(t,e,i){var n=C.extend(new C.Event,i,{type:t,isSimulated:!0});C.event.trigger(n,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return C.event.trigger(t,e,i,!0)}});var De=/\[\]$/,Ne=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;function Re(t,e,i,n){var s;if(Array.isArray(e))C.each(e,function(e,s){i||De.test(t)?n(t,s):Re(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)});else if(i||"object"!==w(e))n(t,e);else for(s in e)Re(t+"["+s+"]",e[s],i,n)}C.param=function(t,e){var i,n=[],s=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){s(this.name,this.value)});else for(i in t)Re(i,t[i],e,s);return n.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&je.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Ct.test(t))}).map(function(t,e){var i=C(this).val();return null==i?null:Array.isArray(i)?C.map(i,function(t){return{name:e.name,value:t.replace(Ne,"\r\n")}}):{name:e.name,value:i.replace(Ne,"\r\n")}}).get()}});var Ge=/%20/g,Be=/#.*$/,He=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,qe=/^\/\//,Ue={},Ze={},Ye="*/".concat("*"),Ve=y.createElement("a");function Xe(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(Y)||[];if(v(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Ke(t,e,i,n){var s={},o=t===Ze;function r(a){var h;return s[a]=!0,C.each(t[a]||[],function(t,a){var l=a(e,i,n);return"string"!=typeof l||o||s[l]?o?!(h=l):void 0:(e.dataTypes.unshift(l),r(l),!1)}),h}return r(e.dataTypes[0])||!s["*"]&&r("*")}function $e(t,e){var i,n,s=C.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&C.extend(!0,t,n),t}Ve.href=Ee.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?$e($e(t,C.ajaxSettings),e):$e(C.ajaxSettings,t)},ajaxPrefilter:Xe(Ue),ajaxTransport:Xe(Ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,s,o,r,a,h,l,c,u,d,p=C.ajaxSetup({},e),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?C(f):C.event,g=C.Deferred(),v=C.Callbacks("once memory"),_=p.statusCode||{},b={},x={},w="canceled",M={readyState:0,getResponseHeader:function(t){var e;if(l){if(!r)for(r={};e=Fe.exec(o);)r[e[1].toLowerCase()+" "]=(r[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=r[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)M.always(t[M.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||w;return i&&i.abort(e),S(0,e),this}};if(g.promise(M),p.url=((t||p.url||Ee.href)+"").replace(qe,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(Y)||[""],null==p.crossDomain){h=y.createElement("a");try{h.href=p.url,h.href=h.href,p.crossDomain=Ve.protocol+"//"+Ve.host!=h.protocol+"//"+h.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Ke(Ue,p,e,M),l)return M;for(u in(c=C.event&&p.global)&&0===C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),s=p.url.replace(Be,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ge,"+")):(d=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Ae.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(He,"$1"),d=(Ae.test(s)?"&":"?")+"_="+Le.guid+++d),p.url=s+d),p.ifModified&&(C.lastModified[s]&&M.setRequestHeader("If-Modified-Since",C.lastModified[s]),C.etag[s]&&M.setRequestHeader("If-None-Match",C.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&M.setRequestHeader("Content-Type",p.contentType),M.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ye+"; q=0.01":""):p.accepts["*"]),p.headers)M.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,M,p)||l))return M.abort();if(w="abort",v.add(p.complete),M.done(p.success),M.fail(p.error),i=Ke(Ze,p,e,M)){if(M.readyState=1,c&&m.trigger("ajaxSend",[M,p]),l)return M;p.async&&p.timeout>0&&(a=n.setTimeout(function(){M.abort("timeout")},p.timeout));try{l=!1,i.send(b,S)}catch(t){if(l)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,r,h){var u,d,y,b,x,w=e;l||(l=!0,a&&n.clearTimeout(a),i=void 0,o=h||"",M.readyState=t>0?4:0,u=t>=200&&t<300||304===t,r&&(b=function(t,e,i){for(var n,s,o,r,a=t.contents,h=t.dataTypes;"*"===h[0];)h.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){h.unshift(s);break}if(h[0]in i)o=h[0];else{for(s in i){if(!h[0]||t.converters[s+" "+h[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==h[0]&&h.unshift(o),i[o]}(p,M,r)),!u&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(t,e,i,n){var s,o,r,a,h,l={},c=t.dataTypes.slice();if(c[1])for(r in t.converters)l[r.toLowerCase()]=t.converters[r];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!h&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),h=o,o=c.shift())if("*"===o)o=h;else if("*"!==h&&h!==o){if(!(r=l[h+" "+o]||l["* "+o]))for(s in l)if((a=s.split(" "))[1]===o&&(r=l[h+" "+a[0]]||l["* "+a[0]])){!0===r?r=l[s]:!0!==l[s]&&(o=a[0],c.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+h+" to "+o}}}return{state:"success",data:e}}(p,b,M,u),u?(p.ifModified&&((x=M.getResponseHeader("Last-Modified"))&&(C.lastModified[s]=x),(x=M.getResponseHeader("etag"))&&(C.etag[s]=x)),204===t||"HEAD"===p.type?w="nocontent":304===t?w="notmodified":(w=b.state,d=b.data,u=!(y=b.error))):(y=w,!t&&w||(w="error",t<0&&(t=0))),M.status=t,M.statusText=(e||w)+"",u?g.resolveWith(f,[d,w,M]):g.rejectWith(f,[M,w,y]),M.statusCode(_),_=void 0,c&&m.trigger(u?"ajaxSuccess":"ajaxError",[M,p,u?d:y]),v.fireWith(f,[M,w]),c&&(m.trigger("ajaxComplete",[M,p]),--C.active||C.event.trigger("ajaxStop")))}return M},getJSON:function(t,e,i){return C.get(t,e,i,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,e){C[e]=function(t,i,n,s){return v(i)&&(s=s||n,n=i,i=void 0),C.ajax(C.extend({url:t,type:e,dataType:s,data:i,success:n},C.isPlainObject(t)&&t))}}),C.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),C._evalUrl=function(t,e,i){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){C.globalEval(t,e,i)}})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){C(this).wrapInner(t.call(this,e))}):this.each(function(){var e=C(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(i){C(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Qe=C.ajaxSettings.xhr();g.cors=!!Qe&&"withCredentials"in Qe,g.ajax=Qe=!!Qe,C.ajaxTransport(function(t){var e,i;if(g.cors||Qe&&!t.crossDomain)return{send:function(s,o){var r,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)a[r]=t.xhrFields[r];for(r in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){e&&i()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,s){e=C("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){i&&i()}}});var ti,ei=[],ii=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ei.pop()||C.expando+"_"+Le.guid++;return this[t]=!0,t}}),C.ajaxPrefilter("json jsonp",function(t,e,i){var s,o,r,a=!1!==t.jsonp&&(ii.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ii,"$1"+s):!1!==t.jsonp&&(t.url+=(Ae.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return r||C.error(s+" was not called"),r[0]},t.dataTypes[0]="json",o=n[s],n[s]=function(){r=arguments},i.always(function(){void 0===o?C(n).removeProp(s):n[s]=o,t[s]&&(t.jsonpCallback=e.jsonpCallback,ei.push(s)),r&&v(o)&&o(r[0]),r=o=void 0}),"script"}),g.createHTMLDocument=((ti=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
2",2===ti.childNodes.length),C.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(g.createHTMLDocument?((n=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(n)):e=y),o=!i&&[],(s=B.exec(t))?[e.createElement(s[1])]:(s=Ot([t],e,o),o&&o.length&&C(o).remove(),C.merge([],s.childNodes)));var n,s,o},C.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return a>-1&&(n=Ce(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&C.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?C("<div>").append(C.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(t,e,i){var n,s,o,r,a,h,l=C.css(t,"position"),c=C(t),u={};"static"===l&&(t.style.position="relative"),a=c.offset(),o=C.css(t,"top"),h=C.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+h).indexOf("auto")>-1?(r=(n=c.position()).top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(h)||0),v(e)&&(e=e.call(t,i,C.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):c.css(u)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===C.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===C.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=C(t).offset()).top+=C.css(t,"borderTopWidth",!0),s.left+=C.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-C.css(n,"marginTop",!0),left:e.left-s.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===C.css(t,"position");)t=t.offsetParent;return t||mt})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;C.fn[t]=function(n){return tt(this,function(t,n,s){var o;if(_(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===s)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):t[n]=s},t,n,arguments.length)}}),C.each(["top","left"],function(t,e){C.cssHooks[e]=te(g.pixelPosition,function(t,i){if(i)return i=Qt(t,e),Vt.test(i)?C(t).position()[e]+"px":i})}),C.each({Height:"height",Width:"width"},function(t,e){C.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){C.fn[n]=function(s,o){var r=arguments.length&&(i||"boolean"!=typeof s),a=i||(!0===s||!0===o?"margin":"border");return tt(this,function(e,i,s){var o;return _(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===s?C.css(e,i,a):C.style(e,i,s,a)},e,r?s:void 0,r)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){C.fn[e]=function(t){return this.on(e,t)}}),C.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){C.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}});var ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;C.proxy=function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=a.call(arguments,2),s=function(){return t.apply(e||this,n.concat(a.call(arguments)))},s.guid=t.guid=t.guid||C.guid++,s},C.holdReady=function(t){t?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=P,C.isFunction=v,C.isWindow=_,C.camel
2Case=st,C.type=w,C.now=Date.now,C.isNumeric=function(t){var e=C.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},C.trim=function(t){return null==t?"":(t+"").replace(ni,"$1")},void 0===(i=function(){return C}.apply(e,[]))||(t.exports=i);var si=n.jQuery,oi=n.$;return C.noConflict=function(t){return n.$===C&&(n.$=oi),t&&n.jQuery===C&&(n.jQuery=si),C},void 0===s&&(n.jQuery=n.$=C),C})},9389:function(t,e){!function(t){"use strict";var e=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var e=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,e?this._withAnimation:this._noAnimation),this._markerCluster=e?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(t){if(t instanceof L.LayerGroup)return this.addLayers([t]);if(!t.getLatLng)return this._nonPointGroup.addLayer(t),this.fire("layeradd",{layer:t}),this;if(!this._map)return this._needsClustering.push(t),this.fire("layeradd",{layer:t}),this;if(this.hasLayer(t))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(t,this._maxZoom),this.fire("layeradd",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var e=t,i=this._zoom;if(t.__parent)for(;e.__parent._zoom>=i;)e=e.__parent;return this._currentShownBounds.contains(e.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(t,e):this._animationAddLayerNonAnimated(t,e)),this},removeLayer:function(t){return t instanceof L.LayerGroup?this.removeLayers([t]):t.getLatLng?this._map?t.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(t)),this._removeLayer(t,!0),this.fire("layerremove",{layer:t}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),t.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(t)&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)&&this._needsRemoving.push({layer:t,latlng:t._latlng}),this.fire("layerremove",{layer:t}),this):(this._nonPointGroup.removeLayer(t),this.fire("layerremove",{layer:t}),this)},addLayers:function(t,e){if(!L.Util.isArray(t))return this.addLayer(t);var i,n=this._featureGroup,s=this._nonPointGroup,o=this.options.chunkedLoading,r=this.options.chunkInterval,a=this.options.chunkProgress,h=t.length,l=0,c=!0;if(this._map){var u=(new Date).getTime(),d=L.bind(function(){var p=(new Date).getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();l<h&&!(o&&l%200==0&&(new Date).getTime()-p>r);l++)if((i=t[l])instanceof L.LayerGroup)c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(i,t),h=t.length;else if(i.getLatLng){if(!this.hasLayer(i)&&(this._addLayer(i,this._maxZoom),e||this.fire("layeradd",{layer:i}),i.__parent&&2===i.__parent.getChildCount())){var f=i.__parent.getAllChildMarkers(),m=f[0]===i?f[1]:f[0];n.removeLayer(m)}}else s.addLayer(i),e||this.fire("layeradd",{layer:i});a&&a(l,h,(new Date).getTime()-u),l===h?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(d,this.options.chunkDelay)},this);d()}else for(var p=this._needsClustering;l<h;
vendor: 27,371 bytes, line 2
2l++)(i=t[l])instanceof L.LayerGroup?(c&&(t=t.slice(),c=!1),this._extractNonGroupLayers(i,t),h=t.length):i.getLatLng?this.hasLayer(i)||p.push(i):s.addLayer(i);return this},removeLayers:function(t){var e,i,n=t.length,s=this._featureGroup,o=this._nonPointGroup,r=!0;if(!this._map){for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(i,t),n=t.length):(this._arraySplice(this._needsClustering,i),o.removeLayer(i),this.hasLayer(i)&&this._needsRemoving.push({layer:i,latlng:i._latlng}),this.fire("layerremove",{layer:i}));return this}if(this._unspiderfy){this._unspiderfy();var a=t.slice(),h=n;for(e=0;e<h;e++)(i=a[e])instanceof L.LayerGroup?(this._extractNonGroupLayers(i,a),h=a.length):this._unspiderfyLayer(i)}for(e=0;e<n;e++)(i=t[e])instanceof L.LayerGroup?(r&&(t=t.slice(),r=!1),this._extractNonGroupLayers(i,t),n=t.length):i.__parent?(this._removeLayer(i,!0,!0),this.fire("layerremove",{layer:i}),s.hasLayer(i)&&(s.removeLayer(i),i.clusterShow&&i.clusterShow())):(o.removeLayer(i),this.fire("layerremove",{layer:i}));return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(t){t.off(this._childMarkerEventHandlers,this),delete t.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var t=new L.LatLngBounds;this._topClusterLevel&&t.extend(this._topClusterLevel._bounds);for(var e=this._needsClustering.length-1;e>=0;e--)t.extend(this._needsClustering[e].getLatLng());return t.extend(this._nonPointGroup.getBounds()),t},eachLayer:function(t,e){var i,n,s,o=this._needsClustering.slice(),r=this._needsRemoving;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(o),n=o.length-1;n>=0;n--){for(i=!0,s=r.length-1;s>=0;s--)if(r[s].layer===o[n]){i=!1;break}i&&t.call(e,o[n])}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];return this.eachLayer(function(e){t.push(e)}),t},getLayer:function(t){var e=null;return t=parseInt(t,10),this.eachLayer(function(i){L.stamp(i)===t&&(e=i)}),e},hasLayer:function(t){if(!t)return!1;var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--)if(i[e]===t)return!0;for(e=(i=this._needsRemoving).length-1;e>=0;e--)if(i[e].layer===t)return!1;return!(!t.__parent||t.__parent._group!==this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){var i=this._map;"function"!=typeof e&&(e=function(){});var n=function(){!i.hasLayer(t)&&!i.hasLayer(t.__parent)||this._inZoomAnimation||(this._map.off("moveend",n,this),this.off("animationend",n,this),i.hasLayer(t)?e():t.__parent._icon&&(this.once("spiderfied",e,this),t.__parent.spiderfy()))};t._icon&&this._map.getBounds().contains(t.getLatLng())?e():t.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",n,this),this._map.panTo(t.getLatLng())):(this._map.on("moveend",n,this),this.on("animationend",n,this),t.__parent.zoomToBounds())},onAdd:function(t){var e,i,n;if(this._map=t,!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(t),this._nonPointGroup.addTo(t),this._gridClusters||this._generateInitialClusters(),this._maxLat=t.options.crs.projection.MAX_LATITUDE,e=0,i=this._needsRemoving.length;e<i;e++)(n=this._needsRemoving[e]).newlatlng=n.layer._latlng,n.layer._latlng=n.latlng;for(e=0,i=this._needsRemoving.length;e<i;e++)n=this._needsRemoving[e],this._removeLayer(n.layer,!0),n.layer._latlng=n.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),i=this._needsClustering,this._needsClustering=[],this.addLayers(i,!0)},onRemove:function(t){t.off("zoomend",this._zoomEnd,this),t.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(t){for(var e=t;e&&!e._icon;)e=e.__parent;return e||null},_arraySplice:function(t,e){for(var i=t.length-1;i>=0;i--)if(t[i]===e)return t.splice(i,1),!0},_removeFromGridUnclustered:function(t,e){for(var i=this._map,n=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());e>=s&&n[e].removeObject(t,i.project(t.getLatLng(),e));e--);},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng),e&&t.target.openPopup()}},_moveChild:function(t,e,i){t._latlng=e,this.removeLayer(t),t._latlng=i,this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart,e&&this._moveChild(t.target,e,t.target._latlng)},_removeLayer:function(t,e,i){var n=this._gridClusters,s=this._gridUnclustered,o=this._featureGroup,r=this._map,a=Math.floor(this._map.getMinZoom());e&&this._removeFromGridUnclustered(t,this._maxZoom);var h,l=t.__parent,c=l._markers;for(this._arraySplice(c,t);l&&(l._childCount--,l._boundsNeedUpdate=!0,!(l._zoom<a));)e&&l._childCount<=1?(h=l._markers[0]===t?l._markers[1]:l._markers[0],n[l._zoom].removeObject(l,r.project(l._cLatLng,l._zoom)),s[l._zoom].addObject(h,r.project(h.getLatLng(),l._zoom)),this._arraySplice(l.__parent._childClusters,l),l.__parent._markers.push(h),h.__parent=l.__parent,l._icon&&(o.removeLayer(l),i||o.addLayer(h))):l._iconNeedsUpdate=!0,l=l.__parent;delete t.__parent},_isOrIsParent:function(t,e){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},fire:function(t,e,i){if(e&&e.layer instanceof L.MarkerCluster){if(e.originalEvent&&this._isOrIsParent(e.layer._icon,e.originalEvent.relatedTarget))return;t="cluster"+t}L.FeatureGroup.prototype.fire.call(this,t,e,i)},listens:function(t,e){return L.FeatureGroup.prototype.listens.call(this,t,e)||L.FeatureGroup.prototype.listens.call(this,"cluster"+t,e)},_defaultIconCreateFunction:function(t){var e=t.getChildCount(),i=" marker-cluster-";return i+=e<10?"small":e<100?"medium":"large",new L.DivIcon({html:"<div><span>"+e+"</span></div>",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,s=this.options.spiderfyOnEveryZoom;(e||n||s)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),t.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;if("clusterkeypress"!==t.type||!t.originalEvent||13===t.originalEvent.keyCode){for(;1===i._childClusters.length;)i=i._childClusters[0];i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom?e.spiderfy():this.options.zoomToBoundsOnClick&&e.zoomToBounds(),this.options.spiderfyOnEveryZoom&&e.spiderfy(),t.originalEvent&&13===t.originalEvent.keyCode&&this._map._container.focus()}},_showCoverage:function(t){var e=this._map;this._inZoomAnimation||(this._shownPolygon&&e.removeLayer(this._shownPolygon),t.layer.getChildCount()>2&&t.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions),e.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this.options.spiderfyOnEveryZoom,s=this._map;(t||i||n)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),e&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),s.off("zoomend",this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t),this._currentShownBounds=t}},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;"function"!=typeof i&&(n=function(){return i}),null!==this.options.disableClusteringAtZoom&&(t=this.options.disableClusteringAtZoom-1),this._maxZoom=t,this._gridClusters={},this._gridUnclustered={};for(var s=t;s>=e;s--)this._gridClusters[s]=new L.DistanceGrid(n(s)),this._gridUnclustered[s]=new L.DistanceGrid(n(s));this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i,n,s=this._gridClusters,o=this._gridUnclustered,r=Math.floor(this._map.getMinZoom());for(this.options.singleMarkerMode&&this._overrideMarkerIcon(t),t.on(this._childMarkerEventHandlers,this);e>=r;e--){i=this._map.project(t.getLatLng(),e);var a=s[e].getNearObject(i);if(a)return a._addChild(t),void(t.__parent=a);if(a=o[e].getNearObject(i)){var h=a.__parent;h&&this._removeLayer(a,!1);var l=new this._markerCluster(this,e,a,t);s[e].addObject(l,this._map.project(l._cLatLng,e)),a.__parent=l,t.__parent=l;var c=l;for(n=e-1;n>h._zoom;n--)c=new this._markerCluster(this,n,c),s[n].addObject(c,this._map.project(a.getLatLng(),n));return h._addChild(c),void this._removeFromGridUnclustered(a,e)}o[e].addObject(t,i)}this._topClusterLevel._addChild(t),t.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(t){t instanceof L.MarkerCluster&&t._iconNeedsUpdate&&t._updateIcon()})},_enqueue:function(t){this._queue.push(t),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var t=0;t<this._queue.length;t++)this._queue[t].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var t=Math.round(this._map._zoom);this._processQueue(),this._zoom<t&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,t)):this._zoom>t?(this._animationStart(),this._animationZoomOut(this._zoom,t)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(t){var e=this._maxLat;return void 0!==e&&(t.getNorth()>=e&&(t._northEast.lat=1/0),t.getSouth()<=-e&&(t._southWest.lat=-1/0)),t},_animationAddLayerNonAnimated:function(t,e){if(e===t)this._featureGroup.addLayer(t);else if(2===e._childCount){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]),this._featureGroup.removeLayer(i[1])}else e._updateIcon()},_extractNonGroupLayers:function(t,e){var i,n=t.getLayers(),s=0;for(e=e||[];s<n.length;s++)(i=n[s])instanceof L.LayerGroup?this._extractNonGroupLayers(i,e):e.push(i);return e},_overrideMarkerIcon:function(t){return t.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[t]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(t,e){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(t,e){this._animationAddLayerNonAnimated(t,e)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(t,e){var i,n=this._getExpandedVisibleBounds(),s=this._featureGroup,o=Math.floor(this._map.getMinZoom());this._ignoreMove=!0,this._topClusterLevel._recursively(n,t,o,function(o){var r,a=o._latlng,h=o._markers;for(n.contains(a)||(a=null),o._isSingleParent()&&t+1===e?(s.removeLayer(o),o._recursivelyAddChildrenToMap(null,e,n)):(o.clusterHide(),o._recursivelyAddChildrenToMap(a,e,n)),i=h.length-1;i>=0;i--)r=h[i],n.contains(r._latlng)||s.removeLayer(r)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,e),s.eachLayer(function(t){t instanceof L.MarkerCluster||!t._icon||t.clusterShow()}),this._topClusterLevel._recursively(n,t,e,function(t){t._recursivelyRestoreChildPositions(e)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(n,t,o,function(t){s.removeLayer(t),t.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t),e!==t&&(e._childCount>2?(e._updateIcon(),this._forceLayout(),this._animationStart(),t._setPos(this._map.latLngToLayerPoint(e.getLatLng())),t.clusterHide(),this._enqueue(function(){n.removeLayer(t),t.clusterShow(),i._animationEnd()})):(this._forceLayout(),i._animationStart(),i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,s,e+1,i);var o=this;this._forceLayout(),t._recursivelyBecomeVisible(n,i),this._enqueue(function(){if(1===t._childCount){var r=t._markers[0];this._ignoreMove=!0,r.setLatLng(r.getLatLng()),this._ignoreMove=!1,r.clusterShow&&r.clusterShow()}else t._recursively(n,i,s,function(t){t._recursivelyRemoveChildrenFromMap(n,s,e+1)});o._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}}),L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane}),this._group=t,this._zoom=e,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,i&&this._addChild(i),n&&this._addChild(n)},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i].getAllChildMarkers(t,e);for(var n=this._markers.length-1;n>=0;n--)e&&this._markers[n].__dragStart||t.push(this._markers[n]);return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){for(var e,i=this._childClusters.slice(),n=this._group._map,s=n.getBoundsZoom(this._bounds),o=this._zoom+1,r=n.getZoom();i.length>0&&s>o;){o++;var a=[];for(e=0;e<i.length;e++)a=a.concat(i[e]._childClusters);i=a}s>o?this._group._map.setView(this._latlng,o):s<=r?this._group._map.setView(this._latlng,r+1):this._group._map.fitBounds(this._bounds,t)},getBounds:function(){var t=new L.LatLngBounds;return t.extend(this._bounds),t},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(t),t instanceof L.MarkerCluster?(e||(this._childClusters.push(t),t.__parent=this),this._childCount+=t._childCount):(e||this._markers.push(t),this._childCount++),this.__parent&&this.__parent._addChild(t,!0)},_setClusterCenter:function(t){this._cLatLng||(this._cLatLng=t._cLatLng||t._latlng)},_resetBounds:function(){var t=this._bounds;t._southWest&&(t._southWest.lat=1/0,t._southWest.lng=1/0),t._northEast&&(t._northEast.lat=-1/0,t._northEast.lng=-1/0)},_recalculateBounds:function(){var t,e,i,n,s=this._markers,o=this._childClusters,r=0,a=0,h=this._childCount;if(0!==h){for(this._resetBounds(),t=0;t<s.length;t++)i=s[t]._latlng,this._bounds.extend(i),r+=i.lat,a+=i.lng;for(t=0;t<o.length;t++)(e=o[t])._boundsNeedUpdate&&e._recalculateBounds(),this._bounds.extend(e._bounds),i=e._wLatLng,n=e._childCount,r+=i.lat*n,a+=i.lng*n;this._latlng=this._wLatLng=new L.LatLng(r/h,a/h),this._boundsNeedUpdate=!1}},_addToMap:function(t){t&&(this._backupLatlng=this._latlng,this.setLatLng(t)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(t,e,i){this._recursively(t,this._group._map.getMinZoom(),i-1,function(t){var i,n,s=t._markers;for(i=s.length-1;i>=0;i--)(n=s[i])._icon&&(n._setPos(e),n.clusterHide())},function(t){var i,n,s=t._childClusters;for(i=s.length-1;i>=0;i--)(n=s[i])._icon&&(n._setPos(e),n.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,function(s){s._recursivelyAnimateChildrenIn(t,s._group._map.latLngToLayerPoint(s.getLatLng()).round(),i),s._isSingleParent()&&i-1===n?(s.clusterShow(),s._recursivelyRemoveChildrenFromMap(t,e,i)):s.clusterHide(),s._addToMap()})},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,function(t){t.clusterShow()})},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,function(n){if(e!==n._zoom)for(var s=n._markers.length-1;s>=0;s--){var o=n._markers[s];i.contains(o._latlng)&&(t&&(o._backupLatlng=o.getLatLng(),o.setLatLng(t),o.clusterHide&&o.clusterHide()),n._group._featureGroup.addLayer(o))}},function(e){e._addToMap(t)})},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];i._backupLatlng&&(i.setLatLng(i._backupLatlng),delete i._backupLatlng)}if(t-1===this._zoom)for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n]._restorePosition();else for(var s=this._childClusters.length-1;s>=0;s--)this._childClusters[s]._recursivelyRestoreChildPositions(t)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var s,o;this._recursively(t,e-1,i-1,function(t){for(o=t._markers.length-1;o>=0;o--)s=t._markers[o],n&&n.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())},function(t){for(o=t._childClusters.length-1;o>=0;o--)s=t._childClusters[o],n&&n.contains(s._latlng)||(t._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())})},_recursively:function(t,e,i,n,s){var o,r,a=this._childClusters,h=this._zoom;if(e<=h&&(n&&n(this),s&&h===i&&s(this)),h<e||h<i)for(o=a.length-1;o>=0;o--)(r=a[o])._boundsNeedUpdate&&r._recalculateBounds(),t.intersects(r._bounds)&&r._recursively(t,e,i,n,s)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;return this.setOpacity(0),this.options.opacity=t,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(t){this._cellSize=t,this._sqCellSize=t*t,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),s=this._grid,o=s[n]=s[n]||{},r=o[i]=o[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e,r.push(t)},updateObject:function(t,e){this.removeObject(t),this.addObject(t,e)},removeObject:function(t,e){var i,n,s=this._getCoord(e.x),o=this._getCoord(e.y),r=this._grid,a=r[o]=r[o]||{},h=a[s]=a[s]||[];for(delete this._objectPoint[L.Util.stamp(t)],i=0,n=h.length;i<n;i++)if(h[i]===t)return h.splice(i,1),1===n&&delete a[s],!0},eachObject:function(t,e){var i,n,s,o,r,a,h=this._grid;for(i in h)for(n in r=h[i])for(s=0,o=(a=r[n]).length;s<o;s++)t.call(e,a[s])&&(s--,o--)},getNearObject:function(t){var e,i,n,s,o,r,a,h,l=this._getCoord(t.x),c=this._getCoord(t.y),u=this._objectPoint,d=this._sqCellSize,p=null;for(e=c-1;e<=c+1;e++)if(s=this._grid[e])for(i=l-1;i<=l+1;i++)if(o=s[i])for(n=0,r=o.length;n<r;n++)a=o[n],((h=this._sqDist(u[L.Util.stamp(a)],t))<d||h<=d&&null===p)&&(d=h,p=a);return p},_getCoord:function(t){var e=Math.floor(t/this._cellSize);return isFinite(e)?e:t},_sqDist:function(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}},L.QuickHull={getDistant:function(t,e){var i=e[1].lat-e[0].lat;return(e[0].lng-e[1].lng)*(t.lat-e[0].lat)+i*(t.lng-e[0].lng)},findMostDistantPointFromBaseLine:function(t,e){var i,n,s,o=0,r=null,a=[];for(i=e.length-1;i>=0;i--)n=e[i],(s=this.getDistant(n,t))>0&&(a.push(n),s>o&&(o=s,r=n));return{maxPoint:r,newPoints:a}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);return n.maxPoint?i=(i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints))).concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints)):[t[0]]},getConvexHull:function(t){var e,i=!1,n=!1,s=!1,o=!1,r=null,a=null,h=null,l=null,c=null,u=null;for(e=t.length-1;e>=0;e--){var d=t[e];(!1===i||d.lat>i)&&(r=d,i=d.lat),(!1===n||d.lat<n)&&(a=d,n=d.lat),(!1===s||d.lng>s)&&(h=d,s=d.lng),(!1===o||d.lng<o)&&(l=d,o=d.lng)}return n!==i?(u=a,c=r):(u=l,c=h),[].concat(this.buildConvexHull([u,c],t),this.buildConvexHull([c,u],t))}},L.MarkerCluster.include({getConvexHull:function(){var t,e,i=this.getAllChildMarkers(),n=[];for(e=i.length-1;e>=0;e--)t=i[e].getLatLng(),n.push(t);return L.QuickHull.getConvexHull(n)}}),L.MarkerCluster.include({_2PI:2*Math.PI,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied!==this&&!this._group._inZoomAnimation){var t,e=this.getAllChildMarkers(null,!0),i=this._group._map.latLngToLayerPoint(this._latlng);this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?t=this._group.options.spiderfyShapePositions(e.length,i):e.length>=this._circleSpiralSwitchover?t=this._generatePointsSpiral(e.length,i):(i.y+=10,t=this._generatePointsCircle(e.length,i)),this._animationSpiderfy(e,t)}},unspiderfy:function(t){this._group._inZoomAnimation||(this._animationUnspiderfy(t),this._group._spiderfied=null)},_generatePointsCircle:function(t,e){var i,n,s=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t)/this._2PI,o=this._2PI/t,r=[];for(s=Math.max(s,35),r.length=t,i=0;i<t;i++)n=this._circleStartAngle+i*o,r[i]=new L.Point(e.x+s*Math.cos(n),e.y+s*Math.sin(n))._round();return r},_generatePointsSpiral:function(t,e){var i,n=this._group.options.spiderfyDistanceMultiplier,s=n*this._spiralLengthStart,o=n*this._spiralFootSeparation,r=n*this._spiralLengthFactor*this._2PI,a=0,h=[];for(h.length=t,i=t;i>=0;i--)i<t&&(h[i]=new L.Point(e.x+s*Math.cos(a),e.y+s*Math.sin(a))._round()),s+=r/(a+=o/s+5e-4*i);return h},_noanimationUnspiderfy:function(){var t,e,i=this._group,n=i._map,s=i._featureGroup,o=this.getAllChildMarkers(null,!0);for(i._ignoreMove=!0,this.setOpacity(1),e=o.length-1;e>=0;e--)t=o[e],s.removeLayer(t),t._preSpiderfyLatlng&&(t.setLatLng(t._preSpiderfyLatlng),delete t._preSpiderfyLatlng),t.setZIndexOffset&&t.setZIndexOffset(0),t._spiderLeg&&(n.removeLayer(t._spiderLeg),delete t._spiderLeg);i.fire("unspiderfied",{cluster:this,markers:o}),i._ignoreMove=!1,i._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i,n,s,o,r=this._group,a=r._map,h=r._featureGroup,l=this._group.options.spiderLegPolylineOptions;for(r._ignoreMove=!0,i=0;i<t.length;i++)o=a.layerPointToLatLng(e[i]),n=t[i],s=new L.Polyline([this._latlng,o],l),a.addLayer(s),n._spiderLeg=s,n._preSpiderfyLatlng=n._latlng,n.setLatLng(o),n.setZIndexOffset&&n.setZIndexOffset(1e6),h.addLayer(n);this.setOpacity(.3),r._ignoreMove=!1,r.fire("spiderfied",{cluster:this,markers:t})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(t,e){var i,n,s,o,r,a,h=this,l=this._group,c=l._map,u=l._featureGroup,d=this._latlng,p=c.latLngToLayerPoint(d),f=L.Path.SVG,m=L.extend({},this._group.options.spiderLegPolylineOptions),g=m.opacity;for(void 0===g&&(g=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),f?(m.opacity=0,m.className=(m.className||"")+" leaflet-cluster-spider-leg"):m.opacity=g,l._ignoreMove=!0,i=0;i<t.length;i++)n=t[i],a=c.layerPointToLatLng(e[i]),s=new L.Polyline([d,a],m),c.addLayer(s),n._spiderLeg=s,f&&(r=(o=s._path).getTotalLength()+.1,o.style.strokeDasharray=r,o.style.strokeDashoffset=r),n.setZIndexOffset&&n.setZIndexOffset(1e6),n.clusterHide&&n.clusterHide(),u.addLayer(n),n._setPos&&n._setPos(p);for(l._forceLayout(),l._animationStart(),i=t.length-1;i>=0;i--)a=c.layerPointToLatLng(e[i]),(n=t[i])._preSpiderfyLatlng=n._latlng,n.setLatLng(a),n.clusterShow&&n.clusterShow(),f&&((o=(s=n._spiderLeg)._path).style.strokeDashoffset=0,s.setStyle({opacity:g}));this.setOpacity(.3),l._ignoreMove=!1,setTimeout(function(){l._animationEnd(),l.fire("spiderfied",{cluster:h,markers:t})},200)},_animationUnspiderfy:function(t){var e,i,n,s,o,r,a=this,h=this._group,l=h._map,c=h._featureGroup,u=t?l._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):l.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),p=L.Path.SVG;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),i=d.length-1;i>=0;i--)(e=d[i])._preSpiderfyLatlng&&(e.closePopup(),e.setLatLng(e._preSpiderfyLatlng),delete e._preSpiderfyLatlng,r=!0,e._setPos&&(e._setPos(u),r=!1),e.clusterHide&&(e.clusterHide(),r=!1),r&&c.removeLayer(e),p&&(o=(s=(n=e._spiderLeg)._path).getTotalLength()+.1,s.style.strokeDashoffset=o,n.setStyle({opacity:0}
2)));h._ignoreMove=!1,setTimeout(function(){var t=0;for(i=d.length-1;i>=0;i--)(e=d[i])._spiderLeg&&t++;for(i=d.length-1;i>=0;i--)(e=d[i])._spiderLeg&&(e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),t>1&&c.removeLayer(e),l.removeLayer(e._spiderLeg),delete e._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:d})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(t))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){this._spiderfied&&this._spiderfied.unspiderfy(t)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(t){t._spiderLeg&&(this._featureGroup.removeLayer(t),t.clusterShow&&t.clusterShow(),t.setZIndexOffset&&t.setZIndexOffset(0),this._map.removeLayer(t._spiderLeg),delete t._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(t){return t?t instanceof L.MarkerClusterGroup?t=t._topClusterLevel.getAllChildMarkers():t instanceof L.LayerGroup?t=t._layers:t instanceof L.MarkerCluster?t=t.getAllChildMarkers():t instanceof L.Marker&&(t=[t]):t=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(t),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(t),this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t)for(i=t[e].__parent;i;)i._iconNeedsUpdate=!0,i=i.__parent},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t)i=t[e],this.hasLayer(i)&&i.setIcon(this._overrideMarkerIcon(i))}}),L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;return L.setOptions(i,t),this.setIcon(i),e&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),t.MarkerClusterGroup=e,t.MarkerCluster=i,Object.defineProperty(t,"__esModule",{value:!0})}(e)},3481:function(t,e){!function(t){"use strict";function e(t){var e,i,n,s;for(i=1,n=arguments.length;i<n;i++)for(e in s=arguments[i])t[e]=s[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function n(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var s=0;function o(t){return"_leaflet_id"in t||(t._leaflet_id=++s),t._leaflet_id}function r(t,e,i){var n,s,o,r;return r=function(){n=!1,s&&(o.apply(i,s),s=!1)},o=function(){n?s=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)},o}function a(t,e,i){var n=e[1],s=e[0],o=n-s;return t===n&&i?t:((t-s)%o+o)%o+s}function h(){return!1}function l(t,e){if(!1===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return c(t).split(/\s+/)}function d(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function p(t,e,i){var n=[];for(var s in t)n.push(encodeURIComponent(i?s.toUpperCase():s)+"="+encodeURIComponent(t[s]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var f=/\{ *([\w_ -]+) *\}/g;function m(t,e){return t.replace(f,function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n})}var g=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var b=0;function x(t){var e=+new Date,i=Math.max(0,16-(e-b));return b=e+i,window.setTimeout(t,i)}var w=window.requestAnimationFrame||y("RequestAnimationFrame")||x,M=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function S(t,e,i){if(!i||w!==x)return w.call(window,n(t,e));t.call(e)}function C(t){t&&M.call(window,t)}var k={__proto__:null,extend:e,create:i,bind:n,get lastId(){return s},stamp:o,throttle:r,wrapNum:a,falseFn:h,formatNum:l,trim:c,splitWords:u,setOptions:d,getParamString:p,template:m,isArray:g,indexOf:v,emptyImageUrl:_,requestFn:w,cancelFn:M,requestAnimFrame:S,cancelAnimFrame:C};function P(){}P.extend=function(t){var n=function(){d(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},s=n.__super__=this.prototype,o=i(s);for(var r in o.constructor=n,n.prototype=o,this)Object.prototype.hasOwnProperty.call(this,r)&&"prototype"!==r&&"__super__"!==r&&(n[r]=this[r]);return t.statics&&e(n,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=g(t)?t:[t];for(var e=0;e<t.length;
vendor: 10,965 bytes, line 2
2e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes))),e(o,t),delete o.statics,delete o.includes,o.options&&(o.options=s.options?i(s.options):{},e(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){s.callInitHooks&&s.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},n},P.include=function(t){var i=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},P.mergeOptions=function(t){return e(this.prototype.options,t),this},P.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var T={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],e,i);return this},off:function(t,e,i){if(arguments.length)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=u(t);for(var s=1===arguments.length,o=0,r=t.length;o<r;o++)s?this._off(t[o]):this._off(t[o],e,i)}else delete this._events;return this},_on:function(t,e,i,n){if("function"==typeof e){if(!1===this._listens(t,e,i)){i===this&&(i=void 0);var s={fn:e,ctx:i};n&&(s.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(s)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,i){var n,s,o;if(this._events&&(n=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var r=this._listens(t,e,i);if(!1!==r){var a=n[r];this._firingCount&&(a.fn=h,this._events[t]=n=n.slice()),n.splice(r,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(s=0,o=n.length;s<o;s++)n[s].fn=h;delete this._events[t]}},fire:function(t,i,n){if(!this.listens(t,n))return this;var s=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var r=0,a=o.length;r<a;r++){var h=o[r],l=h.fn;h.once&&this.off(t,l,h.ctx),l.call(h.ctx||this,s)}this._firingCount--}}return n&&this._propagateEvent(s),this},listens:function(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');var s=e;"function"!=typeof e&&(n=!!e,s=void 0,i=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,s,i))return!0;if(n)for(var r in this._eventParents)if(this._eventParents[r].listens(t,e,i,n))return!0;return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var s=0,o=n.length;s<o;s++)if(n[s].fn===e&&n[s].ctx===i)return s;return!1},once:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e,!0);else for(var s=0,o=(t=u(t)).length;s<o;s++)this._on(t[s],e,i,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[o(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[o(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var E=P.extend(T);function A(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var O=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function I(t,e,i){return t instanceof A?t:g(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,i)}function D(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function N(t,e){return!t||t instanceof D?t:new D(t,e)}function z(t,e){if(t)for(var i=e?[t,e]:t,n=0,s=i.length;n<s;n++)this.extend(i[n])}function j(t,e){return t instanceof z?t:new z(t,e)}function R(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function G(t,e,i){return t instanceof R?t:g(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new R(t,e,i)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=O(this.x),this.y=O(this.y),this},distanceTo:function(t){var e=(t=I(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=I(t)).x===this.x&&t.y===this.y},contains:function(t){return t=I(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+l(this.x)+", "+l(this.y)+")"}},D.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof A||"number"==typeof t[0]||"x"in t)e=i=I(t);else if(e=(t=N(t)).min,i=t.max,!e||!i)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone()),this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof A?I(t):N(t))instanceof D?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,s=t.max,o=s.x>=e.x&&n.x<=i.x,r=s.y>=e.y&&n.y<=i.y;return o&&r},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,s=t.max,o=s.x>e.x&&n.x<i.x,r=s.y>e.y&&n.y<i.y;return o&&r},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,s=Math.abs(e.y-i.y)*t;return N(I(e.x-n,e.y-s),I(i.x+n,i.y+s))},equals:function(t){return!!t&&(t=N(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},z.prototype={extend:function(t){var e,i,n=this._southWest,s=this._northEast;if(t instanceof R)e=t,i=t;else{if(!(t instanceof z))return t?this.extend(G(t)||j(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||s?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),s.lat=Math.max(i.lat,s.lat),s.lng=Math.max(i.lng,s.lng)):(this._southWest=new R(e.lat,e.lng),this._northEast=new R(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,s=Math.abs(e.lng-i.lng)*t;return new z(new R(e.lat-n,e.lng-s),new R(i.lat+n,i.lng+s))},getCenter:function(){return new R((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof R||"lat"in t?G(t):j(t);var e,i,n=this._southWest,s=this._northEast;return t instanceof z?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=s.lat&&e.lng>=n.lng&&i.lng<=s.lng},intersects:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),o=s.lat>=e.lat&&n.lat<=i.lat,r=s.lng>=e.lng&&n.lng<=i.lng;return o&&r},overlaps:function(t){t=j(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),s=t.getNorthEast(),o=s.lat>e.lat&&n.lat<i.lat,r=s.lng>e.lng&&n.lng<i.lng;return o&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},R.prototype={equals:function(t,e){return!!t&&(t=G(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+l(this.lat,t)+", "+l(this.lng,t)+")"},distanceTo:function(t){return F.distance(this,G(t))},wrap:function(){return F.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new R(this.lat,this.lng,this.alt)}};var B,H={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new D(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?a(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?a(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,s=e.lng-i.lng;if(0===n&&0===s)return t;
2var o=t.getSouthWest(),r=t.getNorthEast();return new z(new R(o.lat-n,o.lng-s),new R(r.lat-n,r.lng-s))}},F=e({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,s=e.lat*i,o=Math.sin((e.lat-t.lat)*i/2),r=Math.sin((e.lng-t.lng)*i/2),a=o*o+Math.cos(n)*Math.cos(s)*r*r,h=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*h}}),W=6378137,q={R:W,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),s=Math.sin(n*e);return new A(this.R*t.lng*e,this.R*Math.log((1+s)/(1-s))/2)},unproject:function(t){var e=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(B=W*Math.PI,new D([-B,-B],[B,B]))};function U(t,e,i,n){if(g(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function Z(t,e,i,n){return new U(t,e,i,n)}U.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new A((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Y=e({},F,{code:"EPSG:3857",projection:q,transformation:function(){var t=.5/(Math.PI*q.R);return Z(t,.5,-t,.5)}()}),V=e({},Y,{code:"EPSG:900913"});function X(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var i,n,s,o,r,a,h="";for(i=0,s=t.length;i<s;i++){for(n=0,o=(r=t[i]).length;n<o;n++)h+=(n?"L":"M")+(a=r[n]).x+" "+a.y;h+=e?Dt.svg?"z":"x":""}return h||"M0 0"}var $,J=document.documentElement.style,Q="ActiveXObject"in window,tt=Q&&!document.addEventListener,et="msLaunchUri"in navigator&&!("documentMode"in document),it=It("webkit"),nt=It("android"),st=It("android 2")||It("android 3"),ot=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),rt=nt&&It("Google")&&ot<537&&!("AudioNode"in window),at=!!window.opera,ht=!et&&It("chrome"),lt=It("gecko")&&!it&&!at&&!Q,ct=!ht&&It("safari"),ut=It("phantom"),dt="OTransition"in J,pt=0===navigator.platform.indexOf("Win"),ft=Q&&"transition"in J,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!st,gt="MozPerspective"in J,vt=!window.L_DISABLE_3D&&(ft||mt||gt)&&!dt&&!ut,_t="undefined"!=typeof orientation||It("mobile"),yt=_t&&it,bt=_t&&mt,xt=!window.PointerEvent&&window.MSPointerEvent,wt=!(!window.PointerEvent&&!xt),Mt="ontouchstart"in window||!!window.TouchEvent,St=!window.L_NO_TOUCH&&(Mt||wt),Ct=_t&&at,kt=_t&&lt,Pt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Tt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",h,e),window.removeEventListener("testPassiveEventSupport",h,e)}catch(t){}return t}(),Et=!!document.createElement("canvas").getContext,Lt=!(!document.createElementNS||!X("svg").createSVGRect),At=!!Lt&&(($=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===($.firstChild&&$.firstChild.namespaceURI)),Ot=!Lt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function It(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Dt={ie:Q,ielt9:tt,edge:et,webkit:it,android:nt,android23:st,androidStock:rt,opera:at,chrome:ht,gecko:lt,safari:ct,phantom:ut,opera12:dt,win:pt,ie3d:ft,webkit3d:mt,gecko3d:gt,any3d:vt,mobile:_t,mobileWebkit:yt,mobileWebkit3d:bt,msPointer:xt,pointer:wt,touch:St,touchNative:Mt,mobileOpera:Ct,mobileGecko:kt,retina:Pt,passiveEvents:Tt,canvas:Et,svg:Lt,vml:Ot,inlineSvg:At,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Nt=Dt.msPointer?"MSPointerDown":"pointerdown",zt=Dt.msPointer?"MSPointerMove":"pointermove",jt=Dt.msPointer?"MSPointerUp":"pointerup",Rt=Dt.msPointer?"MSPointerCancel":"pointercancel",Gt={touchstart:Nt,touchmove:zt,touchend:jt,touchcancel:Rt},Bt={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&je(e),Yt(t,e)},touchmove:Yt,touchend:Yt,touchcancel:Yt},Ht={},Ft=!1;function Wt(t,e,i){return"touchstart"===e&&(Ft||(document.addEventListener(Nt,qt,!0),document.addEventListener(zt,Ut,!0),document.addEventListener(jt,Zt,!0),document.addEventListener(Rt,Zt,!0),Ft=!0)),Bt[e]?(i=Bt[e].bind(this,i),t.addEventListener(Gt[e],i,!1),i):(console.warn("wrong event specified:",e),h)}function qt(t){Ht[t.pointerId]=t}function Ut(t){Ht[t.pointerId]&&(Ht[t.pointerId]=t)}function Zt(t){delete Ht[t.pointerId]}function Yt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Ht)e.touches.push(Ht[i]);e.changedTouches=[e],t(e)}}var Vt,Xt,Kt,$t,Jt,Qt=me(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),te=me(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ee="webkitTransition"===te||"OTransition"===te?te+"End":"transitionend";function ie(t){return"string"==typeof t?document.getElementById(t):t}function ne(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function se(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function oe(t){var e=t.parentNode;e&&e.removeChild(t)}function re(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ae(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function he(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function le(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=pe(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ce(t,e){if(void 0!==t.classList)for(var i=u(e),n=0,s=i.length;n<s;n++)t.classList.add(i[n]);else if(!le(t,e)){var o=pe(t);de(t,(o?o+" ":"")+e)}}function ue(t,e){void 0!==t.classList?t.classList.remove(e):de(t,c((" "+pe(t)+" ").replace(" "+e+" "," ")))}function de(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function pe(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function fe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}(t,e)}function me(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function ge(t,e,i){var n=e||new A(0,0);t.style[Qt]=(Dt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function ve(t,e){t._leaflet_pos=e,Dt.any3d?ge(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function _e(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)Vt=function(){Pe(window,"selectstart",je)},Xt=function(){Ee(window,"selectstart",je)};else{var ye=me(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Vt=function(){if(ye){var t=document.documentElement.style;Kt=t[ye],t[ye]="none"}},Xt=function(){ye&&(document.documentElement.style[ye]=Kt,Kt=void 0)}}function be(){Pe(window,"dragstart",je)}function xe(){Ee(window,"dragstart",je)}function we(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Me(),$t=t,Jt=t.style.outlineStyle,t.style.outlineStyle="none",Pe(window,"keydown",Me))}function Me(){$t&&($t.style.outlineStyle=Jt,$t=void 0,Jt=void 0,Ee(window,"keydown",Me))}function Se(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ce(t){var e=t.getBoundingClientRect();
vendor: 1,064 bytes, line 2
2return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var ke={__proto__:null,TRANSFORM:Qt,TRANSITION:te,TRANSITION_END:ee,get:ie,getStyle:ne,create:se,remove:oe,empty:re,toFront:ae,toBack:he,hasClass:le,addClass:ce,removeClass:ue,setClass:de,getClass:pe,setOpacity:fe,testProp:me,setTransform:ge,setPosition:ve,getPosition:_e,get disableTextSelection(){return Vt},get enableTextSelection(){return Xt},disableImageDrag:be,enableImageDrag:xe,preventOutline:we,restoreOutline:Me,getSizedParentNode:Se,getScale:Ce};function Pe(t,e,i,n){if(e&&"object"==typeof e)for(var s in e)Oe(t,s,e[s],i);else for(var o=0,r=(e=u(e)).length;o<r;o++)Oe(t,e[o],i,n);return this}var Te="_leaflet_events";function Ee(t,e,i,n){if(1===arguments.length)Le(t),delete t[Te];else if(e&&"object"==typeof e)for(var s in e)Ie(t,s,e[s],i);else if(e=u(e),2===arguments.length)Le(t,function(t){return-1!==v(e,t)});else for(var o=0,r=e.length;o<r;o++)Ie(t,e[o],i,n);return this}function Le(t,e){for(var i in t[Te]){var n=i.split(/\d/)[0];e&&!e(n)||Ie(t,n,null,null,i)}}
2var Ae={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Oe(t,e,i,n){var s=e+o(i)+(n?"_"+o(n):"");if(t[Te]&&t[Te][s])return this;var r=function(e){return i.call(n||t,e||window.event)},a=r;!Dt.touchNative&&Dt.pointer&&0===e.indexOf("touch")?r=Wt(t,e,r):Dt.touch&&"dblclick"===e?r=function(t,e){t.addEventListener("dblclick",e);var i,n=0;function s(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var s=Ge(t);if(!s.some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})||s.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})){var o=Date.now();o-n<=200?2===++i&&e(function(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}(t)):i=1,n=o}}}else i=t.detail}return t.addEventListener("click",s),{dblclick:e,simDblclick:s}}(t,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ae[e]||e,r,!!Dt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,We(t,e)&&a(e)},t.addEventListener(Ae[e],r,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,r),t[Te]=t[Te]||{},t[Te][s]=r}function Ie(t,e,i,n,s){s=s||e+o(i)+(n?"_"+o(n):"");var r=t[Te]&&t[Te][s];if(!r)return this;!Dt.touchNative&&Dt.pointer&&0===e.indexOf("touch")?function(t,e,i){Gt[e]?t.removeEventListener(Gt[e],i,!1):console.warn("wrong event specified:",e)}(t,e,r):Dt.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,r):"removeEventListener"in t?t.removeEventListener(Ae[e]||e,r,!1):t.detachEvent("on"+e,r),t[Te][s]=null}function De(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ne(t){return Oe(t,"wheel",De),this}function ze(t){return Pe(t,"mousedown touchstart dblclick contextmenu",De),t._leaflet_disable_click=!0,this}function je(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Re(t){return je(t),De(t),this}function Ge(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Be(t,e){if(!e)return new A(t.clientX,t.clientY);var i=Ce(e),n=i.boundingClientRect;return new A((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var He=Dt.linux&&Dt.chrome?window.devicePixelRatio:Dt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Fe(t){return Dt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/He:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function We(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var qe={__proto__:null,on:Pe,off:Ee,stopPropagation:De,disableScrollPropagation:Ne,disableClickPropagation:ze,preventDefault:je,stop:Re,getPropagationPath:Ge,getMousePosition:Be,getWheelDelta:Fe,isExternalTarget:We,addListener:Pe,removeListener:Ee},Ue=E.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=_e(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=S(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),ve(this._el,i),this.fire("step")},_complete:function(){C(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ze=E.extend({options:{crs:Y,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:function(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=n(this._onResize,this),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(G(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=te&&Dt.any3d&&!Dt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Pe(this._proxy,ee,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
2,setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(G(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i,n.pan&&n.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Dt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Dt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),s=this.getSize().divideBy(2),o=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(s).multiplyBy(1-1/n),r=this.containerPointToLatLng(s.add(o));return this.setView(r,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var i=I(e.paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),s=this.getBoundsZoom(t,!1,i.add(n));if((s="number"==typeof e.maxZoom?Math.min(e.maxZoom,s):s)===1/0)return{center:t.getCenter(),zoom:s};
2var o=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),s),a=this.project(t.getNorthEast(),s);return{center:this.unproject(r.add(a).divideBy(2).add(o),s),zoom:s}},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=I(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ue,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ce(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(!1===(i=i||{}).animate||!Dt.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),s=this.project(t),o=this.getSize(),r=this._zoom;t=G(t),e=void 0===e?r:e;var a=Math.max(o.x,o.y),h=a*this.getZoomScale(r,e),l=s.distanceTo(n)||1,c=1.42,u=2.0164;function d(t){var e=(h*h-a*a+(t?-1:1)*u*u*l*l)/(2*(t?h:a)*u*l),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}var m=d(0);function g(t){return a*(f(m)*(p(e=m+c*t)/f(e))-p(m))/u;var e}var v=Date.now(),_=(d(1)-m)/c,y=i.duration?1e3*i.duration:1e3*_*.8;return this._moveStart(!0,i.noMoveStart),function i(){var o=(Date.now()-v)/y,h=function(t){return 1-Math.pow(1-t,1.5)}(o)*_;o<=1?(this._flyToFrame=S(i,this),this._move(this.unproject(n.add(s.subtract(n).multiplyBy(g(h)/l)),r),this.getScaleZoom(a/function(t){return a*(f(m)/f(m+c*t))}(h),r),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=j(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:function(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:function(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:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,j(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=I(e.paddingBottomRight||e.padding||[0,0]),s=this.project(this.getCenter()),o=this.project(t),r=this.getPixelBounds(),a=N([r.min.add(i),r.max.subtract(n)]),h=a.getSize();if(!a.contains(o)){this._enforcingBounds=!0;var l=o.subtract(a.getCenter()),c=a.extend(o).getSize().subtract(h);s.x+=l.x<0?-c.x:c.x,s.y+=l.y<0?-c.y:c.y,this.panTo(this.unproject(s),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var i=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var s=this.getSize(),o=i.divideBy(2).round(),r=s.divideBy(2).round(),a=o.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:s})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()}
vendor: 6,685 bytes, line 2
2,locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var i=n(this._handleGeolocationResponse,this),s=n(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(i,s,t):navigator.geolocation.getCurrentPosition(i,s,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=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: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new R(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var s=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(s,n.maxZoom):s)}var o={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(o[r]=t.coords[r]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new 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}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),oe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(C(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)oe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=se("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=j(t),i=I(i||[0,0]);var n=this.getZoom()||0,s=this.getMinZoom(),o=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=N(this.project(a,n),this.project(r,n)).getSize(),c=Dt.any3d?this.options.zoomSnap:1,u=h.x/l.x,d=h.y/l.y,p=e?Math.max(u,d):Math.min(u,d);return n=this.getScaleZoom(p,n),c&&(n=Math.round(n/(c/100))*(c/100),n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c),Math.max(s,Math.min(o,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new D(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(G(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(G(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(G(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(G(t),G(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(G(t)))},mouseEventToContainerPoint:function(t){return Be(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ie(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Pe(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Dt.any3d,ce(t,"leaflet-container"+(Dt.touch?" leaflet-touch":"")+(Dt.retina?" leaflet-retina":"")+(Dt.ielt9?" leaflet-oldie":"")+(Dt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ne(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ve(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ce(t.markerPane,"leaflet-zoom-hide"),ce(t.shadowPane,"leaflet-zoom-hide"))}
2,_resetView:function(t,e,i){ve(this._mapPane,new A(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var s=this._zoom!==e;this._moveStart(s,i)._move(t,e)._moveEnd(s),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var s=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((s||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return C(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){ve(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?Ee:Pe;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Dt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){C(this._resizeRequest),this._resizeRequest=S(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],s="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,a=!1;r;){if((i=this._targets[o(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(s&&!We(r,t))break;if(n.push(i),s)break}if(r===this._container)break;r=r.parentNode}return n.length||a||s||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&we(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){if("click"===t.type){var s=e({},t);s.type="preclick",this._fireDOMEvent(s,s.type,n)}var o=this._findEventTargets(t,i);if(n){for(var r=[],a=0;a<n.length;a++)n[a].listens(i,!0)&&r.push(n[a]);o=r.concat(o)}if(o.length){"contextmenu"===i&&je(t);var h=o[0],l={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=h.getLatLng&&(!h._radius||h._radius<=10);l.containerPoint=c?this.latLngToContainerPoint(h.getLatLng()):this.mouseEventToContainerPoint(t),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=c?h.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(a=0;a<o.length;a++)if(o[a].fire(i,l,!0),l.originalEvent._stopped||!1===o[a].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return _e(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()}
2,_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return N([this.project(t.getSouthWest(),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:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),s=this.getSize().divideBy(2),o=new D(n.subtract(s),n.add(s)),r=this._getBoundsOffset(o,i,e);return Math.abs(r.x)<=1&&Math.abs(r.y)<=1?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new D(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=N(this.project(e.getNorthEast(),i),this.project(e.getSouthWest
2(),i)),s=n.min.subtract(t.min),o=n.max.subtract(t.max);return new A(this._rebound(s.x,-o.x),this._rebound(s.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Dt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ue(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=se("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=Qt,i=this._proxy.style[e];ge(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){oe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ge(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),s=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(s)||(S(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,i,s){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ce(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:s}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ue(this._mapPane,"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))}});var Ye=P.extend({options:{position:"topright"},initialize:function(t){d(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ce(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(oe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ve=function(t){return new Ye(t)};Ze.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=se("div",e+"control-container",this._container);function n(n,s){var o=e+n+" "+e+s;t[n+s]=se("div",o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)oe(this._controlCorners[t]);oe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}
vendor: 6,404 bytes, line 2
2);var Xe=Ye.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in d(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ye.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(o(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ce(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ce(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ue(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ue(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=se("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),ze(e),Ne(e);var n=this._section=se("section",t+"-list");i&&(this._map.on("click",this.collapse,this),Pe(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var s=this._layersLink=se("a",t+"-toggle",e);s.href="#",s.title="Layers",s.setAttribute("role","button"),Pe(s,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){je(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=se("div",t+"-base",n),this._separator=se("div",t+"-separator",n),this._overlaysList=se("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&o(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(n(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;re(this._baseLayersList),re(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,s=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,s+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&s>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+o(this),n),this._layerControlInputs.push(e),e.layerId=o(t.layer),Pe(e,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("span");return i.appendChild(r),r.appendChild(e),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],s=[];this._handlingClick=!0;for(var o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||s.push(e);for(o=0;o<s.length;o++)this._map.hasLayer(s[o])&&this._map.removeLayer(s[o]);for(o=0;o<n.length;o++)this._map.hasLayer(n[o])||this._map.addLayer(n[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Pe(t,"click",je),this.expand();var e=this;setTimeout(function(){Ee(t,"click",je),e._preventClick=!1})}}),Ke=Ye.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=se("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}
2,_createButton:function(t,e,i,n,s){var o=se("a",i,n);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),ze(o),Pe(o,"click",Re),Pe(o,"click",s,this),Pe(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ue(this._zoomInButton,e),ue(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ce(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ce(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ze.mergeOptions({zoomControl:!0}),Ze.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ke,this.addControl(this.zoomControl))});var $e=Ye.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=se("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=se("div",e,i)),t.imperial&&(this._iScale=se("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,s=3.2808399*t;s>5280?(e=s/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(s),this._updateScale(this._iScale,n+" ft",n/s))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),Je=Ye.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Dt.inlineSvg?'<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:function(t){d(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=se("div","leaflet-control-attribution"),ze(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});Ze.mergeOptions({attributionControl:!0}),Ze.addInitHook(function(){this.options.attributionControl&&(new Je).addTo(this)});Ye.Layers=Xe,Ye.Zoom=Ke,Ye.Scale=$e,Ye.Attribution=Je,Ve.layers=function(t,e,i){return new Xe(t,e,i)},Ve.zoom=function(t){return new Ke(t)},Ve.scale=function(t){return new $e(t)},Ve.attribution=function(t){return new Je(t)};var Qe=P.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Qe.addTo=function(t,e){return t.addHandler(e,this),this};var ti={Events:T},ei=Dt.touch?"touchstart mousedown":"mousedown",ii=E.extend({options:{clickTolerance:3}
2,initialize:function(t,e,i,n){d(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Pe(this._dragStartTarget,ei,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ii._dragging===this&&this.finishDrag(!0),Ee(this._dragStartTarget,ei,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!le(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)ii._dragging===this&&this.finishDrag();else if(!(ii._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(ii._dragging=this,this._preventOutline&&we(this._element),be(),Vt(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Se(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=_e(this._element),this._parentScale=Ce(i);var n="mousedown"===t.type;Pe(document,n?"mousemove":"touchmove",this._onMove,this),Pe(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new A(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,je(t),this._moved||(this.fire("dragstart"),this._moved=!0,ce(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ce(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),ve(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ue(document.body,"leaflet-dragging"),this._lastTarget&&(ue(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ee(document,"mousemove touchmove",this._onMove,this),Ee(document,"mouseup touchend touchcancel",this._onUp,this),xe(),Xt();var e=this._moved&&this._moving;this._moving=!1,ii._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function ni(t,e,i){var n,s,o,r,a,h,l,c,u,d=[1,4,2,8];for(s=0,l=t.length;s<l;s++)t[s]._code=pi(t[s],e);for(r=0;r<4;r++){for(c=d[r],n=[],s=0,o=(l=t.length)-1;s<l;o=s++)a=t[s],h=t[o],a._code&c?h._code&c||((u=di(h,a,c,e,i))._code=pi(u,e),n.push(u)):(h._code&c&&((u=di(h,a,c,e,i))._code=pi(u,e),n.push(u)),n.push(a));t=n}return t}function si(t,e){var i,n,s,o,r,a,h,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=G([0,0]),d=j(t);
2d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=oi(t));var p=t.length,f=[];for(i=0;i<p;i++){var m=G(t[i]);f.push(e.project(G([m.lat-u.lat,m.lng-u.lng])))}for(a=h=l=0,i=0,n=p-1;i<p;n=i++)s=f[i],o=f[n],r=s.y*o.x-o.y*s.x,h+=(s.x+o.x)*r,l+=(s.y+o.y)*r,a+=3*r;c=0===a?f[0]:[h/a,l/a];var g=e.unproject(I(c));return G([g.lat+u.lat,g.lng+u.lng])}function oi(t){for(var e=0,i=0,n=0,s=0;s<t.length;s++){var o=G(t[s]);e+=o.lat,i+=o.lng,n++}return G([e/n,i/n])}var ri,ai={__proto__:null,clipPolygon:ni,polygonCenter:si,centroid:oi};function hi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return function(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,ci(t,n,e,0,i-1);var s,o=[];for(s=0;s<i;s++)n[s]&&o.push(t[s]);return o}(t=function(t,e){for(var i=[t[0]],n=1,s=0,o=t.length;n<o;n++)fi(t[n],t[s])>e&&(i.push(t[n]),s=n);return s<o-1&&i.push(t[o-1]),i}(t,i),i)}function li(t,e,i){return Math.sqrt(mi(t,e,i,!0))}function ci(t,e,i,n,s){var o,r,a,h=0;for(r=n+1;r<=s-1;r++)(a=mi(t[r],t[n],t[s],!0))>h&&(o=r,h=a);h>i&&(e[o]=1,ci(t,e,i,n,o),ci(t,e,i,o,s))}function ui(t,e,i,n,s){var o,r,a,h=n?ri:pi(t,i),l=pi(e,i);for(ri=l;;){if(!(h|l))return[t,e];if(h&l)return!1;a=pi(r=di(t,e,o=h||l,i,s),i),o===h?(t=r,h=a):(e=r,l=a)}}function di(t,e,i,n,s){var o,r,a=e.x-t.x,h=e.y-t.y,l=n.min,c=n.max;return 8&i?(o=t.x+a*(c.y-t.y)/h,r=c.y):4&i?(o=t.x+a*(l.y-t.y)/h,r=l.y):2&i?(o=c.x,r=t.y+h*(c.x-t.x)/a):1&i&&(o=l.x,r=t.y+h*(l.x-t.x)/a),new A(o,r,s)}function pi(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function fi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function mi(t,e,i,n){var s,o=e.x,r=e.y,a=i.x-o,h=i.y-r,l=a*a+h*h;return l>0&&((s=((t.x-o)*a+(t.y-r)*h)/l)>1?(o=i.x,r=i.y):s>0&&(o+=a*s,r+=h*s)),a=t.x-o,h=t.y-r,n?a*a+h*h:new A(o,r)}function gi(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function vi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gi(t)}function _i(t,e){var i,n,s,o,r,a,h,l;if(!t||0===t.length)throw new Error("latlngs not passed");gi(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=G([0,0]),u=j(t);
2u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(c=oi(t));var d=t.length,p=[];for(i=0;i<d;i++){var f=G(t[i]);p.push(e.project(G([f.lat-c.lat,f.lng-c.lng])))}for(i=0,n=0;i<d-1;i++)n+=p[i].distanceTo(p[i+1])/2;if(0===n)l=p[0];else for(i=0,o=0;i<d-1;i++)if(r=p[i],a=p[i+1],(o+=s=r.distanceTo(a))>n){h=(o-n)/s,l=[a.x-h*(a.x-r.x),a.y-h*(a.y-r.y)];break}var m=e.unproject(I(l));return G([m.lat+c.lat,m.lng+c.lng])}var yi={__proto__:null,simplify:hi,pointToSegmentDistance:li,closestPointOnSegment:function(t,e,i){return mi(t,e,i)},clipSegment:ui,_getEdgeIntersection:di,_getBitCode:pi,_sqClosestPointOnSegment:mi,isFlat:gi,_flat:vi,polylineCenter:_i},bi={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new D([-180,-90],[180,90])},xi={R:6378137,R_MINOR:6356752.314245179,bounds:new D([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,s=this.R_MINOR/i,o=Math.sqrt(1-s*s),r=o*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),o/2);return n=-i*Math.log(Math.max(a,1e-10)),new A(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,s=this.R_MINOR/n,o=Math.sqrt(1-s*s),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,l=.1;h<15&&Math.abs(l)>1e-7;h++)e=o*Math.sin(a),e=Math.pow((1-e)/(1+e),o/2),a+=l=Math.PI/2-2*Math.atan(r*e)-a;return new R(a*i,t.x*i/n)}},wi={__proto__:null,LonLat:bi,Mercator:xi,SphericalMercator:q},Mi=e({},F,{code:"EPSG:3395",projection:xi,transformation:function(){var t=.5/(Math.PI*xi.R);return Z(t,.5,-t,.5)}()}),Si=e({},F,{code:"EPSG:4326",projection:bi,transformation:Z(1/180,1,-1/180,.5)}),Ci=e({},H,{projection:bi,transformation:Z(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});H.Earth=F,H.EPSG3395=Mi,H.EPSG3857=Y,H.EPSG900913=V,H.EPSG4326=Si,H.Simple=Ci;var ki=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Ze.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(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):this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[o(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=o(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var s=this._zoomBoundLayers[n].options;t=void 0===s.minZoom?t:Math.min(t,s.minZoom),e=void 0===s.maxZoom?e:Math.max(e,s.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZo
vendor: 11,241 bytes, line 2
2om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Pi=ki.extend({initialize:function(t,e){var i,n;if(d(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}}),Ti=Pi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Pi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Pi.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new z;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Ei=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){d(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var s=I(n),o=I("shadow"===e&&i.shadowAnchor||i.iconAnchor||s&&s.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),s&&(t.style.width=s.x+"px",t.style.height=s.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Dt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var Li=Ei.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:function(t){return"string"!=typeof Li.imagePath&&(Li.imagePath=this._detectIconPath()),(this.options.imagePath||Li.imagePath)+Ei.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=se("div","leaflet-default-icon-path",document.body),e=ne(t,"background-image")||ne(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),Ai=Qe.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ii(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ce(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ue(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,s=this._marker.options.autoPanPadding,o=_e(e._icon),r=i.getPixelBounds(),a=i.getPixelOrigin(),h=N(r.min._subtract(a).add(s),r.max._subtract(a).subtract(s));if(!h.contains(o)){var l=I((Math.max(h.max.x,o.x)-h.max.x)/(r.max.x-h.max.x)-(Math.min(h.min.x,o.x)-h.min.x)/(r.min.x-h.min.x),(Math.max(h.max.y,o.y)-h.max.y)/(r.max.y-h.max.y)-(Math.min(h.min.y,o.y)-h.min.y)/(r.min.y-h.min.y)).multiplyBy(n);i.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),ve(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=S(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(C(this._panRequest),this._panRequest=S(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=_e(e._icon),s=e._map.layerPointToLatLng(n);i&&ve(i,n),e._latlng=s,t.latlng=s,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){C(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Oi=ki.extend({options:{icon:new Li,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){d(this,e),this._latlng=G(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(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:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=G(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),ce(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Pe(i,"focus",this._panOnFocus,this);var s=t.icon.createShadow(this._shadow),o=!1;s!==this._shadow&&(this._removeShadow(),o=!0),s&&(ce(s,e),s.alt=""),this._shadow=s,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),s&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ee(this._icon,"focus",this._panOnFocus,this),oe(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&oe(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&ve(this._icon,t),this._shadow&&ve(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ce(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ai)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ai(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&fe(this._icon,t),this._shadow&&fe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?I(e.iconSize):I(0,0),n=e.iconAnchor?I(e.iconAnchor):I(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var Ii=ki.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,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Di=Ii.extend({options:{fill:!0,radius:10},initialize:function(t,e){d(this,e),this._latlng=G(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=G(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
2,setStyle:function(t){var e=t&&t.radius||this._radius;return Ii.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new D(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Ni=Di.extend({initialize:function(t,i,n){if("number"==typeof i&&(i=e({},n,{radius:i})),d(this,i),this._latlng=G(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ii.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===F.distance){var s=Math.PI/180,o=this._mRadius/F.R/s,r=i.project([e+o,t]),a=i.project([e-o,t]),h=r.add(a).divideBy(2),l=i.unproject(h).lat,c=Math.acos((Math.cos(o*s)-Math.sin(e*s)*Math.sin(l*s))/(Math.cos(e*s)*Math.cos(l*s)))/s;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*e)),this._point=h.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:h.x-i.project([l,t-c]).x,this._radiusY=h.y-r.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});var zi=Ii.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){d(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,s=null,o=mi,r=0,a=this._parts.length;r<a;r++)for(var h=this._parts[r],l=1,c=h.length;l<c;l++){var u=o(t,e=h[l-1],i=h[l],!0);u<n&&(n=u,s=o(t,e,i))}return s&&(s.distance=Math.sqrt(n)),s}
vendor: 13,623 bytes, line 2
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _i(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=G(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=gi(t),n=0,s=t.length;n<s;n++)i?(e[n]=G(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new D;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new A(t,t);this._rawPxBounds&&(this._pxBounds=new D([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n,s,o=t[0]instanceof R,r=t.length;if(o){for(s=[],n=0;n<r;n++)s[n]=this._map.latLngToLayerPoint(t[n]),i.extend(s[n]);e.push(s)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,s,o,r,a,h=this._parts;for(e=0,n=0,s=this._rings.length;e<s;e++)for(i=0,o=(a=this._rings[e]).length;i<o-1;i++)(r=ui(a[i],a[i+1],t,i,!0))&&(h[n]=h[n]||[],h[n].push(r[0]),r[1]===a[i+1]&&i!==o-2||(h[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=hi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,s,o,r,a,h=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,o=this._parts.length;i<o;i++)for(n=0,s=(r=(a=this._parts[i]).length)-1;n<r;s=n++)if((e||0!==n)&&li(t,a[s],a[n])<=h)return!0;return!1}});zi._flat=vi;var ji=zi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return si(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=zi.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof R&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){zi.prototype._setLatLngs.call(this,t),gi(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new A(e,e);if(t=new D(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,s=0,o=this._rings.length;s<o;s++)(n=ni(this._rings[s],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,s,o,r,a,h,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,a=this._parts.length;s<a;s++)for(o=0,r=(h=(e=this._parts[s]).length)-1;o<h;r=o++)i=e[o],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||zi.prototype._containsPoint.call(this,t,!0)}});var Ri=Ti.extend({initialize:function(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,s=g(t)?t:t.features;if(s){for(e=0,i=s.length;e<i;e++)((n=s[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var r=Gi(t,o);return r?(r.feature=Zi(t),r.defaultOptions=r.options,this.resetStyle(r),o.onEachFeature&&o.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Gi(t,e){var i,n,s,o,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,h=[],l=e&&e.pointToLayer,c=e&&e.coordsToLatLng||Hi;if(!a&&!r)return null;switch(r.type){case"Point":return Bi(l,t,i=c(a),e);case"MultiPoint":for(s=0,o=a.length;s<o;s++)i=c(a[s]),h.push(Bi(l,t,i,e));return new Ti(h);case"LineString":case"MultiLineString":return n=Fi(a,"LineString"===r.type?0:1,c),new zi(n,e);case"Polygon":case"MultiPolygon":return n=Fi(a,"Polygon"===r.type?1:2,c),new ji(n,e);case"GeometryCollection":for(s=0,o=r.geometries.length;s<o;s++){var u=Gi({geometry:r.geometries[s],type:"Feature",properties:t.properties},e);u&&h.push(u)}return new Ti(h);case"FeatureCollection":for(s=0,o=r.features.length;s<o;s++){var d=Gi(r.features[s],e);d&&h.push(d)}return new Ti(h);default:throw new Error("Invalid GeoJSON object.")}}function Bi(t,e,i,n){return t?t(e,i):new Oi(i,n&&n.markersInheritOptions&&n)}function Hi(t){return new R(t[1],t[0],t[2])}function Fi(t,e,i){for(var n,s=[],o=0,r=t.length;o<r;o++)n=e?Fi(t[o],e-1,i):(i||Hi)(t[o]),s.push(n);return s}function Wi(t,e){return void 0!==(t=G(t)).alt?[l(t.lng,e),l(t.lat,e),l(t.alt,e)]:[l(t.lng,e),l(t.lat,e)]}function qi(t,e,i,n){for(var s=[],o=0,r=t.length;o<r;o++)s.push(e?qi(t[o],gi(t[o])?0:e-1,i,n):Wi(t[o],n));return!e&&i&&s.length>0&&s.push(s[0].slice()),s}function Ui(t,i){return t.feature?e({},t.feature,{geometry:i}):Zi(i)}function Zi(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Yi={toGeoJSON:function(t){return Ui(this,{type:"Point",coordinates:Wi(this.getLatLng(),t)})}};function Vi(t,e){return new Ri(t,e)}Oi.include(Yi),Ni.include(Yi),Di.include(Yi),zi.include({toGeoJSON:function(t){var e=!gi(this._latlngs);return Ui(this,{type:(e?"Multi":"")+"LineString",coordinates:qi(this._latlngs,e?1:0,!1,t)})}}),ji.include({toGeoJSON:function(t){var e=!gi(this._latlngs),i=e&&!gi(this._latlngs[0]),n=qi(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Ui(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Pi.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Ui(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer(function(e){if(e.toGeoJSON){var s=e.toGeoJSON(t);if(i)n.push(s.geometry);else{var o=Zi(s);"FeatureCollection"===o.type?n.push.apply(n,o.features):n.push(o)}}}),i?Ui(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Xi=Vi,Ki=ki.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=j(e),d(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ce(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){oe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ae(this._image),this},bringToBack:function(){return this._map&&he(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:se("img");ce(e,"leaflet-image-layer"),this._zoomAnimated&&ce(e,"leaflet-zoom-animated"),this.options.className&&ce(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onload=n(this.fire,this,"load"),e.onerror=n(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ge(this._image,i,e)},_reset:function(){var t=this._image,e=new D(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();ve(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){fe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),$i=Ki.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:se("video");if(ce(e,"leaflet-image-layer"),this._zoomAnimated&&ce(e,"leaflet-zoom-animated"),this.options.className&&ce(e,this.options.className),e.onselectstart=h,e.onmousemove=h,e.onloadeddata=n(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),s=[],o=0;o<i.length;o++)s.push(i[o].src);this._url=i.length>0?s:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;r<this._url.length;r++){var a=se("source");a.src=this._url[r],e.appendChild(a)}}}});var Ji=Ki.extend({_initImage:function(){var t=this._image=this._url;ce(t,"leaflet-image-layer"),this._zoomAnimated&&ce(t,"leaflet-zoom-animated"),this.options.className&&ce(t,this.options.className),t.onselectstart=h,t.onmousemove=h}});var Qi=ki.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof R||g(t))?(this._latlng=G(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&fe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&fe(this._container,1),this.bringToFront(),this.options.interactive&&(ce(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(fe(this._container,0),this._removeTimeout=setTimeout(n(oe,void 0,this._container),200)):oe(this._container),this.options.interactive&&(ue(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=G(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ae(this._container),this},bringToBack:function(){return this._map&&he(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Ti){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[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 new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){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:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=
2I(this.options.offset),i=this._getAnchor();this._zoomAnimated?ve(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,s=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=s+"px"}},_getAnchor:function(){return[0,0]}});Ze.include({_initOverlay:function(t,e,i,n){var s=e;return s instanceof t||(s=new t(n).setContent(e)),i&&s.setLatLng(i),s}}),ki.include({_initOverlay:function(t,e,i,n){var s=i;return s instanceof t?(d(s,n),s._source=this):(s=e&&!n?e:new t(n,this)).setContent(i),s}});var tn=Qi.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,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Qi.prototype.openOn.call(this,t)},onAdd:function(t){Qi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ii||this._source.on("preclick",De))},onRemove:function(t){Qi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ii||this._source.off("preclick",De))},getEvents:function(){var t=Qi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=se("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=se("div",t+"-content-wrapper",e);if(this._contentNode=se("div",t+"-content",i),ze(e),Ne(this._contentNode),Pe(e,"contextmenu",De),this._tipContainer=se("div",t+"-tip-container",e),this._tip=se("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=se("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">&#215;</span>',Pe(n,"click",function(t){je(t),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,s=this.options.maxHeight,o="leaflet-popup-scrolled";s&&n>s?(e.height=s+"px",ce(t,o)):ue(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();ve(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(ne(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,s=new A(this._containerLeft,-i-this._containerBottom);s._add(_e(this._container));var o=t.layerPointToContainerPoint(s),r=I(this.options.autoPanPadding),a=I(this.options.autoPanPaddingTopLeft||r),h=I(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),c=0,u=0;o.x+n+h.x>l.x&&(c=o.x+n-l.x+h.x),o.x-c-a.x<0&&(c=o.x-a.x),o.y+i+h.y>l.y&&(u=o.y+i-l.y+h.y),o.y-u-a.y<0&&(u=o.y-a.y),(c||u)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,u]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Ze.mergeOptions({closePopupOnClick:!0}),Ze.include({openPopup:function(t,e,i){return this._initOverlay(tn,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),ki.include({bindPopup:function(t,e){return this._popup=this._initOverlay(tn,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:function(){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:function(t){return this._popup&&(this instanceof Ti||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Re(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Ii?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}
vendor: 31,418 bytes, line 2
2},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var en=Qi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Qi.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:function(t){Qi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Qi.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=se("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,s=this._container,o=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=s.offsetWidth,l=s.offsetHeight,c=I(this.options.offset),u=this._getAnchor();"top"===a?(e=h/2,i=l):"bottom"===a?(e=h/2,i=0):"center"===a?(e=h/2,i=l/2):"right"===a?(e=0,i=l/2):"left"===a?(e=h,i=l/2):r.x<o.x?(a="right",e=0,i=l/2):(a="left",e=h+2*(c.x+u.x),i=l/2),t=t.subtract(I(e,i,!0)).add(c).add(u),ue(s,"leaflet-tooltip-right"),ue(s,"leaflet-tooltip-left"),ue(s,"leaflet-tooltip-top"),ue(s,"leaflet-tooltip-bottom"),ce(s,"leaflet-tooltip-"+a),ve(s,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&fe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Ze.include({openTooltip:function(t,e,i){return this._initOverlay(en,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ki.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(en,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Ti||(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:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Pe(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),Pe(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)})}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var nn=Ei.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(re(e),e.appendChild(i.html)):e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=I(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ei.Default=Li;var sn=ki.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Dt.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:function(t){d(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),oe(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ae(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(he(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){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:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),s=0,o=i.length;s<o;s++)e=i[s].style.zIndex,i[s]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Dt.ielt9){fe(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var s=this._tiles[n];if(s.current&&s.loaded){var o=Math.min(1,(t-s.loaded)/200);fe(s.el,o),o<1?e=!0:(s.active?i=!0:this._onOpaqueTile(s),s.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(C(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=se("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(oe(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],s=this._map;return n||((n=this._levels[t]={}).el=se("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,s.getCenter(),s.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)oe(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var s=Math.floor(t/2),o=Math.floor(e/2),r=i-1,a=new A(+s,+o);a.z=+r;var h=this._tileCoordsToKey(a),l=this._tiles[h];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),r>n&&this._retainParent(s,o,r,n))},_retainChildren:function(t,e,i,n){for(var s=2*t;s<2*t+2;s++)for(var o=2*e;o<2*e+2;o++){var r=new A(s,o);r.z=i+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1<n&&this._retainChildren(s,o,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(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:function(t,e,i,n){var 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 o=this.options.updateWhenZooming&&s!==this._tileZoom;n&&!o||(this._tileZoom=s,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==s&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),s=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();Dt.any3d?ge(t.el,s,n):ve(t.el,s)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=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]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),s=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*n);return new D(s.subtract(o),s.add(o))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),s=this._pxBoundsToTileRange(n),o=s.getCenter(),r=[],a=this.options.keepBuffer,h=new D(s.getBottomLeft().subtract([a,-a]),s.getTopRight().add([a,-a]));if(!(isFinite(s.min.x)&&isFinite(s.min.y)&&isFinite(s.max.x)&&isFinite(s.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var c=this._tiles[l].coords;c.z===this._tileZoom&&h.contains(new A(c.x,c.y))||(this._tiles[l].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var u=s.min.y;u<=s.max.y;u++)for(var d=s.min.x;d<=s.max.x;d++){var p=new A(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:r.push(p)}}if(r.sort(function(t,e){return t.distanceTo(o)-e.distanceTo(o)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<r.length;d++)this._addTile(r[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),s=n.add(i);return[e.unproject(n,t.z),e.unproject(s,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new z(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new A(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(oe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ce(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=h,t.onmousemove=h,Dt.ielt9&&this.options.opacity<1&&fe(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),s=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),n(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&S(n(this._tileReady,this,t,null,o)),ve(o,i),this._tiles[s]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var s=this._tileCoordsToKey(t);(i=this._tiles[s])&&(i.loaded=+new Date,this._map._fadeAnimated?(fe(i.el,0),C(this._fadeFrame),this._fadeFrame=S(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(ce(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Dt.ielt9||!this._map._fadeAnimated?S(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?a(t.x,this._wrapX):t.x,this._wrapY?a(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new D(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var on=sn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=d(this,e)).detectRetina&&Dt.retina&&e.maxZoom>0?(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:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Pe(i,"load",n(this._tileOnLoad,this,e,i)),Pe(i,"error",n(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var i={r:Dt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=n),i["-y"]=n}return m(this._url,e(i,this.options))},_tileOnLoad:function(t,e){Dt.ielt9?setTimeout(n(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=h,e.onerror=h,!e.complete)){e.src=_;var i=this._tiles[t].coords;oe(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",_),sn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==_))return sn.prototype._tileReady.call(this,t,e,i)}});function rn(t,e){return new on(t,e)}var an=on.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var s in i)s in this.options||(n[s]=i[s]);var o=(i=d(this,i)).detectRetina&&Dt.retina?2:1,r=this.getTileSize();n.width=r.x*o,n.height=r.y*o,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,on.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=N(i.project(e[0]),i.project(e[1])),s=n.min,o=n.max,r=(this._wmsVersion>=1.3&&this._crs===Si?[s.y,s.x,o.y,o.x]:[s.x,s.y,o.x,o.y]).join(","),a=on.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});on.WMS=an,rn.wms=function(t,e){return new an(t,e)};var hn=ki.extend({options:{padding:.1},initialize:function(t){d(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ce(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),o=n.multiplyBy(-i).add(s).subtract(this._map._getNewPixelOrigin(t,e));Dt.any3d?ge(this._container,o,i):ve(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new D(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),ln=hn.extend({options:{tolerance:0},getEvents:function(){var t=hn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){hn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Pe(t,"mousemove",this._onMouseMove,this),Pe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){C(this._redrawRequest),delete this._ctx,oe(this._container),Ee(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){hn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Dt.retina?2:1;ve(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Dt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){hn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),s=[];for(i=0;i<n.length;i++){if(e=Number(n[i]),isNaN(e))return;s.push(e)}t.options._dashArray=s}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||S(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new D,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else 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:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,s,o,r=t._parts,a=r.length,h=this._ctx;if(a){for(h.beginPath(),i=0;i<a;i++){for(n=0,s=r[i].length;n<s;n++)o=r[i][n],h[n?"lineTo":"moveTo"](o.x,o.y);e&&h.closePath()}this._fillStroke(h,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),s=(Math.max(Math.round(t._radiusY),1)||n)/n;1!==s&&(i.save(),i.scale(1,s)),i.beginPath(),i.arc(e.x,e.y/s,n,0,2*Math.PI,!1),1!==s&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),s=this._drawFirst;s;s=s.next)(e=s.layer).options.interactive&&e._containsPoint(n)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(i=e);this._fireEvent(!!i&&[i],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(ue(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,s,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(s=i);s!==this._hoveredLayer&&(this._handleMouseOut(t),s&&(ce(this._container,"leaflet-interactive"),this._fireEvent([s],t,"mouseover"),this._hoveredLayer=s)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(n(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function cn(t){return Dt.canvas?new ln(t):null}var un=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),dn={_initContainer:function(){this._container=se("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(hn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=un("shape");ce(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=un("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;oe(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,s=t._container;s.stroked=!!n.stroke,s.filled=!!n.fill,n.stroke?(e||(e=t._stroke=un("stroke")),s.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(s.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=un("fill")),s.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(s.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ae(t._container)},_bringToBack:function(t){he(t._container)}},pn=Dt.vml?un:X,fn=hn.extend({_initContainer:function(){this._container=pn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){oe(this._container),Ee(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){hn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),ve(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=pn("path");t.options.className&&ce(e,t.options.className),t.options.interactive&&ce(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){oe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ae(t._path)},_bringToBack:function(t){he(t._path)}});function mn(t){return Dt.svg||Dt.vml?new fn(t):null}Dt.vml&&fn.include(dn),Ze.include({getRenderer:function(t){var 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:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&cn(t)||mn(t)}});var gn=ji.extend({initialize:function(t,e){ji.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
2,_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});fn.create=pn,fn.pointsToPath=K,Ri.geometryToLayer=Gi,Ri.coordsToLatLng=Hi,Ri.coordsToLatLngs=Fi,Ri.latLngToCoords=Wi,Ri.latLngsToCoords=qi,Ri.getFeature=Ui,Ri.asFeature=Zi,Ze.mergeOptions({boxZoom:!0});var vn=Qe.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ee(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){oe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Vt(),be(),this._startPoint=this._map.mouseEventToContainerPoint(t),Pe(document,{contextmenu:Re,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=se("div","leaflet-zoom-box",this._container),ce(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new D(this._point,this._startPoint),i=e.getSize();ve(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(oe(this._box),ue(this._container,"leaflet-crosshair")),Xt(),xe(),Ee(document,{contextmenu:Re,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var e=new z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ze.addInitHook("addHandler","boxZoom",vn),Ze.mergeOptions({doubleClickZoom:!0});var _n=Qe.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,s=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(s):e.setZoomAround(t.containerPoint,s)}});Ze.addInitHook("addHandler","doubleClickZoom",_n),Ze.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var yn=Qe.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ii(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))}ce(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ue(this._map._container,"leaflet-grab"),ue(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){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:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var 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:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,s=(n-e+i)%t+e-i,o=(n+e+i)%t-e-i,r=Math.abs(s+i)<Math.abs(o+i)?s:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var s=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,r=i.easeLinearity,a=s.multiplyBy(r/o),h=a.distanceTo([0,0]),l=Math.min(i.inertiaMaxSpeed,h),c=a.multiplyBy(l/h),u=l/(i.inertiaDeceleration*r),d=c.multiplyBy(-u/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),S(function(){e.panBy(d,{duration:u,easeLinearity:r,noMoveStart:!0,animate:!0})}
2)):e.fire("moveend")}}});Ze.addInitHook("addHandler","dragging",yn),Ze.mergeOptions({keyboard:!0,keyboardPanDelta:80});var bn=Qe.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Pe(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ee(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},s=this.keyCodes;for(e=0,i=s.left.length;e<i;e++)n[s.left[e]]=[-1*t,0];for(e=0,i=s.right.length;e<i;e++)n[s.right[e]]=[t,0];for(e=0,i=s.down.length;e<i;e++)n[s.down[e]]=[0,t];for(e=0,i=s.up.length;e<i;e++)n[s.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},s=this.keyCodes;for(e=0,i=s.zoomIn.length;e<i;e++)n[s.zoomIn[e]]=t;for(e=0,i=s.zoomOut.length;e<i;e++)n[s.zoomOut[e]]=-t},_addHooks:function(){Pe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ee(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(e=this._panKeys[i],t.shiftKey&&(e=I(e).multiplyBy(3)),n.options.maxBounds&&(e=n._limitOffset(I(e),n.options.maxBounds)),n.options.worldCopyJump){var s=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(e)));n.panTo(s)}else n.panBy(e)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}Re(t)}}});Ze.addInitHook("addHandler","keyboard",bn),Ze.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var xn=Qe.extend({addHooks:function(){Pe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ee(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Fe(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var s=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),s),Re(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),s=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,o=i?Math.ceil(s/i)*i:s,r=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});Ze.addInitHook("addHandler","scrollWheelZoom",xn);Ze.mergeOptions({tapHold:Dt.touchNative&&Dt.safari&&Dt.mobile,tapTolerance:15});var wn=Qe.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ee(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(Pe(document,"touchend",je),Pe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),600),Pe(document,"touchend touchcancel contextmenu",this._cancel,this),Pe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ee(document,"touchend",je),Ee(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ee(document,"touchend touchcancel contextmenu",this._cancel,this),Ee(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});Ze.addInitHook("addHandler","tapHold",wn),Ze.mergeOptions({touchZoom:Dt.touch,bounceAtZoomLimits:!0});var Mn=Qe.extend({addHooks:function(){ce(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ue(this._map._container,"leaflet-touch-zoom"),Ee(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend touchcancel",this._onTouchEnd,this),je(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),s=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(s)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
2Zoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var r=i._add(s)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),C(this._animRequest);var a=n(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=S(a,this,!0),je(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,C(this._animRequest),Ee(document,"touchmove",this._onTouchMove,this),Ee(document,"touchend touchcancel",this._onTouchEnd,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}});Ze.addInitHook("addHandler","touchZoom",Mn),Ze.BoxZoom=vn,Ze.DoubleClickZoom=_n,Ze.Drag=yn,Ze.Keyboard=bn,Ze.ScrollWheelZoom=xn,Ze.TapHold=wn,Ze.TouchZoom=Mn,t.Bounds=D,t.Browser=Dt,t.CRS=H,t.Canvas=ln,t.Circle=Ni,t.CircleMarker=Di,t.Class=P,t.Control=Ye,t.DivIcon=nn,t.DivOverlay=Qi,t.DomEvent=qe,t.DomUtil=ke,t.Draggable=ii,t.Evented=E,t.FeatureGroup=Ti,t.GeoJSON=Ri,t.GridLayer=sn,t.Handler=Qe,t.Icon=Ei,t.ImageOverlay=Ki,t.LatLng=R,t.LatLngBounds=z,t.Layer=ki,t.LayerGroup=Pi,t.LineUtil=yi,t.Map=Ze,t.Marker=Oi,t.Mixin=ti,t.Path=Ii,t.Point=A,t.PolyUtil=ai,t.Polygon=ji,t.Polyline=zi,t.Popup=tn,t.PosAnimation=Ue,t.Projection=wi,t.Rectangle=gn,t.Renderer=hn,t.SVG=fn,t.SVGOverlay=Ji,t.TileLayer=on,t.Tooltip=en,t.Transformation=U,t.Util=k,t.VideoOverlay=$i,t.bind=n,t.bounds=N,t.canvas=cn,t.circle=function(t,e,i){return new Ni(t,e,i)},t.circleMarker=function(t,e){return new Di(t,e)},t.control=Ve,t.divIcon=function(t){return new nn(t)},t.extend=e,t.featureGroup=function(t,e){return new Ti(t,e)},t.geoJSON=Vi,t.geoJson=Xi,t.gridLayer=function(t){return new sn(t)},t.icon=function(t){return new Ei(t)},t.imageOverlay=function(t,e,i){return new Ki(t,e,i)},t.latLng=G,t.latLngBounds=j,t.layerGroup=function(t,e){return new Pi(t,e)},t.map=function(t,e){return new Ze(t,e)},t.marker=function(t,e){return new Oi(t,e)},t.point=I,t.polygon=function(t,e){return new ji(t,e)},t.polyline=function(t,e){return new zi(t,e)},t.popup=function(t,e){return new tn(t,e)},t.rectangle=function(t,e){return new gn(t,e)},t.setOptions=d,t.stamp=o,t.svg=mn,t.svgOverlay=function(t,e,i){return new Ji(t,e,i)},t.tileLayer=rn,t.tooltip=function(t,e){return new en(t,e)},t.transformation=Z,t.version="1.9.4",t.videoOverlay=function(t,e,i){return new $i(t,e,i)};var Sn=window.L;t.noConflict=function(){return window.L=Sn,this},window.L=t}(e)},4709:function(t,e,i){"use strict";function n(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=1;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t("EPSG:5041","+title=WGS 84 / UPS North (E,N) +proj=stere +lat_0=90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t("EPSG:5042","+title=WGS 84 / UPS South (E,N) +proj=stere +lat_0=-90 +lon_0=0 +k=0.994 +x_0=2000000 +y_0=2000000 +datum=WGS84 +units=m"),t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}i.r(e),i.d(e,{default:function(){return Bi}}),i.dn(n);var s=6378137,o=.0066943799901413165,r=484813681109536e-20,a=Math.PI/2,h=1e-10,l=.017453292519943295,c=57.29577951308232,u=Math.PI/4,d=2*Math.PI,p=3.14159265359,f={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667},m={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.1},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}},g=/[\s_\-\/\(\)]/g;function v(t,e){if(t[e])return t[e];for(var i,n=Object.keys(t),s=e.toLowerCase().replace(g,""),o=-1;++o<n.length;)if((i=n[o]).toLowerCase().replace(g,"")===s)return t[i]}function _(t){var e,i,n,s={},o=t.split("+").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var i=e.split("=");return i.push(!0),t[i[0].toLowerCase()]=i[1],t},{}
2),r={proj:"projName",datum:"datumCode",rf:function(t){s.rf=parseFloat(t)},lat_0:function(t){s.lat0=t*l},lat_1:function(t){s.lat1=t*l},lat_2:function(t){s.lat2=t*l},lat_ts:function(t){s.lat_ts=t*l},lon_0:function(t){s.long0=t*l},lon_1:function(t){s.long1=t*l},lon_2:function(t){s.long2=t*l},alpha:function(t){s.alpha=parseFloat(t)*l},gamma:function(t){s.rectified_grid_angle=parseFloat(t)*l},lonc:function(t){s.longc=t*l},x_0:function(t){s.x0=parseFloat(t)},y_0:function(t){s.y0=parseFloat(t)},k_0:function(t){s.k0=parseFloat(t)},k:function(t){s.k0=parseFloat(t)},a:function(t){s.a=parseFloat(t)},b:function(t){s.b=parseFloat(t)},r:function(t){s.a=s.b=parseFloat(t)},r_a:function(){s.R_A=!0},zone:function(t){s.zone=parseInt(t,10)},south:function(){s.utmSouth=!0},towgs84:function(t){s.datum_params=t.split(",").map(function(t){return parseFloat(t)})},to_meter:function(t){s.to_meter=parseFloat(t)},units:function(t){s.units=t;var e=v(m,t);e&&(s.to_meter=e.to_meter)},from_greenwich:function(t){s.from_greenwich=t*l},pm:function(t){var e=v(f,t);s.from_greenwich=(e||parseFloat(t))*l},nadgrids:function(t){"@null"===t?s.datumCode="none":s.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(s.axis=t)},approx:function(){s.approx=!0},over:function(){s.over=!0}};for(e in o)i=o[e],e in r?"function"==typeof(n=r[e])?n(i):s[n]=i:s[e]=i;return"string"==typeof s.datumCode&&"WGS84"!==s.datumCode&&(s.datumCode=s.datumCode.toLowerCase()),s.projStr=t,s}i.dn(_);var y=class{static getId(t){const e=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return e&&e.length>=3?{authority:e[1],code:parseInt(e[2],10)}:null}static convertUnit(t,e="unit"){if(!t||t.length<3)return{type:e,name:"unknown",conversion_factor:null};const i=t[1],n=parseFloat(t[2])||null,s=t.find(t=>Array.isArray(t)&&"ID"===t[0]);return{type:e,name:i,conversion_factor:n,id:s?{authority:s[1],code:parseInt(s[2],10)}:null}}static convertAxis(t){const e=t[1]||"Unknown";let i;const n=e.match(/^\((.)\)$/);if(n){const e=n[1].toUpperCase();if("E"===e)i="east";else if("N"===e)i="north";else if("U"===e)i="up";else{if(!t[2])throw new Error(`Unknown axis abbreviation: ${e}`);i=t[2]}}else i=t[2]||"unknown";const s=t.find(t=>Array.isArray(t)&&"ORDER"===t[0]),o=s?parseInt(s[1],10):null,r=t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]));return{name:e,direction:i,unit:this.convertUnit(r),order:o}}static extractAxes(t){return t.filter(t=>Array.isArray(t)&&"AXIS"===t[0]).map(t=>this.convertAxis(t)).sort((t,e)=>(t.order||0)-(e.order||0))}static convert(t,e={}){switch(t[0]){case"PROJCRS":e.type="ProjectedCRS",e.name=t[1],e.base_crs=t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"BASEGEOGCRS"===t[0])):null,e.conversion=t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"CONVERSION"===t[0])):null;const i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(e.coordinate_system={type:i[1],axis:this.extractAxes(t)});const n=t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]);if(n){const t=this.convertUnit(n);e.coordinate_system.unit=t}e.id=this.getId(t);break;case"BASEGEOGCRS":case"GEOGCRS":case"GEODCRS":e.type="GEODCRS"===t[0]?"GeodeticCRS":"GeographicCRS",e.name=t[1];const s=t.find(t=>Array.isArray(t)&&("DATUM"===t[0]||"ENSEMBLE"===t[0]));if(s){const i=this.convert(s);"ENSEMBLE"===s[0]?e.datum_ensemble=i:e.datum=i;const n=t.find(t=>Array.isArray(t)&&"PRIMEM"===t[0]);n&&"Greenwich"!==n[1]&&(i.prime_meridian={name:n[1],longitude:parseFloat(n[2])})}e.coordinate_system={type:"ellipsoidal",axis:this.extractAxes(t)},e.id=this.getId(t);break;case"DATUM":e.type="GeodeticReferenceFrame",e.name=t[1],e.ellipsoid=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0])):null;break;case"ENSEMBLE":e.type="DatumEnsemble",e.name=t[1],e.members=t.filter(t=>Array.isArray(t)&&"MEMBER"===t[0]).map(t=>({type:"DatumEnsembleMember",name:t[1],id:this.getId(t)}));const o=t.find(t=>Array.isArray(t)&&"ENSEMBLEACCURACY"===t[0]);o&&(e.accuracy=parseFloat(o[1]));const r=t.find(t=>Array.isArray(t)&&"ELLIPSOID"===t[0]);r&&(e.ellipsoid=this.convert(r)),e.id=this.getId(t);break;case"ELLIPSOID":e.type="Ellipsoid",e.name=t[1],e.semi_major_axis=parseFloat(t[2]),e.inverse_flattening=parseFloat(t[3]),t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0])&&this.convert(t.find(t=>Array.isArray(t)&&"LENGTHUNIT"===t[0]),e);break;case"CONVERSION":e.type="Conversion",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&"PARAMETER"===t[0]).map(t=>this.convert(t));break;case"METHOD":e.type="Method",e.name=t[1],e.id=this.getId(t);break;case"PARAMETER":e.type="Parameter",e.name=t[1],e.value=parseFloat(t[2]),e.unit=this.convertUnit(t.find(t=>Array.isArray(t)&&("LENGTHUNIT"===t[0]||"ANGLEUNIT"===t[0]||"SCALEUNIT"===t[0]))),e.id=this.getId(t);break;case"BOUNDCRS":e.type="BoundCRS";const a=t.find(t=>Array.isArray(t)&&"SOURCECRS"===t[0]);if(a){const t=a.find(t=>Array.isArray(t));e.source_crs=t?this.convert(t):null}const h=t.find(t=>Array.isArray(t)&&"TARGETCRS"===t[0]);if(h){const t=h.find(t=>Array.isArray(t));e.target_crs=t?this.convert(t):null}const l=t.find(t=>Array.isArray(t)&&"ABRIDGEDTRANSFORMATION"===t[0]);e.transformation=l?this.convert(l):null;break;case"ABRIDGEDTRANSFORMATION":if(e.type="Transformation",e.name=t[1],e.method=t.find(t=>Array.isArray(t)&&"METHOD"===t[0])?this.convert(t.find(t=>Array.isArray(t)&&"METHOD"===t[0])):null,e.parameters=t.filter(t=>Array.isArray(t)&&("PARAMETER"===t[0]||"PARAMETERFILE"===t[0])).map(t=>"PARAMETER"===t[0]?this.convert(t):"PARAMETERFILE"===t[0]?{name:t[1],value:t[2],id:{authority:"EPSG",code:8656}}:void 0),7===e.parameters.length){const t=e.parameters[6];"Scale difference"===t.name&&(t.value=Math.round(1e12*(t.value-1))/1e6)}e.id=this.getId(t);break;case"AXIS":e.coordinate_system||(e.coordinate_system={type:"unspecified",axis:[]}),e.coordinate_system.axis.push(this.convertAxis(t));break;case"LENGTHUNIT":const c=this.convertUnit(t,"LinearUnit");e.coordinate_system&&e.coordinate_system.axis&&e.coordinate_system.axis.forEach(t=>{t.unit||(t.unit=c)}),c.conversion_factor&&1!==c.conversion_factor&&e.semi_major_axis&&(e.semi_major_axis={value:e.semi_major_axis,unit:c});break;default:e.keyword=t[0]}return e}},b=class extends y{static convert(t,e={}){return super.convert(t,e),e.coordinate_system&&"Cartesian"===e.coordinate_system.subtype&&delete e.coordinate_system,e.usage&&delete e.usage,e}},x=class extends y{static convert(t,e={}){super.convert(t,e);const i=t.find(t=>Array.isArray(t)&&"CS"===t[0]);i&&(e.coordinate_system={subtype:i[1],axis:this.extractAxes(t)});const n=t.find(t=>
2Array.isArray(t)&&"USAGE"===t[0]);if(n){const t=n.find(t=>Array.isArray(t)&&"SCOPE"===t[0]),i=n.find(t=>Array.isArray(t)&&"AREA"===t[0]),s=n.find(t=>Array.isArray(t)&&"BBOX"===t[0]);e.usage={},t&&(e.usage.scope=t[1]),i&&(e.usage.area=i[1]),s&&(e.usage.bbox=s.slice(1))}return e}};var w=1,M=/\s/,S=/[A-Za-z]/,C=/[A-Za-z84_]/,k=/[,\]]/,P=/[\d\.E\-\+]/;function T(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=w}function E(t,e,i){Array.isArray(e)&&(i.unshift(e),e=null);var n=e?{}:t,s=i.reduce(function(t,e){return L(e,t),t},n);e&&(t[e]=s)}function L(t,e){if(Array.isArray(t)){var i=t.shift();if("PARAMETER"===i&&(i=t.shift()),1===t.length)return Array.isArray(t[0])?(e[i]={},void L(t[0],e[i])):void(e[i]=t[0]);if(t.length)if("TOWGS84"!==i){if("AXIS"===i)return i in e||(e[i]=[]),void e[i].push(t);var n;switch(Array.isArray(i)||(e[i]={}),i){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[i]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&L(t[2],e[i]));case"SPHEROID":case"ELLIPSOID":return e[i]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&L(t[3],e[i]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void E(e,i,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],E(e,i,t),void(e[i].type=i);default:for(n=-1;++n<t.length;)if(!Array.isArray(t[n]))return L(t,e[i]);return E(e,i,t)}}else e[i]=t;else e[i]=!0}else e[t]=!0}function A(t){return.017453292519943295*t}function O(t){const e=(t.projName||"").toLowerCase().replace(/_/g," ");void 0===t.long0&&void 0!==t.longc&&(t.long0=t.longc),t.lat_ts||!t.lat1||"stereographic south pole"!==e&&"polar stereographic (variant b)"!==e?t.lat_ts||!t.lat0||"polar stereographic"!==e&&"polar stereographic (variant a)"!==e||(t.lat_ts=t.lat0,t.lat0=A(t.lat0>0?90:-90),delete t.lat1):(t.lat0=A(t.lat1>0?90:-90),t.lat_ts=t.lat1,delete t.lat1)}function I(t){let e={units:null,to_meter:void 0};return"string"==typeof t?(e.units=t.toLowerCase(),"metre"===e.units&&(e.units="meter"),"meter"===e.units&&(e.to_meter=1)):t&&t.name&&(e.units=t.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.to_meter=t.conversion_factor),e}function D(t){return"object"==typeof t?t.value*t.unit.conversion_factor:t}function N(t,e){t.ellipsoid.radius?(e.a=t.ellipsoid.radius,e.rf=0):(e.a=D(t.ellipsoid.semi_major_axis),void 0!==t.ellipsoid.inverse_flattening?e.rf=t.ellipsoid.inverse_flattening:void 0!==t.ellipsoid.semi_major_axis&&void 0!==t.ellipsoid.semi_minor_axis&&(e.rf=e.a/(e.a-D(t.ellipsoid.semi_minor_axis))))}function z(t,e={}){return t&&"object"==typeof t?"BoundCRS"===t.type?(z(t.source_crs,e),t.transformation&&(t.transformation.method&&"NTv2"===t.transformation.method.name?e.nadgrids=t.transformation.parameters[0].value:e.datum_params=t.transformation.parameters.map(t=>t.value)),e):(Object.keys(t).forEach(i=>{const n=t[i];if(null!==n)switch(i){case"name":if(e.srsCode)break;e.name=n,e.srsCode=n;break;case"type":"GeographicCRS"===n?e.projName="longlat":"GeodeticCRS"===n?t.coordinate_system&&"Cartesian"===t.coordinate_system.subtype?e.projName="geocent":e.projName="longlat":"ProjectedCRS"===n&&t.conversion&&t.conversion.method&&(e.projName=t.conversion.method.name);break;case"datum":case"datum_ensemble":n.ellipsoid&&(e.ellps=n.ellipsoid.name,N(n,e)),n.prime_meridian&&(e.from_greenwich=n.prime_meridian.longitude*Math.PI/180);break;case"ellipsoid":e.ellps=n.name,N(n,e);break;case"prime_meridian":e.long0=(n.longitude||0)*Math.PI/180;break;case"coordinate_system":if(n.axis){const t={east:"e",north:"n",west:"w",south:"s",up:"u",down:"d",geocentricx:"e",geocentricy:"n",geocentricz:"u"},i=n.axis.map(e=>t[e.direction.toLowerCase()]);if(i.every(Boolean)&&(e.axis=i.join(""),2===e.axis.length&&(e.axis+="u")),n.unit){const{units:t,to_meter:i}=I(n.unit);e.units=t,e.to_meter=i}else if(n.axis[0]&&n.axis[0].unit){const{units:t,to_meter:i}=I(n.axis[0].unit);e.units=t,e.to_meter=i}}break;case"id":n.authority&&n.code&&(e.title=n.authority+":"+n.code);break;case"conversion":n.method&&n.method.name&&(e.projName=n.method.name),n.parameters&&n.parameters.forEac
2h(t=>{const i=t.name.toLowerCase().replace(/\s+/g,"_"),n=t.value;t.unit&&t.unit.conversion_factor?e[i]=n*t.unit.conversion_factor:"degree"===t.unit?e[i]=n*Math.PI/180:e[i]=n});break;case"unit":n.name&&(e.units=n.name.toLowerCase(),"metre"===e.units&&(e.units="meter")),n.conversion_factor&&(e.to_meter=n.conversion_factor);break;case"base_crs":z(n,e),e.datumCode=n.id?n.id.authority+"_"+n.id.code:n.name}}),void 0!==e.latitude_of_false_origin&&(e.lat0=e.latitude_of_false_origin),void 0!==e.longitude_of_false_origin&&(e.long0=e.longitude_of_false_origin),void 0!==e.latitude_of_standard_parallel&&(e.lat0=e.latitude_of_standard_parallel,e.lat1=e.latitude_of_standard_parallel),void 0!==e.latitude_of_1st_standard_parallel&&(e.lat1=e.latitude_of_1st_standard_parallel),void 0!==e.latitude_of_2nd_standard_parallel&&(e.lat2=e.latitude_of_2nd_standard_parallel),void 0!==e.latitude_of_projection_centre&&(e.lat0=e.latitude_of_projection_centre),void 0!==e.longitude_of_projection_centre&&(e.longc=e.longitude_of_projection_centre),void 0!==e.easting_at_false_origin&&(e.x0=e.easting_at_false_origin),void 0!==e.northing_at_false_origin&&(e.y0=e.northing_at_false_origin),void 0!==e.latitude_of_natural_origin&&(e.lat0=e.latitude_of_natural_origin),void 0!==e.longitude_of_natural_origin&&(e.long0=e.longitude_of_natural_origin),void 0!==e.longitude_of_origin&&(e.long0=e.longitude_of_origin),void 0!==e.false_easting&&(e.x0=e.false_easting),e.easting_at_projection_centre&&(e.x0=e.easting_at_projection_centre),void 0!==e.false_northing&&(e.y0=e.false_northing),e.northing_at_projection_centre&&(e.y0=e.northing_at_projection_centre),void 0!==e.standard_parallel_1&&(e.lat1=e.standard_parallel_1),void 0!==e.standard_parallel_2&&(e.lat2=e.standard_parallel_2),void 0!==e.scale_factor_at_natural_origin&&(e.k0=e.scale_factor_at_natural_origin),void 0!==e.scale_factor_at_projection_centre&&(e.k0=e.scale_factor_at_projection_centre),void 0!==e.scale_factor_on_pseudo_standard_parallel&&(e.k0=e.scale_factor_on_pseudo_standard_parallel),void 0!==e.azimuth&&(e.alpha=e.azimuth),void 0!==e.azimuth_at_projection_centre&&(e.alpha=e.azimuth_at_projection_centre),e.angle_from_rectified_to_skew_grid&&(e.rectified_grid_angle=e.angle_from_rectified_to_skew_grid),O(e),e):t}T.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;M.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case w:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},T.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(k.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},T.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=w)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=w,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},T.prototype.number=function(t){if(!P.test(t)){if(k.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},T.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},T.prototype.keyword=function(t){if(C.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=w)}if(!k.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},T.prototype.neutral=function(t){if(S.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(P.test(t))return this.word=t,void(this.state=3);if(!k.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},T.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)},i.dn(B);
2var j=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function R(t){for(var e=Object.keys(t),i=0,n=e.length;i<n;++i){var s=e[i];-1!==j.indexOf(s)&&G(t[s]),"object"==typeof t[s]&&R(t[s])}}function G(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var i="",n=0,s=t.AXIS.length;n<s;++n){var o=[t.AXIS[n][0].toLowerCase(),t.AXIS[n][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?i+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?i+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?i+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(i+="w")}2===i.length&&(i+="u"),3===i.length&&(t.axis=i)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var r=t.GEOGCS;function a(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(r=t),r&&(r.PRIMEM&&r.PRIMEM.convert&&(t.from_greenwich=A(r.PRIMEM.convert)),r.DATUM?t.datumCode=r.DATUM.name.toLowerCase():t.datumCode=r.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),r.DATUM&&r.DATUM.SPHEROID&&(t.ellps=r.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=r.DATUM.SPHEROID.a,t.rf=parseFloat(r.DATUM.SPHEROID.rf)),r.DATUM&&r.DATUM.TOWGS84&&(t.datum_params=r.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a),t.rectified_grid_angle&&(t.rectified_grid_angle=A(t.rectified_grid_angle)),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",A],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",A],["x0","false_easting",a],["y0","false_northing",a],["long0","central_meridian",A],["lat0","latitude_of_origin",A],["lat0","standard_parallel_1",A],["lat1","standard_parallel_1",A],["lat2","standard_parallel_2",A],["azimuth","Azimuth"],["alpha","azimuth",A],["srsCode","name"]].forEach(function(e){return function(t,e){var i=e[0],n=e[1];!(i in t)&&n in t&&(t[i]=t[n],3===e.length&&(t[i]=e[2](t[i])))}(t,e)}),O(t)}function B(t){if("object"==typeof t)return z(t);const e=function(t){const e=t.toUpperCase();return e.includes("PROJCRS")||e.includes("GEOGCRS")||e.includes("BOUNDCRS")||e.includes("VERTCRS")||e.includes("LENGTHUNIT")||e.includes("ANGLEUNIT")||e.includes("SCALEUNIT")?"WKT2":(e.includes("PROJCS")||e.includes("GEOGCS")||e.includes("LOCAL_CS")||e.includes("VERT_CS")||e.includes("UNIT"),"WKT1")}(t);var i=new T(t).output();if("WKT2"===e)return z(function(t){const e=function(t){return t.find(t=>
2Array.isArray(t)&&"USAGE"===t[0])?"2019":(t.find(t=>Array.isArray(t)&&"CS"===t[0])||"BOUNDCRS"===t[0]||"PROJCRS"===t[0]||t[0],"2015")}(t);return("2019"===e?x:b).convert(t)}(i));var n=i[0],s={};return L(i,s),R(s),s[n]}function H(t){var e=this;if(2===arguments.length){var i=arguments[1];"string"==typeof i?"+"===i.charAt(0)?H[t]=_(arguments[1]):H[t]=B(arguments[1]):i&&"object"==typeof i&&!("projName"in i)?H[t]=B(arguments[1]):(H[t]=i,i||delete H[t])}else if(1===arguments.length){if(Array.isArray(t))return t.map(function(t){return Array.isArray(t)?H.apply(e,t):H(t)});if("string"==typeof t){if(t in H)return H[t]}else"EPSG"in t?H["EPSG:"+t.EPSG]=t:"ESRI"in t?H["ESRI:"+t.ESRI]=t:"IAU2000"in t?H["IAU2000:"+t.IAU2000]=t:console.log(t);return}}n(H);var F=H,W=["3857","900913","3785","102113"];function q(t,e){var i,n;if(t=t||{},!e)return t;for(n in e)void 0!==(i=e[n])&&(t[n]=i);return t}function U(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)}function Z(t){return t<0?-1:1}function Y(t,e){return e||Math.abs(t)<=p?t:t-Z(t)*d}function V(t,e,i){var n=t*i,s=.5*t;return n=Math.pow((1-n)/(1+n),s),Math.tan(.5*(a-e))/n}function X(t,e){for(var i,n,s=.5*t,o=a-2*Math.atan(e),r=0;r<=15;r++)if(i=t*Math.sin(o),o+=n=a-2*Math.atan(e*Math.pow((1-i)/(1+i),s))-o,Math.abs(n)<=1e-10)return o;return-9999}function K(t){return t}i.dn(q),i.dn(U),i.dn(Z),i.dn(Y),i.dn(V),i.dn(X);var $=["longlat","identity"],J=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=U(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,i,n=t.x,s=t.y;if(s*c>90&&s*c<-90&&n*c>180&&n*c<-180)return null;if(Math.abs(Math.abs(s)-a)<=h)return null;if(this.sphere)e=this.x0+this.a*this.k0*Y(n-this.long0,this.over),i=this.y0+this.a*this.k0*Math.log(Math.tan(u+.5*s));else{var o=Math.sin(s),r=V(this.e,s,o);e=this.x0+this.a*this.k0*Y(n-this.long0,this.over),i=this.y0-this.a*this.k0*Math.log(r)}return t.x=e,t.y=i,t},inverse:function(t){var e,i,n=t.x-this.x0,s=t.y-this.y0;if(this.sphere)i=a-2*Math.atan(Math.exp(-s/(this.a*this.k0)));else{var o=Math.exp(-s/(this.a*this.k0));if(-9999===(i=X(this.e,o)))return null}return e=Y(this.long0+n/(this.a*this.k0),this.over),t.x=e,t.y=i,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","Mercator_Variant_A","merc"]},{init:function(){},forward:K,inverse:K,names:$}],Q={},tt=[];function et(t,e){var i=tt.length;return t.names?(tt[i]=t,t.names.forEach(function(t){Q[t.toLowerCase()]=i}),this):(console.log(e),!0)}function it(t){return t.replace(/[-\(\)\s]+/g," ").trim().replace(/ /g,"_")}var nt={start:function(){J.forEach(et)},add:et,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==Q[e]&&tt[Q[e]]||(e=it(e))in Q&&tt[Q[e]]?tt[Q[e]]:void 0}},st={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"}
2,evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"},WGS84:{a:6378137,rf:298.257223563,ellipseName:"WGS 84"},sphere:{a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}};const ot=st.WGS84;var rt={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},mgi:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"},EPSG_5451:{towgs84:"6.41,-49.05,-11.28,1.5657,0.5242,6.9718,-5.7649"},IGNF_LURESG:{towgs84:"-192.986,13.673,-39.309,-0.4099,-2.9332,2.6881,0.43"},EPSG_4614:{towgs84:"-119.4248,-303.65872,-11.00061,1.164298,0.174458,1.096259,3.657065"},EPSG_4615:{towgs84:"-494.088,-312.129,279.877,-1.423,-1.013,1.59,-0.748"},ESRI_37241:{towgs84:"-76.822,257.457,-12.817,2.136,-0.033,-2.392,-0.031"},ESRI_37249:{towgs84:"-440.296,58.548,296.265,1.128,10.202,4.559,-0.438"},ESRI_37245:{towgs84:"-511.151,-181.269,139.609,1.05,2.703,1.798,3.071"},EPSG_4178:{towgs84:"24.9,-126.4,-93.2,-0.063,-0.247,-0.041,1.01"},EPSG_4622:{towgs84:"-472.29,-5.63,-304.12,0.4362,-0.8374,0.2563,1.8984"},EPSG_4625:{towgs84:"126.93,547.94,130.41,-2.7867,5.1612,-0.8584,13.8227"},EPSG_5252:{towgs84:"0.023,0.036,-0.068,0.00176,0.00912,-0.01136,0.00439"},EPSG_4314:{towgs84:"597.1,71.4,412.1,0.894,0.068,-1.563,7.58"},EPSG_4282:{towgs84:"-178.3,-316.7,-131.5,5.278,6.077,10.979,19.166"}
2,EPSG_4231:{towgs84:"-83.11,-97.38,-117.22,0.005693,-0.044698,0.044285,0.1218"},EPSG_4274:{towgs84:"-230.994,102.591,25.199,0.633,-0.239,0.9,1.95"},EPSG_4134:{towgs84:"-180.624,-225.516,173.919,-0.81,-1.898,8.336,16.71006"},EPSG_4254:{towgs84:"18.38,192.45,96.82,0.056,-0.142,-0.2,-0.0013"},EPSG_4159:{towgs84:"-194.513,-63.978,-25.759,-3.4027,3.756,-3.352,-0.9175"},EPSG_4687:{towgs84:"0.072,-0.507,-0.245,0.0183,-0.0003,0.007,-0.0093"},EPSG_4227:{towgs84:"-83.58,-397.54,458.78,-17.595,-2.847,4.256,3.225"},EPSG_4746:{towgs84:"599.4,72.4,419.2,-0.062,-0.022,-2.723,6.46"},EPSG_4745:{towgs84:"612.4,77,440.2,-0.054,0.057,-2.797,2.55"},EPSG_6311:{towgs84:"8.846,-4.394,-1.122,-0.00237,-0.146528,0.130428,0.783926"},EPSG_4289:{towgs84:"565.7381,50.4018,465.2904,-0.395026,0.330772,-1.876073,4.07244"},EPSG_4230:{towgs84:"-68.863,-134.888,-111.49,-0.53,-0.14,0.57,-3.4"},EPSG_4154:{towgs84:"-123.02,-158.95,-168.47"},EPSG_4156:{towgs84:"570.8,85.7,462.8,4.998,1.587,5.261,3.56"},EPSG_4299:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4179:{towgs84:"33.4,-146.6,-76.3,-0.359,-0.053,0.844,-0.84"},EPSG_4313:{towgs84:"-106.8686,52.2978,-103.7239,0.3366,-0.457,1.8422,-1.2747"},EPSG_4194:{towgs84:"163.511,127.533,-159.789"},EPSG_4195:{towgs84:"105,326,-102.5"},EPSG_4196:{towgs84:"-45,417,-3.5"},EPSG_4611:{towgs84:"-162.619,-276.959,-161.764,0.067753,-2.243648,-1.158828,-1.094246"},EPSG_4633:{towgs84:"137.092,131.66,91.475,-1.9436,-11.5993,-4.3321,-7.4824"},EPSG_4641:{towgs84:"-408.809,366.856,-412.987,1.8842,-0.5308,2.1655,-121.0993"},EPSG_4643:{towgs84:"-480.26,-438.32,-643.429,16.3119,20.1721,-4.0349,-111.7002"},EPSG_4300:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4188:{towgs84:"482.5,-130.6,564.6,-1.042,-0.214,-0.631,8.15"},EPSG_4660:{towgs84:"982.6087,552.753,-540.873,6.681627,-31.611492,-19.848161,16.805"},EPSG_4662:{towgs84:"97.295,-263.247,310.882,-1.5999,0.8386,3.1409,13.3259"},EPSG_3906:{towgs84:"577.88891,165.22205,391.18289,4.9145,-0.94729,-13.05098,7.78664"},EPSG_4307:{towgs84:"-209.3622,-87.8162,404.6198,0.0046,3.4784,0.5805,-1.4547"},EPSG_6892:{towgs84:"-76.269,-16.683,68.562,-6.275,10.536,-4.286,-13.686"},EPSG_4690:{towgs84:"221.597,152.441,176.523,2.403,1.3893,0.884,11.4648"},EPSG_4691:{towgs84:"218.769,150.75,176.75,3.5231,2.0037,1.288,10.9817"},EPSG_4629:{towgs84:"72.51,345.411,79.241,-1.5862,-0.8826,-0.5495,1.3653"},EPSG_4630:{towgs84:"165.804,216.213,180.26,-0.6251,-0.4515,-0.0721,7.4111"},EPSG_4692:{towgs84:"217.109,86.452,23.711,0.0183,-0.0003,0.007,-0.0093"},EPSG_9333:{towgs84:"0,0,0,-0.008393,0.000749,-0.010276,0"},EPSG_9059:{towgs84:"0,0,0"},EPSG_4312:{towgs84:"601.705,84.263,485.227,4.7354,1.3145,5.393,-2.3887"},EPSG_4123:{towgs84:"-96.062,-82.428,-121.753,4.801,0.345,-1.376,1.496"},EPSG_4309:{towgs84:"-124.45,183.74,44.64,-0.4384,0.5446,-0.9706,-2.1365"},ESRI_104106:{towgs84:"-283.088,-70.693,117.445,-1.157,0.059,-0.652,-4.058"}
2,EPSG_4281:{towgs84:"-219.247,-73.802,269.529"},EPSG_4322:{towgs84:"0,0,4.5"},EPSG_4324:{towgs84:"0,0,1.9"},EPSG_4284:{towgs84:"43.822,-108.842,-119.585,1.455,-0.761,0.737,0.549"},EPSG_4277:{towgs84:"446.448,-125.157,542.06,0.15,0.247,0.842,-20.489"},EPSG_4207:{towgs84:"-282.1,-72.2,120,-1.529,0.145,-0.89,-4.46"},EPSG_4688:{towgs84:"347.175,1077.618,2623.677,33.9058,-70.6776,9.4013,186.0647"},EPSG_4689:{towgs84:"410.793,54.542,80.501,-2.5596,-2.3517,-0.6594,17.3218"},EPSG_4720:{towgs84:"0,0,4.5"},EPSG_4273:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},EPSG_4240:{towgs84:"204.64,834.74,293.8"},EPSG_4817:{towgs84:"278.3,93,474.5,7.889,0.05,-6.61,6.21"},ESRI_104131:{towgs84:"426.62,142.62,460.09,4.98,4.49,-12.42,-17.1"},EPSG_4265:{towgs84:"-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68"},EPSG_4263:{towgs84:"-111.92,-87.85,114.5,1.875,0.202,0.219,0.032"},EPSG_4298:{towgs84:"-689.5937,623.84046,-65.93566,-0.02331,1.17094,-0.80054,5.88536"},EPSG_4270:{towgs84:"-253.4392,-148.452,386.5267,0.15605,0.43,-0.1013,-0.0424"},EPSG_4229:{towgs84:"-121.8,98.1,-10.7"},EPSG_4220:{towgs84:"-55.5,-348,-229.2"},EPSG_4214:{towgs84:"12.646,-155.176,-80.863"},EPSG_4232:{towgs84:"-345,3,223"},EPSG_4238:{towgs84:"-1.977,-13.06,-9.993,0.364,0.254,0.689,-1.037"},EPSG_4168:{towgs84:"-170,33,326"},EPSG_4131:{towgs84:"199,931,318.9"},EPSG_4152:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_5228:{towgs84:"572.213,85.334,461.94,4.9732,1.529,5.2484,3.5378"},EPSG_8351:{towgs84:"485.021,169.465,483.839,7.786342,4.397554,4.102655,0"},EPSG_4683:{towgs84:"-127.62,-67.24,-47.04,-3.068,4.903,1.578,-1.06"},EPSG_4133:{towgs84:"0,0,0"},EPSG_7373:{towgs84:"0.819,-0.5762,-1.6446,-0.00378,-0.03317,0.00318,0.0693"},EPSG_9075:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9072:{towgs84:"-0.9102,2.0141,0.5602,0.029039,0.010065,0.010101,0"},EPSG_9294:{towgs84:"1.16835,-1.42001,-2.24431,-0.00822,-0.05508,0.01818,0.23388"},EPSG_4212:{towgs84:"-267.434,173.496,181.814,-13.4704,8.7154,7.3926,14.7492"},EPSG_4191:{towgs84:"-44.183,-0.58,-38.489,2.3867,2.7072,-3.5196,-8.2703"},EPSG_4237:{towgs84:"52.684,-71.194,-13.975,-0.312,-0.1063,-0.3729,1.0191"},EPSG_4740:{towgs84:"-1.08,-0.27,-0.9"},EPSG_4124:{towgs84:"419.3836,99.3335,591.3451,0.850389,1.817277,-7.862238,-0.99496"},EPSG_5681:{towgs84:"584.9636,107.7175,413.8067,1.1155,0.2824,-3.1384,7.9922"},EPSG_4141:{towgs84:"23.772,17.49,17.859,-0.3132,-1.85274,1.67299,-5.4262"},EPSG_4204:{towgs84:"-85.645,-273.077,-79.708,2.289,-1.421,2.532,3.194"},EPSG_4319:{towgs84:"226.702,-193.337,-35.371,-2.229,-4.391,9.238,0.9798"},EPSG_4200:{towgs84:"24.82,-131.21,-82.66"},EPSG_4130:{towgs84:"0,0,0"},EPSG_4127:{towgs84:"-82.875,-57.097,-156.768,-2.158,1.524,-0.982,-0.359"},EPSG_4149:{towgs84:"674.374,15.056,405.346"},EPSG_4617:{towgs84:"-0.991,1.9072,0.5129,0.02579,0.00965,0.01166,0"},EPSG_4663:{towgs84:"-210.502,-66.902,-48.476,2.094,-15.067,-5.817,0.485"},EPSG_4664:{towgs84:"-211.939,137.626,58.3,-0.089,0.251,0.079,0.384"},EPSG_4665:{towgs84:"-105.854,165.589,-38.312,-0.003,-0.026,0.024,-0.048"},EPSG_4666:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},EPSG_4756:{towgs84:"-192.873,-39.382,-111.202,-0.00205,-0.0005,0.00335,0.0188"},EPSG_4723:{towgs84:"-179.483,-69.379,-27.584,-7.862,8.163,6.042,-13.925"},EPSG_4726:{towgs84:"8.853,-52.644,180.304,-0.393,-2.323,2.96,-24.081"},EPSG_4267:{towgs84:"-8.0,160.0,176.0"},EPSG_5365:{towgs84:"-0.16959,0.35312,0.51846,0.03385,-0.16325,0.03446,0.03693"},EPSG_4218:{towgs84:"304.5,306.5,-318.1"},EPSG_4242:{towgs84:"-33.722,153.789,94.959,-8.581,-4.478,4.54,8.95"},EPSG_4216:{towgs84:"-292.295,248.758,429.447,4.9971,2.99,6.6906,1.0289"},ESRI_104105:{towgs84:"631.392,-66.551,481.442,1.09,-4.445,-4.487,-4.43"},ESRI_104129:{towgs84:"0,0,0"},EPSG_4673:{towgs84:"174.05,-25.49,112.57"},EPSG_4202:{towgs84:"-124,-60,154"},EPSG_4203:{towgs84:"-117.763,-51.51,139.061,0.292,0.443,0.277,-0.191"},EPSG_3819:{towgs84:"595.48,121.69,515.35,4.115,-2.9383,0.853,-3.408"},EPSG_8694:{towgs84:"-93.799,-132.737,-219.073,-1.844,0.648,-6.37,-0.169"},EPSG_4145:{towgs84:"275.57,676.78,229.6"},EPSG_4283:{towgs84:"0.06155,-0.01087,-0.04019,0.039492,0.032722,0.032898,-0.009994"},EPSG_4317:{towgs84:"2.3287,-147.0425,-92.0802,-0.309248,0.324822,0.497299,5.689063"},EPSG_4272:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993"},EPSG_4248:{towgs84:"-307.7,265.3,-363.5"},EPSG_5561:{towgs84:"24,-121,-76"},EPSG_5233:{towgs84:"-0.293,766.95,87.713,0.195704,1.695068,3.473016,-0.039338"},ESRI_104130:{towgs84:"-86,-98,-119"}
2,ESRI_104102:{towgs84:"682,-203,480"},ESRI_37207:{towgs84:"7,-10,-26"},EPSG_4675:{towgs84:"59.935,118.4,-10.871"},ESRI_104109:{towgs84:"-89.121,-348.182,260.871"},ESRI_104112:{towgs84:"-185.583,-230.096,281.361"},ESRI_104113:{towgs84:"25.1,-275.6,222.6"},IGNF_WGS72G:{towgs84:"0,12,6"},IGNF_NTFG:{towgs84:"-168,-60,320"},IGNF_EFATE57G:{towgs84:"-127,-769,472"},IGNF_PGP50G:{towgs84:"324.8,153.6,172.1"},IGNF_REUN47G:{towgs84:"94,-948,-1262"},IGNF_CSG67G:{towgs84:"-186,230,110"},IGNF_GUAD48G:{towgs84:"-467,-16,-300"},IGNF_TAHI51G:{towgs84:"162,117,154"},IGNF_TAHAAG:{towgs84:"65,342,77"},IGNF_NUKU72G:{towgs84:"84,274,65"},IGNF_PETRELS72G:{towgs84:"365,194,166"},IGNF_WALL78G:{towgs84:"253,-133,-127"},IGNF_MAYO50G:{towgs84:"-382,-59,-262"},IGNF_TANNAG:{towgs84:"-139,-967,436"},IGNF_IGN72G:{towgs84:"-13,-348,292"},IGNF_ATIGG:{towgs84:"1118,23,66"},IGNF_FANGA84G:{towgs84:"150.57,158.33,118.32"},IGNF_RUSAT84G:{towgs84:"202.13,174.6,-15.74"},IGNF_KAUE70G:{towgs84:"126.74,300.1,-75.49"},IGNF_MOP90G:{towgs84:"-10.8,-1.8,12.77"},IGNF_MHPF67G:{towgs84:"338.08,212.58,-296.17"},IGNF_TAHI79G:{towgs84:"160.61,116.05,153.69"},IGNF_ANAA92G:{towgs84:"1.5,3.84,4.81"},IGNF_MARQUI72G:{towgs84:"330.91,-13.92,58.56"},IGNF_APAT86G:{towgs84:"143.6,197.82,74.05"},IGNF_TUBU69G:{towgs84:"237.17,171.61,-77.84"},IGNF_STPM50G:{towgs84:"11.363,424.148,373.13"},EPSG_4150:{towgs84:"674.374,15.056,405.346"},EPSG_4754:{towgs84:"-208.4058,-109.8777,-2.5764"},ESRI_104101:{towgs84:"372.87,149.23,585.29"},EPSG_4693:{towgs84:"0,-0.15,0.68"},EPSG_6207:{towgs84:"293.17,726.18,245.36"},EPSG_4153:{towgs84:"-133.63,-157.5,-158.62"},EPSG_4132:{towgs84:"-241.54,-163.64,396.06"},EPSG_4221:{towgs84:"-154.5,150.7,100.4"},EPSG_4266:{towgs84:"-80.7,-132.5,41.1"},EPSG_4193:{towgs84:"-70.9,-151.8,-41.4"},EPSG_5340:{towgs84:"-0.41,0.46,-0.35"},EPSG_4246:{towgs84:"-294.7,-200.1,525.5"},EPSG_4318:{towgs84:"-3.2,-5.7,2.8"},EPSG_4121:{towgs84:"-199.87,74.79,246.62"},EPSG_4223:{towgs84:"-260.1,5.5,432.2"},EPSG_4158:{towgs84:"-0.465,372.095,171.736"},EPSG_4285:{towgs84:"-128.16,-282.42,21.93"},EPSG_4613:{towgs84:"-404.78,685.68,45.47"},EPSG_4607:{towgs84:"195.671,332.517,274.607"},EPSG_4475:{towgs84:"-381.788,-57.501,-256.673"},EPSG_4208:{towgs84:"-157.84,308.54,-146.6"},EPSG_4743:{towgs84:"70.995,-335.916,262.898"},EPSG_4710:{towgs84:"-323.65,551.39,-491.22"},EPSG_7881:{towgs84:"-0.077,0.079,0.086"},EPSG_4682:{towgs84:"283.729,735.942,261.143"},EPSG_4739:{towgs84:"-156,-271,-189"},EPSG_4679:{towgs84:"-80.01,253.26,291.19"},EPSG_4750:{towgs84:"-56.263,16.136,-22.856"},EPSG_4644:{towgs84:"-10.18,-350.43,291.37"},EPSG_4695:{towgs84:"-103.746,-9.614,-255.95"},EPSG_4292:{towgs84:"-355,21,72"},EPSG_4302:{towgs84:"-61.702,284.488,472.052"},EPSG_4143:{towgs84:"-124.76,53,466.79"},EPSG_4606:{towgs84:"-153,153,307"},EPSG_4699:{towgs84:"-770.1,158.4,-498.2"},EPSG_4247:{towgs84:"-273.5,110.6,-357.9"},EPSG_4160:{towgs84:"8.88,184.86,106.69"},EPSG_4161:{towgs84:"-233.43,6.65,173.64"},EPSG_9251:{towgs84:"-9.5,122.9,138.2"},EPSG_9253:{towgs84:"-78.1,101.6,133.3"},EPSG_4297:{towgs84:"-198.383,-240.517,-107.909"},EPSG_4269:{towgs84:"0,0,0"},EPSG_4301:{towgs84:"-147,506,687"},EPSG_4618:{towgs84:"-59,-11,-52"},EPSG_4612:{towgs84:"0,0,0"},EPSG_4678:{towgs84:"44.585,-131.212,-39.544"},EPSG_4250:{towgs84:"-130,29,364"},EPSG_4144:{towgs84:"214,804,268"},EPSG_4147:{towgs84:"-17.51,-108.32,-62.39"},EPSG_4259:{towgs84:"-254.1,-5.36,-100.29"},EPSG_4164:{towgs84:"-76,-138,67"},EPSG_4211:{towgs84:"-378.873,676.002,-46.255"},EPSG_4182:{towgs84:"-422.651,-172.995,84.02"},EPSG_4224:{towgs84:"-143.87,243.37,-33.52"},EPSG_4225:{towgs84:"-205.57,168.77,-4.12"},EPSG_5527:{towgs84:"-67.35,3.88,-38.22"},EPSG_4752:{towgs84:"98,390,-22"},EPSG_4310:{towgs84:"-30,190,89"},EPSG_9248:{towgs84:"-192.26,65.72,132.08"},EPSG_4680:{towgs84:"124.5,-63.5,-281"},EPSG_4701:{towgs84:"-79.9,-158,-168.9"},EPSG_4706:{towgs84:"-146.21,112.63,4.05"},EPSG_4805:{towgs84:"682,-203,480"},EPSG_4201:{towgs84:"-165,-11,206"},EPSG_4210:{towgs84:"-157,-2,-299"},EPSG_4183:{towgs84:"-104,167,-38"},EPSG_4139:{towgs84:"11,72,-101"},EPSG_4668:{towgs84:"-86,-98,-119"},EPSG_4717:{towgs84:"-2,151,181"},EPSG_4732:{towgs84:"102,52,-38"},EPSG_4280:{towgs84:"-377,681,-50"},EPSG_4209:{towgs84:"-138,-105,-289"},EPSG_4261:{towgs84:"31,146,47"},EPSG_4658:{towgs84:"-73,46,-86"},EPSG_4721:{towgs84:"265.025,384.929,-194.046"},EPSG_4222:{towgs84:"-136,-108,-292"},EPSG_4601:{towgs84:"-255,-15,71"},EPSG_4602:{towgs84:"725,685,536"},EPSG_4603:{towgs84:"72,213.7,93"},EPSG_4605:{towgs84:"9,183,236"},EPSG_4621:{towgs84:"137,248,-430"},EPSG_4657:{towgs84:"-28,199,5"},EPSG_4316:{towgs84:"103.25,-100.4,-307.19"}
2,EPSG_4642:{towgs84:"-13,-348,292"},EPSG_4698:{towgs84:"145,-187,103"},EPSG_4192:{towgs84:"-206.1,-174.7,-87.7"},EPSG_4311:{towgs84:"-265,120,-358"},EPSG_4135:{towgs84:"58,-283,-182"},ESRI_104138:{towgs84:"198,-226,-347"},EPSG_4245:{towgs84:"-11,851,5"},EPSG_4142:{towgs84:"-125,53,467"},EPSG_4213:{towgs84:"-106,-87,188"},EPSG_4253:{towgs84:"-133,-77,-51"},EPSG_4129:{towgs84:"-132,-110,-335"},EPSG_4713:{towgs84:"-77,-128,142"},EPSG_4239:{towgs84:"217,823,299"},EPSG_4146:{towgs84:"295,736,257"},EPSG_4155:{towgs84:"-83,37,124"},EPSG_4165:{towgs84:"-173,253,27"},EPSG_4672:{towgs84:"175,-38,113"},EPSG_4236:{towgs84:"-637,-549,-203"},EPSG_4251:{towgs84:"-90,40,88"},EPSG_4271:{towgs84:"-2,374,172"},EPSG_4175:{towgs84:"-88,4,101"},EPSG_4716:{towgs84:"298,-304,-375"},EPSG_4315:{towgs84:"-23,259,-9"},EPSG_4744:{towgs84:"-242.2,-144.9,370.3"},EPSG_4244:{towgs84:"-97,787,86"},EPSG_4293:{towgs84:"616,97,-251"},EPSG_4714:{towgs84:"-127,-769,472"},EPSG_4736:{towgs84:"260,12,-147"},EPSG_6883:{towgs84:"-235,-110,393"},EPSG_6894:{towgs84:"-63,176,185"},EPSG_4205:{towgs84:"-43,-163,45"},EPSG_4256:{towgs84:"41,-220,-134"},EPSG_4262:{towgs84:"639,405,60"},EPSG_4604:{towgs84:"174,359,365"},EPSG_4169:{towgs84:"-115,118,426"},EPSG_4620:{towgs84:"-106,-129,165"},EPSG_4184:{towgs84:"-203,141,53"},EPSG_4616:{towgs84:"-289,-124,60"},EPSG_9403:{towgs84:"-307,-92,127"},EPSG_4684:{towgs84:"-133,-321,50"},EPSG_4708:{towgs84:"-491,-22,435"},EPSG_4707:{towgs84:"114,-116,-333"},EPSG_4709:{towgs84:"145,75,-272"},EPSG_4712:{towgs84:"-205,107,53"},EPSG_4711:{towgs84:"124,-234,-25"},EPSG_4718:{towgs84:"230,-199,-752"},EPSG_4719:{towgs84:"211,147,111"},EPSG_4724:{towgs84:"208,-435,-229"},EPSG_4725:{towgs84:"189,-79,-202"},EPSG_4735:{towgs84:"647,1777,-1124"},EPSG_4722:{towgs84:"-794,119,-298"},EPSG_4728:{towgs84:"-307,-92,127"},EPSG_4734:{towgs84:"-632,438,-609"},EPSG_4727:{towgs84:"912,-58,1227"},EPSG_4729:{towgs84:"185,165,42"},EPSG_4730:{towgs84:"170,42,84"},EPSG_4733:{towgs84:"276,-57,149"},ESRI_37218:{towgs84:"230,-199,-752"},ESRI_37240:{towgs84:"-7,215,225"},ESRI_37221:{towgs84:"252,-209,-751"},ESRI_4305:{towgs84:"-123,-206,219"},ESRI_104139:{towgs84:"-73,-247,227"},EPSG_4748:{towgs84:"51,391,-36"},EPSG_4219:{towgs84:"-384,664,-48"},EPSG_4255:{towgs84:"-333,-222,114"},EPSG_4257:{towgs84:"-587.8,519.75,145.76"},EPSG_4646:{towgs84:"-963,510,-359"},EPSG_6881:{towgs84:"-24,-203,268"},EPSG_6882:{towgs84:"-183,-15,273"},EPSG_4715:{towgs84:"-104,-129,239"},IGNF_RGF93GDD:{towgs84:"0,0,0"},IGNF_RGM04GDD:{towgs84:"0,0,0"},IGNF_RGSPM06GDD:{towgs84:"0,0,0"},IGNF_RGTAAF07GDD:{towgs84:"0,0,0"},IGNF_RGFG95GDD:{towgs84:"0,0,0"},IGNF_RGNCG:{towgs84:"0,0,0"},IGNF_RGPFGDD:{towgs84:"0,0,0"},IGNF_ETRS89G:{towgs84:"0,0,0"},IGNF_RGR92GDD:{towgs84:"0,0,0"},EPSG_4173:{towgs84:"0,0,0"},EPSG_4180:{towgs84:"0,0,0"},EPSG_4619:{towgs84:"0,0,0"},EPSG_4667:{towgs84:"0,0,0"},EPSG_4075:{towgs84:"0,0,0"},EPSG_6706:{towgs84:"0,0,0"},EPSG_7798:{towgs84:"0,0,0"},EPSG_4661:{towgs84:"0,0,0"},EPSG_4669:{towgs84:"0,0,0"},EPSG_8685:{towgs84:"0,0,0"},EPSG_4151:{towgs84:"0,0,0"},EPSG_9702:{towgs84:"0,0,0"},EPSG_4758:{towgs84:"0,0,0"},EPSG_4761:{towgs84:"0,0,0"},EPSG_4765:{towgs84:"0,0,0"},EPSG_8997:{towgs84:"0,0,0"},EPSG_4023:{towgs84:"0,0,0"},EPSG_4670:{towgs84:"0,0,0"},EPSG_4694:{towgs84:"0,0,0"},EPSG_4148:{towgs84:"0,0,0"},EPSG_4163:{towgs84:"0,0,0"},EPSG_4167:{towgs84:"0,0,0"},EPSG_4189:{towgs84:"0,0,0"},EPSG_4190:{towgs84:"0,0,0"},EPSG_4176:{towgs84:"0,0,0"},EPSG_4659:{towgs84:"0,0,0"},EPSG_3824:{towgs84:"0,0,0"},EPSG_3889:{towgs84:"0,0,0"},EPSG_4046:{towgs84:"0,0,0"},EPSG_4081:{towgs84:"0,0,0"},EPSG_4558:{towgs84:"0,0,0"},EPSG_4483:{towgs84:"0,0,0"},EPSG_5013:{towgs84:"0,0,0"},EPSG_5264:{towgs84:"0,0,0"},EPSG_5324:{towgs84:"0,0,0"},EPSG_5354:{towgs84:"0,0,0"},EPSG_5371:{towgs84:"0,0,0"},EPSG_5373:{towgs84:"0,0,0"},EPSG_5381:{towgs84:"0,0,0"},EPSG_5393:{towgs84:"0,0,0"},EPSG_5489:{towgs84:"0,0,0"},EPSG_5593:{towgs84:"0,0,0"},EPSG_6135:{towgs84:"0,0,0"},EPSG_6365:{towgs84:"0,0,0"},EPSG_5246:{towgs84:"0,0,0"},EPSG_7886:{towgs84:"0,0,0"},EPSG_8431:{towgs84:"0,0,0"},EPSG_8427:{towgs84:"0,0,0"},EPSG_8699:{towgs84:"0,0,0"},EPSG_8818:{towgs84:"0,0,0"},EPSG_4757:{towgs84:"0,0,0"},EPSG_9140:{towgs84:"0,0,0"},EPSG_8086:{towgs84:"0,0,0"},EPSG_4686:{towgs84:"0,0,0"},EPSG_4737:{towgs84:"0,0,0"},EPSG_4702:{towgs84:"0,0,0"},EPSG_4747:{towgs84:"0,0,0"},EPSG_4749:{towgs84:"0,0,0"},EPSG_4674:{towgs84:"0,0,0"},EPSG_4755:{towgs84:"0,0,0"},EPSG_4759:{towgs84:"0,0,0"},EPSG_4762:{towgs84:"0,0,0"},EPSG_4763:{towgs84:"0,0,0"},EPSG_4764:{towgs84:"0,0,0"},EPSG_4166:{towgs84:"0,0,0"},EPSG_4170:{towgs84:"0,0,0"},EPSG_5546:{towgs84:"0,0,0"},EPSG_7844:{towgs84:"0,0,0"},EPSG_4818:{towgs84:"589,76,480"},EPSG_10328:{towgs84:"0,0,0"},EPSG_9782:{towgs84:"0,0,0"},EPSG_9777:{towgs84:"0,0,0"},EPSG_10690:{towgs84:"0,0,0"},EPSG_10639:{towgs84:"0,0,0"},EPSG_10739:{towgs84:"0,0,0"},EPSG_7686:{towgs84:"0,0,0"},EPSG_8900:{towgs84:"0,0,0"},EPSG_5886:{towgs84:"0,0,0"},EPSG_7683:{towgs84:"0,0,0"},EPSG_6668:{towgs84:"0,0,0"},EPSG_20046:{towgs84:"0,0,0"},EPSG_10299:{towgs84:"0,0,0"},EPSG_10310:{towgs84:"0,0,0"},EPSG_10475:{towgs84:"0,0,0"},EPSG_4742:{towgs84:"0,0,0"},EPSG_10671:{towgs84:"0,0,0"},EPSG_10762:{towgs84:"0,0,0"},EPSG_10725:{towgs84:"0,0,0"},EPSG_10791:{towgs84:"0,0,0"},EPSG_10800:{towgs84:"0,0,0"},EPSG_10305:{towgs84:"0,0,0"},EPSG_10941:{towgs84:"0,0,0"},EPSG_10968:{towgs84:"0,0,0"},EPSG_10875:{towgs84:"0,0,0"},EPSG_6318:{towgs84:"0,0,0"},EPSG_10910:{towgs84:"0,0,0"}};for(var at in rt){var ht=rt[at];ht.datumName&&(rt[ht.datumName]=ht)}var lt=rt,ct={};async function ut(t,e){for(var i=[],n=await e.getImageCount(),s=n-1;s>=0;s--){var o=await e.getImage(s),r=await o.readRasters(),a=[o.getWidth(),o.getHeight()],h=o.getBoundingBox().map(pt),l=[o.fileDirectory.ModelPixelScale[0],o.fileDirectory.ModelPixelScale[1]].map(pt),c=h[0]+(a[0]-1)*l[0],u=h[3]-(a[1]-1)*l[1],d=r[0],p=r[1],f=[];for(let t=a[1]-1;t>=0;t--)for(let e=a[0]-1;e>=0;e--){var m=t*a[0]+e;f.push([-ft(p[m]),ft(d[m])])}i.push({del:l,lim:a,ll:[-c,u],cvs:f})}var g={header:{nSubgrids:n},subgrids:i};return ct[t]=g,g}function dt(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:ct[t]||null,isNull:!1}}function pt(t){return t*Math.PI/180}function ft(t){return t/3600*Math.PI/180}function mt(t,e,i){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,i)))}function gt(t){return t.map(function(t){return[ft(t.longitudeShift),ft(t.latitudeShift)]})}function vt(t,e,i){return{name:mt(t,e+8,e+16).trim(),parent:mt(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,i),upperLatitude:t.getFloat64(e+88,i),lowerLongitude:t.getFloat64(e+104,i),upperLongitude:t.getFloat64(e+120,i),latitudeInterval:t.getFloat64(e+136,i),longitudeInterval:t.getFloat64(e+152,i),gridNodeCount:t.getInt32(e+168,i)}}function _t(t,e,i,n,s){var o=e+176,r=16;!1===s&&(r=8);for(var a=[],h=0;h<i.gridNodeCount;h++){var l={latitudeShift:t.getFloat32(o+h*r,n),longitudeShift:t.getFloat32(o+h*r+4,n)};!1!==s&&(l.latitudeAccuracy=t.getFloat32(o+h*r+8,n),l.longitudeAccuracy=t.getFloat32(o+h*r+12,n)),a.push(l)}return a}function yt(t,e){if(!(this instanceof yt))return new yt(t);this.forward=null,this.inverse=null,this.init=null,this.name,this.names=null,this.title,e=e||function(t){if(t)throw t};var i=function(t){let e;if(function(t){return"string"==typeof t}(t))if(function(t){return t in F}(t))e=F[t];else if(function(t){return 0!==t.indexOf("+")&&-1!==t.indexOf("[")||"object"==typeof t&&!("srsCode"in t)}(t)){e=B(t);var i=function(t){var e=v(t,"extension");if(e)return v(e,"proj4")}(e);i&&(e=_(i))}else(function(t){return"+"===t[0]})(t)&&(e=_(t));else e="projName"in t?t:B(t);return e&&function(t){if(t.title)return 0===t.title.toLowerCase().indexOf("epsg:")&&W.indexOf(t.title.substr(5))>-1;var e=v(t,"authority");if(e){var i=v(e,"epsg");return i&&W.indexOf(i)>-1}}(e)?F["EPSG:3857"]:e}(t);if("object"==typeof i){var n=yt.projections.get(i.projName);if(n){if(i.datumCode&&"none"!==i.datumCode){var s=v(lt,i.datumCode);s&&(i.datum_params=i.datum_params||(s.towgs84?s.towgs84.split(","):null),i.ellps=s.ellipse,i.datumName=s.datumName?s.datumName:i.datumCode)}i.k0=i.k0||1,i.axis=i.axis||"enu",i.ellps=i.ellps||"wgs84",i.lat1=i.lat1||i.lat0;
2var o,a,l,c,u,d,p=function(t,e,i,n,s){if(!t){var o=v(st,n);o||(o=ot),t=o.a,e=o.b,i=o.rf}return i&&!e&&(e=(1-1/i)*t),(0===i||Math.abs(t-e)<h)&&(s=!0,e=t),{a:t,b:e,rf:i,sphere:s}}(i.a,i.b,i.rf,i.ellps,i.sphere),f=(o=p.a,a=p.b,p.rf,u=((l=o*o)-(c=a*a))/l,d=0,i.R_A?(l=(o*=1-u*(.16666666666666666+u*(.04722222222222222+.022156084656084655*u)))*o,u=0):d=Math.sqrt(u),{es:u,e:d,ep2:(l-c)/c}),m=function(t){return void 0===t?null:t.split(",").map(dt)}(i.nadgrids),g=i.datum||function(t,e,i,n,s,o,a){var h={};return h.datum_type=void 0===t||"none"===t?5:4,e&&(h.datum_params=e.map(parseFloat),0===h.datum_params[0]&&0===h.datum_params[1]&&0===h.datum_params[2]||(h.datum_type=1),h.datum_params.length>3&&(0===h.datum_params[3]&&0===h.datum_params[4]&&0===h.datum_params[5]&&0===h.datum_params[6]||(h.datum_type=2,h.datum_params[3]*=r,h.datum_params[4]*=r,h.datum_params[5]*=r,h.datum_params[6]=h.datum_params[6]/1e6+1))),a&&(h.datum_type=3,h.grids=a),h.a=i,h.b=n,h.es=s,h.ep2=o,h}(i.datumCode,i.datum_params,p.a,p.b,f.es,f.ep2,m);q(this,i),q(this,n),this.a=p.a,this.b=p.b,this.rf=p.rf,this.sphere=p.sphere,this.es=f.es,this.e=f.e,this.ep2=f.ep2,this.datum=g,"init"in this&&"function"==typeof this.init&&this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}yt.projections=nt,yt.projections.start();var bt=yt;function xt(t,e,i){var n,s,o,r,h=t.x,l=t.y,c=t.z?t.z:0;if(l<-a&&l>-1.001*a)l=-a;else if(l>a&&l<1.001*a)l=a;else{if(l<-a)return{x:-1/0,y:-1/0,z:t.z};if(l>a)return{x:1/0,y:1/0,z:t.z}}return h>Math.PI&&(h-=2*Math.PI),s=Math.sin(l),r=Math.cos(l),o=s*s,{x:((n=i/Math.sqrt(1-e*o))+c)*r*Math.cos(h),y:(n+c)*r*Math.sin(h),z:(n*(1-e)+c)*s}}function wt(t,e,i,n){var s,o,r,a,h,l,c,u,d,p,f,m,g,v,_,y=t.x,b=t.y,x=t.z?t.z:0;if(s=Math.sqrt(y*y+b*b),o=Math.sqrt(y*y+b*b+x*x),s/i<1e-12){if(v=0,o/i<1e-12)return _=-n,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(b,y);r=x/o,u=(a=s/o)*(1-e)*(h=1/Math.sqrt(1-e*(2-e)*a*a)),d=r*h,g=0;do{g++,l=e*(c=i/Math.sqrt(1-e*d*d))/(c+(_=s*u+x*d-c*(1-e*d*d))),m=(f=r*(h=1/Math.sqrt(1-l*(2-l)*a*a)))*u-(p=a*(1-l)*h)*d,u=p,d=f}while(m*m>1e-24&&g<30);return{x:v,y:Math.atan(f/Math.abs(p)),z:_}}function Mt(t){return 1===t||2===t}function St(t,e,i){if(function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e))return i;if(5===t.datum_type||5===e.datum_type)return i;var n=t.a,r=t.es;if(3===t.datum_type){if(0!==Ct(t,!1,i))return;n=s,r=o}var a=e.a,h=e.b,l=e.es;return 3===e.datum_type&&(a=s,h=6356752.314,l=o),r!==l||n!==a||Mt(t.datum_type)||Mt(e.datum_type)?(i=xt(i,r,n),Mt(t.datum_type)&&(i=function(t,e,i){if(1===e)return{x:t.x+i[0],y:t.y+i[1],z:t.z+i[2]};if(2===e){var n=i[0],s=i[1],o=i[2],r=i[3],a=i[4],h=i[5],l=i[6];return{x:l*(t.x-h*t.y+a*t.z)+n,y:l*(h*t.x+t.y-r*t.z)+s,z:l*(-a*t.x+r*t.y+t.z)+o}}}(i,t.datum_type,t.datum_params)),Mt(e.datum_type)&&(i=function(t,e,i){if(1===e)return{x:t.x-i[0],y:t.y-i[1],z:t.z-i[2]};if(2===e){var n=i[0],s=i[1],o=i[2],r=i[3],a=i[4],h=i[5],l=i[6],c=(t.x-n)/l,u=(t.y-s)/l,d=(t.z-o)/l;return{x:c+h*u-a*d,y:-h*c+u+r*d,z:a*c-r*u+d}}}(i,e.datum_type,e.datum_params)),i=wt(i,l,a,h),3!==e.datum_type||0===Ct(e,!0,i)?i:void 0):i}function Ct(t,e,i){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var n={x:-i.x,y:i.y},s={x:Number.NaN,y:Number.NaN},o=[];t:for(var r=0;r<t.grids.length;r++){var a=t.grids[r];if(o.push(a.name),a.isNull){s=n;break}if(null!==a.grid)for(var h=a.grid.subgrids,l=0,u=h.length;l<u;l++){var d=h[l],p=(Math.abs(d.del[1])+Math.abs(d.del[0]))/1e4,f=d.ll[0]-p,m=d.ll[1]-p,g=d.ll[0]+(d.lim[0]-1)*d.del[0]+p,v=d.ll[1]+(d.lim[1]-1)*d.del[1]+p;if(!(m>n.y||f>n.x||v<n.y||g<n.x||(s=kt(n,e,d),isNaN(s.x))))break t}else if(a.mandatory)return console.log("Unable to find mandatory grid '"+a.name+"'"),-1}return isNaN(s.x)?(console.log("Failed to find a grid shift table for location '"+-n.x*c+" "+n.y*c+" tried: '"+o+"'"),-1):(i.x=-s.x,i.y=s.y,0)}function kt(t,e,i){var n={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return n;var s={x:t.x,y:t.y};s.x-=i.ll[0],s.y-=i.ll[1],s.x=Y(s.x-Math.PI)+Math.PI;var o=Pt(s,i);if(e){if(isNaN(o.x))return n;o.x=s.x-o.x,o.y=s.y-o.y;var r,a,h=9;do{if(a=Pt(o,i),isNaN(a.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge.  Using first approximation.");break}r={x:s.x-(a.x+o.x),y:s.y-(a.y+o.y)},o.x+=r.x,o.y+=r.y}while(h--&&Math.abs(r.x)>1e-12&&Math.abs(r.y)>1e-12);if(h<0)return console.log("Inverse grid shift iterator failed to converge."),n;n.x=Y(o.x+i.ll[0]),n.y=o.y+i.ll[1]}else isNaN(o.x)||(n.x=t.x+o.x,n.y=t.y+o.y);return n}function Pt(t,e){var i,n={x:t.x/e.del[0],y:t.y/e.del[1]},s=Math.floor(n.x),o=Math.floor(n.y),r=n.x-1*s,a=n.y-1*o,h={x:Number.NaN,y:Number.NaN};if(s<0||s>=e.lim[0])return h;if(o<0||o>=e.lim[1])return h;i=o*e.lim[0]+s;var l=e.cvs[i][0],c=e.cvs[i][1];i++;var u=e.cvs[i][0],d=e.cvs[i][1];i+=e.lim[0];var p=e.cvs[i][0],f=e.cvs[i][1];i--;var m=e.cvs[i][0],g=e.cvs[i][1],v=r*a,_=r*(1-a),y=(1-r)*(1-a),b=(1-r)*a;return h.x=y*l+_*u+b*m+v*p,h.y=y*c+_*d+b*g+v*f,h}function Tt(t,e,i){var n,s,o,r=i.x,a=i.y,h=i.z||0,l={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==i.z)switch(0===o?(n=r,s=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(n=a,s=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(n=h,s="z"),t.axis[o]){case"e":case"n":l[s]=n;break;case"w":case"s":l[s]=-n;break;case"u":void 0!==i[s]&&(l.z=n);break;case"d":void 0!==i[s]&&(l.z=-n);break;default:return null}return l}function Et(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function Lt(t){At(t.x),At(t.y)}function At(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function Ot(t,e,i,n){var s,o=void 0!==(i=Array.isArray(i)?Et(i):{x:i.x,y:i.y,z:i.z,m:i.m}).z;if(Lt(i),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(i=Ot(t,s=new bt("WGS84"),i,n),t=s),n&&"enu"!==t.axis&&(i=Tt(t,!1,i)),"longlat"===t.projName)i={x:i.x*l,y:i.y*l,z:i.z||0};else if(t.to_meter&&(i={x:i.x*t.to_meter,y:i.y*t.to_meter,z:i.z||0}),!(i=t.inverse(i)))return;if(t.from_greenwich&&(i.x+=t.from_greenwich),i=St(t.datum,e.datum,i))return e.from_greenwich&&(i={x:i.x-e.from_greenwich,y:i.y,z:i.z||0}),"longlat"===e.projName?i={x:i.x*c,y:i.y*c,z:i.z||0}:(i=e.forward(i),e.to_meter&&(i={x:i.x/e.to_meter,y:i.y/e.to_meter,z:i.z||0})),n&&"enu"!==e.axis?Tt(e,!0,i):(i&&!o&&"geocent"!==e.projName&&delete i.z,i)}i.dn(St),i.dn(Tt),i.dn(Et),i.dn(Lt);var It=bt("WGS84");function Dt(t,e,i,n){var s,o,r;return Array.isArray(i)?(s=Ot(t,e,i,n)||{x:NaN,y:NaN},i.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof s.z?[s.x,s.y,s.z].concat(i.slice(3)):[s.x,s.y,i[2]].concat(i.slice(3)):[s.x,s.y].concat(i.slice(2)):[s.x,s.y]):(o=Ot(t,e,i,n),2===(r=Object.keys(i)).length||r.forEach(function(n){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===n||"y"===n||"z"===n)return}else if("x"===n||"y"===n)return;o[n]=i[n]}),o)}function Nt(t){return t instanceof bt?t:"object"==typeof t&&"oProj"in t?t.oProj:bt(t)}var zt="AJSAJS",jt="AFAFAF",Rt=65,Gt=73,Bt=79,Ht={forward:Ft,inverse:function(t){var e=Zt(Vt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat,e.lon,e.lat]:[e.left,e.bottom,e.right,e.top]},toPoint:Wt};function Ft(t,e){return e=e||5,function(t,e){var i,n,s,o,r,a,h,l,c,u,d,p="00000"+t.easting,f="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(c=t.easting,u=t.northing,d=Yt(t.zoneNumber),i=Math.floor(c/1e5),n=Math.floor(u/1e5)%20,o=zt.charCodeAt(s=d-1),r=jt.charCodeAt(s),l=!1,(a=o+i-1)>90&&(a=a-90+Rt-1,l=!0),(a===Gt||o<Gt&&a>Gt||(a>Gt||o<Gt)&&l)&&a++,(a===Bt||o<Bt&&a>Bt||(a>Bt||o<Bt)&&l)&&++a===Gt&&a++,a>90&&(a=a-90+Rt-1),(h=r+n)>86?(h=h-86+Rt-1,l=!0):l=!1,(h===Gt||r<Gt&&h>Gt||(h>Gt||r<Gt)&&l)&&h++,(h===Bt||r<Bt&&h>Bt||(h>
2Bt||r<Bt)&&l)&&++h===Gt&&h++,h>86&&(h=h-86+Rt-1),String.fromCharCode(a)+String.fromCharCode(h))+p.substr(p.length-5,e)+f.substr(f.length-5,e)}(function(t){var e,i,n,s,o,r,a,h=t.lat,l=t.lon,c=6378137,u=.00669438,d=.9996,p=qt(h),f=qt(l);a=Math.floor((l+180)/6)+1,180===l&&(a=60),h>=56&&h<64&&l>=3&&l<12&&(a=32),h>=72&&h<84&&(l>=0&&l<9?a=31:l>=9&&l<21?a=33:l>=21&&l<33?a=35:l>=33&&l<42&&(a=37)),r=qt(6*(a-1)-180+3),e=.006739496752268451,i=c/Math.sqrt(1-u*Math.sin(p)*Math.sin(p)),n=Math.tan(p)*Math.tan(p),s=e*Math.cos(p)*Math.cos(p);var m,g,v=d*i*((o=Math.cos(p)*(f-r))+(1-n+s)*o*o*o/6+(5-18*n+n*n+72*s-58*e)*o*o*o*o*o/120)+5e5,_=d*(c*(.9983242984503243*p-.002514607064228144*Math.sin(2*p)+2639046602129982e-21*Math.sin(4*p)-3.418046101696858e-9*Math.sin(6*p))+i*Math.tan(p)*(o*o/2+(5-n+9*s+4*s*s)*o*o*o*o/24+(61-58*n+n*n+600*s-2.2240339282485886)*o*o*o*o*o*o/720));return h<0&&(_+=1e7),{northing:Math.round(_),easting:Math.round(v),zoneNumber:a,zoneLetter:(m=h,g="Z",84>=m&&m>=72?g="X":72>m&&m>=64?g="W":64>m&&m>=56?g="V":56>m&&m>=48?g="U":48>m&&m>=40?g="T":40>m&&m>=32?g="S":32>m&&m>=24?g="R":24>m&&m>=16?g="Q":16>m&&m>=8?g="P":8>m&&m>=0?g="N":0>m&&m>=-8?g="M":-8>m&&m>=-16?g="L":-16>m&&m>=-24?g="K":-24>m&&m>=-32?g="J":-32>m&&m>=-40?g="H":-40>m&&m>=-48?g="G":-48>m&&m>=-56?g="F":-56>m&&m>=-64?g="E":-64>m&&m>=-72?g="D":-72>m&&m>=-80&&(g="C"),g)}}({lat:t[1],lon:t[0]}),e)}function Wt(t){var e=Zt(Vt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function qt(t){return t*(Math.PI/180)}function Ut(t){return t/Math.PI*180}function Zt(t){var e=t.northing,i=t.easting,n=t.zoneLetter,s=t.zoneNumber;if(s<0||s>60)return null;var o,r,a,h,l,c,u,d,p,f=.9996,m=6378137,g=.00669438,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),_=i-5e5,y=e;n<"N"&&(y-=1e7),u=6*(s-1)-180+3,o=.006739496752268451,p=(d=y/f/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*d)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*d)+151*v*v*v/96*Math.sin(6*d),r=m/Math.sqrt(1-g*Math.sin(p)*Math.sin(p)),a=Math.tan(p)*Math.tan(p),h=o*Math.cos(p)*Math.cos(p),l=.99330562*m/Math.pow(1-g*Math.sin(p)*Math.sin(p),1.5),c=_/(r*f);var b=p-r*Math.tan(p)/l*(c*c/2-(5+3*a+10*h-4*h*h-9*o)*c*c*c*c/24+(61+90*a+298*h+45*a*a-1.6983531815716497-3*h*h)*c*c*c*c*c*c/720);b=Ut(b);var x,w=(c-(1+2*a+h)*c*c*c/6+(5-2*h+28*a-3*h*h+8*o+24*a*a)*c*c*c*c*c/120)/Math.cos(p);if(w=u+Ut(w),t.accuracy){var M=Zt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});x={top:M.lat,right:M.lon,bottom:b,left:w}}else x={lat:b,lon:w};return x}function Yt(t){var e=t%6;return 0===e&&(e=6),e}function Vt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,i=t.length,n=null,s="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;s+=e,o++}var r=parseInt(s,10);if(0===o||o+3>i)throw"MGRSPoint bad conversion from: "+t;var a=t.charAt(o++);if(a<="A"||"B"===a||"Y"===a||a>="Z"||"I"===a||"O"===a)throw"MGRSPoint zone letter "+a+" not handled: "+t;n=t.substring(o,o+=2);for(var h=Yt(r),l=function(t,e){for(var i=zt.charCodeAt(e-1),n=1e5,s=!1;i!==t.charCodeAt(0);){if(++i===Gt&&i++,i===Bt&&i++,i>90){if(s)throw"Bad character: "+t;i=Rt,s=!0}n+=1e5}return n}(n.charAt(0),h),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;for(var i=jt.charCodeAt(e-1),n=0,s=!1;i!==t.charCodeAt(0);){if(++i===Gt&&i++,i===Bt&&i++,i>86){if(s)throw"Bad character: "+t;i=Rt,s=!0}n+=1e5}return n}(n.charAt(1),h);c<Xt(a);)c+=2e6;var u=i-o;if(u%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var d,p,f,m=u/2,g=0,v=0;return m>0&&(d=1e5/Math.pow(10,m),p=t.substring(o,o+m),g=parseFloat(p)*d,f=t.substring(o+m),v=parseFloat(f)*d),{easting:g+l,northing:v+c,zoneLetter:a,zoneNumber:r,accuracy:d}}function Xt(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Kt(t,e,i){if(!(this instanceof Kt))return new Kt(t,e,i);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var n=t.split(",");this.x=parseFloat(n[0]),this.y=parseFloat(n[1]),this.z=parseFloat(n[2])||0}else this.x=t,this.y=e,this.z=i||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Kt.fromMGRS=function(t){return new Kt(Wt(t))},Kt.prototype.toMGRS=function(t){return Ft([this.x,this.y],t)};var $t=Kt;i.dn(ce);var Jt=1,Qt=.25,te=.046875,ee=.01953125,ie=.01068115234375,ne=.75,se=.46875,oe=.013020833333333334,re=.007120768229166667,ae=.3645833333333333,he=.005696614583333333,le=.3076171875;function ce(t){var e=[];e[0]=Jt-t*(Qt+t*(te+t*(ee+t*ie))),e[1]=t*(ne-t*(te+t*(ee+t*ie)));var i=t*t;return e[2]=i*(se-t*(oe+t*re)),i*=t,e[3]=i*(ae-t*he),e[4]=i*t*le,e}function ue(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}i.dn(ue),i.dn(pe);var de=20;function pe(t,e,i){for(var n=1/(1-e),s=t,o=de;o;--o){var r=Math.sin(s),a=1-e*r*r;if(s-=a=(ue(s,r,Math.cos(s),i)-t)*(a*Math.sqrt(a))*n,Math.abs(a)<h)return s}return s}var fe={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=ce(this.es),this.ml0=ue(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,i,n,s=t.x,o=t.y,r=Y(s-this.long0,this.over),a=Math.sin(o),l=Math.cos(o);if(this.es){var c=l*r,u=Math.pow(c,2),d=this.ep2*Math.pow(l,2),p=Math.pow(d,2),f=Math.abs(l)>h?Math.tan(o):0,m=Math.pow(f,2),g=Math.pow(m,2);e=1-this.es*Math.pow(a,2),c/=Math.sqrt(e);var v=ue(o,a,l,this.en);i=this.a*(this.k0*c*(1+u/6*(1-m+d+u/20*(5-18*m+g+14*d-58*m*d+u/42*(61+179*g-g*m-479*m)))))+this.x0,n=this.a*(this.k0*(v-this.ml0+a*r*c/2*(1+u/12*(5-m+9*d+4*p+u/30*(61+g-58*m+270*d-330*m*d+u/56*(1385+543*g-g*m-3111*m))))))+this.y0}else{var _=l*Math.sin(r);if(Math.abs(Math.abs(_)-1)<h)return 93;if(i=.5*this.a*this.k0*Math.log((1+_)/(1-_))+this.x0,n=l*Math.cos(r)/Math.sqrt(1-Math.pow(_,2)),(_=Math.abs(n))>=1){if(_-1>h)return 93;n=0}else n=Math.acos(n);o<0&&(n=-n),n=this.a*this.k0*(n-this.lat0)+this.y0}return t.x=i,t.y=n,t},inverse:function(t){var e,i,n,s,o=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(this.es)if(i=pe(e=this.ml0+r/this.k0,this.es,this.en),Math.abs(i)<a){var l=Math.sin(i),c=Math.cos(i),u=Math.abs(c)>h?Math.tan(i):0,d=this.ep2*Math.pow(c,2),p=Math.pow(d,2),f=Math.pow(u,2),m=Math.pow(f,2);e=1-this.es*Math.pow(l,2);var g=o*Math.sqrt(e)/this.k0,v=Math.pow(g,2);n=i-(e*=u)*v/(1-this.es)*.5*(1-v/12*(5+3*f-9*d*f+d-4*p-v/30*(61+90*f-252*d*f+45*m+46*d-v/56*(1385+3633*f+4095*m+1574*m*f)))),s=Y(this.long0+g*(1-v/6*(1+2*f+
2d-v/20*(5+28*f+24*m+8*d*f+6*d-v/42*(61+662*f+1320*m+720*m*f))))/c,this.over)}else n=a*Z(r),s=0;else{var _=Math.exp(o/this.k0),y=.5*(_-1/_),b=this.lat0+r/this.k0,x=Math.cos(b);e=Math.sqrt((1-Math.pow(x,2))/(1+Math.pow(y,2))),n=Math.asin(e),r<0&&(n=-n),s=0===y&&0===x?0:Y(Math.atan2(y,x)+this.long0,this.over)}return t.x=s,t.y=n,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function me(t){var e=Math.exp(t);return(e-1/e)/2}function ge(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),n=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(n,2))}function ve(t){var e=1+t,i=e-1;return 0===i?t:t*Math.log(e)/i}function _e(t){var e=Math.abs(t);return e=ve(e*(1+e/(ge(1,e)+1))),t<0?-e:e}function ye(t,e){for(var i,n=2*Math.cos(2*e),s=t.length-1,o=t[s],r=0;--s>=0;)i=n*o-r+t[s],r=o,o=i;return e+i*Math.sin(2*e)}function be(t,e){for(var i,n=2*Math.cos(e),s=t.length-1,o=t[s],r=0;--s>=0;)i=n*o-r+t[s],r=o,o=i;return Math.sin(e)*i}function xe(t){var e=Math.exp(t);return(e+1/e)/2}function we(t,e,i){for(var n,s,o=Math.sin(e),r=Math.cos(e),a=me(i),h=xe(i),l=2*r*h,c=-2*o*a,u=t.length-1,d=t[u],p=0,f=0,m=0;--u>=0;)n=f,s=p,d=l*(f=d)-n-c*(p=m)+t[u],m=c*f-s+l*p;return[(l=o*h)*d-(c=r*a)*m,l*m+c*d]}i.dn(me),i.dn(ge),i.dn(ve),i.dn(_e),i.dn(ye),i.dn(be),i.dn(xe),i.dn(we);var Me={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(fe.init.apply(this),this.forward=fe.forward,this.inverse=fe.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),i=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),i*=e,this.cgb[1]=i*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=i*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),i*=e,this.cgb[2]=i*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=i*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),i*=e,this.cgb[3]=i*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=i*(1237/630+e*(e*(-24832/14175)-2.4)),i*=e,this.cgb[4]=i*(4174/315+e*(-144838/6237)),this.cbg[4]=i*(-734/315+e*(109598/31185)),i*=e,this.cgb[5]=i*(601676/22275),this.cbg[5]=i*(444337/155925),i=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+i*(1/4+i*(1/64+i/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=i*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=i*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),i*=e,this.utg[2]=i*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=i*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),i*=e,this.utg[3]=i*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=i*(49561/161280+e*(-179/168+e*(6601661/7257600))),i*=e,this.utg[4]=i*(-4583/161280+e*(108847/3991680)),this.gtu[4]=i*(34729/80640+e*(-3418889/1995840)),i*=e,this.utg[5]=i*(-20648693/638668800),this.gtu[5]=.6650675310896665*i;var n=ye(this.cbg,this.lat0);this.Zb=-this.Qn*(n+be(this.gtu,2*n))},forward:function(t){var e=Y(t.x-this.long0,this.over),i=t.y;i=ye(this.cbg,i);var n=Math.sin(i),s=Math.cos(i),o=Math.sin(e),r=Math.cos(e);i=Math.atan2(n,r*s),e=Math.atan2(o*s,ge(n,s*r)),e=_e(Math.tan(e));var a,h,l=we(this.gtu,2*i,2*e);return i+=l[0],e+=l[1],Math.abs(e)<=2.623395162778?(a=this.a*(this.Qn*e)+this.x0,h=this.a*(this.Qn*i+this.Zb)+this.y0):(a=1/0,h=1/0),t.x=a,t.y=h,t},inverse:function(t){var e,i,n=(t.x-this.x0)*(1/this.a),s=(t.y-this.y0)*(1/this.a);if(s=(s-this.Zb)/this.Qn,n/=this.Qn,Math.abs(n)<=2.623395162778){var o=we(this.utg,2*s,2*n);s+=o[0],n+=o[1],n=Math.atan(me(n));var r=Math.sin(s),a=Math.cos(s),h=Math.sin(n),l=Math.cos(n);s=Math.atan2(r*l,ge(h,l*a)),e=Y((n=Math.atan2(h,l*a))+this.long0,this.over),i=ye(this.cgb,s)}else e=1/0,i=1/0;return t.x=e,t.y=i,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};function Se(t,e){if(void 0===t){if((t=Math.floor(30*(Y(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}i.dn(Se);var Ce={init:function(){var t=Se(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*l,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,Me.init.a
2pply(this),this.forward=Me.forward,this.inverse=Me.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function ke(t,e){return Math.pow((1-t)/(1+t),e)}i.dn(ke);var Pe={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+u)/(Math.pow(Math.tan(.5*this.lat0+u),this.C)*ke(this.e*t,this.ratexp))},forward:function(t){var e=t.x,i=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*i+u),this.C)*ke(this.e*Math.sin(i),this.ratexp))-a,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,i=t.y,n=Math.pow(Math.tan(.5*i+u)/this.K,1/this.C),s=20;s>0&&(i=2*Math.atan(n*ke(this.e*Math.sin(t.y),-.5*this.e))-a,!(Math.abs(i-t.y)<1e-14));--s)t.y=i;return s?(t.x=e,t.y=i,t):null},names:["gauss"]},Te={init:function(){Pe.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,i,n,s;return t.x=Y(t.x-this.long0,this.over),Pe.forward.apply(this,[t]),e=Math.sin(t.y),i=Math.cos(t.y),n=Math.cos(t.x),s=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*i*n),t.x=s*i*Math.sin(t.x),t.y=s*(this.cosc0*e-this.sinc0*i*n),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,i,n,s,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=ge(t.x,t.y)){var r=2*Math.atan2(o,this.R2);e=Math.sin(r),i=Math.cos(r),s=Math.asin(i*this.sinc0+t.y*e*this.cosc0/o),n=Math.atan2(t.x*e,o*this.cosc0*i-t.y*this.sinc0*e)}else s=this.phic0,n=0;return t.x=n,t.y=s,Pe.inverse.apply(this,[t]),t.x=Y(t.x+this.long0,this.over),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};
2function Ee(t,e,i){return e*=i,Math.tan(.5*(a+t))*Math.pow((1-e)/(1+e),.5*i)}var Le={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=h&&(this.k0=.5*(1+Z(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=h&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=h&&Math.abs(Math.cos(this.lat_ts))>h&&(this.k0=.5*this.cons*U(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/V(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=U(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(Ee(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,i,n,s,o,r,l=t.x,c=t.y,u=Math.sin(c),d=Math.cos(c),p=Y(l-this.long0,this.over);return Math.abs(Math.abs(l-this.long0)-Math.PI)<=h&&Math.abs(c+this.lat0)<=h?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*u+this.coslat0*d*Math.cos(p)),t.x=this.a*e*d*Math.sin(p)+this.x0,t.y=this.a*e*(this.coslat0*u-this.sinlat0*d*Math.cos(p))+this.y0,t):(i=2*Math.atan(Ee(c,u,this.e))-a,s=Math.cos(i),n=Math.sin(i),Math.abs(this.coslat0)<=h?(o=V(this.e,c*this.con,this.con*u),r=2*this.a*this.k0*o/this.cons,t.x=this.x0+r*Math.sin(l-this.long0),t.y=this.y0-this.con*r*Math.cos(l-this.long0),t):(Math.abs(this.sinlat0)<h?(e=2*this.a*this.k0/(1+s*Math.cos(p)),t.y=e*n):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*s*Math.cos(p))),t.y=e*(this.cosX0*n-this.sinX0*s*Math.cos(p))+this.y0),t.x=e*s*Math.sin(p)+this.x0,t))},inverse:function(t){var e,i,n,s,o;t.x-=this.x0,t.y-=this.y0;var r=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var l=2*Math.atan(r/(2*this.a*this.k0));return e=this.long0,i=this.lat0,r<=h?(t.x=e,t.y=i,t):(i=Math.asin(Math.cos(l)*this.sinlat0+t.y*Math.sin(l)*this.coslat0/r),e=Math.abs(this.coslat0)<h?this.lat0>0?Y(this.long0+Math.atan2(t.x,-1*t.y),this.over):Y(this.long0+Math.atan2(t.x,t.y),this.over):Y(this.long0+Math.atan2(t.x*Math.sin(l),r*this.coslat0*Math.cos(l)-t.y*this.sinlat0*Math.sin(l)),this.over),t.x=e,t.y=i,t)}if(Math.abs(this.coslat0)<=h){if(r<=h)return i=this.lat0,e=this.long0,t.x=e,t.y=i,t;t.x*=this.con,t.y*=this.con,n=r*this.cons/(2*this.a*this.k0),i=this.con*X(this.e,n),e=this.con*Y(this.con*this.long0+Math.atan2(t.x,-1*t.y),this.over)}else s=2*Math.atan(r*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,r<=h?o=this.X0:(o=Math.asin(Math.cos(s)*this.sinX0+t.y*Math.sin(s)*this.cosX0/r),e=Y(this.long0+Math.atan2(t.x*Math.sin(s),r*this.cosX0*Math.cos(s)-t.y*this.sinX0*Math.sin(s)),this.over)),i=-1*X(this.e,Math.tan(.5*(a+o)));return t.x=e,t.y=i,t},names:["stere","Stereographic_South_Pole","Polar_Stereographic_variant_A","Polar_Stereographic_variant_B","Polar_Stereographic"],ssfn_:Ee},Ae={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),i=this.a,n=1/this.rf,s=2*n-Math.pow(n,2),o=this.e=Math.sqrt(s);this.R=this.k0*i*Math.sqrt(1-s)/(1-s*Math.pow(e,2)),this.alpha=Math.sqrt(1+s/(1-s)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var r=Math.log(Math.tan(Math.PI/4+this.b0/2)),a=Math.log(Math.tan(Math.PI/4+t/2)),h=Math.log((1+o*e)/(1-o*e));this.K=r-this.alpha*a+this.alpha*o/2*h},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),i=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),n=-this.alpha*(e+i)+this.K,s=2*(Math.atan(Math.exp(n))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),r=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(s)+Math.cos(this.b0)*Math.cos(o))),a=Math.asin(Math.cos(this.b0)*Math.sin(s)-Math.sin(this.b0)*Math.cos(s)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(a))/(1-Math.sin(a)))+this.y0,t.x=this.R*r+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,i=t.y-this.y0,n=e/this.R,s=2*(Math.atan(Math.exp(i/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(s)+Math.sin(this.b0)*Math.cos(s)*Math.cos(n)),r=Math.atan(Math.sin(n)/(Math.cos(this.b0)*Math.cos(n)-Math.sin(this.b0)*Math.tan(s))),a=this.lambda0+r/this.alpha,h=0,l=o,c=-1e3,u=0;Math.abs(l-c)>1e-7;){if(++u>20)return;h=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(l))/2)),c=l,l=2*Math.atan(Math.exp(h))-Math.PI/2}return t.x=a,t.y=l,t},names:["somerc"]},Oe=1e-7,Ie={init:function(){var t,e,i,n,s,o,r,l,c,p,f,m,g,v,_=0,y=0,b=0,x=0,w=0,M=0,S=0;this.no_off=(g=["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"],v="object"==typeof(m=this).projName?Object.keys(m.projName)[0]:m.projName,"no_uoff"in m||"no_off"in m||-1!==g.indexOf(v)||-1!==g.indexOf(it(v))),this.no_rot="no_rot"in this;var C=!1;"alpha"in this&&(C=!0);var k=!1;if("rectified_grid_angle"in this&&(k=!0),C&&(S=this.alpha),k&&(_=this.rectified_grid_angle),C||k)y=this.longc;else if(b=this.long1,w=this.lat1,x=this.long2,M=this.lat2,Math.abs(w-M)<=Oe||(t=Math.abs(w))<=Oe||Math.abs(t-a)<=Oe||Math.abs(Math.abs(this.lat0)-a)<=Oe||Math.abs(Math.abs(M)-a)<=Oe)throw new Error;var P=1-this.es;e=Math.sqrt(P),Math.abs(this.lat0)>h?(l=Math.sin(this.lat0),i=Math.cos(this.lat0),t=1-this.es*l*l,this.B=i*i,this.B=Math.sqrt(1+this.es*this.B*this.B/P),this.A=this.B*this.k0*e/t,(s=(n=this.B*e/(i*Math.sqrt(t)))*n-1)<=0?s=0:(s=Math.sqrt(s),this.lat0<0&&(s=-s)),this.E=s+=n,this.E*=Math.pow(V(this.e,this.lat0,l),this.B)):(this.B=1/e,this.A=this.k0,this.E=n=s=1),C||k?(C?(f=Math.asin(Math.sin(S)/n),k||(_=S)):(f=_,S=Math.asin(n*Math.sin(f))),this.lam0=y-Math.asin(.5*(s-1/s)*Math.tan(f))/this.B):(o=Math.pow(V(this.e,w,Math.sin(w)),this.B),r=M
2ath.pow(V(this.e,M,Math.sin(M)),this.B),s=this.E/o,c=(r-o)/(r+o),p=((p=this.E*this.E)-r*o)/(p+r*o),(t=b-x)<-Math.PI?x-=d:t>Math.PI&&(x+=d),this.lam0=Y(.5*(b+x)-Math.atan(p*Math.tan(.5*this.B*(b-x))/c)/this.B,this.over),f=Math.atan(2*Math.sin(this.B*Y(b-this.lam0,this.over))/(s-1/s)),_=S=Math.asin(n*Math.sin(f))),this.singam=Math.sin(f),this.cosgam=Math.cos(f),this.sinrot=Math.sin(_),this.cosrot=Math.cos(_),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(n*n-1)/Math.cos(S))),this.lat0<0&&(this.u_0=-this.u_0)),s=.5*f,this.v_pole_n=this.ArB*Math.log(Math.tan(u-s)),this.v_pole_s=this.ArB*Math.log(Math.tan(u+s))},forward:function(t){var e,i,n,s,o,r,l,c,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>h){if(e=.5*((o=this.E/Math.pow(V(this.e,t.y,Math.sin(t.y)),this.B))-(r=1/o)),i=.5*(o+r),s=Math.sin(this.B*t.x),n=(e*this.singam-s*this.cosgam)/i,Math.abs(Math.abs(n)-1)<h)throw new Error;c=.5*this.ArB*Math.log((1-n)/(1+n)),r=Math.cos(this.B*t.x),l=Math.abs(r)<Oe?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+s*this.singam,r)}else c=t.y>0?this.v_pole_n:this.v_pole_s,l=this.ArB*t.y;return this.no_rot?(u.x=l,u.y=c):(l-=this.u_0,u.x=c*this.cosrot+l*this.sinrot,u.y=l*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var e,i,n,s,o,r,l,c={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(i=t.y,e=t.x):(i=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),s=.5*((n=Math.exp(-this.BrA*i))-1/n),o=.5*(n+1/n),l=((r=Math.sin(this.BrA*e))*this.cosgam+s*this.singam)/o,Math.abs(Math.abs(l)-1)<h)c.x=0,c.y=l<0?-a:a;else{if(c.y=this.E/Math.sqrt((1+l)/(1-l)),c.y=X(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(s*this.cosgam-r*this.singam,Math.cos(this.BrA*e))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_variant_A","Hotine_Oblique_Mercator_Variant_B","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]},De={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<h)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),i=Math.cos(this.lat1),n=U(this.e,e,i),s=V(this.e,this.lat1,e),o=Math.sin(this.lat2),r=Math.cos(this.lat2),l=U(this.e,o,r),c=V(this.e,this.lat2,o),u=Math.abs(Math.abs(this.lat0)-a)<h?0:V(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>h?this.ns=Math.log(n/l)/Math.log(s/c):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=n/(this.ns*Math.pow(s,this.ns)),this.rh=this.a*this.f0*Math.pow(u,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,i=t.y;Math.abs(2*Math.abs(i)-Math.PI)<=h&&(i=Z(i)*(a-2e-10));var n,s,o=Math.abs(Math.abs(i)-a);if(o>h)n=V(this.e,i,Math.sin(i)),s=this.a*this.f0*Math.pow(n,this.ns);else{if((o=i*this.ns)<=0)return null;s=0}var r=this.ns*Y(e-this.long0,this.over);return t.x=this.k0*(s*Math.sin(r))+this.x0,t.y=this.k0*(this.rh-s*Math.cos(r))+this.y0,t},inverse:function(t){var e,i,n,s,o,r=(t.x-this.x0)/this.k0,h=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(r*r+h*h),i=1):(e=-Math.sqrt(r*r+h*h),i=-1);var l=0;if(0!==e&&(l=Math.atan2(i*r,i*h)),0!==e||this.ns>0){if(i=1/this.ns,n=Math.pow(e/(this.a*this.f0),i),-9999===(s=X(this.e,n)))return null}else s=-a;return o=Y(l/this.ns+this.long0,this.over),t.x=o,t.y=s,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]},Ne={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,i,n,s,o,r,a,h=t.x,l=t.y,c=Y(h-this.long0,this.over);return e=Math.pow((1+this.e*Math.sin(l))/(1-this.e*Math.sin(l)),this.alfa*this.e/2),i=2*(Math.atan(this.k*Math.pow(Math.tan(l/2+this.s45),this.alfa)/e)-this.s45),n=-c*this.alfa,s=Math.asin(Math.cos(this.ad)*Math.sin(i)+Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),o=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(s)),r=this.n*o,a=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(s/2+this.s45),this.n),t.y=a
2*Math.cos(r)/1,t.x=a*Math.sin(r)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,i,n,s,o,r,a,h=t.x;t.x=t.y,t.y=h,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),s=Math.atan2(t.y,t.x)/Math.sin(this.s0),n=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(n)-Math.sin(this.ad)*Math.cos(n)*Math.cos(s)),i=Math.asin(Math.cos(n)*Math.sin(s)/Math.cos(e)),t.x=this.long0-i/this.alfa,r=e,a=0;var l=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(r))/(1-this.e*Math.sin(r)),this.e/2))-this.s45),Math.abs(r-t.y)<1e-10&&(a=1),r=t.y,l+=1}while(0===a&&l<15);return l>=15?null:t},names:["Krovak","Krovak Modified","Krovak (North Orientated)","Krovak Modified (North Orientated)","krovak"]};function ze(t,e,i,n,s){return t*s-e*Math.sin(2*s)+i*Math.sin(4*s)-n*Math.sin(6*s)}function je(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function Re(t){return.375*t*(1+.25*t*(1+.46875*t))}function Ge(t){return.05859375*t*t*(1+.75*t)}function Be(t){return t*t*t*(35/3072)}function He(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)}function Fe(t){return Math.abs(t)<a?t:t-Z(t)*Math.PI}function We(t,e,i,n,s){var o,r;o=t/e;for(var a=0;a<15;a++)if(o+=r=(t-(e*o-i*Math.sin(2*o)+n*Math.sin(4*o)-s*Math.sin(6*o)))/(e-2*i*Math.cos(2*o)+4*n*Math.cos(4*o)-6*s*Math.cos(6*o)),Math.abs(r)<=1e-10)return o;return NaN}i.dn(ze),i.dn(je),i.dn(Re),i.dn(Ge),i.dn(Be),i.dn(He),i.dn(Fe),i.dn(We);var qe={init:function(){this.sphere||(this.e0=je(this.es),this.e1=Re(this.es),this.e2=Ge(this.es),this.e3=Be(this.es),this.ml0=this.a*ze(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,i,n=t.x,s=t.y;if(n=Y(n-this.long0,this.over),this.sphere)e=this.a*Math.asin(Math.cos(s)*Math.sin(n)),i=this.a*(Math.atan2(Math.tan(s),Math.cos(n))-this.lat0);else{var o=Math.sin(s),r=Math.cos(s),a=He(this.a,this.e,o),h=Math.tan(s)*Math.tan(s),l=n*Math.cos(s),c=l*l,u=this.es*r*r/(1-this.es);e=a*l*(1-c*h*(1/6-(8-h+8*u)*c/120)),i=this.a*ze(this.e0,this.e1,this.e2,this.e3,s)-this.ml0+a*o/r*c*(.5+(5-h+6*u)*c/24)}return t.x=e+this.x0,t.y=i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,i,n=t.x/this.a,s=t.y/this.a;if(this.sphere){var o=s+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(n)),i=Math.atan2(Math.tan(n),Math.cos(o))}else{var r=We(this.ml0/this.a+s,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(r)-a)<=h)return t.x=this.long0,t.y=a,s<0&&(t.y*=-1),t;var l=He(this.a,this.e,Math.sin(r)),c=l*l*l/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(r),2),d=n*this.a/l,p=d*d;e=r-l*Math.tan(r)/c*d*d*(.5-(1+3*u)*d*d/24),i=d*(1-p*(u/3+(1+3*u)*u*p/15))/Math.cos(r)}return t.x=Y(i+this.long0,this.over),t.y=Fe(e),t},names:["Cassini","Cassini_Soldner","cass"]};function Ue(t,e){var i;return t>1e-7?(1-t*t)*(e/(1-(i=t*e)*i)-.5/t*Math.log((1-i)/(1+i))):2*e}i.dn(Ue);var Ze={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-a)<h?this.mode=this.lat0<0?1:2:Math.abs(e)<h?this.mode=3:this.mode=4,this.es>0)switch(this.qp=Ue(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,i=[];return i[0]=.3333333333333333*t,e=t*t,i[0]+=.17222222222222222*e,i[1]=.06388888888888888*e,e*=t,i[0]+=.10257936507936508*e,i[1]+=.0664021164021164*e,i[2]=.016415012942191543*e,i}(this.es),this.mode){case 2:case 1:this.dd=1;break;case 3:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case 4:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Ue(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else 4===this.mode&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,i,n,s,o,r,l,c,d,p,f=t.x,m=t.y;if(f=Y(f-this.long0,this.over),this.sphere){if(o=Math.sin(m),p=Math.cos(m),n=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((i=this.mode===this.EQUIT?1+p*n:1+this.sinph0*o+this.cosph0*p*n)<=h)return null;e=(i=Math.sqrt(2/i))*p*Math.sin(f),i*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*n}
2else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(n=-n),Math.abs(m+this.lat0)<h)return null;i=u-.5*m,e=(i=2*(this.mode===this.S_POLE?Math.cos(i):Math.sin(i)))*Math.sin(f),i*=n}}else{switch(l=0,c=0,d=0,n=Math.cos(f),s=Math.sin(f),o=Math.sin(m),r=Ue(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(l=r/this.qp,c=Math.sqrt(1-l*l)),this.mode){case this.OBLIQ:d=1+this.sinb1*l+this.cosb1*c*n;break;case this.EQUIT:d=1+c*n;break;case this.N_POLE:d=a+m,r=this.qp-r;break;case this.S_POLE:d=m-a,r=this.qp+r}if(Math.abs(d)<h)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),i=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*l-this.sinb1*c*n):(d=Math.sqrt(2/(1+c*n)))*l*this.ymf,e=this.xmf*d*c*s;break;case this.N_POLE:case this.S_POLE:r>=0?(e=(d=Math.sqrt(r))*s,i=n*(this.mode===this.S_POLE?d:-d)):e=i=0}}return t.x=this.a*e+this.x0,t.y=this.a*i+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,i,n,s,o,r,l,c,u,d,p=t.x/this.a,f=t.y/this.a;if(this.sphere){var m,g=0,v=0;if((i=.5*(m=Math.sqrt(p*p+f*f)))>1)return null;switch(i=2*Math.asin(i),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(v=Math.sin(i),g=Math.cos(i)),this.mode){case this.EQUIT:i=Math.abs(m)<=h?0:Math.asin(f*v/m),p*=v,f=g*m;break;case this.OBLIQ:i=Math.abs(m)<=h?this.lat0:Math.asin(g*this.sinph0+f*v*this.cosph0/m),p*=v*this.cosph0,f=(g-Math.sin(i)*this.sinph0)*m;break;case this.N_POLE:f=-f,i=a-i;break;case this.S_POLE:i-=a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,f):0}else{if(l=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,f*=this.dd,(r=Math.sqrt(p*p+f*f))<h)return t.x=this.long0,t.y=this.lat0,t;s=2*Math.asin(.5*r/this.rq),n=Math.cos(s),p*=s=Math.sin(s),this.mode===this.OBLIQ?(l=n*this.sinb1+f*s*this.cosb1/r,o=this.qp*l,f=r*this.cosb1*n-f*this.sinb1*s):(l=f*s/r,o=this.qp*l,f=r*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(f=-f),!(o=p*p+f*f))return t.x=this.long0,t.y=this.lat0,t;l=1-o/this.qp,this.mode===this.S_POLE&&(l=-l)}e=Math.atan2(p,f),d=(c=Math.asin(l))+c,i=c+(u=this.apa)[0]*Math.sin(d)+u[1]*Math.sin(d+d)+u[2]*Math.sin(d+d+d)}return t.x=Y(this.long0+e,this.over),t.y=i,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function Ye(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}i.dn(Ye);var Ve={init:function(){Math.abs(this.lat1+this.lat2)<h||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=U(this.e3,this.sin_po,this.cos_po),this.qs1=Ue(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=U(this.e3,this.sin_po,this.cos_po),this.qs2=Ue(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Ue(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>h?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,i=t.y;this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i);var n=Ue(this.e3,this.sin_phi),s=this.a*Math.sqrt(this.c-this.ns0*n)/this.ns0,o=this.ns0*Y(e-this.long0,this.over),r=s*Math.sin(o)+this.x0,a=this.rh-s*Math.cos(o)+this.y0;return t.x=r,t.y=a,t},inverse:function(t){var e,i,n,s,o,r;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),n=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),n=-1),s=0,0!==e&&(s=Math.atan2(n*t.x,n*t.y)),n=e*this.ns0/this.a,this.sphere?r=Math.asin((this.c-n*n)/(2*this.ns0)):(i=(this.c-n*n)/this.ns0,r=this.phi1z(this.e3,i)),o=Y(s/this.ns0+this.long0,this.over),t.x=o,t.y=r,t},names:["Albers_Conic_Equal_Area","Albers_Equal_Area","Albers","aea"],phi1z:function(t,e){var i,n,s,o,r=Ye(.5*e);if(t<h)return r;for(var a=t*t,l=1;l<=25;l++)if(r+=o=.5*(s=1-(n=t*(i=Math.sin(r)))*n)*s/Math.cos(r)*(e/(1-a)-i/s+.5/t*Math.log((1-n)/(1+n))),Math.abs(o)<=1e-7)return r;return null}},Xe={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,i,n,s,o,r,a,l=t.x,c=t.y;return n=Y(l-this.long0,this.over),e=Math.sin(c),i=Math.cos(c),s=Math.cos(n),(o=this.sin_p14*e+this.cos_p14*i*s)>
20||Math.abs(o)<=h?(r=this.x0+1*this.a*i*Math.sin(n)/o,a=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*i*s)/o):(r=this.x0+this.infinity_dist*i*Math.sin(n),a=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*i*s)),t.x=r,t.y=a,t},inverse:function(t){var e,i,n,s,o,r;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(s=Math.atan2(e,this.rc),i=Math.sin(s),r=Ye((n=Math.cos(s))*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.atan2(t.x*i,e*this.cos_p14*n-t.y*this.sin_p14*i),o=Y(this.long0+o,this.over)):(r=this.phic0,o=0),t.x=o,t.y=r,t},names:["gnom"]};function Ke(t,e){var i=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-i)<1e-6)return e<0?-1*a:a;for(var n,s,o,r,h=Math.asin(.5*e),l=0;l<30;l++)if(s=Math.sin(h),o=Math.cos(h),r=t*s,h+=n=Math.pow(1-r*r,2)/(2*o)*(e/(1-t*t)-s/(1-r*r)+.5/t*Math.log((1-r)/(1+r))),Math.abs(n)<=1e-10)return h;return NaN}i.dn(Ke);var $e={init:function(){this.sphere||(this.k0=U(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,i,n=t.x,s=t.y,o=Y(n-this.long0,this.over);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),i=this.y0+this.a*Math.sin(s)/Math.cos(this.lat_ts);else{var r=Ue(this.e,Math.sin(s));e=this.x0+this.a*this.k0*o,i=this.y0+this.a*r*.5/this.k0}return t.x=e,t.y=i,t},inverse:function(t){var e,i;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=Y(this.long0+t.x/this.a/Math.cos(this.lat_ts),this.over),i=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(i=Ke(this.e,2*t.y*this.k0/this.a),e=Y(this.long0+t.x/(this.a*this.k0),this.over)),t.x=e,t.y=i,t},names:["cea"]},Je={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,i=t.y,n=Y(e-this.long0,this.over),s=Fe(i-this.lat0);return t.x=this.x0+this.a*n*this.rc,t.y=this.y0+this.a*s,t},inverse:function(t){var e=t.x,i=t.y;return t.x=Y(this.long0+(e-this.x0)/(this.a*this.rc),this.over),t.y=Fe(this.lat0+(i-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","Equidistant_Cylindrical_Spherical","eqc"]},Qe={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=je(this.es),this.e1=Re(this.es),this.e2=Ge(this.es),this.e3=Be(this.es),this.ml0=this.a*ze(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,i,n,s=t.x,o=t.y,r=Y(s-this.long0,this.over);if(n=r*Math.sin(o),this.sphere)Math.abs(o)<=h?(e=this.a*r,i=-1*this.a*this.lat0):(e=this.a*Math.sin(n)/Math.tan(o),i=this.a*(Fe(o-this.lat0)+(1-Math.cos(n))/Math.tan(o)));else if(Math.abs(o)<=h)e=this.a*r,i=-1*this.ml0;else{var a=He(this.a,this.e,Math.sin(o))/Math.tan(o);e=a*Math.sin(n),i=this.a*ze(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+a*(1-Math.cos(n))}return t.x=e+this.x0,t.y=i+this.y0,t},inverse:function(t){var e,i,n,s,o,r,a,l,c;if(n=t.x-this.x0,s=t.y-this.y0,this.sphere)if(Math.abs(s+this.a*this.lat0)<=h)e=Y(n/this.a+this.long0,this.over),i=0;else{var u;for(r=this.lat0+s/this.a,a=n*n/this.a/this.a+r*r,l=r,o=20;o;--o)if(l+=c=-1*(r*(l*(u=Math.tan(l))+1)-l-.5*(l*l+a)*u)/((l-r)/u-1),Math.abs(c)<=h){i=l;break}e=Y(this.long0+Math.asin(n*Math.tan(l)/this.a)/Math.sin(i),this.over)}else if(Math.abs(s+this.ml0)<=h)i=0,e=Y(this.long0+n/this.a,this.over);else{var d,p,f,m,g;for(r=(this.ml0+s)/this.a,a=n*n/this.a/this.a+r*r,l=r,o=20;o;--o)if(g=this.e*Math.sin(l),d=Math.sqrt(1-g*g)*Math.tan(l),p=this.a*ze(this.e0,this.e1,this.e2,this.e3,l),f=this.e0-2*this.e1*Math.cos(2*l)+4*this.e2*Math.cos(4*l)-6*this.e3*Math.cos(6*l),l-=c=(r*(d*(m=p/this.a)+1)-m-.5*d*(m*m+a))/(this.es*Math.sin(2*l)*(m*m+a-2*r*m)/(4*d)+(r-m)*(d*f-2/Math.sin(2*l))-f),Math.abs(c)<=h){i=l;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(i),2))*Math.tan(i),e=Y(this.long0+Math.asin(n*d/this.a)/Math.sin(i),this.over)}return t.x=e,t.y=i,t},names:["Polyconic","American_Polyconic","poly"]},ti={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,i=t.x,n=t.y-this.lat0,s=i-this.long0,o=n/r*1e-5,a=s,h=1,l=0;for(e=1;e<=10;e++)h*=o,l+=this.A[e]*h;var c,u=l,d=a,p=1,f=0,m=0,g=0;for(e=1;e<=6;e++)c=f*u+p*d,p=p*u-f*d,f=c,m=m+this.B_re[e]*p-this.B_im[e]*f,g=g+this.B_im[e]*p+this.B_re[e]*f;return t.x=g*this.a+this.x0,t.y=m*this.a+this.y0,t},inverse:function(t){var e,i,n=t.x,s=t.y,o=n-this.x0,a=(s-this.y0)/this.a,h=o/this.a,l=1,c=0,u=0,d=0;for(e=1;e<=6;e++)i=c*a+l*h,l=l*a-c*h,c=i,u=u+this.C_re[e]*l-this.C_im[e]*c,d=d+this.C_im[e]*l+this.C_re[e]*c;for(var p=0;p<this.iterations;p++){var f,m=u,g=d,v=a,_=h;for(e=2;e<=6;e++)f=g*u+m*d,m=m*u-g*d,g=f,v+=(e-1)*(this.B_re[e]*m-this.B_im[e]*g),_+=(e-1)*(this.B_im[e]*m+this.B_re[e]*g);m=1,g=0;var y=this.B_re[1],b=this.B_im[1];for(e=2;e<=6;e++)f=g*u+m*d,m=m*u-g*d,g=f,y+=e*(this.B_re[e]*m-this.B_im[e]*g),b+=e*(this.B_im[e]*m+this.B_re[e]*g);var x=y*y+b*b;u=(v*y+_*b)/x,d=(_*y-v*b)/x}var w=u,M=d,S=1,C=0;for(e=1;e<=9;e++)S*=w,C+=this.D[e]*S;var k=this.lat0+C*r*1e5,P=this.long0+M;return t.x=P,t.y=k,t},names:["New_Zealand_Map_Grid","nzmg"]},ei={init:function(){},forward:function(t){var e=t.x,i=t.y,n=Y(e-this.long0,this.over),s=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+i/2.5))*1.25;return t.x=s,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=Y(this.long0+t.x/this.a,this.over),i=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=i,t},names:["Miller_Cylindrical","mill"]},ii={init:function(){this.long0=this.long0||0,this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=ce(this.es)},forward:function(t){var e,i,n=t.x,s=t.y;if(n=Y(n-this.long0,this.over),this.sphere){if(this.m)for(var o=this.n*Math.sin(s),r=20;r;--r){var a=(this.m*s+Math.sin(s)-o)/(this.m+Math.cos(s));if(s-=a,Math.abs(a)<h)break}
2else s=1!==this.n?Math.asin(this.n*Math.sin(s)):s;e=this.a*this.C_x*n*(this.m+Math.cos(s)),i=this.a*this.C_y*s}else{var l=Math.sin(s),c=Math.cos(s);i=this.a*ue(s,l,c,this.en),e=this.a*n*c/Math.sqrt(1-this.es*l*l)}return t.x=e,t.y=i,t},inverse:function(t){var e,i,n;return t.x-=this.x0,i=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,i/=this.C_x*(this.m+Math.cos(e)),this.m?e=Ye((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=Ye(Math.sin(e)/this.n)),i=Y(i+this.long0,this.over),e=Fe(e)):(e=pe(t.y/this.a,this.es,this.en),(n=Math.abs(e))<a?(n=Math.sin(e),i=Y(this.long0+t.x*Math.sqrt(1-this.es*n*n)/(this.a*Math.cos(e)),this.over)):n-h<a&&(i=this.long0)),t.x=i,t.y=e,t},names:["Sinusoidal","sinu"]},ni={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){for(var e=t.x,i=t.y,n=Y(e-this.long0,this.over),s=i,o=Math.PI*Math.sin(i);;){var r=-(s+Math.sin(s)-o)/(1+Math.cos(s));if(s+=r,Math.abs(r)<h)break}s/=2,Math.PI/2-Math.abs(i)<h&&(n=0);var a=.900316316158*this.a*n*Math.cos(s)+this.x0,l=1.4142135623731*this.a*Math.sin(s)+this.y0;return t.x=a,t.y=l,t},inverse:function(t){var e,i;t.x-=this.x0,t.y-=this.y0,i=t.y/(1.4142135623731*this.a),Math.abs(i)>.999999999999&&(i=.999999999999),e=Math.asin(i);var n=Y(this.long0+t.x/(.900316316158*this.a*Math.cos(e)),this.over);n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),i=(2*e+Math.sin(2*e))/Math.PI,Math.abs(i)>1&&(i=1);var s=Math.asin(i);return t.x=n,t.y=s,t},names:["Mollweide","moll"]},si={init:function(){Math.abs(this.lat1+this.lat2)<h||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=je(this.es),this.e1=Re(this.es),this.e2=Ge(this.es),this.e3=Be(this.es),this.sin_phi=Math.sin(this.lat1),this.cos_phi=Math.cos(this.lat1),this.ms1=U(this.e,this.sin_phi,this.cos_phi),this.ml1=ze(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<h?this.ns=this.sin_phi:(this.sin_phi=Math.sin(this.lat2),this.cos_phi=Math.cos(this.lat2),this.ms2=U(this.e,this.sin_phi,this.cos_phi),this.ml2=ze(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ze(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,i=t.x,n=t.y;if(this.sphere)e=this.a*(this.g-n);else{var s=ze(this.e0,this.e1,this.e2,this.e3,n);e=this.a*(this.g-s)}var o=this.ns*Y(i-this.long0,this.over),r=this.x0+e*Math.sin(o),a=this.y0+this.rh-e*Math.cos(o);return t.x=r,t.y=a,t},inverse:function(t){var e,i,n,s;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(i=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;return 0!==i&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere?(s=Y(this.long0+o/this.ns,this.over),n=Fe(this.g-i/this.a),t.x=s,t.y=n,t):(n=We(this.g-i/this.a,this.e0,this.e1,this.e2,this.e3),s=Y(this.long0+o/this.ns,this.over),t.x=s,t.y=n,t)},names:["Equidistant_Conic","eqdc"]},oi={init:function(){this.R=this.a},forward:function(t){var e,i,n=t.x,s=t.y,o=Y(n-this.long0,this.over);Math.abs(s)<=h&&(e=this.x0+this.R*o,i=this.y0);var r=Ye(2*Math.abs(s/Math.PI));(Math.abs(o)<=h||Math.abs(Math.abs(s)-a)<=h)&&(e=this.x0,i=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*r):this.y0+Math.PI*this.R*-Math.tan(.5*r));var l=.5*Math.abs(Math.PI/o-o/Math.PI),c=l*l,u=Math.sin(r),d=Math.cos(r),p=d/(u+d-1),f=p*p,m=p*(2/u-1),g=m*m,v=Math.PI*this.R*(l*(p-g)+Math.sqrt(c*(p-g)*(p-g)-(g+c)*(f-g)))/(g+c);o<0&&(v=-v),e=this.x0+v;var _=c+p;return v=Math.PI*this.R*(m*_-l*Math.sqrt((g+c)*(c+1)-_*_))/(g+c),i=s>=0?this.y0+v:this.y0-v,t.x=e,t.y=i,t},inverse:function(t){var e,i,n,s,o,r,a,l,c,u,d,p;return t.x-=this.x0,t.y-=this.y0,d=Math.PI*this.R,o=(n=t.x/d)*n+(s=t.y/d)*s,d=3*(s*s/(l=-2*(r=-Math.abs(s)*(1+o))+1+2*s*s+o*o)+(2*(a=r-2*s*s+n*n)*a*a/l/l/l-9*r*a/l/l)/27)/(c=(r-a*a/3/l)/l)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),p=Math.acos(d)/3,i=t.y>=0?(-u*Math.cos(p+Math.PI/3)-a/3/l)*Math.PI:-(-u*Math.cos(p+Math.PI/3)-a/3/l)*Math.PI,e=Math.abs(n)<h?this.long0:Y(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-s*s)+o*o))/2/n,this.over),t.x=e,t.y=i,t},names:["Van_der_Grinten_I","VanDerGrinten","Van_der_Grinten","vandg"]},ri={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0),this.f=this.es/(1+Math.sqrt(1-this.es))},forward:function(t){var e,i,n,s,o,r,l,c,u,d,p,f=t.x,m=t.y,g=Math.sin(t.y),v=Math.cos(t.y),_=Y(f-this.long0,this.over);return this.sphere?Math.abs(this.sin_p12-1)<=h?(t.x=this.x0+this.a*(a-m)*Math.sin(_),t.y=this.y0-this.a*(a-m)*Math.cos(_),t):Math.abs(this.sin_p12+1)<=h?(t.x=this.x0+this.a*(a+m)*Math.sin(_),t.y=this.y0+this.a*(a+m)*Math.cos(_),t):(u=this.sin_p12*g+this.cos_p12*v*Math.cos(_),c=(l=Math.acos(u))?l/Math.sin(l):1,t.x=this.x0+this.a*c*v*Math.sin(_),t.y=this.y0+this.a*c*(this.cos_p12*g-this.sin_p12*v*Math.cos(_)),t):(e=je(this.es),i=Re(this.es),n=Ge(this.es),s=Be(this.es),Math.abs(this.sin_p12-1)<=h?(o=this.a*ze(e,i,n,s,a),r=this.a*ze(e,i,n,s,m),t.x=this.x0+(o-r)*Math.sin(_),t.y=this.y0-(o-r)*Math.cos(_),t):Math.abs(this.sin_p12+1)<=h?(o=this.a*ze(e,i,n,s,a),r=this.a*ze(e,i,n,s,m),t.x=this.x0+(o+r)*Math.sin(_),t.y=this.y0+(o+r)*Math.cos(_),t):Math.abs(f)<h&&Math.abs(m-this.lat0)<h?(t.x=t.y=0,t):(d=function(t,e,
2i,n,s,o){const r=n-e,a=Math.atan((1-o)*Math.tan(t)),h=Math.atan((1-o)*Math.tan(i)),l=Math.sin(a),c=Math.cos(a),u=Math.sin(h),d=Math.cos(h);let p,f,m,g,v,_,y,b,x,w,M,S,C,k,P,T=r,E=100;do{if(f=Math.sin(T),m=Math.cos(T),g=Math.sqrt(d*f*(d*f)+(c*u-l*d*m)*(c*u-l*d*m)),0===g)return{azi1:0,s12:0};v=l*u+c*d*m,_=Math.atan2(g,v),y=c*d*f/g,b=1-y*y,x=0!==b?v-2*l*u/b:0,w=o/16*b*(4+o*(4-3*b)),p=T,T=r+(1-w)*o*y*(_+w*g*(x+w*v*(2*x*x-1)))}while(Math.abs(T-p)>1e-12&&--E>0);return 0===E?{azi1:NaN,s12:NaN}:(M=b*(s*s-s*(1-o)*(s*(1-o)))/(s*(1-o)*(s*(1-o))),S=1+M/16384*(4096+M*(M*(320-175*M)-768)),C=M/1024*(256+M*(M*(74-47*M)-128)),k=C*g*(x+C/4*(v*(2*x*x-1)-C/6*x*(4*g*g-3)*(4*x*x-3))),P=s*(1-o)*S*(_-k),{azi1:Math.atan2(d*f,c*u-l*d*m),s12:P})}(this.lat0,this.long0,m,f,this.a,this.f),p=d.azi1,t.x=d.s12*Math.sin(p),t.y=d.s12*Math.cos(p),t))},inverse:function(t){var e,i,n,s,o,r,l,c,u,d,p,f,m,g,v;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return i=e/this.a,n=Math.sin(i),s=Math.cos(i),o=this.long0,Math.abs(e)<=h?r=this.lat0:(r=Ye(s*this.sin_p12+t.y*n*this.cos_p12/e),l=Math.abs(this.lat0)-a,o=Math.abs(l)<=h?this.lat0>=0?Y(this.long0+Math.atan2(t.x,-t.y),this.over):Y(this.long0-Math.atan2(-t.x,t.y),this.over):Y(this.long0+Math.atan2(t.x*n,e*this.cos_p12*s-t.y*this.sin_p12*n),this.over)),t.x=o,t.y=r,t}return c=je(this.es),u=Re(this.es),d=Ge(this.es),p=Be(this.es),Math.abs(this.sin_p12-1)<=h?(r=We(((f=this.a*ze(c,u,d,p,a))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,c,u,d,p),o=Y(this.long0+Math.atan2(t.x,-1*t.y),this.over),t.x=o,t.y=r,t):Math.abs(this.sin_p12+1)<=h?(f=this.a*ze(c,u,d,p,a),r=We(((e=Math.sqrt(t.x*t.x+t.y*t.y))-f)/this.a,c,u,d,p),o=Y(this.long0+Math.atan2(t.x,t.y),this.over),t.x=o,t.y=r,t):(m=Math.atan2(t.x,t.y),g=Math.sqrt(t.x*t.x+t.y*t.y),v=function(t,e,i,n,s,o){const r=Math.atan((1-o)*Math.tan(t)),a=Math.sin(r),h=Math.cos(r),l=Math.sin(i),c=Math.cos(i),u=Math.atan2(a,h*c),d=h*l,p=1-d*d,f=p*(s*s-s*(1-o)*(s*(1-o)))/(s*(1-o)*(s*(1-o))),m=1+f/16384*(4096+f*(f*(320-175*f)-768)),g=f/1024*(256+f*(f*(74-47*f)-128));let v,_,y,b,x,w=n/(s*(1-o)*m),M=100;do{_=Math.cos(2*u+w),y=Math.sin(w),b=Math.cos(w),x=g*y*(_+g/4*(b*(2*_*_-1)-g/6*_*(4*y*y-3)*(4*_*_-3))),v=w,w=n/(s*(1-o)*m)+x}while(Math.abs(w-v)>1e-12&&--M>0);if(0===M)return{lat2:NaN,lon2:NaN};const S=a*y-h*b*c,C=o/16*p*(4+o*(4-3*p));return{lat2:Math.atan2(a*b+h*y*c,(1-o)*Math.sqrt(d*d+S*S)),lon2:e+(Math.atan2(y*l,h*b-a*y*c)-(1-C)*o*d*(w+C*y*(_+C*b*(2*_*_-1))))}}(this.lat0,this.long0,m,g,this.a,this.f),t.x=v.lon2,t.y=v.lat2,t)},names:["Azimuthal_Equidistant","aeqd"]},ai={init:function(){this.sin_p14=Math.sin(this.lat0||0),this.cos_p14=Math.cos(this.lat0||0)},forward:function(t){var e,i,n,s,o,r,a,l=t.x,c=t.y;return n=Y(l-(this.long0||0),this.over),e=Math.sin(c),i=Math.cos(c),s=Math.cos(n),((o=this.sin_p14*e+this.cos_p14*i*s)>0||Math.abs(o)<=h)&&(r=1*this.a*i*Math.sin(n),a=(this.y0||0)+1*this.a*(this.cos_p14*e-this.sin_p14*i*s)),t.x=r,t.y=a,t},inverse:function(t){var e,i,n,s,o,r,l,c,u;return t.x-=this.x0||0,t.y-=this.y0||0,i=Ye((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),n=Math.sin(i),s=Math.cos(i),c=this.long0||0,u=this.lat0||0,r=c,Math.abs(e)<=h?(l=u,t.x=r,t.y=l,t):(l=Ye(s*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.abs(u)-a,Math.abs(o)<=h?(r=Y(u>=0?c+Math.atan2(t.x,-t.y):c-Math.atan2(-t.x,t.y),this.over),t.x=r,t.y=l,t):(r=Y(c+Math.atan2(t.x*n,e*this.cos_p14*s-t.y*this.sin_p14*n),this.over),t.x=r,t.y=l,t))},names:["ortho"]};function hi(t,e,i,n){var s;return t<h?(n.value=1,s=0):(s=Math.atan2(e,i),Math.abs(s)<=u?n.value=1:s>u&&s<=a+u?(n.value=2,s-=a):s>a+u||s<=-(a+u)?(n.value=3,s=s>=0?s-p:s+p):(n.value=4,s+=a)),s}function li(t,e){var i=t+e;return i<-p?i+=d:i>+p&&(i-=d),i}var ci={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-u/2?this.face=5:this.lat0<=-(a-u/2)?this.face=6:Math.abs(this.long0)<=u?this.face=1:Math.abs(this.long0)<=a+u?this.face=this.long0>0?2:4:this.face=3,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,i,n,s,o,r,h={x:0,y:0},l={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,i=t.x,5===this.face)s=a-e,i>=u&&i<=a+u?(l.value=1,n=i-a):i>a+u||i<=-(a+u)?(l.value=2,n=i>0?i-p:i+p):i>-(a+u)&&i<=-u?(l.value=3,n=i+a):(l.value=4,n=i);else if(6===this.face)s=a+e,i>=u&&i<=a+u?(l.value=1,n=-i+a):i<u&&i>=-u?(l.value=2,n=-i):i<-u&&i>=-(a+u)?(l.value=3,n=-i-a):(l.value=4,n=i>0?-i+p:-i-p);else{var c,d,f,m,g,v;2===this.face?i=li(i,+a):3===this.face?i=li(i,+p):4===this.face&&(i=li(i,-a)),m=Math.sin(e),g=Math.cos(e),v=Math.sin(i),c=g*Math.cos(i),d=g*v,f=m,1===this.face?n=hi(s=Math.acos(c),f,d,l):2===this.face?n=hi(s=Math.acos(d),f,-c,l):3===this.face?n=hi(s=Math.acos(-c),f,-d,l):4===this.face?n=hi(s=Math.acos(-d),f,c,l):(s=n=0,l.value=1)}return r=Math.atan(12/p*(n+Math.acos(Math.sin(n)*Math.cos(u))-a)),o=Math.sqrt((1-Math.cos(s))/(Math.cos(r)*Math.cos(r))/(1-Math.cos(Math.atan(1/Math.cos(n))))),2===l.value?r+=a:3===l.value?r+=p:4===l.value&&(r+=1.5*p),h.x=o*Math.cos(r),h.y=o*Math.sin(r),h.x=h.x*this.a+this.x0,h.y=h.y*this.a+this.y0,t.x=h.x,t.y=h.y,t},inverse:function(t){var e,i,n,s,o,r,h,l,c,u,d,f,m={lam:0,phi:0},g={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,i=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?g.value=1:t.y>=0&&t.y>=Math.abs(t.x)?(g.value=2,e-=a):t.x<0&&-t.x>=Math.abs(t.y)?(g.value=3,e=e<0?e+p:e-p):(g.value=4,e+=a),c=p/12*Math.tan(e),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),r=Math.atan(o),(h=1-(n=Math.cos(e))*n*(s=Math.tan(i))*s*(1-Math.cos(Math.atan(1/Math.cos(r)))))<-1?h=-1:h>1&&(h=1),5===this.face)l=Math.acos(h),m.phi=a-l,1===g.value?m.lam=r+a:2===g.value?m.lam=r<0?r+p:r-p:3===g.value?m.lam=r-a:m.lam=r;else if(6===this.face)l=Math.acos(h),m.phi=l-a,1===g.value?m.lam=-r+a:2===g.value?m.lam=-r:3===g.value?m.lam=-r-a:m.lam=r<0?-r-p:-r+p;else{var v,_,y;c=(v=h)*v,_=(c+=(y=c>
2=1?0:Math.sqrt(1-c)*Math.sin(r))*y)>=1?0:Math.sqrt(1-c),2===g.value?(c=_,_=-y,y=c):3===g.value?(_=-_,y=-y):4===g.value&&(c=_,_=y,y=-c),2===this.face?(c=v,v=-_,_=c):3===this.face?(v=-v,_=-_):4===this.face&&(c=v,v=_,_=-c),m.phi=Math.acos(-y)-a,m.lam=Math.atan2(_,v),2===this.face?m.lam=li(m.lam,-a):3===this.face?m.lam=li(m.lam,-p):4===this.face&&(m.lam=li(m.lam,+a))}return 0!==this.es&&(u=m.phi<0?1:0,d=Math.tan(m.phi),f=this.b/Math.sqrt(d*d+this.one_minus_f_squared),m.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),u&&(m.phi=-m.phi)),m.lam+=this.long0,t.x=m.lam,t.y=m.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]},ui=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],di=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],pi=.8487,fi=1.3523,mi=c/5,gi=1/mi,vi=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))},_i={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=Y(t.x-this.long0,this.over),i=Math.abs(t.y),n=Math.floor(i*mi);n<0?n=0:n>=18&&(n=17);var s={x:vi(ui[n],i=c*(i-gi*n))*e,y:vi(di[n],i)};return t.y<0&&(s.y=-s.y),s.x=s.x*this.a*pi+this.x0,s.y=s.y*this.a*fi+this.y0,s},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*pi),y:Math.abs(t.y-this.y0)/(this.a*fi)};if(e.y>=1)e.x/=ui[18][0],e.y=t.y<0?-a:a;else{var i=Math.floor(18*e.y);for(i<0?i=0:i>=18&&(i=17);;)if(di[i][0]>e.y)--i;else{if(!(di[i+1][0]<=e.y))break;++i}var n=di[i],s=5*(e.y-n[0])/(di[i+1][0]-n[0]);s=function(t,e,i,n){for(var s=e;n;--n){var o=t(s);if(s-=o,Math.abs(o)<1e-10)break}return s}(function(t){return(vi(n,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(n,t)},s,0,100),e.x/=vi(ui[i],s),e.y=(5*i+s)*l,t.y<0&&(e.y=-e.y)}return e.x=Y(e.x+this.long0,this.over),e},names:["Robinson","robin"]},yi={init:function(){this.name="geocent"},forward:function(t){return xt(t,this.es,this.a)},inverse:function(t){return wt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]},bi={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}},xi={init:function(){if(Object.keys(bi).forEach(function(t){if(void 0===this[t])this[t]=bi[t].def;else{if(bi[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);bi[t].num&&(this[t]=parseFloat(this[t]))}bi[t].degrees&&(this[t]=this[t]*l)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<h?this.mode=this.lat0<0?1:0:Math.abs(this.lat0)<h?this.mode=2:(this.mode=3,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,i,n,s,o=Math.sin(t.y),r=Math.cos(t.y),a=Math.cos(t.x);switch(this.mode){case 3:i=this.sinph0*o+this.cosph0*r*a;break;case 2:i=r*a;break;case 1:i=-o;break;case 0:i=o}switch(e=(i=this.pn1/(this.p-i))*r*Math.sin(t.x),this.mode){case 3:i*=this.cosph0*o-this.sinph0*r*a;break;case 2:i*=o;break;case 0:i*=-r*a;break;case 1:i*=r*a}return s=1/((n=i*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-i*this.sg)*this.cw*s,i=n*s,t.x=e*this.a,t.y=i*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,i,n,s={x:t.x,y:t.y};n=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*n,i=this.pn1*t.y*this.cw*n,t.x=e*this.cg+i*this.sg,t.y=i*this.cg-e*this.sg;var o=ge(t.x,t.y);if(Math.abs(o)<h)s.x=0,s.y=t.y;else{var r,a;switch(a=1-o*o*this.pfact,a=(this.p-Math.sqrt(a))/(this.pn1/o+o/this.pn1),r=M
2ath.sqrt(1-a*a),this.mode){case 3:s.y=Math.asin(r*this.sinph0+t.y*a*this.cosph0/o),t.y=(r-this.sinph0*Math.sin(s.y))*o,t.x*=a*this.cosph0;break;case 2:s.y=Math.asin(t.y*a/o),t.y=r*o,t.x*=a;break;case 0:s.y=Math.asin(r),t.y=-t.y;break;case 1:s.y=-Math.asin(r)}s.x=Math.atan2(t.x,t.y)}return t.x=s.x+this.long0,t.y=s.y,t},names:["Tilted_Perspective","tpers"]},wi={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,i,n,s,o=t.x,r=t.y;if(o-=this.long0,"ellipse"===this.shape){r=Math.atan(this.radius_p2*Math.tan(r));var a=this.radius_p/ge(this.radius_p*Math.cos(r),Math.sin(r));if(i=a*Math.cos(o)*Math.cos(r),n=a*Math.sin(o)*Math.cos(r),s=a*Math.sin(r),(this.radius_g-i)*i-n*n-s*s*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(n/ge(s,e)),t.y=this.radius_g_1*Math.atan(s/e)):(t.x=this.radius_g_1*Math.atan(n/e),t.y=this.radius_g_1*Math.atan(s/ge(n,e)))}else"sphere"===this.shape&&(e=Math.cos(r),i=Math.cos(o)*e,n=Math.sin(o)*e,s=Math.sin(r),e=this.radius_g-i,this.flip_axis?(t.x=this.radius_g_1*Math.atan(n/ge(s,e)),t.y=this.radius_g_1*Math.atan(s/e)):(t.x=this.radius_g_1*Math.atan(n/e),t.y=this.radius_g_1*Math.atan(s/ge(n,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,i,n,s,o=-1,r=0,a=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),r=Math.tan(t.x/this.radius_g_1)*ge(1,a)):(r=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*ge(1,r));var h=a/this.radius_p;if(e=r*r+h*h+o*o,(n=(i=2*this.radius_g*o)*i-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;s=(-i-Math.sqrt(n))/(2*e),o=this.radius_g+s*o,r*=s,a*=s,t.x=Math.atan2(r,o),t.y=Math.atan(a*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(a=Math.tan(t.y/this.radius_g_1),r=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+a*a)):(r=Math.tan(t.x/this.radius_g_1),a=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+r*r)),e=r*r+a*a+o*o,(n=(i=2*this.radius_g*o)*i-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;s=(-i-Math.sqrt(n))/(2*e),o=this.radius_g+s*o,r*=s,a*=s,t.x=Math.atan2(r,o),t.y=Math.atan(a*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]},Mi=1.340264,Si=-.081106,Ci=893e-6,ki=.003796,Pi=Math.sqrt(3)/2,Ti={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0,this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0},forward:function(t){var e=Y(t.x-this.long0,this.over),i=t.y,n=Math.asin(Pi*Math.sin(i)),s=n*n,o=s*s*s;return t.x=e*Math.cos(n)/(Pi*(Mi+3*Si*s+o*(7*Ci+9*ki*s))),t.y=n*(Mi+Si*s+o*(Ci+ki*s)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,i,n,s,o=t.y;for(s=0;s<12&&(o-=n=(o*(Mi+Si*(e=o*o)+(i=e*e*e)*(Ci+ki*e))-t.y)/(Mi+3*Si*e+i*(7*Ci+9*ki*e)),!(Math.abs(n)<1e-9));++s);return i=(e=o*o)*e*e,t.x=Pi*t.x*(Mi+3*Si*e+i*(7*Ci+9*ki*e))/Math.cos(o),t.y=Math.asin(Math.sin(o)/Pi),t.x=Y(t.x+this.long0,this.over),t},names:["eqearth","Equal Earth","Equal_Earth"]},Ei=1e-10;function Li(t){var e,i,n,s=Y(t.x-(this.long0||0),this.over),o=t.y;return e=this.am1+this.m1-ue(o,i=Math.sin(o),n=Math.cos(o),this.en),i=n*s/(e*Math.sqrt(1-this.es*i*i)),t.x=e*Math.sin(i),t.y=this.am1-e*Math.cos(i),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Ai(t){var e,i,n,s;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=ge(t.x,t.y=this.am1-t.y),s=pe(this.am1+this.m1-i,this.es,this.en),(e=Math.abs(s))<a)e=Math.sin(s),n=i*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(s);else{if(!(Math.abs(e-a)<=Ei))throw new Error;n=0}return t.x=Y(n+(this.long0||0),this.over),t.y=Fe(s),t}function Oi(t){var e,i,n=Y(t.x-(this.long0||0),this.over),s=t.y;return i=this.cphi1+this.phi1-s,Math.abs(i)>Ei?(t.x=i*Math.sin(e=n*Math.cos(s)/i),t.y=this.cphi1-i*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Ii(t){var e,i;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var n=ge(t.x,t.y=this.cphi1-t.y);if(i=this.cphi1+this.phi1-n,Math.abs(i)>
2a)throw new Error;return e=Math.abs(Math.abs(i)-a)<=Ei?0:n*Math.atan2(t.x,t.y)/Math.cos(i),t.x=Y(e+(this.long0||0),this.over),t.y=Fe(i),t}var Di={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<Ei)throw new Error;this.es?(this.en=ce(this.es),this.m1=ue(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Ai,this.forward=Li):(Math.abs(this.phi1)+Ei>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Ii,this.forward=Oi)},names:["bonne","Bonne (Werner lat_1=90)"]};const Ni={OBLIQUE:{forward:function(t,e){let{x:i,y:n}=e;i+=t.long0;const s=Math.cos(i),o=Math.sin(n),r=Math.cos(n);e.x=Y(Math.atan2(r*Math.sin(i),t.sphip*r*s+t.cphip*o)+t.lamp),e.y=Math.asin(t.sphip*o-t.cphip*r*s);const a=t.obliqueProjection.forward(e);return t.isIdentity&&(a.x*=c,a.y*=c),a},inverse:function(t,e){t.isIdentity&&(e.x*=l,e.y*=l);const i=t.obliqueProjection.inverse(e);let{x:n,y:s}=i;if(n<Number.MAX_VALUE){n-=t.lamp;const i=Math.cos(n),o=Math.sin(s),r=Math.cos(s);e.x=Math.atan2(r*Math.sin(n),t.sphip*r*i-t.cphip*o),e.y=Math.asin(t.sphip*o+t.cphip*r*i)}return e.x=Y(e.x+t.long0),e}},TRANSVERSE:{forward:function(t,e){let{x:i,y:n}=e;i+=t.long0;const s=Math.cos(n),o=Math.cos(i);e.x=Y(Math.atan2(s*Math.sin(i),Math.sin(n))+t.lamp),e.y=Math.asin(-1*s*o);const r=t.obliqueProjection.forward(e);return t.isIdentity&&(r.x*=c,r.y*=c),r},inverse:function(t,e){t.isIdentity&&(e.x*=l,e.y*=l);const i=t.obliqueProjection.inverse(e);let{x:n,y:s}=i;if(n<Number.MAX_VALUE){const i=Math.cos(s);n-=t.lamp,e.x=Math.atan2(i*Math.sin(n),-1*Math.sin(s)),e.y=Math.asin(i*Math.cos(n))}return e.x=Y(e.x+t.long0),e}}},zi={ROTATE:{o_alpha:"oAlpha",o_lon_c:"oLongC",o_lat_c:"oLatC"},NEW_POLE:{o_lat_p:"oLatP",o_lon_p:"oLongP"},NEW_EQUATOR:{o_lon_1:"oLong1",o_lat_1:"oLat1",o_lon_2:"oLong2",o_lat_2:"oLat2"}};var ji={init:function(){if(this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.title=this.title||"General Oblique Transformation",this.isIdentity=$.includes(this.o_proj),!this.o_proj)throw new Error("Missing parameter: o_proj");if("ob_tran"===this.o_proj)throw new Error("Invalid value for o_proj: "+this.o_proj);const t=this.projStr.replace("+proj=ob_tran","").replace("+o_proj=","+proj=").trim(),e=bt(t);if(!e)throw new Error("Invalid parameter: o_proj. Unknown projection "+this.o_proj);let i;e.long0=0,this.obliqueProjection=e;const n=Object.keys(zi),s=t=>{if(void 0===this[t])return;const e=parseFloat(this[t])*l;if(isNaN(e))throw new Error("Invalid value for "+t+": "+this[t]);return e};for(let t=0;t<n.length;t++){const e=n[t],o=zi[e],r=Object.entries(o);if(r.some(([t])=>void 0!==this[t])){i=o;for(let t=0;t<r.length;t++){const[e,i]=r[t],n=s(e);if(void 0===n)throw new Error("Missing parameter: "+e+".");this[i]=n}break}}if(!i)throw new Error("No valid parameters provided for ob_tran projection.");const{lamp:o,phip:r}=function(t,e){let i,n;if(e===zi.ROTATE){let e=t.oLongC,s=t.oLatC,o=t.oAlpha;if(Math.abs(Math.abs(s)-a)<=h)throw new Error("Invalid value for o_lat_c: "+t.o_lat_c+" should be < 90°");n=e+Math.atan2(-1*Math.cos(o),-1*Math.sin(o)*Math.sin(s)),i=Math.asin(Math.cos(s)*Math.sin(o))}else if(e===zi.NEW_POLE)n=t.oLongP,i=t.oLatP;else{let e=t.oLong1,s=t.oLat1,o=t.oLong2,r=t.oLat2,l=Math.abs(s);if(Math.abs(s)>a-h)throw new Error("Invalid value for o_lat_1: "+t.o_lat_1+" should be < 90°");if(Math.abs(r)>a-h)throw new Error("Invalid value for o_lat_2: "+t.o_lat_2+" should be < 90°");if(Math.abs(s-r)<h)throw new Error("Invalid value for o_lat_1 and o_lat_2: o_lat_1 should be different from o_lat_2");if(l<h)throw new Error("Invalid value for o_lat_1: o_lat_1 should be different from zero");n=Math.atan2(Math.cos(s)*Math.sin(r)*Math.cos(e)-Math.sin(s)*Math.cos(r)*Math.cos(o),Math.sin(s)*Math.cos(r)*Math.sin(o)-Math.cos(s)*Math.sin(r)*Math.sin(e)),i=Math.atan(-1*Math.cos(n-e)/Math.tan(s))}return{lamp:n,phip:i}}(this,i);this.lamp=o,Math.abs(r)>h?(this.cphip=Math.cos(r),this.sphip=Math.sin(r),this.projectionType=Ni.OBLIQUE):this.projectionType=Ni.TRANSVERSE},forward:function(t){return this.projectionType.forward(this,t)},inverse:function(t){return this.projectionType.inverse(this,t)},names:["General Oblique Transformation","General_Oblique_Transformation","ob_tran"]};function Ri(t){t.Proj.projections.add(fe),t.Proj.projections.add(Me),t.Proj.projections.add(Ce),t.Proj.projections.add(Te),t.Proj.projections.add(Le),t.Proj.projections.add(Ae),t.Proj.projections.add(Ie),t.Proj.projections.add(De),t.Proj.projections.add(Ne),t.Proj.projections.add(qe),t.Proj.projections.add(Ze),t.Proj.projections.add(Ve),t.Proj.projections.add(Xe),t.Proj.projections.add($e),t.Proj.projections.add(Je),t.Proj.projections.add(Qe),t.Proj.projections.add(ti),t.Proj.projections.add(ei),t.Proj.projections.add(ii),t.Proj.projections.add(ni),t.Proj.projections.add(si),t.Proj.projections.add(oi),t.Proj.projections.add(ri),t.Proj.projections.add(ai),t.Proj.projections.add(ci),t.Proj.projections.add(_i),t.Proj.projections.add(yi),t.Proj.projections.add(xi),t.Proj.projections.add(wi),t.Proj.projections.add(Ti),t.Proj.projections.add(Di),t.Proj.projections.add(ji)}i.dn(Ri);
2const Gi=Object.assign(function(t,e,i){var n,s,o,r=!1;return void 0===e?(s=Nt(t),n=It,r=!0):(void 0!==e.x||Array.isArray(e))&&(i=e,s=Nt(t),n=It,r=!0),n||(n=Nt(t)),s||(s=Nt(e)),i?Dt(n,s,i):(o={forward:function(t,e){return Dt(n,s,t,e)},inverse:function(t,e){return Dt(s,n,t,e)}},r&&(o.oProj=s),o)},{defaultDatum:"WGS84",Proj:bt,WGS84:new bt("WGS84"),Point:$t,toPoint:Et,defs:F,nadgrid:function(t,e,i){return e instanceof ArrayBuffer?function(t,e,i){var n=!0;void 0!==i&&!1===i.includeErrorFields&&(n=!1);var s=new DataView(e),o=function(t){var e=t.getInt32(8,!1);return 11!==e&&(11!==(e=t.getInt32(8,!0))&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian"),!0)}(s),r=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:mt(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(s,o),a=function(t,e,i,n){for(var s=176,o=[],r=0;r<e.nSubgrids;r++){var a=vt(t,s,i),h=_t(t,s,a,i,n),l=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),c=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);o.push({ll:[ft(a.lowerLongitude),ft(a.lowerLatitude)],del:[ft(a.longitudeInterval),ft(a.latitudeInterval)],lim:[l,c],count:a.gridNodeCount,cvs:gt(h)});var u=16;!1===n&&(u=8),s+=176+a.gridNodeCount*u}return o}(s,r,o,n),h={header:r,subgrids:a};return ct[t]=h,h}(t,e,i):{ready:ut(t,e)}},transform:Ot,mgrs:Ht,version:"__VERSION__"});Ri(Gi);var Bi=Gi},7142:function(t,e,i){var n,s,o;s=[i(3481),i(4709)],void 0===(o="function"==typeof(n=function(t,e){return e.__esModule&&e.default&&(e=e.default),t.Proj={},t.Proj._isProj4Obj=function(t){return void 0!==t.inverse&&void 0!==t.forward},t.Proj.Projection=t.Class.extend({initialize:function(e,i,n){var s=t.Proj._isProj4Obj(e);this._proj=s?e:this._projFromCodeDef(e,i),this.bounds=s?i:n},project:function(e){var i=this._proj.forward([e.lng,e.lat]);return new t.Point(i[0],i[1])},unproject:function(e,i){var n=this._proj.inverse([e.x,e.y]);return new t.LatLng(n[1],n[0],i)},_projFromCodeDef:function(t,i){if(i)e.defs(t,i);else if(void 0===e.defs[t]){var n=t.split(":");if(n.length>3&&(t=n[n.length-3]+":"+n[n.length-1]),void 0===e.defs[t])throw"No projection definition for code "+t}return e(t)}}),t.Proj.CRS=t.Class.extend({includes:t.CRS,options:{transformation:new t.Transformation(1,0,-1,0)},initialize:function(e,i,n){var s,o,r,a;if(t.Proj._isProj4Obj(e)?(s=(o=e).srsCode,a=i||{},this.projection=new t.Proj.Projection(o,a.bounds)):(s=e,r=i,a=n||{},this.projection=new t.Proj.Projection(s,r,a.bounds)),t.Util.setOptions(this,a),this.code=s,this.transformation=this.options.transformation,this.options.origin&&(this.transformation=new t.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales)this._scales=this.options.scales;else if(this.options.resolutions){this._scales=[];for(var h=this.options.resolutions.length-1;h>=0;h--)this.options.resolutions[h]&&(this._scales[h]=1/this.options.resolutions[h])}this.infinite=!this.options.bounds},scale:function(t){var e,i=Math.floor(t);return t===i?this._scales[t]:(e=this._scales[i])+(this._scales[i+1]-e)*(t-i)},zoom:function(t){var e,i,n=this._closestElement(this._scales,t),s=this._scales.indexOf(n);return t===n?s:void 0===n?-1/0:(i=s+1,void 0===(e=this._scales[i])?1/0:(t-n)/(e-n)+s)},distance:t.CRS.Earth.distance,R:t.CRS.Earth.R,_closestElement:function(t,e){for(var i,n=t.length;n--;)t[n]<=e&&(void 0===i||i<t[n])&&(i=t[n]);return i}}),t.Proj.GeoJSON=t.GeoJSON.extend({initialize:function(e,i){this._callLevel=0,t.GeoJSON.prototype.initialize.call(this,e,i)},addData:function(e){var i;e&&(e.crs&&"name"===e.crs.type?i=new t.Proj.CRS(e.crs.properties.name):e.crs&&e.crs.type&&(i=new t.Proj.CRS(e.crs.type+":"+e.crs.properties.code)),void 0!==i&&(this.options.coordsToLatLng=function(e){var n=t.point(e[0],e[1]);return i.projection.unproject(n)})),this._callLevel++;try{t.GeoJSON.prototype.addData.call(this,e)}finally{this._callLevel--,0===this._callLevel&&delete this.options.coordsToLatLng}}}),t.Proj.geoJson=function(e,i){return new t.Proj.GeoJSON(e,i)},t.Proj.ImageOverlay=t.ImageOverlay.extend({initialize:function(e,i,n){t.ImageOverlay.prototype.initialize.call(this,e,null,n),this._projectedBounds=i},_animateZoom:function(e){var i=this._map.getZoomScale(e.zoom),n=t.point(this._projectedBounds.min.x,this._projectedBounds.max.y),s=this._projectedToNewLayerPoint(n,e.zoom,e.center);t.DomUtil.setTransform(this._image,s,i)},_reset:function(){var e=this._map.getZoom(),i=this._map.getPixelOrigin(),n=t.bounds(this._transform(this._projectedBounds.min,e)._subtract(i),this._transform(this._projectedBounds.max,e)._subtract(i)),s=n.getSize();t.DomUtil.setPosition(this._image,n.min),this._image.style.width=s.x+"px",this._image.style.height=s.y+"px"}
2,_projectedToNewLayerPoint:function(t,e,i){var n=this._map.getSize()._divideBy(2),s=this._map.project(i,e)._subtract(n)._round().add(this._map._getMapPanePos());return this._transform(t,e)._subtract(s)},_transform:function(t,e){var i=this._map.options.crs,n=i.transformation,s=i.scale(e);return n.transform(t,s)}}),t.Proj.imageOverlay=function(e,i,n){return new t.Proj.ImageOverlay(e,i,n)},t.Proj})?n.apply(e,s):n)||(t.exports=o)},9306:function(t,e,i){"use strict";var n=i(4901),s=i(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not a function")}},5548:function(t,e,i){"use strict";var n=i(3517),s=i(6823),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not a constructor")}},3506:function(t,e,i){"use strict";var n=i(3925),s=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+s(t)+" as a prototype")}},6469:function(t,e,i){"use strict";var n=i(8227),s=i(2360),o=i(4913).f,r=n("unscopables"),a=Array.prototype;void 0===a[r]&&o(a,r,{configurable:!0,value:s(null)}),t.exports=function(t){a[r][t]=!0}},7829:function(t,e,i){"use strict";var n=i(8183).charAt;t.exports=function(t,e,i){return e+(i&&n(t,e).length||1)}},679:function(t,e,i){"use strict";var n=i(1625),s=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new s("Incorrect invocation")}},8551:function(t,e,i){"use strict";var n=i(34),s=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not an object")}},235:function(t,e,i){"use strict";var n=i(9213).forEach,s=i(4598)("forEach");t.exports=s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},7916:function(t,e,i){"use strict";var n=i(6080),s=i(9565),o=i(8981),r=i(6319),a=i(4209),h=i(3517),l=i(6198),c=i(4659),u=i(4527),d=i(81),p=i(851),f=i(9539),m=Array;t.exports=function(t){var e=h(this),i=arguments.length,g=i>1?arguments[1]:void 0,v=void 0!==g;v&&(g=n(g,i>2?arguments[2]:void 0));var _,y,b,x,w,M,S=o(t),C=p(S),k=0;if(!C||this===m&&a(C))for(_=l(S),y=e?new this(_):m(_);_>k;k++)M=v?g(S[k],k):S[k],c(y,k,M);else for(y=e?new this:[],w=(x=d(S,C)).next;!(b=s(w,x)).done;k++){M=v?r(x,g,[b.value,k],!0):b.value;try{c(y,k,M)}catch(t){f(x,"throw",t)}}return u(y,k),y}},9617:function(t,e,i){"use strict";var n=i(5397),s=i(5610),o=i(6198),r=function(t){return function(e,i,r){var a=n(e),h=o(a);if(0===h)return!t&&-1;var l,c=s(r,h);if(t&&i!=i){for(;h>c;)if((l=a[c++])!=l)return!0}else for(;h>c;c++)if((t||c in a)&&a[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},9213:function(t,e,i){"use strict";var n=i(6080),s=i(7055),o=i(8981),r=i(6198),a=i(1469),h=i(4659),l=function(t){var e=1===t,i=2===t,l=3===t,c=4===t,u=6===t,d=7===t,p=5===t||u;return function(f,m,g){for(var v,_,y=o(f),b=s(y),x=r(b),w=n(m,g),M=0,S=0,C=e?a(f,x):i||d?a(f,0):void 0;x>M;M++)if((p||M in b)&&(_=w(v=b[M],M,y),t))if(e)h(C,M,_);else if(_)switch(t){case 3:return!0;case 5:return v;case 6:return M;case 2:h(C,S++,v)}else switch(t){case 4:return!1;case 7:h(C,S++,v)}return u?-1:l||c?c:C}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},597:function(t,e,i){"use strict";var n=i(9039),s=i(8227),o=i(9519),r=s("species");t.exports=function(t){return o>=51||!n(function(){var e=[];return(e.constructor={})[r]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},4598:function(t,e,i){"use strict";var n=i(9039);t.exports=function(t,e){var i=[][t];return!!i&&n(function(){i.call(null,e||function(){return 1},1)})}},4527:function(t,e,i){"use strict";var n=i(3724),s=i(4376),o=TypeError,r=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(s(t)&&!r(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:function(t,e,i){"use strict";var n=i(9504);t.exports=n([].slice)},4488:function(t,e,i){"use strict";var n=i(7680),s=Math.floor,o=function(t,e){var i=t.length;if(i<8)for(var r,a,h=1;h<i;){for(a=h,r=t[h];a&&e(t[a-1],r)>0;)t[a]=t[--a];a!==h++&&(t[a]=r)}
vendor: 12,298 bytes, line 2
2else for(var l=s(i/2),c=o(n(t,0,l),e),u=o(n(t,l),e),d=c.length,p=u.length,f=0,m=0;f<d||m<p;)t[f+m]=f<d&&m<p?e(c[f],u[m])<=0?c[f++]:u[m++]:f<d?c[f++]:u[m++];return t};t.exports=o},7433:function(t,e,i){"use strict";var n=i(4376),s=i(3517),o=i(34),r=i(8227)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(s(e)&&(e===a||n(e.prototype))||o(e)&&null===(e=e[r]))&&(e=void 0)),void 0===e?a:e}},1469:function(t,e,i){"use strict";var n=i(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},6319:function(t,e,i){"use strict";var n=i(8551),s=i(9539);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){s(t,"throw",e)}}},4428:function(t,e,i){"use strict";var n=i(8227)("iterator"),s=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){s=!0}};r[n]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!s)return!1}catch(t){return!1}var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},2195:function(t,e,i){"use strict";var n=i(9504),s=n({}.toString),o=n("".slice);t.exports=function(t){return o(s(t),8,-1)}},6955:function(t,e,i){"use strict";var n=i(2140),s=i(4901),o=i(2195),r=i(8227)("toStringTag"),a=Object,h="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=a(t),r))?i:h?o(e):"Object"===(n=o(e))&&s(e.callee)?"Arguments":n}},7740:function(t,e,i){"use strict";var n=i(9297),s=i(5031),o=i(7347),r=i(4913);t.exports=function(t,e,i){for(var a=s(e),h=r.f,l=o.f,c=0;c<a.length;c++){var u=a[c];n(t,u)||i&&n(i,u)||h(t,u,l(e,u))}}},1436:function(t,e,i){"use strict";var n=i(8227)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},2211:function(t,e,i){"use strict";var n=i(9039);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},7240:function(t,e,i){"use strict";var n=i(9504),s=i(7750),o=i(655),r=/"/g,a=n("".replace);t.exports=function(t,e,i,n){var h=o(s(t)),l="<"+e;return""!==i&&(l+=" "+i+'="'+a(o(n),r,"&quot;")+'"'),l+">"+h+"</"+e+">"}},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,i){"use strict";var n=i(3724),s=i(4913),o=i(6980);t.exports=n?function(t,e,i){return s.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4659:function(t,e,i){"use strict";var n=i(3724),s=i(4913),o=i(6980);t.exports=function(t,e,i){n?s.f(t,e,o(0,i)):t[e]=i}},3640:function(t,e,i){"use strict";var n=i(8551),s=i(4270),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return s(this,t)}},2106:function(t,e,i){"use strict";var n=i(283),s=i(4913);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),s.f(t,e,i)}},6840:function(t,e,i){"use strict";var n=i(4901),s=i(4913),o=i(283),r=i(9433);t.exports=function(t,e,i,a){a||(a={});var h=a.enumerable,l=void 0!==a.name?a.name:e;if(n(i)&&o(i,l,a),a.global)h?t[e]=i:r(e,i);else{try{a.unsafe?t[e]&&(h=!0):delete t[e]}catch(t){}h?t[e]=i:s.f(t,e,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,i){"use strict";var n=i(6840);t.exports=function(t,e,i){for(var s in e)n(t,s,e[s],i);return t}},9433:function(t,e,i){"use strict";var n=i(4576),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},4606:function(t,e,i){"use strict";var n=i(6823),s=TypeError;t.exports=function(t,e){if(!delete t[e])throw new s("Cannot delete property "+n(e)+" of "+n(t))}},3724:function(t,e,i){"use strict";var n=i(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,i){"use strict";var n=i(4576),s=i(34),o=n.document,r=s(o)&&s(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},7400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9296:function(t,e,i){"use strict";var n=i(4055)("span").classList,s=n&&n.constructor&&n.constructor.prototype;t.exports=s===Object.prototype?void 0:s},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265:function(t,e,i){"use strict";var n=i(2839);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},9544:function(t,e,i){"use strict";var n=i(2839);t.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)},6193:function(t,e,i){"use strict";var n=i(4215);t.exports="NODE"===n},7860:function(t,e,i){"use strict";var n=i(2839);t.exports=/web0s(?!.*chrome)/i.test(n)},2839:function(t,e,i){"use strict";var n=i(4576).navigator,s=n&&n.userAgent;t.exports=s?String(s):""},9519:function(t,e,i){"use strict";var n,s,o=i(4576),r=i(2839),a=o.process,h=o.Deno,l=a&&a.versions||h&&h.version,c=l&&l.v8;c&&(s=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},4215:function(t,e,i){"use strict";var n=i(4576),s=i(2839),o=i(2195),r=function(t){return s.slice(0,t.length)===t};t.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},6518:function(t,e,i){"use strict";var n=i(4576),s=i(7347).f,o=i(6699),r=i(6840),a=i(9433),h=i(7740),l=i(2796);t.exports=function(t,e){var i,c,u,d,p,f=t.target,m=t.global,g=t.stat;if(i=m?n:g?n[f]||a(f,{}):n[f]&&n[f].prototype)for(c in e){if(d=e[c],u=t.dontCallGetSet?(p=s(i,c))&&p.value:i[c],!l(m?c:f+(g?".":"#")+c,t.forced)&&void 0!==u){if(typeof d==typeof u)continue;h(d,u)}(t.sham||u&&u.sham)&&o(d,"sham",!0),r(i,c,d,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9228:function(t,e,i){"use strict";i(7495);var n=i(9565),s=i(6840),o=i(7323),r=i(9039),a=i(8227),h=i(6699),l=a("species"),c=RegExp.prototype;t.exports=function(t,e,i,u){var d=a(t),p=!r(function(){var e={};return e[d]=function(){return 7},7!==""[t](e)}),f=p&&!r(function(){var e=!1,i=/a/;if("split"===t){var n={};n[l]=function(){return i},(i={constructor:n,flags:""})[d]=/./[d]}return i.exec=function(){return e=!0,null},i[d](""),!e});if(!p||!f||i){var m=/./[d],g=e(d,""[t],function(t,e,i,s,r){var a=e.exec;return a===o||a===c.exec?p&&!r?{done:!0,value:n(m,e,i,s)}:{done:!0,value:n(t,i,e,s)}:{done:!1}});s(String.prototype,t,g[0]),s(c,d,g[1])}u&&h(c[d],"sham",!0)}},8745:function(t,e,i){"use strict";var n=i(616),s=Function.prototype,o=s.apply,r=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?r.bind(o):function(){return r.apply(o,arguments)})},6080:function(t,e,i){"use strict";var n=i(7476),s=i(9306),o=i(616),r=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:o?r(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,i){"use strict";var n=i(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,i){"use strict";var n=i(616),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},350:function(t,e,i){"use strict";var n=i(3724),s=i(9297),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),h=a&&"something"===function(){}.name,l=a&&(!n||n&&r(o,"name").configurable);t.exports={EXISTS:a,PROPER:h,CONFIGURABLE:l}},6706:function(t,e,i){"use strict";var n=i(9504),s=i(9306);t.exports=function(t,e,i){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}}},7476:function(t,e,i){"use strict";var n=i(2195),s=i(9504);t.exports=function(t){if("Function"===n(t))return s(t)}},9504:function(t,e,i){"use strict";var n=i(616),s=Function.prototype,o=s.call,r=n&&s.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,i){"use strict";var n=i(4576),s=i(4901);t.exports=function(t,e){return arguments.length<2?(i=n[t],s(i)?i:void 0):n[t]&&n[t][e];var i}},851:function(t,e,i){"use strict";var n=i(6955),s=i(5966),o=i(4117),r=i(6269),a=i(8227)("iterator");t.exports=function(t){if(!o(t))return s(t,a)||s(t,"@@iterator")||r[n(t)]}},81:function(t,e,i){"use strict";var n=i(9565),s=i(9306),o=i(8551),r=i(6823),a=i(851),h=TypeError;t.exports=function(t,e){var i=arguments.length<2?a(t):e;if(s(i))return o(n(i,t));throw new h(r(t)+" is not iterable")}},5966:function(t,e,i){"use strict";var n=i(9306),s=i(4117);t.exports=function(t,e){var i=t[e];return s(i)?void 0:n(i)}},2478:function(t,e,i){"use strict";var n=i(9504),s=i(8981),o=Math.floor,r=n("".charAt),a=n("".replace),h=n("".slice),l=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,n,u,d){var p=i+t.length,f=n.length,m=c;return void 0!==u&&(u=s(u),m=l),a(d,m,function(s,a){var l;switch(r(a,0)){case"$":return"$";case"&":return t;case"`":return h(e,0,i);case"'":return h(e,p);case"<":l=u[h(a,1,-1)];break;default:var c=+a;if(0===c)return s;if(c>f){var d=o(c/10);return 0===d?s:d<=f?void 0===n[d-1]?r(a,1):n[d-1]+r(a,1):s}l=n[c-1]}return void 0===l?"":l})}},4576:function(t,e,i){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,i){"use strict";var n=i(9504),s=i(8981),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(s(t),e)}},421:function(t){"use strict";t.exports={}},3138:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:function(t,e,i){"use strict";var n=i(7751);t.exports=n("document","documentElement")},5917:function(t,e,i){"use strict";var n=i(3724),s=i(9039),o=i(4055);t.exports=!n&&!s(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,i){"use strict";var n=i(9504),s=i(9039),o=i(2195),r=Object,a=n("".split);t.exports=s(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):r(t)}:r},3167:function(t,e,i){"use strict";var n=i(4901),s=i(34),o=i(2967);t.exports=function(t,e,i){var r,a;return o&&n(r=e.constructor)&&r!==i&&s(a=r.prototype)&&a!==i.prototype&&o(t,a),t}},3706:function(t,e,i){"use strict";var n=i(9504),s=i(4901),o=i(7629),r=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(t){return r(t)}),t.exports=o.inspectSource},1181:function(t,e,i){"use strict";var n,s,o,r=i(8622),a=i(4576),h=i(34),l=i(6699),c=i(9297),u=i(7629),d=i(6119),p=i(421),f="Object already initialized",m=a.TypeError,g=a.WeakMap;if(r||u.state){var v=u.state||(u.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,n=function(t,e){if(v.has(t))throw new m(f);return e.facade=t,v.set(t,e),e},s=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var _=d("state");p[_]=!0,n=function(t,e){if(c(t,_))throw new m(f);return e.facade=t,l(t,_,e),e},s=function(t){return c(t,_)?t[_]:{}},o=function(t){return c(t,_)}}t.exports={set:n,get:s,has:o,enforce:function(t){return o(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var i;
vendor: 1,755 bytes, line 2
2if(!h(e)||(i=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i}}}},4209:function(t,e,i){"use strict";var n=i(8227),s=i(6269),o=n("iterator"),r=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||r[o]===t)}},4376:function(t,e,i){"use strict";var n=i(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,i){"use strict";var n=i(9504),s=i(9039),o=i(4901),r=i(6955),a=i(7751),h=i(3706),l=function(){},c=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,d=n(u.exec),p=!u.test(l),f=function(t){if(!o(t))return!1;try{return c(l,[],t),!0}catch(t){return!1}},m=function(t){if(!o(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(u,h(t))}catch(t){return!0}};m.sham=!0,t.exports=!c||s(function(){var t;return f(f.call)||!f(Object)||!f(function(){t=!0})||t})?m:f},2796:function(t,e,i){"use strict";var n=i(9039),s=i(4901),o=/#|\.prototype\./,r=function(t,e){var i=h[a(t)];return i===c||i!==l&&(s(e)?n(e):!!e)},a=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},h=r.data={},l=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,i){"use strict";var n=i(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:function(t,e,i){"use strict";var n=i(34);t.exports=function(t){return n(t)||null===t}},6395:function(t){"use strict";t.exports=!1},5810:function(t,e,i){"use strict";var n=i(34),s=i(1181).get;
vendor: 12,422 bytes, line 2
2t.exports=function(t){if(!n(t))return!1;var e=s(t);return!!e&&"RawJSON"===e.type}},788:function(t,e,i){"use strict";var n=i(34),s=i(2195),o=i(8227)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===s(t))}},757:function(t,e,i){"use strict";var n=i(7751),s=i(4901),o=i(1625),r=i(7040),a=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&o(e.prototype,a(t))}},2652:function(t,e,i){"use strict";var n=i(6080),s=i(9565),o=i(8551),r=i(6823),a=i(4209),h=i(6198),l=i(1625),c=i(81),u=i(851),d=i(9539),p=TypeError,f=function(t,e){this.stopped=t,this.result=e},m=f.prototype;t.exports=function(t,e,i){var g,v,_,y,b,x,w,M=i&&i.that,S=!(!i||!i.AS_ENTRIES),C=!(!i||!i.IS_RECORD),k=!(!i||!i.IS_ITERATOR),P=!(!i||!i.INTERRUPTED),T=n(e,M),E=function(t){var e=g;return g=void 0,e&&d(e,"normal"),new f(!0,t)},L=function(t){return S?(o(t),P?T(t[0],t[1],E):T(t[0],t[1])):P?T(t,E):T(t)};if(C)g=t.iterator;else if(k)g=t;else{if(!(v=u(t)))throw new p(r(t)+" is not iterable");if(a(v)){for(_=0,y=h(t);y>_;_++)if((b=L(t[_]))&&l(m,b))return b;return new f(!1)}g=c(t,v)}for(x=C?t.next:g.next;!(w=s(x,g)).done;){var A=w.value;try{b=L(A)}catch(t){if(!g)throw t;d(g,"throw",t)}if("object"==typeof b&&b&&l(m,b))return b}return new f(!1)}},9539:function(t,e,i){"use strict";var n=i(9565),s=i(8551),o=i(5966);t.exports=function(t,e,i){var r,a;s(t);try{if(!(r=o(t,"return"))){if("throw"===e)throw i;return i}r=n(r,t)}catch(t){a=!0,r=t}if("throw"===e)throw i;if(a)throw r;return s(r),i}},3994:function(t,e,i){"use strict";var n=i(7657).IteratorPrototype,s=i(2360),o=i(6980),r=i(687),a=i(6269),h=function(){return this};t.exports=function(t,e,i,l){var c=e+" Iterator";return t.prototype=s(n,{next:o(+!l,i)}),r(t,c,!1,!0),a[c]=h,t}},1088:function(t,e,i){"use strict";var n=i(6518),s=i(9565),o=i(6395),r=i(350),a=i(4901),h=i(3994),l=i(2787),c=i(2967),u=i(687),d=i(6699),p=i(6840),f=i(8227),m=i(6269),g=i(7657),v=r.PROPER,_=r.CONFIGURABLE,y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=f("iterator"),w="keys",M="values",S="entries",C=function(){return this};t.exports=function(t,e,i,r,f,g,k){h(i,e,r);var P,T,E,L=function(t){if(t===f&&N)return N;if(!b&&t&&t in I)return I[t];switch(t){case w:case M:case S:return function(){return new i(this,t)}}return function(){return new i(this)}},A=e+" Iterator",O=!1,I=t.prototype,D=I[x]||I["@@iterator"]||f&&I[f],N=!b&&D||L(f),z="Array"===e&&I.entries||D;if(z&&(P=l(z.call(new t)))!==Object.prototype&&P.next&&(o||l(P)===y||(c?c(P,y):a(P[x])||p(P,x,C)),u(P,A,!0,!0),o&&(m[A]=C)),v&&f===M&&D&&D.name!==M&&(!o&&_?d(I,"name",M):(O=!0,N=function(){return s(D,this)})),f)if(T={values:L(M),keys:g?N:L(w),entries:L(S)},k)for(E in T)(b||O||!(E in I))&&p(I,E,T[E]);else n({target:e,proto:!0,forced:b||O},T);return o&&!k||I[x]===N||p(I,x,N,{name:f}),m[e]=N,T}},7657:function(t,e,i){"use strict";var n,s,o,r=i(9039),a=i(4901),h=i(34),l=i(2360),c=i(2787),u=i(6840),d=i(8227),p=i(6395),f=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(s=c(c(o)))!==Object.prototype&&(n=s):m=!0),!h(n)||r(function(){var t={};return n[f].call(t)!==t})?n={}:p&&(n=l(n)),a(n[f])||u(n,f,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,i){"use strict";var n=i(8014);t.exports=function(t){return n(t.length)}},283:function(t,e,i){"use strict";var n=i(9504),s=i(9039),o=i(4901),r=i(9297),a=i(3724),h=i(350).CONFIGURABLE,l=i(3706),c=i(1181),u=c.enforce,d=c.get,p=String,f=Object.defineProperty,m=n("".slice),g=n("".replace),v=n([].join),_=a&&!s(function(){return 8!==f(function(){},"length",{value:8}).length}),y=String(String).split("String"),b=t.exports=function(t,e,i){"Symbol("===m(p(e),0,7)&&(e="["+g(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!r(t,"name")||h&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),_&&i&&r(i,"arity")&&t.length!==i.arity&&f(t,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=u(t);return r(n,"source")||(n.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return o(this)&&d(this).source||l(this)},"toString")},741:function(t){"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},1955:function(t,e,i){"use strict";var n,s,o,r,a,h=i(4576),l=i(3389),c=i(6080),u=i(9225).set,d=i(8265),p=i(9544),f=i(4265),m=i(7860),g=i(6193),v=h.MutationObserver||h.WebKitMutationObserver,_=h.document,y=h.process,b=h.Promise,x=l("queueMicrotask");if(!x){var w=new d,M=function(){var t,e;for(g&&(t=y.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&n(),t}t&&t.enter()};p||g||m||!v||!_?!f&&b&&b.resolve?((r=b.resolve(void 0)).constructor=b,a=c(r.then,r),n=function(){a(M)}):g?n=function(){y.nextTick(M)}:(u=c(u,h),n=function(){u(M)}):(s=!0,o=_.createTextNode(""),new v(M).observe(o,{characterData:!0}),n=function(){o.data=s=!s}),x=function(t){w.head||n(),w.add(t)}}t.exports=x},7819:function(t,e,i){"use strict";var n=i(9039);t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})},6043:function(t,e,i){"use strict";var n=i(9306),s=TypeError,o=function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw new s("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)};t.exports.f=function(t){return new o(t)}},5749:function(t,e,i){"use strict";var n=i(788),s=TypeError;t.exports=function(t){if(n(t))throw new s("The method doesn't accept regular expressions");return t}},4213:function(t,e,i){"use strict";var n=i(3724),s=i(9504),o=i(9565),r=i(9039),a=i(1072),h=i(3717),l=i(8773),c=i(8981),u=i(7055),d=Object.assign,p=Object.defineProperty,f=s([].concat);t.exports=!d||r(function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),s="abcdefghijklmnopqrst";return t[i]=7,s.split("").forEach(function(t){e[t]=t}),7!==d({},t)[i]||a(d({},e)).join("")!==s})?function(t,e){for(var i=c(t),s=arguments.length,r=1,d=h.f,p=l.f;s>r;)for(var m,g=u(arguments[r++]),v=d?f(a(g),d(g)):a(g),_=v.length,y=0;_>y;)m=v[y++],n&&!o(p,g,m)||(i[m]=g[m]);return i}:d},2360:function(t,e,i){"use strict";var n,s=i(8551),o=i(6801),r=i(8727),a=i(421),h=i(397),l=i(4055),c=i(6119),u="prototype",d="script",p=c("IE_PROTO"),f=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;v="undefined"!=typeof document?document.domain&&n?g(n):(e=l("iframe"),i="java"+d+":",e.style.display="none",h.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(n);for(var s=r.length;s--;)delete v[u][r[s]];return v()};a[p]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(f[u]=s(t),i=new f,f[u]=null,i[p]=t):i=v(),void 0===e?i:o.f(i,e)}},6801:function(t,e,i){"use strict";var n=i(3724),s=i(8686),o=i(4913),r=i(8551),a=i(5397),h=i(1072);e.f=n&&!s?Object.defineProperties:function(t,e){r(t);for(var i,n=a(e),s=h(e),l=s.length,c=0;l>c;)o.f(t,i=s[c++],n[i]);return t}},4913:function(t,e,i){"use strict";var n=i(3724),s=i(5917),o=i(8686),r=i(8551),a=i(6969),h=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",p="writable";e.f=n?o?function(t,e,i){if(r(t),e=a(e),r(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var n=c(t,e);n&&n[p]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:u in i?i[u]:n[u],writable:!1})}return l(t,e,i)}:l:function(t,e,i){if(r(t),e=a(e),r(i),s)try{return l(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new h("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},7347:function(t,e,i){"use strict";var n=i(3724),s=i(9565),o=i(8773),r=i(6980),a=i(5397),h=i(6969),l=i(9297),c=i(5917),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=h(e),c)try{return u(t,e)}catch(t){}if(l(t,e))return r(!s(o.f,t,e),t[e])}},298:function(t,e,i){"use strict";var n=i(2195),s=i(5397),o=i(8480).f,r=i(7680),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return o(t)}catch(t){return r(a)}}(t):o(s(t))}},8480:function(t,e,i){"use strict";var n=i(1828),s=i(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,i){"use strict";var n=i(9297),s=i(4901),o=i(8981),r=i(6119),a=i(2211),h=r("IE_PROTO"),l=Object,c=l.prototype;t.exports=a?l.getPrototypeOf:function(t){var e=o(t);if(n(e,h))return e[h];var i=e.constructor;return s(i)&&e instanceof i?i.prototype:e instanceof l?c:null}},1625:function(t,e,i){"use strict";var n=i(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,i){"use strict";var n=i(9504),s=i(9297),o=i(5397),r=i(9617).indexOf,a=i(421),h=n([].push);t.exports=function(t,e){var i,n=o(t),l=0,c=[];for(i in n)!s(a,i)&&s(n,i)&&h(c,i);for(;e.length>l;)s(n,i=e[l++])&&(~r(c,i)||h(c,i));return c}},1072:function(t,e,i){"use strict";var n=i(1828),s=i(8727);t.exports=Object.keys||function(t){return n(t,s)}},8773:function(t,e){"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},2967:function(t,e,i){"use strict";var n=i(6706),s=i(34),o=i(7750),r=i(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return o(i),r(n),s(i)?(e?t(i,n):i.__proto__=n,i):i}}():void 0)},3179:function(t,e,i){"use strict";var n=i(2140),s=i(6955);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},4270:function(t,e,i){"use strict";var n=i(9565),s=i(4901),o=i(34),r=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&s(i=t.toString)&&!o(a=n(i,t)))return a;if(s(i=t.valueOf)&&!o(a=n(i,t)))return a;if("string"!==e&&s(i=t.toString)&&!o(a=n(i,t)))return a;throw new r("Can't convert object to primitive value")}},5031:function(t,e,i){"use strict";var n=i(7751),s=i(9504),o=i(8480),r=i(3717),a=i(8551),h=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=r.f;return i?h(e,i(t)):e}},8235:function(t,e,i){"use strict";var n=i(9504),s=i(9297),o=SyntaxError,r=parseInt,a=String.fromCharCode,h=n("".charAt),l=n("".slice),c=n(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var i=!0,n="";e<t.length;){var f=h(t,e);if("\\"===f){var m=l(t,e,e+2);if(s(u,m))n+=u[m],e+=2;else{if("\\u"!==m)throw new o('Unknown escape sequence: "'+m+'"');var g=l(t,e+=2,e+4);if(!c(d,g))throw new o("Bad Unicode escape at: "+e);n+=a(r(g,16)),e+=4}}else{if('"'===f){i=!1,e++;break}if(c(p,f))throw new o("Bad control character in string literal at: "+e);n+=f,e++}}if(i)throw new o("Unterminated string at: "+e);return{value:n,end:e}}},9167:function(t,e,i){"use strict";var n=i(4576);t.exports=n},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:function(t,e,i){"use strict";var n=i(4576),s=i(550),o=i(4901),r=i(2796),a=i(3706),h=i(8227),l=i(4215),c=i(6395),u=i(9519),d=s&&s.prototype,p=h("species"),f=!1,m=o(n.PromiseRejectionEvent),g=r("Promise",function(){var t=a(s),e=t!==String(s);if(!e&&66===u)return!0;if(c&&(!d.catch||!d.finally))return!0;if(!u||u<51||!/native code/.test(t)){var i=new s(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((i.constructor={})[p]=n,!(f=i.then(function(){})instanceof n))return!0}return!(e||"BROWSER"!==l&&"DENO"!==l||m)});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:f}},550:function(t,e,i){"use strict";var n=i(4576);t.exports=n.Promise},3438:function(t,e,i){"use strict";var n=i(8551),s=i(34),o=i(6043);t.exports=function(t,e){if(n(t),s(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},537:function(t,e,i){"use strict";
2var n=i(550),s=i(4428),o=i(916).CONSTRUCTOR;t.exports=o||!s(function(t){n.all(t).then(void 0,function(){})})},1056:function(t,e,i){"use strict";var n=i(4913).f;t.exports=function(t,e,i){i in t||n(t,i,{configurable:!0,get:function(){return e[i]},set:function(t){e[i]=t}})}},8265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},6682:function(t,e,i){"use strict";var n=i(9565),s=i(8551),o=i(4901),r=i(2195),a=i(7323),h=TypeError;t.exports=function(t,e){var i=t.exec;if(o(i)){var l=n(i,t,e);return null!==l&&s(l),l}if("RegExp"===r(t))return n(a,t,e);throw new h("RegExp#exec called on incompatible receiver")}},7323:function(t,e,i){"use strict";var n,s,o=i(9565),r=i(9504),a=i(655),h=i(7979),l=i(8429),c=i(5745),u=i(2360),d=i(1181).get,p=i(3635),f=i(8814),m=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,v=g,_=r("".charAt),y=r("".indexOf),b=r("".replace),x=r("".slice),w=(s=/b*/g,o(g,n=/a/,"a"),o(g,s,"a"),0!==n.lastIndex||0!==s.lastIndex),M=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1],C=function(t,e){for(var i=t.groups=u(null),n=0;n<e.length;n++){var s=e[n];i[s[0]]=t[s[1]]}};(w||S||M||p||f)&&(v=function(t){var e,i,n,s=this,r=d(s),l=a(t),c=r.raw;if(c)return c.lastIndex=s.lastIndex,e=o(v,c,l),s.lastIndex=c.lastIndex,e&&r.groups&&C(e,r.groups),e;var u=r.groups,p=M&&s.sticky,f=o(h,s),k=s.source,P=0,T=l;if(p){f=b(f,"y",""),-1===y(f,"g")&&(f+="g"),T=x(l,s.lastIndex);var E=s.lastIndex>0&&_(l,s.lastIndex-1);s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==E&&"\r"!==E&&"\u2028"!==E&&"\u2029"!==E)&&(k="(?: (?:"+k+"))",T=" "+T,P++),i=new RegExp("^(?:"+k+")",f)}S&&(i=new RegExp("^"+k+"$(?!\\s)",f)),w&&(n=s.lastIndex);var L=o(g,p?i:s,T);return p?L?(L.input=l,L[0]=x(L[0],P),L.index=s.lastIndex,s.lastIndex+=L[0].length):s.lastIndex=0:w&&L&&(s.lastIndex=s.global?L.index+L[0].length:n),S&&L&&L.length>1&&o(m,L[0],i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(L[t]=void 0)}),L&&u&&C(L,u),L}),t.exports=v},5213:function(t,e,i){"use strict";var n=i(4576),s=i(9039),o=n.RegExp,r=!s(function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},i="",n=t?"dgimsy":"gimsy",s=function(t,n){Object.defineProperty(e,t,{get:function(){return i+=n,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in t&&(r.hasIndices="d"),r)s(a,r[a]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==n||i!==n});t.exports={correct:r}},7979:function(t,e,i){"use strict";var n=i(8551);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},1034:function(t,e,i){"use strict";var n=i(9565),s=i(9297),o=i(1625),r=i(5213),a=i(7979),h=RegExp.prototype;t.exports=r.correct?function(t){return t.flags}:function(t){return r.correct||!o(h,t)||s(t,"flags")?t.flags:n(a,t)}},8429:function(t,e,i){"use strict";var n=i(9039),s=i(4576).RegExp,o=n(function(){var t=s("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=o||n(function(){return!s("a","y").sticky}),a=o||n(function(){var t=s("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:r,UNSUPPORTED_Y:o}},3635:function(t,e,i){"use strict";var n=i(9039),s=i(4576).RegExp;t.exports=n(function(){var t=s(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},8814:function(t,e,i){"use strict";var n=i(9039),s=i(4576).RegExp;t.exports=n(function(){var t=s("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},7750:function(t,e,i){"use strict";var n=i(4117),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},3389:function(t,e,i){"use strict";var n=i(4576),s=i(3724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!s)return n[t];var e=o(n,t);return e&&e.value}},3470:function(t){"use strict";
vendor: 20,626 bytes, line 2
2t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},7633:function(t,e,i){"use strict";var n=i(7751),s=i(2106),o=i(8227),r=i(3724),a=o("species");t.exports=function(t){var e=n(t);r&&e&&!e[a]&&s(e,a,{configurable:!0,get:function(){return this}})}},687:function(t,e,i){"use strict";var n=i(4913).f,s=i(9297),o=i(8227)("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!s(t,o)&&n(t,o,{configurable:!0,value:e})}},6119:function(t,e,i){"use strict";var n=i(5745),s=i(3392),o=n("keys");t.exports=function(t){return o[t]||(o[t]=s(t))}},7629:function(t,e,i){"use strict";var n=i(6395),s=i(4576),o=i(9433),r="__core-js_shared__",a=t.exports=s[r]||o(r,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,i){"use strict";var n=i(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},2293:function(t,e,i){"use strict";var n=i(8551),s=i(5548),o=i(4117),r=i(8227)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||o(i=n(a)[r])?e:s(i)}},3061:function(t,e,i){"use strict";var n=i(9039);t.exports=function(t){return n(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})}},8183:function(t,e,i){"use strict";var n=i(9504),s=i(1291),o=i(655),r=i(7750),a=n("".charAt),h=n("".charCodeAt),l=n("".slice),c=function(t){return function(e,i){var n,c,u=o(r(e)),d=s(i),p=u.length;return d<0||d>=p?t?"":void 0:(n=h(u,d))<55296||n>56319||d+1===p||(c=h(u,d+1))<56320||c>57343?t?a(u,d):n:t?l(u,d,d+2):c-56320+(n-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},6098:function(t,e,i){"use strict";var n=i(9504),s=2147483647,o=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",h=RangeError,l=n(r.exec),c=Math.floor,u=String.fromCharCode,d=n("".charCodeAt),p=n([].join),f=n([].push),m=n("".replace),g=n("".split),v=n("".toLowerCase),_=function(t){return t+22+75*(t<26)},y=function(t,e,i){var n=0;for(t=i?c(t/700):t>>1,t+=c(t/e);t>455;)t=c(t/35),n+=36;return c(n+36*t/(t+38))},b=function(t){var e=[];t=function(t){for(var e=[],i=0,n=t.length;i<n;){var s=d(t,i++);if(s>=55296&&s<=56319&&i<n){var o=d(t,i++);56320==(64512&o)?f(e,((1023&s)<<10)+(1023&o)+65536):(f(e,s),i--)}else f(e,s)}return e}(t);var i,n,o=t.length,r=128,l=0,m=72;for(i=0;i<t.length;i++)(n=t[i])<128&&f(e,u(n));var g=e.length,v=g;for(g&&f(e,"-");v<o;){var b=s;for(i=0;i<t.length;i++)(n=t[i])>=r&&n<b&&(b=n);var x=v+1;if(b-r>c((s-l)/x))throw new h(a);for(l+=(b-r)*x,r=b,i=0;i<t.length;i++){if((n=t[i])<r&&++l>s)throw new h(a);if(n===r){for(var w=l,M=36;;){var S=M<=m?1:M>=m+26?26:M-m;if(w<S)break;var C=w-S,k=36-S;f(e,u(_(S+C%k))),w=c(C/k),M+=36}f(e,u(_(w))),m=y(l,x,v===g),l=0,v++}}l++,r++}return p(e,"")};t.exports=function(t){var e,i,n=[],s=g(m(v(t),r,"."),".");for(e=0;e<s.length;e++)i=s[e],f(n,l(o,i)?"xn--"+b(i):i);return p(n,".")}},706:function(t,e,i){"use strict";var n=i(350).PROPER,s=i(9039),o=i(7452);t.exports=function(t){return s(function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||n&&o[t].name!==t})}},3802:function(t,e,i){"use strict";var n=i(9504),s=i(7750),o=i(655),r=i(7452),a=n("".replace),h=RegExp("^["+r+"]+"),l=RegExp("(^|[^"+r+"])["+r+"]+$"),c=function(t){return function(e){var i=o(s(e));return 1&t&&(i=a(i,h,"")),2&t&&(i=a(i,l,"$1")),i}};t.exports={start:c(1),end:c(2),trim:c(3)}},4495:function(t,e,i){"use strict";var n=i(9519),s=i(9039),o=i(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8242:function(t,e,i){"use strict";var n=i(9565),s=i(7751),o=i(8227),r=i(6840);t.exports=function(){var t=s("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&r(e,a,function(t){return n(i,this)},{arity:1})}},1296:function(t,e,i){"use strict";var n=i(4495);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},9225:function(t,e,i){"use strict";var n,s,o,r,a=i(4576),h=i(8745),l=i(6080),c=i(4901),u=i(9297),d=i(9039),p=i(397),f=i(7680),m=i(4055),g=i(2812),v=i(9544),_=i(6193),y=a.setImmediate,b=a.clearImmediate,x=a.process,w=a.Dispatch,M=a.Function,S=a.MessageChannel,C=a.String,k=0,P={},T="onreadystatechange";d(function(){n=a.location});var E=function(t){if(u(P,t)){var e=P[t];delete P[t],e()}},L=function(t){return function(){E(t)}},A=function(t){E(t.data)},O=function(t){a.postMessage(C(t),n.protocol+"//"+n.host)};y&&b||(y=function(t){g(arguments.length,1);var e=c(t)?t:M(t),i=f(arguments,1);return P[++k]=function(){h(e,void 0,i)},s(k),k},b=function(t){delete P[t]},_?s=function(t){x.nextTick(L(t))}:w&&w.now?s=function(t){w.now(L(t))}:S&&!v?(r=(o=new S).port2,o.port1.onmessage=A,s=l(r.postMessage,r)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(O)?(s=O,a.addEventListener("message",A,!1)):s=T in m("script")?function(t){p.appendChild(m("script"))[T]=function(){p.removeChild(this),E(t)}}:function(t){setTimeout(L(t),0)}),t.exports={set:y,clear:b}},1240:function(t,e,i){"use strict";var n=i(9504);t.exports=n(1.1.valueOf)},5610:function(t,e,i){"use strict";var n=i(1291),s=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?s(i+e,0):o(i,e)}},5397:function(t,e,i){"use strict";var n=i(7055),s=i(7750);t.exports=function(t){return n(s(t))}},1291:function(t,e,i){"use strict";var n=i(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8014:function(t,e,i){"use strict";var n=i(1291),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},8981:function(t,e,i){"use strict";var n=i(7750),s=Object;t.exports=function(t){return s(n(t))}},2777:function(t,e,i){"use strict";var n=i(9565),s=i(34),o=i(757),r=i(5966),a=i(4270),h=i(8227),l=TypeError,c=h("toPrimitive");t.exports=function(t,e){if(!s(t)||o(t))return t;var i,h=r(t,c);if(h){if(void 0===e&&(e="default"),i=n(h,t,e),!s(i)||o(i))return i;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,i){"use strict";var n=i(2777),s=i(757);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},2140:function(t,e,i){"use strict";var n={};n[i(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},655:function(t,e,i){"use strict";var n=i(6955),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,i){"use strict";var n=i(9504),s=0,o=Math.random(),r=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++s+o,36)}},7416:function(t,e,i){"use strict";var n=i(9039),s=i(8227),o=i(3724),r=i(6395),a=s("iterator");t.exports=!n(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,i=new URLSearchParams("a=1&a=2&b=3"),n="";return t.pathname="c%20d",e.forEach(function(t,i){e.delete("b"),n+=i+t}),i.delete("a",2),i.delete("b",void 0),r&&(!t.toJSON||!i.has("a",1)||i.has("a",2)||!i.has("a",void 0)||i.has("b"))||!e.size&&(r||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==n||"x"!==new URL("https://x",void 0).host})},7040:function(t,e,i){"use strict";var n=i(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,i){"use strict";var n=i(3724),s=i(9039);t.exports=n&&s(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,i){if(t<i)throw new e("Not enough arguments");return t}},8622:function(t,e,i){"use strict";var n=i(4576),s=i(4901),o=n.WeakMap;t.exports=s(o)&&/native code/.test(String(o))},511:function(t,e,i){"use strict";var n=i(9167),s=i(9297),o=i(1951),r=i(4913).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});s(e,t)||r(e,t,{value:o.f(t)})}},1951:function(t,e,i){"use strict";var n=i(8227);e.f=n},8227:function(t,e,i){"use strict";var n=i(4576),s=i(5745),o=i(9297),r=i(3392),a=i(4495),h=i(7040),l=n.Symbol,c=s("wks"),u=h?l.for||l:l&&l.withoutSetter||r;t.exports=function(t){return o(c,t)||(c[t]=a&&o(l,t)?l[t]:u("Symbol."+t)),c[t]}},7452:function(t){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},8706:function(t,e,i){"use strict";var n=i(6518),s=i(9039),o=i(4376),r=i(34),a=i(8981),h=i(6198),l=i(6837),c=i(4659),u=i(4527),d=i(1469),p=i(597),f=i(8227),m=i(9519),g=f("isConcatSpreadable"),v=m>=51||!s(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),_=function(t){if(!r(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,arity:1,forced:!v||!p("concat")},{concat:function(t){var e,i,n,s,o,r=a(this),p=d(r,0),f=0;for(e=-1,n=arguments.length;e<n;e++)if(_(o=-1===e?r:arguments[e]))for(s=h(o),l(f+s),i=0;i<s;i++,f++)i in o&&c(p,f,o[i]);else l(f+1),c(p,f++,o);return u(p,f),p}})},2008:function(t,e,i){"use strict";var n=i(6518),s=i(9213).filter;n({target:"Array",proto:!0,forced:!i(597)("filter")},{filter:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}})},113:function(t,e,i){"use strict";var n=i(6518),s=i(9213).find,o=i(6469),r="find",a=!0;r in[]&&Array(1)[r](function(){a=!1}),n({target:"Array",proto:!0,forced:a},{find:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),o(r)},3418:function(t,e,i){"use strict";var n=i(6518),s=i(7916);n({target:"Array",stat:!0,forced:!i(4428)(function(t){Array.from(t)})},{from:s})},4423:function(t,e,i){"use strict";var n=i(6518),s=i(9617).includes,o=i(9039),r=i(6469),a=o(function(){return!Array(1).includes()}),h=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:a||h},{includes:function(t){return s(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")},3792:function(t,e,i){"use strict";var n=i(5397),s=i(6469),o=i(6269),r=i(1181),a=i(4913).f,h=i(1088),l=i(2529),c=i(6395),u=i(3724),d="Array Iterator",p=r.set,f=r.getterFor(d);t.exports=h(Array,"Array",function(t,e){p(this,{type:d,target:n(t),index:0,kind:e})},function(){var t=f(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,l(void 0,!0);switch(t.kind){case"keys":return l(i,!1);case"values":return l(e[i],!1)}return l([i,e[i]],!1)},"values");var m=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!c&&u&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(t){}},8598:function(t,e,i){"use strict";var n=i(6518),s=i(9504),o=i(7055),r=i(5397),a=i(4598),h=s([].join);n({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(t){return h(r(this),void 0===t?",":t)}})},4782:function(t,e,i){"use strict";var n=i(6518),s=i(4376),o=i(3517),r=i(34),a=i(5610),h=i(6198),l=i(5397),c=i(4659),u=i(4527),d=i(8227),p=i(597),f=i(7680),m=p("slice"),g=d("species"),v=Array,_=Math.max;n({target:"Array",proto:!0,forced:!m},{slice:function(t,e){var i,n,d,p=l(this),m=h(p),y=a(t,m),b=a(void 0===e?m:e,m);if(s(p)&&(i=p.constructor,(o(i)&&(i===v||s(i.prototype))||r(i)&&null===(i=i[g]))&&(i=void 0),i===v||void 0===i))return f(p,y,b);for(n=new(void 0===i?v:i)(_(b-y,0)),d=0;y<b;y++,d++)y in p&&c(n,d,p[y]);return u(n,d),n}})},4554:function(t,e,i){"use strict";var n=i(6518),s=i(8981),o=i(5610),r=i(1291),a=i(6198),h=i(4527),l=i(6837),c=i(1469),u=i(4659),d=i(4606),p=i(597)("splice"),f=Math.max,m=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var i,n,p,g,v,_,y=s(this),b=a(y),x=o(t,b),w=arguments.length;for(0===w?i=n=0:1===w?(i=0,n=b-x):(i=w-2,n=m(f(r(e),0),b-x)),l(b+i-n),p=c(y,n),g=0;g<n;g++)(v=x+g)in y&&u(p,g,y[v]);if(h(p,n),i<n){for(g=x;g<b-n;g++)_=g+i,(v=g+n)in y?y[_]=y[v]:d(y,_);for(g=b;g>b-n+i;g--)d(y,g-1)}else if(i>n)for(g=b-n;g>x;g--)_=g+i-1,(v=g+n-1)in y?y[_]=y[v]:d(y,_);for(g=0;g<i;g++)y[g+x]=arguments[g+2];return h(y,b-n+i),p}})},9572:function(t,e,i){"use strict";var n=i(9297),s=i(6840),o=i(3640),r=i(8227)("toPrimitive"),a=Date.prototype;n(a,r)||s(a,r,o)},2010:function(t,e,i){"use strict";var n=i(3724),s=i(350).EXISTS,o=i(9504),r=i(2106),a=Function.prototype,h=o(a.toString),l=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(l.exec);n&&!s&&r(a,"name",{configurable:!0,get:function(){try{return c(l,h(this))[1]}catch(t){return""}}})},5081:function(t,e,i){"use strict";var n=i(6518),s=i(4576);n({global:!0,forced:s.globalThis!==s},{globalThis:s})},3110:function(t,e,i){"use strict";var n=i(6518),s=i(7751),o=i(8745),r=i(9565),a=i(9504),h=i(9039),l=i(4376),c=i(4901),u=i(5810),d=i(757),p=i(2195),f=i(655),m=i(7680),g=i(8235),v=i(3392),_=i(4495),y=i(7819),b=String,x=s("JSON","stringify"),w=a(/./.exec),M=a("".charAt),S=a("".charCodeAt),C=a("".replace),k=a("".slice),P=a([].push),T=a(1.1.toString),E=/[\uD800-\uDFFF]/g,L=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,O=v(),I=O.length,D=!_||h(function(){var t=s("Symbol")("stringify detection");return"[null]"!==x([t])||"{}"!==x({a:t})||"{}"!==x(Object(t))}),N=h(function(){return'"\\udf06\\ud834"'!==x("\udf06\ud834")||'"\\udead"'!==x("\udead")}),z=D?function(t,e){var i=m(arguments),n=R(e);if(c(n)||void 0!==t&&!d(t))return i[1]=function(t,e){if(c(n)&&(e=r(n,this,b(t),e)),!d(e))return e},o(x,null,i)}:x,j=function(t,e,i){var n=M(i,e-1),s=M(i,e+1);return w(L,t)&&!w(A,s)||w(A,t)&&!w(L,n)?"\\u"+T(S(t,0),16):t},R=function(t){if(c(t))return t;if(l(t)){for(var e=t.length,i=[],n=0;n<e;n++){var s=t[n];"string"==typeof s?P(i,s):"number"!=typeof s&&"Number"!==p(s)&&"String"!==p(s)||P(i,f(s))}var o=i.length,r=!0;return function(t,e){if(r)return r=!1,e;if(l(this))return e;for(var n=0;n<o;n++)if(i[n]===t)return e}}};x&&n({target:"JSON",stat:!0,arity:3,forced:D||N||!y},{stringify:function(t,e,i){var n=R(e),s=[],o=z(t,function(t,e){var i=c(n)?r(n,this,b(t),e):e;return!y&&u(i)?O+(P(s,i.rawJSON)-1):i},i);if("string"!=typeof o)return o;if(N&&(o=C(o,E,j)),y)return o;for(var a="",h=o.length,l=0;l<h;l++){var d=M(o,l);if('"'===d){var p=g(o,++l).end-1,f=k(o,l,p);a+=k(f,0,I)===O?s[k(f,I)]:'"'+f+'"',l=p}else a+=d}return a}})},2892:function(t,e,i){"use strict";var n=i(6518),s=i(6395),o=i(3724),r=i(4576),a=i(9167),h=i(9504),l=i(2796),c=i(9297),u=i(3167),d=i(1625),p=i(757),f=i(2777),m=i(9039),g=i(8480).f,v=i(7347).f,_=i(4913).f,y=i(1240),b=i(3802).trim,x="Number",w=r[x],M=a[x],S=w.prototype,C=r.TypeError,k=h("".slice),P=h("".charCodeAt),T=l(x,!w(" 0o1")||!w("0b1")||w("+0x1")),E=function(t){var e,i=arguments.length<1?0:w(function(t){var e=f(t,"number");return"bigint"==typeof e?e:function(t){var e,i,n,s,o,r,a,h,l=f(t,"number");if(p(l))throw new C("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=b(l),43===(e=P(l,0))||45===e){if(88===(i=P(l,2))||120===i)return NaN}else if(48===e){switch(P(l,1)){case 66:case 98:n=2,s=49;break;case 79:case 111:n=8,s=55;break;default:return+l}for(r=(o=k(l,2)).length,a=0;a<r;a++)if((h=P(o,a))<48||h>s)return NaN;return parseInt(o,n)}return+l}(e)}(t));return d(S,e=this)&&m(function(){y(e)})?u(Object(i),this,E):i};E.prototype=S,T&&!s&&(S.constructor=E),n({global:!0,constructor:!0,wrap:!0,forced:T},{Number:E});var L=function(t,e){for(var i,n=o?g(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),s=0;n.length>s;s++)c(e,i=n[s])&&!c(t,i)&&_(t,i,v(e,i))};s&&M&&L(a[x],M),(T||s)&&L(a[x],w)},3851:function(t,e,i){"use strict";var n=i(6518),s=i(9039),o=i(5397),r=i(7347).f,a=i(3724);n({target:"Object",stat:!0,forced:!a||s(function(){r(1)}),sham:!a},{getOwnPropertyDescriptor:function(t,e){return r(o(t),e)}})},1278:function(t,e,i){"use strict";var n=i(6518),s=i(3724),o=i(5031),r=i(5397),a=i(7347),h=i(4659);n({target:"Object",stat:!0,sham:!s},{getOwnPropertyDescriptors:function(t){for(var e,i,n=r(t),s=a.f,l=o(n),c={},u=0;l.length>u;)void 0!==(i=s(n,e=l[u++]))&&h(c,e,i);return c}})},9773:function(t,e,i){"use strict";var n=i(6518),s=i(4495),o=i(9039),r=i(3717),a=i(8981);n({target:"Object",stat:!0,forced:!s||o(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(a(t)):[]}})},875:function(t,e,i){"use strict";var n=i(6518),s=i(9039),o=i(8981),r=i(2787),a=i(2211);n({target:"Object",stat:!0,forced:s(function(){r(1)}),sham:!a},{getPrototypeOf:function(t){return r(o(t))}})},9432:function(t,e,i){"use strict";var n=i(6518),s=i(8981),o=i(1072);n({target:"Object",stat:!0,forced:i(9039)(function(){o(1)})},{keys:function(t){return o(s(t))}})},287:function(t,e,i){"use strict";i(6518)({target:"Object",stat:!0},{setPrototypeOf:i(2967)})},6099:function(t,e,i){"use strict";var n=i(2140),s=i(6840),o=i(3179);n||s(Object.prototype,"toString",o,{unsafe:!0})},6499:function(t,e,i){"use strict";var n=i(6518),s=i(9565),o=i(9306),r=i(6043),a=i(1103),h=i(2652);n({target:"Promise",stat:!0,forced:i(537)},{all:function(t){var e=this,i=r.f(e),n=i.resolve,l=i.reject,c=a(function(){var i=o(e.resolve),r=[],a=0,c=1;h(t,function(t){var o=a++,h=!1;c++,s(i,e,t).then(function(t){h||(h=!0,r[o]=t,--c||n(r))},l)}),--c||n(r)});return c.error&&l(c.value),i.promise}})},2003:function(t,e,i){"use strict";var n=i(6518),s=i(6395),o=i(916).CONSTRUCTOR,r=i(550),a=i(7751),h=i(4901),l=i(6840),c=r&&r.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!s&&h(r)){var u=a("Promise").prototype.catch;c.catch!==u&&l(c,"catch",u,{unsafe:!0})}},436:function(t,e,i){"use strict";var n,s,o,r,a=i(6518),h=i(6395),l=i(6193),c=i(4576),u=i(9167),d=i(9565),p=i(6840),f=i(2967),m=i(687),g=i(7633),v=i(9306),_=i(4901),y=i(34),b=i(679),x=i(2293),w=i(9225).set,M=i(1955),S=i(3138),C=i(1103),k=i(8265),P=i(1181),T=i(550),E=i(916),L=i(6043),A="Promise",O=E.CONSTRUCTOR,I=E.REJECTION_EVENT,D=E.SUBCLASSING,N=P.getterFor(A),z=P.set,j=T&&T.prototype,R=T,G=j,B=c.TypeError,H=c.document,F=c.process,W=L.f,q=W,U=!!(H&&H.createEvent&&c.dispatchEvent),Z="unhandledrejection",Y=function(t){var e;return!(!y(t)||!_(e=t.then))&&e},V=function(t,e){var i,n,s,o=e.value,r=1===e.state,a=r?t.ok:t.fail,h=t.resolve,l=t.reject,c=t.domain;try{a?(r||(2===e.rejection&&Q(e),e.rejection=1),!0===a?i=o:(c&&c.enter(),i=a(o),c&&(c.exit(),s=!0)),i===t.promise?l(new B("Promise-chain cycle")):(n=Y(i))?d(n,i,h,l):h(i)):l(o)}catch(t){c&&!s&&c.exit(),l(t)}},X=function(t,e){t.notified||(t.notified=!0,M(function(){for(var i,n=t.reactions;i=n.get();)V(i,t);t.notified=!1,e&&!t.rejection&&$(t)}))},K=function(t,e,i){var n,s;U?((n=H.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:i},!I&&(s=c["on"+t])?s(n):t===Z&&S("Unhandled promise rejection",i)},$=function(t){d(w,c,function(){var e,i=t.facade,n=t.value;if(J(t)&&(e=C(function(){l?F.emit("unhandledRejection",n,i):K(Z,i,n)}),t.rejection=l||J(t)?2:1,e.error))throw e.value})},J=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){d(w,c,function(){var e=t.facade;l?F.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)})},tt=function(t,e,i){return function(n){t(e,n,i)}},et=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,X(t,!0))},it=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new B("Promise can't be resolved itself");var n=Y(e);n?M(function(){var i={done:!1};try{d(n,e,tt(it,i,t),tt(et,i,t))}catch(e){et(i,e,t)}}):(t.value=e,t.state=1,X(t,!1))}catch(e){et({done:!1},e,t)}}};if(O&&(G=(R=function(t){b(this,G),v(t),d(n,this);var e=N(this);try{t(tt(it,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(n=function(t){z(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:null})}).prototype=p(G,"then",function(t,e){var i=N(this),n=W(x(this,R));return i.parent=!0,n.ok=!_(t)||t,n.fail=_(e)&&e,n.domain=l?F.domain:void 0,0===i.state?i.reactions.add(n):M(function(){V(n,i)}),n.promise}),s=function(){var t=new n,e=N(t);this.promise=t,this.resolve=tt(it,e),this.reject=tt(et,e)},L.f=W=function(t){return t===R||t===o?new s(t):q(t)},!h&&_(T)&&j!==Object.prototype)){r=j.then,D||p(j,"then",function(t,e){var i=this;return new R(function(t,e){d(r,i,t,e)}).then(t,e)},{unsafe:!0});try{delete j.constructor}catch(t){}f&&f(j,G)}a({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:R}),o=u.Promise,m(R,A,!1,!0),g(A)}
2,3362:function(t,e,i){"use strict";i(436),i(6499),i(2003),i(7743),i(1481),i(280)},7743:function(t,e,i){"use strict";var n=i(6518),s=i(9565),o=i(9306),r=i(6043),a=i(1103),h=i(2652);n({target:"Promise",stat:!0,forced:i(537)},{race:function(t){var e=this,i=r.f(e),n=i.reject,l=a(function(){var r=o(e.resolve);h(t,function(t){s(r,e,t).then(i.resolve,n)})});return l.error&&n(l.value),i.promise}})},1481:function(t,e,i){"use strict";var n=i(6518),s=i(6043);n({target:"Promise",stat:!0,forced:i(916).CONSTRUCTOR},{reject:function(t){var e=s.f(this);return(0,e.reject)(t),e.promise}})},280:function(t,e,i){"use strict";var n=i(6518),s=i(7751),o=i(6395),r=i(550),a=i(916).CONSTRUCTOR,h=i(3438),l=s("Promise"),c=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(t){return h(c&&this===l?r:this,t)}})},4864:function(t,e,i){"use strict";var n=i(3724),s=i(4576),o=i(9504),r=i(2796),a=i(3167),h=i(6699),l=i(2360),c=i(8480).f,u=i(1625),d=i(788),p=i(655),f=i(1034),m=i(8429),g=i(1056),v=i(6840),_=i(9039),y=i(9297),b=i(1181).enforce,x=i(7633),w=i(8227),M=i(3635),S=i(8814),C=w("match"),k=s.RegExp,P=k.prototype,T=s.SyntaxError,E=o(P.exec),L=o("".charAt),A=o("".replace),O=o("".indexOf),I=o("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,z=/a/g,j=new k(N)!==N,R=m.MISSED_STICKY,G=m.UNSUPPORTED_Y;if(r("RegExp",n&&(!j||R||M||S||_(function(){return z[C]=!1,k(N)!==N||k(z)===z||"/a/i"!==String(k(N,"i"))})))){for(var B=function(t,e){var i,n,s,o,r,c,m=u(P,this),g=d(t),v=void 0===e,_=[],x=t;if(!m&&g&&v&&t.constructor===B)return t;if((g||u(P,t))&&(t=t.source,v&&(e=f(x))),t=void 0===t?"":p(t),e=void 0===e?"":p(e),x=t,M&&"dotAll"in N&&(n=!!e&&O(e,"s")>-1)&&(e=A(e,/s/g,"")),i=e,R&&"sticky"in N&&(s=!!e&&O(e,"y")>-1)&&G&&(e=A(e,/y/g,"")),S&&(o=function(t){for(var e,i=t.length,n=0,s="",o=[],r=l(null),a=!1,h=!1,c=0,u="";n<i;n++){if("\\"===(e=L(t,n))){if(e+=L(t,++n),!h&&"\\"===L(e,1)){s+="\\x5c";continue}}else if("]"===e)a=!1;else if(!a)switch(!0){case"["===e:a=!0;break;case"("===e:s+=e,E(D,I(t,n+1))?(n+=2,h=!0,c++):"?"!==L(t,n+1)&&c++;continue;case">"===e&&h:if(""===u||y(r,u))throw new T("Invalid capture group name");r[u]=!0,o[o.length]=[u,c],h=!1,u="";continue}h?u+=e:s+=e}for(var d=0;d<o.length;d++)for(var p="\\k<"+o[d][0]+">",f="\\"+o[d][1];O(s,p)>-1;)s=A(s,p,f);return[s,o]}
2(t),t=o[0],_=o[1]),r=a(k(t,e),m?this:P,B),(n||s||_.length)&&(c=b(r),n&&(c.dotAll=!0,c.raw=B(function(t){for(var e,i=t.length,n=0,s="",o=!1;n<i;n++)"\\"!==(e=L(t,n))?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),s+=e):s+="[\\s\\S]":s+=e+L(t,++n);return s}(t),i)),s&&(c.sticky=!0),_.length&&(c.groups=_)),t!==x)try{h(r,"source",""===x?"(?:)":x)}catch(t){}return r},H=c(k),F=0;H.length>F;)g(B,k,H[F++]);P.constructor=B,B.prototype=P,v(s,"RegExp",B,{constructor:!0})}x("RegExp")},7495:function(t,e,i){"use strict";var n=i(6518),s=i(7323);n({target:"RegExp",proto:!0,forced:/./.exec!==s},{exec:s})},8781:function(t,e,i){"use strict";var n=i(350).PROPER,s=i(6840),o=i(8551),r=i(655),a=i(9039),h=i(1034),l="toString",c=RegExp.prototype,u=c[l],d=a(function(){return"/a/b"!==u.call({source:"a",flags:"b"})}),p=n&&u.name!==l;(d||p)&&s(c,l,function(){var t=o(this);return"/"+r(t.source)+"/"+r(h(t))},{unsafe:!0})},7337:function(t,e,i){"use strict";var n=i(6518),s=i(9504),o=i(5610),r=RangeError,a=String.fromCharCode,h=String.fromCodePoint,l=s([].join);n({target:"String",stat:!0,arity:1,forced:!!h&&1!==h.length},{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,s=0;n>s;){if(o(e=+arguments[s],1114111)!==e)throw new r(e+" is not a valid code point");i[s++]=e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320)}return l(i,"")}})},1699:function(t,e,i){"use strict";var n=i(6518),s=i(9504),o=i(5749),r=i(7750),a=i(655),h=i(1436),l=s("".indexOf);n({target:"String",proto:!0,forced:!h("includes")},{includes:function(t){return!!~l(a(r(this)),a(o(t)),arguments.length>1?arguments[1]:void 0)}})},7764:function(t,e,i){"use strict";var n=i(8183).charAt,s=i(655),o=i(1181),r=i(1088),a=i(2529),h="String Iterator",l=o.set,c=o.getterFor(h);r(String,"String",function(t){l(this,{type:h,string:s(t),index:0})},function(){var t,e=c(this),i=e.string,s=e.index;return s>=i.length?a(void 0,!0):(t=n(i,s),e.index+=t.length,a(t,!1))})},778:function(t,e,i){"use strict";var n=i(6518),s=i(7240);n({target:"String",proto:!0,forced:i(3061)("link")},{link:function(t){return s(this,"a","href",t)}})},1761:function(t,e,i){"use strict";var n=i(9565),s=i(9504),o=i(9228),r=i(8551),a=i(34),h=i(8014),l=i(655),c=i(7750),u=i(5966),d=i(7829),p=i(1034),f=i(6682),m=s("".indexOf);o("match",function(t,e,i){return[function(e){var i=c(this),s=a(e)?u(e,t):void 0;return s?n(s,e,i):new RegExp(e)[t](l(i))},function(t){var n=r(this),s=l(t),o=i(e,n,s);if(o.done)return o.value;var a=l(p(n));if(!~m(a,"g"))return f(n,s);var c=!!~m(a,"u")||!!~m(a,"v");n.lastIndex=0;for(var u,g=[],v=0;null!==(u=f(n,s));){var _=l(u[0]);g[v]=_,""===_&&(n.lastIndex=d(s,h(n.lastIndex),c)),v++}return 0===v?null:g}]})},9978:function(t,e,i){"use strict";var n=i(6518),s=i(9565),o=i(9504),r=i(7750),a=i(4901),h=i(34),l=i(788),c=i(655),u=i(5966),d=i(1034),p=i(2478),f=i(8227),m=i(6395),g=f("replace"),v=TypeError,_=o("".indexOf),y=o("".replace),b=o("".slice),x=Math.max;n({target:"String",proto:!0},{replaceAll:function(t,e){var i,n,o,f,w,M,S,C,k,P,T=r(this),E=0,L="";if(h(t)){if((i=l(t))&&(n=c(r(d(t))),!~_(n,"g")))throw new v("`.replaceAll` does not allow non-global regexes");if(o=u(t,g))return s(o,t,T,e);if(m&&i)return y(c(T),t,e)}for(f=c(T),w=c(t),(M=a(e))||(e=c(e)),S=w.length,C=x(1,S),k=_(f,w);-1!==k;)P=M?c(e(w,k,f)):p(w,f,k,[],void 0,e),L+=b(f,E,k)+P,E=k+S,k=k+C>f.length?-1:_(f,w,k+C);return E<f.length&&(L+=b(f,E)),L}})},5440:function(t,e,i){"use strict";var n=i(8745),s=i(9565),o=i(9504),r=i(9228),a=i(9039),h=i(8551),l=i(4901),c=i(34),u=i(1291),d=i(8014),p=i(655),f=i(7750),m=i(7829),g=i(5966),v=i(2478),_=i(1034),y=i(6682),b=i(8227)("replace"),x=Math.max,w=Math.min,M=o([].concat),S=o([].push),C=o("".indexOf),k=o("".slice),P=function(t){return void 0===t?t:String(t)},T="$0"==="a".replace(/./,"$0"),E=!!/./[b]&&""===/./[b]("a","$0");r("replace",function(t,e,i){var o=E?"$":"$0";return[function(t,i){var n=f(this),o=c(t)?g(t,b):void 0;return o?s(o,t,n,i):s(e,p(n),t,i)},function(t,s){var r=h(this),a=p(t),c=l(s);c||(s=p(s));var f=p(_(r));if("string"==typeof s&&!~C(s,o)&&!~C(s,"$<")&&!~C(f,"y")){var g=i(e,r,a,s);if(g.done)return g.value}var b,T=!!~C(f,"g");T&&(b=!!~C(f,"u")||!!~C(f,"v"),r.lastIndex=0);for(var E,L=[];null!==(E=y(r,a))&&(S(L,E),T);)""===p(E[0])&&(r.lastIndex=m(a,d(r.lastIndex),b));for(var A="",O=0,I=0;I<L.length;I++){for(var D,N=p((E=L[I])[0]),z=x(w(u(E.index),a.length),0),j=[],R=1;R<E.length;R++)S(j,P(E[R]));var G=E.groups;if(c){var B=M([N],j,z,a);void 0!==G&&S(B,G),D=p(n(s,void 0,B))}else D=v(N,a,z,j,G,s);z>=O&&(A+=k(a,O,z)+D,O=z+N.length)}return A+k(a,O)}]},!!a(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!T||E)}
vendor: 4,805 bytes, line 2
2,5746:function(t,e,i){"use strict";var n=i(9565),s=i(9228),o=i(8551),r=i(34),a=i(7750),h=i(3470),l=i(655),c=i(5966),u=i(6682);s("search",function(t,e,i){return[function(e){var i=a(this),s=r(e)?c(e,t):void 0;return s?n(s,e,i):new RegExp(e)[t](l(i))},function(t){var n=o(this),s=l(t),r=i(e,n,s);if(r.done)return r.value;var a=n.lastIndex;h(a,0)||(n.lastIndex=0);var c=u(n,s);return h(n.lastIndex,a)||(n.lastIndex=a),null===c?-1:c.index}]})},1392:function(t,e,i){"use strict";var n,s=i(6518),o=i(7476),r=i(7347).f,a=i(8014),h=i(655),l=i(5749),c=i(7750),u=i(1436),d=i(6395),p=o("".slice),f=Math.min,m=u("startsWith");s({target:"String",proto:!0,forced:!(!d&&!m&&(n=r(String.prototype,"startsWith"),n&&!n.writable)||m)},{startsWith:function(t){var e=h(c(this));l(t);var i=h(t),n=a(f(arguments.length>1?arguments[1]:void 0,e.length));return p(e,n,n+i.length)===i}})},2762:function(t,e,i){"use strict";var n=i(6518),s=i(3802).trim;n({target:"String",proto:!0,forced:i(706)("trim")},{trim:function(){return s(this)}})},6761:function(t,e,i){"use strict";var n=i(6518),s=i(4576),o=i(9565),r=i(9504),a=i(6395),h=i(3724),l=i(4495),c=i(9039),u=i(9297),d=i(1625),p=i(8551),f=i(5397),m=i(6969),g=i(655),v=i(6980),_=i(2360),y=i(1072),b=i(8480),x=i(298),w=i(3717),M=i(7347),S=i(4913),C=i(6801),k=i(8773),P=i(6840),T=i(2106),E=i(5745),L=i(6119),A=i(421),O=i(3392),I=i(8227),D=i(1951),N=i(511),z=i(8242),j=i(687),R=i(1181),G=i(9213).forEach,B=L("hidden"),H="Symbol",F="prototype",W=R.set,q=R.getterFor(H),U=Object[F],Z=s.Symbol,Y=Z&&Z[F],V=s.RangeError,X=s.TypeError,K=s.QObject,$=M.f,J=S.f,Q=x.f,tt=k.f,et=r([].push),it=E("symbols"),nt=E("op-symbols"),st=E("wks"),ot=!K||!K[F]||!K[F].findChild,rt=function(t,e,i){var n=$(U,e);return n&&delete U[e],J(t,e,i),n&&t!==U&&J(U,e,n),t},at=h&&c(function(){return 7!==_(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?rt:J,ht=function(t,e){var i=it[t]=_(Y);return W(i,{type:H,tag:t,description:e}),h||(i.description=e),i},lt=function(t,e,i){t===U&&lt(nt,e,i),p(t);var n=m(e);return p(i),u(it,n)?(("enumerable"in i?!i.enumerable:!u(t,n)||u(t,B)&&t[B][n])?(u(t,B)||J(t,B,v(1,_(null))),t[B][n]=!0):(u(t,B)&&t[B][n]&&(t[B][n]=!1),i=_(i,{enumerable:v(0,!1)})),at(t,n,i)):J(t,n,i)},ct=function(t,e){p(t);var i=f(e),n=y(i).concat(ft(i));return G(n,function(e){h&&!o(ut,i,e)||lt(t,e,i[e])}),t},ut=function(t){var e=m(t),i=o(tt,this,e);return!(this===U&&u(it,e)&&!u(nt,e))&&(!(i||!u(this,e)||!u(it,e)||u(this,B)&&this[B][e])||i)},dt=function(t,e){var i=f(t),n=m(e);if(i!==U||!u(it,n)||u(nt,n)){var s=$(i,n);return!s||!u(it,n)||u(i,B)&&i[B][n]||(s.enumerable=!0),s}},pt=function(t){var e=Q(f(t)),i=[];return G(e,function(t){u(it,t)||u(A,t)||et(i,t)}),i},ft=function(t){var e=t===U,i=Q(e?nt:f(t)),n=[];return G(i,function(t){!u(it,t)||e&&!u(U,t)||et(n,it[t])}),n};l||(Z=function(){if(d(Y,this))throw new X("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=O(t),i=function(t){var n=void 0===this?s:this;n===U&&o(i,nt,t),u(n,B)&&u(n[B],e)&&(n[B][e]=!1);var r=v(1,t);try{at(n,e,r)}catch(t){if(!(t instanceof V))throw t;rt(n,e,r)}};return h&&ot&&at(U,e,{configurable:!0,set:i}),ht(e,t)},P(Y=Z[F],"toString",function(){return q(this).tag}),P(Z,"withoutSetter",function(t){return ht(O(t),t)}),k.f=ut,S.f=lt,C.f=ct,M.f=dt,b.f=x.f=pt,w.f=ft,D.f=function(t){return ht(I(t),t)},h&&(T(Y,"description",{configurable:!0,get:function(){return q(this).description}}),a||P(U,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Z}),G(y(st),function(t){N(t)}),n({target:H,stat:!0,forced:!l},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!h},{create:function(t,e){return void 0===e?_(t):ct(_(t),e)},defineProperty:lt,defineProperties:ct,getOwnPropertyDescriptor:dt}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pt}),z(),j(Z,H),A[B]=!0},9463:function(t,e,i){"use strict";var n=i(6518),s=i(3724),o=i(4576),r=i(9565),a=i(9504),h=i(9297),l=i(4901),c=i(1625),u=i(655),d=i(2106),p=i(7740),f=o.Symbol,m=f&&f.prototype;if(s&&l(f)&&(!("description"in m)||void 0!==f().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=c(m,this)?new f(t):void 0===t?f():f(t);return""===t&&(g[e]=!0),e};p(v,f);var _=v.for;v.for={for:function(t){var e=u(t),i=r(_,this,e);return""===e&&(g[i]=!0),i}}.for,v.prototype=m,m.constructor=v;var y="Symbol(description detection)"===String(f("description detection")),b=a(m.valueOf),x=a(m.toString),w=/^Symbol\((.*)\)[^)]+$/,M=a("".replace),S=a("".slice);d(m,"description",{configurable:!0,get:function(){var t=b(this);if(h(g,t))return"";var e=x(t),i=y?S(e,7,-1):M(e,w,"$1");return""===i?void 0:i}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}}
vendor: 9,288 bytes, line 2
2,1510:function(t,e,i){"use strict";var n=i(6518),s=i(7751),o=i(9297),r=i(655),a=i(5745),h=i(1296),l=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!h},{for:function(t){var e=r(t);if(o(l,e))return l[e];var i=s("Symbol")(e);return l[e]=i,c[i]=e,i}})},2259:function(t,e,i){"use strict";i(511)("iterator")},2675:function(t,e,i){"use strict";i(6761),i(1510),i(7812),i(3110),i(9773)},7812:function(t,e,i){"use strict";var n=i(6518),s=i(9297),o=i(757),r=i(6823),a=i(5745),h=i(1296),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!h},{keyFor:function(t){if(!o(t))throw new TypeError(r(t)+" is not a symbol");if(s(l,t))return l[t]}})},5700:function(t,e,i){"use strict";var n=i(511),s=i(8242);n("toPrimitive"),s()},2480:function(t,e,i){"use strict";i(5081)},2041:function(t,e,i){"use strict";i(9978)},3500:function(t,e,i){"use strict";var n=i(4576),s=i(7400),o=i(9296),r=i(235),a=i(6699),h=function(t){if(t&&t.forEach!==r)try{a(t,"forEach",r)}catch(e){t.forEach=r}};for(var l in s)s[l]&&h(n[l]&&n[l].prototype);h(o)},2953:function(t,e,i){"use strict";var n=i(4576),s=i(7400),o=i(9296),r=i(3792),a=i(6699),h=i(687),l=i(8227)("iterator"),c=r.values,u=function(t,e){if(t){if(t[l]!==c)try{a(t,l,c)}catch(e){t[l]=c}if(h(t,e,!0),s[e])for(var i in r)if(t[i]!==r[i])try{a(t,i,r[i])}catch(e){t[i]=r[i]}}};for(var d in s)u(n[d]&&n[d].prototype,d);u(o,"DOMTokenList")},8406:function(t,e,i){"use strict";i(3792),i(7337);var n=i(6518),s=i(4576),o=i(3389),r=i(7751),a=i(9565),h=i(9504),l=i(3724),c=i(7416),u=i(6840),d=i(2106),p=i(6279),f=i(687),m=i(3994),g=i(1181),v=i(679),_=i(4901),y=i(9297),b=i(6080),x=i(6955),w=i(8551),M=i(34),S=i(655),C=i(2360),k=i(6980),P=i(81),T=i(851),E=i(2529),L=i(2812),A=i(8227),O=i(4488),I=A("iterator"),D="URLSearchParams",N=D+"Iterator",z=g.set,j=g.getterFor(D),R=g.getterFor(N),G=o("fetch"),B=o("Request"),H=o("Headers"),F=B&&B.prototype,W=H&&H.prototype,q=s.TypeError,U=s.encodeURIComponent,Z=String.fromCharCode,Y=r("String","fromCodePoint"),V=parseInt,X=h("".charAt),K=h([].join),$=h([].push),J=h("".replace),Q=h([].shift),tt=h([].splice),et=h("".split),it=h("".slice),nt=h(/./.exec),st=/\+/g,ot=/^[0-9a-f]+$/i,rt=function(t,e){var i=it(t,e,e+2);return nt(ot,i)?V(i,16):NaN},at=function(t){for(var e=0,i=128;i>0&&0!==(t&i);i>>=1)e++;return e},ht=function(t){var e=null,i=t.length;switch(i){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return null===e||e>1114111||e>=55296&&e<=57343||e<(i>3?65536:i>2?2048:i>1?128:0)?null:e},lt=function(t){for(var e=(t=J(t,st," ")).length,i="",n=0;n<e;){var s=X(t,n);if("%"===s){if("%"===X(t,n+1)||n+3>e){i+="%",n++;continue}var o=rt(t,n+1);if(o!=o){i+=s,n++;continue}n+=2;var r=at(o);if(0===r)s=Z(o);else{if(1===r||r>4){i+="�",n++;continue}for(var a=[o],h=1;h<r&&!(3+ ++n>e||"%"!==X(t,n));){var l=rt(t,n+1);if(l!=l||l>191||l<128)break;if(1===h){if(224===o&&l<160)break;if(237===o&&l>159)break;if(240===o&&l<144)break;if(244===o&&l>143)break}$(a,l),n+=2,h++}if(a.length!==r){i+="�";continue}var c=ht(a);if(null===c){for(var u=0;u<r;u++)i+="�";n++;continue}s=Y(c)}}i+=s,n++}return i},ct=/[!'()~]|%20/g,ut={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},dt=function(t){return ut[t]},pt=function(t){return J(U(t),ct,dt)},ft=m(function(t,e){z(this,{type:N,target:j(t).entries,index:0,kind:e})},D,function(){var t=R(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=null,E(void 0,!0);var n=e[i];switch(t.kind){case"keys":return E(n.key,!1);case"values":return E(n.value,!1)}return E([n.key,n.value],!1)},!0),mt=function(t){this.entries=[],this.url=null,void 0!==t&&(M(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===X(t,0)?it(t,1):t:S(t)))};mt.prototype={type:D,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,i,n,s,o,r,h,l=this.entries,c=T(t);if(c)for(i=(e=P(t,c)).next;!(n=a(i,e)).done;){if(o=(s=P(w(n.value))).next,(r=a(o,s)).done||(h=a(o,s)).done||!a(o,s).done)throw new q("Expected sequence with length 2");$(l,{key:S(r.value),value:S(h.value)})}else for(var u in t)y(t,u)&&$(l,{key:u,value:S(t[u])})},parseQuery:function(t){if(t)for(var e,i,n=this.entries,s=et(t,"&"),o=0;o<s.length;)(e=s[o++]).length&&(i=et(e,"="),$(n,{key:lt(Q(i)),value:lt(K(i,"="))}))},serialize:function(){for(var t,e=this.entries,i=[],n=0;n<e.length;)t=e[n++],$(i,pt(t.key)+"="+pt(t.value));return K(i,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var gt=function(){v(this,vt);var t=z(this,new mt(arguments.length>0?arguments[0]:void 0));l||(this.size=t.entries.length)},vt=gt.prototype;if(p(vt,{append:function(t,e){var i=j(this);L(arguments.length,2),$(i.entries,{key:S(t),value:S(e)}),l||this.size++,i.updateURL()},delete:function(t){for(var e=j(this),i=L(arguments.length,1),n=e.entries,s=S(t),o=i<2?void 0:arguments[1],r=void 0===o?o:S(o),a=0;a<n.length;){var h=n[a];h.key!==s||void 0!==r&&h.value!==r?a++:tt(n,a,1)}l||(this.size=n.length),e.updateURL()},get:function(t){var e=j(this).entries;L(arguments.length,1);for(var i=S(t),n=0;n<e.length;n++)if(e[n].key===i)return e[n].value;return null},getAll:function(t){var e=j(this).entries;L(arguments.length,1);for(var i=S(t),n=[],s=0;s<e.length;s++)e[s].key===i&&$(n,e[s].value);return n},has:function(t){for(var e=j(this).entries,i=L(arguments.length,1),n=S(t),s=i<2?void 0:arguments[1],o=void 0===s?s:S(s),r=0;r<e.length;){var a=e[r++];if(a.key===n&&(void 0===o||a.value===o))return!0}return!1},set:function(t,e){var i=j(this);L(arguments.length,2);for(var n,s=i.entries,o=!1,r=S(t),a=S(e),h=0;h<s.length;h++)(n=s[h]).key===r&&(o?tt(s,h--,1):(o=!0,n.value=a));o||$(s,{key:r,value:a}),l||(this.size=s.length),i.updateURL()},sort:function(){var t=j(this);O(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,i=j(this).entries,n=b(t,arguments.length>1?arguments[1]:void 0),s=0;s<i.length;)n((e=i[s++]).value,e.key,this)},keys:function(){return new ft(this,"keys")},values:function(){return new ft(this,"values")},entries:function(){return new ft(this,"entries")}},{enumerable:!0}),u(vt,I,vt.entries,{name:"entries"}),u(vt,"toString",function(){return j(this).serialize()},{enumerable:!0}),l&&d(vt,"size",{get:function(){return j(this).entries.length},configurable:!0,enumerable:!0}),f(gt,D),n({global:!0,constructor:!0,forced:!c},{URLSearchParams:gt}),!c&&_(H)){var _t=h(W.has),yt=h(W.set),bt=function(t){if(M(t)){var e,i=t.body;if(x(i)===D)return e=t.headers?new H(t.headers):new H,_t(e,"content-type")||yt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(t,{body:k(0,S(i)),headers:k(0,e)})}return t};if(_(G)&&n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return G(t,arguments.length>1?bt(arguments[1]):{})}}),_(B)){var xt=function(t){return v(this,F),new B(t,arguments.length>1?bt(arguments[1]):{})};F.constructor=xt,xt.prototype=F,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:gt,getState:j}},8408:function(t,e,i){"use strict";i(8406)},5806:function(t,e,i){"use strict";i(7764);var n,s=i(6518),o=i(3724),r=i(7416),a=i(4576),h=i(6080),l=i(9504),c=i(6840),u=i(2106),d=i(679),p=i(9297),f=i(4213),m=i(7916),g=i(7680),v=i(8183).codeAt,_=i(6098),y=i(655),b=i(687),x=i(2812),w=i(8406),M=i(1181),S=M.set,C=M.getterFor("URL"),k=w.URLSearchParams,P=w.getState,T=a.URL,E=a.TypeError,L=a.encodeURIComponent,A=a.parseInt,O=Math.floor,I=Math.pow,D=l("".charAt),N=l(/./.exec),z=l([].join),j=l(1.1.toString),R=l([].pop),G=l([].push),B=l("".replace),H=l([].shift),F=l("".split),W=l("".slice),q=l("".toLowerCase),U=l([].unshift),Z="Invalid scheme",Y="Invalid host",V="Invalid port",X=/[a-z]/i,K=/[\d+\-.a-z]/i,$=/\d/,J=/^0x/i,Q=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,it=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,st=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,rt=/[\t\n\r]/g,at=function(t){var e,i,n,s;if("number"==typeof t){for(e=[],i=0;i<4;i++)U(e,t%256),t=O(t/256);return z(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,i=1,n=null,s=0,o=0;o<8;o++)0!==t[o]?(s>i&&(e=n,i=s),n=null,s=0):(null===n&&(n=o),++s);return s>i?n:e}(t),i=0;i<8;i++)s&&0===t[i]||(s&&(s=!1),n===i?(e+=i?":":"::",s=!0):(e+=j(t[i],16),i<7&&(e+=":")));return"["+e+"]"}return t},ht={},lt=f({},ht,{" ":1,'"':1,"#":1,"<":1,">":1}),ct=f({},lt,{"'":1}),ut=f({},ht,{" ":1,'"':1,"<":1,">":1,"`":1}),dt=f({},ut,{"#":1,"?":1,"{":1,"}":1,"^":1}),pt=f({},dt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ft=function(t,e){var i=v(t,0);return i>=32&&i<127&&!p(e,t)?t:"'"===t&&p(e,t)?"%27":L(t)},mt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},gt=function(t,e){var i;return 2===t.length&&N(X,D(t,0))&&(":"===(i=D(t,1))||!e&&"|"===i)},vt=function(t){var e;return t.length>1&&gt(W(t,0,2))&&(2===t.length||"/"===(e=D(t,2))||"\\"===e||"?"===e||"#"===e)},_t=function(t){return"."===t||"%2e"===q(t)},yt=function(t){return".."===(t=q(t))||"%2e."===t||".%2e"===t||"%2e%2e"===t},bt={},xt={},wt={},Mt={},St={},Ct={},kt={},Pt={},Tt={},Et={},Lt={},At={},Ot={},It={},Dt={},Nt={},zt={},jt={},Rt={},Gt={},Bt={}
vendor: 8,455 bytes, line 2
2,Ht=function(t,e,i){var n,s,o,r=y(t);if(e){if(s=this.parse(r))throw new E(s);this.searchParams=null}else{if(void 0!==i&&(n=new Ht(i,!0)),s=this.parse(r,null,n))throw new E(s);(o=P(new k)).bindURL(this),this.searchParams=o}};Ht.prototype={type:"URL",parse:function(t,e,i){var s,o,r,a,h=this,l=e||bt,c=0,u="",d=!1,f=!1,v=!1;for(t=y(t),e||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,t=B(t,st,""),t=B(t,ot,"$1")),t=B(t,rt,""),s=m(t);c<=s.length;){switch(o=s[c],l){case bt:if(!o||!N(X,o)){if(e)return Z;l=wt;continue}u+=q(o),l=xt;break;case xt:if(o&&N(K,o))u+=q(o);else{if(":"!==o){if(e)return Z;u="",l=wt,c=0;continue}if(e&&(h.isSpecial()!==p(mt,u)||"file"===u&&(h.includesCredentials()||null!==h.port)||"file"===h.scheme&&""===h.host))return;if(h.scheme=u,e)return void(h.isSpecial()&&mt[h.scheme]===h.port&&(h.port=null));u="","file"===h.scheme?l=It:h.isSpecial()&&i&&i.scheme===h.scheme?l=Mt:h.isSpecial()?l=Pt:"/"===s[c+1]?(l=St,c++):(h.cannotBeABaseURL=!0,G(h.path,""),l=Rt)}break;case wt:if(!i||i.cannotBeABaseURL&&"#"!==o)return Z;if(i.cannotBeABaseURL&&"#"===o){h.scheme=i.scheme,h.path=g(i.path),h.query=i.query,h.fragment="",h.cannotBeABaseURL=!0,l=Bt;break}l="file"===i.scheme?It:Ct;continue;case Mt:if("/"!==o||"/"!==s[c+1]){l=Ct;continue}l=Tt,c++;break;case St:if("/"===o){l=Et;break}l=jt;continue;case Ct:if(h.scheme=i.scheme,o===n)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=g(i.path),h.query=i.query;else if("/"===o||"\\"===o&&h.isSpecial())l=kt;else if("?"===o)h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=g(i.path),h.query="",l=Gt;else{if("#"!==o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=g(i.path),h.path.length&&h.path.length--,l=jt;continue}h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,h.path=g(i.path),h.query=i.query,h.fragment="",l=Bt}break;case kt:if(!h.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){h.username=i.username,h.password=i.password,h.host=i.host,h.port=i.port,l=jt;continue}l=Et}else l=Tt;break;case Pt:if(l=Tt,"/"!==o||"/"!==s[c+1])continue;c++;break;case Tt:if("/"!==o&&"\\"!==o){l=Et;continue}break;case Et:if("@"===o){d&&(u="%40"+u),d=!0,r=m(u);for(var _=0;_<r.length;_++){var b=r[_];if(":"!==b||v){var x=ft(b,pt);v?h.password+=x:h.username+=x}else v=!0}u=""}else if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&h.isSpecial()){if(d&&""===u)return"Invalid authority";c-=m(u).length+1,u="",l=Lt}else u+=o;break;case Lt:case At:if(e&&"file"===h.scheme){l=Nt;continue}if(":"!==o||f){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&h.isSpecial()){if(h.isSpecial()&&""===u)return Y;if(e&&""===u&&(h.includesCredentials()||null!==h.port))return;if(a=h.parseHost(u))return a;if(u="",l=zt,e)return;continue}"["===o?f=!0:"]"===o&&(f=!1),u+=o}else{if(""===u)return Y;if(e===At)return;if(a=h.parseHost(u))return a;u="",l=Ot}break;case Ot:if(!N($,o)){if(o===n||"/"===o||"?"===o||"#"===o||"\\"===o&&h.isSpecial()||e){if(""!==u){var w=A(u,10);if(w>65535)return V;h.port=h.isSpecial()&&w===mt[h.scheme]?null:w,u=""}if(e)return;l=zt;continue}return V}u+=o;break;case It:if(h.scheme="file",h.host="","/"===o||"\\"===o)l=Dt;else{if(!i||"file"!==i.scheme){l=jt;continue}switch(o){case n:h.host=i.host,h.path=g(i.path),h.query=i.query;break;case"?":h.host=i.host,h.path=g(i.path),h.query="",l=Gt;break;case"#":h.host=i.host,h.path=g(i.path),h.query=i.query,h.fragment="",l=Bt;break;default:h.host=i.host,vt(z(g(s,c),""))||(h.path=g(i.path),h.shortenPath()),l=jt;continue}}break;case Dt:if("/"===o||"\\"===o){l=Nt;break}i&&"file"===i.scheme&&(h.host=i.host,!vt(z(g(s,c),""))&&gt(i.path[0],!0)&&G(h.path,i.path[0])),l=jt;continue;case Nt:if(o===n||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&gt(u))l=jt;else if(""===u){if(h.host="",e)return;l=zt}else{if(a=h.parseHost(u))return a;if("localhost"===h.host&&(h.host=""),e)return;u="",l=zt}continue}u+=o;break;case zt:if(h.isSpecial()){if(l=jt,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==n&&(l=jt,"/"!==o))continue}else h.fragment="",l=Bt;else h.query="",l=Gt;break;case jt:if(o===n||"/"===o||"\\"===o&&h.isSpecial()||!e&&("?"===o||"#"===o)){if(yt(u)?(h.shortenPath(),"/"===o||"\\"===o&&h.isSpecial()||G(h.path,"")):_t(u)?"/"===o||"\\"===o&&h.isSpecial()||G(h.path,""):("file"===h.scheme&&!h.path.length&&gt(u)&&(null!==h.host&&""!==h.host&&(h.host=""),u=D(u,0)+":"),G(h.path,u)),u="","file"===h.scheme&&(o===n||"?"===o||"#"===o))for(;h.path.length>1&&""===h.path[0];)H(h.path);"?"===o?(h.query="",l=Gt):"#"===o&&(h.fragment="",l=Bt)}else u+=ft(o,dt);break;case Rt:"?"===o?(h.query="",l=Gt):"#"===o?(h.fragment="",l=Bt):o!==n&&(h.path[0]+=ft(o,ht));break;case Gt:e||"#"!==o?o!==n&&(h.query+=ft(o,h.isSpecial()?ct:lt)):(h.fragment="",l=Bt);break;case Bt:o!==n&&(h.fragment+=ft(o,ut))}c++}},parseHost:function(t){var e,i,n;if("["===D(t,0)){if("]"!==D(t,t.length-1))return Y;if(e=function(t){var e,i,n,s,o,r,a,h=[0,0,0,0,0,0,0,0],l=0,c=null,u=0,d=function(){return D(t,u)};if(":"===d()){if(":"!==D(t,1))return;u+=2,c=++l}for(;d();){if(8===l)return;if(":"!==d()){for(e=i=0;i<4&&N(et,d());)e=16*e+A(d(),16),u++,i++;if("."===d()){if(0===i)return;if(u-=i,l>6)return;for(n=0;d();){if(s=null,n>0){if(!("."===d()&&n<4))return;u++}if(!N($,d()))return;for(;N($,d());){if(o=A(d(),10),null===s)s=o;else{if(0===s)return;s=10*s+o}if(s>255)return;u++}h[l]=256*h[l]+s,2!==++n&&4!==n||l++}if(4!==n)return;break}if(":"===d()){if(u++,!d())return}else if(d())return;h[l++]=e}else{if(null!==c)return;u++,c=++l}}if(null!==c)for(r=l-c,l=7;0!==l&&r>0;)a=h[l],h[l--]=h[c+r-1],h[c+--r]=a;else if(8!==l)return;return h}(W(t,1,-1)),!e)return Y;this.host=e}else if(this.isSpecial()){if(t=_(t),N(it,t))return Y;if(function(t){var e,i,n=F(t,".");if(""===n[n.length-1]){if(1===n.length)return!1;n.length--}return e=n[n.length-1],!!N(tt,e)||!!N(J,e)&&(""===(i=W(e,2))||!!N(et,i))}(t)){if(e=function(t){var e,i,n,s,o,r,a,h=F(t,".");if(h.length&&""===h[h.length-1]&&h.length--,(e=h.length)>4)return null;for(i=[],n=0;n<e;n++){if(""===(s=h[n]))return null;if(o=10,s.length>1&&"0"===D(s,0)&&(o=N(J,s)?16:8,s=W(s,8===o?1:2)),""===s)r=0;else{if(!N(10===o?tt:8===o?Q:et,s))return null;r=A(s,o)}G(i,r)}for(n=0;n<e;n++)if(r=i[n],n===e-1){if(r>=I(256,5-e))return null}else if(r>255)return null;for(a=R(i),n=0;n<i.length;n++)a+=i[n]*I(256,3-n);return a}(t),null===e)return Y;this.host=e}else this.host=t}else{if(N(nt,t))return Y;for(e="",i=m(t),n=0;n<i.length;n++)e+=ft(i[n],ht);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(mt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&gt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,i=t.username,n=t.password,s=t.host,o=t.port,r=t.path,a=t.query,h=t.fragment,l=e+":";return null!==s?(l+="//",t.includesCredentials()&&(l+=i+(n?":"+n:"")+"@"),l+=at(s),null!==o&&(l+=":"+o)):"file"===e&&(l+="//"),null===s&&!t.cannotBeABaseURL&&r.length>1&&""===r[0]&&(l+="/."),l+=t.cannotBeABaseURL?r[0]:r.length?"/"+z(r,"/"):"",null!==a&&(l+="?"+a),null!==h&&(l+="#"+h),l},setHref:function(t){var e=this.parse(t);if(e)throw new E(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ft(this.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(y(t)+":",bt)},getUsername:function(){return this.username},setUsername:function(t){var e=m(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var i=0;i<e.length;i++)this.username+=ft(e[i],pt)}},getPassword:function(){return this.password},setPassword:function(t){var e=m(y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var i=0;i<e.length;i++)this.password+=ft(e[i],pt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Lt)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,At)},getPort:function(){var t=this.port;return null===t?"":y(t)}
vendor: 4,331 bytes, line 2
2,setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=y(t))?this.port=null:this.parse(t,Ot))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+z(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,zt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=y(t))?this.query=null:("?"===D(t,0)&&(t=W(t,1)),this.query="",this.parse(t,Gt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=y(t))?("#"===D(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,Bt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ft=function(t){var e=d(this,Wt),i=x(arguments.length,1)>1?arguments[1]:void 0,n=S(e,new Ht(t,!1,i));o||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Wt=Ft.prototype,qt=function(t,e){return{get:function(){return C(this)[t]()},set:e&&function(t){return C(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(u(Wt,"href",qt("serialize","setHref")),u(Wt,"origin",qt("getOrigin")),u(Wt,"protocol",qt("getProtocol","setProtocol")),u(Wt,"username",qt("getUsername","setUsername")),u(Wt,"password",qt("getPassword","setPassword")),u(Wt,"host",qt("getHost","setHost")),u(Wt,"hostname",qt("getHostname","setHostname")),u(Wt,"port",qt("getPort","setPort")),u(Wt,"pathname",qt("getPathname","setPathname")),u(Wt,"search",qt("getSearch","setSearch")),u(Wt,"searchParams",qt("getSearchParams")),u(Wt,"hash",qt("getHash","setHash"))),c(Wt,"toJSON",function(){return C(this).serialize()},{enumerable:!0}),c(Wt,"toString",function(){return C(this).serialize()},{enumerable:!0}),T){var Ut=T.createObjectURL,Zt=T.revokeObjectURL;Ut&&c(Ft,"createObjectURL",h(Ut,T)),Zt&&c(Ft,"revokeObjectURL",h(Zt,T))}b(Ft,"URL"),s({global:!0,constructor:!0,forced:!r,sham:!o},{URL:Ft})},3296:function(t,e,i){"use strict";i(5806)},7208:function(t,e,i){"use strict";var n=i(6518),s=i(9565);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return s(URL.prototype.toString,this)}})}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,{a:e}),e},i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.dn=function(t){(Object.getOwnPropertyDescriptor(t,"name")||{}).writable||Object.defineProperty(t,"name",{value:"default",configurable:!0})},function(){"use strict";var t=i(4692),e=i.n(t);function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function s(){var t,e,i="function"==typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",r=i.toStringTag||"@@toStringTag";function a(i,n,s,r){var a=n&&n.prototype instanceof l?n:l,c=Object.create(a.prototype);return o(c,"_invoke",function(i,n,s){var o,r,a,l=0,c=s||[],u=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,i){return o=e,r=0,a=t,d.n=i,h}};function p(i,n){for(r=i,a=n,e=0;!u&&l&&!s&&e<c.length;e++){var s,o=c[e],p=d.p,f=o[2];i>3?(s=f===n)&&(a=o[(r=o[4])?5:(r=3,3)],o[4]=o[5]=t):o[0]<=p&&((s=i<2&&p<o[1])?(r=0,d.v=n,d.n=o[1]):p<f&&(s=i<3||o[0]>n||n>f)&&(o[4]=i,o[5]=n,d.n=f,r=0))}if(s||i>1)return h;throw u=!0,n}return function(s,c,f){if(l>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,f),r=c,a=f;(e=r<2?t:a)||!u;){o||(r?r<3?(r>
21&&(d.n=-1),p(r,a)):d.n=a:d.v=a);try{if(l=2,o){if(r||(s="next"),e=o[s]){if(!(e=e.call(o,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,r<2&&(r=0)}else 1===r&&(e=o.return)&&e.call(o),r<2&&(a=TypeError("The iterator does not provide a '"+s+"' method"),r=1);o=t}else if((e=(u=d.n<0)?a:i.call(n,d))!==h)break}catch(e){o=t,r=1,a=e}finally{l=1}}return{value:e,done:u}}}(i,s,r),!0),c}var h={};function l(){}function c(){}function u(){}e=Object.getPrototypeOf;var d=[][n]?e(e([][n]())):(o(e={},n,function(){return this}),e),p=u.prototype=l.prototype=Object.create(d);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,o(t,r,"GeneratorFunction")),t.prototype=Object.create(p),t}return c.prototype=u,o(p,"constructor",u),o(u,"constructor",c),c.displayName="GeneratorFunction",o(u,r,"GeneratorFunction"),o(p),o(p,r,"Generator"),o(p,n,function(){return this}),o(p,"toString",function(){return"[object Generator]"}),(s=function(){return{w:a,m:f}})()}function o(t,e,i,n){var s=Object.defineProperty;try{s({},"",{})}catch(t){s=0}o=function(t,e,i,n){function r(e,i){o(t,e,function(t){return this._invoke(e,i,t)})}e?s?s(t,e,{value:i,enumerable:!n,configurable:!n,writable:!n}):t[e]=i:(r("next",0),r("throw",1),r("return",2))},o(t,e,i,n)}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach(function(e){h(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function h(t,e,i){return(e=function(t){var e=function(t){if("object"!=n(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==n(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function l(t,e,i,n,s,o,r){try{var a=t[o](r),h=a.value}catch(t){return void i(t)}a.done?e(h):Promise.resolve(h).then(n,s)}i(2675),i(9463),i(2259),i(5700),i(8706),i(2008),i(3792),i(4554),i(9572),i(2892),i(3851),i(1278),i(875),i(9432),i(287),i(6099),i(3362),i(7495),i(7764),i(5746),i(2762),i(2480),i(3500),i(2953);var c=[],u=null,d=!1;function p(){if("undefined"==typeof globalThis)return null;var t=globalThis;return void 0===t.window||t.window!==t||void 0===t.document?null:t}function f(t){if(t.location)return"".concat(t.location.pathname).concat(t.location.search)}function m(){null!==u&&(clearTimeout(u),u=null)}function g(){var t=p();t&&null===u&&(u=t.setTimeout(function(){u=null,v()},3e3))}function v(){return _.apply(this,arguments)}function _(){var t;return t=s().m(function t(){var e,i;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:if((e=p())&&"function"==typeof e.fetch&&0!==c.length){t.n=1;break}return t.a(2);case 1:return m(),i=c.splice(0,10),t.p=2,t.n=3,e.fetch("/api/frontend-log/batch",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",keepalive:!0,body:JSON.stringify({events:i})});case 3:t.n=5;break;case 4:t.p=4,t.v;case 5:c.length>0&&g();case 6:return t.a(2)}},t,null,[[2,4]])}),_=function(){var e=this,i=arguments;return new Promise(function(n,s){var o=t.apply(e,i);function r(t){l(o,n,s,r,a,"next",t)}function a(t){l(o,n,s,r,a,"throw",t)}r(void 0)})},_.apply(this,arguments)}function y(t){p()&&function(t){if(!t)return!1;switch(t.trim().toLowerCase()){case"error":case"fatal":case"critical":return!0;default:return!1}}(t.level)&&(function(){var t=p();if(t&&!d){var e=function(){v()};t.addEventListener("pagehide",e),t.addEventListener("beforeunload",e),d=!0}}(),c.push(function(t){var e,i,n,s,o=p();return{level:null!==(e=t.level)&&void 0!==e?e:"Information",category:t.category,eventName:t.eventName,componentOrWidget:t.componentOrWidget,path:null!==(i=t.path)&&void 0!==i?i:o?f(o):void 0,url:null!==(n=t.url)&&void 0!==n?n:null==o||null===(s=o.location)||void 0===s?void 0:s.href,sessionId:t.sessionId,requestId:t.requestId,data:t.data}}(t)),c.length>=10?v():g())}var b,x,w,M={logEvent:y,logError:function(t){var e;y(a(a({},t),{},{level:null!==(e=t.level)&&void 0!==e?e:"Error"}))},flush:v};function S(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function C(t,e){return-1!==t.indexOf(e,t.length-e.length)}i(8598),i(4864),i(8781),i(1761),i(5440),i(1392),t.fn.extend({closest_descendent:function(e){for(var i=t(),n=this;n.length&&!(i=n.filter(e)).length;)n=n.children();return i.first()}}),e()(function(){var t=document.querySelectorAll(".expanded-block [data-minimize], .search-control-block [data-minimize], .ifeed-block [data-minimize]");t.length>0&&t.forEach(function(t){t.addEventListener("click",function(){var e=t.closest("details");if(null!=e){var i=e.querySelector(":scope > summary");e.removeAttribute("open"),S(e)||e.scrollIntoView(),null==i||i.focus()}})})}),e()(function(){var t=document.querySelectorAll(".teaser-block");t.length>0&&t.forEach(function(t){t.addEventListener("click",function(e){var i=t.querySelector("a.ignore-link-focus");null!=i&&(e.preventDefault(),e.ctrlKey||e.metaKey?window.open(i.href,"_blank"):window.location.href=i.href)})})}),e()(function(){var t=document.querySelectorAll(".search-control-block");t.length>0&&t.forEach(function(t){var e=t.querySelector('button[type="reset"]');null!=e&&e.addEventListener("click",function(){t.querySelectorAll("option[selected]").forEach(function(t){t.removeAttribute("selected")});var i=t.querySelector("[data-reset-status]"),n=e.dataset.resetMessage||"";null!=i&&n&&(i.textContent="",window.setTimeout(function(){i.textContent=n},50));var s=t.querySelector('input[type="search"]');null==s||s.focus()})})}),e()(function(){var t=document.getElementById("scroll-container"),e=document.querySelector("#scroll-container .grid");null!=t&&(e.addEventListener("scroll",function(){e.scrollHeight-e.scrollTop<=e.clientHeight+1?t.classList.add("at-bottom"):t.classList.remove("at-bottom")}),e.scrollHeight-e.scrollTop<=e.clientHeight+1?t.classList.add("at-bottom"):t.classList.remove("at-bottom"))}),function(){function t(){var t=document.getElementById("clear-search-filters");t&&t.addEventListener("click",function(){var e=t.closest("form");null==e||e.querySelectorAll("select").forEach(function(t){t.selectedIndex=0}),null==e||e.querySelectorAll('input[type="checkbox"]').forEach(function(t){t.checked=!1}
2)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}(),b=function(t){return t.Horizontal="horizontal",t.Vertical="vertical",t}({}),x=function(t){return t.Next="next",t.Previous="previous",t.Down="down",t}({}),null!==(w=document.querySelectorAll(".tabbed"))&&w.forEach(function(t){var e=t.querySelector("ul"),i=e.querySelectorAll("a"),n=t.querySelectorAll('[id^="section"]'),s=b.Horizontal,o=function(t,e){e.focus(),e.removeAttribute("tabindex"),e.setAttribute("aria-selected","true"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1");var s=Array.prototype.indexOf.call(i,e),o=Array.prototype.indexOf.call(i,t);n[o].hidden=!0,n[s].hidden=!1};e.setAttribute("role","tablist");var r=window.matchMedia("(max-width: 768px)");function a(t){t.matches?(s=b.Vertical,e.setAttribute("aria-orientation",b.Vertical)):(s=b.Horizontal,e.setAttribute("aria-orientation",b.Horizontal))}a(r),r.addEventListener("change",function(){return a(r)}),Array.prototype.forEach.call(i,function(t,r){t.setAttribute("role","tab"),t.setAttribute("id","tab"+(r+1)),t.setAttribute("tabindex","-1"),t.setAttribute("aria-controls",n[r].id),r>0&&t.setAttribute("aria-selected","false"),t.parentNode.setAttribute("role","presentation"),t.addEventListener("click",function(t){t.preventDefault();var i=e.querySelector('[aria-selected="true"]');t.currentTarget!==i&&o(i,t.currentTarget)}),t.addEventListener("keydown",function(t){var e,a=Array.prototype.indexOf.call(i,t.currentTarget),h=a;(e=s===b.Horizontal?"ArrowLeft"===t.key?x.Previous:"ArrowRight"===t.key?x.Next:"ArrowDown"===t.key?x.Down:null:"ArrowUp"===t.key?x.Previous:"ArrowDown"===t.key?x.Next:"ArrowRight"===t.key?x.Down:null)===x.Next?(h=a+1)>i.length-1&&(h=0):e===x.Previous&&(h=a-1)<0&&(h=i.length-1),null!==e&&(t.preventDefault(),e===x.Down?n[r].focus():i[h]&&o(t.currentTarget,i[h]))})}),Array.prototype.forEach.call(n,function(t,e){t.setAttribute("role","tabpanel"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-labelledby",i[e].id),t.hidden=!0}),i[0].removeAttribute("tabindex"),i[0].setAttribute("aria-selected","true"),n[0].hidden=!1}),e()(function(){document.querySelectorAll(".language-select select").forEach(function(t){var e=!1;t.addEventListener("mousedown",function(){e=!0}),t.addEventListener("touchstart",function(){e=!0},{passive:!0}),t.addEventListener("keydown",function(e){"Enter"===e.key&&t.value&&(e.preventDefault(),window.location.href=t.value)}),t.addEventListener("change",function(){e&&t.value&&(window.location.href=t.value),e=!1}),t.addEventListener("blur",function(){e=!1,t.value=""})})}),i(2010),i(2041);var k,P,T,E=i(3481);function L(t){var e,i=E.markerClusterGroup();k={};for(var n=0;n<t.length;n++)if(!isNaN(t[n].position[0])&&!isNaN(t[n].position[1])&&0!=t[n].position[0]&&0!=t[n].position[1]){var s={lat:t[n].position[0],lng:t[n].position[1]};e=E.marker(s,{title:t[n].name});var o=E.icon({iconUrl:"/icons/visuell-identitet/leaflet/marker-icon.png",crossOrigin:!1});e.bindPopup(I(t[n])),e.options.alt="Klickbar markör "+t[n].name,e.options.title="Klickbar markör "+t[n].name,e.setIcon(o),k[t[n].id]=e,i.addLayer(e)}return i}function A(){P.addLayer(T);var t=[];T.eachLayer(function(e){e instanceof E.Marker&&t.push(e)});var e=E.featureGroup(t);if(P.fitBounds(e.getBounds()),null!=k){var i=document.querySelectorAll(".map-link");null!=i&&i.forEach(function(t){t.addEventListener("click",O)})}}function O(t){if(t.target instanceof Element){t.preventDefault();var e=document.getElementById("search-result-map");S(e)||e.scrollIntoView();var i=t.target.closest("[data-id]"),n=i?i.getAttribute("data-id"):null,s=k[n];null!=s&&T.zoomToShowLayer(s,function(){s.openPopup()})}}function I(t){var e='<div><a href="'+t.url+'"><h3>'+t.name+"</h3></a>";if(null!=t.address&&t.address.length>0){var i="address-label-"+t.id,n="address-link-"+t.id;e+="<div>",e+='<span id="'+i+'">Adress: </span > ',e+='<span aria-labelledby="'+i+" "+n+'" id="'+n+'" > '+t.address.replaceAll("$",", ")+"</span>",e+="</div>"}if(null!=t.phone&&t.phone.length>0){var s=t.phone[0],o="phone-label-".concat(0,"-").concat(t.id),r="phone-text-".concat(0,"-").concat(t.id);e+="<div>",e+='<span id="'+o+'">Telefon: </span>',e+='<span><a aria-labelledby="'+o+" "+r+'" id="'+r+'" href="tel:'+s+'">'+s+"</a></span>",e+="</div>"}return e}function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function N(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,z(n.key),n)}}function z(t){var e=function(t){if("object"!=D(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=D(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==D(e)?e:e+""}i(9389),i(4709),i(7142),window.addEventListener("markerPositionsChanged",function(t){var e=t.detail.markerPositions;null!=t.detail&&0!=e.length&&(null==T?(T=L(e),null!=P&&A()):0==e.length?T.clearLayers():(T.clearLayers(),T=L(e),null!=P&&A()))},!1),document.addEventListener("keydown",function(t){27===t.keyCode&&null!=P&&P.closePopup()}),document.addEventListener("DOMContentLoaded",function(){if(null!=document.getElementById("search-result-map")){var t=new E.Proj.CRS("EPSG:3006","+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",{resolutions:[4096,2048,1024,512,256,128,64,32,16,8,4,2,1,.5],origin:[-12e5,85e5],bounds:E.bounds([-12e5,85e5],[4305696,2994304])});P=new E.Map("search-result-map",{crs:t}),new E.TileLayer("/api/map-proxy/{z}/{x}/{y}",{maxZoom:13,minZoom:0,attribution:'&copy; <a href="http://www.lantmateriet.se/en/">Lantmäteriet</a> Topografisk Webbkarta Visning, CCB'}).addTo(P),null!=T&&A()}}),i(778);var j=function(){return t=function t(e){var i,n,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,s=void 0,(n=z(n="elements"))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s,this.elements=e,this.init()},e=[{key:"init",value:function(){this.getUserInfo()}},{key:"getFrontendLogger",value:function(){var t=window;return t.VgrFrontend&&t.VgrFrontend.logger}},{key:"getUserInfo",value:function(){var t=this,e=this.getMeta("SidID"),i="/accountinfo/getsession?pageid=".concat(encodeURIComponent(e));fetch(i,{method:"GET"}).then(function(n){return n.ok?n.json():(t.handleNonOkResponse(n,i,e),null)}).then(function(e){e&&e.auth&&t.updateUserInfo(e)}).catch(function(n){return t.handleUnexpectedError(n,i,e)})}},{key:"updateUserInfo",value:function(t){"StartPage"===document.body.dataset.pagetype&&this.updateWelcomeHeading(t),this.updateContactForm(t),this.updateElements(t)}},{key:"updateWelcomeHeading",value:function(t){var e=document.getElementById("h1id");e&&(e.textContent="".concat(t.lang," ").concat(t.firstname))}},{key:"updateContactForm",value:function(t){document.getElementById("page-footer-contact-form")&&(this.setInputValue("contact-form-name",t.name),this.setInputValue("contact-form-phone",t.telephonenr),this.setInputValue("contact-form-email",t.mail))}},{key:"setInputValue",value:function(t,e){var i=document.getElementById(t);i&&e&&(i.value=e)}}
2,{key:"updateElements",value:function(t){this.elements.forEach(function(e){var i=e.querySelectorAll(".intra-header-content__links"),n=e.querySelectorAll(".intra-header-content__notLoggedInfo"),s=e.querySelectorAll(".intra-header-content__personlink"),o=e.querySelectorAll(".intra-header-content__personlink span"),r=e.querySelectorAll(".intra-header-content__profileimage"),a=e.querySelectorAll(".intra-header-content__img");i.forEach(function(t){return t.removeAttribute("style")}),n.forEach(function(t){return t.setAttribute("style","display: none")}),t.link&&s.forEach(function(e){return e.setAttribute("href",t.link)}),t.name&&o.forEach(function(e){return e.textContent=t.name}),t.photo&&(r.forEach(function(e){e.setAttribute("src",t.photo),e.setAttribute("aria-label","Länk till din profil i Delve")}),a.forEach(function(e){return e.setAttribute("href",t.link)}))})}},{key:"handleNonOkResponse",value:function(t,e,i){var n=this.getFrontendLogger();n&&"function"==typeof n.logError&&n.logError({category:"top-personalization",eventName:"session-request-non-ok-response",componentOrWidget:"TopBarInfo",url:e,data:{pageId:i,status:t.status,url:e}}),console.error("Error fetching user info:",{status:t.status,url:e,pageId:i}),alert("Could not load user information. Please try again later.")}},{key:"handleUnexpectedError",value:function(t,e,i){var n=this.getFrontendLogger();n&&"function"==typeof n.logError&&n.logError({category:"top-personalization",eventName:"session-request-failed",componentOrWidget:"TopBarInfo",url:e,data:{pageId:i,status:t&&t.status,url:e,name:t&&t.name,message:t&&t.message}}),console.error("Error fetching user info:",t),alert("Could not load user information. Please try again later.")}},{key:"getMeta",value:function(t){var e=document.querySelector('meta[name="'.concat(t,'"]'));return e&&e.getAttribute("content")||""}}],e&&N(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}(),R=document.querySelectorAll(".intra-header-content__person-wrapper");if(R.length&&new j(R),i(113),i(3418),"intranet"===document.body.getAttribute("data-theme")){var G=document.getElementById("dropdown-btn"),B=document.getElementById("dropdown-list"),H=Array.from(B.querySelectorAll(".megamenu__department__dropdown-item")),F=-1,W="Välj förvaltning",q=(window.location.href.replace(/\/$/,""),localStorage.getItem("selectedDropdownText")),U=H.find(function(t){return t.hasAttribute("selected")});if(U){var Z,Y=null===(Z=U.textContent)||void 0===Z?void 0:Z.trim();q!==Y&&localStorage.setItem("selectedDropdownText",Y||""),q=Y}else localStorage.removeItem("selectedDropdownText"),q=W;var V=G.querySelector("span");V&&(V.textContent=q||W);var X=function(t){var e,i=(null===(e=t.textContent)||void 0===e?void 0:e.trim())||W,n=t.getAttribute("data-url");V&&(V.textContent=i),i!==W?localStorage.setItem("selectedDropdownText",i):localStorage.removeItem("selectedDropdownText"),n&&(window.location.href=n),B.classList.remove("show")};G.addEventListener("click",function(){var t;B.classList.toggle("show"),B.classList.contains("show")&&(F=-1,null===(t=H[0])||void 0===t||t.focus())}),H.forEach(function(t){t.addEventListener("click",function(){return X(t)})}),document.addEventListener("click",function(t){G.contains(t.target)||B.contains(t.target)||B.classList.remove("show")}),document.addEventListener("keydown",function(t){B.classList.contains("show")&&("ArrowDown"===t.key?(t.preventDefault(),F=(F+1)%H.length):"ArrowUp"===t.key?(t.preventDefault(),F=(F-1+H.length)%H.length):"Enter"===t.key&&F>=0?(t.preventDefault(),X(H[F])):"Escape"===t.key&&(t.preventDefault(),B.classList.remove("show")),H.forEach(function(t,e){e===F?(t.classList.add("selected"),t.focus()):t.classList.remove("selected")}))})}function K(t){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K(t)}function $(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,J(n.key),n)}}function J(t){var e=function(t){if("object"!=K(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=K(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==K(e)?e:e+""}var Q=function(){return t=function t(e){var i,n,s;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i=this,s=void 0,(n=J(n="button"))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s;var o=document.getElementById(e);o?(this.button=o,this.init()):console.warn('Element with id "'.concat(e,'" not found.'))},(e=[{key:"init",value:function(){var t=this;window.onscroll=function(){return t.scrollFunction()},this.button.addEventListener("click",function(){return t.topFunction()})}},{key:"scrollFunction",value:function(){document.body.scrollTop>100||document.documentElement.scrollTop>100?this.button.style.display="flex":this.button.style.display="none"}},{key:"topFunction",value:function(){window.scrollTo({top:0,behavior:"smooth"})}}])&&$(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();document.addEventListener("DOMContentLoaded",function(){null!=document.querySelector(".scrollToTop")&&null!=document.querySelector(".scrollToTop")&&new Q("scrollToTop")}),i(8408);var tt=document.documentElement.getAttribute("lang"),et="sv"===tt?"Föregående":"Previous",it="sv"===tt?"Nästa":"Next";function nt(){var t=document.querySelector(".search-result__pagination ul"),e=document.querySelectorAll(".vgr-serviceportal-feed, .searchresultpagelistblock");if(!(e.length>0)){var i=document.querySelector("input.totalHits"),n=parseInt((null==i?void 0:i.value)||"0"),s=Math.max(1,Math.ceil(n/10)),o=Math.min(parseInt(new URLSearchParams(window.location.search).get("p")||"1"),s);if(isNaN(n)||isNaN(o)||o<=0)console.error("Ogiltig data för totalHits eller aktuell sida");else if(n<=10)t&&(t.innerHTML="");else{var r=document.querySelectorAll('input[type="hidden"].AdditionalSearchParams, input[type="hidden"].projectsearch, input[type="hidden"].sort'),a=document.querySelectorAll('input[type="hidden"].Query'),h=new URLSearchParams(window.location.search),l=function(t,e,
2i,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l=document.createElement("li");l.className="page-item ".concat(s?"active":"");var c=document.createElement("a");return c.className="ignore-link-focus page-link",h.set("p",t.toString()),null==r||r.forEach(function(t){var e=t;e.name&&e.value&&h.set(e.name,e.value)}),null==a||a.forEach(function(t){var e=t;e.name&&e.value&&h.set(e.name,e.value)}),c.href="?".concat(h.toString()),o?c.innerHTML=i?o+'<span class="desktop-only-text">'.concat(et,"</span>"):'<span class="desktop-only-text">'.concat(it,"</span>")+o:c.textContent=e,l.appendChild(c),l};if(t){t.innerHTML="";var c=l(o-1,0===e.length?et:"",!0,!1,!1,'\n        <svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none">\n            <path d="M4.2644 7.19313C3.81812 7.63941 3.81812 8.36416 4.2644 8.81044L11.1192 15.6653C11.5655 16.1116 12.2903 16.1116 12.7366 15.6653C13.1828 15.219 13.1828 14.4943 12.7366 14.048L6.68859 8L12.733 1.95202C13.1793 1.50575 13.1793 0.780989 12.733 0.334709C12.2867 -0.11157 11.562 -0.11157 11.1157 0.334709L4.26083 7.18956L4.2644 7.19313Z" fill="#005B89"/>\n        </svg>'),u=c.querySelector("a");1===o?(c.classList.add("disabled"),null==u||u.setAttribute("aria-disabled","true"),null==u||u.setAttribute("tabindex","-1")):(c.classList.remove("disabled"),null==u||u.removeAttribute("aria-disabled"),null==u||u.setAttribute("tabindex","0")),t.appendChild(c);var d=l(1,"1",!1,!1,1===o);t.appendChild(d),o>3&&t.appendChild(b());for(var p=Math.max(2,o-2),f=Math.min(s-1,o+2),m=p;m<=f;m++){var g=l(m,m.toString(),!1,!1,o===m);t.appendChild(g)}o<s-2&&t.appendChild(b());var v=l(s,s.toString(),!1,!1,o===s);t.appendChild(v);var _=l(o+1,0===e.length?it:"",!1,!0,!1,'\n        <svg xmlns="http://www.w3.org/2000/svg" width="17" height="16" viewBox="0 0 17 16" fill="none">\n            <path d="M12.7366 7.19313C13.1828 7.63941 13.1828 8.36416 12.7366 8.81044L5.88171 15.6653C5.43543 16.1116 4.71068 16.1116 4.2644 15.6653C3.81812 15.219 3.81812 14.4943 4.2644 14.048L10.3124 8L4.26797 1.95202C3.82169 1.50575 3.82169 0.780988 4.26797 0.334709C4.71425 -0.11157 5.439 -0.11157 5.88528 0.334709L12.7401 7.18956L12.7366 7.19313Z" fill="#005B89"/>\n        </svg>'),y=_.querySelector("a");o===s?(_.classList.add("disabled"),null==y||y.setAttribute("aria-disabled","true"),null==y||y.setAttribute("tabindex","-1")):(_.classList.remove("disabled"),null==y||y.removeAttribute("aria-disabled"),null==y||y.setAttribute("tabindex","0")),t.appendChild(_)}}}function b(){var t=document.createElement("li");return t.className="page-item disabled",t.innerHTML='<span class="ignore-link-focus page-link">...</span>',t}}"loading"!==document.readyState?nt():document.addEventListener("DOMContentLoaded",function(){nt()}),i(4550);const st=document.querySelector('input[name="data-search-action-alla"]')?.value,ot=document.querySelector('input[name="data-search-action-webb"]')?.value,rt=document.querySelector('input[name="data-search-action-document"]')?.value,at=document.querySelector('input[name="data-search-action-person"]')?.value,ht=document.querySelector('input[name="data-search-action-organisation"]')?.value,lt=["ArrowUp","ArrowDown","Escape","Esc","Tab"],ct="true"===document.body.getAttribute("data-internal"),ut="true"===document.body.getAttribute("data-internal-request");let dt=location.pathname;const pt=document.documentElement.getAttribute("lang");let ft=!0;["nu","su","sas","skas","narhalsan"].forEach(t=>{C(dt,t)&&(dt=dt.substring(0,dt.lastIndexOf("/")))}),C(dt,"/")||(dt+="/");const mt=Ct(),gt=St()||(ct?"VGIntraProd":"VGRegionvgregion");let vt=!1,_t="",yt="";function bt(t,i,n,s,o,r){let a=!1,h=null,l=!1,c=!1,u="hidden"===document.visibilityState,d=!1,p=!1;window.addEventListener("blur",()=>{const e=document.activeElement===t,n=!i.classList.contains("visually-hidden");d=!0,c=e,p=p||e&&n}),window.addEventListener("focus",()=>{p&&i.classList.contains("visually-hidden")&&(At(i,!0),a=!0),c&&(a=!0),d=!1,p=!1,c=!1}),document.addEventListener("visibilitychange",()=>{if("hidden"===document.visibilityState){const e=document.activeElement===t,n=!i.classList.contains("visually-hidden");return d=!0,l=e,void(p=p||e&&n)}if("visible"===document.visibilityState&&u)return a=!0,u=!1,d=!1,p=!1,void(l=!1);"visible"===document.visibilityState&&p&&i.classList.contains("visually-hidden")&&(At(i,!0),a=!0),"visible"===document.visibilityState&&l&&(a=!0),d=!1,p=!1,l=!1}),t.addEventListener("keyup",e=>
2{lt.includes(e.key)?function(t,e,i){e.querySelectorAll("a").forEach(t=>{t.addEventListener("keydown",t=>wt(t,e,i))}),wt(t,e,i)}(e,i,t):(a=!1,clearTimeout(h),h=setTimeout(()=>{xt(t,i,s,o,r,n)},300))}),t.addEventListener("focusin",e=>{a?a=!1:i.classList.contains("visually-hidden")&&xt(t,i,s,o,r,n)}),t.addEventListener("focusout",n=>{if(d||"hidden"===document.visibilityState)vt=!1;else{if(a=!1,!vt){const s=n.relatedTarget;null==s?setTimeout(()=>{document.hasFocus()&&e()(document.activeElement).parents("#"+i.id).length<1&&document.activeElement!==t&&At(i,!1)},0):e()(s).parents("#"+i.id).length<1&&At(i,!1)}vt=!1}}),document.addEventListener("mousedown",t=>{vt=!0}),document.addEventListener("click",h=>{const l=h.target;l===t?i.classList.contains("visually-hidden")&&(a=!1,xt(t,i,s,o,r,n)):e()(l).parents("#"+i.id).length<1&&At(i,!1),vt=!1})}function xt(t,e,i,n,s,o){const r=t.value.trim()||"*";"webb"===o||"sidor"===o?o="www":"verksamheter"===o?o="verksamhet":"personer"===o&&(o="person");const a=`/api/querycompletions/websearch/?q=${r}&s=${gt}&hsaids=${mt}&category=${o}&lang=${pt}`;fetch(a,{method:"GET",headers:{"Content-Type":"application/json"}}).then(t=>{if(!t.ok){const e=new Error(`Request failed with status ${t.status}`);throw e.status=t.status,e}return t.json()}).then(t=>{!function(t,e,i,n,s,o,r){n.innerHTML="",s.innerHTML="",document.querySelectorAll(".autocomplete__section").forEach(function(t){t.remove()});const a=St()||"VGIntraProd";Ct(),""!==t&&void 0!==t||(t="*");const h=o?"g-col-sm-12 ":"g-col-md-6 g-col-sm-12 ",l=0===e?.length?[]:JSON.parse(e).suggestions,c=l.filter(t=>"search_query"===t.category),u="alla"===r||"www"===r?l.filter(t=>"www"===t.category):[],d="alla"===r||"dokument"===r?l.filter(t=>"dokument"===t.category):[],p="alla"===r||"verksamhet"===r?l.filter(t=>"verksamhet"===t.category):[],f="alla"===r||"person"===r?l.filter(t=>"person"===t.category):[],m=window.innerWidth<768,g=o||m?2:"alla"===r?3:5;ft=o||"alla"===r;const v=0===u.length&&0===d.length&&0===p.length&&0===f.length;if(null===l||0===l.length||ft&&0===c.length&&v||!ft&&v)return void At(i,!1);const _=[{func:kt,data:c,parent:n,queryText:t,cssClass:h,hasHits:(c?.length??0)>0,isGlobalSearch:o},{func:Pt,data:u,parent:s,queryText:t,cssClass:h,nummerhits:g,hasHits:(u?.length??0)>0,scope:a},{func:Et,data:p,parent:s,queryText:t,cssClass:h,nummerhits:g,hasHits:(p?.length??0)>0,scope:a},{func:Tt,data:d,parent:s,queryText:t,cssClass:h,nummerhits:g,hasHits:(d?.length??0)>0,scope:a}];if(ut&&_.push({func:Lt,data:f,parent:s,queryText:t,cssClass:h,nummerhits:g,hasHits:(f?.length??0)>0,scope:a}),_.sort((t,e)=>Number(e.hasHits)-Number(t.hasHits)),_.forEach(t=>{t.hasHits&&t.func(t.data,t.parent,t.queryText,t.cssClass,t.nummerhits)}),"alla"===r&&function(t,e,i,n,s){return s?0===t.length||0===e.length||0===i.length||0===n.length:0===t.length||0===e.length||0===i.length}(u,d,p,f,ut)){var y=document.createElement("section");y.className=h+"autocomplete-resultheader autocomplete__section",s.appendChild(y);var b=ot+"?q=*"+(yt+_t),x=rt+"?q=*"+(yt+_t),w=ht+"?q=*"+(yt+_t),M=at+"?q=*"+(yt+_t),S=document.createElement("ul");S.className="autocomplete__list",y.appendChild(S);var C=[];ot&&C.push({text:"en"===pt?"All pages":"Alla sidor",href:b,className:"autocomplete__item--web",data:u}),ht&&C.push({text:"en"===pt?"All organizations":"Alla verksamheter",icon:"🏢",href:w,className:"autocomplete__item--organisation",data:p}),rt&&C.push({text:"en"===pt?"All documents":"Alla dokument",icon:"📄",href:x,className:"autocomplete__item--pdf",data:d}),ut&&at&&C.push({text:"en"===pt?"All persons":"Alla personer",icon:"👤",href:M,className:"autocomplete__item--person",data:f}),C.forEach(function(t){if(0===t.data.length){var e=document.createElement("li");e.classList.add("autocomplete__item","autocomplete__item--image","autocomplete__no-result-item"),e.classList.add(t.className),S.appendChild(e);var i=document.createElement("a");i.className="autocomplete__moreinfo",i.href=t.href,i.innerHTML=t.text,e.appendChild(i)}})}"alla"!==r&&s.classList.add("autocomplete-result__bottom-section--single"),v&&document.getElementsByClassName("autocomplete-resultheader")[0].classList.add("autocomplete-resultheader--br"),At(i,!0)}(r,t,e,i,n,s,o)}).catch(t=>{const e=window.VgrFrontend&&window.VgrFrontend.logger;e&&"function"==typeof e.logError&&e.logError({category:"autocomplete",eventName:"querycompletion-request-failed",componentOrWidget:"AutocompleteSearch",url:a,data:{status:t&&t.status,name:t&&t.name,message:t&&t.message}}),console.error("Autocomplete fetch error:",t)})}function wt(t,i,n){let s=Array.from(i.querySelectorAll("a"));switch(t.key){case"ArrowDown":case"Down":{t.preventDefault();const e=s.indexOf(t.target)+1;s[e===s.length?0:e]?.focus(),e===s.length&&setTimeout(function(){const t=n.getBoundingClientRect().top+window.scrollY;window.scroll({top:t,behavior:"smooth"})},100)}break;case"ArrowUp":case"Up":{t.preventDefault();const e=s.indexOf(t.target)-1;-1===e?n.focus():s[e]?.focus()}break;case"Tab":if(t.shiftKey)s.indexOf(t.target)-1<0&&(t.preventDefault(),n.focus());else if(s.indexOf(t.target)+1===s.length){let t=e()(":focusable"),i=t.index(e()(n));t.eq(i).trigger("focus")}break;case"Escape":case"Esc":n.focus(),At(i,!1)}}function Mt(t){var e,i,n=decodeURIComponent(window.location.search.substring(1)).split("&");for(i=0;i<n.length;i++)if((e=n[i].split("="))[0].toLowerCase()===t.toLowerCase())return void 0===e[1]||e[1]}function St(){var t=Mt("scope"),e=document.querySelector('input[name="s"]').value;return t||(t=Mt("s")),""!=t&&null!=t||(t=e),t||(t=""),t}function Ct(){var t=Mt("hsaids"),e=document.querySelector('input[name="HsaIdCollection"]').value;return t||(t=Mt("HsaIdCollection")),""!=t&&null!=t||(t=e),t||(t=""),t}function kt(t,i,n){if(!ft)return;let s=window.location.pathname;if(n&&(s=st||ot),s+="?qc=true&q=",!(null!=(i=document.querySelector("#"+i.id))&&null!=i.children&&i.children.length>0)){var o="en"===pt?"Search suggestions":"Sökordsförslag",r=e()("<section>",{html:`<h2 class="autocomplete__header autocomplete__header-suggestions">${o}</h2>`}).appendTo(i);r.addClass("autocomplete-resultheader");var a=e()(r).append("<ul id='searchquery-list' class='autocomplete__list' ></ul>").find("#searchquery-list");t.length<1||e().each(t,function(i){var n="autocomplete__item autocomplete__item--search "+(null!=t[i].format&&null!=t[i].format?"file "+t[i].format.substring(t[i].format.lastIndexOf(".")+1):"autocomplete__item autocomplete__item--search file"),o=e()("<li/>").appendTo(a);o.addClass(n);var r=e()("<a>",{html:t[i].label_hl,href:s+t[i].label+yt+_t}).appendTo(o);r.addClass("autocomplete__link"),r.attr("aria-label",t[i].label+" inom sökordsförslag"),(null!=t[i].revisiondate||null!=t[i].scopelabel)&&e()("<p>",{html:(null!=t[i].revisiondate?t[i].revisiondate:"")+(null!=t[i].scopelabel?" - "+t[i].scopelabel:""),class:"autocomplete__description"}).appendTo(o)})}}function Pt(t,i,n,s,o,r=""){if(ot&&!(null!=(i=document.querySelector("#"+i.id))&&null!=i.children&&i.children.length>3)){var a="en"===pt?"Pages":"Sidor",h=e()("<section>",{html:`<h2 class="autocomplete__header autocomplete__header--dark">${a}</h2>`}).appendTo(i),l=h.addClass(s+"autocomplete-resultheader autocomplete__section"),c=e()(h).append("<ul id='www-list' class='autocomplete__list' ></ul>").find("#www-list");if(!(t.length<1)){r&&(yt="&s="+r),e().each(t,function(i){if(!(i>=o)){var n=e()("<li/>").appendTo(c);n.addClass("autocomplete__item autocomplete__item--image autocomplete__item--web image web");var s=e()("<div>",{class:"autocomplete__content-wrapper"}).appendTo(n),r=e()("<a>",{html:t[i].label_hl??t[i].label,href:t[i].url}).appendTo(s);r.addClass("autocomplete__link"),r.attr("aria-label",t[i].label+" inom Webb"),(null!=t[i].revisiondate||null!=t[i].scopelabel)&&e()("<p>",{html:(null!=t[i].revisiondate?t[i].revisiondate:"")+(null!=t[i].scopelabel?" - "+t[i].scopelabel:""),class:"autocomplete__description"}).appendTo(s)}});var u=ot+"?q="+n+yt+_t;u.endsWith("/")&&(u=u.slice(0,-1));var d=e()("<a>",{href:u}).append("en"===pt?"Show more pages":"Visa fler sidor");d.addClass("autocomplete__moreinfo"),d.appendTo(l)}}}function Tt(t,i,n,s,o,r=""){if(rt&&!(null!=(i=document.querySelector("#"+i.id))&&null!=i.children&&i.children.length>3)){var a="en"===pt?"Documents":"Dokument",h=e()("<section>",{html:`<h2 class="autocomplete__header autocomplete__header--dark">${a}</h2>`}).appendTo(i),l=h.addClass(s+"autocomplete-resultheader autocomplete__section dokument"),c=e()(h).append("<ul id='dokument-list' class='autocomplete__list'></ul>").find("#dokument-list");if(!(t.length<1)){r&&(yt="&s="+r),e().each(t,function(i){if(!(i>=o)){var n=null!=t[i].format&&null!=t[i].format?"file "+t[i].format.substring(t[i].format.lastIndexOf(".")+1):"file",s=e()("<li/>").appendTo(c);s.addClass(n+" autocomplete__item autocomplete__item--file autocomplete__item--pdf");var r=e()("<div>",{class:"autocomplete__content-wrapper"}).appendTo(s),a=e()("<a>",{html:t[i].label_hl??t[i].label,href:t[i].url}).appendTo(r);a.addClass("autocomplete__link"),a.attr("aria-label",t[i].label+" inom dokument"),(null!=t[i].revisiondate||null!=t[i].scopelabel)&&e()("<p>",{html:(null!=t[i].revisiondate?t[i].revisiondate:"")+(null!=t[i].scopelabel?" • "+t[i].scopelabel:""),class:"autocomplete__description"}).appendTo(r)}});var u=rt+"?q="+n+yt+_t;
2u.endsWith("/")&&(u=u.slice(0,-1)),e()("<a>",{html:"en"===pt?"Show more documents":"Visa fler dokument",href:u}).addClass("autocomplete__moreinfo").appendTo(l)}}}function Et(t,i,n,s,o,r=""){if(ht&&!(null!=(i=document.querySelector("#"+i.id))&&null!=i.children&&i.children.length>3)){var a="en"===pt?"Organizations":"Verksamheter",h=e()("<section>",{html:`<h2 class="autocomplete__header autocomplete__header--dark">${a}</h2>`}).appendTo(i),l=h.addClass(s+"autocomplete-resultheader autocomplete__section verksamhet"),c=e()(h).append("<ul id='verksamhet-list' class='autocomplete__list'></ul>").find("#verksamhet-list");if(!(t.length<1)){r&&(yt="&s="+r),e().each(t,function(i){if(!(i>=o)){var n=e()("<li/>").appendTo(c);n.addClass("autocomplete__item autocomplete__item--image autocomplete__item--organisation image business");var s;s=void 0!==t[i].hsaIdentity?ht+"?hsaIdentity="+t[i].hsaIdentity+yt+_t:ht+t[i].hsaIdentity;var r=e()("<div>",{class:"autocomplete__content-wrapper"}).appendTo(n),a=e()("<a>",{html:t[i].label_hl??t[i].label,href:s}).appendTo(r);a.attr("aria-label",t[i].label+" inom verksamheter"),a.addClass("autocomplete__link"),null!=t[i].phonenumber&&e()("<p>",{class:"autocomplete__description",html:t[i].phonenumber}).appendTo(r)}});var u=ht+"?q="+n+yt+_t;u.endsWith("/")&&(u=u.slice(0,-1)),e()("<a>",{html:"en"===pt?"Show more organizations":"Visa fler verksamheter",href:u}).addClass("autocomplete__moreinfo").appendTo(l)}}}function Lt(t,i,n,s,o,r=""){if(at&&!(null!=(i=document.querySelector("#"+i.id))&&null!=i.children&&i.children.length>3)){var a="en"===pt?"Persons":"Personer",h=e()("<section>",{html:`<h2 class="autocomplete__header autocomplete__header--dark">${a}</h2>`}).appendTo(i),l=h.addClass(s+"autocomplete-resultheader autocomplete__section person"),c=e()(h).append("<ul id='person-list' class='autocomplete__list' ></ul>").find("#person-list");if(!(t.length<1)){r&&(yt="&s="+r),e().each(t,function(i){if(!(i>=o)){var n=e()("<li/>").appendTo(c);n.addClass("autocomplete__item autocomplete__item--image autocomplete__item--person image person");var s;s=void 0!==t[i].vgrid?at+"?vgrid="+t[i].vgrid+yt+_t:at+"?vgrid="+t[i].vgrid;var r=e()("<div>",{class:"autocomplete__content-wrapper"}).appendTo(n),a=e()("<a>",{html:t[i].label_hl??t[i].label,href:s}).appendTo(r);a.addClass("autocomplete__link"),a.attr("aria-label",t[i].label+" inom person"),null!=t[i].email&&e()("<p>",{class:"autocomplete__description",html:t[i].email}).appendTo(r)}});var u=at+"?q="+n+yt+_t;u.endsWith("/")&&(u=u.slice(0,-1)),e()("<a>",{html:"en"===pt?"Show more persons":"Visa fler personer",href:u}).addClass("autocomplete__moreinfo").appendTo(l)}}}function At(t,i){i?(t.classList.remove("hidden","visually-hidden"),t.setAttribute("aria-hidden","false"),t.querySelectorAll("a").forEach(t=>t.setAttribute("tabindex","0"))):(e()(t).addClass("hidden"),t.classList.add("visually-hidden"),t.setAttribute("aria-hidden","true"),t.querySelectorAll("a").forEach(t=>t.setAttribute("tabindex","-1")))}function Ot(t){var e="true"===document.body.getAttribute("data-useautocomplete"),i="true"===document.body.getAttribute("data-internal");if(e&&i){var n={desktop:{searchFieldSelector:".global-search",resultContainerSelector:".autocomplete-result",searchButtonSelector:".search__button",topDivSelector:".result-topdiv",bottomDivSelector:".result-bottomdiv"},mobile:{searchFieldSelector:".mobile-search__field",resultContainerSelector:"#mobile-autocomplete-result",searchButtonSelector:".mobile-search__button",topDivSelector:".mobile-result-topdiv",bottomDivSelector:".mobile-result-bottomdiv"}}[t],s=n.searchFieldSelector,o=n.resultContainerSelector,r=(n.searchButtonSelector,n.topDivSelector),a=n.bottomDivSelector,h=document.querySelector(s),l=h.closest("form"),c=null==l?void 0:l.querySelector(o),u=null==l?void 0:l.querySelector(r),d=null==l?void 0:l.querySelector(a);u.className="autocomplete-result__top-section",d.className="autocomplete-result__bottom-section grid",c&&u&&d&&c.append(u,d),bt(h,c,"alla",u,d,!0)}}function It(t){return It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},It(t)}function Dt(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,zt(n.key),n)}}function Nt(t,e,i){return(e=zt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function zt(t){var e=function(t){if("object"!=It(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=It(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==It(e)?e:e+""}gt&&(yt="&s="+gt),mt&&(_t="&hsaids="+mt),"loading"!==document.readyState?Ot("desktop"):document.addEventListener("DOMContentLoaded",function(){Ot("desktop")}),i(4423),i(4782),i(1699),i(3296),i(7208);var jt=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Nt(this,"selectedFilters",[]),Nt(this,"scopeChangePending",!1),this._init()},e=[{key:"_init",value:function(){this._setInitialDropdownValuesFromURL(),this._updateSelectedFilters(),this._renderSelectedFilters(),this._filterOptionReset(),this._setupTabs(),this._adjustTabMenu(),this._setupFilterDropdowns(),this._setupScopeDropdowns(),this._handleSorting(),this._setupEscCloseForDetails(),this._setupSearchFormSubmit(),this._setupHeadingExpandLinks()}},{key:"_filterOptionReset",value:function(){var t=this,e=document.querySelector(".reset");null==e||e.addEventListener("click",function(){return t._resetAllFilters(!0)})}},{key:"_resetAllFilters",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=document.querySelectorAll(".search-page__filter-select");e.forEach(function(t){return t.value=""});var i=new URL(window.location.href);e.forEach(function(t){var e=t.name||t.getAttribute("data-name");e&&e.split(",").forEach(function(t){return i.searchParams.delete(t)})}),this._updateSelectedFilters();var n=document.querySelector(".search-result__section-container");if(n){var s=n.querySelector(".search-page__active-filters");s&&(s.style.display="none")}t?window.location.href=i.toString():this._renderSelectedFilters()}},{key:"_setupTabs",value:function(){var t=this;document.querySelectorAll(".info-switcher").forEach(function(e){var i=Array.from(e.querySelectorAll(".tab-menu__item")),n=Array.from(e.querySelectorAll(".info-switcher__content"));
2i.forEach(function(t){t.setAttribute("tabindex",t.classList.contains("active")?"0":"-1"),t.setAttribute("aria-selected",t.classList.contains("active")?"true":"false")}),n.forEach(function(t){t.setAttribute("aria-hidden",t.classList.contains("active")?"false":"true"),t.classList.contains("active")?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")});var s=i.find(function(t){return t.classList.contains("active")});i.find(function(t){return t.classList.contains("active")?t.classList.add("tab-menu__item--active"):t.classList.remove("tab-menu__item--active")}),!s&&i.length>0&&t._activateTab(i[0],i,n),i.forEach(function(e){e.addEventListener("click",function(s){s.preventDefault(),t._handleTabClick(e,i,n)}),e.addEventListener("keydown",function(s){switch(s.key){case"ArrowRight":case"ArrowDown":s.preventDefault(),t._focusNextTab(e,i);break;case"ArrowLeft":case"ArrowUp":s.preventDefault(),t._focusPreviousTab(e,i);break;case"Home":s.preventDefault(),i[0].focus();break;case"End":s.preventDefault(),i[i.length-1].focus();break;case"Enter":case" ":s.preventDefault(),t._handleTabClick(e,i,n)}})})})}},{key:"_activateTab",value:function(t,e,i){var n;e.forEach(function(t){t.classList.remove("active"),t.classList.remove("tab-menu__item--active");var e=t.querySelector("svg");e&&e.classList.remove("tab-menu__icon--active"),t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1")}),i.forEach(function(t){t.classList.remove("active"),t.setAttribute("aria-hidden","true"),t.removeAttribute("tabindex")}),t.classList.add("active"),t.classList.add("tab-menu__item--active");var s=t.querySelector("svg");s&&s.classList.add("tab-menu__icon--active"),t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0");var o=null===(n=t.dataset.target)||void 0===n?void 0:n.replace("#",""),r=i.find(function(t){return t.id===o});r&&(r.classList.add("active"),r.setAttribute("aria-hidden","false"),r.setAttribute("tabindex","0")),t.focus({preventScroll:!0})}},{key:"_handleTabClick",value:function(t,e,i){var n=window.scrollY;this._activateTab(t,e,i),window.innerWidth>768&&window.scrollTo({top:n}),t.focus({preventScroll:!0})}},{key:"_focusNextTab",value:function(t,e){var i=e.indexOf(t);e[(i+1)%e.length].focus()}},{key:"_focusPreviousTab",value:function(t,e){var i=e.indexOf(t);e[(i-1+e.length)%e.length].focus()}},{key:"_setupHeadingExpandLinks",value:function(){document.querySelectorAll("a.expand-link[data-target-id]").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault();var i=t.getAttribute("data-target-id");if(i){var n=document.getElementById(i);n&&(n.open=!n.open)}})})}},{key:"_setupEscCloseForDetails",value:function(){document.addEventListener("keydown",function(t){if("Escape"===t.key){var e,i=null===(e=document.activeElement)||void 0===e?void 0:e.closest("details[open]");if(i){i.open=!1;var n=i.querySelector("summary");null==n||n.focus()}}})}},{key:"_setupFilterDropdowns",value:function(){document.querySelectorAll(".search-page__filter-select").forEach(function(t){"scope-select"!==t.id&&t.addEventListener("change",function(t){var e=t.target,i=e.name||e.getAttribute("data-name"),n=i?i.split(","):[],s=new URL(window.location.href);n.forEach(function(t){e.value?s.searchParams.set(t,e.value):s.searchParams.delete(t)}),window.location.href=s.toString()})})}},{key:"_setupScopeDropdowns",value:function(){var t=this,e=document.querySelector("#scope-select");e&&e.addEventListener("change",function(){t.scopeChangePending=!0,e.classList.add("pending-scope-change")})}},{key:"_adjustTabMenu",value:function(){var t=document.querySelector("#tabMenu"),e=document.querySelector("#moreMenuItem"),i=document.querySelector("#moreMenuDropdown"),n=null==e?void 0:e.querySelector("details"),s=null==e?void 0:e.querySelector(".tab-menu__arrow"),o=null==e?void 0:e.querySelector(".tab-menu__title");if(t&&e&&i&&n){var r,a=function(){var n;Array.from(i.children).forEach(function(i){return t.insertBefore(i,e)}),i.innerHTML="";var s=Array.from(t.querySelectorAll(".tab-menu__item:not(.tab-menu__item--more)"));s.forEach(function(t){t.classList.remove("tab-menu__item--moved")});var o=s.find(function(t){return t.hasAttribute("data-active")}),r=(null===(n=t.parentElement)||void 0===n?void 0:n.clientWidth)||t.clientWidth;if(window.innerWidth<=768)if(s.length<=5)e.style.display="none";else{var a=s.slice(0,5),h=s.filter(function(t){return!a.includes(t)});if(o&&!a.includes(o)){var l=a[4];a[4]=o,(h=h.filter(function(t){return t!==o})).unshift(l),s=a}
2h.forEach(function(t){t.classList.add("tab-menu__item--moved"),i.appendChild(t),t.style.display="flex"}),e.style.display=""}else if(e.style.display="none",!(t.scrollWidth<=r)){for(var c=0,u=function(){c++;for(var n=null,a=s.length-1;a>=0;a--)if(s[a]!==o){n=s[a];break}if(n&&(n.classList.add("tab-menu__item--moved"),i.prepend(n),s=s.filter(function(t){return t!==n})),e.style.display="",t.scrollWidth<=r)return 1};s.length>0&&t.scrollWidth>r&&c<20&&!u(););0===i.children.length&&(e.style.display="none")}};a(),window.addEventListener("resize",function(){clearTimeout(r),r=window.setTimeout(a,200)}),document.addEventListener("click",function(t){var e=t.target;n.open&&e&&!n.contains(e)&&(n.open=!1)}),n.addEventListener("toggle",function(){window.innerWidth<=768&&null!=o&&(o.textContent=n.open?"Stäng Fler…":"Fler…"),i.classList.toggle("tab-menu__dropdown--open",n.open),null==s||s.classList.toggle("tab-menu__arrow--open",n.open),n.classList.toggle("tab-menu__details--open",n.open)})}}},{key:"_setupSearchFormSubmit",value:function(){var t=document.querySelector(".search-page__form");t&&t.addEventListener("submit",this._onSubmit.bind(this))}},{key:"_onSubmit",value:function(t){t.preventDefault();var e=new URL(window.location.href),i=document.querySelector("#search"),n=new URL(window.location.href).searchParams.get("q")||"",s=Array.from(e.searchParams.keys());e.searchParams.get("s"),e.searchParams.get("hsaids"),((null==i?void 0:i.value)!==n||null==this.selectedFilters||0===this.selectedFilters.length||this.scopeChangePending)&&s.forEach(function(t){"s"!==t&&"hsaids"!==t&&e.searchParams.delete(t)}),this._applyScopeToURL(e),this._applyFiltersToURL(e),this._applySearchQueryToURL(e),this.scopeChangePending=!1;var o=document.querySelector("#scope-select");o&&o.classList.remove("pending-scope-change"),window.location.href=e.toString()}},{key:"_applySearchQueryToURL",value:function(t){var e=document.querySelector("#search");e&&(e.value?t.searchParams.set("q",e.value):t.searchParams.delete("q"))}},{key:"_applyScopeToURL",value:function(t){var e=document.querySelector("#scope-select");if(e){var i=e.selectedOptions[0];t.searchParams.set("s",e.value),i.selected=!0,t.searchParams.delete("hsaids");var n=null==i?void 0:i.dataset.hsaid;n&&t.searchParams.set("hsaids",n)}}},{key:"_applyFiltersToURL",value:function(t){document.querySelectorAll(".search-page__filter-select").forEach(function(e){var i=e.name;i&&(Array.from(e.options).find(function(t){return t.value===e.value||t.text===e.value}),e.value&&t.searchParams.set(i,e.value))})}},{key:"_initFiltersFromURL",value:function(t){document.querySelectorAll(".search-page__filter-select").forEach(function(e){var i=e.name;if(i){var n=t.searchParams.get(i);if(n){var s=Array.from(e.options).find(function(t){return t.value===n||t.text===n});s&&(s.selected=!0,s.value=n)}}})}},{key:"_setInitialDropdownValuesFromURL",value:function(){var t=new URL(window.location.href);this._initScopeFromURL(t),this._initFiltersFromURL(t)}},{key:"_initScopeFromURL",value:function(t){var e=document.querySelector("#scope-select"),i=document.querySelector('input[name="s"]'),n=document.querySelector('input[name="HsaIdCollection"]'),s=t.searchParams.get("s"),o=t.searchParams.get("hsaids");if(e&&e.options.length>0){var r=Array.from(e.options),a=!!s&&r.some(function(t){return t.value===s}),h=a?r.find(function(t){return t.value===s}):r[0];e.value=h.value,h.selected=!0;var l=h.value,c=h.dataset.hsaid;s&&!a&&(t.searchParams.set("s",l),c?t.searchParams.set("hsaids",c):t.searchParams.delete("hsaids"),window.location.href=t.toString())}else{var u=null==i?void 0:i.value,d=null==n?void 0:n.value,p=!1;u&&s!==u&&(t.searchParams.set("s",u),p=!0),d&&o!==d&&(t.searchParams.set("hsaids",d),p=!0),!d&&o&&(t.searchParams.delete("hsaids"),p=!0),p&&(window.location.href=t.toString())}}},{key:"_updateSelectedFilters",value:function(){var t=this;this.selectedFilters=[];var e=new URLSearchParams(window.location.search);document.querySelectorAll(".search-page__filter-select").forEach(function(i){var n,s=i,o=s.name||s.getAttribute("data-name")||"",r=Array.from(s.options).find(function(t){return t.selected}),a=e.get(o);r&&(r.value||a)&&t.selectedFilters.push({name:o,value:r.value,label:(null===(n=r.textContent)||void 0===n?void 0:n.trim())||r.value})})}},{key:"_renderSelectedFilters",value:function(){var t,e=this,i=document.querySelector(".search-result__section-container");if(i&&(this.scopeChangePending||null===(t=i.querySelector(".search-page__active-filters"))||void 0===t||t.remove(),0!==this.selectedFilters.length)){var n=document.createElement("div");n.className="search-page__active-filters active-filters active-filters--visible-mobile",n.setAttribute("role","regi
2on"),n.setAttribute("aria-label","Valda filter");var s=document.createElement("ul");s.className="active-filters__list",this.selectedFilters.forEach(function(t){var i=document.createElement("li");i.innerHTML='<div class="active-filters__wrapper"><span class="active-filters__title">'.concat(t.label,'</span>\n        <button class="active-filters__icon" data-filter-name="').concat(t.name,'" data-filter-value="').concat(t.value,'" aria-label="Ta bort valt filter:').concat(t.value,'">\n          <span class="sr-only">Ta bort valt filter: ').concat(t.label,'</span>\n           <svg aria-hidden="true" focusable="false" width="12" height="12" viewBox="0 0 12 12" fill="currentColor" xmlns="http://www.w3.org/2000/svg">\n              <path d="M10.2426 3.06284C10.6037 2.70181 10.6037 2.11844 10.2426 1.75741C9.88161 1.39638 9.29825 1.39638 8.93721 1.75741L6 4.69462L3.06279\n               1.75741C2.70175 1.39638 2.11839 1.39638 1.75736 1.75741C1.39633 2.11844 1.39633 2.70181 1.75736 3.06284L4.69457 6.00005L1.75736 8.93726C1.39633\n                9.2983 1.39633 9.88166 1.75736 10.2427C2.11839 10.6037 2.70175 10.6037 3.06279 10.2427L6 7.30548L8.93721 10.2427C9.29825 10.6037 9.88161\n                 10.6037 10.2426 10.2427C10.6037 9.88166 10.6037 9.2983 10.2426 8.93726L7.30543 6.00005L10.2426 3.06284Z"\n                  fill="#005B89"/>\n           </svg>\n        </button></div>'),i.querySelector("button").addEventListener("click",function(i){i.preventDefault(),e._removeFilter(t.name,t.value)}),s.appendChild(i)});var o=document.createElement("li");o.className="clear-filters";var r=document.createElement("button");r.type="reset",r.className="search-page__reset link-focus",r.setAttribute("aria-label","Rensa alla filter: "+this.selectedFilters.length),r.textContent="Rensa filter (".concat(this.selectedFilters.length,")"),r.addEventListener("click",function(t){t.preventDefault(),e._resetAllFilters(!0)}),o.appendChild(r),s.appendChild(o),n.appendChild(s),i.appendChild(n)}}},{key:"_removeFilter",value:function(t,e){document.querySelectorAll(".search-page__filter-select[name='".concat(t,"']")).forEach(function(t){t.value===e&&(t.value="")}
2);var i=new URL(window.location.href);i.searchParams.delete(t),window.location.href=i.toString()}},{key:"_handleSorting",value:function(){var t,e=document.querySelectorAll(".search-page__linkbutton"),i=document.getElementById("sort-dropdown"),n=new URL(window.location.href),s=n.searchParams.get("sort");!s&&e.length>0&&(s=e[0].getAttribute("data-sort-value")||"",n.searchParams.set("sort",s),window.history.replaceState({path:n.href},"",n.href)),i&&s&&(i.value=s),s&&(t=s,e.forEach(function(e){var i=e.getAttribute("data-sort-value");e.setAttribute("aria-pressed",i===t?"true":"false")})),e.forEach(function(t){t.addEventListener("click",function(){var e=t.getAttribute("data-sort-value")||"",i=new URL(window.location.href);i.searchParams.set("sort",e),window.location.href=i.toString()})}),null==i||i.addEventListener("change",function(){var t=new URL(window.location.href);t.searchParams.set("sort",i.value),window.location.href=t.toString()})}}],e&&Dt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Rt(){var t=document.querySelector('input[name="data-category"]');if(document.querySelectorAll(".search-header__button").length>0&&t){if("true"!==document.body.getAttribute("data-useautocomplete"))return;var e=document.getElementById("search"),i=document.querySelector(".search-header__autocomplete"),n=t.value,s=document.createElement("div"),o=document.createElement("div");s.id="intra-result-topdiv",o.id="intra-result-bottomdiv",s.className="autocomplete-result__top-section",o.className="autocomplete-result__bottom-section grid"+("alla"!==n?"  autocomplete-result__bottom-section--single":""),null==i||i.append(s,o),bt(e,i,n,s,o,!1)}}document.querySelector(".search-page__form")&&new jt,"loading"!==document.readyState?Rt():document.addEventListener("DOMContentLoaded",function(){Rt()}),e()(document).ready(function(){const t=document.getElementsByClassName("modal"),e=document.getElementsByClassName("myImg"),i=document.getElementsByClassName("close"),n=document.getElementsByClassName("imagepreview");for(var s=0;s<e.length;s++){let i=e[s];null!=i&&null!=i&&(i.onclick=function(){t[s].style.display="block",t[s].style.zIndex="999",n[s].src=this.src.replace("w=90","w=1200")})}for(s=0;s<=i.length;s++){if(null!=i[s]){i[s].onclick=function(){t[s].style.display="none"};break}break}for(let e=0;e<=t.length;e++){if(null!=t[e]){t[e].onclick=function(){t[e].style.display="none"};break}break}}),i(4053),i(4304);var Gt=i(4942),Bt=i.n(Gt);e().widget("customer.clothingHygieneStatistics",{options:{},SetAllValue:function(t,e){void 0!==t&&t.forEach((t,i)=>{t>0?e.push(t):e.push(null)})},_create:function(){let t=e()(this.element).find(".chart-container.linje"),i=e()(this.element).find(".chart-container.stapel"),n=t.attr("id"),s=i.attr("id"),o=e()(this.element).find("[data-selector='monthList']").attr("data-value").split(","),r=e()(this.element).find("[data-selector='dataField1']"),a=e()(this.element).find("[data-selector='dataField2']"),h=void 0!==r.attr("data-value")?r.attr("data-value").split(",").map(Number):void 0,l=void 0!==a.attr("data-value")?a.attr("data-value").split(",").map(Number):void 0,c=r.attr("data-name"),u=a.attr("data-name");var d=[];this.SetAllValue(h,d),h=d;var p=[];this.SetAllValue(l,p),l=p,void 0!==n?Bt().chart(n,{title:null,xAxis:{title:{text:"MÃ¥nad"},categories:o},yAxis:{max:100,min:0,title:{text:"%"}},legend:{layout:"horizontal",align:"center",verticalAlign:"top"},tooltip:{headerformat:"<b>{series.name}</b><br>",pointFormat:"<b>{series.name}:</b> {point.y} % <br/>"},series:[{data:h,name:c},{name:u,data:l}],responsive:{rules:[{condition:{maxWidth:1160},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"top"}}}]}}).reflow():void 0!==s&&Bt().chart(s,{chart:{type:"column"},title:null,xAxis:{title:{text:"MÃ¥nad"},categories:o},subtitle:{align:"left"},accessibility:{announceNewData:{enabled:!0}},yAxis:{max:100,min:0,title:{text:"%"}},tooltip:{shared:!0},legend:{layout:"horizontal",align:"center",verticalAlign:"top"},plotOptions:{series:{borderWidth:0,grouping:!1},column:{stacking:"normal"}},series:[{name:c,data:h},{name:u,data:l}],responsive:{rules:[{condition:{maxWidth:1170},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"top"}}}]}}).reflow()},_destroy:function(){}}),e()(".clothing-hygiene-diagram-block").clothingHygieneStatistics(),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.indexOf(t,e)===e});var Ht=location.pathname,Ft=!1;if(Ht&&(Ft=""!==Ht&&(Ht.toLowerCase().startsWith("/episerver/")||Ht.toLowerCase().startsWith("/sec/")||Ht.startsWith("?authToken=")||Ht.indexOf("delade-menyer")>-1)),document.getElementById("piwikSiteId")&&!Ft){var Wt=document.getElementById("piwikSiteId").getAttribute("data-piwiksiteid");if(""!==Wt){document.getElementById("piwikSiteDomain")&&""!==document.getElementById("piwikSiteDomain").getAttribute("data-piwiksitedomain")&&_paq.push(["setDomains",[document.getElementById("piwikSiteDomain").getAttribute("data-piwiksitedomain")]]);var qt=document.getElementById("errorpage");null!=qt&&qt.hasAttribute("data-error-page")&&"404"===qt.getAttribute("data-error-page")&&(_paq.push(["setDocumentTitle","404 Error/URL = "+encodeURIComponent(document.location.pathname+document.location.search)+"/From = "+encodeURIComponent(document.referrer)]),_paq.push(["trackEvent","Error Pages","404 Error","Page: "+document.location.pathname+document.location.search+"/From = "+document.referrer]));var Ut=location.href;Ut.indexOf("?authToken=")>-1&&(Ut=Ut.substring(0,Ut.indexOf("?authToken=")));var Zt=Ut.substr(-1),Yt=Ut.toLowerCase();"/"!==Zt&&(Yt+="/"),_paq.push(["setCustomUrl",Yt]),_paq.push(["trackPageView"]),e()("a[href^='tel:']").on("click",function(t){_paq.push(["trackEvent","Links","Clicked phonelink",Yt])}),"hitta.vgregion.se"===location.host&&"/"!==location.pathname&&""!==location.pathname&&window.location.href.indexOf("q")>-1&&(_paq.push(["setCustomUrl",location.protocol+"//"+location.host+location.pathname.toLowerCase()]),_paq.push(["trackPageView"])),_paq.push(["enableLinkTracking"]),e()("main a").each(function(){var t,i=e()(this)[0];try{"alfresco.vgregion.se"===i.host&&("key"!=(t=function(t){var e=t.split(".").pop();return e&&(e=e.toLowerCase()),e}(i.pathname))&&"odp"!=t&&"pps"!=t&&"ppt"!=t&&"pptx"!=t&&"ods"!=t&&"xlr"!=t&&"xls"!=t&&"xlsx"!=t&&"doc"!=t&&"docx"!=t&&"odt"!=t&&"pdf"!=t&&"rtf"!=t&&"tex"!=t&&"txt"!=t&&"wks"!=t&&"wps"!=t&&"wpd"!=t&&e()(this).on("click",function(){_paq.push(["trackLink",i.href,"download"])}))}catch(t){}}),function(){var t="https://piwik.vgregion.se/",i="False";if(document.getElementById("usePiwikExternal")&&(i=document.getElementById("usePiwikExternal").getAttribute("data-usePiwikExternal")),null!=document.getElementById("tagmanagerId")){var n=document.getElementById("useTagManager").getAttribute("data-useTagManager"),s=document.getElementById("tagmanagerId").getAttribute("data-tagmanagerId");null!=s&&null!=s&&""!==s&&(-1==s.indexOf("container_")&&(s="container_"+s),-1==s.indexOf(".js")&&(s+=".js"),"True"===n&&function(t,e,
2i){var n="https://piwik.vgregion.se/js/"+i;"True"===t&&(n="https://piwik-ext.vgregion.se/js/"+i);var s=s||[];s.push({"mtm.startTime":(new Date).getTime(),event:"mtm.Start"});var o=document,r=o.createElement("script"),a=o.getElementsByTagName("script")[0];r.async=!0,r.defer=!0,r.src=n,a.parentNode.insertBefore(r,a)}(i,0,s))}if("True"===i&&(t="https://piwik-ext.vgregion.se/"),document.getElementById("piwikAdditionalSiteId")){var o=document.getElementById("piwikAdditionalSiteId").getAttribute("data-piwiksiteid");""!==o&&_paq.push(["addTracker",t+"piwik.php",o])}const r="true"===document.body.getAttribute("data-fetch-page")?.toLowerCase(),a="true"===document.body.getAttribute("data-search-page")?.toLowerCase();r&&!a&&(window.onload=function(){let i=document.location.pathname;i.indexOf("/forvaltningar/")>-1&&(i=i.split("/forvaltningar/",2)[1],i=i.substring(i.indexOf("/")));const n=Piwik.getTracker(t+"piwik.php",274),s=e()("h1").text().trim();n.setSecureCookie(!0),n.setDomains([document.location.host]),n.setCustomUrl("https://"+document.location.host+i),n.setDocumentTitle(s),n.trackPageView(),n.enableLinkTracking(),e()("main a").each(function(){const t=e()(this)[0];try{t.host===document.location.host&&e()(this).on("click",function(){n.trackEvent("Länk",t.innerText,t.href)})}catch(t){}})}),_paq.push(["setSecureCookie",!0]),_paq.push(["setTrackerUrl",t+"piwik.php"]),_paq.push(["setSiteId",Wt]);var h=document,l=h.createElement("script"),c=h.getElementsByTagName("script")[0];l.async=!0,l.defer=!0,l.src=t.toLowerCase()+"piwik.js",c.parentNode.insertBefore(l,c)}()}}function Vt(){document.querySelectorAll(".ifeed-sort__button").forEach(function(t){t.addEventListener("click",function(){var e=t.dataset.sortValue,i=t.dataset.sortDir,n=t.dataset.sortBlock;if(e&&i&&n){var s=new URL(window.location.href);s.searchParams.set("sort",e),s.searchParams.set("sortdir",i),s.hash=n,window.location.href=s.toString()}})})}!function(){function t(){var t=window.matchMedia("(max-width: 767px)").matches;document.querySelectorAll(".kiv-block details").forEach(function(e){t?e.setAttribute("open",""):e.removeAttribute("open")})}t(),window.addEventListener("resize",t)}(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Vt):Vt(),i(1799),window.$=e(),"undefined"!=typeof window&&(window.VgrFrontend=window.VgrFrontend||{},window.VgrFrontend.logger=M)}()}();
3//# sourceMappingURL=main.f7a97467402461860df5.js.map

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.