diff --git a/parcoursup-app/dist/assets/index-B9Fr6vSl.js b/parcoursup-app/dist/assets/index-B9Fr6vSl.js new file mode 100644 index 0000000..8b4a4fe --- /dev/null +++ b/parcoursup-app/dist/assets/index-B9Fr6vSl.js @@ -0,0 +1,21 @@ +var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;li[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=new Map,u=Symbol(`riot-component`),d=new Set,f=`value`,p=/^on/,m=`mount`,h=`update`,g=`unmount`,_=`shouldUpdate`,ee=`onBeforeMount`,te=`onMounted`,v=`onBeforeUpdate`,ne=`onUpdated`,re=`onBeforeUnmount`,ie=`onUnmounted`,y=`props`,b=`state`,x=`slots`,ae=`root`,S=Symbol(`pure`),oe=Symbol(`is_updating`),C=Symbol(`parent`),se=Symbol(`template`),w=Symbol(`root-attributes`),ce={ATTRIBUTE:0,EVENT:1,TEXT:2,VALUE:3,REF:4};function T(e){return e.replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}function E(e){return e.replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function D(e,t){throw Error(e,{cause:t})}function O(e){let t=new Map,n=n=>(t.has(n)||t.set(n,e.call(this,n)))&&t.get(n);return n.cache=t,n}function k(e,t){return e.reduce((e,{type:n,name:r,evaluate:i})=>{let a=i(t);switch(!0){case!r&&n===0:return{...e,...a};case n===4:e.ref=a;break;case n===3:e.value=a;break;default:e[E(r)]=a}return e},{})}function A(e,t){return typeof e===t}function j(e){let t=e.ownerSVGElement;return!!t||t===null}function M(e){return e.tagName.toLowerCase()===`template`}function N(e){return A(e,`function`)}function le(e){return A(e,`boolean`)}function ue(e){return!de(e)&&e.constructor===Object}function de(e){return e==null}function fe(e){return p.test(e)}function P(){return this}function pe(e,t){return t.forEach(t=>{e[t]=e[t].bind(e)}),e}function me(e){return N(e)?e.prototype&&e.prototype.constructor?new e:e():e}function he(e){return Array.from(e.attributes).reduce((e,t)=>(e[E(t.name)]=t.value,e),{})}function ge(e,t){for(;e.firstChild;)t.appendChild(e.firstChild)}function _e(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ve(e){for(let t=0;te.remove(),ye=(e,t)=>t?.parentNode?.insertBefore(e,t),be=(e=>(t,n)=>e?n?.parentNode?.moveBefore(t,n):ye(t,n))(typeof Element<`u`&&Element.prototype.moveBefore),xe=(e,t)=>t?.parentNode?.replaceChild(e,t),Se={[m](e){this.el=e},[h]:P,[g](e,t,n=!1){n?F(this.el):n||_e(this.el)},clone(){return{...this}},createDOM:P},Ce={EACH:0,IF:1,SIMPLE:2,TAG:3,SLOT:4};function I(e,t,n,r={}){return Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!1,configurable:!0,...r}),e}function we(e,t,n){return Object.entries(t).forEach(([t,r])=>{I(e,t,r,n)}),e}function Te(e,t){return Object.entries(t).forEach(([t,n])=>{e[t]||(e[t]=n)}),e}var Ee=Symbol(),De=Symbol();function Oe(){let e=document.createTextNode(``),t=document.createTextNode(``);return e[Ee]=!0,t[De]=!0,{head:e,tail:t}}function ke(e){let t=e.dom.cloneNode(!0),{head:n,tail:r}=Oe();return{avoidDOMInjection:!0,fragment:t,head:n,tail:r,children:[n,...Array.from(t.childNodes),r]}}var Ae=(e,t,n,r)=>{let i=t.length,a=e.length,o=i,s=0,c=0,l=null;for(;sr-c){let i=n(e[s],0);for(;ce()),this.childrenMap=o,this.nodes=c,this},unmount(e,t){return this.update(je,t),this}};function Ne(e,t){return(n,r)=>{if(r<0){let n=e[e.length-1];if(n){let{template:r,nodes:i,context:a}=n;i.pop(),i.length||(e.pop(),r.unmount(a,t,null))}}return n}}function Pe(e,t){return e?!e(t):!1}function Fe(e,{itemName:t,indexName:n,index:r,item:i}){return I(e,t,i),n&&I(e,n,r),e}function Ie(e,t,n,r){let{condition:i,template:a,childrenMap:o,itemName:s,getKey:c,indexName:l,root:u,isTemplateTag:d}=r,f=new Map,p=[],m=[];return e.forEach((e,r)=>{let h=Fe(Object.create(t),{itemName:s,indexName:l,index:r,item:e}),g=c?c(h):r,_=o.get(g),ee=[];if(Pe(i,h))return;let te=!_,v=_?_.template:a.clone(),ne=v.el||u.cloneNode(),re=d&&te?ke(v):v.meta;te?p.push(()=>v.mount(ne,h,n,re)):p.push(()=>v.update(h,n)),d?ee.push(...re.children):ee.push(ne),o.delete(g),m.push(...ee),f.set(g,{nodes:ee,template:v,context:h,index:r})}),{newChildrenMap:f,batches:p,futureNodes:m}}function Le(e,{evaluate:t,condition:n,itemName:r,indexName:i,getKey:a,template:o}){let s=document.createTextNode(``),c=e.cloneNode();return ye(s,e),F(e),{...Me,childrenMap:new Map,node:e,root:c,condition:n,evaluate:t,isTemplateTag:M(c),template:o.createDOM(e),getKey:a,indexName:i,itemName:r,placeholder:s}}var Re={mount(e,t){return this.update(e,t)},update(e,t){let n=!!this.evaluate(e),r=!this.value&&n,i=this.value&&!n,a=()=>{let n=this.node.cloneNode();ye(n,this.placeholder),this.template=this.template.clone(),this.template.mount(n,e,t)};switch(!0){case r:a();break;case i:this.unmount(e);break;default:n&&this.template.update(e,t)}return this.value=n,this},unmount(e,t){return this.template.unmount(e,t,!0),this}};function ze(e,{evaluate:t,template:n}){let r=document.createTextNode(``);return ye(r,e),F(e),{...Re,node:e,evaluate:t,placeholder:r,template:n.createDOM(e)}}function Be({node:e,value:t},n){n?n(e):t(null)}function Ve(e){return de(e)?``:e}function He({node:e},t){e.value=Ve(t)}var Ue=/^on/,We=e=>Array.isArray(e)?e:[e,!1],Ge={handleEvent(e){this[e.type](e)}},Ke=new WeakMap,qe=e=>{let t=Object.create(Ge);return Ke.set(e,t),t};function Je({node:e,name:t},n){let r=t.replace(Ue,``),i=Ke.get(e)||qe(e),[a,o]=We(n),s=i[r],c=s&&!a,l=a&&!s;c&&e.removeEventListener(r,i),l&&e.addEventListener(r,i,o),i[r]=a}var Ye=typeof Element>`u`?{}:Element.prototype,Xe=O(e=>Ye.hasOwnProperty(e));function R(e,t,n){Object.entries(t).filter(([e,t])=>t!==n?.[e]).forEach(([t,n])=>{switch(!0){case t===`ref`:return Be({node:e},n);case t===f:return He({node:e},n);case fe(t):return Je({node:e,name:t},n);default:return $e({node:e,name:t},n)}})}function z(e,t,n){let r=t?Object.keys(t):[];Object.entries(n).filter(([e])=>!r.includes(e)).forEach(([t,n])=>{switch(!0){case t===`ref`:return Be({node:e,value:n});case t===f:e.removeAttribute(`value`),e.value=``;return;case fe(t):return Je({node:e,name:t},null);default:return e.removeAttribute(t)}})}function Ze(e){return[`string`,`number`,`boolean`].includes(typeof e)}function Qe(e,t){return t?!e:de(e)}function $e({node:e,name:t,isBoolean:n,value:r},i){if(!t){r&&z(e,i,r),i&&R(e,i,r);return}!Xe(t)&&(le(i)||ue(i)||N(i))&&(e[t]=i),Qe(i,n)?e.removeAttribute(t):Ze(i)&&e.setAttribute(t,et(t,i,n))}function et(e,t,n){return t&&n?e:t}var tt=(e,t)=>e.childNodes[t];function nt({node:e},t){e.data=Ve(t)}var rt={0:$e,1:Je,2:nt,3:He,4:Be},it={mount(e){let t=this.evaluate(e);return rt[this.type](this,t),this.value=t,this},update(e){let t=this.evaluate(e);return this.value!==t&&(rt[this.type](this,t),this.value=t),this},unmount(){return([1,4].includes(this.type)||this.type===0&&!this.name)&&rt[this.type](this,null),this}};function at(e,t){return{...it,...t,node:t.type===2?tt(e,t.childNodeIndex):e}}function ot(e,t,n){return t.reduce((t,r)=>({...t,[r]:t=>e.map(e=>e[r](t))&&n}),{})}function st(e,{expressions:t}){return ot(t.map(t=>at(e,t)),[`mount`,`update`,`unmount`])}var ct=(e,t,n)=>!e||!e.length?n:Object.assign(Object.create(n||null),k(e,t)),lt=(e,t)=>t?.find(t=>t.id===e),ut=(e,t)=>e[C]||t,dt={attributes:[],getTemplateScope(e,t){return ct(this.attributes,e,t)},mount(e,t){let n=e.slots?lt(this.name,e.slots):!1,{parentNode:r}=this.node,i=n?ut(e,t):e;return this.templateData=n?.html?n:lt(this.name,i.slots),this.template=this.templateData&&U(this.templateData.html,this.templateData.bindings).createDOM(r)||this.template?.clone(),this.template&&(_e(this.node),this.template.mount(this.node,this.getTemplateScope(e,i),i),this.template.children=Array.from(this.node.childNodes)),ft(this.node),F(this.node),this},update(e,t){if(this.template){let n=this.templateData?ut(e,t):e;this.template.update(this.getTemplateScope(e,n),n)}return this},unmount(e,t,n){return this.template&&this.template.unmount(this.getTemplateScope(e,t),null,n),this}};function ft(e){let t=e&&e.firstChild;t&&(ye(t,e),ft(e))}function pt(e,{name:t,attributes:n,template:r}){return{...dt,attributes:n,template:r,node:e,name:t}}function mt(e,t=[],n=[]){return e?e({slots:t,attributes:n}):U(gt(t),[...ht(t),{expressions:n.map(e=>({type:0,...e}))}])}function ht(e){return e.reduce((e,{bindings:t})=>e.concat(t),[])}function gt(e){return e.reduce((e,t)=>e+t.html,``)}var _t={mount(e){return this.update(e)},update(e,t){let n=this.evaluate(e);return n&&n===this.name?this.tag.update(e):(this.unmount(e,t,!0),this.name=n,this.tag=mt(this.getComponent(n),this.slots,this.attributes),this.tag.mount(this.node,e)),this},unmount(e,t,n){return this.tag&&this.tag.unmount(n),this}};function vt(e,{evaluate:t,getComponent:n,slots:r,attributes:i}){return{..._t,node:e,evaluate:t,slots:r,attributes:i,getComponent:n}}var yt={1:ze,2:st,0:Le,3:vt,4:pt};function bt(e,t){return e.map(e=>e.type===2?{...e,childNodeIndex:e.childNodeIndex+t}:e)}function xt(e,t,n){let{selector:r,type:i,redundantAttribute:a,expressions:o}=t,s=r?e.querySelector(r):e;a&&s.removeAttribute(a);let c=o||[];return(yt[i]||yt[2])(s,{...t,expressions:n&&!r?bt(c,n):c})}function B(e,t){let n=M(t)?t:document.createElement(`template`);return n.innerHTML=e,n.content}function V(e,t){return t.ownerDocument.importNode(new window.DOMParser().parseFromString(`${e}`,`application/xml`).documentElement,!0)}function St(e,t){return j(e)?V(t,e):B(t,e)}function Ct(e,t){switch(!0){case j(e):ge(t,e);break;case M(e):e.parentNode.replaceChild(t,e);break;default:e.appendChild(t)}}function wt(e,t){return t&&(typeof t==`string`?St(e,t):t)}function Tt(e,t,n){let r=Array.from(e.childNodes);return Math.max(r.indexOf(t),r.indexOf(n.head)+1,0)}var H={createDOM(e){return this.dom=this.dom||wt(e,this.html)||document.createDocumentFragment(),this},mount(e,t,n,r={}){e||D(`Please provide DOM node to mount properly your template`),this.el&&this.unmount(t);let{fragment:i,children:a,avoidDOMInjection:o}=r,{parentNode:s}=a?a[0]:e,c=M(e),l=c?Tt(s,e,r):null;this.createDOM(e);let u=i||this.dom.cloneNode(!0);return this.el=c?s:e,this.children=c?a||Array.from(u.childNodes):null,!o&&u&&Ct(e,u),this.bindings=this.bindingsData.map(e=>xt(this.el,e,l)),this.bindings.forEach(e=>e.mount(t,n)),this.meta=r,this},update(e,t){return this.bindings.forEach(n=>n.update(e,t)),this},unmount(e,t,n=!1){let r=this.el;if(!r)return this;switch(this.bindings.forEach(r=>r.unmount(e,t,n)),!0){case r[S]||n===null:break;case Array.isArray(this.children):ve(this.children);break;case!n:_e(r);break;case!!n:F(r);break}return this.el=null,this},clone(){return{...this,meta:{},el:null}}};function U(e,t=[]){return{...H,html:e,bindingsData:t}}function Et(e,t,n){return e(U,ce,Ce,n)}var Dt=Object.freeze({[m]:P,[h]:P,[g]:P}),W=(e,t)=>e[u]=t;function Ot(e){return[m,h,g].reduce((t,n)=>(t[n]=e(n),t),{})}function kt(e,{slots:t,attributes:n,props:r,css:i,template:a}){a&&D(`Pure components can not have html`),i&&D(`Pure components do not have css`);let o=Te(e({slots:t,attributes:n,props:r}),Dt);return Ot(e=>(...t)=>{if(e===`mount`){let[e]=t;I(e,S,!0),W(e,o)}return o[e](...t),o})}function At(e){return Array.isArray(e)?e:/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&typeof e.length==`number`?Array.from(e):[e]}function G(e,t){return At(typeof e==`string`?(t||document).querySelectorAll(e):e)}var jt=Object.freeze({$(e){return G(e,this.root)[0]},$$(e){return G(e,this.root)}}),Mt=Object.freeze({[_]:P,[ee]:P,[te]:P,[v]:P,[ne]:P,[re]:P,[ie]:P}),Nt=e=>e.length===1?e[0]:e;function Pt(e,t,n){let r=typeof t==`string`?[t]:t;return Nt(At(e).map(e=>Nt(r.map(t=>e[n](t)))))}function Ft(e,t,n){let r=typeof t==`object`?t:{[t]:n},i=Object.keys(r);return At(e).forEach(e=>{i.forEach(t=>e.setAttribute(t,r[t]))}),e}function It(e,t){return Pt(e,t,`getAttribute`)}var Lt=new Map,Rt=(e=>()=>e||(e=G(`style[riot]`)[0]||document.createElement(`style`),Ft(e,`type`,`text/css`),e.parentNode||document.head.appendChild(e),e))(),zt={CSS_BY_NAME:Lt,add(e,t){return Lt.has(e)||(Lt.set(e,t),this.inject()),this},inject(){return Rt().innerHTML=[...Lt.values()].join(` +`),this},remove(e){return Lt.has(e)&&(Lt.delete(e),this.inject()),this}};function Bt(e,...t){return(...n)=>(n=[...t,...n],n.length{let t=e?.bindingsData?.[0];return t?.selector?[]:t?.expressions?.reduce((e,{name:t,type:n})=>n===ce.ATTRIBUTE?e.concat([t]):e,[])??[]});function Ht(e){return It(e,`is`)||e.tagName.toLowerCase()}function Ut(e,t){Ht(e)!==t&&Ft(e,`is`,t)}function Wt(e,t){return{...e,...me(t)}}function K(e,t={}){return{...he(e),...me(t)}}function q(e){return[...d].reduce((e,t)=>t(e)||e,e)}function J(e,{slots:t,attributes:n=[],props:r}){return pe(q(we(ue(e)?Object.create(e):e,{mount(i,a={},o){return I(i,S,!1),this[C]=o,I(this,y,Object.freeze({...K(i,r),...k(n,o)})),this[b]=Wt(this[b],a),this[se]=this.template.createDOM(i).clone(),this[w]=Vt(this[se]),W(i,this),e.name&&Ut(i,e.name),I(this,ae,i),I(this,x,t),this[ee](this[y],this[b]),this[se].mount(i,this,o),this[te](this[y],this[b]),this},update(e={},t){t&&(this[C]=t);let{is:r,...i}={...he({attributes:Array.from(this[ae].attributes).filter(({name:e})=>!this[w].includes(e))}),...k(n,this[C])};if(this.shouldUpdate(i,this.props)!==!1)return I(this,y,Object.freeze({...t?null:this[y],...i})),this[b]=Wt(this[b],e),this[v](this[y],this[b]),this[oe]||(this[oe]=!0,this[se].update(this,this[C])),this[ne](this[y],this[b]),this[oe]=!1,this},unmount(e){return this[re](this[y],this[b]),e&&this[w].forEach(e=>this[ae].removeAttribute(e)),this[se].unmount(this,this[C],e===null?null:!e),this[ie](this[y],this[b]),this}})),Object.keys(e).filter(t=>N(e[t])))}function Gt({css:e,template:t,componentAPI:n,name:r}){return e&&r&&zt.add(r,e),Bt(J)(we(Te(n,{...Mt,[y]:{},[b]:{}}),{[x]:null,[ae]:null,...jt,name:r,css:e,template:t}))}function Kt(e={}){return Object.entries(me(e)).reduce((e,[t,n])=>(e[T(t)]=Yt(n),e),{})}var qt=e=>{let t=Kt(e.exports?e.exports.components:{});return n=>n===e.name?Jt(e):t[n]||l.get(n)},Jt=O(Yt);function Yt(e){let{css:t,template:n,exports:r,name:i}=e,a=n?Et(n,e,qt(e)):Se;return({slots:e,attributes:o,props:s})=>{if(r&&r[S])return kt(r,{slots:e,attributes:o,props:s,css:t,template:n});let c=Gt({css:t,template:a,componentAPI:me(r)||{},name:i})({slots:e,attributes:o,props:s});return{mount(e,t,n){return c.mount(e,n,t)},update(e,t){return c.update(t,e)},unmount(e){return c.unmount(e)}}}}function Xt(e,t){return G(e).map(e=>(e[u]&&e[u].unmount(t),e))}function Zt(...e){return e.reduce((e,t)=>(...n)=>e(t(...n)))}function Y(e){return(t,n,{slots:r,attributes:i,parentScope:a}={})=>Zt(e=>e.mount(t,a),e=>e({props:n,slots:r,attributes:i}),Yt)(e)}var Qt=`https://data.education.gouv.fr/api/explore/v2.1/catalog/datasets/fr-esr-parcoursup/records`;async function $t(e,t=20){let n=`${Qt}?where=search("${e}")&limit=${t}`;return(await(await fetch(n)).json()).results}async function en(e){let t=`${Qt}?where=cod_aff_form="${e}"&limit=1`;return(await(await fetch(t)).json()).results[0]}async function tn(e){let t=[`2020`,`2021`,`2022`,`2023`,`2024`,`2025`].map(t=>fetch(`${Qt}?where=cod_aff_form="${e}" AND session="${t}"&limit=1`).then(e=>e.json()).then(e=>e.results[0]));return(await Promise.all(t)).filter(e=>e!=null)}var nn={css:`ligne-resultat .ligne-resultat,[is="ligne-resultat"] .ligne-resultat{ border: 1px solid #ccc; padding: 10px; margin: 5px 0; }`,exports:{ajouterComparateur(){let e=localStorage.getItem(`comparateur`),t=e?JSON.parse(e):[];t.some(e=>e.cod_aff_form===this.props.formation.cod_aff_form)||(t.push(this.props.formation),localStorage.setItem(`comparateur`,JSON.stringify(t))),window.location.hash=`#/comparateur`}},template:(e,t,n,r)=>e(`

Voir le détail
`,[{redundantAttribute:`expr61`,selector:`[expr61]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.props.formation.fil_lib_voe_acc,` — `,e.props.formation.g_ea_lib_vx].join(``)}]},{redundantAttribute:`expr62`,selector:`[expr62]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[e.props.formation.ville_etab,` (`,e.props.formation.dep_lib,`)`].join(``)}]},{redundantAttribute:`expr63`,selector:`[expr63]`,expressions:[{type:t.TEXT,childNodeIndex:0,evaluate:e=>[`Taux d'accès : `,e.props.formation.taux_acces_ens,`%`].join(``)}]},{redundantAttribute:`expr64`,selector:`[expr64]`,expressions:[{type:t.ATTRIBUTE,isBoolean:!1,name:`href`,evaluate:e=>`#/formation/`+e.props.formation.cod_aff_form}]},{redundantAttribute:`expr65`,selector:`[expr65]`,expressions:[{type:t.EVENT,name:`onclick`,evaluate:e=>e.ajouterComparateur}]}]),name:`ligne-resultat`},rn=c(o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.leaflet={}))})(e,(function(e){var t=`1.9.4`;function n(e){var t,n,r,i;for(n=1,r=arguments.length;n`u`||!L||!L.Mixin)){e=_(e)?e:[e];for(var t=0;t0?Math.floor(e):Math.ceil(e)};w.prototype={clone:function(){return new w(this.x,this.y)},add:function(e){return this.clone()._add(T(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(T(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new w(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new w(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ce(this.x),this.y=ce(this.y),this},distanceTo:function(e){e=T(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=T(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=T(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return`Point(`+u(this.x)+`, `+u(this.y)+`)`}};function T(e,t,n){return e instanceof w?e:_(e)?new w(e[0],e[1]):e==null?e:typeof e==`object`&&`x`in e&&`y`in e?new w(e.x,e.y):new w(e,t,n)}function E(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=D(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=D(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.xt.y&&r.y=t.lat&&i.lat<=n.lat&&r.lng>=t.lng&&i.lng<=n.lng},intersects:function(e){e=k(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=k(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.latt.lng&&r.lng1,We=function(){var e=!1;try{var t=Object.defineProperty({},`passive`,{get:function(){e=!0}});window.addEventListener(`testPassiveEventSupport`,l,t),window.removeEventListener(`testPassiveEventSupport`,l,t)}catch{}return e}(),Ge=function(){return!!document.createElement(`canvas`).getContext}(),Ke=!!(document.createElementNS&&me(`svg`).createSVGRect),qe=!!Ke&&(function(){var e=document.createElement(`div`);return e.innerHTML=``,(e.firstChild&&e.firstChild.namespaceURI)===`http://www.w3.org/2000/svg`})(),Je=!Ke&&function(){try{var e=document.createElement(`div`);e.innerHTML=``;var t=e.firstChild;return t.style.behavior=`url(#default#VML)`,t&&typeof t.adj==`object`}catch{return!1}}(),Ye=navigator.platform.indexOf(`Mac`)===0,Xe=navigator.platform.indexOf(`Linux`)===0;function R(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var z={ie:_e,ielt9:ve,edge:F,webkit:ye,android:be,android23:xe,androidStock:Ce,opera:I,chrome:we,gecko:Te,safari:Ee,phantom:De,opera12:Oe,win:ke,ie3d:Ae,webkit3d:je,gecko3d:Me,any3d:Ne,mobile:Pe,mobileWebkit:Fe,mobileWebkit3d:Ie,msPointer:Le,pointer:Re,touch:Be,touchNative:ze,mobileOpera:Ve,mobileGecko:He,retina:Ue,passiveEvents:We,canvas:Ge,svg:Ke,vml:Je,inlineSvg:qe,mac:Ye,linux:Xe},Ze=z.msPointer?`MSPointerDown`:`pointerdown`,Qe=z.msPointer?`MSPointerMove`:`pointermove`,$e=z.msPointer?`MSPointerUp`:`pointerup`,et=z.msPointer?`MSPointerCancel`:`pointercancel`,tt={touchstart:Ze,touchmove:Qe,touchend:$e,touchcancel:et},nt={touchstart:ft,touchmove:dt,touchend:dt,touchcancel:dt},rt={},it=!1;function at(e,t,n){return t===`touchstart`&&ut(),nt[t]?(n=nt[t].bind(this,n),e.addEventListener(tt[t],n,!1),n):(console.warn(`wrong event specified:`,t),l)}function ot(e,t,n){if(!tt[t]){console.warn(`wrong event specified:`,t);return}e.removeEventListener(tt[t],n,!1)}function st(e){rt[e.pointerId]=e}function ct(e){rt[e.pointerId]&&(rt[e.pointerId]=e)}function lt(e){delete rt[e.pointerId]}function ut(){it||=(document.addEventListener(Ze,st,!0),document.addEventListener(Qe,ct,!0),document.addEventListener($e,lt,!0),document.addEventListener(et,lt,!0),!0)}function dt(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||`mouse`)){for(var n in t.touches=[],rt)t.touches.push(rt[n]);t.changedTouches=[t],e(t)}}function ft(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Y(t),dt(e,t)}function pt(e){var t={},n,r;for(r in e)n=e[r],t[r]=n&&n.bind?n.bind(e):n;return e=t,t.type=`dblclick`,t.detail=2,t.isTrusted=!1,t._simulated=!0,t}var mt=200;function ht(e,t){e.addEventListener(`dblclick`,t);var n=0,r;function i(e){if(e.detail!==1){r=e.detail;return}if(!(e.pointerType===`mouse`||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents)){var i=$t(e);if(!(i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})&&!i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement}))){var a=Date.now();a-n<=mt?(r++,r===2&&t(pt(e))):r=1,n=a}}}return e.addEventListener(`click`,i),{dblclick:t,simDblclick:i}}function gt(e,t){e.removeEventListener(`dblclick`,t.dblclick),e.removeEventListener(`click`,t.simDblclick)}var _t=kt([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),vt=kt([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),yt=vt===`webkitTransition`||vt===`OTransition`?vt+`End`:`transitionend`;function bt(e){return typeof e==`string`?document.getElementById(e):e}function xt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||n===`auto`)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return n===`auto`?null:n}function B(e,t,n){var r=document.createElement(e);return r.className=t||``,n&&n.appendChild(r),r}function V(e){var t=e.parentNode;t&&t.removeChild(e)}function St(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Ct(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function wt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function Tt(e,t){if(e.classList!==void 0)return e.classList.contains(t);var n=Dt(e);return n.length>0&&RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n)}function H(e,t){if(e.classList!==void 0)for(var n=f(t),r=0,i=n.length;r0?2*window.devicePixelRatio:1;function nn(e){return z.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/tn:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function rn(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch{return!1}return n!==e}var an={__proto__:null,on:K,off:J,stopPropagation:Yt,disableScrollPropagation:Xt,disableClickPropagation:Zt,preventDefault:Y,stop:Qt,getPropagationPath:$t,getMousePosition:en,getWheelDelta:nn,isExternalTarget:rn,addListener:K,removeListener:J},on=se.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=jt(e),this._offset=t.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=b(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=this._duration*1e3;tthis.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,k(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){t||={};var n=T(t.paddingTopLeft||t.padding||[0,0]),r=T(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=D([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),a=t.divideBy(2).round(),o=r.divideBy(2).round(),s=a.subtract(o);return!s.x&&!s.y?this:(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire(`move`),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,`moveend`),200)):this.fire(`moveend`)),this.fire(`resize`,{oldSize:t,newSize:r}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire(`viewreset`),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!(`geolocation`in navigator))return this._handleGeolocationError({code:0,message:`Geolocation not supported.`}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(t===1?`permission denied`:t===2?`position unavailable`:`timeout`);this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire(`locationerror`,{code:t,message:`Geolocation error: `+n+`.`})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,n=e.coords.longitude,r=new A(t,n),i=r.toBounds(e.coords.accuracy*2),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(i);this.setView(r,a.maxZoom?Math.min(o,a.maxZoom):o)}var s={latlng:r,bounds:i,timestamp:e.timestamp};for(var c in e.coords)typeof e.coords[c]==`number`&&(s[c]=e.coords[c]);this.fire(`locationfound`,s)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off(`moveend`,this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error(`Map container is being reused by another instance`);try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),V(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&=(x(this._resizeRequest),null),this._clearHandlers(),this._loaded&&this.fire(`unload`),this._layers)this._layers[e].remove();for(e in this._panes)V(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=B(`div`,`leaflet-pane`+(e?` leaflet-`+e.replace(`Pane`,``)+`-pane`:``),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new O(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},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(e,t,n){e=k(e),n=T(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=D(this.project(s,r),this.project(o,r)).getSize(),u=z.any3d?this.options.zoomSnap:1,d=c.x/l.x,f=c.y/l.y,p=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},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(e,t){var n=this._getTopLeftPoint(e,t);return new E(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e==`string`?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=t===void 0?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=t===void 0?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.latLngToPoint(j(e),t)},unproject:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.pointToLatLng(T(e),t)},layerPointToLatLng:function(e){var t=T(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(j(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(j(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(k(e))},distance:function(e,t){return this.options.crs.distance(j(e),j(t))},containerPointToLayerPoint:function(e){return T(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return T(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(T(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(j(e)))},mouseEventToContainerPoint:function(e){return en(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=bt(e);if(!t)throw Error(`Map container not found.`);if(t._leaflet_id)throw Error(`Map container is already initialized.`);K(t,`scroll`,this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&z.any3d,H(e,`leaflet-container`+(z.touch?` leaflet-touch`:``)+(z.retina?` leaflet-retina`:``)+(z.ielt9?` leaflet-oldie`:``)+(z.safari?` leaflet-safari`:``)+(this._fadeAnimated?` leaflet-fade-anim`:``));var t=xt(e,`position`);t!==`absolute`&&t!==`relative`&&t!==`fixed`&&t!==`sticky`&&(e.style.position=`relative`),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane(`mapPane`,this._container),G(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||(H(e.markerPane,`leaflet-zoom-hide`),H(e.shadowPane,`leaflet-zoom-hide`))},_resetView:function(e,t,n){G(this._mapPane,new w(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire(`viewprereset`);var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire(`viewreset`),r&&this.fire(`load`)},_moveStart:function(e,t){return e&&this.fire(`zoomstart`),t||this.fire(`movestart`),this},_move:function(e,t,n,r){t===void 0&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire(`zoom`,n):((i||n&&n.pinch)&&this.fire(`zoom`,n),this.fire(`move`,n)),this},_moveEnd:function(e){return e&&this.fire(`zoomend`),this.fire(`moveend`)},_stop:function(){return x(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){G(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error(`Set map center and zoom first.`)},_initEvents:function(e){this._targets={},this._targets[o(this._container)]=this;var t=e?J:K;t(this._container,`click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup`,this._handleDOMEvent,this),this.options.trackResize&&t(window,`resize`,this._onResize,this),z.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,`moveend`,this._onMoveEnd)},_onResize:function(){x(this._resizeRequest),this._resizeRequest=b(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n=[],r,i=t===`mouseout`||t===`mouseover`,a=e.target||e.srcElement,s=!1;a;){if(r=this._targets[o(a)],r&&(t===`click`||t===`preclick`)&&this._draggableMoved(r)){s=!0;break}if(r&&r.listens(t,!0)&&(i&&!rn(a,e)||(n.push(r),i))||a===this._container)break;a=a.parentNode}return!n.length&&!s&&!i&&this.listens(t,!0)&&(n=[this]),n},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||e.type===`click`&&this._isClickDisabled(t))){var n=e.type;n===`mousedown`&&Bt(t),this._fireDOMEvent(e,n)}},_mouseEvents:[`click`,`dblclick`,`mouseover`,`mouseout`,`contextmenu`],_fireDOMEvent:function(e,t,r){if(e.type===`click`){var i=n({},e);i.type=`preclick`,this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,t);if(r){for(var o=[],s=0;s0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=z.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire(`move`)},_onPanTransitionEnd:function(){U(this._mapPane,`leaflet-pan-anim`),this.fire(`moveend`)},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(t&&t.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=B(`div`,`leaflet-proxy leaflet-zoom-animated`);this._panes.mapPane.appendChild(e),this.on(`zoomanim`,function(e){var t=_t,n=this._proxy.style[t];At(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on(`load moveend`,this._animMoveEnd,this),this._on(`unload`,this._destroyAnimProxy,this)},_destroyAnimProxy:function(){V(this._proxy),this.off(`load moveend`,this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();At(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf(`transform`)>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName(`leaflet-zoom-animated`).length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n||={},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return n.animate!==!0&&!this.getSize().contains(i)?!1:(b(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,H(this._mapPane,`leaflet-zoom-anim`)),this.fire(`zoomanim`,{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||=this._zoom!==this._animateToZoom,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&U(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 sn(e,t){return new X(e,t)}var Z=S.extend({options:{position:`topright`},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return H(t,`leaflet-control`),n.indexOf(`bottom`)===-1?r.appendChild(t):r.insertBefore(t,r.firstChild),this._map.on(`unload`,this.remove,this),this},remove:function(){return this._map?(V(this._container),this.onRemove&&this.onRemove(this._map),this._map.off(`unload`,this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),cn=function(e){return new Z(e)};X.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t=`leaflet-`,n=this._controlContainer=B(`div`,t+`control-container`,this._container);function r(r,i){var a=t+r+` `+t+i;e[r+i]=B(`div`,a,n)}r(`top`,`left`),r(`top`,`right`),r(`bottom`,`left`),r(`bottom`,`right`)},_clearControlPos:function(){for(var e in this._controlCorners)V(this._controlCorners[e]);V(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=Z.extend({options:{collapsed:!0,position:`topright`,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n1,this._baseLayersList.style.display=e?``:`none`),this._separator.style.display=t&&e?``:`none`,this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?e.type===`add`?`overlayadd`:`overlayremove`:e.type===`add`?`baselayerchange`:null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=``,r=document.createElement(`div`);return r.innerHTML=n,r.firstChild},_addItem:function(e){var t=document.createElement(`label`),n=this._map.hasLayer(e.layer),r;e.overlay?(r=document.createElement(`input`),r.type=`checkbox`,r.className=`leaflet-control-layers-selector`,r.defaultChecked=n):r=this._createRadioElement(`leaflet-base-layers_`+o(this),n),this._layerControlInputs.push(r),r.layerId=o(e.layer),K(r,`click`,this._onInputClick,this);var i=document.createElement(`span`);i.innerHTML=` `+e.name;var a=document.createElement(`span`);return t.appendChild(a),a.appendChild(r),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(t),this._checkDisabledLayers(),t},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,t,n,r=[],i=[];this._handlingClick=!0;for(var a=e.length-1;a>=0;a--)t=e[a],n=this._getLayer(t.layerId).layer,t.checked?r.push(n):t.checked||i.push(n);for(a=0;a=0;i--)t=e[i],n=this._getLayer(t.layerId).layer,t.disabled=n.options.minZoom!==void 0&&rn.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,K(e,`click`,Y),this.expand();var t=this;setTimeout(function(){J(e,`click`,Y),t._preventClick=!1})}}),un=function(e,t,n){return new ln(e,t,n)},dn=Z.extend({options:{position:`topleft`,zoomInText:``,zoomInTitle:`Zoom in`,zoomOutText:``,zoomOutTitle:`Zoom out`},onAdd:function(e){var t=`leaflet-control-zoom`,n=B(`div`,t+` leaflet-bar`),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+`-in`,n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+`-out`,n,this._zoomOut),this._updateDisabled(),e.on(`zoomend zoomlevelschange`,this._updateDisabled,this),n},onRemove:function(e){e.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(e){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=B(`a`,n,r);return a.innerHTML=e,a.href=`#`,a.title=t,a.setAttribute(`role`,`button`),a.setAttribute(`aria-label`,t),Zt(a),K(a,`click`,Qt),K(a,`click`,i,this),K(a,`click`,this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t=`leaflet-disabled`;U(this._zoomInButton,t),U(this._zoomOutButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`false`),this._zoomOutButton.setAttribute(`aria-disabled`,`false`),(this._disabled||e._zoom===e.getMinZoom())&&(H(this._zoomOutButton,t),this._zoomOutButton.setAttribute(`aria-disabled`,`true`)),(this._disabled||e._zoom===e.getMaxZoom())&&(H(this._zoomInButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`true`))}});X.mergeOptions({zoomControl:!0}),X.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new dn,this.addControl(this.zoomControl))});var fn=function(e){return new dn(e)},pn=Z.extend({options:{position:`bottomleft`,maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=`leaflet-control-scale`,n=B(`div`,t),r=this.options;return this._addScales(r,t+`-line`,n),e.on(r.updateWhenIdle?`moveend`:`move`,this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?`moveend`:`move`,this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=B(`div`,t,n)),e.imperial&&(this._iScale=B(`div`,t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+` m`:t/1e3+` km`;this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t=e*3.2808399,n,r,i;t>5280?(n=t/5280,r=this._getRoundNum(n),this._updateScale(this._iScale,r+` mi`,r/n)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+` ft`,i/t))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+`px`,e.innerHTML=t},_getRoundNum:function(e){var t=10**((Math.floor(e)+``).length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),mn=function(e){return new pn(e)},hn=Z.extend({options:{position:`bottomright`,prefix:``+(z.inlineSvg?` `:``)+`Leaflet`},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=B(`div`,`leaflet-control-attribution`),Zt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on(`layeradd`,this._addAttribution,this),this._container},onRemove:function(e){e.off(`layeradd`,this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once(`remove`,function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(`, `)),this._container.innerHTML=n.join(` `)}}});X.mergeOptions({attributionControl:!0}),X.addInitHook(function(){this.options.attributionControl&&new hn().addTo(this)}),Z.Layers=ln,Z.Zoom=dn,Z.Scale=pn,Z.Attribution=hn,cn.layers=un,cn.zoom=fn,cn.scale=mn,cn.attribution=function(e){return new hn(e)};var gn=S.extend({initialize:function(e){this._map=e},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}});gn.addTo=function(e,t){return e.addHandler(t,this),this};var _n={Events:C},vn=z.touch?`touchstart mousedown`:`mousedown`,yn=se.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||=(K(this._dragStartTarget,vn,this._onDown,this),!0)},disable:function(){this._enabled&&(yn._dragging===this&&this.finishDrag(!0),J(this._dragStartTarget,vn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!Tt(this._element,`leaflet-zoom-anim`))){if(e.touches&&e.touches.length!==1){yn._dragging===this&&this.finishDrag();return}if(!(yn._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(yn._dragging=this,this._preventOutline&&Bt(this._element),It(),Mt(),!this._moving)){this.fire(`down`);var t=e.touches?e.touches[0]:e,n=Ht(this._element);this._startPoint=new w(t.clientX,t.clientY),this._startPos=jt(this._element),this._parentScale=Ut(n);var r=e.type===`mousedown`;K(document,r?`mousemove`:`touchmove`,this._onMove,this),K(document,r?`mouseup`:`touchend touchcancel`,this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&e.touches.length===1?e.touches[0]:e,n=new w(t.clientX,t.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)a&&(o=s,a=c);a>n&&(t[o]=1,On(e,t,n,r,o),On(e,t,n,o,i))}function kn(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;rt&&(n.push(e[r]),i=r);return it.max.x&&(n|=2),e.yt.max.y&&(n|=8),n}function Pn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Fn(e,t,n,r){var i=t.x,a=t.y,o=n.x-i,s=n.y-a,c=o*o+s*s,l;return c>0&&(l=((e.x-i)*o+(e.y-a)*s)/c,l>1?(i=n.x,a=n.y):l>0&&(i+=o*l,a+=s*l)),o=e.x-i,s=e.y-a,r?o*o+s*s:new w(i,a)}function Q(e){return!_(e[0])||typeof e[0][0]!=`object`&&e[0][0]!==void 0}function In(e){return console.warn(`Deprecated use of _flat, please use L.LineUtil.isFlat instead.`),Q(e)}function Ln(e,t){var n,r,i,a,o,s,c,l;if(!e||e.length===0)throw Error(`latlngs not passed`);Q(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var u=j([0,0]),d=k(e);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(e));var f=e.length,p=[];for(n=0;nr){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var h=t.unproject(T(l));return j([h.lat+u.lat,h.lng+u.lng])}var Rn={__proto__:null,simplify:wn,pointToSegmentDistance:Tn,closestPointOnSegment:En,clipSegment:jn,_getEdgeIntersection:Mn,_getBitCode:Nn,_sqClosestPointOnSegment:Fn,isFlat:Q,_flat:In,polylineCenter:Ln},zn={project:function(e){return new w(e.lng,e.lat)},unproject:function(e){return new A(e.y,e.x)},bounds:new E([-180,-90],[180,90])},Bn={R:6378137,R_MINOR:6356752.314245179,bounds:new E([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/((1-o)/(1+o))**(a/2);return r=-n*Math.log(Math.max(s,1e-10)),new w(e.lng*t*n,r)},unproject:function(e){for(var t=180/Math.PI,n=this.R,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),a=Math.exp(-e.y/n),o=Math.PI/2-2*Math.atan(a),s=0,c=.1,l;s<15&&Math.abs(c)>1e-7;s++)l=i*Math.sin(o),l=((1-l)/(1+l))**(i/2),c=Math.PI/2-2*Math.atan(a*l)-o,o+=c;return new A(o*t,e.x*t/n)}},Vn={__proto__:null,LonLat:zn,Mercator:Bn,SphericalMercator:ue},Hn=n({},N,{code:`EPSG:3395`,projection:Bn,transformation:function(){var e=.5/(Math.PI*Bn.R);return fe(e,.5,-e,.5)}()}),Un=n({},N,{code:`EPSG:4326`,projection:zn,transformation:fe(1/180,1,-1/180,.5)}),Wn=n({},M,{projection:zn,transformation:fe(1,0,-1,0),scale:function(e){return 2**e},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});M.Earth=N,M.EPSG3395=Hn,M.EPSG3857=P,M.EPSG900913=pe,M.EPSG4326=Un,M.Simple=Wn;var $=se.extend({options:{pane:`overlayPane`,attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once(`remove`,function(){t.off(n,this)},this)}this.onAdd(t),this.fire(`add`),t.fire(`layeradd`,{layer:this})}}});X.include({addLayer:function(e){if(!e._layerAdd)throw Error(`The provided object is not a Layer.`);var t=o(e);return this._layers[t]?this:(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var t=o(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire(`layerremove`,{layer:e}),e.fire(`remove`)),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?_(e)?e:[e]:[];for(var t=0,n=e.length;tthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&t[0]instanceof A&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){or.prototype._setLatLngs.call(this,e),Q(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Q(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new w(t,t);if(e=new E(e.min.subtract(n),e.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(e))){if(this.options.noClip){this._parts=this._rings;return}for(var r=0,i=this._rings.length,a;re.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(t=!t);return t||or.prototype._containsPoint.call(this,e,!0)}});function lr(e,t){return new cr(e,t)}var ur=qn.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t=_(e)?e:e.features,n,r,i;if(t){for(n=0,r=t.length;n0&&i.push(i[0].slice()),i}function _r(e,t){return e.feature?n({},e.feature,{geometry:t}):vr(t)}function vr(e){return e.type===`Feature`||e.type===`FeatureCollection`?e:{type:`Feature`,properties:{},geometry:e}}var yr={toGeoJSON:function(e){return _r(this,{type:`Point`,coordinates:hr(this.getLatLng(),e)})}};$n.include(yr),ir.include(yr),nr.include(yr),or.include({toGeoJSON:function(e){var t=!Q(this._latlngs),n=gr(this._latlngs,t?1:0,!1,e);return _r(this,{type:(t?`Multi`:``)+`LineString`,coordinates:n})}}),cr.include({toGeoJSON:function(e){var t=!Q(this._latlngs),n=t&&!Q(this._latlngs[0]),r=gr(this._latlngs,n?2:t?1:0,!0,e);return t||(r=[r]),_r(this,{type:(n?`Multi`:``)+`Polygon`,coordinates:r})}}),Gn.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),_r(this,{type:`MultiPoint`,coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t===`MultiPoint`)return this.toMultiPoint(e);var n=t===`GeometryCollection`,r=[];return this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=vr(i);a.type===`FeatureCollection`?r.push.apply(r,a.features):r.push(a)}}}),n?_r(this,{geometries:r,type:`GeometryCollection`}):{type:`FeatureCollection`,features:r}}});function br(e,t){return new ur(e,t)}var xr=br,Sr=$.extend({options:{opacity:1,alt:``,interactive:!1,crossOrigin:!1,errorOverlayUrl:``,zIndex:1,className:``},initialize:function(e,t,n){this._url=e,this._bounds=k(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(H(this._image,`leaflet-interactive`),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){V(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&Ct(this._image),this},bringToBack:function(){return this._map&&wt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=k(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName===`IMG`,t=this._image=e?this._url:B(`img`);if(H(t,`leaflet-image-layer`),this._zoomAnimated&&H(t,`leaflet-zoom-animated`),this.options.className&&H(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onload=i(this.fire,this,`load`),t.onerror=i(this._overlayOnError,this,`error`),(this.options.crossOrigin||this.options.crossOrigin===``)&&(t.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;At(this._image,n,t)},_reset:function(){var e=this._image,t=new E(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();G(e,t.min),e.style.width=n.x+`px`,e.style.height=n.y+`px`},_updateOpacity:function(){W(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 e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Cr=function(e,t,n){return new Sr(e,t,n)},wr=Sr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e=this._url.tagName===`VIDEO`,t=this._image=e?this._url:B(`video`);if(H(t,`leaflet-image-layer`),this._zoomAnimated&&H(t,`leaflet-zoom-animated`),this.options.className&&H(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onloadeddata=i(this.fire,this,`load`),e){for(var n=t.getElementsByTagName(`source`),r=[],a=0;a0?r:[t.src];return}_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,`objectFit`)&&(t.style.objectFit=`fill`),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o