1import{$ as E}from"./jquery-DjYKqkyR.js";var Me={exports:{}};var fr=Me.exports,ls;function pr(){return ls||(ls=1,(function(h,n){(function(r,u){u(n)})(fr,(function(r){var u="1.9.4";function d(t){var e,i,o,l;for(i=1,o=arguments.length;i<o;i++){l=arguments[i];for(e in l)t[e]=l[e]}return t}var s=Object.create||(function(){function t(){}return function(e){return t.prototype=e,new t}})();function a(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var o=i.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(i.call(arguments)):arguments)}}var c=0;function p(t){return"_leaflet_id"in t||(t._leaflet_id=++c),t._leaflet_id}function _(t,e,i){var o,l,f,g;return g=function(){o=!1,l&&(f.apply(i,l),l=!1)},f=function(){o?l=arguments:(t.apply(i,arguments),setTimeout(g,e),o=!0)},f}function v(t,e,i){var o=e[1],l=e[0],f=o-l;return t===o&&i?t:((t-l)%f+f)%f+l}function m(){return!1}function y(t,e){if(e===!1)return t;var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}function C(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function P(t){return C(t).split(/\s+/)}function b(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?s(t.options):{});for(var i in e)t.options[i]=e[i];return t.options}function O(t,e,i){var o=[];for(var l in t)o.push(encodeURIComponent(i?l.toUpperCase():l)+"="+encodeURIComponent(t[l]));return(!e||e.indexOf("?")===-1?"?":"&")+o.join("&")}var T=/\{ *([\w_ -]+) *\}/g;function k(t,e){return t.replace(T,function(i,o){var l=e[o];if(l===void 0)throw new Error("No value provided for variable "+i);return typeof l=="function"&&(l=l(e)),l})}var M=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function A(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var R="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function z(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var Q=0;function D(t){var e=+new Date,i=Math.max(0,16-(e-Q));return Q=e+i,window.setTimeout(t,i)}var B=window.requestAnimationFrame||z("RequestAnimationFrame")||D,at=window.cancelAnimationFrame||z("CancelAnimationFrame")||z("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Z(t,e,i){if(i&&B===D)t.call(e);else return B.call(window,a(t,e))}function j(t){t&&at.call(window,t)}var it={__proto__:null,extend:d,create:s,bind:a,get lastId(){return c},stamp:p,throttle:_,wrapNum:v,falseFn:m,formatNum:y,trim:C,splitWords:P,setOptions:b,getParamString:O,template:k,isArray:M,indexOf:A,emptyImageUrl:R,requestFn:B,cancelFn:at,requestAnimFrame:Z,cancelAnimFrame:j};function I(){}I.extend=function(t){var e=function(){b(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,o=s(i);o.constructor=e,e.prototype=o;for(var l in this)Object.prototype.hasOwnProperty.call(this,l)&&l!=="prototype"&&l!=="__super__"&&(e[l]=this[l]);return t.statics&&d(e,t.statics),t.includes&&(H(t.includes),d.apply(null,[o].concat(t.includes))),d(o,t),delete o.statics,delete o.includes,o.options&&(o.options=i.options?s(i.options):{},d(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var f=0,g=o._initHooks.length;f<g;f++)o._initHooks[f].call(this)}},e},I.include=function(t){var e=this.prototype.options;return d(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},I.mergeOptions=function(t){return d(this.prototype.options,t),this},I.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};function H(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=M(t)?t:[t];for(var e=0;e<t.length;
1e++)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)}}var tt={on:function(t,e,i){if(typeof t=="object")for(var o in t)this._on(o,t[o],e);else{t=P(t);for(var l=0,f=t.length;l<f;l++)this._on(t[l],e,i)}return this},off:function(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var o in t)this._off(o,t[o],e);else{t=P(t);for(var l=arguments.length===1,f=0,g=t.length;f<g;f++)l?this._off(t[f]):this._off(t[f],e,i)}return this},_on:function(t,e,i,o){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)===!1){i===this&&(i=void 0);var l={fn:e,ctx:i};o&&(l.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(l)}},_off:function(t,e,i){var o,l,f;if(this._events&&(o=this._events[t],!!o)){if(arguments.length===1){if(this._firingCount)for(l=0,f=o.length;l<f;l++)o[l].fn=m;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var g=this._listens(t,e,i);if(g!==!1){var w=o[g];this._firingCount&&(w.fn=m,this._events[t]=o=o.slice()),o.splice(g,1)}}},fire:function(t,e,i){if(!this.listens(t,i))return this;var o=d({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var l=this._events[t];if(l){this._firingCount=this._firingCount+1||1;for(var f=0,g=l.length;f<g;f++){var w=l[f],x=w.fn;w.once&&this.off(t,x,w.ctx),x.call(w.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,i,o){typeof t!="string"&&console.warn('"string" type argument expected');var l=e;typeof e!="function"&&(o=!!e,l=void 0,i=void 0);var f=this._events&&this._events[t];if(f&&f.length&&this._listens(t,l,i)!==!1)return!0;if(o){for(var g in this._eventParents)if(this._eventParents[g].listens(t,e,i,o))return!0}return!1},_listens:function(t,e,i){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;i===this&&(i=void 0);for(var l=0,f=o.length;l<f;l++)if(o[l].fn===e&&o[l].ctx===i)return l;return!1},once:function(t,e,i){if(typeof t=="object")for(var o in t)this._on(o,t[o],e,!0);else{t=P(t);for(var l=0,f=t.length;l<f;l++)this._on(t[l],e,i,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[p(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[p(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,d({layer:t.target,propagatedFrom:t.target},t),!0)}};tt.addEventListener=tt.on,tt.removeEventListener=tt.clearAllEventListeners=tt.off,tt.addOneTimeEventListener=tt.once,tt.fireEvent=tt.fire,tt.hasEventListeners=tt.listens;var ut=I.extend(tt);function W(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var Ae=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};W.prototype={clone:function(){return new W(this.x,this.y)},add:function(t){return this.clone()._add(U(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(U(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 W(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new W(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()}
1,_trunc:function(){return this.x=Ae(this.x),this.y=Ae(this.y),this},distanceTo:function(t){t=U(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=U(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=U(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function U(t,e,i){return t instanceof W?t:M(t)?new W(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new W(t.x,t.y):new W(t,e,i)}function nt(t,e){if(t)for(var i=e?[t,e]:t,o=0,l=i.length;o<l;o++)this.extend(i[o])}nt.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof W||typeof t[0]=="number"||"x"in t)e=i=U(t);else if(t=yt(t),e=t.min,i=t.max,!e||!i)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=i.clone()):(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},getCenter:function(t){return U((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return U(this.min.x,this.max.y)},getTopRight:function(){return U(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 typeof t[0]=="number"||t instanceof W?t=U(t):t=yt(t),t instanceof nt?(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=yt(t);var e=this.min,i=this.max,o=t.min,l=t.max,f=l.x>=e.x&&o.x<=i.x,g=l.y>=e.y&&o.y<=i.y;return f&&g},overlaps:function(t){t=yt(t);var e=this.min,i=this.max,o=t.min,l=t.max,f=l.x>e.x&&o.x<i.x,g=l.y>e.y&&o.y<i.y;return f&&g},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,o=Math.abs(e.x-i.x)*t,l=Math.abs(e.y-i.y)*t;return yt(U(e.x-o,e.y-l),U(i.x+o,i.y+l))},equals:function(t){return t?(t=yt(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function yt(t,e){return!t||t instanceof nt?t:new nt(t,e)}function Lt(t,e){if(t)for(var i=e?[t,e]:t,o=0,l=i.length;o<l;o++)this.extend(i[o])}Lt.prototype={extend:function(t){var e=this._southWest,i=this._northEast,o,l;if(t instanceof st)o=t,l=t;else if(t instanceof Lt){if(o=t._southWest,l=t._northEast,!o||!l)return this}else return t?this.extend($(t)||ct(t)):this;return!e&&!i?(this._southWest=new st(o.lat,o.lng),this._northEast=new st(l.lat,l.lng)):(e.lat=Math.min(o.lat,e.lat),e.lng=Math.min(o.lng,e.lng),i.lat=Math.max(l.lat,i.lat),i.lng=Math.max(l.lng,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,o=Math.abs(e.lat-i.lat)*t,l=Math.abs(e.lng-i.lng)*t;return new Lt(new st(e.lat-o,e.lng-l),new st(i.lat+o,i.lng+l))},getCenter:function(){return new st((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 st(this.getNorth(),this.getWest())},getSouthEast:function(){return new st(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){typeof t[0]=="number"||t instanceof st||"lat"in t?t=$(t):t=ct(t);var e=this._southWest,i=this._northEast,o,l;
1return t instanceof Lt?(o=t.getSouthWest(),l=t.getNorthEast()):o=l=t,o.lat>=e.lat&&l.lat<=i.lat&&o.lng>=e.lng&&l.lng<=i.lng},intersects:function(t){t=ct(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),l=t.getNorthEast(),f=l.lat>=e.lat&&o.lat<=i.lat,g=l.lng>=e.lng&&o.lng<=i.lng;return f&&g},overlaps:function(t){t=ct(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),l=t.getNorthEast(),f=l.lat>e.lat&&o.lat<i.lat,g=l.lng>e.lng&&o.lng<i.lng;return f&&g},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=ct(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ct(t,e){return t instanceof Lt?t:new Lt(t,e)}function st(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,i!==void 0&&(this.alt=+i)}st.prototype={equals:function(t,e){if(!t)return!1;t=$(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+y(this.lat,t)+", "+y(this.lng,t)+")"},distanceTo:function(t){return Wt.distance(this,$(t))},wrap:function(){return Wt.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return ct([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new st(this.lat,this.lng,this.alt)}};function $(t,e,i){return t instanceof st?t:M(t)&&typeof t[0]!="object"?t.length===3?new st(t[0],t[1],t[2]):t.length===2?new st(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new st(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new st(t,e,i)}var Bt={latLngToPoint:function(t,e){var i=this.projection.project(t),o=this.scale(e);return this.transformation._transform(i,o)},pointToLatLng:function(t,e){var i=this.scale(e),o=this.transformation.untransform(t,i);return this.projection.unproject(o)},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),o=this.transformation.transform(e.min,i),l=this.transformation.transform(e.max,i);return new nt(o,l)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?v(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?v(t.lat,this.wrapLat,!0):t.lat,o=t.alt;return new st(i,e,o)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),o=e.lat-i.lat,l=e.lng-i.lng;if(o===0&&l===0)return t;
1var f=t.getSouthWest(),g=t.getNorthEast(),w=new st(f.lat-o,f.lng-l),x=new st(g.lat-o,g.lng-l);return new Lt(w,x)}},Wt=d({},Bt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,o=t.lat*i,l=e.lat*i,f=Math.sin((e.lat-t.lat)*i/2),g=Math.sin((e.lng-t.lng)*i/2),w=f*f+Math.cos(o)*Math.cos(l)*g*g,x=2*Math.atan2(Math.sqrt(w),Math.sqrt(1-w));return this.R*x}}),Xi=6378137,oi={R:Xi,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,o=Math.max(Math.min(i,t.lat),-i),l=Math.sin(o*e);return new W(this.R*t.lng*e,this.R*Math.log((1+l)/(1-l))/2)},unproject:function(t){var e=180/Math.PI;return new st((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(function(){var t=Xi*Math.PI;return new nt([-t,-t],[t,t])})()};function ri(t,e,i,o){if(M(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=i,this._d=o}ri.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 W((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function fe(t,e,i,o){return new ri(t,e,i,o)}var ai=d({},Wt,{code:"EPSG:3857",projection:oi,transformation:(function(){var t=.5/(Math.PI*oi.R);return fe(t,.5,-t,.5)})()}),js=d({},ai,{code:"EPSG:900913"});function Qi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function tn(t,e){var i="",o,l,f,g,w,x;for(o=0,f=t.length;o<f;o++){for(w=t[o],l=0,g=w.length;l<g;l++)x=w[l],i+=(l?"L":"M")+x.x+" "+x.y;i+=e?F.svg?"z":"x":""}return i||"M0 0"}var hi=document.documentElement.style,ze="ActiveXObject"in window,Gs=ze&&!document.addEventListener,en="msLaunchUri"in navigator&&!("documentMode"in document),li=kt("webkit"),nn=kt("android"),sn=kt("android 2")||kt("android 3"),Ws=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Us=nn&&kt("Google")&&Ws<537&&!("AudioNode"in window),ui=!!window.opera,on=!en&&kt("chrome"),rn=kt("gecko")&&!li&&!ui&&!ze,Vs=!on&&kt("safari"),an=kt("phantom"),hn="OTransition"in hi,Ks=navigator.platform.indexOf("Win")===0,ln=ze&&"transition"in hi,ci="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!sn,un="MozPerspective"in hi,qs=!window.L_DISABLE_3D&&(ln||ci||un)&&!hn&&!an,pe=typeof orientation<"u"||kt("mobile"),Ys=pe&&li,Js=pe&&ci,cn=!window.PointerEvent&&window.MSPointerEvent,dn=!!(window.PointerEvent||cn),fn="ontouchstart"in window||!!window.TouchEvent,$s=!window.L_NO_TOUCH&&(fn||dn),Xs=pe&&ui,Qs=pe&&rn,to=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,eo=(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",m,e),window.removeEventListener("testPassiveEventSupport",m,e)}catch(i){}return t})(),io=(function(){return!!document.createElement("canvas").getContext})(),di=!!(document.createElementNS&&Qi("svg").createSVGRect),no=!!di&&(function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),so=!di&&(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&&typeof e.adj=="object"}catch(i){return!1}})(),oo=navigator.platform.indexOf("Mac")===0,ro=navigator.platform.indexOf("Linux")===0;function kt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var F={ie:ze,ielt9:Gs,edge:en,webkit:li,android:nn,android23:sn,androidStock:Us,opera:ui,chrome:on,gecko:rn,safari:Vs,phantom:an,opera12:hn,win:Ks,ie3d:ln,webkit3d:ci,gecko3d:un,any3d:qs,mobile:pe,mobileWebkit:Ys,mobileWebkit3d:Js,msPointer:cn,pointer:dn,touch:$s,touchNative:fn,mobileOpera:Xs,mobileGecko:Qs,retina:to,passiveEvents:eo,canvas:io,svg:di,vml:so,inlineSvg:no,mac:oo,linux:ro},pn=F.msPointer?"MSPointerDown":"pointerdown",_n=F.msPointer?"MSPointerMove":"pointermove",mn=F.msPointer?"MSPointerUp":"pointerup",gn=F.msPointer?"MSPointerCancel":"pointercancel",fi={touchstart:pn,touchmove:_n,touchend:m
1n,touchcancel:gn},vn={touchstart:fo,touchmove:Ze,touchend:Ze,touchcancel:Ze},ie={},yn=!1;function ao(t,e,i){return e==="touchstart"&&co(),vn[e]?(i=vn[e].bind(this,i),t.addEventListener(fi[e],i,!1),i):(console.warn("wrong event specified:",e),m)}function ho(t,e,i){if(!fi[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(fi[e],i,!1)}function lo(t){ie[t.pointerId]=t}function uo(t){ie[t.pointerId]&&(ie[t.pointerId]=t)}function Ln(t){delete ie[t.pointerId]}function co(){yn||(document.addEventListener(pn,lo,!0),document.addEventListener(_n,uo,!0),document.addEventListener(mn,Ln,!0),document.addEventListener(gn,Ln,!0),yn=!0)}function Ze(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in ie)e.touches.push(ie[i]);e.changedTouches=[e],t(e)}}function fo(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&_t(e),Ze(t,e)}function po(t){var e={},i,o;for(o in t)i=t[o],e[o]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var _o=200;function mo(t,e){t.addEventListener("dblclick",e);var i=0,o;function l(f){if(f.detail!==1){o=f.detail;return}if(!(f.pointerType==="mouse"||f.sourceCapabilities&&!f.sourceCapabilities.firesTouchEvents)){var g=Pn(f);if(!(g.some(function(x){return x instanceof HTMLLabelElement&&x.attributes.for})&&!g.some(function(x){return x instanceof HTMLInputElement||x instanceof HTMLSelectElement}))){var w=Date.now();w-i<=_o?(o++,o===2&&e(po(f))):o=1,i=w}}}return t.addEventListener("click",l),{dblclick:e,simDblclick:l}}function go(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var pi=De(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_e=De(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),bn=_e==="webkitTransition"||_e==="OTransition"?_e+"End":"transitionend";function wn(t){return typeof t=="string"?document.getElementById(t):t}function me(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);i=o?o[e]:null}return i==="auto"?null:i}function et(t,e,i){var o=document.createElement(t);return o.className=e||"",i&&i.appendChild(o),o}function rt(t){var e=t.parentNode;e&&e.removeChild(t)}function Ne(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ne(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function se(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function _i(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=Be(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function Y(t,e){if(t.classList!==void 0)for(var i=P(e),o=0,l=i.length;o<l;o++)t.classList.add(i[o]);else if(!_i(t,e)){var f=Be(t);mi(t,(f?f+" ":"")+e)}}function ht(t,e){t.classList!==void 0?t.classList.remove(e):mi(t,C((" "+Be(t)+" ").replace(" "+e+" "," ")))}function mi(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function Be(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function Pt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&vo(t,e)}function vo(t,e){var i=!1,o="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(o)}catch(l){if(e===1)return}e=Math.round(e*100),i?(i.Enabled=e!==100,i.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}function De(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Yt(t,e,i){var o=e||new W(0,0);t.style[pi]=(F.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(i?" scale("+i+")":"")}function dt(t,e){t._leaflet_pos=e,F.any3d?Yt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Jt(t){return t._leaflet_pos||new W(0,0)}var ge,ve,gi;if("onselectstart"in document)ge=function(){K(window,"selectstart",_t)},ve=function(){ot(window,"selectstart",_t)};else{var ye=De(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ge=function(){if(ye){var t=document.documentElement.style;gi=t[ye],t[ye]="none"}},ve=function(){ye&&(document.documentElement.style[ye]=gi,gi=void 0)}}function vi(){K(window,"dragstart",_t)}function yi(){ot(window,"dragstart",_t)}var Re,Li;function bi(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Fe(),Re=t,Li=t.style.outlineStyle,t.style.outlineStyle="none",K(window,"keydown",Fe))}function Fe(){Re&&(Re.style.outlineStyle=Li,Re=void 0,Li=void 0,ot(window,"keydown",Fe))}function Cn(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function wi(t){var e=t.getBoundingClientRect();
1return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var yo={__proto__:null,TRANSFORM:pi,TRANSITION:_e,TRANSITION_END:bn,get:wn,getStyle:me,create:et,remove:rt,empty:Ne,toFront:ne,toBack:se,hasClass:_i,addClass:Y,removeClass:ht,setClass:mi,getClass:Be,setOpacity:Pt,testProp:De,setTransform:Yt,setPosition:dt,getPosition:Jt,get disableTextSelection(){return ge},get enableTextSelection(){return ve},disableImageDrag:vi,enableImageDrag:yi,preventOutline:bi,restoreOutline:Fe,getSizedParentNode:Cn,getScale:wi};function K(t,e,i,o){if(e&&typeof e=="object")for(var l in e)xi(t,l,e[l],i);else{e=P(e);for(var f=0,g=e.length;f<g;f++)xi(t,e[f],i,o)}return this}var It="_leaflet_events";function ot(t,e,i,o){if(arguments.length===1)xn(t),delete t[It];else if(e&&typeof e=="object")for(var l in e)Pi(t,l,e[l],i);else if(e=P(e),arguments.length===2)xn(t,function(w){return A(e,w)!==-1});else for(var f=0,g=e.length;f<g;f++)Pi(t,e[f],i,o);return this}function xn(t,e){for(var i in t[It]){var o=i.split(/\d/)[0];(!e||e(o))&&Pi(t,o,null,null,i)}}
vendor: 4,162 bytes, line 1
1var Ci={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function xi(t,e,i,o){var l=e+p(i)+(o?"_"+p(o):"");if(t[It]&&t[It][l])return this;var f=function(w){return i.call(o||t,w||window.event)},g=f;!F.touchNative&&F.pointer&&e.indexOf("touch")===0?f=ao(t,e,f):F.touch&&e==="dblclick"?f=mo(t,f):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(Ci[e]||e,f,F.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(f=function(w){w=w||window.event,Ei(t,w)&&g(w)},t.addEventListener(Ci[e],f,!1)):t.addEventListener(e,g,!1):t.attachEvent("on"+e,f),t[It]=t[It]||{},t[It][l]=f}function Pi(t,e,i,o,l){l=l||e+p(i)+(o?"_"+p(o):"");var f=t[It]&&t[It][l];if(!f)return this;!F.touchNative&&F.pointer&&e.indexOf("touch")===0?ho(t,e,f):F.touch&&e==="dblclick"?go(t,f):"removeEventListener"in t?t.removeEventListener(Ci[e]||e,f,!1):t.detachEvent("on"+e,f),t[It][l]=null}function $t(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Si(t){return xi(t,"wheel",$t),this}function Le(t){return K(t,"mousedown touchstart dblclick contextmenu",$t),t._leaflet_disable_click=!0,this}function _t(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Xt(t){return _t(t),$t(t),this}function Pn(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Sn(t,e){if(!e)return new W(t.clientX,t.clientY);var i=wi(e),o=i.boundingClientRect;return new W((t.clientX-o.left)/i.x-e.clientLeft,(t.clientY-o.top)/i.y-e.clientTop)}var Lo=F.linux&&F.chrome?window.devicePixelRatio:F.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function En(t){return F.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Lo:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ei(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(o){return!1}return i!==t}var bo={__proto__:null,on:K,off:ot,stopPropagation:$t,disableScrollPropagation:Si,disableClickPropagation:Le,preventDefault:_t,stop:Xt,getPropagationPath:Pn,getMousePosition:Sn,getWheelDelta:En,isExternalTarget:Ei,addListener:K,removeListener:ot},Tn=ut.extend({run:function(t,e,i,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Jt(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=Z(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;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(),dt(this._el,i),this.fire("step")},_complete:function(){j(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),X=ut.extend({options:{crs:ai,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=b(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView($(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=_e&&F.any3d&&!F.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),K(this._proxy,bn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
1,setView:function(t,e,i){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter($(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&i!==!0){i.animate!==void 0&&(i.zoom=d({animate:i.animate},i.zoom),i.pan=d({animate:i.animate,duration:i.duration},i.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(o)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,i.pan&&i.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||(F.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(F.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var o=this.getZoomScale(e),l=this.getSize().divideBy(2),f=t instanceof W?t:this.latLngToContainerPoint(t),g=f.subtract(l).multiplyBy(1-1/o),w=this.containerPointToLatLng(l.add(g));return this.setView(w,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():ct(t);var i=U(e.paddingTopLeft||e.padding||[0,0]),o=U(e.paddingBottomRight||e.padding||[0,0]),l=this.getBoundsZoom(t,!1,i.add(o));if(l=typeof e.maxZoom=="number"?Math.min(e.maxZoom,l):l,l===1/0)return{center:t.getCenter(),zoom:l};
vendor: 11,346 bytes, line 1
1var f=o.subtract(i).divideBy(2),g=this.project(t.getSouthWest(),l),w=this.project(t.getNorthEast(),l),x=this.unproject(g.add(w).divideBy(2).add(f),l);return{center:x,zoom:l}},fitBounds:function(t,e){if(t=ct(t),!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(t=U(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Tn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){Y(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(i=i||{},i.animate===!1||!F.any3d)return this.setView(t,e,i);this._stop();var o=this.project(this.getCenter()),l=this.project(t),f=this.getSize(),g=this._zoom;t=$(t),e=e===void 0?g:e;var w=Math.max(f.x,f.y),x=w*this.getZoomScale(g,e),S=l.distanceTo(o)||1,N=1.42,G=N*N;function J(ft){var Xe=ft?-1:1,lr=ft?x:w,ur=x*x-w*w+Xe*G*G*S*S,cr=2*lr*G*S,Di=ur/cr,hs=Math.sqrt(Di*Di+1)-Di,dr=hs<1e-9?-18:Math.log(hs);return dr}function vt(ft){return(Math.exp(ft)-Math.exp(-ft))/2}function pt(ft){return(Math.exp(ft)+Math.exp(-ft))/2}function Et(ft){return vt(ft)/pt(ft)}var bt=J(0);function ue(ft){return w*(pt(bt)/pt(bt+N*ft))}function or(ft){return w*(pt(bt)*Et(bt+N*ft)-vt(bt))/G}function rr(ft){return 1-Math.pow(1-ft,1.5)}var ar=Date.now(),rs=(J(1)-bt)/N,hr=i.duration?1e3*i.duration:1e3*rs*.8;function as(){var ft=(Date.now()-ar)/hr,Xe=rr(ft)*rs;ft<=1?(this._flyToFrame=Z(as,this),this._move(this.unproject(o.add(l.subtract(o).multiplyBy(or(Xe)/S)),g),this.getScaleZoom(w/ue(Xe),g),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),as.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=ct(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(),o=this._limitCenter(i,this._zoom,ct(t));return i.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=U(e.paddingTopLeft||e.padding||[0,0]),o=U(e.paddingBottomRight||e.padding||[0,0]),l=this.project(this.getCenter()),f=this.project(t),g=this.getPixelBounds(),w=yt([g.min.add(i),g.max.subtract(o)]),x=w.getSize();if(!w.contains(f)){this._enforcingBounds=!0;var S=f.subtract(w.getCenter()),N=w.extend(f).getSize().subtract(x);l.x+=S.x<0?-N.x:N.x,l.y+=S.y<0?-N.y:N.y,this.panTo(this.unproject(l),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=d({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=e.divideBy(2).round(),l=i.divideBy(2).round(),f=o.subtract(l);return!f.x&&!f.y?this:(t.animate&&t.pan?this.panBy(f):(t.pan&&this._rawPanBy(f),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=d({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=a(this._handleGeolocationResponse,this),i=a(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,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||(e===1?"permission denied":e===2?"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=t.coords.latitude,i=t.coords.longitude,o=new st(e,i),l=o.toBounds(t.coords.accuracy*2),f=this._locateOptions;if(f.setView){var g=this.getBoundsZoom(l);this.setView(o,f.maxZoom?Math.min(g,f.maxZoom):g)}var w={latlng:o,bounds:l,timestamp:t.timestamp};for(var x in t.coords)typeof t.coords[x]=="number"&&(w[x]=t.coords[x]);this.fire("locationfound",w)}},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(e){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),rt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(j(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)rt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),o=et("div",i,e||this._mapPane);return t&&(this._panes[t]=o),o},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(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new Lt(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=ct(t),i=U(i||[0,0]);var o=this.getZoom()||0,l=this.getMinZoom(),f=this.getMaxZoom(),g=t.getNorthWest(),w=t.getSouthEast(),x=this.getSize().subtract(i),S=yt(this.project(w,o),this.project(g,o)).getSize(),N=F.any3d?this.options.zoomSnap:1,G=x.x/S.x,J=x.y/S.y,vt=e?Math.max(G,J):Math.min(G,J);return o=this.getScaleZoom(vt,o),N&&(o=Math.round(o/(N/100))*(N/100),o=e?Math.ceil(o/N)*N:Math.floor(o/N)*N),Math.max(l,Math.min(f,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new W(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 nt(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?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=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var o=i.zoom(t*i.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint($(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(U(t),e)},layerPointToLatLng:function(t){var e=U(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project($(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng($(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(ct(t))},distance:function(t,e){return this.options.crs.distance($(t),$(e))},containerPointToLayerPoint:function(t){return U(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return U(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(U(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint($(t)))},mouseEventToContainerPoint:function(t){return Sn(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=wn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");K(e,"scroll",this._onScroll,this),this._containerId=p(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&F.any3d,Y(t,"leaflet-container"+(F.touch?" leaflet-touch":"")+(F.retina?" leaflet-retina":"")+(F.ielt9?" leaflet-oldie":"")+(F.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=me(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(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),dt(this._mapPane,new W(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Y(t.markerPane,"leaflet-zoom-hide"),Y(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){dt(this._mapPane,new W(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var l=this._zoom!==e;this._moveStart(l,i)._move(t,e)._moveEnd(l),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this}
1,_move:function(t,e,i,o){e===void 0&&(e=this._zoom);var l=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?i&&i.pinch&&this.fire("zoom",i):((l||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 j(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){dt(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[p(this._container)]=this;var e=t?ot:K;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),F.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){j(this._resizeRequest),this._resizeRequest=Z(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=[],o,l=e==="mouseout"||e==="mouseover",f=t.target||t.srcElement,g=!1;f;){if(o=this._targets[p(f)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){g=!0;break}if(o&&o.listens(e,!0)&&(l&&!Ei(f,t)||(i.push(o),l))||f===this._container)break;f=f.parentNode}return!i.length&&!g&&!l&&this.listens(e,!0)&&(i=[this]),i},_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||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&bi(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var o=d({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var l=this._findEventTargets(t,e);if(i){for(var f=[],g=0;g<i.length;g++)i[g].listens(e,!0)&&f.push(i[g]);l=f.concat(l)}if(l.length){e==="contextmenu"&&_t(t);var w=l[0],x={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var S=w.getLatLng&&(!w._radius||w._radius<=10);x.containerPoint=S?this.latLngToContainerPoint(w.getLatLng()):this.mouseEventToContainerPoint(t),x.layerPoint=this.containerPointToLayerPoint(x.containerPoint),x.latlng=S?w.getLatLng():this.layerPointToLatLng(x.layerPoint)}for(g=0;g<l.length;g++)if(l[g].fire(e,x,!0),x.originalEvent._stopped||l[g].options.bubblingMouseEvents===!1&&A(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.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 Jt(this._mapPane)||new W(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var o=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,i){var o=this._getNewPixelOrigin(i,e);
vendor: 16,156 bytes, line 1
1return yt([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_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 o=this.project(t,e),l=this.getSize().divideBy(2),f=new nt(o.subtract(l),o.add(l)),g=this._getBoundsOffset(f,i,e);return Math.abs(g.x)<=1&&Math.abs(g.y)<=1?t:this.unproject(o.add(g),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),o=new nt(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,i){var o=yt(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),l=o.min.subtract(t.min),f=o.max.subtract(t.max),g=this._rebound(l.x,-f.x),w=this._rebound(l.y,-f.y);return new W(g,w)},_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(),o=F.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ht(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=et("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=pi,o=this._proxy.style[i];Yt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){rt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Yt(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||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),l=this._getCenterOffset(t)._divideBy(1-1/o);return i.animate!==!0&&!this.getSize().contains(l)?!1:(Z(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,Y(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ht(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))}});function wo(t,e){return new X(t,e)}var Tt=I.extend({options:{position:"topright"},initialize:function(t){b(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(),o=t._controlCorners[i];return Y(e,"leaflet-control"),i.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(rt(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()}}),be=function(t){return new Tt(t)};X.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=et("div",e+"control-container",this._container);function o(l,f){var g=e+l+" "+e+f;t[l+f]=et("div",g,i)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)rt(this._controlCorners[t]);rt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Mn=Tt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,o){return i<o?-1:o<i?1:0}},initialize:function(t,e,i){b(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var o in t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!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 Tt.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(p(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){Y(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?(Y(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ht(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ht(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=et("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Le(e),Si(e);var o=this._section=et("section",t+"-list");i&&(this._map.on("click",this.collapse,this),K(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var l=this._layersLink=et("a",t+"-toggle",e);l.href="#",l.title="Layers",l.setAttribute("role","button"),K(l,{keydown:function(f){f.keyCode===13&&this._expandSafely()},click:function(f){_t(f),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=et("div",t+"-base",o),this._separator=et("div",t+"-separator",o),this._overlaysList=et("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&p(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(a(function(o,l){return this.options.sortFunction(o.layer,l.layer,o.name,l.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ne(this._baseLayersList),Ne(this._overlaysList),this._layerControlInputs=[];var t,e,i,o,l=0;for(i=0;i<this._layers.length;i++)o=this._layers[i],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,l+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&l>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(p(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"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"':"")+"/>",o=document.createElement("div");return o.innerHTML=i,o.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=i):o=this._createRadioElement("leaflet-base-layers_"+p(this),i),this._layerControlInputs.push(o),o.layerId=p(t.layer),K(o,"click",this._onInputClick,this);var l=document.createElement("span");l.innerHTML=" "+t.name;var f=document.createElement("span");e.appendChild(f),f.appendChild(o),f.appendChild(l);var g=t.overlay?this._overlaysList:this._baseLayersList;return g.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,o=[],l=[];this._handlingClick=!0;for(var f=t.length-1;f>=0;f--)e=t[f],i=this._getLayer(e.layerId).layer,e.checked?o.push(i):e.checked||l.push(i);for(f=0;f<l.length;f++)this._map.hasLayer(l[f])&&this._map.removeLayer(l[f]);for(f=0;f<o.length;f++)this._map.hasLayer(o[f])||this._map.addLayer(o[f]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,i,o=this._map.getZoom(),l=t.length-1;l>=0;l--)e=t[l],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&o<i.options.minZoom||i.options.maxZoom!==void 0&&o>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,K(t,"click",_t),this.expand();var e=this;setTimeout(function(){ot(t,"click",_t),e._preventClick=!1})}}),Co=function(t,e,i){return new Mn(t,e,i)},Ti=Tt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=et("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.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))},_createButton:function(t,e,i,o,l){var f=et("a",i,o);return f.innerHTML=t,f.href="#",f.title=e,f.setAttribute("role","button"),f.setAttribute("aria-label",e),Le(f),K(f,"click",Xt),K(f,"click",l,this),K(f,"click",this._refocusOnMap,this),f},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ht(this._zoomInButton,e),ht(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(Y(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(Y(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});X.mergeOptions({zoomControl:!0}),X.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ti,this.addControl(this.zoomControl))});var xo=function(t){return new Ti(t)},kn=Tt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=et("div",e),o=this.options;return this._addScales(o,e+"-line",i),t.on(o.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=et("div",e,i)),t.imperial&&(this._iScale=et("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=t*3.2808399,i,o,l;e>5280?(i=e/5280,o=this._getRoundNum(i),this._updateScale(this._iScale,o+" mi",o/i)):(l=this._getRoundNum(e),this._updateScale(this._iScale,l+" ft",l/e))},_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 i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),Po=function(t){return new kn(t)},So='<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>',Mi=Tt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(F.inlineSvg?So+" ":"")+"Leaflet</a>"},initialize:function(t){b(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=et("div","leaflet-control-attribution"),Le(this._container);for(var e in 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> ')}}});X.mergeOptions({attributionControl:!0}),X.addInitHook(function(){this.options.attributionControl&&new Mi().addTo(this)});var Eo=function(t){return new Mi(t)};Tt.Layers=Mn,Tt.Zoom=Ti,Tt.Scale=kn,Tt.Attribution=Mi,be.layers=Co,be.zoom=xo,be.scale=Po,be.attribution=Eo;var Ot=I.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ot.addTo=function(t,e){return t.addHandler(e,this),this};var To={Events:tt},In=F.touch?"touchstart mousedown":"mousedown",Ut=ut.extend({options:{clickTolerance:3}
1,initialize:function(t,e,i,o){b(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(K(this._dragStartTarget,In,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ut._dragging===this&&this.finishDrag(!0),ot(this._dragStartTarget,In,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!_i(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Ut._dragging===this&&this.finishDrag();return}if(!(Ut._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Ut._dragging=this,this._preventOutline&&bi(this._element),vi(),ge(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Cn(this._element);this._startPoint=new W(e.clientX,e.clientY),this._startPos=Jt(this._element),this._parentScale=wi(i);var o=t.type==="mousedown";K(document,o?"mousemove":"touchmove",this._onMove,this),K(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new W(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,_t(t),this._moved||(this.fire("dragstart"),this._moved=!0,Y(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Y(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),dt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ht(document.body,"leaflet-dragging"),this._lastTarget&&(ht(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),ot(document,"mousemove touchmove",this._onMove,this),ot(document,"mouseup touchend touchcancel",this._onUp,this),yi(),ve();var e=this._moved&&this._moving;this._moving=!1,Ut._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function On(t,e,i){var o,l=[1,4,2,8],f,g,w,x,S,N,G,J;for(f=0,N=t.length;f<N;f++)t[f]._code=Qt(t[f],e);for(w=0;w<4;w++){for(G=l[w],o=[],f=0,N=t.length,g=N-1;f<N;g=f++)x=t[f],S=t[g],x._code&G?S._code&G||(J=He(S,x,G,e,i),J._code=Qt(J,e),o.push(J)):(S._code&G&&(J=He(S,x,G,e,i),J._code=Qt(J,e),o.push(J)),o.push(x));t=o}return t}function An(t,e){var i,o,l,f,g,w,x,S,N;if(!t||t.length===0)throw new Error("latlngs not passed");St(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var G=$([0,0]),J=ct(t),vt=J.getNorthWest().distanceTo(J.getSouthWest
1())*J.getNorthEast().distanceTo(J.getNorthWest());vt<1700&&(G=ki(t));var pt=t.length,Et=[];for(i=0;i<pt;i++){var bt=$(t[i]);Et.push(e.project($([bt.lat-G.lat,bt.lng-G.lng])))}for(w=x=S=0,i=0,o=pt-1;i<pt;o=i++)l=Et[i],f=Et[o],g=l.y*f.x-f.y*l.x,x+=(l.x+f.x)*g,S+=(l.y+f.y)*g,w+=g*3;w===0?N=Et[0]:N=[x/w,S/w];var ue=e.unproject(U(N));return $([ue.lat+G.lat,ue.lng+G.lng])}function ki(t){for(var e=0,i=0,o=0,l=0;l<t.length;l++){var f=$(t[l]);e+=f.lat,i+=f.lng,o++}return $([e/o,i/o])}var Mo={__proto__:null,clipPolygon:On,polygonCenter:An,centroid:ki};function zn(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Oo(t,i),t=Io(t,i),t}function Zn(t,e,i){return Math.sqrt(we(t,e,i,!0))}function ko(t,e,i){return we(t,e,i)}function Io(t,e){var i=t.length,o=typeof Uint8Array<"u"?Uint8Array:Array,l=new o(i);l[0]=l[i-1]=1,Ii(t,l,e,0,i-1);var f,g=[];for(f=0;f<i;f++)l[f]&&g.push(t[f]);return g}function Ii(t,e,i,o,l){var f=0,g,w,x;for(w=o+1;w<=l-1;w++)x=we(t[w],t[o],t[l],!0),x>f&&(g=w,f=x);f>i&&(e[g]=1,Ii(t,e,i,o,g),Ii(t,e,i,g,l))}function Oo(t,e){for(var i=[t[0]],o=1,l=0,f=t.length;o<f;o++)Ao(t[o],t[l])>e&&(i.push(t[o]),l=o);return l<f-1&&i.push(t[f-1]),i}var Nn;function Bn(t,e,i,o,l){var f=o?Nn:Qt(t,i),g=Qt(e,i),w,x,S;for(Nn=g;;){if(!(f|g))return[t,e];if(f&g)return!1;w=f||g,x=He(t,e,w,i,l),S=Qt(x,i),w===f?(t=x,f=S):(e=x,g=S)}}function He(t,e,i,o,l){var f=e.x-t.x,g=e.y-t.y,w=o.min,x=o.max,S,N;return i&8?(S=t.x+f*(x.y-t.y)/g,N=x.y):i&4?(S=t.x+f*(w.y-t.y)/g,N=w.y):i&2?(S=x.x,N=t.y+g*(x.x-t.x)/f):i&1&&(S=w.x,N=t.y+g*(w.x-t.x)/f),new W(S,N,l)}function Qt(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 Ao(t,e){var i=e.x-t.x,o=e.y-t.y;return i*i+o*o}function we(t,e,i,o){var l=e.x,f=e.y,g=i.x-l,w=i.y-f,x=g*g+w*w,S;return x>0&&(S=((t.x-l)*g+(t.y-f)*w)/x,S>1?(l=i.x,f=i.y):S>0&&(l+=g*S,f+=w*S)),g=t.x-l,w=t.y-f,o?g*g+w*w:new W(l,f)}function St(t){return!M(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Dn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),St(t)}function Rn(t,e){var i,o,l,f,g,w,x,S;if(!t||t.length===0)throw new Error("latlngs not passed");St(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var N=$([0,0]),G=ct(t),J=G.getNorthWest().distanceTo(G.getSouthWest
vendor: 18,117 bytes, line 1
1())*G.getNorthEast().distanceTo(G.getNorthWest());J<1700&&(N=ki(t));var vt=t.length,pt=[];for(i=0;i<vt;i++){var Et=$(t[i]);pt.push(e.project($([Et.lat-N.lat,Et.lng-N.lng])))}for(i=0,o=0;i<vt-1;i++)o+=pt[i].distanceTo(pt[i+1])/2;if(o===0)S=pt[0];else for(i=0,f=0;i<vt-1;i++)if(g=pt[i],w=pt[i+1],l=g.distanceTo(w),f+=l,f>o){x=(f-o)/l,S=[w.x-x*(w.x-g.x),w.y-x*(w.y-g.y)];break}var bt=e.unproject(U(S));return $([bt.lat+N.lat,bt.lng+N.lng])}var zo={__proto__:null,simplify:zn,pointToSegmentDistance:Zn,closestPointOnSegment:ko,clipSegment:Bn,_getEdgeIntersection:He,_getBitCode:Qt,_sqClosestPointOnSegment:we,isFlat:St,_flat:Dn,polylineCenter:Rn},Oi={project:function(t){return new W(t.lng,t.lat)},unproject:function(t){return new st(t.y,t.x)},bounds:new nt([-180,-90],[180,90])},Ai={R:6378137,R_MINOR:6356752314245179e-9,bounds:new nt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,o=t.lat*e,l=this.R_MINOR/i,f=Math.sqrt(1-l*l),g=f*Math.sin(o),w=Math.tan(Math.PI/4-o/2)/Math.pow((1-g)/(1+g),f/2);return o=-i*Math.log(Math.max(w,1e-10)),new W(t.lng*e*i,o)},unproject:function(t){for(var e=180/Math.PI,i=this.R,o=this.R_MINOR/i,l=Math.sqrt(1-o*o),f=Math.exp(-t.y/i),g=Math.PI/2-2*Math.atan(f),w=0,x=.1,S;w<15&&Math.abs(x)>1e-7;w++)S=l*Math.sin(g),S=Math.pow((1-S)/(1+S),l/2),x=Math.PI/2-2*Math.atan(f*S)-g,g+=x;return new st(g*e,t.x*e/i)}},Zo={__proto__:null,LonLat:Oi,Mercator:Ai,SphericalMercator:oi},No=d({},Wt,{code:"EPSG:3395",projection:Ai,transformation:(function(){var t=.5/(Math.PI*Ai.R);return fe(t,.5,-t,.5)})()}),Fn=d({},Wt,{code:"EPSG:4326",projection:Oi,transformation:fe(1/180,1,-1/180,.5)}),Bo=d({},Bt,{projection:Oi,transformation:fe(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,o=e.lat-t.lat;return Math.sqrt(i*i+o*o)},infinite:!0});Bt.Earth=Wt,Bt.EPSG3395=No,Bt.EPSG3857=ai,Bt.EPSG900913=js,Bt.EPSG4326=Fn,Bt.Simple=Bo;var Mt=ut.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[p(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[p(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})}}});X.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=p(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=p(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 p(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){t=t?M(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[p(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=p(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var o in this._zoomBoundLayers){var l=this._zoomBoundLayers[o].options;t=l.minZoom===void 0?t:Math.min(t,l.minZoom),e=l.maxZoom===void 0?e:Math.max(e,l.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var oe=Mt.extend({initialize:function(t,e){b(this,e),this._layers={};var i,o;if(t)for(i=0,o=t.length;i<o;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){var e=typeof t=="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,o;for(i in this._layers)o=this._layers[i],o[t]&&o[t].apply(o,e);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 p(t)}}),Do=function(t,e){return new oe(t,e)},Dt=oe.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),oe.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),oe.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 Lt;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Ro=function(t,e){return new Dt(t,e)},re=I.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){b(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(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(i,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var i=this.options,o=i[e+"Size"];typeof o=="number"&&(o=[o,o]);var l=U(o),f=U(e==="shadow"&&i.shadowAnchor||i.iconAnchor||l&&l.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),f&&(t.style.marginLeft=-f.x+"px",t.style.marginTop=-f.y+"px"),l&&(t.style.width=l.x+"px",t.style.height=l.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return F.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Fo(t){return new re(t)}var Ce=re.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 typeof Ce.imagePath!="string"&&(Ce.imagePath=this._detectIconPath()),(this.options.imagePath||Ce.imagePath)+re.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(i,o,l){var f=o.exec(i);return f&&f[l]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=et("div","leaflet-default-icon-path",document.body),e=me(t,"background-image")||me(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),Hn=Ot.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ut(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Y(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&&ht(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,o=this._marker.options.autoPanSpeed,l=this._marker.options.autoPanPadding,f=Jt(e._icon),g=i.getPixelBounds(),w=i.getPixelOrigin(),x=yt(g.min._subtract(w).add(l),g.max._subtract(w).subtract(l));if(!x.contains(f)){var S=U((Math.max(x.max.x,f.x)-x.max.x)/(g.max.x-x.max.x)-(Math.min(x.min.x,f.x)-x.min.x)/(g.min.x-x.min.x),(Math.max(x.max.y,f.y)-x.max.y)/(g.max.y-x.max.y)-(Math.min(x.min.y,f.y)-x.min.y)/(g.min.y-x.min.y)).multiplyBy(o);i.panBy(S,{animate:!1}),this._draggable._newPos._add(S),this._draggable._startPos._add(S),dt(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=Z(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&&(j(this._panRequest),this._panRequest=Z(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,o=Jt(e._icon),l=e._map.layerPointToLatLng(o);i&&dt(i,o),e._latlng=l,t.latlng=l,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){j(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),je=Mt.extend({options:{icon:new Ce,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){b(this,e),this._latlng=$(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=$(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),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(i.title=t.title),i.tagName==="IMG"&&(i.alt=t.alt||"")),Y(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&&K(i,"focus",this._panOnFocus,this);var l=t.icon.createShadow(this._shadow),f=!1;l!==this._shadow&&(this._removeShadow(),f=!0),l&&(Y(l,e),l.alt=""),this._shadow=l,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),l&&f&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ot(this._icon,"focus",this._panOnFocus,this),rt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&rt(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&dt(this._icon,t),this._shadow&&dt(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&&(Y(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Hn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Hn(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&&Pt(this._icon,t),this._shadow&&Pt(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?U(e.iconSize):U(0,0),o=e.iconAnchor?U(e.iconAnchor):U(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:i.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Ho(t,e){return new je(t,e)}var Vt=Mt.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 b(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)}}),Ge=Vt.extend({options:{fill:!0,radius:10},initialize:function(t,e){b(this,e),this._latlng=$(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=$(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},setStyle:function(t){var e=t&&t.radius||this._radius;return Vt.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(),o=[t+i,e+i];this._pxBounds=new nt(this._point.subtract(o),this._point.add(o))},_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()}});function jo(t,e){return new Ge(t,e)}var zi=Ge.extend({initialize:function(t,e,i){if(typeof e=="number"&&(e=d({},i,{radius:e})),b(this,e),this._latlng=$(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 Lt(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Vt.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,o=i.options.crs;if(o.distance===Wt.distance){var l=Math.PI/180,f=this._mRadius/Wt.R/l,g=i.project([e+f,t]),w=i.project([e-f,t]),x=g.add(w).divideBy(2),S=i.unproject(x).lat,N=Math.acos((Math.cos(f*l)-Math.sin(e*l)*Math.sin(S*l))/(Math.cos(e*l)*Math.cos(S*l)))/l;(isNaN(N)||N===0)&&(N=f/Math.cos(Math.PI/180*e)),this._point=x.subtract(i.getPixelOrigin()),this._radius=isNaN(N)?0:x.x-i.project([S,t-N]).x,this._radiusY=x.y-g.y}else{var G=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(G).x}this._updateBounds()}});function Go(t,e,i){return new zi(t,e,i)}var Rt=Vt.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){b(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=1/0,i=null,o=we,l,f,g=0,w=this._parts.length;g<w;g++)for(var x=this._parts[g],S=1,N=x.length;S<N;S++){l=x[S-1],f=x[S];var G=o(t,l,f,!0);G<e&&(e=G,i=o(t,l,f))}return i&&(i.distance=Math.sqrt(e)),i}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Rn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=$(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Lt,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return St(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=St(t),o=0,l=t.length;o<l;o++)i?(e[o]=$(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new nt;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 W(t,t);this._rawPxBounds&&(this._pxBounds=new nt([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var o=t[0]instanceof st,l=t.length,f,g;if(o){for(g=[],f=0;f<l;f++)g[f]=this._map.latLngToLayerPoint(t[f]),i.extend(g[f]);e.push(g)}else for(f=0;f<l;f++)this._projectLatlngs(t[f],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;return}var e=this._parts,i,o,l,f,g,w,x;for(i=0,l=0,f=this._rings.length;i<f;i++)for(x=this._rings[i],o=0,g=x.length;o<g-1;o++)w=Bn(x[o],x[o+1],t,o,!0),w&&(e[l]=e[l]||[],e[l].push(w[0]),(w[1]!==x[o+1]||o===g-2)&&(e[l].push(w[1]),l++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,o=t.length;i<o;i++)t[i]=zn(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,o,l,f,g,w,x=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,f=this._parts.length;i<f;i++)for(w=this._parts[i],o=0,g=w.length,l=g-1;o<g;l=o++)if(!(!e&&o===0)&&Zn(t,w[l],w[o])<=x)return!0;return!1}});function Wo(t,e){return new Rt(t,e)}Rt._flat=Dn;var ae=Rt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
1,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return An(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Rt.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof st&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Rt.prototype._setLatLngs.call(this,t),St(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return St(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new W(e,e);if(t=new nt(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var o=0,l=this._rings.length,f;o<l;o++)f=On(this._rings[o],t,!0),f.length&&this._parts.push(f)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,i,o,l,f,g,w,x,S;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(f=0,x=this._parts.length;f<x;f++)for(i=this._parts[f],g=0,S=i.length,w=S-1;g<S;w=g++)o=i[g],l=i[w],o.y>t.y!=l.y>t.y&&t.x<(l.x-o.x)*(t.y-o.y)/(l.y-o.y)+o.x&&(e=!e);return e||Rt.prototype._containsPoint.call(this,t,!0)}});function Uo(t,e){return new ae(t,e)}var Ft=Dt.extend({initialize:function(t,e){b(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=M(t)?t:t.features,i,o,l;if(e){for(i=0,o=e.length;i<o;i++)l=e[i],(l.geometries||l.geometry||l.features||l.coordinates)&&this.addData(l);return this}var f=this.options;if(f.filter&&!f.filter(t))return this;var g=We(t,f);return g?(g.feature=Ke(t),g.defaultOptions=g.options,this.resetStyle(g),f.onEachFeature&&f.onEachFeature(t,g),this.addLayer(g)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=d({},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&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}});function We(t,e){var i=t.type==="Feature"?t.geometry:t,o=i?i.coordinates:null,l=[],f=e&&e.pointToLayer,g=e&&e.coordsToLatLng||Zi,w,x,S,N;if(!o&&!i)return null;switch(i.type){case"Point":return w=g(o),jn(f,t,w,e);case"MultiPoint":for(S=0,N=o.length;S<N;S++)w=g(o[S]),l.push(jn(f,t,w,e));return new Dt(l);case"LineString":case"MultiLineString":return x=Ue(o,i.type==="LineString"?0:1,g),new Rt(x,e);case"Polygon":case"MultiPolygon":return x=Ue(o,i.type==="Polygon"?1:2,g),new ae(x,e);case"GeometryCollection":for(S=0,N=i.geometries.length;S<N;S++){var G=We({geometry:i.geometries[S],type:"Feature",properties:t.properties},e);G&&l.push(G)}return new Dt(l);case"FeatureCollection":for(S=0,N=i.features.length;S<N;S++){var J=We(i.features[S],e);J&&l.push(J)}return new Dt(l);default:throw new Error("Invalid GeoJSON object.")}}function jn(t,e,i,o){return t?t(e,i):new je(i,o&&o.markersInheritOptions&&o)}function Zi(t){return new st(t[1],t[0],t[2])}function Ue(t,e,i){for(var o=[],l=0,f=t.length,g;l<f;l++)g=e?Ue(t[l],e-1,i):(i||Zi)(t[l]),o.push(g);return o}function Ni(t,e){return t=$(t),t.alt!==void 0?[y(t.lng,e),y(t.lat,e),y(t.alt,e)]:[y(t.lng,e),y(t.lat,e)]}function Ve(t,e,i,o){for(var l=[],f=0,g=t.length;f<g;f++)l.push(e?Ve(t[f],St(t[f])?0:e-1,i,o):Ni(t[f],o));return!e&&i&&l.length>0&&l.push(l[0].slice()),l}function he(t,e){return t.feature?d({},t.feature,{geometry:e}):Ke(e)}function Ke(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Bi={toGeoJSON:function(t){return he(this,{type:"Point",coordinates:Ni(this.getLatLng(),t)})}};je.include(Bi),zi.include(Bi),Ge.include(Bi),Rt.include({toGeoJSON:function(t){var e=!St(this._latlngs),i=Ve(this._latlngs,e?1:0,!1,t);return he(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),ae.include({toGeoJSON:function(t){var e=!St(this._latlngs),i=e&&!St(this._latlngs[0]),o=Ve(this._latlngs,i?2:e?1:0,!0,t);return e||(o=[o]),he(this,{type:(i?"Multi":"")+"Polygon",coordinates:o})}}),oe.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),he(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",o=[];return this.eachLayer(function(l){if(l.toGeoJSON){var f=l.toGeoJSON(t);if(i)o.push(f.geometry);else{var g=Ke(f);g.type==="FeatureCollection"?o.push.apply(o,g.features):o.push(g)}}}),i?he(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function Gn(t,e){return new Ft(t,e)}var Vo=Gn,qe=Mt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""}
vendor: 21,585 bytes, line 1
1,initialize:function(t,e,i){this._url=t,this._bounds=ct(e),b(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Y(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){rt(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&&ne(this._image),this},bringToBack:function(){return this._map&&se(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=ct(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=this._url.tagName==="IMG",e=this._image=t?this._url:et("img");if(Y(e,"leaflet-image-layer"),this._zoomAnimated&&Y(e,"leaflet-zoom-animated"),this.options.className&&Y(e,this.options.className),e.onselectstart=m,e.onmousemove=m,e.onload=a(this.fire,this,"load"),e.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}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;Yt(this._image,i,e)},_reset:function(){var t=this._image,e=new nt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();dt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Pt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(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()}}),Ko=function(t,e,i){return new qe(t,e,i)},Wn=qe.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:et("video");if(Y(e,"leaflet-image-layer"),this._zoomAnimated&&Y(e,"leaflet-zoom-animated"),this.options.className&&Y(e,this.options.className),e.onselectstart=m,e.onmousemove=m,e.onloadeddata=a(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),o=[],l=0;l<i.length;l++)o.push(i[l].src);this._url=i.length>0?o:[e.src];return}M(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 f=0;f<this._url.length;f++){var g=et("source");g.src=this._url[f],e.appendChild(g)}}});function qo(t,e,i){return new Wn(t,e,i)}var Un=qe.extend({_initImage:function(){var t=this._image=this._url;Y(t,"leaflet-image-layer"),this._zoomAnimated&&Y(t,"leaflet-zoom-animated"),this.options.className&&Y(t,this.options.className),t.onselectstart=m,t.onmousemove=m}});function Yo(t,e,i){return new Un(t,e,i)}var At=Mt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof st||M(t))?(this._latlng=$(t),b(this,e)):(b(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.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&&Pt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Pt(this._container,1),this.bringToFront(),this.options.interactive&&(Y(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Pt(this._container,0),this._removeTimeout=setTimeout(a(rt,void 0,this._container),200)):rt(this._container),this.options.interactive&&(ht(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=$(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&&ne(this._container),this},bringToBack:function(){return this._map&&se(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Dt){e=null;var i=this._source._layers;for(var o in i)if(i[o]._map){e=i[o];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)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof e=="string")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=U(this.options.offset),i=this._getAnchor();this._zoomAnimated?dt(this._container,t.add(i)):e=e.add(t).add(i);var o=this._containerBottom=-e.y,l=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=l+"px"}},_getAnchor:function(){return[0,0]}});X.include({_initOverlay:function(t,e,i,o){var l=e;return l instanceof t||(l=new t(o).setContent(e)),i&&l.setLatLng(i),l}}),Mt.include({_initOverlay:function(t,e,i,o){var l=i;return l instanceof t?(b(l,o),l._source=this):(l=e&&!o?e:new t(o,this),l.setContent(i)),l}});var Ye=At.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,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,At.prototype.openOn.call(this,t)},onAdd:function(t){At.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Vt||this._source.on("preclick",$t))},onRemove:function(t){At.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Vt||this._source.off("preclick",$t))},getEvents:function(){var t=At.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?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=et("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=et("div",t+"-content-wrapper",e);if(this._contentNode=et("div",t+"-content",i),Le(e),Si(this._contentNode),K(e,"contextmenu",$t),this._tipContainer=et("div",t+"-tip-container",e),this._tip=et("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=et("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">×</span>',K(o,"click",function(l){_t(l),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 o=t.offsetHeight,l=this.options.maxHeight,f="leaflet-popup-scrolled";l&&o>l?(e.height=l+"px",Y(t,f)):ht(t,f),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();dt(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(me(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,o=this._containerWidth,l=new W(this._containerLeft,-i-this._containerBottom);l._add(Jt(this._container));var f=t.layerPointToContainerPoint(l),g=U(this.options.autoPanPadding),w=U(this.options.autoPanPaddingTopLeft||g),x=U(this.options.autoPanPaddingBottomRight||g),S=t.getSize(),N=0,G=0;f.x+o+x.x>S.x&&(N=f.x+o-S.x+x.x),f.x-N-w.x<0&&(N=f.x-w.x),f.y+i+x.y>S.y&&(G=f.y+i-S.y+x.y),f.y-G-w.y<0&&(G=f.y-w.y),(N||G)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([N,G]))}},_getAnchor:function(){return U(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Jo=function(t,e){return new Ye(t,e)};X.mergeOptions({closePopupOnClick:!0}),X.include({openPopup:function(t,e,i){return this._initOverlay(Ye,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Mt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ye,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 Dt||(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():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){Xt(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Vt)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var Je=At.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){At.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){At.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=At.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=et("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+p(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,o=this._map,l=this._container,f=o.latLngToContainerPoint(o.getCenter()),g=o.layerPointToContainerPoint(t),w=this.options.direction,x=l.offsetWidth,S=l.offsetHeight,N=U(this.options.offset),G=this._getAnchor();w==="top"?(e=x/2,i=S):w==="bottom"?(e=x/2,i=0):w==="center"?(e=x/2,i=S/2):w==="right"?(e=0,i=S/2):w==="left"?(e=x,i=S/2):g.x<f.x?(w="right",e=0,i=S/2):(w="left",e=x+(N.x+G.x)*2,i=S/2),t=t.subtract(U(e,i,!0)).add(N).add(G),ht(l,"leaflet-tooltip-right"),ht(l,"leaflet-tooltip-left"),ht(l,"leaflet-tooltip-top"),ht(l,"leaflet-tooltip-bottom"),Y(l,"leaflet-tooltip-"+w),dt(l,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Pt(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return U(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),$o=function(t,e){return new Je(t,e)};X.include({openTooltip:function(t,e,i){return this._initOverlay(Je,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Mt.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Je,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 Dt||(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=typeof t.getElement=="function"&&t.getElement();e&&(K(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),K(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement=="function"&&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)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e=t.latlng,i,o;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(i),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var Vn=re.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(Ne(e),e.appendChild(i.html)):e.innerHTML=i.html!==!1?i.html:"",i.bgPos){var o=U(i.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Xo(t){return new Vn(t)}re.Default=Ce;var xe=Mt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:F.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){b(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),rt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ne(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(se(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=_(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 W?t:new W(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e=this.getPane().children,i=-t(-1/0,1/0),o=0,l=e.length,f;o<l;o++)f=e[o].style.zIndex,e[o]!==this._container&&f&&(i=t(i,+f));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!F.ielt9){Pt(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var o in this._tiles){var l=this._tiles[o];if(!(!l.current||!l.loaded)){var f=Math.min(1,(t-l.loaded)/200);Pt(l.el,f),f<1?e=!0:(l.active?i=!0:this._onOpaqueTile(l),l.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(j(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=et("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(t!==void 0){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)):(rt(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var o=this._levels[t],l=this._map;return o||(o=this._levels[t]={},o.el=et("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=l.project(l.unproject(l.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,l.getCenter(),l.getZoom()),m(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.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)rt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
1,_retainParent:function(t,e,i,o){var l=Math.floor(t/2),f=Math.floor(e/2),g=i-1,w=new W(+l,+f);w.z=+g;var x=this._tileCoordsToKey(w),S=this._tiles[x];return S&&S.active?(S.retain=!0,!0):(S&&S.loaded&&(S.retain=!0),g>o?this._retainParent(l,f,g,o):!1)},_retainChildren:function(t,e,i,o){for(var l=2*t;l<2*t+2;l++)for(var f=2*e;f<2*e+2;f++){var g=new W(l,f);g.z=i+1;var w=this._tileCoordsToKey(g),x=this._tiles[w];if(x&&x.active){x.retain=!0;continue}else x&&x.loaded&&(x.retain=!0);i+1<o&&this._retainChildren(l,f,i+1,o)}},_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 e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,o){var l=Math.round(e);this.options.maxZoom!==void 0&&l>this.options.maxZoom||this.options.minZoom!==void 0&&l<this.options.minZoom?l=void 0:l=this._clampZoom(l);var f=this.options.updateWhenZooming&&l!==this._tileZoom;(!o||f)&&(this._tileZoom=l,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),l!==void 0&&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 o=this._map.getZoomScale(i,t.zoom),l=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,i)).round();F.any3d?Yt(t.el,l,o):dt(t.el,l)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),o=this._tileZoom,l=this._map.getPixelWorldBounds(this._tileZoom);l&&(this._globalTileRange=this._pxBoundsToTileRange(l)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],o).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(),o=e.getZoomScale(i,this._tileZoom),l=e.project(t,this._tileZoom).floor(),f=e.getSize().divideBy(o*2);return new nt(l.subtract(f),l.add(f))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var o=this._getTiledPixelBounds(t),l=this._pxBoundsToTileRange(o),f=l.getCenter(),g=[],w=this.options.keepBuffer,x=new nt(l.getBottomLeft().subtract([w,-w]),l.getTopRight().add([w,-w]));if(!(isFinite(l.min.x)&&isFinite(l.min.y)&&isFinite(l.max.x)&&isFinite(l.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var S in this._tiles){var N=this._tiles[S].coords;(N.z!==this._tileZoom||!x.contains(new W(N.x,N.y)))&&(this._tiles[S].current=!1)}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var G=l.min.y;G<=l.max.y;G++)for(var J=l.min.x;J<=l.max.x;J++){var vt=new W(J,G);if(vt.z=this._tileZoom,!!this._isValidTile(vt)){var pt=this._tiles[this._tileCoordsToKey(vt)];pt?pt.current=!0:g.push(vt)}}if(g.sort(function(bt,ue){return bt.distanceTo(f)-ue.distanceTo(f)}),g.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Et=document.createDocumentFragment();for(J=0;J<g.length;J++)this._addTile(g[J],Et);this._level.el.appendChild(Et)}}}},_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 o=this._tileCoordsToBounds(t);return ct(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),o=t.scaleBy(i),l=o.add(i),f=e.unproject(o,t.z),g=e.unproject(l,t.z);return[f,g]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new Lt(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 W(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(rt(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Y(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=m,t.onmousemove=m,F.ielt9&&this.options.opacity<1&&Pt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),l=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(l),this.createTile.length<2&&Z(a(this._tileReady,this,t,null,l)),dt(l,i),this._tiles[o]={el:l,coords:t,current:!0},e.appendChild(l),this.fire("tileloadstart",{tile:l,coords:t})}
vendor: 6,027 bytes, line 1
1,_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);i=this._tiles[o],i&&(i.loaded=+new Date,this._map._fadeAnimated?(Pt(i.el,0),j(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(Y(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),F.ielt9||!this._map._fadeAnimated?Z(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new W(this._wrapX?v(t.x,this._wrapX):t.x,this._wrapY?v(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new nt(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}});function Qo(t){return new xe(t)}var le=xe.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=b(this,e),e.detectRetina&&F.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),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return K(i,"load",a(this._tileOnLoad,this,e,i)),K(i,"error",a(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:F.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return k(this._url,d(e,this.options))},_tileOnLoad:function(t,e){F.ielt9?setTimeout(a(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,o=this.options.zoomOffset;return i&&(t=e-t),t+o},_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,e.onload=m,e.onerror=m,!e.complete)){e.src=R;var i=this._tiles[t].coords;rt(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",R),xe.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===R))return xe.prototype._tileReady.call(this,t,e,i)}});function Kn(t,e){return new le(t,e)}var qn=le.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,e){this._url=t;var i=d({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);e=b(this,e);var l=e.detectRetina&&F.retina?2:1,f=this.getTileSize();i.width=f.x*l,i.height=f.y*l,this.wmsParams=i},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,le.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,o=yt(i.project(e[0]),i.project(e[1])),l=o.min,f=o.max,g=(this._wmsVersion>=1.3&&this._crs===Fn?[l.y,l.x,f.y,f.x]:[l.x,l.y,f.x,f.y]).join(","),w=le.prototype.getTileUrl.call(this,t);return w+O(this.wmsParams,w,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+g},setParams:function(t,e){return d(this.wmsParams,t),e||this.redraw(),this}});function tr(t,e){return new qn(t,e)}le.WMS=qn,Kn.wms=tr;var Ht=Mt.extend({options:{padding:.1},initialize:function(t){b(this,t),p(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Y(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),o=this._map.getSize().multiplyBy(.5+this.options.padding),l=this._map.project(this._center,e),f=o.multiplyBy(-i).add(l).subtract(this._map._getNewPixelOrigin(t,e));F.any3d?Yt(this._container,f,i):dt(this._container,f)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in 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)).roun
1d();this._bounds=new nt(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Yn=Ht.extend({options:{tolerance:0},getEvents:function(){var t=Ht.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Ht.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");K(t,"mousemove",this._onMouseMove,this),K(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),K(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){j(this._redrawRequest),delete this._ctx,rt(this._container),ot(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ht.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),o=F.retina?2:1;dt(e,t.min),e.width=o*i.x,e.height=o*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",F.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Ht.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[p(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,o=e.prev;i?i.prev=o:this._drawLast=o,o?o.next=i:this._drawFirst=i,delete t._order,delete this._layers[p(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(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],o,l;for(l=0;l<e.length;l++){if(o=Number(e[l]),isNaN(o))return;i.push(o)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||Z(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new nt,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 o=this._drawFirst;o;o=o.next)t=o.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,o,l,f,g=t._parts,w=g.length,x=this._ctx;if(w){for(x.beginPath(),i=0;i<w;i++){for(o=0,l=g[i].length;o<l;o++)f=g[i][o],x[o?"lineTo":"moveTo"](f.x,f.y);e&&x.closePath()}this._fillStroke(x,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,i=this._ctx,o=Math.max(Math.round(t._radius),1),l=(Math.max(Math.round(t._radiusY),1)||o)/o;l!==1&&(i.save(),i.scale(1,l)),i.beginPath(),i.arc(e.x,e.y/l,o,0,Math.PI*2,!1),l!==1&&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&&i.weight!==0&&(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=this._map.mouseEventToLayerPoint(t),i,o,l=this._drawFirst;l;l=l.next)i=l.layer,i.options.interactive&&i._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i))&&(o=i);this._fireEvent(o?[o]:!1,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&&(ht(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,o,l=this._drawFirst;l;l=l.next)i=l.layer,i.options.interactive&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(Y(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}}
vendor: 17,680 bytes, line 1
1,_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,o=e.prev;if(i)i.prev=o;else return;o?o.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,o=e.prev;if(o)o.next=i;else return;i?i.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function Jn(t){return F.canvas?new Yn(t):null}var Pe=(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">')}})(),er={_initContainer:function(){this._container=et("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Ht.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Pe("shape");Y(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Pe("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[p(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;rt(e),t.removeInteractiveTarget(e),delete this._layers[p(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,o=t.options,l=t._container;l.stroked=!!o.stroke,l.filled=!!o.fill,o.stroke?(e||(e=t._stroke=Pe("stroke")),l.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=M(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(l.removeChild(e),t._stroke=null),o.fill?(i||(i=t._fill=Pe("fill")),l.appendChild(i),i.color=o.fillColor||o.color,i.opacity=o.fillOpacity):i&&(l.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),o=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ne(t._container)},_bringToBack:function(t){se(t._container)}},$e=F.vml?Pe:Qi,Se=Ht.extend({_initContainer:function(){this._container=$e("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$e("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){rt(this._container),ot(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Ht.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)),dt(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=$e("path");t.options.className&&Y(e,t.options.className),t.options.interactive&&Y(e,"leaflet-interactive"),this._updateStyle(t),this._layers[p(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){rt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[p(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,tn(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||i,l="a"+i+","+o+" 0 1,0 ",f=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+l+i*2+",0 "+l+-i*2+",0 ";this._setPath(t,f)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ne(t._path)},_bringToBack:function(t){se(t._path)}});F.vml&&Se.include(er);function $n(t){return F.svg||F.vml?new Se(t):null}X.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(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Jn(t)||$n(t)}});var Xn=ae.extend({initialize:function(t,e){ae.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=ct(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function ir(t,e){return new Xn(t,e)}Se.create=$e,Se.pointsToPath=tn,Ft.geometryToLayer=We,Ft.coordsToLatLng=Zi,Ft.coordsToLatLngs=Ue,Ft.latLngToCoords=Ni,Ft.latLngsToCoords=Ve,Ft.getFeature=he,Ft.asFeature=Ke,X.mergeOptions({boxZoom:!0});var Qn=Ot.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(){K(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ot(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){rt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ge(),vi(),this._startPoint=this._map.mouseEventToContainerPoint(t),K(document,{contextmenu:Xt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=et("div","leaflet-zoom-box",this._container),Y(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new nt(this._point,this._startPoint),i=e.getSize();dt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(rt(this._box),ht(this._container,"leaflet-crosshair")),ve(),yi(),ot(document,{contextmenu:Xt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var e=new Lt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});X.addInitHook("addHandler","boxZoom",Qn),X.mergeOptions({doubleClickZoom:!0});var ts=Ot.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(),o=e.options.zoomDelta,l=t.originalEvent.shiftKey?i-o:i+o;e.options.doubleClickZoom==="center"?e.setZoom(l):e.setZoomAround(t.containerPoint,l)}});X.addInitHook("addHandler","doubleClickZoom",ts),X.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var es=Ot.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Ut(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))}Y(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ht(this._map._container,"leaflet-grab"),ht(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=ct(this._map.options.maxBounds);this._offsetLimit=yt(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,o=this._draggable._newPos.x,l=(o-e+i)%t+e-i,f=(o+e+i)%t-e-i,g=Math.abs(l+i)<Math.abs(f+i)?l:f;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=g},_onDragEnd:function(t){var e=this._map,i=e.options,o=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var l=this._lastPos.subtract(this._positions[0]),f=(this._lastTime-this._times[0])/1e3,g=i.easeLinearity,w=l.multiplyBy(g/f),x=w.distanceTo([0,0]),S=Math.min(i.inertiaMaxSpeed,x),N=w.multiplyBy(S/x),G=S/(i.inertiaDeceleration*g),J=N.multiplyBy(-G/2).round();!J.x&&!J.y?e.fire("moveend"):(J=e._limitOffset(J,e.options.maxBounds),Z(function(){e.panBy(J,{duration:G,easeLinearity:g,noMoveStart:!0,animate:!0})}))}}});X.addInitHook("addHandler","dragging",es),X.mergeOptions({keyboard:!0,keyboardPanDelta:80});var is=Ot.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"),K(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(),ot(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,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,o,l;for(o=0,l=i.left.length;o<l;o++)e[i.left[o]]=[-1*t,0];for(o=0,l=i.right.length;o<l;o++)e[i.right[o]]=[t,0];for(o=0,l=i.down.length;o<l;o++)e[i.down[o]]=[0,t];for(o=0,l=i.up.length;o<l;o++)e[i.up[o]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,o,l;for(o=0,l=i.zoomIn.length;o<l;o++)e[i.zoomIn[o]]=t;for(o=0,l=i.zoomOut.length;o<l;o++)e[i.zoomOut[o]]=-t},_addHooks:function(){K(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){ot(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,i=this._map,o;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(o=this._panKeys[e],t.shiftKey&&(o=U(o).multiplyBy(3)),i.options.maxBounds&&(o=i._limitOffset(U(o),i.options.maxBounds)),i.options.worldCopyJump){var l=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(o)));i.panTo(l)}else i.panBy(o)}else if(e in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey)i.closePopup();else return;Xt(t)}}});X.addInitHook("addHandler","keyboard",is),X.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ns=Ot.extend({addHooks:function(){K(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){ot(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=En(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),o),Xt(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(this._map.options.wheelPxPerZoomLevel*4),l=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,f=i?Math.ceil(l/i)*i:l,g=t._limitZoom(e+(this._delta>0?f:-f))-e;this._delta=0,this._startTime=null,g&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+g):t.setZoomAround(this._lastMousePos,e+g))}});X.addInitHook("addHandler","scrollWheelZoom",ns);var nr=600;X.mergeOptions({tapHold:F.touchNative&&F.safari&&F.mobile,tapTolerance:15});var ss=Ot.extend({addHooks:function(){K(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ot(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new W(e.clientX,e.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(K(document,"touchend",_t),K(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),nr),K(document,"touchend touchcancel contextmenu",this._cancel,this),K(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){ot(document,"touchend",_t),ot(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),ot(document,"touchend touchcancel contextmenu",this._cancel,this),ot(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new W(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)}});X.addInitHook("addHandler","tapHold",ss),X.mergeOptions({touchZoom:F.touch,bounceAtZoomLimits:!0});var os=Ot.extend({addHooks:function(){Y(this._map._container,"leaflet-touch-zoom"),K(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),ot(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(o)._divideBy(2))),this._startDist=i.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),K(document,"touchmove",this._onTouchMove,this),K(document,"touchend touchcancel",this._onTouchEnd,this),_t(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),l=i.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(l,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
1Zoom()&&l<1||this._zoom>e.getMaxZoom()&&l>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,l===1)return}else{var f=i._add(o)._divideBy(2)._subtract(this._centerPoint);if(l===1&&f.x===0&&f.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(f),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),j(this._animRequest);var g=a(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Z(g,this,!0),_t(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,j(this._animRequest),ot(document,"touchmove",this._onTouchMove,this),ot(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))}});X.addInitHook("addHandler","touchZoom",os),X.BoxZoom=Qn,X.DoubleClickZoom=ts,X.Drag=es,X.Keyboard=is,X.ScrollWheelZoom=ns,X.TapHold=ss,X.TouchZoom=os,r.Bounds=nt,r.Browser=F,r.CRS=Bt,r.Canvas=Yn,r.Circle=zi,r.CircleMarker=Ge,r.Class=I,r.Control=Tt,r.DivIcon=Vn,r.DivOverlay=At,r.DomEvent=bo,r.DomUtil=yo,r.Draggable=Ut,r.Evented=ut,r.FeatureGroup=Dt,r.GeoJSON=Ft,r.GridLayer=xe,r.Handler=Ot,r.Icon=re,r.ImageOverlay=qe,r.LatLng=st,r.LatLngBounds=Lt,r.Layer=Mt,r.LayerGroup=oe,r.LineUtil=zo,r.Map=X,r.Marker=je,r.Mixin=To,r.Path=Vt,r.Point=W,r.PolyUtil=Mo,r.Polygon=ae,r.Polyline=Rt,r.Popup=Ye,r.PosAnimation=Tn,r.Projection=Zo,r.Rectangle=Xn,r.Renderer=Ht,r.SVG=Se,r.SVGOverlay=Un,r.TileLayer=le,r.Tooltip=Je,r.Transformation=ri,r.Util=it,r.VideoOverlay=Wn,r.bind=a,r.bounds=yt,r.canvas=Jn,r.circle=Go,r.circleMarker=jo,r.control=be,r.divIcon=Xo,r.extend=d,r.featureGroup=Ro,r.geoJSON=Gn,r.geoJson=Vo,r.gridLayer=Qo,r.icon=Fo,r.imageOverlay=Ko,r.latLng=$,r.latLngBounds=ct,r.layerGroup=Do,r.map=wo,r.marker=Ho,r.point=U,r.polygon=Uo,r.polyline=Wo,r.popup=Jo,r.rectangle=ir,r.setOptions=b,r.stamp=p,r.svg=$n,r.svgOverlay=Yo,r.tileLayer=Kn,r.tooltip=$o,r.transformation=fe,r.version=u,r.videoOverlay=qo;var sr=window.L;r.noConflict=function(){return window.L=sr,this},window.L=r}))})(Me,Me.exports)),Me.exports}pr();var ke={exports:{}},_r=ke.exports,us;function mr(){return us||(us=1,(function(h,n){(function(r,u){u(n)})(_r,function(r){var u=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(s){L.Util.setOptions(this,s),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 a=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,a?this._withAnimation:this._noAnimation),this._markerCluster=a?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(s){if(s instanceof L.LayerGroup)return this.addLayers([s]);if(!s.getLatLng)return this._nonPointGroup.addLayer(s),this.fire("layeradd",{layer:s}),this;if(!this._map)return this._needsClustering.push(s),this.fire("layeradd",{layer:s}),this;if(this.hasLayer(s))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(s,this._maxZoom),this.fire("layeradd",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var a=s,c=this._zoom;if(s.__parent)for(;a.__parent._zoom>=c;)a=a.__parent;
1return this._currentShownBounds.contains(a.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(s,a):this._animationAddLayerNonAnimated(s,a)),this},removeLayer:function(s){return s instanceof L.LayerGroup?this.removeLayers([s]):s.getLatLng?this._map?s.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(s)),this._removeLayer(s,!0),this.fire("layerremove",{layer:s}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),s.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(s)&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,s)&&this.hasLayer(s)&&this._needsRemoving.push({layer:s,latlng:s._latlng}),this.fire("layerremove",{layer:s}),this):(this._nonPointGroup.removeLayer(s),this.fire("layerremove",{layer:s}),this)},addLayers:function(s,a){if(!L.Util.isArray(s))return this.addLayer(s);var c=this._featureGroup,p=this._nonPointGroup,_=this.options.chunkedLoading,v=this.options.chunkInterval,m=this.options.chunkProgress,y=s.length,C=0,P=!0,b;if(this._map){var O=new Date().getTime(),T=L.bind(function(){var M=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();C<y;C++){if(_&&C%200===0){var A=new Date().getTime()-M;if(A>v)break}if(b=s[C],b instanceof L.LayerGroup){P&&(s=s.slice(),P=!1),this._extractNonGroupLayers(b,s),y=s.length;continue}if(!b.getLatLng){p.addLayer(b),a||this.fire("layeradd",{layer:b});continue}if(!this.hasLayer(b)&&(this._addLayer(b,this._maxZoom),a||this.fire("layeradd",{layer:b}),b.__parent&&b.__parent.getChildCount()===2)){var R=b.__parent.getAllChildMarkers(),z=R[0]===b?R[1]:R[0];c.removeLayer(z)}}m&&m(C,y,new Date().getTime()-O),C===y?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(T,this.options.chunkDelay)},this);T()}else for(var k=this._needsClustering;C<y;C++){if(b=s[C],b instanceof L.LayerGroup){P&&(s=s.slice(),P=!1),this._extractNonGroupLayers(b,s),y=s.length;continue}if(!b.getLatLng){p.addLayer(b);continue}this.hasLayer(b)||k.push(b)}return this},removeLayers:function(s){var a,c,p=s.length,_=this._featureGroup,v=this._nonPointGroup,m=!0;if(!this._map){for(a=0;a<p;a++){if(c=s[a],c instanceof L.LayerGroup){m&&(s=s.slice(),m=!1),this._extractNonGroupLayers(c,s),p=s.length;continue}this._arraySplice(this._needsClustering,c),v.removeLayer(c),this.hasLayer(c)&&this._needsRemoving.push({layer:c,latlng:c._latlng}),this.fire("layerremove",{layer:c})}return this}if(this._unspiderfy){this._unspiderfy();var y=s.slice(),C=p;for(a=0;a<C;a++){if(c=y[a],c instanceof L.LayerGroup){this._extractNonGroupLayers(c,y),C=y.length;continue}this._unspiderfyLayer(c)}}for(a=0;a<p;a++){if(c=s[a],c instanceof L.LayerGroup){m&&(s=s.slice(),m=!1),this._extractNonGroupLayers(c,s),p=s.length;continue}if(!c.__parent){v.removeLayer(c),this.fire("layerremove",{layer:c});continue}this._removeLayer(c,!0,!0),this.fire("layerremove",{layer:c}),_.hasLayer(c)&&(_.removeLayer(c),c.clusterShow&&c.clusterShow())}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(s){s.off(this._childMarkerEventHandlers,this),delete s.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var s=new L.LatLngBounds;this._topClusterLevel&&s.extend(this._topClusterLevel._bounds);for(var a=this._needsClustering.length-1;a>=0;a--)s.extend(this._needsClustering[a].getLatLng());return s.extend(this._nonPointGroup.getBounds()),s},eachLayer:function(s,a){var c=this._needsClustering.slice(),p=this._needsRemoving,_,v,m;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(c),v=c.length-1;v>=0;v--){for(_=!0,m=p.length-1;m>=0;m--)if(p[m].layer===c[v]){_=!1;break}_&&s.call(a,c[v])}this._nonPointGroup.eachLayer(s,a)},getLayers:function(){var s=[];return this.eachLayer(function(a){s.push(a)}),s},getLayer:function(s){var a=null;return s=parseInt(s,10),this.eachLayer(function(c){L.stamp(c)===s&&(a=c)}),a},hasLayer:function(s){if(!s)return!1;var a,c=this._needsClustering;for(a=c.length-1;a>=0;a--)if(c[a]===s)return!0;for(c=this._needsRemoving,a=c.length-1;a>=0;a--)if(c[a].layer===s)return!1;return!!(s.__parent&&s.__parent._group===this)||this._nonPointGroup.hasLayer(s)},zoomToShowLayer:function(s,a){var c=this._map;typeof a!="function"&&(a=function(){});var p=function(){(c.hasLayer(s)||c.hasLayer(s.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",p,this),this.off("animationend",p,this),c.hasLayer(s)?a():s.__parent._icon&&(this.once("spiderfied",a,this),s.__parent.spiderfy()))};s._icon&&this._map.getBounds().contains(s.getLatLng())?a():s.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",p,this),this._map.panTo(s.getLatLng())):(this._map.on("moveend",p,this),this.on("animationend",p,this),s.__parent.zoomToBounds())},onAdd:function(s){this._map=s;var a,c,p;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";
vendor: 5,074 bytes, line 1
1for(this._featureGroup.addTo(s),this._nonPointGroup.addTo(s),this._gridClusters||this._generateInitialClusters(),this._maxLat=s.options.crs.projection.MAX_LATITUDE,a=0,c=this._needsRemoving.length;a<c;a++)p=this._needsRemoving[a],p.newlatlng=p.layer._latlng,p.layer._latlng=p.latlng;for(a=0,c=this._needsRemoving.length;a<c;a++)p=this._needsRemoving[a],this._removeLayer(p.layer,!0),p.layer._latlng=p.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(),c=this._needsClustering,this._needsClustering=[],this.addLayers(c,!0)},onRemove:function(s){s.off("zoomend",this._zoomEnd,this),s.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(s){for(var a=s;a&&!a._icon;)a=a.__parent;return a||null},_arraySplice:function(s,a){for(var c=s.length-1;c>=0;c--)if(s[c]===a)return s.splice(c,1),!0},_removeFromGridUnclustered:function(s,a){for(var c=this._map,p=this._gridUnclustered,_=Math.floor(this._map.getMinZoom());a>=_&&p[a].removeObject(s,c.project(s.getLatLng(),a));a--);},_childMarkerDragStart:function(s){s.target.__dragStart=s.target._latlng},_childMarkerMoved:function(s){if(!this._ignoreMove&&!s.target.__dragStart){var a=s.target._popup&&s.target._popup.isOpen();this._moveChild(s.target,s.oldLatLng,s.latlng),a&&s.target.openPopup()}},_moveChild:function(s,a,c){s._latlng=a,this.removeLayer(s),s._latlng=c,this.addLayer(s)},_childMarkerDragEnd:function(s){var a=s.target.__dragStart;delete s.target.__dragStart,a&&this._moveChild(s.target,a,s.target._latlng)},_removeLayer:function(s,a,c){var p=this._gridClusters,_=this._gridUnclustered,v=this._featureGroup,m=this._map,y=Math.floor(this._map.getMinZoom());a&&this._removeFromGridUnclustered(s,this._maxZoom);var C=s.__parent,P=C._markers,b;for(this._arraySplice(P,s);C&&(C._childCount--,C._boundsNeedUpdate=!0,!(C._zoom<y));)a&&C._childCount<=1?(b=C._markers[0]===s?C._markers[1]:C._markers[0],p[C._zoom].removeObject(C,m.project(C._cLatLng,C._zoom)),_[C._zoom].addObject(b,m.project(b.getLatLng(),C._zoom)),this._arraySplice(C.__parent._childClusters,C),C.__parent._markers.push(b),b.__parent=C.__parent,C._icon&&(v.removeLayer(C),c||v.addLayer(b))):C._iconNeedsUpdate=!0,C=C.__parent;delete s.__parent},_isOrIsParent:function(s,a){for(;a;){if(s===a)return!0;a=a.parentNode}return!1},fire:function(s,a,c){if(a&&a.layer instanceof L.MarkerCluster){if(a.originalEvent&&this._isOrIsParent(a.layer._icon,a.originalEvent.relatedTarget))return;s="cluster"+s}L.FeatureGroup.prototype.fire.call(this,s,a,c)},listens:function(s,a){return L.FeatureGroup.prototype.listens.call(this,s,a)||L.FeatureGroup.prototype.listens.call(this,"cluster"+s,a)},_defaultIconCreateFunction:function(s){var a=s.getChildCount(),c=" marker-cluster-";return a<10?c+="small":a<100?c+="medium":c+="large",new L.DivIcon({html:"<div><span>"+a+"</span></div>",className:"marker-cluster"+c,iconSize:new L.Point(40,40)})},_bindEvents:function(){var s=this._map,a=this.options.spiderfyOnMaxZoom,c=this.options.showCoverageOnHover,p=this.options.zoomToBoundsOnClick,_=this.options.spiderfyOnEveryZoom;(a||p||_)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),c&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),s.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(s){var a=s.layer,c=a;if(!(s.type==="clusterkeypress"&&s.originalEvent&&s.originalEvent.keyCode!==13)){for(;c._childClusters.length===1;)c=c._childClusters[0];c._zoom===this._maxZoom&&c._childCount===a._childCount&&this.options.spiderfyOnMaxZoom?a.spiderfy():this.options.zoomToBoundsOnClick&&a.zoomToBounds(),this.options.spiderfyOnEveryZoom&&a.spiderfy(),s.originalEvent&&s.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(s){var a=this._map;this._inZoomAnimation||(this._shownPolygon&&a.removeLayer(this._shownPolygon),s.layer.getChildCount()>2&&s.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(s.layer.getConvexHull(),this.options.polygonOptions),a.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var s=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,c=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom,_=this._map;(s||c||p)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),_.off("zoomend",this._hideCoverage,this))}
1,_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var s=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,s),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),s),this._currentShownBounds=s}},_generateInitialClusters:function(){var s=Math.ceil(this._map.getMaxZoom()),a=Math.floor(this._map.getMinZoom()),c=this.options.maxClusterRadius,p=c;typeof c!="function"&&(p=function(){return c}),this.options.disableClusteringAtZoom!==null&&(s=this.options.disableClusteringAtZoom-1),this._maxZoom=s,this._gridClusters={},this._gridUnclustered={};for(var _=s;_>=a;_--)this._gridClusters[_]=new L.DistanceGrid(p(_)),this._gridUnclustered[_]=new L.DistanceGrid(p(_));this._topClusterLevel=new this._markerCluster(this,a-1)},_addLayer:function(s,a){var c=this._gridClusters,p=this._gridUnclustered,_=Math.floor(this._map.getMinZoom()),v,m;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(s),s.on(this._childMarkerEventHandlers,this);a>=_;a--){v=this._map.project(s.getLatLng(),a);var y=c[a].getNearObject(v);if(y){y._addChild(s),s.__parent=y;return}if(y=p[a].getNearObject(v),y){var C=y.__parent;C&&this._removeLayer(y,!1);var P=new this._markerCluster(this,a,y,s);c[a].addObject(P,this._map.project(P._cLatLng,a)),y.__parent=P,s.__parent=P;var b=P;for(m=a-1;m>C._zoom;m--)b=new this._markerCluster(this,m,b),c[m].addObject(b,this._map.project(y.getLatLng(),m));C._addChild(b),this._removeFromGridUnclustered(y,a);return}p[a].addObject(s,v)}this._topClusterLevel._addChild(s),s.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(s){s instanceof L.MarkerCluster&&s._iconNeedsUpdate&&s._updateIcon()})},_enqueue:function(s){this._queue.push(s),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var s=0;s<this._queue.length;s++)this._queue[s].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var s=Math.round(this._map._zoom);this._processQueue(),this._zoom<s&&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,s)):this._zoom>s?(this._animationStart(),this._animationZoomOut(this._zoom,s)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(s){var a=this._maxLat;return a!==void 0&&(s.getNorth()>=a&&(s._northEast.lat=1/0),s.getSouth()<=-a&&(s._southWest.lat=-1/0)),s},_animationAddLayerNonAnimated:function(s,a){if(a===s)this._featureGroup.addLayer(s);else if(a._childCount===2){a._addToMap();var c=a.getAllChildMarkers();this._featureGroup.removeLayer(c[0]),this._featureGroup.removeLayer(c[1])}else a._updateIcon()},_extractNonGroupLayers:function(s,a){var c=s.getLayers(),p=0,_;for(a=a||[];p<c.length;p++){if(_=c[p],_ instanceof L.LayerGroup){this._extractNonGroupLayers(_,a);continue}a.push(_)}return a},_overrideMarkerIcon:function(s){var a=s.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[s]}});return a}});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(s,a){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(s,a){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(s,a){this._animationAddLayerNonAnimated(s,a)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(s,a){var c=this._getExpandedVisibleBounds(),p=this._featureGroup,_=Math.floor(this._map.getMinZoom()),v;this._ignoreMove=!0,this._topClusterLevel._recursively(c,s,_,function(m){var y=m._latlng,C=m._markers,P;for(c.contains(y)||(y=null),m._isSingleParent()&&s+1===a?(p.removeLayer(m),m._recursivelyAddChildrenToMap(null,a,c)):(m.clusterHide(),m._recursivelyAddChildrenToMap(y,a,c)),v=C.length-1;v>=0;v--)P=C[v],c.contains(P._latlng)||p.removeLayer(P)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(c,a),p.eachLayer(function(m){!(m instanceof L.MarkerCluster)&&m._icon&&m.clusterShow()}),this._topClusterLevel._recursively(c,s,a,function(m){m._recursivelyRestoreChildPositions(a)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(c,s,_,function(m){p.removeLayer(m),m.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(s,a){this._animationZoomOutSingle(this._topClusterLevel,s-1,a),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s,this._getExpandedVisibleBounds())},_animationAddLayer:function(s,a){var c=this,p=this._featureGroup;p.addLayer(s),a!==s&&(a._childCount>2?(a._updateIcon(),this._forceLayout(),this._animationStart(),s._setPos(this._map.latLngToLayerPoint(a.getLatLng())),s.clusterHide(),this._enqueue(function(){p.removeLayer(s),s.clusterShow(),c._animationEnd()})):(this._forceLayout(),c._animationStart(),c._animationZoomOutSingle(a,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(s,a,c){var p=this._getExpandedVisibleBounds(),_=Math.floor(this._map.getMinZoom());s._recursivelyAnimateChildrenInAndAddSelfToMap(p,_,a+1,c);var v=this;this._forceLayout(),s._recursivelyBecomeVisible(p,c),this._enqueue(function(){if(s._childCount===1){var m=s._markers[0];this._ignoreMove=!0,m.setLatLng(m.getLatLng()),this._ignoreMove=!1,m.clusterShow&&m.clusterShow()}else s._recursively(p,c,_,function(y){y._recursivelyRemoveChildrenFromMap(p,_,a+1)});v._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(s){return new L.MarkerClusterGroup(s)};
1var d=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(s,a,c,p){L.Marker.prototype.initialize.call(this,c?c._cLatLng||c.getLatLng():new L.LatLng(0,0),{icon:this,pane:s.options.clusterPane}),this._group=s,this._zoom=a,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,c&&this._addChild(c),p&&this._addChild(p)},getAllChildMarkers:function(s,a){s=s||[];for(var c=this._childClusters.length-1;c>=0;c--)this._childClusters[c].getAllChildMarkers(s,a);for(var p=this._markers.length-1;p>=0;p--)a&&this._markers[p].__dragStart||s.push(this._markers[p]);return s},getChildCount:function(){return this._childCount},zoomToBounds:function(s){for(var a=this._childClusters.slice(),c=this._group._map,p=c.getBoundsZoom(this._bounds),_=this._zoom+1,v=c.getZoom(),m;a.length>0&&p>_;){_++;var y=[];for(m=0;m<a.length;m++)y=y.concat(a[m]._childClusters);a=y}p>_?this._group._map.setView(this._latlng,_):p<=v?this._group._map.setVie
vendor: 3,464 bytes, line 1
1w(this._latlng,v+1):this._group._map.fitBounds(this._bounds,s)},getBounds:function(){var s=new L.LatLngBounds;return s.extend(this._bounds),s},_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(s,a){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(s),s instanceof L.MarkerCluster?(a||(this._childClusters.push(s),s.__parent=this),this._childCount+=s._childCount):(a||this._markers.push(s),this._childCount++),this.__parent&&this.__parent._addChild(s,!0)},_setClusterCenter:function(s){this._cLatLng||(this._cLatLng=s._cLatLng||s._latlng)},_resetBounds:function(){var s=this._bounds;s._southWest&&(s._southWest.lat=1/0,s._southWest.lng=1/0),s._northEast&&(s._northEast.lat=-1/0,s._northEast.lng=-1/0)},_recalculateBounds:function(){var s=this._markers,a=this._childClusters,c=0,p=0,_=this._childCount,v,m,y,C;if(_!==0){for(this._resetBounds(),v=0;v<s.length;v++)y=s[v]._latlng,this._bounds.extend(y),c+=y.lat,p+=y.lng;for(v=0;v<a.length;v++)m=a[v],m._boundsNeedUpdate&&m._recalculateBounds(),this._bounds.extend(m._bounds),y=m._wLatLng,C=m._childCount,c+=y.lat*C,p+=y.lng*C;this._latlng=this._wLatLng=new L.LatLng(c/_,p/_),this._boundsNeedUpdate=!1}},_addToMap:function(s){s&&(this._backupLatlng=this._latlng,this.setLatLng(s)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(s,a,c){this._recursively(s,this._group._map.getMinZoom(),c-1,function(p){var _=p._markers,v,m;for(v=_.length-1;v>=0;v--)m=_[v],m._icon&&(m._setPos(a),m.clusterHide())},function(p){var _=p._childClusters,v,m;for(v=_.length-1;v>=0;v--)m=_[v],m._icon&&(m._setPos(a),m.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(s,a,c,p){this._recursively(s,p,a,function(_){_._recursivelyAnimateChildrenIn(s,_._group._map.latLngToLayerPoint(_.getLatLng()).round(),c),_._isSingleParent()&&c-1===p?(_.clusterShow(),_._recursivelyRemoveChildrenFromMap(s,a,c)):_.clusterHide(),_._addToMap()})},_recursivelyBecomeVisible:function(s,a){this._recursively(s,this._group._map.getMinZoom(),a,null,function(c){c.clusterShow()})},_recursivelyAddChildrenToMap:function(s,a,c){this._recursively(c,this._group._map.getMinZoom()-1,a,function(p){if(a!==p._zoom)for(var _=p._markers.length-1;_>=0;_--){var v=p._markers[_];c.contains(v._latlng)&&(s&&(v._backupLatlng=v.getLatLng(),v.setLatLng(s),v.clusterHide&&v.clusterHide()),p._group._featureGroup.addLayer(v))}},function(p){p._addToMap(s)})},_recursivelyRestoreChildPositions:function(s){for(var a=this._markers.length-1;a>=0;a--){var c=this._markers[a];c._backupLatlng&&(c.setLatLng(c._backupLatlng),delete c._backupLatlng)}if(s-1===this._zoom)for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._restorePosition();else for(var _=this._childClusters.length-1;_>=0;_--)this._childClusters[_]._recursivelyRestoreChildPositions(s)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(s,a,c,p){var _,v;this._recursively(s,a-1,c-1,function(m){for(v=m._markers.length-1;v>=0;v--)_=m._markers[v],(!p||!p.contains(_._latlng))&&(m._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())}
vendor: 6,449 bytes, line 1
1,function(m){for(v=m._childClusters.length-1;v>=0;v--)_=m._childClusters[v],(!p||!p.contains(_._latlng))&&(m._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())})},_recursively:function(s,a,c,p,_){var v=this._childClusters,m=this._zoom,y,C;if(a<=m&&(p&&p(this),_&&m===c&&_(this)),m<a||m<c)for(y=v.length-1;y>=0;y--)C=v[y],C._boundsNeedUpdate&&C._recalculateBounds(),s.intersects(C._bounds)&&C._recursively(s,a,c,p,_)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var s=this.options.opacity;return this.setOpacity(0),this.options.opacity=s,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(s){this._cellSize=s,this._sqCellSize=s*s,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(s,a){var c=this._getCoord(a.x),p=this._getCoord(a.y),_=this._grid,v=_[p]=_[p]||{},m=v[c]=v[c]||[],y=L.Util.stamp(s);this._objectPoint[y]=a,m.push(s)},updateObject:function(s,a){this.removeObject(s),this.addObject(s,a)},removeObject:function(s,a){var c=this._getCoord(a.x),p=this._getCoord(a.y),_=this._grid,v=_[p]=_[p]||{},m=v[c]=v[c]||[],y,C;for(delete this._objectPoint[L.Util.stamp(s)],y=0,C=m.length;y<C;y++)if(m[y]===s)return m.splice(y,1),C===1&&delete v[c],!0},eachObject:function(s,a){var c,p,_,v,m,y,C,P=this._grid;for(c in P){m=P[c];for(p in m)for(y=m[p],_=0,v=y.length;_<v;_++)C=s.call(a,y[_]),C&&(_--,v--)}},getNearObject:function(s){var a=this._getCoord(s.x),c=this._getCoord(s.y),p,_,v,m,y,C,P,b,O=this._objectPoint,T=this._sqCellSize,k=null;for(p=c-1;p<=c+1;p++)if(m=this._grid[p],m){for(_=a-1;_<=a+1;_++)if(y=m[_],y)for(v=0,C=y.length;v<C;v++)P=y[v],b=this._sqDist(O[L.Util.stamp(P)],s),(b<T||b<=T&&k===null)&&(T=b,k=P)}return k},_getCoord:function(s){var a=Math.floor(s/this._cellSize);return isFinite(a)?a:s},_sqDist:function(s,a){var c=a.x-s.x,p=a.y-s.y;return c*c+p*p}},(function(){L.QuickHull={getDistant:function(s,a){var c=a[1].lat-a[0].lat,p=a[0].lng-a[1].lng;return p*(s.lat-a[0].lat)+c*(s.lng-a[0].lng)},findMostDistantPointFromBaseLine:function(s,a){var c=0,p=null,_=[],v,m,y;for(v=a.length-1;v>=0;v--){if(m=a[v],y=this.getDistant(m,s),y>0)_.push(m);else continue;y>c&&(c=y,p=m)}return{maxPoint:p,newPoints:_}},buildConvexHull:function(s,a){var c=[],p=this.findMostDistantPointFromBaseLine(s,a);return p.maxPoint?(c=c.concat(this.buildConvexHull([s[0],p.maxPoint],p.newPoints)),c=c.concat(this.buildConvexHull([p.maxPoint,s[1]],p.newPoints)),c):[s[0]]},getConvexHull:function(s){var a=!1,c=!1,p=!1,_=!1,v=null,m=null,y=null,C=null,P=null,b=null,O;for(O=s.length-1;O>=0;O--){var T=s[O];(a===!1||T.lat>a)&&(v=T,a=T.lat),(c===!1||T.lat<c)&&(m=T,c=T.lat),(p===!1||T.lng>p)&&(y=T,p=T.lng),(_===!1||T.lng<_)&&(C=T,_=T.lng)}c!==a?(b=m,P=v):(b=C,P=y);var k=[].concat(this.buildConvexHull([b,P],s),this.buildConvexHull([P,b],s));return k}}})(),L.MarkerCluster.include({getConvexHull:function(){var s=this.getAllChildMarkers(),a=[],c,p;for(p=s.length-1;p>=0;p--)c=s[p].getLatLng(),a.push(c);return L.QuickHull.getConvexHull(a)}}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var s=this.getAllChildMarkers(null,!0),a=this._group,c=a._map,p=c.latLngToLayerPoint(this._latlng),_;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?_=this._group.options.spiderfyShapePositions(s.length,p):s.length>=this._circleSpiralSwitchover?_=this._generatePointsSpiral(s.length,p):(p.y+=10,_=this._generatePointsCircle(s.length,p)),this._animationSpiderfy(s,_)}},unspiderfy:function(s){this._group._inZoomAnimation||(this._animationUnspiderfy(s),this._group._spiderfied=null)},_generatePointsCircle:function(s,a){var c=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+s),p=c/this._2PI,_=this._2PI/s,v=[],m,y;for(p=Math.max(p,35),v.length=s,m=0;m<s;m++)y=this._circleStartAngle+m*_,v[m]=new L.Point(a.x+p*Math.cos(y),a.y+p*Math.sin(y))._round();return v},_generatePointsSpiral:function(s,a){var c=this._group.options.spiderfyDistanceMultiplier,p=c*this._spiralLengthStart,_=c*this._spiralFootSeparation,v=c*this._spiralLengthFactor*this._2PI,m=0,y=[],C;for(y.length=s,C=s;C>=0;C--)C<s&&(y[C]=new L.Point(a.x+p*Math.cos(m),a.y+p*Math.sin(m))._round()),m+=_/p+C*5e-4,p+=v/m;return y},_noanimationUnspiderfy:function(){var s=this._group,a=s._map,c=s._featureGroup,p=this.getAllChildMarkers(null,!0),_,v;for(s._ignoreMove=!0,this.setOpacity(1),v=p.length-1;v>=0;v--)_=p[v],c.removeLayer(_),_._preSpiderfyLatlng&&(_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng),_.setZIndexOffset&&_.setZIndexOffset(0),_._spiderLeg&&(a.removeLayer(_._spiderLeg),delete _._spiderLeg);s.fire("unspiderfied",{cluster:this,markers:p}),s._ignoreMove=!1,s._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(s,a){var c=this._group,p=c._map,_=c._featureGroup,v=this._group.options.spiderLegPolylineOptions,m,y,C,P;for(c._ignoreMove=!0,m=0;m<s.length;m++)P=p.layerPointToLatLng(a[m]),y=s[m],C=new L.Polyline([this._latlng,P],v),p.addLayer(C),y._spiderLeg=C,y._preSpiderfyLatlng=y._latlng,y.setLatLng(P),y.setZIndexOffset&&y.setZIndexOffset(1e6),_.addLayer(y);this.setOpacity(.3),c._ignoreMove=!1,c.fire("spiderfied",{cluster:this,markers:s})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(s,a){var c=this,p=this._group,_=p._map,v=p._featureGroup,m=this._latlng,y=_.latLngToLayerPoint(m),C=L.Path.SVG,P=L.extend({},this._group.options.spiderLegPolylineOptions),b=P.opacity,O,T,k,M,A,R;for(b===void 0&&(b=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),C?(P.opacity=0,P.className=(P.className||"")+" leaflet-cluster-spider-leg"):P.opacity=b,p._ignoreMove=!0,O=0;O<s.length;O++)T=s[O],R=_.layerPointToLatLng(a[O]),k=new L.Polyline([m,R],P),_.addLayer(k),T._spiderLeg=k,C&&(M=k._path,A=M.getTotalLength()+.1,M.style.strokeDasharray=A,M.style.strokeDashoffset=A),T.setZIndexOffset&&T.setZIndexOffset(1e6),T.clusterHide&&T.clusterHide(),v.addLayer(T),T._setPos&&T._setPos(y);for(p._forceLayout(),p._animationStart(),O=s.length-1;O>=0;
1O--)R=_.layerPointToLatLng(a[O]),T=s[O],T._preSpiderfyLatlng=T._latlng,T.setLatLng(R),T.clusterShow&&T.clusterShow(),C&&(k=T._spiderLeg,M=k._path,M.style.strokeDashoffset=0,k.setStyle({opacity:b}));this.setOpacity(.3),p._ignoreMove=!1,setTimeout(function(){p._animationEnd(),p.fire("spiderfied",{cluster:c,markers:s})},200)},_animationUnspiderfy:function(s){var a=this,c=this._group,p=c._map,_=c._featureGroup,v=s?p._latLngToNewLayerPoint(this._latlng,s.zoom,s.center):p.latLngToLayerPoint(this._latlng),m=this.getAllChildMarkers(null,!0),y=L.Path.SVG,C,P,b,O,T,k;for(c._ignoreMove=!0,c._animationStart(),this.setOpacity(1),P=m.length-1;P>=0;P--)C=m[P],C._preSpiderfyLatlng&&(C.closePopup(),C.setLatLng(C._preSpiderfyLatlng),delete C._preSpiderfyLatlng,k=!0,C._setPos&&(C._setPos(v),k=!1),C.clusterHide&&(C.clusterHide(),k=!1),k&&_.removeLayer(C),y&&(b=C._spiderLeg,O=b._path,T=O.getTotalLength()+.1,O.style.strokeDashoffset=T,b.setStyle({opacity:0})));c._ignoreMove=!1,setTimeout(function(){var M=0;for(P=m.length-1;P>=0;P--)C=m[P],C._spiderLeg&&M++;for(P=m.length-1;P>=0;P--)C=m[P],C._spiderLeg&&(C.clusterShow&&C.clusterShow(),C.setZIndexOffset&&C.setZIndexOffset(0),M>1&&_.removeLayer(C),p.removeLayer(C._spiderLeg),delete C._spiderLeg);c._animationEnd(),c.fire("unspiderfied",{cluster:a,markers:m})},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(s){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(s))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(s){this._spiderfied&&this._spiderfied.unspiderfy(s)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(s){s._spiderLeg&&(this._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow(),s.setZIndexOffset&&s.setZIndexOffset(0),this._map.removeLayer(s._spiderLeg),delete s._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(s){return s?s instanceof L.MarkerClusterGroup?s=s._topClusterLevel.getAllChildMarkers():s instanceof L.LayerGroup?s=s._layers:s instanceof L.MarkerCluster?s=s.getAllChildMarkers():s instanceof L.Marker&&(s=[s]):s=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(s),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(s),this},_flagParentsIconsNeedUpdate:function(s){var a,c;for(a in s)for(c=s[a].__parent;c;)c._iconNeedsUpdate=!0,c=c.__parent},_refreshSingleMarkerModeMarkers:function(s){var a,c;for(a in s)c=s[a],this.hasLayer(c)&&c.setIcon(this._overrideMarkerIcon(c))}}),L.Marker.include({refreshIconOptions:function(s,a){var c=this.options.icon;return L.setOptions(c,s),this.setIcon(c),a&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),r.MarkerClusterGroup=u,r.MarkerCluster=d,Object.defineProperty(r,"__esModule",{value:!0})})})(ke,ke.exports)),ke.exports}mr();var Gi=function(h,n){return Gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(r[d]=u[d])},Gi(h,n)};function Ts(h,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Gi(h,n);function r(){this.constructor=h}
vendor: 4,478 bytes, line 1
1h.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var Ct=function(){return Ct=Object.assign||function(n){for(var r,u=1,d=arguments.length;u<d;u++){r=arguments[u];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},Ct.apply(this,arguments)};function gr(h,n,r){for(var u=0,d=n.length,s;u<d;u++)(s||!(u in n))&&(s||(s=Array.prototype.slice.call(n,0,u)),s[u]=n[u]);return h.concat(s||Array.prototype.slice.call(n))}var lt={ADD_CHOICE:"ADD_CHOICE",REMOVE_CHOICE:"REMOVE_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM"},wt={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},gt={TAB_KEY:9,SHIFT_KEY:16,BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},vr=["fuseOptions","classNames"],Kt={Text:"text",SelectOne:"select-one",SelectMultiple:"select-multiple"},cs=function(h){return{type:lt.ADD_CHOICE,choice:h}},yr=function(h){return{type:lt.REMOVE_CHOICE,choice:h}},Lr=function(h){return{type:lt.FILTER_CHOICES,results:h}},br=function(h){return{type:lt.ACTIVATE_CHOICES,active:h}},wr=function(h){return{type:lt.ADD_GROUP,group:h}},ds=function(h){return{type:lt.ADD_ITEM,item:h}},fs=function(h){return{type:lt.REMOVE_ITEM,item:h}},Qe=function(h,n){return{type:lt.HIGHLIGHT_ITEM,item:h,highlighted:n}},Cr=function(h,n){return Math.floor(Math.random()*(n-h)+h)},ps=function(h){return Array.from({length:h},function(){return Cr(0,36).toString(36)}).join("")},xr=function(h,n){var r=h.id||h.name&&"".concat(h.name,"-").concat(ps(2))||ps(4);return r=r.replace(/(:|\.|\[|\]|,)/g,""),r="".concat(n,"-").concat(r),r},Pr=function(h,n,r){r===void 0&&(r=1);for(var u="".concat(r>0?"next":"previous","ElementSibling"),d=h[u];d;){if(d.matches(n))return d;d=d[u]}return null},Sr=function(h,n,r){r===void 0&&(r=1);var u;return r>0?u=n.scrollTop+n.offsetHeight>=h.offsetTop+h.offsetHeight:u=h.offsetTop>=n.scrollTop,u},ni=function(h){if(typeof h!="string"){if(h==null)return"";if(typeof h=="object"){if("raw"in h)return ni(h.raw);if("trusted"in h)return h.trusted}return h}return h.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/'/g,"'").replace(/"/g,""")},Er=(function(){var h=document.createElement("div");return function(n){h.innerHTML=n.trim();for(var r=h.children[0];h.firstChild;)h.removeChild(h.firstChild);return r}})(),Oe=function(h,n){return typeof h=="function"?h(ni(n),n):h},_s=function(h){return typeof h=="function"?h():h},ee=function(h){if(typeof h=="string")return h;if(typeof h=="object"){if("trusted"in h)return h.trusted;if("raw"in h)return h.raw}return""},Ms=function(h){if(typeof h=="string")return h;if(typeof h=="object"){if("escaped"in h)return h.escaped;if("trusted"in h)return h.trusted}return""},Ji=function(h,n){return h?Ms(n):ni(n)},jt=function(h,n,r){h.innerHTML=Ji(n,r)},Tr=function(h,n){var r=h.value,u=h.label,d=u===void 0?r:u,s=n.value,a=n.label,c=a===void 0?s:a;return ee(d).localeCompare(ee(c),[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},Mr=function(h,n){return h.rank-n.rank},kr=function(h,n,r){r===void 0&&(r=null);var u=new CustomEvent(n,{detail:r,bubbles:!0,cancelable:!0});return h.dispatchEvent(u)},Ir=function(h,n){var r=Object.keys(h).sort(),u=Object.keys(n).sort();return r.filter(function(d){return u.indexOf(d)<0})},si=function(h){return Array.isArray(h)?h:[h]},Ee=function(h){return h&&Array.isArray(h)?h.map(function(n){return".".concat(n)}).join(""):".".concat(h)},q=function(h,n){var r;(r=h.classList).add.apply(r,si(n))},Zt=function(h,n){var r;(r=h.classList).remove.apply(r,si(n))},Or=function(h){if(typeof h<"u")try{return JSON.parse(h)}catch(n){return h}return{}},Ar=function(h,n,r){var u=h.itemEl;u&&(Zt(u,r),q(u,n))},zr=(function(){function h(n){var r=n.element,u=n.type,d=n.classNames;this.element=r,this.classNames=d,this.type=u,this.isActive=!1}return h.prototype.show=function(){return q(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},h.prototype.hide=function(){return Zt(this.element,this.classNames.activeState),this.element.setAttribute("aria-expanded","fal
1se"),this.isActive=!1,this},h})(),ms=(function(){function h(n){var r=n.element,u=n.type,d=n.classNames,s=n.position;this.element=r,this.classNames=d,this.type=u,this.position=s,this.isOpen=!1,this.isFlipped=!1,this.isDisabled=!1,this.isLoading=!1}return h.prototype.shouldFlip=function(n,r){var u=!1;return this.position==="auto"?u=this.element.getBoundingClientRect().top-r>=0&&!window.matchMedia("(min-height: ".concat(n+1,"px)")).matches:this.position==="top"&&(u=!0),u},h.prototype.setActiveDescendant=function(n){this.element.setAttribute("aria-activedescendant",n)},h.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},h.prototype.open=function(n,r){q(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(n,r)&&(q(this.element,this.classNames.flippedState),this.isFlipped=!0)},h.prototype.close=function(){Zt(this.element,this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(Zt(this.element,this.classNames.flippedState),this.isFlipped=!1)},h.prototype.addFocusState=function(){q(this.element,this.classNames.focusState)},h.prototype.removeFocusState=function(){Zt(this.element,this.classNames.focusState)},h.prototype.enable=function(){Zt(this.element,this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===Kt.SelectOne&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},h.prototype.disable=function(){q(this.element,this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===Kt.SelectOne&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},h.prototype.wrap=function(n){var r=this.element,u=n.parentNode;u&&(n.nextSibling?u.insertBefore(r,n.nextSibling):u.appendChild(r)),r.appendChild(n)},h.prototype.unwrap=function(n){var r=this.element,u=r.parentNode;u&&(u.insertBefore(n,r),u.removeChild(r))},h.prototype.addLoadingState=function(){q(this.element,this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},h.prototype.removeLoadingState=function(){Zt(this.element,this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},h})(),Zr=(function(){function h(n){var r=n.element,u=n.type,d=n.classNames,s=n.preventPaste;this.element=r,this.type=u,this.classNames=d,this.preventPaste=s,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=r.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(h.prototype,"placeholder",{set:function(n){this.element.placeholder=n},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"value",{get:function(){return this.element.value},set:function(n){this.element.value=n},enumerable:!1,configurable:!0}),h.prototype.addEventListeners=function(){var n=this.element;n.addEventListener("paste",this._onPaste),n.addEventListener("input",this._onInput,{passive:!0}),n.addEventListener("focus",this._onFocus,{passive:!0}),n.addEventListener("blur",this._onBlur,{passive:!0})},h.prototype.removeEventListeners=function(){var n=this.element;n.removeEventListener("input",this._onInput),n.removeEventListener("paste",this._onPaste),n.removeEventListener("focus",this._onFocus),n.removeEventListener("blur",this._onBlur)},h.prototype.enable=function(){var n=this.element;n.removeAttribute("disabled"),this.isDisabled=!1},h.prototype.disable=function(){var n=this.element;n.setAttribute("disabled",""),this.isDisabled=!0},h.prototype.focus=function(){this.isFocussed||this.element.focus()},h.prototype.blur=function(){this.isFocussed&&this.element.blur()},h.prototype.clear=function(n){return n===void 0&&(n=!0),this.element.value="",n&&this.setWidth(),this},h.prototype.setWidth=function(){var n=this.element;n.style.minWidth="".concat(n.placeholder.length+1,"ch"),n.style.width="".concat(n.value.length+1,"ch")},h.prototype.setActiveDescendant=function(n){this.element.setAttribute("aria-activedescendant",n)},h.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},h.prototype._onInput=function(){this.type!==Kt.SelectOne&&this.setWidth()},h.prototype._onPaste=function(n){this.preventPaste&&n.preventDefault()},h.prototype._onFocus=function(){this.isFocussed=!0},h.prototype._onBlur=function(){this.isFocussed=!1},h})(),Nr=4,gs=(function(){function h(n){var r=n.element;this.element=r,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return h.prototype.prepend=function(n){var r=this.element.firstElementChild;r?this.element.insertBefore(n,r):this.element.append(n)},h.prototype.scrollToTop=function(){this.element.scrollTop=0},h.prototype.scrollToChildElement=function(n,r){var u=this;if(n){var d=this.element.offsetHeight,s=this.element.scrollTop+d,a=n.offsetHeight,c=n.offsetTop+a,p=r>0?this.element.scrollTop+c-s:n.offsetTop;requestAnimationFrame(function(){u._animateScroll(p,r)})}},h.prototype._scrollDown=function(n,r,u){var d=(u-n)/r,s=d>1?d:1;this.element.scrollTop=n+s},h.prototype._scrollUp=function(n,r,u){var d=(n-u)/r,s=d>1?d:1;this.element.scrollTop=n-s},h.prototype._animateScroll=function(n,r){var u=this,d=Nr,s=this.element.scrollTop,a=!1;r>0?(this._scrollDown(s,d,n),s<n&&(a=!0)):(this._scrollUp(s,d,n),s>n&&(a=!0)),a&&requestAnimationFrame(function(){u._animateScroll(n,r)})},h}
vendor: 28,936 bytes, line 1
1)(),ks=(function(){function h(n){var r=n.element,u=n.classNames;this.element=r,this.classNames=u,this.isDisabled=!1}return Object.defineProperty(h.prototype,"isActive",{get:function(){return this.element.dataset.choice==="active"},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"value",{get:function(){return this.element.value},set:function(n){this.element.setAttribute("value",n),this.element.value=n},enumerable:!1,configurable:!0}),h.prototype.conceal=function(){var n=this.element;q(n,this.classNames.input),n.hidden=!0,n.tabIndex=-1;var r=n.getAttribute("style");r&&n.setAttribute("data-choice-orig-style",r),n.setAttribute("data-choice","active")},h.prototype.reveal=function(){var n=this.element;Zt(n,this.classNames.input),n.hidden=!1,n.removeAttribute("tabindex");var r=n.getAttribute("data-choice-orig-style");r?(n.removeAttribute("data-choice-orig-style"),n.setAttribute("style",r)):n.removeAttribute("style"),n.removeAttribute("data-choice")},h.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},h.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},h.prototype.triggerEvent=function(n,r){kr(this.element,n,r||{})},h})(),Br=(function(h){Ts(n,h);function n(){return h!==null&&h.apply(this,arguments)||this}return n})(ks),Ie=function(h,n){return n===void 0&&(n=!0),typeof h>"u"?n:!!h},Is=function(h){if(typeof h=="string"&&(h=h.split(" ").filter(function(n){return n.length})),Array.isArray(h)&&h.length)return h},zt=function(h,n,r){if(r===void 0&&(r=!0),typeof h=="string"){var u=ni(h),d=r||u===h?h:{escaped:u,raw:h},s=zt({value:h,label:d,selected:!0},!1);return s}var a=h;if("choices"in a){if(!n)throw new TypeError("optGroup is not allowed");var c=a,p=c.choices.map(function(y){return zt(y,!1)}),_={id:0,label:ee(c.label)||c.value,active:!!p.length,disabled:!!c.disabled,choices:p};return _}var v=a,m={id:0,group:null,score:0,rank:0,value:v.value,label:v.label||v.value,active:Ie(v.active),selected:Ie(v.selected,!1),disabled:Ie(v.disabled,!1),placeholder:Ie(v.placeholder,!1),highlighted:!1,labelClass:Is(v.labelClass),labelDescription:v.labelDescription,customProperties:v.customProperties};return m},Dr=function(h){return h.tagName==="INPUT"},Os=function(h){return h.tagName==="SELECT"},Rr=function(h){return h.tagName==="OPTION"},Fr=function(h){return h.tagName==="OPTGROUP"},Hr=(function(h){Ts(n,h);function n(r){var u=r.element,d=r.classNames,s=r.template,a=r.extractPlaceholder,c=h.call(this,{element:u,classNames:d})||this;return c.template=s,c.extractPlaceholder=a,c}return Object.defineProperty(n.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),n.prototype.addOptions=function(r){var u=this,d=document.createDocumentFragment();r.forEach(function(s){var a=s;if(!a.element){var c=u.template(a);d.appendChild(c),a.element=c}}),this.element.appendChild(d)},n.prototype.optionsAsChoices=function(){var r=this,u=[];return this.element.querySelectorAll(":scope > option, :scope > optgroup").forEach(function(d){Rr(d)?u.push(r._optionToChoice(d)):Fr(d)&&u.push(r._optgroupToChoice(d))}),u},n.prototype._optionToChoice=function(r){return!r.hasAttribute("value")&&r.hasAttribute("placeholder")&&(r.setAttribute("value",""),r.value=""),{id:0,group:null,score:0,rank:0,value:r.value,label:r.label,element:r,active:!0,selected:this.extractPlaceholder?r.selected:r.hasAttribute("selected"),disabled:r.disabled,highlighted:!1,placeholder:this.extractPlaceholder&&(!r.value||r.hasAttribute("placeholder")),labelClass:typeof r.dataset.labelClass<"u"?Is(r.dataset.labelClass):void 0,labelDescription:typeof r.dataset.labelDescription<"u"?r.dataset.labelDescription:void 0,customProperties:Or(r.dataset.customProperties)}},n.prototype._optgroupToChoice=function(r){var u=this,d=r.querySelectorAll("option"),s=Array.from(d).map(function(a){return u._optionToChoice(a)});return{id:0,label:r.label||"",element:r,active:!!s.length,disabled:r.disabled,choices:s}},n})(ks),jr={containerOuter:["choices"],containerInner:["choices__inner"],input:["choices__input"],inputCloned:["choices__input--cloned"],list:["choices__list"],listItems:["choices__list--multiple"],listSingle:["choices__list--single"],listDropdown:["choices__list--dropdown"],item:["choices__item"],itemSelectable:["choices__item--selectable"],itemDisabled:["choices__item--disabled"],itemChoice:["choices__item--choice"],description:["choices__description"],placeholder:["choices__placeholder"],group:["choices__group"],groupHeading:["choices__heading"],button:["choices__button"],activeState:["is-active"],focusState:["is-focused"],openState:["is-open"],disabledState:["is-disabled"],highlightedState:["is-highlighted"],selectedState:["is-selected"],flippedState:["is-flipped"],loadingState:["is-loading"],notice:["choices__notice"],addChoice:["choices__item--selectable","add-choice"],noResults:["has-no-results"],noChoices:["has-no-choices"]},vs={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,closeDropdownOnSelect:"auto",singleModeForMultiSelect:!1,addChoices:!1,addItems:!0,addItemFilter:function(h){return!!h&&h!==""},removeItems:!0,removeItemButton:!1,removeItemButtonAlignLeft:!1,editItems:!1,allowHTML:!1,allowHtmlUserInput:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:Tr,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(h){return'Press Enter to add <b>"'.concat(h,'"</b>')},removeItemIconText:function(){return"Remove item"},removeItemLabelText:function(h){return"Remove item: ".concat(h)},maxItemText:function(h){return"Only ".concat(h," values can be added")},valueComparer:function(h,n){return h===n},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:jr,appendGroupInSearch:!1},ys=function(h){var n=h.itemEl;n&&(n.remove(),h.itemEl=void 0)};function Gr(h,n,r){var u=h,d=!0;switch(n.type){case lt.ADD_ITEM:{n.item.selected=!0;var s=n.item.element;s&&(s.selected=!0,s.setAttribute("selected","")),u.push(n.item);break}case lt.REMOVE_ITEM:{n.item.selected=!1;var s=n.item.element;if(s){s.selected=!1,s.removeAttribute("selected");var a=s.parentElement;a&&Os(a)&&a.type===Kt.SelectOne&&(a.value="")}ys(n.item),u=u.filter(function(v){return v.id!==n.item.id});break}case lt.REMOVE_CHOICE:{ys(n.choice),u=u.filter(function(_){return _.id!==n.choice.id});break}case lt.HIGHLIGHT_ITEM:{var c=n.highlighted,p=u.find(function(_){return _.id===n.item.id});p&&p.highlighted!==c&&(p.highlighted=c,r&&Ar(p,c?r.classNames.highlightedState:r.classNames.selectedState,c?r.classNames.selectedState:r.classNames.highlightedState));break}default:{d=!1;break}}return{state:u,update:d}}function Wr(h,n){var r=h,u=!0;switch(n.type){case lt.ADD_GROUP:{r.push(n.group);break}case lt.CLEAR_CHOICES:{r=[];break}default:{u=!1;break}}return{state:r,update:u}}function Ur(h,n,r){var u=h,d=!0;switch(n.type){case lt.ADD_CHOICE:{u.push(n.choice);break}case lt.REMOVE_CHOICE:{n.choice.choiceEl=void 0,n.choice.group&&(n.choice.group.choices=n.choice.group.choices.filter(function(a){return a.id!==n.choice.id})),u=u.filter(function(a){return a.id!==n.choice.id});break}case lt.ADD_ITEM:case lt.REMOVE_ITEM:{n.item.choiceEl=void 0;break}case lt.FILTER_CHOICES:{var s=[];n.results.forEach(function(a){s[a.item.id]=a}),u.forEach(function(a){var c=s[a.id];c!==void 0?(a.score=c.score,a.rank=c.rank,a.active=!0):(a.score=0,a.rank=0,a.active=!1),r&&r.appendGroupInSearch&&(a.choiceEl=void 0)});break}case lt.ACTIVATE_CHOICES:{u.forEach(function(a){a.active=n.active,r&&r.appendGroupInSearch&&(a.choiceEl=void 0)});break}case lt.CLEAR_CHOICES:{u=[];break}default:{d=!1;break}}return{state:u,update:d}}var Ls={groups:Wr,items:Gr,choices:Ur},Vr=(function(){function h(n){this._state=this.defaultState,this._listeners=[],this._txn=0,this._context=n}return Object.defineProperty(h.prototype,"defaultState",{get:function(){return{groups:[],items:[],choices:[]}},enumerable:!1,configurable:!0}),h.prototype.changeSet=function(n){return{groups:n,items:n,choices:n}},h.prototype.reset=function(){this._state=this.defaultState;var n=this.changeSet(!0);this._txn?this._changeSet=n:this._listeners.forEach(function(r){return r(n)})},h.prototype.subscribe=function(n){return this._listeners.push(n),this},h.prototype.dispatch=function(n){var r=this,u=this._state,d=!1,s=this._changeSet||this.changeSet(!1);Object.keys(Ls).forEach(function(a){var c=Ls[a](u[a],n,r._context);c.update&&(d=!0,s[a]=!0,u[a]=c.state)}),d&&(this._txn?this._changeSet=s:this._listeners.forEach(function(a){return a(s)}))},h.prototype.withTxn=function(n){this._txn++;try{n()}finally{if(this._txn=Math.max(0,this._txn-1),!this._txn){var r=this._changeSet;r&&(this._changeSet=void 0,this._listeners.forEach(function(u){return u(r)}))}}},Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(n){return n.active&&n.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeChoices",{get:function(){return this.choices.filter(function(n){return n.active})},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"searchableChoices",{get:function(){return this.choices.filter(function(n){return!n.disabled&&!n.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"activeGroups",{get:function(){var n=this;return this.state.groups.filter(function(r){var u=r.active&&!r.disabled,d=n.state.choices.some(function(s){return s.active&&!s.disabled});return u&&d},[])},enumerable:!1,configurable:!0}),h.prototype.inTxn=function(){return this._txn>0},h.prototype.getChoiceById=function(n){return this.activeChoices.find(function(r){return r.id===n})},h.prototype.getGroupById=function(n){return this.groups.find(function(r){return r.id===n})},h})(),mt={noChoices:"no-choices",noResults:"no-results",addChoice:"add-choice",generic:""};function Kr(h,n,r){return(n=Yr(n))in h?Object.defineProperty(h,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):h[n]=r,h}function bs(h,n){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(h);n&&(u=u.filter(function(d){return Object.getOwnPropertyDescriptor(h,d).enumerable})),r.push.apply(r,u)}return r}function ce(h){for(var n=1;n<arguments.length;n++){var r=arguments[n]!=null?arguments[n]:{};n%2?bs(Object(r),!0).forEach(function(u){Kr(h,u,r[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(u){Object.defineProperty(h,u,Object.getOwnPropertyDescriptor(r,u))})}return h}function qr(h,n){if(typeof h!="object"||!h)return h;var r=h[Symbol.toPrimitive];if(r!==void 0){var u=r.call(h,n);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(h)}function Yr(h){var n=qr(h,"string");return typeof n=="symbol"?n:n+""}function Gt(h){return Array.isArray?Array.isArray(h):Zs(h)==="[object Array]"}function Jr(h){if(typeof h=="string")return h;let n=h+"";return n=="0"&&1/h==-1/0?"-0":n}function $r(h){return h==null?"":Jr(h)}function Nt(h){return typeof h=="string"}function As(h){return typeof h=="number"}function Xr(h){return h===!0||h===!1||Qr(h)&&Zs(h)=="[object Boolean]"}function zs(h){return typeof h=="object"}function Qr(h){return zs(h)&&h!==null}function xt(h){return h!=null}function Ri(h){return!h.trim().length}function Zs(h){return h==null?h===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(h)}const ta="Incorrect 'index' type",ea=h=>"Invalid value for key ".concat(h),ia=h=>"Pattern length exceeds max of ".concat(h,"."),na=h=>"Missing ".concat(h," property in key"),sa=h=>"Property 'weight' in key '".concat(h,"' must be a positive integer"),ws=Object.prototype.hasOwnProperty;class oa{constructor(n){this._keys=[],this._keyMap={};let r=0;n.forEach(u=>{let d=Ns(u);this._keys.push(d),this._keyMap[d.id]=d,r+=d.weight}),this._keys.forEach(u=>{u.weight/=r})}get(n){return this._keyMap[n]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ns(h){let n=null,r=null,u=null,d=1,s=null;if(Nt(h)||Gt(h))u=h,n=Cs(h),r=Wi(h);else{if(!ws.call(h,"name"))throw new Error(na("name"));const a=h.name;if(u=a,ws.call(h,"weight")&&(d=h.weight,d<=0))throw new Error(sa(a));n=Cs(a),r=Wi(a),s=h.getFn}return{path:n,id:r,weight:d,src:u,getFn:s}}function Cs(h){return Gt(h)?h:h.split(".")}function Wi(h){return Gt(h)?h.join("."):h}function ra(h,n){let r=[],u=!1;const d=(s,a,c)=>{if(xt(s))if(!a[c])r.push(s);else{let p=a[c];const _=s[p];if(!xt(_))return;if(c===a.length-1&&(Nt(_)||As(_)||Xr(_)))r.push($r(_));else if(Gt(_)){u=!0;for(let v=0,m=_.length;v<m;v+=1)d(_[v],a,c+1)}else a.length&&d(_,a,c+1)}};return d(h,Nt(n)?n.split("."):n,0),u?r:r[0]}const aa={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ha={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(h,n)=>h.score===n.score?h.idx<n.idx?-1:1:h.score<n.score?-1:1},la={location:0,threshold:.6,distance:100},ua={useExtendedSearch:!1,getFn:ra,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var V=ce(ce(ce(ce({},ha),aa),la),ua);const ca=/[^ ]+/g;function da(h=1,n=3){const r=new Map,u=Math.pow(10,n);return{get(d){const s=d.match(ca).length;if(r.has(s))return r.get(s);const a=1/Math.pow(s,.5*h),c=parseFloat(Math.round(a*u)/u);return r.set(s,c),c},clear(){r.clear()}}}class $i{constructor({getFn:n=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){this.norm=da(r,3),this.getFn=n,this.isCreated=!1,this.setIndexRecords()}setSources(n=[]){this.docs=n}setIndexRecords(n=[]){this.records=n}setKeys(n=[]){this.keys=n,this._keysMap={},n.forEach((r,u)=>{this._keysMap[r.id]=u})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Nt(this.docs[0])?this.docs.forEach((n,r)=>{this._addString(n,r)}):this.docs.forEach((n,r)=>{this._addObject(n,r)}),this.norm.clear())}add(n){const r=this.size();Nt(n)?this._addString(n,r):this._addObject(n,r)}removeAt(n){this.records.splice(n,1);for(let r=n,u=this.size();r<u;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(n,r){return n[this._keysMap[r]]}size(){return this.records.length}_addString(n,r){if(!xt(n)||Ri(n))return;let u={v:n,i:r,n:this.norm.get(n)};this.records.push(u)}_addObject(n,r){let u={i:r,$:{}};this.keys.forEach((d,s)=>{let a=d.getFn?d.getFn(n):this.getFn(n,d.path);if(xt(a)){if(Gt(a)){let c=[];const p=[{nestedArrIndex:-1,value:a}];for(;p.length;){const{nestedArrIndex:_,value:v}=p.pop();if(xt(v))if(Nt(v)&&!Ri(v)){let m={v,i:_,n:this.norm.get(v)};c.push(m)}else Gt(v)&&v.forEach((m,y)=>{p.push({nestedArrIndex:y,value:m})})}u.$[s]=c}else if(Nt(a)&&!Ri(a)){let c={v:a,n:this.norm.get(a)};u.$[s]=c}}}),this.records.push(u)}toJSON(){return{keys:this.keys,records:this.records}}}function Bs(h,n,{getFn:r=V.getFn,fieldNormWeight:u=V.fieldNormWeight}={}){const d=new $i({getFn:r,fieldNormWeight:u});return d.setKeys(h.map(Ns)),d.setSources(n),d.create(),d}function fa(h,{getFn:n=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){const{keys:u,records:d}=h,s=new $i({getFn:n,fieldNormWeight:r});return s.setKeys(u),s.setIndexRecords(d),s}function ti(h,{errors:n=0,currentLocation:r=0,expectedLocation:u=0,distance:d=V.distance,ignoreLocation:s=V.ignoreLocation}={}){const a=n/h.length;if(s)return a;const c=Math.abs(u-r);return d?a+c/d:c?1:a}function pa(h=[],n=V.minMatchCharLength){let r=[],u=-1,d=-1,s=0;for(let a=h.length;s<a;s+=1){let c=h[s];c&&u===-1?u=s:!c&&u!==-1&&(d=s-1,d-u+1>=n&&r.push([u,d]),u=-1)}return h[s-1]&&s-u>=n&&r.push([u,s-1]),r}const te=32;function _a(h,n,r,{location:u=V.location,distance:d=V.distance,threshold:s=V.threshold,findAllMatches:a=V.findAllMatches,minMatchCharLength:c=V.minMatchCharLength,includeMatches:p=V.includeMatches,ignoreLocation:_=V.ignoreLocation}={}){if(n.length>te)throw new Error(ia(te));const v=n.length,m=h.length,y=Math.max(0,Math.min(u,m));let C=s,P=y;const b=c>1||p,O=b?Array(m):[];let T;for(;(T=h.indexOf(n,P))>-1;){let Q=ti(n,{currentLocation:T,expectedLocation:y,distance:d,ignoreLocation:_});if(C=Math.min(Q,C),P=T+v,b){let D=0;for(;D<v;)O[T+D]=1,D+=1}}P=-1;let k=[],M=1,A=v+m;const R=1<<v-1;for(let Q=0;Q<v;Q+=1){let D=0,B=A;for(;D<B;)ti(n,{errors:Q,currentLocation:y+B,expectedLocation:y,distance:d,ignoreLocation:_})<=C?D=B:A=B,B=Math.floor((A-D)/2+D);A=B;let at=Math.max(1,y-B+1),Z=a?m:Math.min(y+B,m)+v,j=Array(Z+2);j[Z+1]=(1<<Q)-1;for(let I=Z;I>=at;I-=1){let H=I-1,tt=r[h.charAt(H)];if(b&&(O[H]=+!!tt),j[I]=(j[I+1]<<1|1)&tt,Q&&(j[I]|=(k[I+1]|k[I])<<1|1|k[I+1]),j[I]&R&&(M=ti(n,{errors:Q,currentLocation:H,expectedLocation:y,distance:d,ignoreLocation:_}),M<=C)){if(C=M,P=H,P<=y)break;at=Math.max(1,2*y-P)}}if(ti(n,{errors:Q+1,currentLocation:y,expectedLocation:y,distance:d,ignoreLocation:_})>C)break;k=j}const z={isMatch:P>=0,score:Math.max(.001,M)};if(b){const Q=pa(O,c);Q.length?p&&(z.indices=Q):z.isMatch=!1}return z}function ma(h){let n={};for(let r=0,u=h.length;r<u;r+=1){const d=h.charAt(r);n[d]=(n[d]||0)|1<<u-r-1}return n}class Ds{constructor(n,{location:r=V.location,threshold:u=V.threshold,distance:d=V.distance,includeMatches:s=V.includeMatches,findAllMatches:a=V.findAllMatches,minMatchCharLength:c=V.minMatchCharLength,isCaseSensitive:p=V.isCaseSensitive,ignoreLocation:_=V.ignoreLocation}={}){if(this.options={location:r,threshold:u,distance:d,includeMatches:s,findAllMatches:a,minMatchCharLength:c,isCaseSensitive:p,ignoreLocation:_},this.pattern=p?n:n.toLowerCase(),this.chunks=[],!this.pattern.length)return;const v=(y,C)=>{this.chunks.push({pattern:y,alphabet:ma(y),startIndex:C})},m=this.pattern.length;if(m>te){let y=0;const C=m%te,P=m-C;for(;y<P;)v(this.pattern.substr(y,te),y),y+=te;if(C){const b=m-te;v(this.pattern.substr(b),b)}}else v(this.pattern,0)}searchIn(n){const{isCaseSensitive:r,includeMatches:u}=this.options;if(r||(n=n.toLowerCase()),this.pattern===n){let P={isMatch:!0,score:0};return u&&(P.indices=[[0,n.length-1]]),P}const{location:d,distance:s,threshold:a,findAllMatches:c,minMatchCharLength:p,ignoreLocation:_}=this.options;let v=[],m=0,y=!1;this.chunks.forEach(({pattern:P,alphabet:b,startIndex:O})=>{const{isMatch:T,score:k,indices:M}=_a(n,P,b,{location:d+O,distance:s,threshold:a,findAllMatches:c,minMatchCharLength:p,includeMatches:u,ignoreLocation:_});T&&(y=!0),m+=k,T&&M&&(v=[...v,...M])});let C={isMatch:y,score:y?m/this.chunks.length:1};return y&&u&&(C.indices=v),C}}class qt{constructor(n){this.pattern=n}static isMultiMatch(n){return xs(n,this.multiRegex)}static isSingleMatch(n){return xs(n,this.singleRegex)}search(){}}function xs(h,n){const r=h.match(n);return r?r[1]:null}class ga extends qt{constructor(n){super(n)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(n){const r=n===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class va extends qt{constructor(n){super(n)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(n){const u=n.indexOf(this.pattern)===-1;return{isMatch:u,score:u?0:1,indices:[0,n.length-1]}}}class ya extends qt{constructor(n){super(n)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(n){const r=n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class La extends qt{constructor(n){super(n)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(n){const r=!n.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class ba extends qt{constructor(n){super(n)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(n){const r=n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[n.length-this.pattern.length,n.length-1]}}}class wa extends qt{constructor(n){super(n)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(n){const r=!n.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,n.length-1]}}}class Rs extends qt{constructor(n,{location:r=V.location,threshold:u=V.threshold,distance:d=V.distance,includeMatches:s=V.includeMatches,findAllMatches:a=V.findAllMatches,minMatchCharLength:c=V.minMatchCharLength,isCaseSensitive:p=V.isCaseSensitive,ignoreLocation:_=V.ignoreLocation}={}){super(n),this._bitapSearch=new Ds(n,{location:r,threshold:u,distance:d,includeMatches:s,findAllMatches:a,minMatchCharLength:c,isCaseSensitive:p,ignoreLocation:_})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(n){return this._bitapSearch.searchIn(n)}}class Fs extends qt{constructor(n){super(n)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(n){let r=0,u;const d=[],s=this.pattern.length;for(;(u=n.indexOf(this.pattern,r))>-1;)r=u+s,d.push([u,r-1]);const a=!!d.length;return{isMatch:a,score:a?0:1,indices:d}}}const Ui=[ga,Fs,ya,La,wa,ba,va,Rs],Ps=Ui.length,Ca=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,xa="|";function Pa(h,n={}){return h.split(xa).map(r=>{let u=r.trim().split(Ca).filter(s=>s&&!!s.trim()),d=[];for(let s=0,a=u.length;s<a;s+=1){const c=u[s];let p=!1,_=-1;for(;!p&&++_<Ps;){const v=Ui[_];let m=v.isMultiMatch(c);m&&(d.push(new v(m,n)),p=!0)}if(!p)for(_=-1;++_<Ps;){const v=Ui[_];let m=v.isSingleMatch(c);if(m){d.push(new v(m,n));break}}}return d})}const Sa=new Set([Rs.type,Fs.type]);class Ea{constructor(n,{isCaseSensitive:r=V.isCaseSensitive,includeMatches:u=V.includeMatches,minMatchCharLength:d=V.minMatchCharLength,ignoreLocation:s=V.ignoreLocation,findAllMatches:a=V.findAllMatches,location:c=V.location,threshold:p=V.threshold,distance:_=V.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:u,minMatchCharLength:d,findAllMatches:a,ignoreLocation:s,location:c,threshold:p,distance:_},this.pattern=r?n:n.toLowerCase(),this.query=Pa(this.pattern,this.options)}static condition(n,r){return r.useExtendedSearch}searchIn(n){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:u,isCaseSensitive:d}=this.options;n=d?n:n.toLowerCase();let s=0,a=[],c=0;for(let p=0,_=r.length;p<_;p+=1){const v=r[p];a.length=0,s=0;for(let m=0,y=v.length;m<y;m+=1){const C=v[m],{isMatch:P,indices:b,score:O}=C.search(n);if(P){if(s+=1,c+=O,u){const T=C.constructor.type;Sa.has(T)?a=[...a,...b]:a.push(b)}}else{c=0,s=0,a.length=0;break}}if(s){let m={isMatch:!0,score:c/s};return u&&(m.indices=a),m}}return{isMatch:!1,score:1}}}const Vi=[];function Ta(...h){Vi.push(...h)}function Ki(h,n){for(let r=0,u=Vi.length;r<u;r+=1){let d=Vi[r];if(d.condition(h,n))return new d(h,n)}return new Ds(h,n)}const ii={AND:"$and",OR:"$or"},qi={PATH:"$path",PATTERN:"$val"},Yi=h=>!!(h[ii.AND]||h[ii.OR]),Ma=h=>!!h[qi.PATH],ka=h=>!Gt(h)&&zs(h)&&!Yi(h),Ss=h=>({[ii.AND]:Object.keys(h).map(n=>({[n]:h[n]}))});function Hs(h,n,{auto:r=!0}={}){const u=d=>{let s=Object.keys(d);const a=Ma(d);if(!a&&s.length>1&&!Yi(d))return u(Ss(d));if(ka(d)){const p=a?d[qi.PATH]:s[0],_=a?d[qi.PATTERN]:d[p];if(!Nt(_))throw new Error(ea(p));const v={keyId:Wi(p),pattern:_};return r&&(v.searcher=Ki(_,n)),v}let c={children:[],operator:s[0]};return s.forEach(p=>{const _=d[p];Gt(_)&&_.forEach(v=>{c.children.push(u(v))})}),c};return Yi(h)||(h=Ss(h)),u(h)}function Ia(h,{ignoreFieldNorm:n=V.ignoreFieldNorm}){h.forEach(r=>{let u=1;r.matches.forEach(({key:d,norm:s,score:a})=>{const c=d?d.weight:null;u*=Math.pow(a===0&&c?Number.EPSILON:a,(c||1)*(n?1:s))}),r.score=u})}function Oa(h,n){const r=h.matches;n.matches=[],xt(r)&&r.forEach(u=>{if(!xt(u.indices)||!u.indices.length)return;const{indices:d,value:s}=u;let a={indices:d,value:s};u.key&&(a.key=u.key.src),u.idx>-1&&(a.refIndex=u.idx),n.matches.push(a)})}function Aa(h,n){n.score=h.score}function za(h,n,{includeMatches:r=V.includeMatches,includeScore:u=V.includeScore}={}){const d=[];return r&&d.push(Oa),u&&d.push(Aa),h.map(s=>{const{idx:a}=s,c={item:n[a],refIndex:a};return d.length&&d.forEach(p=>{p(s,c)}),c})}class de{constructor(n,r={},u){this.options=ce(ce({},V),r),this.options.useExtendedSearch,this._keyStore=new oa(this.options.keys),this.setCollection(n,u)}setCollection(n,r){if(this._docs=n,r&&!(r instanceof $i))throw new Error(ta);this._myIndex=r||Bs(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(n){xt(n)&&(this._docs.push(n),this._myIndex.add(n))}remove(n=()=>!1){const r=[];for(let u=0,d=this._docs.length;u<d;u+=1){const s=this._docs[u];n(s,u)&&(this.removeAt(u),u-=1,d-=1,r.push(s))}return r}removeAt(n){this._docs.splice(n,1),this._myIndex.removeAt(n)}getIndex(){return this._myIndex}search(n,{limit:r=-1}={}){const{includeMatches:u,includeScore:d,shouldSort:s,sortFn:a,ignoreFieldNorm:c}=this.options;let p=Nt(n)?Nt(this._docs[0])?this._searchStringList(n):this._searchObjectList(n):this._searchLogical(n);return Ia(p,{ignoreFieldNorm:c}),s&&p.sort(a),As(r)&&r>-1&&(p=p.slice(0,r)),za(p,this._docs,{includeMatches:u,includeScore:d})}_searchStringList(n){const r=Ki(n,this.options),{records:u}=this._myIndex,d=[];return u.forEach(({v:s,i:a,n:c})=>{if(!xt(s))return;const{isMatch:p,score:_,indices:v}=r.searchIn(s);p&&d.push({item:s,idx:a,matches:[{score:_,value:s,norm:c,indices:v}]})}),d}_searchLogical(n){const r=Hs(n,this.options),u=(c,p,_)=>{if(!c.children){const{keyId:m,searcher:y}=c,C=this._findMatches({key:this._keyStore.get(m),value:this._myIndex.getValueForItemAtKeyId(p,m),searcher:y});return C&&C.length?[{idx:_,item:p,matches:C}]:[]}const v=[];for(let m=0,y=c.children.length;m<y;m+=1){const C=c.children[m],P=u(C,p,_);if(P.length)v.push(...P);else if(c.operator===ii.AND)return[]}return v},d=this._myIndex.records,s={},a=[];return d.forEach(({$:c,i:p})=>{if(xt(c)){let _=u(r,c,p);_.length&&(s[p]||(s[p]={idx:p,item:c,matches:[]},a.push(s[p])),_.forEach(({matches:v})=>{s[p].matches.push(...v)}))}}),a}_searchObjectList(n){const r=Ki(n,this.options),{keys:u,records:d}=this._myIndex,s=[];return d.forEach(({$:a,i:c})=>{if(!xt(a))return;let p=[];u.forEach((_,v)=>{p.push(...this._findMatches({key:_,value:a[v],searcher:r}))}),p.length&&s.push({idx:c,item:a,matches:p})}),s}_findMatches({key:n,value:r,searcher:u}){if(!xt(r))return[];let d=[];if(Gt(r))r.forEach(({v:s,i:a,n:c})=>{if(!xt(s))return;const{isMatch:p,score:_,indices:v}=u.searchIn(s);p&&d.push({score:_,key:n,value:s,idx:a,norm:c,indices:v})});else{const{v:s,n:a}=r,{isMatch:c,score:p,indices:_}=u.searchIn(s);c&&d.push({score:p,key:n,value:s,norm:a,indices:_})}return d}}de.version="7.0.0";de.createIndex=Bs;de.parseIndex=fa;de.config=V;de.parseQuery=Hs;Ta(Ea);var Za=(function(){function h(n){this._haystack=[],this._fuseOptions=Ct(Ct({},n.fuseOptions),{keys:gr([],n.searchFields),includeMatches:!0})}return h.prototype.index=function(n){this._haystack=n,this._fuse&&this._fuse.setCollection(n)},h.prototype.reset=function(){this._haystack=[],this._fuse=void 0},h.prototype.isEmptyIndex=function(){return!this._haystack.length},h.prototype.search=function(n){this._fuse||(this._fuse=new de(this._haystack,this._fuseOptions));var r=this._fuse.search(n);return r.map(function(u,d){return{item:u.item,score:u.score||0,rank:d+1}})},h})();function Na(h){return new Za(h)}var Ba=function(h){for(var n in h)if(Object.prototype.hasOwnProperty.call(h,n))return!1;return!0},Fi=function(h,n,r){var u=h.dataset,d=n.customProperties,s=n.labelClass,a=n.labelDescription;s&&(u.labelClass=si(s).join(" ")),a&&(u.labelDescription=a),r&&d&&(typeof d=="str
1ing"?u.customProperties=d:typeof d=="object"&&!Ba(d)&&(u.customProperties=JSON.stringify(d)))},Es=function(h,n,r){var u=n&&h.querySelector("label[for='".concat(n,"']")),d=u&&u.innerText;d&&r.setAttribute("aria-label",d)},Da={containerOuter:function(h,n,r,u,d,s,a){var c=h.classNames.containerOuter,p=document.createElement("div");return q(p,c),p.dataset.type=s,n&&(p.dir=n),u&&(p.tabIndex=0),r&&(p.setAttribute("role",d?"combobox":"listbox"),d?p.setAttribute("aria-autocomplete","list"):a||Es(this._docRoot,this.passedElement.element.id,p),p.setAttribute("aria-haspopup","true"),p.setAttribute("aria-expanded","false")),a&&p.setAttribute("aria-labelledby",a),p},containerInner:function(h){var n=h.classNames.containerInner,r=document.createElement("div");return q(r,n),r},itemList:function(h,n){var r=h.searchEnabled,u=h.classNames,d=u.list,s=u.listSingle,a=u.listItems,c=document.createElement("div");return q(c,d),q(c,n?s:a),this._isSelectElement&&r&&c.setAttribute("role","listbox"),c},placeholder:function(h,n){var r=h.allowHTML,u=h.classNames.placeholder,d=document.createElement("div");return q(d,u),jt(d,r,n),d},item:function(h,n,r){var u=h.allowHTML,d=h.removeItemButtonAlignLeft,s=h.removeItemIconText,a=h.removeItemLabelText,c=h.classNames,p=c.item,_=c.button,v=c.highlightedState,m=c.itemSelectable,y=c.placeholder,C=ee(n.value),P=document.createElement("div");if(q(P,p),n.labelClass){var b=document.createElement("span");jt(b,u,n.label),q(b,n.labelClass),P.appendChild(b)}else jt(P,u,n.label);if(P.dataset.item="",P.dataset.id=n.id,P.dataset.value=C,Fi(P,n,!0),(n.disabled||this.containerOuter.isDisabled)&&P.setAttribute("aria-disabled","true"),this._isSelectElement&&(P.setAttribute("aria-selected","true"),P.setAttribute("role","option")),n.placeholder&&(q(P,y),P.dataset.placeholder=""),q(P,n.highlighted?v:m),r){n.disabled&&Zt(P,m),P.dataset.deletable="";var O=document.createElement("button");O.type="button",q(O,_),jt(O,!0,Oe(s,n.value));var T=Oe(a,n.value);T&&O.setAttribute("aria-label",T),O.dataset.button="",d?P.insertAdjacentElement("afterbegin",O):P.appendChild(O)}return P},choiceList:function(h,n){var r=h.classNames.list,u=document.createElement("div");return q(u,r),n||u.setAttribute("aria-multiselectable","true"),u.setAttribute("role","listbox"),u},choiceGroup:function(h,n){var r=h.allowHTML,u=h.classNames,d=u.group,s=u.groupHeading,a=u.itemDisabled,c=n.id,p=n.label,_=n.disabled,v=ee(p),m=document.createElement("div");q(m,d),_&&q(m,a),m.setAttribute("role","group"),m.dataset.group="",m.dataset.id=c,m.dataset.value=v,_&&m.setAttribute("aria-disabled","true");var y=document.createElement("div");return q(y,s),jt(y,r,p||""),m.appendChild(y),m},choice:function(h,n,r,u){var d=h.allowHTML,s=h.classNames,a=s.item,c=s.itemChoice,p=s.itemSelectable,_=s.selectedState,v=s.itemDisabled,m=s.description,y=s.placeholder,C=n.label,P=ee(n.value),b=document.createElement("div");b.id=n.elementId,q(b,a),q(b,c),u&&typeof C=="string"&&(C=Ji(d,C),C+=" (".concat(u,")"),C={trusted:C});var O=b;if(n.labelClass){var T=document.createElement("span");jt(T,d,C),q(T,n.labelClass),O=T,b.appendChild(T)}else jt(b,d,C);if(n.labelDescription){var k="".concat(n.elementId,"-description");O.setAttribute("aria-describedby",k);var M=document.createElement("span");jt(M,d,n.labelDescription),M.id=k,q(M,m),b.appendChild(M)}return n.selected&&q(b,_),n.placeholder&&q(b,y),b.setAttribute("role",n.group?"treeitem":"option"),b.dataset.choice="",b.dataset.id=n.id,b.dataset.value=P,r&&(b.dataset.selectText=r),n.group&&(b.dataset.groupId="".concat(n.group.id)),Fi(b,n,!1),n.disabled?(q(b,v),b.dataset.choiceDisabled="",b.setAttribute("aria-disabled","true")):(q(b,p),b.dataset.choiceSelectable=""),b},input:function(h,n){var r=h.classNames,u=r.input,d=r.inputCloned,s=h.labelId,a=document.createElement("input");return a.type="search",q(a,u),q(a,d),a.autocomplete="off",a.autocapitalize="off",a.spellcheck=!1,a.setAttribute("aria-autocomplete","list"),n?a.setAttribute("aria-label",n):s||Es(this._docRoot,this.passedElement.element.id,a),a},dropdown:function(h){var n=h.classNames,r=n.list,u=n.listDropdown,d=document.createElement("div");
vendor: 33,204 bytes, line 1
1return q(d,r),q(d,u),d.setAttribute("aria-expanded","false"),d},notice:function(h,n,r){var u=h.classNames,d=u.item,s=u.itemChoice,a=u.addChoice,c=u.noResults,p=u.noChoices,_=u.notice;r===void 0&&(r=mt.generic);var v=document.createElement("div");switch(jt(v,!0,n),q(v,d),q(v,s),q(v,_),r){case mt.addChoice:q(v,a);break;case mt.noResults:q(v,c);break;case mt.noChoices:q(v,p);break}return r===mt.addChoice&&(v.dataset.choiceSelectable="",v.dataset.choice=""),v},option:function(h){var n=ee(h.label),r=new Option(n,h.value,!1,h.selected);return Fi(r,h,!0),r.disabled=h.disabled,h.selected&&r.setAttribute("selected",""),r}},Ra="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,Fa={},Hi=function(h){if(h)return h.dataset.id?parseInt(h.dataset.id,10):void 0},Te="[data-choice-selectable]",ji=(function(){function h(n,r){n===void 0&&(n="[data-choice]"),r===void 0&&(r={});var u=this;this.initialisedOK=void 0,this._hasNonChoicePlaceholder=!1,this._lastAddedChoiceId=0,this._lastAddedGroupId=0;var d=h.defaults;this.config=Ct(Ct(Ct({},d.allOptions),d.options),r),vr.forEach(function(T){u.config[T]=Ct(Ct(Ct({},d.allOptions[T]),d.options[T]),r[T])});var s=this.config;s.silent||this._validateConfig();var a=s.shadowRoot||document.documentElement;this._docRoot=a;var c=typeof n=="string"?a.querySelector(n):n;if(!c||typeof c!="object"||!(Dr(c)||Os(c)))throw TypeError(!c&&typeof n=="string"?"Selector ".concat(n," failed to find an element"):"Expected one of the following types text|select-one|select-multiple");var p=c.type,_=p===Kt.Text;(_||s.maxItemCount!==1)&&(s.singleModeForMultiSelect=!1),s.singleModeForMultiSelect&&(p=Kt.SelectMultiple);var v=p===Kt.SelectOne,m=p===Kt.SelectMultiple,y=v||m;if(this._elementType=p,this._isTextElement=_,this._isSelectOneElement=v,this._isSelectMultipleElement=m,this._isSelectElement=v||m,this._canAddUserChoices=_&&s.addItems||y&&s.addChoices,typeof s.renderSelectedChoices!="boolean"&&(s.renderSelectedChoices=s.renderSelectedChoices==="always"||v),s.closeDropdownOnSelect==="auto"?s.closeDropdownOnSelect=_||v||s.singleModeForMultiSelect:s.closeDropdownOnSelect=Ie(s.closeDropdownOnSelect),s.placeholder&&(s.placeholderValue?this._hasNonChoicePlaceholder=!0:c.dataset.placeholder&&(this._hasNonChoicePlaceholder=!0,s.placeholderValue=c.dataset.placeholder)),r.addItemFilter&&typeof r.addItemFilter!="function"){var C=r.addItemFilter instanceof RegExp?r.addItemFilter:new RegExp(r.addItemFilter);s.addItemFilter=C.test.bind(C)}if(this._isTextElement)this.passedElement=new Br({element:c,classNames:s.classNames});else{var P=c;this.passedElement=new Hr({element:P,classNames:s.classNames,template:function(T){return u._templates.option(T)},extractPlaceholder:s.placeholder&&!this._hasNonChoicePlaceholder})}if(this.initialised=!1,this._store=new Vr(s),this._currentValue="",s.searchEnabled=!_&&s.searchEnabled||m,this._canSearch=s.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=xr(c,"choices-"),this._direction=c.dir,!this._direction){var b=window.getComputedStyle(c).direction,O=window.getComputedStyle(document.documentElement).direction;b!==O&&(this._direction=b)}if(this._idNames={itemChoice:"item-choice"},this._templates=d.templates,this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onInput=this._onInput.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive){s.silent||console.warn("Trying to initialise Choices on element already initialised",{element:n}),this.initialised=!0,this.initialisedOK=!1;return}this.init(),this._initialItems=this._store.items.map(function(T){return T.value})}return Object.defineProperty(h,"defaults",{get:function(){return Object.preventExtensions({get options(){return Fa},get allOptions(){return vs},get templates(){return Da}})},enumerable:!1,configurable:!0}),h.prototype.init=function(){if(!(this.initialised||this.initialisedOK!==void 0)){this._searcher=Na(this.config),this._loadChoices(),this._createTemplates(),this._createElements(),this._createStructure(),this._isTextElement&&!this.config.addItems||this.passedElement.element.hasAttribute("disabled")||this.passedElement.element.closest("fieldset:disabled")?this.disable():(this.enable(),this._addEventListeners()),this._initStore(),this.initialised=!0,this.initialisedOK=!0;var n=this.config.callbackOnInit;typeof n=="function"&&n.call(this)}},h.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this._store._listeners=[],this.clearStore(!1),this._stopSearch(),this._templates=h.defaults.templates,this.initialised=!1,this.initialisedOK=void 0)},h.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},h.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},h.prototype.highlightItem=function(n,r){if(r===void 0&&(r=!0),!n||!n.id)return this;var u=this._store.items.find(function(d){return d.id===n.id});return!u||u.highlighted?this:(this._store.dispatch(Qe(u,!0)),r&&this.passedElement.triggerEvent(wt.highlightItem,this._getChoiceForOutput(u)),this)},h.prototype.unhighlightItem=function(n,r){if(r===void 0&&(r=!0),!n||!n.id)return this;var u=this._store.items.find(function(d){return d.id===n.id});return!u||!u.highlighted?this:(this._store.dispatch(Qe(u,!1)),r&&this.passedElement.triggerEvent(wt.unhighlightItem,this._getChoiceForOutput(u)),this)},h.prototype.highlightAll=function(){var n=this;return this._store.withTxn(function(){n._store.items.forEach(function(r){r.highlighted||(n._store.dispatch(Qe(r,!0)),n.passedElement.triggerEvent(wt.highlightItem,n._getChoiceForOutput(r)))})}),this},h.prototype.unhighlightAll=function(){var n=this;return this._store.withTxn(function(){n._store.items.forEach(function(r){r.highlighted&&(n._store.dispatch(Qe(r,!1)),n.passedElement.triggerEvent(wt.highlightItem,n._getChoiceForOutput(r)))})}),this},h.prototype.removeActiveItemsByValue=function(n){var r=this;return this._store.withTxn(function(){r._store.items.filter(function(u){return u.value===n}).forEach(function(u){return r._removeItem(u)})}),this},h.prototype.removeActiveItems=function(n){var r=this;return this._store.withTxn(function(){r._store.items.filter(function(u){var d=u.id;return d!==n}).forEach(function(u){return r._removeItem(u)})}),this},h.prototype.removeHighlightedItems=function(n){var r=this;return n===void 0&&(n=!1),this._store.withTxn(function(){r._store.highlightedActiveItems.forEach(function(u){r._removeItem(u),n&&r._triggerChange(u.value)})}),this},h.prototype.showDropdown=function(n){var r=this;return this.dropdown.isActive?this:(n===void 0&&(n=!this._canSearch),requestAnimationFrame(function(){r.dropdown.show();var u=r.dropdown.element.getBoundingClientRect();r.containerOuter.open(u.bottom,u.height),n||r.input.focus(),r.passedElement.triggerEvent(wt.showDropdown)}),this)},h.prototype.hideDropdown=function(n){var r=this;return this.dropdown.isActive?(requestAnimationFrame(function(){r.dropdown.hide(),r.containerOuter.close(),!n&&r._canSearch&&(r.input.removeActiveDescendant(),r.input.blur()),r.passedElement.triggerEvent(wt.hideDropdown)}),this):this},h.prototype.getValue=function(n){var r=this,u=this._store.items.map(function(d){return n?d.value:r._getChoiceForOutput(d)});return this._isSelectOneElement||this.config.singleModeForMultiSelect?u[0]:u},h.prototype.setValue=function(n){var r=this;return this.initialisedOK?(this._store.withTxn(function(){n.forEach(function(u){u&&r._addChoice(zt(u,!1))})}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setValue"),this)},h.prototype.setChoiceByValue=function(n){var r=this;return this.initialisedOK?this._isTextElement?this:(this._store.withTxn(function(){var u=Array.isArray(n)?n:[n];u.forEach(function(d){return r._findAndSelectChoiceByValue(d)}),r.unhighlightAll()}),this._searcher.reset(),this):(this._warnChoicesInitFailed("setChoiceByValue"),this)},h.prototype.setChoices=function(n,r,u,d,s,a){var c=this;if(n===void 0&&(n=[]),r===void 0&&(r="value"),u===void 0&&(u="label"),d===void 0&&(d=!1),s===void 0&&(s=!0),a===void 0&&(a=!1),!this.initialisedOK)return this._warnChoicesInitFailed("setChoices"),this;if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if(typeof r!="string"||!r)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(typeof n=="function"){var p=n(this);if(typeof Promise=="function"&&p instanceof Promise)return new Promise(function(_){return requestAnimationFrame(_)}).then(function(){return c._handleLoadingState(!0)}).then(function(){return p}).then(function(_){return c.setChoices(_,r,u,d,s,a)}).catch(function(_){c.config.silent||console.error(_)}).then(function(){return c._handleLoadingState(!1)}).then(function(){return c});if(!Array.isArray(p))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof p));return this.setChoices(p,r,u,!1)}if(!Array.isArray(n))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._store.withTxn(function(){s&&(c._isSearching=!1),d&&c.clearChoices(!0,a);var _=r==="value",v=u==="label";n.forEach(function(m){if("choices"in m){var y=m;v||(y=Ct(Ct({},y),{label:y[u]})),c._addGroup(zt(y,!0))}else{var C=m;(!v||!_)&&(C=Ct(Ct({},C),{value:C[r],label:C[u]}));var P=zt(C,!1);c._addChoice(P),P.placeholder&&!c._hasNonChoicePlaceholder&&(c._placeholderValue=Ms(P.label))}}),c.unhighlightAll()}),this._searcher.reset(),this},h.prototype.refresh=function(n,r,u){var d=this;return n===void 0&&(n=!1),r===void 0&&(r=!1),u===void 0&&(u=!1),this._isSelectElement?(this._store.withTxn(function(){var s=d.passedElement.optionsAsChoices(),a={};u||d._store.items.forEach(function(p){p.id&&p.active&&p.selected&&(a[p.value]=!0)}),d.clearStore(!1);var c=function(p){u?d._store.dispatch(fs(p)):a[p.value]&&(p.selected=!0)};s.forEach(function(p){if("choices"in p){p.choices.forEach(c);return}c(p)}),d._addPredefinedChoices(s,r,n),d._isSearching&&d._searchChoices(d.input.value)}),this):(this.config.silent||console.warn("refresh method can only be used on choices backed by a <select> element"),this)},h.prototype.removeChoice=function(n){var r=this._store.choices.find(function(u){return u.value===n});return r?(this._clearNotice(),this._store.dispatch(yr(r)),this._searcher.reset(),r.selected&&this.passedElement.triggerEvent(wt.removeItem,this._getChoiceForOutput(r)),this):this},h.prototype.clearChoices=function(n,r){var u=this;return n===void 0&&(n=!0),r===void 0&&(r=!1),n&&(r?this.passedElement.element.replaceChildren(""):this.passedElement.element.querySelectorAll(":not([selected])").forEach(function(d){d.remove()})),this.itemList.element.replaceChildren(""),this.choiceList.element.replaceChildren(""),this._clearNotice(),this._store.withTxn(function(){var d=r?[]:u._store.items;u._store.reset(),d.forEach(function(s){u._store.dispatch(cs(s)),u._store.dispatch(ds(s))})}),this._searcher.reset(),this},h.prototype.clearStore=function(n){return n===void 0&&(n=!0),this.clearChoices(n,!0),this._stopSearch(),this._lastAddedChoiceId=0,this._lastAddedGroupId=0,this},h.prototype.clearInput=function(){var n=!this._isSelectOneElement;return this.input.clear(n),this._stopSearch(),this},h.prototype._validateConfig=function(){var n=this.config,r=Ir(n,vs);r.length&&console.warn("Unknown config option(s) passed",r.join(", ")),n.allowHTML&&n.allowHtmlUserInput&&(n.addItems&&console.warn("Warning: allowHTML/allowHtmlUserInput/addItems all being true is strongly not recommended and may lead to XSS attacks"),n.addChoices&&console.warn("Warning: allowHTML/allowHtmlUserInput/addChoices all being true is strongly not recommended and may lead to XSS attacks"))},h.prototype._render=function(n){n===void 0&&(n={choices:!0,groups:!0,items:!0}),!this._store.inTxn()&&(this._isSelectElement&&(n.choices||n.groups)&&this._renderChoices(),n.items&&this._renderItems())},h.prototype._renderChoices=function(){var n=this;if(this._canAddItems()){var r=this,u=r.config,d=r._isSearching,s=this._store,a=s.activeGroups,c=s.activeChoices,p=0;if(d&&u.searchResultLimit>0?p=u.searchResultLimit:u.renderChoiceLimit>0&&(p=u.renderChoiceLimit),this._isSelectElement){var _=c.filter(function(P){return!P.element});_.length&&this.passedElement.addOptions(_)}var v=document.createDocumentFragment(),m=function(P){return P.filter(function(b){return!b.placeholder&&(d?!!b.rank:u.renderSelectedChoices||!b.selected)})},y=!1,C=function(P,b,O){d?P.sort(Mr):u.shouldSort&&P.sort(u.sorter);var T=P.length;T=!b&&p&&T>p?p:T,T--,P.every(function(k,M){var A=k.choiceEl||n._templates.choice(u,k,u.itemSelectText,O);return k.choiceEl=A,v.appendChild(A),(d||!k.selected)&&(y=!0),M<T})};c.length&&(u.resetScrollPosition&&requestAnimationFrame(function(){return n.choiceList.scrollToTop()}),!this._hasNonChoicePlaceholder&&!d&&this._isSelectOneElement&&C(c.filter(function(P){return P.placeholder&&!P.group}),!1,void 0),a.length&&!d?(u.shouldSort&&a.sort(u.sorter),C(c.filter(function(P){return!P.placeholder&&!P.group}),!1,void 0),a.forEach(function(P){var b=m(P.choices);if(b.length){if(P.label){var O=P.groupEl||n._templates.choiceGroup(n.config,P);P.groupEl=O,O.remove(),v.appendChild(O)}C(b,!0,u.appendGroupInSearch&&d?P.label:void 0)}})):C(m(c),!1,void 0)),!y&&(d||!v.children.length||!u.renderSelectedChoices)&&(this._notice||(this._notice={text:_s(d?u.noResultsText:u.noChoicesText),type:d?mt.noResults:mt.noChoices}),v.replaceChildren("")),this._renderNotice(v),this.choiceList.element.replaceChildren(v),y&&this._highlightChoice()}},h.prototype._renderItems=function(){var n=this,r=this._store.items||[],u=this.itemList.element,d=this.config,s=document.createDocumentFragment(),a=function(m){return u.querySelector('[data-item][data-id="'.concat(m.id,'"]'))},c=function(m){var y=m.itemEl;y&&y.parentElement||(y=a(m)||n._templates.item(d,m,d.removeItemButton),m.itemEl=y,s.appendChild(y))};r.forEach(c);var p=!!s.childNodes.length;if(this._isSelectOneElement){var _=u.children.length;if(p||_>1){var v=u.querySelector(Ee(d.classNames.placeholder));v&&v.remove()}else!p&&!_&&this._placeholderValue&&(p=!0,c(zt({selected:!0,value:"",label:this._placeholderValue,placeholder:!0},!1)))}p&&(u.append(s),d.shouldSortItems&&!this._isSelectOneElement&&(r.sort(d.sorter),r.forEach(function(m){var y=a(m);y&&(y.remove(),s.append(y))}),u.append(s))),this._isTextElement&&(this.passedElement.value=r.map(function(m){var y=m.value;return y}).join(d.delimiter))},h.prototype._displayNotice=function(n,r,u){u===void 0&&(u=!0);var d=this._notice;if(d&&(d.type===r&&d.text===n||d.type===mt.addChoice&&(r===mt.noResults||r===mt.noChoices))){u&&this.showDropdown(!0);return}this._clearNotice(),this._notice=n?{text:n,type:r}:void 0,this._renderNotice(),u&&n&&this.showDropdown(!0)},h.prototype._clearNotice=function(){if(this._notice){var n=this.choiceList.element.querySelector(Ee(this.config.classNames.notice));n&&n.remove(),this._notice=void 0}},h.prototype._renderNotice=function(n){var r=this._notice;if(r){var u=this._templates.notice(this.config,r.text,r.type);n?n.append(u):this.choiceList.prepend(u)}},h.prototype._getChoiceForOutput=function(n,r){return{id:n.id,highlighted:n.highlighted,labelClass:n.labelClass,labelDescription:n.labelDescription,customProperties:n.customProperties,disabled:n.disabled,active:n.active,label:n.label,placeholder:n.placeholder,value:n.value,groupValue:n.group?n.group.label:void 0,element:n.element,keyCode:r}},h.prototype._triggerChange=function(n){n!=null&&this.passedElement.triggerEvent(wt.change,{value:n})},h.prototype._handleButtonAction=function(n){var r=this,u=this._store.items;if(!(!u.length||!this.config.removeItems||!this.config.removeItemButton)){var d=n&&Hi(n.parentElement),s=d&&u.find(function(a){return a.id===d});s&&this._store.withTxn(function(){if(r._removeItem(s),r._triggerChange(s.value),r._isSelectOneElement&&!r._hasNonChoicePlaceholder){var a=(r.config.shouldSort?r._store.choices.reverse():r._store.choices).find(function(c){return c.placeholder});a&&(r._addItem(a),r.unhighlightAll(),a.value&&r._triggerChange(a.value))}})}},h.prototype._handleItemAction=function(n,r){var u=this;r===void 0&&(r=!1);var d=this._store.items;if(!(!d.length||!this.config.removeItems||this._isSelectOneElement)){var s=Hi(n);s&&(d.forEach(function(a){a.id===s&&!a.highlighted?u.highlightItem(a):!r&&a.highlighted&&u.unhighlightItem(a)}),this.input.focus())}},h.prototype._handleChoiceAction=function(n){var r=this,u=Hi(n),d=u&&this._store.getChoiceById(u);if(!d||d.disabled)return!1;var s=this.dropdown.isActive;if(!d.selected){if(!this._canAddItems())return!0;this._store.withTxn(function(){r._addItem(d,!0,!0),r.clearInput(),r.unhighlightAll()}),this._triggerChange(d.value)}return s&&this.config.closeDropdownOnSelect&&(this.hideDropdown(!0),this.containerOuter.element.focus()),!0},h.prototype._handleBackspace=function(n){var r=this.config;if(!(!r.removeItems||!n.length)){var u=n[n.length-1],d=n.some(function(s){return s.highlighted});r.editItems&&!d&&u?(this.input.value=u.value,this.input.setWidth(),this._removeItem(u),this._triggerChange(u.value)):(d||this.highlightItem(u,!1),this.removeHighlightedItems(!0))}},h.prototype._loadChoices=function(){var n,r=this,u=this.config;if(this._isTextElement){if(this._presetChoices=u.items.map(function(a){return zt(a,!1)}),this.passedElement.value){var d=this.passedElement.value.split(u.delimiter).map(function(a){return zt(a,!1,r.config.allowHtmlUserInput)});this._presetChoices=this._presetChoices.concat(d)}this._presetChoices.forEach(function(a){a.selected=!0})}else if(this._isSelectElement){this._presetChoices=u.choices.map(function(a){return zt(a,!0)});var s=this.passedElement.optionsAsChoices();s&&(n=this._presetChoices).push.apply(n,s)}},h.prototype._handleLoadingState=function(n){n===void 0&&(n=!0);var r=this.itemList.element;n?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?r.replaceChildren(this._templates.placeholder(this.config,this.config.loadingText)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?(r.replaceChildren(""),this._render()):this.input.placeholder=this._placeholderValue||"")},h.prototype._handleSearch=function(n){if(this.input.isFocussed)if(n!==null&&typeof n<"u"&&n.length>=this.config.searchFloor){var r=this.config.searchChoices?this._searchChoices(n):0;r!==null&&this.passedElement.triggerEvent(wt.search,{value:n,resultCount:r})}else this._store.choices.some(function(u){return!u.active})&&this._stopSearch()},h.prototype._canAddItems=function(){var n=this.config,r=n.maxItemCount,u=n.maxItemText;return!n.singleModeForMultiSelect&&r>0&&r<=this._store.items.length?(this.choiceList.element.replaceChildren(""),this._notice=void 0,this._displayNotice(typeof u=="function"?u(r):u,mt.addChoice),!1):(this._notice&&this._notice.type===mt.addChoice&&this._clearNotice(),!0)},h.prototype._canCreateItem=function(n){var r=this.config,u=!0,d="";if(u&&typeof r.addItemFilter=="function"&&!r.addItemFilter(n)&&(u=!1,d=Oe(r.customAddItemText,n)),u){var s=this._store.choices.find(function(a){return r.valueComparer(a.value,n)});if(s){if(this._isSelectElement)return this._displayNotice("",mt.addChoice),!1;r.duplicateItemsAllowed||(u=!1,d=Oe(r.uniqueItemText,n))}}return u&&(d=Oe(r.addItemText,n)),d&&this._displayNotice(d,mt.addChoice),u},h.prototype._searchChoices=function(n){var r=n.trim().replace(/\s{2,}/," ");if(!r.length||r===this._currentValue)return null;var u=this._searcher;u.isEmptyIndex()&&u.index(this._store.searchableChoices);var d=u.search(r);this._currentValue=r,this._highlightPosition=0,this._isSearching=!0;var s=this._notice,a=s&&s.type;return a!==mt.addChoice&&(d.length?this._clearNotice():this._displayNotice(_s(this.config.noResultsText),mt.noResults)),this._store.dispatch(Lr(d)),d.length},h.prototype._stopSearch=function(){this._isSearching&&(this._currentValue="",this._isSearching=!1,this._clearNotice(),this._store.dispatch(br(!0)),this.passedElement.triggerEvent(wt.search,{value:"",resultCount:0}))},h.prototype._addEventListeners=function(){var n=this._docRoot,r=this.containerOuter.element,u=this.input.element;n.addEventListener("touchend",this._onTouchEnd,!0),r.addEventListener("keydown",this._onKeyDown,!0),r.addEventListener("mousedown",this._onMouseDown,!0),n.addEventListener("click",this._onClick,{passive:!0}),n.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(r.addEventListener("focus",this._onFocus,{passive:!0}),r.addEventListener("blur",this._onBlur,{passive:!0})),u.addEventListener("keyup",this._onKeyUp,{passive:!0}),u.addEventListener("input",this._onInput,{passive:!0}),u.addEventListener("focus",this._onFocus,{passive:!0}),u.addEventListener("blur",this._onBlur,{passive:!0}),u.form&&u.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},h.prototype._removeEventListeners=function(){var n=this._docRoot,r=this.containerOuter.element,u=this.input.element;n.removeEventListener("touchend",this._onTouchEnd,!0),r.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),n.removeEventListener("click",this._onClick),n.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(r.removeEventListener("focus",this._onFocus),r.removeEventListener("blur",this._onBlur)),u.removeEventListener("keyup",this._onKeyUp),u.removeEventListener("input",this._onInput),u.removeEventListener("focus",this._onFocus),u.removeEventListener("blur",this._onBlur),u.form&&u.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},h.prototype._onKeyDown=function(n){var r=n.keyCode,u=this.dropdown.isActive,d=n.key.length===1||n.key.length===2&&n.key.charCodeAt(0)>=55296||n.key==="Unidentified";switch(!this._isTextElement&&!u&&r!==gt.ESC_KEY&&r!==gt.TAB_KEY&&r!==gt.SHIFT_KEY&&(this.showDropdown(),!this.input.isFocussed&&d&&(this.input.value+=n.key,n.key===" "&&n.preventDefault())),r){case gt.A_KEY:return this._onSelectKey(n,this.itemList.element.hasChildNodes());case gt.ENTER_KEY:return this._onEnterKey(n,u);case gt.ESC_KEY:return this._onEscapeKey(n,u);case gt.UP_KEY:case gt.PAGE_UP_KEY:case gt.DOWN_KEY:case gt.PAGE_DOWN_KEY:return this._onDirectionKey(n,u);case gt.DELETE_KEY:case gt.BACK_KEY:return this._onDeleteKey(n,this._store.items,this.input.isFocussed)}},h.prototype._onKeyUp=function(){this._canSearch=this.config.searchEnabled},h.prototype._onInput=function(){var n=this.input.value;if(!n){this._isTextElement?this.hideDropdown(!0):this._stopSearch();return}this._canAddItems()&&(this._canSearch&&this._handleSearch(n),this._canAddUserChoices&&(this._canCreateItem(n),this._isSelectElement&&(this._highlightPosition=0,this._highlightChoice())))},h.prototype._onSelectKey=function(n,r){if((n.ctrlKey||n.metaKey)&&r){this._canSearch=!1;var u=this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement;u&&this.highlightAll()}},h.prototype._onEnterKey=function(n,r){var u=this,d=this.input.value,s=n.target;if(n.preventDefault(),s&&s.hasAttribute("data-button")){this._handleButtonAction(s);return}if(!r){(this._isSelectElement||this._notice)&&this.showDropdown();return}var a=this.dropdown.element.querySelector(Ee(this.config.classNames.highlightedState));if(!(a&&this._handleChoiceAction(a))){if(!s||!d){this.hideDropdown(!0);return}if(this._canAddItems()){var c=!1;this._store.withTxn(function(){if(c=u._findAndSelectChoiceByValue(d,!0),!c){if(!u._canAddUserChoices||!u._canCreateItem(d))return;u._addChoice(zt(d,!1,u.config.allowHtmlUserInput),!0,!0),c=!0}u.clearInput(),u.unhighlightAll()}),c&&(this._triggerChange(d),this.config.closeDropdownOnSelect&&this.hideDropdown(!0))}}},h.prototype._onEscapeKey=function(n,r){r&&(n.stopPropagation(),this.hideDropdown(!0),this._stopSearch(),this.containerOuter.element.focus())},h.prototype._onDirectionKey=function(n,r){var u=n.keyCode;if(r||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var d=u===gt.DOWN_KEY||u===gt.PAGE_DOWN_KEY?1:-1,s=n.metaKey||u===gt.PAGE_DOWN_KEY||u===gt.PAGE_UP_KEY,a=void 0;if(s)d>0?a=this.dropdown.element.querySelector("".concat(Te,":last-of-type")):a=this.dropdown.element.querySelector(Te);else{var c=this.dropdown.element.querySelector(Ee(this.config.classNames.highlightedState));c?a=Pr(c,Te,d):a=this.dropdown.element.querySelector(Te)}a&&(Sr(a,this.choiceList.element,d)||this.choiceList.scrollToChildElement(a,d),this._highlightChoice(a)),n.preventDefault()}},h.prototype._onDeleteKey=function(n,r,u){!this._isSelectOneElement&&!n.target.value&&u&&(this._handleBackspace(r),n.preventDefault())},h.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},h.prototype._onTouchEnd=function(n){var r=(n||n.touches[0]).target,u=this._wasTap&&this.containerOuter.element.contains(r);if(u){var d=r===this.containerOuter.element||r===this.containerInner.element;d&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),n.stopPropagation()}this._wasTap=!0},h.prototype._onMouseDown=function(n){var r=n.target;if(r instanceof HTMLElement){if(Ra&&this.choiceList.element.contains(r)){var u=this.choiceList.element.firstElementChild;this._isScrollingOnIe=this._direction==="ltr"?n.offsetX>=u.offsetWidth:n.offsetX<u.offsetLeft}if(r!==this.input.element){var d=r.closest("[data-button],[data-item],[data-choice]");d instanceof HTMLElement&&("button"in d.dataset?this._handleButtonAction(d):"item"in d.dataset?this._handleItemAction(d,n.shiftKey):"choice"in d.dataset&&this._handleChoiceAction(d)),n.preventDefault()}}},h.prototype._onMouseOver=function(n){var r=n.target;r instanceof HTMLElement&&"choice"in r.dataset&&this._highlightChoice(r)},h.prototype._onClick=function(n){var r=n.target,u=this.containerOuter,d=u.element.contains(r);d?!this.dropdown.isActive&&!u.isDisabled?this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),u.element.focus()):this._isSelectOneElement&&r!==this.input.element&&!this.dropdown.element.contains(r)&&this.hideDropdown():(u.removeFocusState(),this.hideDropdown(!0),this.unhighlightAll())},h.prototype._onFocus=function(n){var r=n.target,u=this.containerOuter,d=r&&u.element.contains(r);if(d){var s=r===this.input.element;this._isTextElement?s&&u.addFocusState():this._isSelectMultipleElement?s&&(this.showDropdown(!0),u.addFocusState()):(u.addFocusState(),s&&this.showDropdown(!0))}},h.prototype._onBlur=function(n){var r=n.target,u=this.containerOuter,d=r&&u.element.contains(r);d&&!this._isScrollingOnIe?r===this.input.element?(u.removeFocusState(),this.hideDropdown(!0),(this._isTextElement||this._isSelectMultipleElement)&&this.unhighlightAll()):r===this.containerOuter.element&&(u.removeFocusState(),this._canSearch||this.hideDropdown(!0)):(this._isScrollingOnIe=!1,this.input.element.focus())},h.prototype._onFormReset=function(){var n=this;this._store.withTxn(function(){n.clearInput(),n.hideDropdown(),n.refresh(!1,!1,!0),n._initialItems.length&&n.setChoiceByValue(n._initialItems)})},h.prototype._highlightChoice=function(n){n===void 0&&(n=null);var r=Array.from(this.dropdown.element.querySelectorAll(Te));if(r.length){var u=n,d=this.config.classNames.highlightedState,s=Array.from(this.dropdown.element.querySelectorAll(Ee(d)));s.forEach(function(a){Zt(a,d),a.setAttribute("aria-selected","false")}),u?this._highlightPosition=r.indexOf(u):(r.length>this._highlightPosition?u=r[this._highlightPosition]:u=r[r.length-1],u||(u=r[0])),q(u,d),u.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(wt.highlightChoice,{el:u}),this.dropdown.isActive&&(this.input.setActiveDescendant(u.id),this.containerOuter.setActiveDescendant(u.id))}},h.prototype._addItem=function(n,r,u){if(r===void 0&&(r=!0),u===void 0&&(u=!1),!n.id)throw new TypeError("item.id must be set before _addItem is called for a choice/item");(this.config.singleModeForMultiSelect||this._isSelectOneElement)&&this.removeActiveItems(n.id),this._store.dispatch(ds(n)),r&&(this.passedElement.triggerEvent(wt.addItem,this._getChoiceForOutput(n)),u&&this.passedElement.triggerEvent(wt.choice,this._getChoiceForOutput(n)))},h.prototype._removeItem=function(n){if(n.id){this._store.dispatch(fs(n));var r=this._notice;r&&r.type===mt.noChoices&&this._clearNotice(),this.passedElement.triggerEvent(wt.removeItem,this._getChoiceForOutput(n))}},h.prototype._addChoice=function(n,r,u){if(r===void 0&&(r=!0),u===void 0&&(u=!1),n.id)throw new TypeError("Can not re-add a choice which has already been added");var d=this.config;if(!(!d.duplicateItemsAllowed&&this._store.choices.find(function(c){return d.valueComparer(c.value,n.value)}))){this._lastAddedChoiceId++,n.id=this._lastAddedChoiceId,n.elementId="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(n.id);var s=d.prependValue,a=d.appendValue;s&&(n.value=s+n.value),a&&(n.value+=a.toString()),(s||a)&&n.element&&(n.element.value=n.value),this._clearNotice(),this._store.dispatch(cs(n)),n.selected&&this._addItem(n,r,u)}},h.prototype._addGroup=function(n,r){var u=this;if(r===void 0&&(r=!0),n.id)throw new TypeError("Can not re-add a group which has already been added");this._store.dispatch(wr(n)),n.choices&&(this._lastAddedGroupId++,n.id=this._lastAddedGroupId,n.choices.forEach(function(d){d.group=n,n.disabled&&(d.disabled=!0),u._addChoice(d,r)}))},h.prototype._createTemplates=function(){var n=this,r=this.config.callbackOnCreateTemplates,u={};typeof r=="function"&&(u=r.call(this,Er,Ji,si));var d={};Object.keys(this._templates).forEach(function(s){s in u?d[s]=u[s].bind(n):d[s]=n._templates[s].bind(n)}),this._templates=d},h.prototype._createElements=function(){var n=this._templates,r=this,u=r.config,d=r._isSelectOneElement,s=u.position,a=u.classNames,c=this._elementType;this.containerOuter=new ms({element:n.containerOuter(u,this._direction,this._isSelectElement,d,u.searchEnabled,c,u.labelId),classNames:a,type:c,position:s}),this.containerInner=new ms({element:n.containerInner(u),classNames:a,type:c,position:s}),this.input=new Zr({element:n.input(u,this._placeholderValue),classNames:a,type:c,preventPaste:!u.paste}),this.choiceList=new gs({element:n.choiceList(u,d)}),this.itemList=new gs({element:n.itemList(u,d)}),this.dropdown=new zr({element:n.dropdown(u),classNames:a,type:c})},h.prototype._createStructure=function(){var n=this,r=n.containerInner,u=n.containerOuter,d=n.passedElement,s=this.dropdown.element;d.conceal(),r.wrap(d.element),u.wrap(r.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":(this._placeholderValue&&(this.input.placeholder=this._placeholderValue),this.input.setWidth()),u.element.appendChild(r.element),u.element.appendChild(s),r.element.appendChild(this.itemList.element),s.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&s.insertBefore(this.input.element,s.firstChild):r.element.appendChild(this.input.element),this._highlightPosition=0,this._isSearching=!1},h.prototype._initStore=function(){var n=this;this._store.subscribe(this._render).withTxn(function(){n._addPredefinedChoices(n._presetChoices,n._isSelectOneElement&&!n._hasNonChoicePlaceholder,!1)}),(!this._store.choices.length||this._isSelectOneElement&&this._hasNonChoicePlaceholder)&&this._render()},h.prototype._addPredefinedChoices=function(n,r,u){var d=this;if(r===void 0&&(r=!1),u===void 0&&(u=!0),r){var s=n.findIndex(function(a){return a.selected})===-1;s&&n.some(function(a){return a.disabled||"choices"in a?!1:(a.selected=!0,!0)})}n.forEach(function(a){"choices"in a?d._isSelectElement&&d._addGroup(a,u):d._addChoice(a,u)})},h.prototype._findAndSelectChoiceByValue=function(n,r){var u=this;r===void 0&&(r=!1);var d=this._store.choices.find(function(s){return u.config.valueComparer(s.value,
1n)});return d&&!d.disabled&&!d.selected?(this._addItem(d,!0,r),!0):!1},h.prototype._generatePlaceholderValue=function(){var n=this.config;if(!n.placeholder)return null;if(this._hasNonChoicePlaceholder)return n.placeholderValue;if(this._isSelectElement){var r=this.passedElement.placeholderOption;return r?r.text:null}return null},h.prototype._warnChoicesInitFailed=function(n){if(!this.config.silent)if(this.initialised){if(!this.initialisedOK)throw new TypeError("".concat(n," called for an element which has multiple instances of Choices initialised on it"))}else throw new TypeError("".concat(n," called on a non-initialised instance of Choices"))},h.version="11.1.0",h})();const ei=h=>{h(".link--notification").each(function(){var n=h(this);if(n.data("hasNotificationClickHandler"))return!0;h(this).off("click").on("click",function(r){r.preventDefault(),r.stopPropagation();var u=h(this).find(".message").attr("data-left-offset");typeof u>"u"&&(u=0);var d=h(this);h(this).find(".message, .triangle").slideToggle({duration:100,complete:function(){d.find(".message").css("left","calc(50% - "+u+"px)")}}),n.data("hasNotificationClickHandler",!0)})})},ja=()=>{if(E("#leaflet-map").length>0){let c=function(b){const O=Object.keys(s.filters.land).sort(),T=s.filters.topics.sort(),k=Object.keys(b).sort(function(A,R){return A.localeCompare(R)});let M={lands:{},topics:{}};return O.forEach(function(A){M.lands[A]={},M.lands[A].projects=[],k.forEach(function(R,z){b[R].filter(function(D){return D.continent===A}).sort(function(D,B){return B.timestamp-D.timestamp}).map(function(D){let B=0,at=0;D.countries.forEach(function(Z){R.localeCompare(Z.title)===0&&(B=at),at++}),M.lands[A].projects.push({country:R,countryHref:D.countries[B].link,title:D.title,href:D.href,thumbnail:D.listThumbnail,helpType:D.helpType,topics:D.topic,topicIcon:D.topicIcon,state:D.state,stateClass:D.stateClass,stateDescription:D.stateDescription})}),M.lands[A].count=M.lands[A].projects.length})}),T.forEach(function(A,R){M.topics[A]={},M.topics[A].projects=[],k.forEach(function(z,Q){b[z].filter(function(B){return B.topic.indexOf(A)>-1}).sort(function(B,at){return at.timestamp-B.timestamp}).map(function(B){let at=0,Z=0;B.countries.forEach(function(j){z.localeCompare(j.title)===0&&(at=Z),Z++}),M.topics[A].projects.push({country:z,countryHref:B.countries[at].link,title:B.title,topicIcon:B.topicIcon,href:B.href,thumbnail:B.listThumbnail,helpType:B.helpType,state:B.state,stateClass:B.stateClass,stateDescription:B.stateDescription})}),M.topics[A].count=M.topics[A].projects.length})}),M},p=function(b){const O=Object.keys(b.lands);var T=Object.keys(b.topics);let k={},M={},A=0;O.forEach(function(R){b.lands[R].count>0&&(k[R]=b.lands[R])}),T.forEach(function(R,z){b.topics[R].count>0&&(M[R]=b.topics[R])}),E("#result-lists #land-tab, #result-lists #topic-tab").html("");for(let R=0;R<Object.keys(k).length;R++){const z=Object.keys(k)[R],Q=k[z].count;A+=+Q;let D='<div class="row projects-row"><div class="col-12 col-lg-3 mb-4 mb-lg-0"><div class="projects-row__title" id="'+z+'"><h2>'+z+"</h2><p>"+Q+' Projekte</p></div></div><div class="col-12 col-lg-9"><div class="row projects-row__teasers">';for(let B=0;B<k[z].projects.length;B++){k[z].projects[B].countries;const at=k[z].projects[B].country,Z=k[z].projects[B].countryHref,j=k[z].projects[B].title,it=k[z].projects[B].href,I=k[z].projects[B].helpType,H=k[z].projects[B].topics,tt=k[z].projects[B].topicIcon,ut=k[z].projects[B].thumbnail,W=k[z].projects[B].state,Ae=k[z].projects[B].stateClass,U=k[z].projects[B].stateDescription;D+='<div class="col-12 col-sm-6 col-lg-4 mb-5"><div class="teaser teaser--project-2"><div class="teaser--project-2__top-link">'+(Z?'<a href="'+Z+'">'+at+"</a>":"<a>"+at+"</a>")+'</div><a href="'+it+'" class="teaser--project-2__thumbnail covered"><img src="'+ut+'" alt="teaser thumbnail" loading="lazy" fetchpriority="low"></a>'+(W?'<div class="project-status '+Ae+'">'+W+'<a href="javascript:void(0);" class="link link--notification" title="Information anzeigen"><div class="message" data-width="320">'+U+'</div><span class="triangle"></span></a></div>':"")+'<div class="teaser--project-2__title"><a href="'+it+'">'+j+'</a></div><div class="mt-2">';
1for(let nt=0;nt<H.length;nt++)D+="<span>",tt[nt]&&(D+='<img class="distater-icon" src="'+tt[nt]+'" height="16" alt=""/>'),D+=H[nt]+"</span>";D+='<span class="thema">'+I+"</span></div></div></div>"}D+="</div></div></div>",E("#result-lists #land-tab").append(D)}for(let R=0;R<Object.keys(M).length;R++){const z=Object.keys(M)[R],Q=M[z].count;let D="";if(s.markersToShow.topics===null||s.markersToShow.topics===void 0||s.markersToShow.topics===z){D+='<div class="row projects-row"><div class="col-12 col-lg-3 mb-4 mb-lg-0"><div class="projects-row__title"><h2>'+z+"</h2><p>"+Q+' Projekte</p></div></div><div class="col-12 col-lg-9"><div class="row projects-row__teasers">';for(let B=0;B<M[z].projects.length;B++){const at=M[z].projects[B].country,Z=M[z].projects[B].countryHref,j=M[z].projects[B].title,it=M[z].projects[B].href,I=M[z].projects[B].helpType,H=M[z].projects[B].thumbnail,tt=M[z].projects[B].state,ut=M[z].projects[B].stateClass,W=M[z].projects[B].stateDescription;D+='<div class="col-12 col-sm-6 col-lg-4 mb-5"><div class="teaser teaser--project-2"><div class="teaser--project-2__top-link">'+(Z?'<a href="'+Z+'">'+at+"</a>":"<a>"+at+"</a>")+'</div><a href="'+it+'" class="teaser--project-2__thumbnail covered"><img src="'+H+'" alt="teaser thumbnail" loading="lazy" fetchpriority="low"></a>'+(tt?'<div class="project-status '+ut+'">'+tt+'<a href="javascript:void(0);" class="link link--notification" title="Information anzeigen"><div class="message" data-width="320">'+W+'</div><span class="triangle"></span></a></div>':"")+'<div class="teaser--project-2__title"><a href="'+it+'">'+j+'</a></div><div class="mt-2"><span class="thema">'+I+"</span></div></div></div>"}D+="</div></div></div>"}E("#result-lists #topic-tab").append(D)}E("#result-lists .filter-tabs .total-projects").html("<h2>"+A+" Projekt-Beispiel"+(A===1?"":"e")+"</h2>"),E('[data-js="cover-img"]').each(function(){let R=E(this).find("img").attr("src");E(this).css({"background-image":"url("+R+")"})})},_=function(b,O){a.eachLayer(function(M){M.options.attribution&&M.options.attribution.split(",").indexOf("removeable-layer")>-1&&a.removeLayer(M)});const T=Object.keys(b);let k=[];for(let M=0;M<T.length;M++){const A=T[M];let R=L.markerClusterGroup({showCoverageOnHover:!1,disableClusteringAtZoom:5,spiderfyOnMaxZoom:!1,attribution:"removeable-layer",maxClusterRadius:160,iconCreateFunction:function(z){return L.divIcon({className:"projects-marker",html:'<div class="project-marker">'+z.getChildCount()+'<span>Projekte</span><span class="triangle"></span></div>'})}});for(let z=0;z<b[A].length;z++){let Q=[0,-40];m(s.timestamps,b[A][z].timestamp)&&(Q=v());let D=L.marker([b[A][z].lat,b[A][z].lng],{icon:L.divIcon({className:"projects-marker",html:'<div class="project-marker">1<span class="triangle"></span></div>',popupAnchor:Q}),attribution:"removeable-layer"}).bindPopup(P(b[A][z].href,b[A][z].mapThumbnail,b[A][z].title,b[A][z].countries,b[A][z].helpType,b[A][z].state,b[A][z].stateClass,b[A][z].stateDescription),{autoClose:!m(s.timestamps,b[A][z].timestamp),closeOnEscapeKey:!1,closeOnClick:!1,className:"flyout-popup",maxWidth:390,autoPan:!0});k.push(D),D.on("click",function(B){s.lastMarkerEvent="click",this.openPopup()}),D.on("mouseout",function(B){s.lastMarkerEvent!=="click"&&this.closePopup()}),R.addLayer(D)}a.addLayer(R)}if(O){const M=L.featureGroup(k);a.fitBounds(M.getBounds(),{padding:[100,100],animate:!0})}E('[data-js="cover-img"]').each(function(){const M=E(this).find("img").attr("src");E(this).css({"background-image":"url("+M+")"})})},v=function(){const T=Math.random()>.5?1:-1,k=Math.random()>.5?1:-1,M=Math.floor(Math.random()*50+200)*T,A=Math.floor(Math.random()*50+200)*k;return[M,A]},m=function(b,O){let T=!1;return(O==b.sort().reverse()[0]||O==b.sort().reverse()[1]||O==b.sort().reverse()[2])&&(T=!0),T},y=function(b,O,T){let k=s.markers,M=Object.keys(s.markers);if(b&&M.indexOf(b)>-1)k={},k[b]=s.markers[b];else if(b&&M.indexOf(b)===-1){k={};for(let A=0;A<M.length;A++){let R=s.markers[M[A]].filter(function(z){return z.continent===b});R.length&&(k[M[A]]=R)}}if(O){M=Object.keys(k),k={};for(let A=0;A<M.length;A++){let R=s.markers[M[A]].filter(function(z){return z.topic.indexOf(O)>-1});R.length&&(k[M[A]]=R)}}if(T){M=Object.keys(k),k={};for(let A=0;A<M.length;A++){let R=s.markers[M[A]].filter(function(z){return z.state.indexOf(T)>-1});R.length&&(k[M[A]]=R)}}return k},C=function(b,O){let T="#b5b5b5";
1for(let k=0;k<O.length;k++)if(b.toLowerCase()===O[k].toLowerCase()){T="#00a3da";break}return T},P=function(b,O,T,k,M,A,R,z){let Q="";for(let D=0,B=k.length;D<B;D++)k[D].link!==void 0&&k[D].link!==""?Q+='<span class="location"><a href="'+k[D].link+'">'+k[D].title+"</a></span>":Q+='<span class="location">'+k[D].title+"</span>";return'<div class="teaser teaser--flyout-1"><a href="'+b+'" class="teaser--flyout-1__thumbnail" data-js="cover-img"><img src="'+O+'" alt="thumbnail"></a><div class="teaser--flyout-1__short-inf"><a href="'+b+'">'+T+"</a>"+Q+'<span class="help-type">'+M+"</span>"+(A?'<div class="project-status '+R+'">'+A+"</div>":"")+'</div><div class="line"></div></div>'};E(".interactive-map").addClass("loading");let n=null,r=null,u=null;const d={searchEnabled:!1,itemSelectText:"",shouldSort:!1,allowHTML:!1};E(".interactive-map .filter-reset").click(function(){n&&(n.setChoiceByValue("*"),E("#land").trigger("change")),r&&(r.setChoiceByValue("*"),E("#topics").trigger("change")),u&&(u.setChoiceByValue("*"),E("#status").trigger("change"))});let s={filters:{land:{},topics:[],status:[]},zoomSettings:{},markers:{},iso:[],timestamps:[],markersToShow:{land:null,topics:null,status:null},lastMarkerEvent:null},a=L.map("leaflet-map",{center:[20,0],zoom:2.4,zoomSnap:.1,zoomControl:!1,attributionControl:!1,minZoom:2,maxZoom:16,scrollWheelZoom:!1});L.control.zoom({position:"bottomright"}).addTo(a),E.getJSON("/?type=155322&mode=countries",function(b){if(b.projects===void 0)return;b.projects.forEach(function(Z){Z.country.forEach(function(I){const H=I.continent.title;s.filters.land[H]||(s.filters.land[H]={countries:[]});const tt=I.title;s.filters.land[H].countries.indexOf(tt)===-1&&(s.filters.land[H].countries.push(tt),s.zoomSettings[tt]={longitude:parseFloat(I.longitude),latitude:parseFloat(I.latitude),zoom:parseFloat(I.zoom)})});const j=Z.topic;for(let I=0;I<j.length;I++)s.filters.topics.indexOf(j[I].title)===-1&&s.filters.topics.push(j[I].title);const it=Z.state;it!==null&&s.filters.status.indexOf(it.title)===-1&&s.filters.status.push(it.title)});let O=Object.keys(s.filters.land);for(let Z=0;Z<O.length;Z++)for(let j=0;j<s.filters.land[O[Z]].countries.length;j++){let it=s.filters.land[O[Z]].countries[j],I=b.projects.filter(function(H){let tt=!1;return H.country.forEach(function(ut){ut.title===it&&(tt=!0)}),tt});s.markers[it]=[];for(let H=0;H<I.length;H++){let tt=0;I[H].country.forEach(function(ut){ut.title!==it&&tt++}),s.markers[it].push({continent:I[H].country[tt].continent.title,countries:I[H].country,title:I[H].page.tx_asteaserautomated_teaser_overline?I[H].page.tx_asteaserautomated_teaser_overline:I[H].page.title,lat:I[H].page.latitude,lng:I[H].page.longitude,helpType:I[H].helpType!==null?I[H].helpType.title:"",topic:I[H].topic.map(function(ut){return ut.title}),topicIcon:I[H].topic.map(function(ut){return ut.imageUrl}),mapThumbnail:I[H].mapThumbnailUrl,listThumbnail:I[H].listThumbnailUrl,href:I[H].projectLink,timestamp:I[H].page.tx_asteaserautomated_teaser_creation_date?I[H].page.tx_asteaserautomated_teaser_creation_date:I[H].page.crdate,state:I[H].state!==null?I[H].state.title:"",stateClass:I[H].state!==null?I[H].state.as_classname:"",stateDescription:I[H].state!==null?I[H].state.description:""}),s.timestamps.push(I[H].page.tstamp),I[H].country.forEach(function(ut){s.iso.indexOf(ut.iso)===-1&&s.iso.push(ut.iso)})}}E("#result-lists").length>0&&p(c(s.markers)),_(s.markers,!1);let T=E("#land");const k=Object.keys(s.filters.land);T.append('<option value="*">Weltweit</option>');for(let Z=0;Z<k.length;Z++){T.append('<option value="'+k[Z]+'" class="optgroup">'+k[Z]+"</option>");const j=s.filters.land[k[Z]].countries.sort(function(it,I){return it.localeCompare(I)});for(let it=0;it<j.length;it++){const I=j[it];let H='<option value="'+I+'"';typeof s.zoomSettings[I].zoom<"u"&&(H+=' data-zoom="'+s.zoomSettings[I].zoom+'"'),typeof s.zoomSettings[I].longitude<"u"&&(H+=' data-longitude="'+s.zoomSettings[I].longitude+'"'),typeof s.zoomSettings[I].latitude<"u"&&(H+=' data-latitude="'+s.zoomSettings[I].latitude+'"'),H+=">"+I+"</option>",T.append(H)}}let M=E("#topics");M.append('<option value="*">Thema wählen</option>');const A=s.filters.topics.sort(function(Z,j){return Z.localeCompare(j)});for(let Z=0;Z<A.length;Z++)M.append('<option value="'+A[Z]+'">'+A[Z]+"</option>");let R=E("#status");R.append('<option value="*">Status wählen</option>');const z=["Nothilfe wird vorbereitet","Wir sind aktuell vor Ort aktiv","Projekt beendet"],Q=s.filters.status.sort(function(Z,j){const it=z.indexOf(Z),I=z.indexOf(j);return it-I});for(let Z=0;Z<Q.length;Z++)R.append('<option value="'+Q[Z]+'">'+Q[Z]+"</option>");n=new ji("#land",d),r=new ji("#topics",d),u=new ji("#status",d);const D=document.querySelector("#land").closest(".choices"),B=new Set([...document.querySelectorAll("#land option.optgroup")].map(Z=>Z.value));D==null||D.querySelectorAll(".choices__list--dropdown .choices__item").forEach(Z=>{B.has(Z.dataset.value)&&Z.classList.add("is-optgroup-item")}),E(".form--filter #land").on("change",function(){let Z=!1;const j=E("option:selected",this).attr("data-zoom"),it=E("option:selected",this).attr("data-latitude"),I=E("option:selected",this).attr("data-longitude");E(this).val()==="*"?(s.markersToShow.land=void 0,a.fitWorld()):(s.markersToShow.land=E(this).val(),!isNaN(it)&&!isNaN(I)?a.setView(L.latLng(it,I),j):Z=!0),_(y(s.markersToShow.land,s.markersToShow.topics,s.markersToShow.status),Z),E("#result-lists").length>0&&(p(c(y(s.markersToShow.land,s.markersToShow.topics,s.markersToShow.status))),ei(E))}),E(".form--filter #topics").on("change",function(Z){var j=!1;E(this).val()=="*"?s.markersToShow.topics=void 0:s.markersToShow.topics=E(this).val(),_(y(s.markersToShow.land,s.markersToShow.topics,s.markersToShow.status),j),E("#result-lists").length>0&&(p(c(y(s.markersToShow.land,s.markersToShow.topics,s.markersToShow.status))),ei(E))}),E(".form--filter #status").on("change",function(Z){var j=!1;E(this).val()=="*"?s.markersToShow.status=void 0:s.markersToShow.status=E(this).val(),_(y(s.markersToShow.land,s.markersToShow.topics,s.markersToShow.status),j),E("#result-lists").length>0&&(p(c(y(s.markersToShow.land,s.markersToShow.topics,s.markersToShow.status))),ei(E))});let at=E(".interactive-map").attr("data-json");if(E.getJSON(at+"JavaScript/GeoJson/world.geo.json",function(Z){L.geoJSON(Z,{style:function(j){return{color:"#c7c7c7",weight:1,fillColor:C(j.properties.iso_a2,s.iso),fillOpacity:1}}}).addTo(a)}),a.on("popupclose",function(){s.lastMarkerEvent=null}),ei(E),E(".interactive-map").removeClass("loading"),window.location.hash){const Z=document.getElementById(decodeURIComponent(window.location.hash.substring(1)));Z&&requestAnimationFrame(function(){requestAnimationFrame(function(){var j=document.querySelector(".header__main-nav"),it=j?j.offsetHeight+20:0,I=Z.getBoundingClientRect().top+window.scrollY-it;window.scrollTo({top:I})})})}})}E(".form--filter #land").on("change",function(){let n=E(this).val(),r=E(".form--filter #thema").val();E(".form--filter #status").val(),h({land:n==="*"?void 0:n,theme:r==="*"?void 0:r,projectsOfPublicDonor:E(".form--filter #show-community-projects").prop("checked")})}),E(".form--filter #thema").on("change",function(){let n=E(".form--filter #land").val(),r=E(this).val();E(".form--filter #status").val(),h({land:n==="*"?void 0:n,theme:r==="*"?void 0:r,projectsOfPublicDonor:E(".form--filter #show-community-projects").prop("checked")})}),E(".form--filter #status").on("change",function(){let n=E(".form--filter #land").val(),r=E(".form--filter #thema").val();E(this).val(),h({land:n==="*"?void 0:n,theme:r==="*"?void 0:r,projectsOfPublicDonor:E(".form--filter #show-community-projects").prop("checked")})}),E(".form--filter #show-community-projects").on("change",function(){let n=E(".form--filter #land").val(),r=E(".form--filter #thema").val(),u=E(".form--filter #status").val();h({land:n==="*"?void 0:n,theme:r==="*"?void 0:r.val(),status:u==="*"?void 0:u.val(),projectsOfPublicDonor:E(this).prop("checked")})}),E(".form--filter .search-field__btn").on("click",function(n){n.preventDefault();let r=new RegExp(E(this).parent().find("#suche").val(),"gi"),u=E(".form--filter #show-community-projects").prop("checked")?'[data-proj-of-pub-donor="true"]':"";E("#leaflet-map .project-marker").parent().fadeOut(300),E("#leaflet-map .project-marker"+u).each(function(){let d=E(this).attr("data-search-tags");r.test(d)&&E(this).parent().fadeIn(300)})});function h(n){E(".project-marker").parent().fadeOut(300);let r=n.land?'data-continent="'+n.land+'"':"data-continent",u=n.land?'data-land="'+n.land+'"':"data-land",d=n.theme?'data-theme="'+n.theme+'"'
1:"data-theme",s=n.projectsOfPublicDonor?'[data-proj-of-pub-donor="true"]':"";E(".project-marker["+r+"]["+d+"]"+s+", .project-marker["+u+"]["+d+"]"+s).parent().fadeIn(300)}E(".map-popup").length>0&&E(".map-popup").each(function(){const n=E(this).attr("data-lat-lng").split(","),r=E(this).attr("data-label"),u=E(this).attr("id");let d=L.map(u,{center:n,zoom:5,zoomControl:!1,attributionControl:!1,minZoom:5,maxZoom:5});d.dragging.disable(),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{}).addTo(d);let s=L.divIcon({className:"static-marker",html:"<div>"+r+"</div>"});L.marker(n,{icon:s}).addTo(d),E(this).on("click",function(a){a.preventDefault(),E(this).hasClass("fixed-to-center")||d.setView(n,5),E(this).addClass("fixed-to-center"),E(this).hasClass("fixed-to-center")&&E("body").find(".body-overlay").length==0&&(E("body").append('<div class="body-overlay"></div>'),d.dragging.enable(),setTimeout(function(){d.invalidateSize()},300))}).on("blur",function(){E(".body-overlay").remove(),E(this).removeClass("fixed-to-center"),d.setView(n,5),setTimeout(function(){d.invalidateSize(),d.dragging.disable()},300)})}),E(".static-map").each(function(){var n=L.map(E(this).attr("id"),{center:[40,0],zoom:1.5,zoomControl:!1,attributionControl:!1,minZoom:1,maxZoom:1.5});n.dragging.disable(),n.touchZoom.disable(),n.doubleClickZoom.disable(),n.scrollWheelZoom.disable(),n.boxZoom.disable(),n.keyboard.disable(),E.getJSON("/typo3conf/ext/as_template/Resources/Public/JavaScript/JsonDatas/countries-for-static-map.json",function(r){var u=[];E.each(r.countries,function(d,s){u.push(s.countryName)}),E.getJSON("/typo3conf/ext/as_template/Resources/Public/JavaScript/GeoJson/world.geo.json",function(d){L.geoJSON(d,{style:function(s){return{color:"#c7c7c7",weight:1,fillColor:fillActiveCountry(s.properties.admin,u),fillOpacity:1}}}).addTo(n)})})}),E(".about-us-map").each(function(){var n=L.map(E(this).attr("id"),{center:[40,0],zoom:1,zoomControl:!1,attributionControl:!1,minZoom:1,maxZoom:1});n.dragging.disable(),n.touchZoom.disable(),n.doubleClickZoom.disable(),n.scrollWheelZoom.disable(),n.boxZoom.disable(),n.keyboard.disable(),E(this).on("click",function(r){r.preventDefault(),E(r.target).hasClass("close")?(E(this).removeClass("active"),n.dragging.disable(),n.touchZoom.disable(),n.doubleClickZoom.disable(),n.scrollWheelZoom.disable(),n.boxZoom.disable(),n.keyboard.disable(),n.options.maxZoom=1,n.options.zoom=1,n.options.center=[40,0]):(E(this).addClass("active"),n.dragging.enable(),n.touchZoom.enable(),n.doubleClickZoom.enable(),n.scrollWheelZoom.enable(),n.boxZoom.enable(),n.keyboard.enable(),n.options.maxZoom=20)}),E(this).on("blur",function(r){r.preventDefault(),E(this).removeClass("active"),n.dragging.disable(),n.touchZoom.disable(),n.doubleClickZoom.disable(),n.scrollWheelZoom.disable(),n.boxZoom.disable(),n.keyboard.disable(),n.options.maxZoom=1,n.options.zoom=1,n.options.center=[40,0]}),E.getJSON("/typo3conf/ext/as_template/Resources/Public/JavaScript/JsonDatas/about-us-map-data.json",function(r){var u=[];E.each(r.countries,function(d,s){if(u.push(s.countryName),s.markers)for(var a=0;a<s.markers.length;a++){var c=L.divIcon({className:"about-us-marker",html:'<div class="marker-line"><div><span>'+s.markers[a].title1+"</span><span>"+s.markers[a].title2+"</span></div></div>"});L.marker(s.markers[a].coords,{icon:c}).addTo(n)}}),E.getJSON("/typo3conf/ext/as_template/Resources/Public/JavaScript/GeoJson/world.geo.json",function(d){L.geoJSON(d,{style:function(s){return{color:"#c7c7c7",weight:1,fillColor:fillActiveCountry(s.properties.admin,u),fillOpacity:1}}}).addTo(n)})})})};export{ja as init};
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.