1import{a as no,g as Us,c as ks,w as so}from"./assets/wf.youtube-livestream-4v_gJQ0P.js";var Ui={exports:{}},ro=Ui.exports,Is;function oo(){return Is||(Is=1,(function(i,o){(function(r,a){i.exports=a()})(ro,(function(){function r(w,m,y){return m in w?Object.defineProperty(w,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[m]=y,w}function a(w,m){var y=Object.keys(w);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(w);m&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(w,O).enumerable})),y.push.apply(y,x)}return y}function c(w){for(var m=1;m<arguments.length;m++){var y=arguments[m]!=null?arguments[m]:{};m%2?a(Object(y),!0).forEach(function(x){r(w,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(y)):a(Object(y)).forEach(function(x){Object.defineProperty(w,x,Object.getOwnPropertyDescriptor(y,x))})}return w}function s(){return new Promise(w=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",w):w()})}function u(w){return Array.from(new Set(w))}function f(){return navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}function d(w,m){return w==m}function _(w,m){w.tagName.toLowerCase()!=="template"?console.warn(`Alpine: [${m}] directive should only be added to <template> tags. See https://github.com/alpinejs/alpine#${m}`):w.content.childElementCount!==1&&console.warn(`Alpine: <template> tag with [${m}] encountered with an unexpected number of root elements. Make sure <template> has a single root element. `)}function b(w){return w.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function v(w){return w.toLowerCase().replace(/-(\w)/g,(m,y)=>y.toUpperCase())}function P(w,m){if(m(w)===!1)return;let y=w.firstElementChild;for(;y;)P(y,m),y=y.nextElementSibling}function p(w,m){var y;return function(){var x=this,O=arguments,k=function(){y=null,w.apply(x,O)};clearTimeout(y),y=setTimeout(k,m)}}const C=(w,m,y)=>{if(console.warn(`Alpine Error: "${y}" 2 3Expression: "${m}" 4Element:`,w),!f())throw Object.assign(y,{el:w,expression:m}),y};function E(w,{el:m,expression:y}){try{const x=w();return x instanceof Promise?x.catch(O=>C(m,y,O)):x}catch(x){C(m,y,x)}}function R(w,m,y,x={}){return E(()=>typeof m=="function"?m.call(y):new Function(["$data",...Object.keys(x)],`var __alpine_result; with($data) { __alpine_result = ${m} }; return __alpine_result`)(y,...Object.values(x)),{el:w,expression:m})}function S(w,m,y,x={}){return E(()=>{if(typeof m=="function")return Promise.resolve(m.call(y,x.$event));let O=Function;if(O=Object.getPrototypeOf(async function(){}).constructor,Object.keys(y).includes(m)){let k=new Function(["dataContext",...Object.keys(x)],`with(dataContext) { return ${m} }`)(y,...Object.values(x));return typeof k=="function"?Promise.resolve(k.call(y,x.$event)):Promise.resolve()}return Promise.resolve(new O(["dataContext",...Object.keys(x)],`with(dataContext) { ${m} }`)(y,...Object.values(x)))},{el:w,expression:m})}const M=/^x-(on|bind|data|text|html|model|if|for|show|cloak|transition|ref|spread)\b/;function z(w){const m=V(w.name);return M.test(m)}function H(w,m,y){let x=Array.from(w.attributes).filter(z).map(at),O=x.filter(k=>k.type==="spread")[0];if(O){let k=R(w,O.expression,m.$data);x=x.concat(Object.entries(k).map(([N,D])=>at({name:N,value:D})))}return y?x.filter(k=>k.type===y):W(x)}function W(w){let m=["bind","model","show","catch-all"];return w.sort((y,x)=>{let O=m.indexOf(y.type)===-1?"catch-all":y.type,k=m.indexOf(x.type)===-1?"catch-all":x.type;return m.indexOf(O)-m.indexOf(k)})}function at({name:w,value:m}){const y=V(w),x=y.match(M),O=y.match(/:([a-zA-Z0-9\-:]+)/),k=y.match(/\.[^.\]]+(?=[^\]]*$)/g)||[];return{type:x?x[1]:null,value:O?O[1]:null,modifiers:k.map(N=>N.replace(".","")),expression:m}}function $(w){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(w)}function V(w){return w.startsWith("@")?w.replace("@","x-on:"):w.startsWith(":")?w.replace(":","x-bind:"):w}function et(w,m=Boolean){return w.split(" ").filter(m)}const Y="in",j="out",U="cancelled";function B(w,m,y,x,O=!1){if(O)return m();if(w.__x_transition&&w.__x_transition.type===Y)return;const k=H(w,x,"transition"),N=H(w,x,"show")[0];if(N&&N.modifiers.includes("transition")){let D=N.modifiers;if(D.includes("out")&&!D.includes("in"))return m();D=D.includes("in")&&D.includes("out")?D.filter((ct,Lt)=>Lt<D.indexOf("out")):D,lt(w,D,m,y)}else k.some(D=>["enter","enter-start","enter-end"].includes(D.value))?tt(w,x,k,m,y):m()}function q(w,m,y,x,O=!1){if(O)return m();if(w.__x_transition&&w.__x_transition.type===j)return;const k=H(w,x,"transition"),N=H(w,x,"show")[0];if(N&&N.modifiers.includes("transition")){let D=N.modifiers;if(D.includes("in")&&!D.includes("out"))return m();const Q=D.includes("in")&&D.includes("out");D=Q?D.filter((ct,Lt)=>Lt>D.indexOf("out")):D,Ct(w,D,Q,m,y)}else k.some(D=>["leave","leave-start","leave-end"].includes(D.value))?pt(w,x,k,m,y):m()}function lt(w,m,y,x){const O={duration:st(m,"duration",150),origin:st(m,"origin","center"),first:{opacity:0,scale:st(m,"scale",95)},second:{opacity:1,scale:100}};Z(w,m,y,()=>{},x,O,Y)}function Ct(w,m,y,x,O){const N={duration:y?st(m,"duration",150):st(m,"duration",150)/2,origin:st(m,"origin","center"),first:{opacity:1,scale:100},second:{opacity:0,scale:st(m,"scale",95)}};Z(w,m,()=>{},x,O,N,j)}function st(w,m,y){if(w.indexOf(m)===-1)return y;const x=w[w.indexOf(m)+1];if(!x||m==="scale"&&!Ot(x))return y;if(m==="duration"){let O=x.match(/([0-9]+)ms/);if(O)return O[1]}
4return m==="origin"&&["top","right","left","center","bottom"].includes(w[w.indexOf(m)+2])?[x,w[w.indexOf(m)+2]].join(" "):x}function Z(w,m,y,x,O,k,N){w.__x_transition&&w.__x_transition.cancel&&w.__x_transition.cancel();const D=w.style.opacity,Q=w.style.transform,ct=w.style.transformOrigin,Lt=!m.includes("opacity")&&!m.includes("scale"),At=Lt||m.includes("opacity"),It=Lt||m.includes("scale");Wt(w,{start(){At&&(w.style.opacity=k.first.opacity),It&&(w.style.transform=`scale(${k.first.scale/100})`)},during(){It&&(w.style.transformOrigin=k.origin),w.style.transitionProperty=[At?"opacity":"",It?"transform":""].join(" ").trim(),w.style.transitionDuration=`${k.duration/1e3}s`,w.style.transitionTimingFunction="cubic-bezier(0.4, 0.0, 0.2, 1)"},show(){y()},end(){At&&(w.style.opacity=k.second.opacity),It&&(w.style.transform=`scale(${k.second.scale/100})`)},hide(){x()},cleanup(){At&&(w.style.opacity=D),It&&(w.style.transform=Q),It&&(w.style.transformOrigin=ct),w.style.transitionProperty=null,w.style.transitionDuration=null,w.style.transitionTimingFunction=null}},N,O)}const ut=(w,m,y)=>typeof w=="function"?y.evaluateReturnExpression(m,w):w;function tt(w,m,y,x,O){const k=et(ut((y.find(Q=>Q.value==="enter")||{expression:""}).expression,w,m)),N=et(ut((y.find(Q=>Q.value==="enter-start")||{expression:""}).expression,w,m)),D=et(ut((y.find(Q=>Q.value==="enter-end")||{expression:""}).expression,w,m));Dt(w,k,N,D,x,()=>{},Y,O)}function pt(w,m,y,x,O){const k=et(ut((y.find(Q=>Q.value==="leave")||{expression:""}).expression,w,m)),N=et(ut((y.find(Q=>Q.value==="leave-start")||{expression:""}).expression,w,m)),D=et(ut((y.find(Q=>Q.value==="leave-end")||{expression:""}).expression,w,m));Dt(w,k,N,D,()=>{},x,j,O)}function Dt(w,m,y,x,O,k,N,D){w.__x_transition&&w.__x_transition.cancel&&w.__x_transition.cancel();const Q=w.__x_original_classes||[];Wt(w,{start(){w.classList.add(...y)},during(){w.classList.add(...m)},show(){O()},end(){w.classList.remove(...y.filter(Lt=>!Q.includes(Lt))),w.classList.add(...x)},hide(){k()},cleanup(){w.classList.remove(...m.filter(Lt=>!Q.includes(Lt))),w.classList.remove(...x.filter(Lt=>!Q.includes(Lt)))}},N,D)}function Wt(w,m,y,x){const O=St(()=>{m.hide(),w.isConnected&&m.cleanup(),delete w.__x_transition});w.__x_transition={type:y,cancel:St(()=>{x(U),O()}),finish:O,nextFrame:null},m.start(),m.during(),w.__x_transition.nextFrame=requestAnimationFrame(()=>{let k=Number(getComputedStyle(w).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3;k===0&&(k=Number(getComputedStyle(w).animationDuration.replace("s",""))*1e3),m.show(),w.__x_transition.nextFrame=requestAnimationFrame(()=>{m.end(),setTimeout(w.__x_transition.finish,k)})})}function Ot(w){return!Array.isArray(w)&&!isNaN(w)}function St(w){let m=!1;return function(){m||(m=!0,w.apply(this,arguments))}}function vt(w,m,y,x,O){_(m,"x-for");let k=Qt(typeof y=="function"?w.evaluateReturnExpression(m,y):y),N=Fe(w,m,k,O),D=m;N.forEach((Q,ct)=>{let Lt=ce(k,Q,ct,N,O()),At=Ye(w,m,ct,Lt),It=Pe(D.nextElementSibling,At);It?(delete It.__x_for_key,It.__x_for=Lt,w.updateElements(It,()=>It.__x_for)):(It=De(m,D),B(It,()=>{},()=>{},w,x),It.__x_for=Lt,w.initializeElements(It,()=>It.__x_for)),D=It,D.__x_for_key=At}),Ne(D,w)}function Qt(w){let m=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,y=/^\(|\)$/g,x=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,O=String(w).match(x);if(!O)return;let k={};k.items=O[2].trim();let N=O[1].trim().replace(y,""),D=N.match(m);return D?(k.item=N.replace(m,"").trim(),k.index=D[1].trim(),D[2]&&(k.collection=D[2].trim())):k.item=N,k}function ce(w,m,y,x,O){let k=O?c({},O):{};return k[w.item]=m,w.index&&(k[w.index]=y),w.collection&&(k[w.collection]=x),k}function Ye(w,m,y,x){let O=H(m,w,"bind").filter(k=>k.value==="key")[0];return O?w.evaluateReturnExpression(m,O.expression,()=>x):y}function Fe(w,m,y,x){let O=H(m,w,"if")[0];if(O&&!w.evaluateReturnExpression(m,O.expression))return[];let k=w.evaluateReturnExpression(m,y.items,x);return Ot(k)&&k>=0&&(k=Array.from(Array(k).keys(),N=>N+1)),k}function De(w,m){let y=document.importNode(w.content,!0);return m.parentElement.insertBefore(y,m.nextElementSibling),m.nextElementSibling}function Pe(w,m){if(!w||w.__x_for_key===void 0)return;if(w.__x_for_key===m)return w;let y=w;for(;y;){if(y.__x_for_key===m)return y.parentElement.insertBefore(y,w);y=y.nextElementSibling&&y.nextElementSibling.__x_for_key!==void 0?y.nextElementSibling:!1}}function Ne(w,m){for(var y=w.nextElementSibling&&w.nextElementSibling.__x_for_key!==void 0?w.nextElementSibling:!1;y;){let x=y,O=y.nextElementSibling;q(y,()=>{x.remove()},()=>{},m),y=O&&O.__x_for_key!==void 0?O:!1}}function Xe(w,m,y,x,O,k,N){var D=w.evaluateReturnExpression(m,x,O);if(y==="value"){if(ee.ignoreFocusedForValueBinding&&document.activeElement.isSameNode(m))return;if(D===void 0&&String(x).match(/\./)&&(D=""),m.type==="radio")m.attributes.value===void 0&&k==="bind"?m.value=D:k!=="bind"&&(m.checked=d(m.value,D));else if(m.type==="checkbox")typeof D!="boolean"&&![null,void 0].includes(D)&&k==="bind"?m.value=String(D):k!=="bind"&&(Array.isArray(D)?m.checked=D.some(Q=>d(Q,m.value)):m.checked=!!D);else if(m.tagName==="SELECT")J(m,D);else{if(m.value===D)return;m.value=D}}else if(y==="class")if(Array.isArray(D)){const Q=m.__x_original_classes||[];m.setAttribute("class",u(Q.concat(D)).join(" "))}else if(typeof D=="object")Object.keys(D).sort((ct,Lt)=>
4D[ct]-D[Lt]).forEach(ct=>{D[ct]?et(ct).forEach(Lt=>m.classList.add(Lt)):et(ct).forEach(Lt=>m.classList.remove(Lt))});else{const Q=m.__x_original_classes||[],ct=D?et(D):[];m.setAttribute("class",u(Q.concat(ct)).join(" "))}else y=N.includes("camel")?v(y):y,[null,void 0,!1].includes(D)?m.removeAttribute(y):$(y)?F(m,y,y):F(m,y,D)}function F(w,m,y){w.getAttribute(m)!=y&&w.setAttribute(m,y)}function J(w,m){const y=[].concat(m).map(x=>x+"");Array.from(w.options).forEach(x=>{x.selected=y.includes(x.value||x.text)})}function mt(w,m,y){m===void 0&&String(y).match(/\./)&&(m=""),w.textContent=m}function rt(w,m,y,x){m.innerHTML=w.evaluateReturnExpression(m,y,x)}function wt(w,m,y,x,O=!1){const k=()=>{m.style.display="none",m.__x_is_shown=!1},N=()=>{m.style.length===1&&m.style.display==="none"?m.removeAttribute("style"):m.style.removeProperty("display"),m.__x_is_shown=!0};if(O===!0){y?N():k();return}const D=(Q,ct)=>{y?((m.style.display==="none"||m.__x_transition)&&B(m,()=>{N()},ct,w),Q(()=>{})):m.style.display!=="none"?q(m,()=>{Q(()=>{k()})},ct,w):Q(()=>{})};if(x.includes("immediate")){D(Q=>Q(),()=>{});return}w.showDirectiveLastElement&&!w.showDirectiveLastElement.contains(m)&&w.executeAndClearRemainingShowDirectiveStack(),w.showDirectiveStack.push(D),w.showDirectiveLastElement=m}function gt(w,m,y,x,O){_(m,"x-if");const k=m.nextElementSibling&&m.nextElementSibling.__x_inserted_me===!0;if(y&&(!k||m.__x_transition)){const N=document.importNode(m.content,!0);m.parentElement.insertBefore(N,m.nextElementSibling),B(m.nextElementSibling,()=>{},()=>{},w,x),w.initializeElements(m.nextElementSibling,O),m.nextElementSibling.__x_inserted_me=!0}else!y&&k&&q(m.nextElementSibling,()=>{m.nextElementSibling.remove()},()=>{},w,x)}function qt(w,m,y,x,O,k={}){const N={passive:x.includes("passive")};x.includes("camel")&&(y=v(y));let D,Q;if(x.includes("away")?(Q=document,D=ct=>{m.contains(ct.target)||m.offsetWidth<1&&m.offsetHeight<1||(ne(w,O,ct,k),x.includes("once")&&document.removeEventListener(y,D,N))}):(Q=x.includes("window")?window:x.includes("document")?document:m,D=ct=>{if((Q===window||Q===document)&&!document.body.contains(m)){Q.removeEventListener(y,D,N);return}te(y)&&se(ct,x)||(x.includes("prevent")&&ct.preventDefault(),x.includes("stop")&&ct.stopPropagation(),(!x.includes("self")||ct.target===m)&&ne(w,O,ct,k).then(At=>{At===!1?ct.preventDefault():x.includes("once")&&Q.removeEventListener(y,D,N)}))}),x.includes("debounce")){let ct=x[x.indexOf("debounce")+1]||"invalid-wait",Lt=Ot(ct.split("ms")[0])?Number(ct.split("ms")[0]):250;D=p(D,Lt)}Q.addEventListener(y,D,N)}function ne(w,m,y,x){return w.evaluateCommandExpression(y.target,m,()=>c(c({},x()),{},{$event:y}))}function te(w){return["keydown","keyup"].includes(w)}function se(w,m){let y=m.filter(k=>!["window","document","prevent","stop"].includes(k));if(y.includes("debounce")){let k=y.indexOf("debounce");y.splice(k,Ot((y[k+1]||"invalid-wait").split("ms")[0])?2:1)}if(y.length===0||y.length===1&&y[0]===re(w.key))return!1;const O=["ctrl","shift","alt","meta","cmd","super"].filter(k=>y.includes(k));return y=y.filter(k=>!O.includes(k)),!(O.length>0&&O.filter(N=>((N==="cmd"||N==="super")&&(N="meta"),w[`${N}Key`])).length===O.length&&y[0]===re(w.key))}function re(w){switch(w){case"/":return"slash";case" ":case"Spacebar":return"space";default:return w&&b(w)}}function Ce(w,m,y,x,O){var k=m.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(m.type)||y.includes("lazy")?"change":"input";const N=`${x} = rightSideOfExpression($event, ${x})`;qt(w,m,k,y,N,()=>c(c({},O()),{},{rightSideOfExpression:Ee(m,y,x)}))}function Ee(w,m,y){return w.type==="radio"&&(w.hasAttribute("name")||w.setAttribute("name",y)),(x,O)=>{if(x instanceof CustomEvent&&x.detail)return x.detail;if(w.type==="checkbox")if(Array.isArray(O)){const k=m.includes("number")?ye(x.target.value):x.target.value;return x.target.checked?O.concat([k]):O.filter(N=>!d(N,k))}else return x.target.checked;else{if(w.tagName.toLowerCase()==="select"&&w.multiple)return m.includes("number")?Array.from(x.target.selectedOptions).map(k=>{const N=k.value||k.text;return ye(N)}):Array.from(x.target.selectedOptions).map(k=>k.value||k.text);
4{const k=x.target.value;return m.includes("number")?ye(k):m.includes("trim")?k.trim():k}}}}function ye(w){const m=w?parseFloat(w):null;return Ot(m)?m:w}const{isArray:Me}=Array,{getPrototypeOf:be,defineProperty:it,isExtensible:ot,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Bt,getOwnPropertySymbols:Vt,preventExtensions:he,hasOwnProperty:Yt}=Object,{concat:Oe}=Array.prototype;function oe(w){return w===void 0}function _e(w){return typeof w=="function"}function Xt(w){return typeof w=="object"}const xt=new WeakMap;function ht(w,m){xt.set(w,m)}const X=w=>xt.get(w)||w;function ft(w,m){return w.valueIsObservable(m)?w.getProxy(m):m}function Et(w){return Yt.call(w,"value")&&(w.value=X(w.value)),w}function Mt(w,m,y){Oe.call(Bt(y),Vt(y)).forEach(O=>{let k=kt(y,O);k.configurable||(k=We(w,k,ft)),it(m,O,k)}),he(m)}class Nt{constructor(m,y){this.originalTarget=y,this.membrane=m}get(m,y){const{originalTarget:x,membrane:O}=this,k=x[y],{valueObserved:N}=O;return N(x,y),O.getProxy(k)}set(m,y,x){const{originalTarget:O,membrane:{valueMutated:k}}=this;return O[y]!==x?(O[y]=x,k(O,y)):y==="length"&&Me(O)&&k(O,y),!0}deleteProperty(m,y){const{originalTarget:x,membrane:{valueMutated:O}}=this;return delete x[y],O(x,y),!0}apply(m,y,x){}construct(m,y,x){}has(m,y){const{originalTarget:x,membrane:{valueObserved:O}}=this;return O(x,y),y in x}ownKeys(m){const{originalTarget:y}=this;return Oe.call(Bt(y),Vt(y))}isExtensible(m){const y=ot(m);if(!y)return y;const{originalTarget:x,membrane:O}=this,k=ot(x);return k||Mt(O,m,x),k}setPrototypeOf(m,y){}getPrototypeOf(m){const{originalTarget:y}=this;return be(y)}getOwnPropertyDescriptor(m,y){const{originalTarget:x,membrane:O}=this,{valueObserved:k}=this.membrane;k(x,y);let N=kt(x,y);if(oe(N))return N;const D=kt(m,y);return oe(D)?(N=We(O,N,ft),N.configurable||it(m,y,N),N):D}preventExtensions(m){const{originalTarget:y,membrane:x}=this;return Mt(x,m,y),he(y),!0}defineProperty(m,y,x){const{originalTarget:O,membrane:k}=this,{valueMutated:N}=k,{configurable:D}=x;if(Yt.call(x,"writable")&&!Yt.call(x,"value")){const Q=kt(O,y);x.value=Q.value}return it(O,y,Et(x)),D===!1&&it(m,y,We(k,x,ft)),N(O,y),!0}}function Rt(w,m){return w.valueIsObservable(m)?w.getReadOnlyProxy(m):m}class ae{constructor(m,y){this.originalTarget=y,this.membrane=m}get(m,y){const{membrane:x,originalTarget:O}=this,k=O[y],{valueObserved:N}=x;return N(O,y),x.getReadOnlyProxy(k)}set(m,y,x){return!1}deleteProperty(m,y){return!1}apply(m,y,x){}construct(m,y,x){}has(m,y){const{originalTarget:x,membrane:{valueObserved:O}}=this;return O(x,y),y in x}ownKeys(m){const{originalTarget:y}=this;return Oe.call(Bt(y),Vt(y))}setPrototypeOf(m,y){}getOwnPropertyDescriptor(m,y){const{originalTarget:x,membrane:O}=this,{valueObserved:k}=O;k(x,y);let N=kt(x,y);if(oe(N))return N;const D=kt(m,y);return oe(D)?(N=We(O,N,Rt),Yt.call(N,"set")&&(N.set=void 0),N.configurable||it(m,y,N),N):D}preventExtensions(m){return!1}defineProperty(m,y,x){return!1}}function Ge(w){let m;return Me(w)?m=[]:Xt(w)&&(m={}),m}const sn=Object.prototype;function Pi(w){if(w===null||typeof w!="object")return!1;if(Me(w))return!0;const m=be(w);return m===sn||m===null||be(m)===null}const le=(w,m)=>{},nt=(w,m)=>{},li=w=>w;function We(w,m,y){const{set:x,get:O}=m;return Yt.call(m,"value")?m.value=y(w,m.value):(oe(O)||(m.get=function(){return y(w,O.call(X(this)))}),oe(x)||(m.set=function(k){x.call(X(this),w.unwrapProxy(k))})),m}class Ci{constructor(m){if(this.valueDistortion=li,this.valueMutated=nt,this.valueObserved=le,this.valueIsObservable=Pi,this.objectGraph=new WeakMap,!oe(m)){const{valueDistortion:y,valueMutated:x,valueObserved:O,valueIsObservable:k}=m;this.valueDistortion=_e(y)?y:li,this.valueMutated=_e(x)?x:nt,this.valueObserved=_e(O)?O:le,this.valueIsObservable=_e(k)?k:Pi}}getProxy(m){const y=X(m),x=this.valueDistortion(y);if(this.valueIsObservable(x)){const O=this.getReactiveState(y,x);return O.readOnly===m?m:O.reactive}return x}getReadOnlyProxy(m){m=X(m);const y=this.valueDistortion(m);return this.valueIsObservable(y)?this.getReactiveState(m,y).readOnly:y}unwrapProxy(m){return X(m)}getReactiveState(m,y){const{objectGraph:x}=this;let O=x.get(y);if(O)return O;const k=this;return O={get reactive(){const N=new Nt(k,y),D=new Proxy(Ge(y),N);return ht(D,m),it(this,"reactive",{value:D}),D},get readOnly(){const N=new ae(k,y),D=new Proxy(Ge(y),N);return ht(D,m),it(this,"readOnly",{value:D}),D}},x.set(y,O),O}}function Ei(w,m){let y=new Ci({valueMutated(x,O){m(x,O)}});return{data:y.getProxy(w),membrane:y}}function ui(w,m){let y=w.unwrapProxy(m),x={};
4return Object.keys(y).forEach(O=>{["$el","$refs","$nextTick","$watch"].includes(O)||(x[O]=y[O])}),x}class ke{constructor(m,y=null){this.$el=m;const x=this.$el.getAttribute("x-data"),O=x===""?"{}":x,k=this.$el.getAttribute("x-init");let N={$el:this.$el},D=y?y.$el:this.$el;Object.entries(ee.magicProperties).forEach(([At,It])=>{Object.defineProperty(N,`$${At}`,{get:function(){return It(D)}})}),this.unobservedData=y?y.getUnobservedData():R(m,O,N);let{membrane:Q,data:ct}=this.wrapDataInObservable(this.unobservedData);this.$data=ct,this.membrane=Q,this.unobservedData.$el=this.$el,this.unobservedData.$refs=this.getRefsProxy(),this.nextTickStack=[],this.unobservedData.$nextTick=At=>{this.nextTickStack.push(At)},this.watchers={},this.unobservedData.$watch=(At,It)=>{this.watchers[At]||(this.watchers[At]=[]),this.watchers[At].push(It)},Object.entries(ee.magicProperties).forEach(([At,It])=>{Object.defineProperty(this.unobservedData,`$${At}`,{get:function(){return It(D,this.$el)}})}),this.showDirectiveStack=[],this.showDirectiveLastElement,y||ee.onBeforeComponentInitializeds.forEach(At=>At(this));var Lt;k&&!y&&(this.pauseReactivity=!0,Lt=this.evaluateReturnExpression(this.$el,k),this.pauseReactivity=!1),this.initializeElements(this.$el,()=>{},y),this.listenForNewElementsToInitialize(),typeof Lt=="function"&&Lt.call(this.$data),y||setTimeout(()=>{ee.onComponentInitializeds.forEach(At=>At(this))},0)}getUnobservedData(){return ui(this.membrane,this.$data)}wrapDataInObservable(m){var y=this;let x=p(function(){y.updateElements(y.$el)},0);return Ei(m,(O,k)=>{y.watchers[k]?y.watchers[k].forEach(N=>N(O[k])):Array.isArray(O)?Object.keys(y.watchers).forEach(N=>{let D=N.split(".");k!=="length"&&D.reduce((Q,ct)=>(Object.is(O,Q[ct])&&y.watchers[N].forEach(Lt=>Lt(O)),Q[ct]),y.unobservedData)}):Object.keys(y.watchers).filter(N=>N.includes(".")).forEach(N=>{let D=N.split(".");k===D[D.length-1]&&D.reduce((Q,ct)=>(Object.is(O,Q)&&y.watchers[N].forEach(Lt=>Lt(O[k])),Q[ct]),y.unobservedData)}),!y.pauseReactivity&&x()})}walkAndSkipNestedComponents(m,y,x=()=>{}){P(m,O=>O.hasAttribute("x-data")&&!O.isSameNode(this.$el)?(O.__x||x(O),!1):y(O))}initializeElements(m,y=()=>{},x=!1){this.walkAndSkipNestedComponents(m,O=>{if(O.__x_for_key!==void 0||O.__x_inserted_me!==void 0)return!1;this.initializeElement(O,y,!x)},O=>{x||(O.__x=new ke(O))}),this.executeAndClearRemainingShowDirectiveStack(),this.executeAndClearNextTickStack(m)}initializeElement(m,y,x=!0){m.hasAttribute("class")&&H(m,this).length>0&&(m.__x_original_classes=et(m.getAttribute("class"))),x&&this.registerListeners(m,y),this.resolveBoundAttributes(m,!0,y)}updateElements(m,y=()=>{}){this.walkAndSkipNestedComponents(m,x=>{if(x.__x_for_key!==void 0&&!x.isSameNode(this.$el))return!1;this.updateElement(x,y)},x=>{x.__x=new ke(x)}),this.executeAndClearRemainingShowDirectiveStack(),this.executeAndClearNextTickStack(m)}executeAndClearNextTickStack(m){m===this.$el&&this.nextTickStack.length>0&&requestAnimationFrame(()=>{for(;this.nextTickStack.length>0;)this.nextTickStack.shift()()})}executeAndClearRemainingShowDirectiveStack(){this.showDirectiveStack.reverse().map(m=>new Promise((y,x)=>{m(y,x)})).reduce((m,y)=>m.then(()=>y.then(x=>{x()})),Promise.resolve(()=>{})).catch(m=>{if(m!==U)throw m}),this.showDirectiveStack=[],this.showDirectiveLastElement=void 0}updateElement(m,y){this.resolveBoundAttributes(m,!1,y)}registerListeners(m,y){H(m,this).forEach(({type:x,value:O,modifiers:k,expression:N})=>{switch(x){case"on":qt(this,m,O,k,N,y);break;case"model":Ce(this,m,k,N,y);break}})}resolveBoundAttributes(m,y=!1,x){let O=H(m,this);O.forEach(({type:k,value:N,modifiers:D,expression:Q})=>{switch(k){case"model":Xe(this,m,"value",Q,x,k,D);break;case"bind":if(m.tagName.toLowerCase()==="template"&&N==="key")return;Xe(this,m,N,Q,x,k,D);break;case"text":var ct=this.evaluateReturnExpression(m,Q,x);mt(m,ct,Q);break;case"html":rt(this,m,Q,x);break;case"show":var ct=this.evaluateReturnExpression(m,Q,x);wt(this,m,ct,D,y);break;case"if":if(O.some(Lt=>Lt.type==="for"))return;var ct=this.evaluateReturnExpression(m,Q,x);gt(this,m,ct,y,x);break;case"for":vt(this,m,Q,y,x);break;case"cloak":m.removeAttribute("x-cloak");break}})}evaluateReturnExpression(m,y,x=()=>{}){return R(m,y,this.$data,c(c({},x()),{},{$dispatch:this.getDispatchFunction(m)}))}evaluateCommandExpression(m,y,x=()=>{}){return S(m,y,this.$data,c(c({},x()),{},{$dispatch:this.getDispatchFunction(m)}))}getDispatchFunction(m){return(y,x={})=>{m.dispatchEvent(new CustomEvent(y,{detail:x,bubbles:!0}))}}listenForNewElementsToInitialize(){const m=this.$el,y={childList:!0,attributes:!0,subtree:!0};new MutationObserver(O=>{for(let k=0;k<O.length;k++){const N=O[k].target.closest("[x-data]");if(N&&N.isSameNode(this.$el)){if(O[k].type==="attributes"&&O[k].attributeName==="x-data"){const D=O[k].target.getAttribute("x-data")||"{}",Q=R(this.$el,D,{$el:this.$el});
4Object.keys(Q).forEach(ct=>{this.$data[ct]!==Q[ct]&&(this.$data[ct]=Q[ct])})}O[k].addedNodes.length>0&&O[k].addedNodes.forEach(D=>{if(!(D.nodeType!==1||D.__x_inserted_me)){if(D.matches("[x-data]")&&!D.__x){D.__x=new ke(D);return}this.initializeElements(D)}})}}}).observe(m,y)}getRefsProxy(){var m=this,y={};return new Proxy(y,{get(x,O){if(O==="$isAlpineProxy")return!0;var k;return m.walkAndSkipNestedComponents(m.$el,N=>{N.hasAttribute("x-ref")&&N.getAttribute("x-ref")===O&&(k=N)}),k}})}}const ee={version:"2.8.2",pauseMutationObserver:!1,magicProperties:{},onComponentInitializeds:[],onBeforeComponentInitializeds:[],ignoreFocusedForValueBinding:!1,start:async function(){f()||await s(),this.discoverComponents(m=>{this.initializeComponent(m)}),document.addEventListener("turbolinks:load",()=>{this.discoverUninitializedComponents(m=>{this.initializeComponent(m)})}),this.listenForNewUninitializedComponentsAtRunTime()},discoverComponents:function(m){document.querySelectorAll("[x-data]").forEach(x=>{m(x)})},discoverUninitializedComponents:function(m,y=null){const x=(y||document).querySelectorAll("[x-data]");Array.from(x).filter(O=>O.__x===void 0).forEach(O=>{m(O)})},listenForNewUninitializedComponentsAtRunTime:function(){const m=document.querySelector("body"),y={childList:!0,attributes:!0,subtree:!0};new MutationObserver(O=>{if(!this.pauseMutationObserver)for(let k=0;k<O.length;k++)O[k].addedNodes.length>0&&O[k].addedNodes.forEach(N=>{N.nodeType===1&&(N.parentElement&&N.parentElement.closest("[x-data]")||this.discoverUninitializedComponents(D=>{this.initializeComponent(D)},N.parentElement))})}).observe(m,y)},initializeComponent:function(m){if(!m.__x)try{m.__x=new ke(m)}catch(y){setTimeout(()=>{throw y},0)}},clone:function(m,y){y.__x||(y.__x=new ke(y,m))},addMagicProperty:function(m,y){this.magicProperties[m]=y},onComponentInitialized:function(m){this.onComponentInitializeds.push(m)},onBeforeComponentInitialized:function(m){this.onBeforeComponentInitializeds.push(m)}};return f()||(window.Alpine=ee,window.deferLoadingAlpine?window.deferLoadingAlpine(function(){window.Alpine.start()}):window.Alpine.start()),ee}))})(Ui)),Ui.exports}oo();function ao(){return{dropdown:{isOpen:!1},initDropdown(i){const o=window.location.hash;o&&this.$el.querySelector(o)&&(this.dropdown.isOpen=!0)}}}function lo(){return{input:"",entryloader:{entries:[],showDefault:!0,isFetching:!1,ajaxError:!1,ajaxOptions:{},collection:void 0,api:no.init()},initEntryloader(i){this.collection=i.collection,delete i.collection,this.entryloader.ajaxOptions=i,this.$watch("input",o=>{this.manageInputTerms(o)}),this.$watch("showDefault",()=>{this.$refs["entryloader-default"].remove()})},entryloaderIsEmpty(){return this.entryloader.entries.length===0&&!this.entryloader.showDefault&&!this.entryloader.isFetching&&!this.entryloader.ajaxError},reloadEntries(){this.manageInputTerms(this.input)},manageInputTerms(i){this.entryloader.isFetching||this.updateEntries(Object.assign({},i))},updateEntries(i={}){this.entryloader.isFetching=!0,this.entryloader.showDefault=!1,this.entryloader.ajaxError=!1,this.entryloader.api.getCollection(this.collection,{...this.entryloader.ajaxOptions,...i}).then(o=>{if(o.status!==200){this.entryloader.ajaxError=!0;return}o.json().then(r=>{this.entryloader.entries=r.data})}).catch(o=>{this.entryloader.ajaxError=!0}).finally(()=>{window.setTimeout(()=>{this.entryloader.isFetching=!1,JSON.stringify(i)!==JSON.stringify(this.input)&&this.updateEntries(this.input)},100)})}}}function uo(){return{initForm(i){const o=this.$el.dataset.privacypolicy;let r=this.$el.querySelector('[href="#privacy_policy"]');o?r.setAttribute("href",o):r.replaceWith(r.innerHTML)}}}const zs="modal-open",Ys='a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])';let co=0,$i=null;function ho(){const i=document.createElement("button");return i.className="modal__close",i.type="button",i.setAttribute("aria-label","SchlieÃen"),i.innerHTML='<i class="cwb_icon-free-close"></i>',i}function fo(i){const o=i.querySelector(".modal__title"),r=i.querySelector(".modal__footer"),a=document.createElement("div");a.className="modal__header",o&&a.appendChild(o);const c=ho();a.appendChild(c);const s=document.createElement("div");for(s.className="modal__body";i.firstChild&&i.firstChild!==r;)s.appendChild(i.firstChild);const u=!!r,f=r||document.createElement("div");return u||(f.className="modal__footer modal__footer--empty",i.appendChild(f)),i.insertBefore(a,f),i.insertBefore(s,f),{header:a,body:s,closeBtn:c,modalFooter:f,hasTemplateFooter:u,title:o}}function po(i,o){for(o.header.remove(),o.title&&i.insertBefore(o.title,o.body);o.body.firstChild;)i.insertBefore(o.body.firstChild,o.body);o.body.remove(),o.hasTemplateFooter||o.modalFooter.remove()}function mo(i){return i.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0})}function _o(i){for(const o of i.querySelectorAll("img"))if(mo(o)&&!(o.complete&&o.naturalWi
4dth>1))return!0;return!1}function go(i,o,r){let a=null;function c(){if(_o(i))return;const{scrollTop:d,scrollHeight:_,clientHeight:b}=i;o.classList.toggle("has-overflow-top",d>0),o.classList.toggle("has-overflow-bottom",d+b<_-1)}function s(){a===null&&(a=requestAnimationFrame(()=>{a=null,c()}))}i.addEventListener("scroll",s,{signal:r}),i.querySelectorAll("img").forEach(d=>{d.addEventListener("load",s,{signal:r}),d.addEventListener("error",s,{signal:r})});const u=new ResizeObserver(s);u.observe(i);const f=new MutationObserver(s);return f.observe(i,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["class"]}),s(),()=>{u.disconnect(),f.disconnect(),a!==null&&cancelAnimationFrame(a),o.classList.remove("has-overflow-top","has-overflow-bottom")}}function vo(i,o){const r=i.querySelectorAll(Ys);if(r.length===0)return;const a=r[0],c=r[r.length-1];o.shiftKey?document.activeElement===a&&(o.preventDefault(),c.focus()):document.activeElement===c&&(o.preventDefault(),a.focus())}function Hn(){return{_modalHandler:null,_modalEl:null,initModal(i={}){this._modalEl=this.$refs.modal||this.$el.querySelector(".modal"),i.appendToBody&&this._modalEl&&document.body.appendChild(this._modalEl)},openModal(){if(!this._modalEl||this._modalHandler)return;$i&&$i();const i=this._modalEl,o=i.querySelector(".modal__content");if(!o)return;const r=document.activeElement,a=fo(o),c=new AbortController,{signal:s}=c,u=go(a.body,o,s);i.classList.add("is-open"),o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),a.title?(a.title.id=a.title.id||`modal-title-${++co}`,o.setAttribute("aria-labelledby",a.title.id)):o.hasAttribute("aria-label")||o.setAttribute("aria-label","Modal"),document.documentElement.classList.add(zs);const f=()=>{this._modalHandler&&(this._modalHandler=null,$i=null,c.abort(),u(),i.classList.remove("is-open"),o.removeAttribute("role"),o.removeAttribute("aria-modal"),o.removeAttribute("aria-labelledby"),document.documentElement.classList.remove(zs),po(o,a),r&&r.focus(),this.onModalClose())};a.closeBtn.addEventListener("click",f,{signal:s}),i.addEventListener("click",_=>{_.target===i&&f()},{signal:s}),document.addEventListener("keydown",_=>{if(_.key==="Escape"){_.preventDefault(),f();return}_.key==="Tab"&&vo(i,_)},{signal:s});const d=i.querySelectorAll(Ys);d.length>0&&d[0].focus(),this._modalHandler={close:f},$i=f},closeModal(){this._modalHandler&&this._modalHandler.close()},onModalClose(){}}}function yo(){return{...Hn(),gallery:{total:0,current:1},initGallery(i){if(this.gallery.total=i.total,this.initModal(),this._modalEl.querySelectorAll(".gallery__image").forEach(o=>{const r=o.querySelector("img");if(!r){o.classList.add("is-loaded");return}const a=()=>o.classList.add("is-loaded");r.complete&&r.naturalWidth>1&&a(),r.addEventListener("load",a),r.addEventListener("error",a)}),i.total>1){const o=this._modalEl.querySelector(".gallery__stage");o&&(o.style.cursor="pointer"),this._modalEl.addEventListener("click",r=>{r.target.closest(".gallery__image")&&this.nextGalleryImage()})}},openGallery(i){this.gallery.current=i,this.openModal()},setGalleryImageIndex(i){this.gallery.current=i},nextGalleryImage(){this.gallery.current>=this.gallery.total?this.gallery.current=1:this.gallery.current++},prevGalleryImage(){this.gallery.current<=1?this.gallery.current=this.gallery.total:this.gallery.current--}}}function bo(){const i=document.querySelector('meta[name="csrf-token"]');return i?i.getAttribute("content"):""}function Xs(i){return{...Hn(),firstname:"",lastname:"",email:"",message:"",consent:!1,sp_company:"",submitting:!1,submitted:!1,errors:{},genericError:!1,formId:"",initContactForm(o){this.formId=o+"-"+Math.random().toString(36).substring(2,9),this.initModal()},contactPayload(){return{}},async submitForm(){if(!this.submitting){this.submitting=!0,this.errors={},this.genericError=!1;try{const o=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":bo()},body:JSON.stringify({...this.contactPayload(),firstname:this.firstname,lastname:this.lastname,email:this.email,message:this.message,consent:this.consent,sp_company:this.sp_company})});if(o.ok)this.submitted=!0;else if(o.status===422){const r=await o.json();this.errors=r.errors||{}}else this.genericError=!0}catch{this.genericError=!0}finally{this.submitting=!1}}},resetForm(){this.firstname="",this.lastname="",this.email="",this.message="",this.consent=!1,this.sp_company="",this.submitted=!1,this.submitting=!1,this.errors={},this.genericError=!1},onModalClose(){this.resetForm()}}}function wo(){return{...Xs("/api/cwb/group-contact-leader"),groupId:"",initGroupContactLeader(){this.groupId=this.$el.dataset.groupId||"",this.initContactForm("gcl")},contactPayload(){return{group_id:this.groupId}}}}
4function xo(){return{input:"",multipleSelects:{inputs:{},isOpen:null},initMultipleSelects(i){const o=i.inputs;let r=!1;for(const a of o){const c=this.$refs[a+"_input"];c&&(this.multipleSelects.inputs[a]=c,c.value!==""&&(r=!0))}r&&window.setTimeout(()=>this.updateValues(),10)},selectValue(i,o){this.$refs[o+"_input"].value=i.target.dataset.value,this.multipleSelects.isOpen=!1,this.updateValues()},updateValues(){let i={};for(const o in this.multipleSelects.inputs){let r=this.multipleSelects.inputs[o].value;i[o]=Array.isArray(r)?r.join("|"):r}this.input=i}}}function Lo(){return{...Xs("/api/cwb/person-contact"),personId:"",personFullName:"",initPersonContact(){this.personId=this.$el.dataset.personId||"";const i=this.$el.dataset.personAcademicTitle||"",o=this.$el.dataset.personFirstname||"",r=this.$el.dataset.personLastname||"";this.personFullName=[i,o,r].filter(Boolean).join(" "),this.initContactForm("pcf")},contactPayload(){return{person_id:this.personId}}}}function So(){return{images:null,isOpen:!1,isReady:!1,initImageCredits(){this.parseImages(),this.images.length>0&&(this.isReady=!0)},parseImages(){this.images=[];let i=[];document.querySelectorAll("picture[data-image-credit-src], svg[data-image-credit-src]").forEach(r=>{let a=r.dataset.imageCreditSrc;if(!i.includes(a)&&(r.dataset.imageCreditText||r.dataset.imageCreditLink)){const c=r.cloneNode(!0);c.isSvg=c.tagName.toLowerCase()==="svg",c.isSvg&&(c.removeAttribute("@click"),c.setAttribute("preserveAspectRatio","xMidYMid meet")),i.push(a),this.images.push(c)}})}}}var Si={exports:{}};var To=Si.exports,As;function Ks(){return As||(As=1,(function(i,o){(function(r,a){a(o)})(To,(function(r){var a="1.9.4";function c(t){var e,n,l,h;for(n=1,l=arguments.length;n<l;n++){h=arguments[n];for(e in h)t[e]=h[e]}return t}var s=Object.create||(function(){function t(){}return function(e){return t.prototype=e,new t}})();function u(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var l=n.call(arguments,2);return function(){return t.apply(e,l.length?l.concat(n.call(arguments)):arguments)}}var f=0;function d(t){return"_leaflet_id"in t||(t._leaflet_id=++f),t._leaflet_id}function _(t,e,n){var l,h,g,T;return T=function(){l=!1,h&&(g.apply(n,h),h=!1)},g=function(){l?h=arguments:(t.apply(n,arguments),setTimeout(T,e),l=!0)},g}function b(t,e,n){var l=e[1],h=e[0],g=l-h;return t===l&&n?t:((t-h)%g+g)%g+h}function v(){return!1}function P(t,e){if(e===!1)return t;var n=Math.pow(10,e===void 0?6:e);return Math.round(t*n)/n}function p(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function C(t){return p(t).split(/\s+/)}function E(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?s(t.options):{});for(var n in e)t.options[n]=e[n];return t.options}function R(t,e,n){var l=[];for(var h in t)l.push(encodeURIComponent(n?h.toUpperCase():h)+"="+encodeURIComponent(t[h]));return(!e||e.indexOf("?")===-1?"?":"&")+l.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function M(t,e){return t.replace(S,function(n,l){var h=e[l];if(h===void 0)throw new Error("No value provided for variable "+n);return typeof h=="function"&&(h=h(e)),h})}var z=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function H(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var W="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function at(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var $=0;function V(t){var e=+new Date,n=Math.max(0,16-(e-$));return $=e+n,window.setTimeout(t,n)}var et=window.requestAnimationFrame||at("RequestAnimationFrame")||V,Y=window.cancelAnimationFrame||at("CancelAnimationFrame")||at("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function j(t,e,n){if(n&&et===V)t.call(e);else return et.call(window,u(t,e))}function U(t){t&&Y.call(window,t)}var B={__proto__:null,extend:c,create:s,bind:u,get lastId(){return f},stamp:d,throttle:_,wrapNum:b,falseFn:v,formatNum:P,trim:p,splitWords:C,setOptions:E,getParamString:R,template:M,isArray:z,indexOf:H,emptyImageUrl:W,requestFn:et,cancelFn:Y,requestAnimFrame:j,cancelAnimFrame:U};function q(){}q.extend=function(t){var e=function(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=e.__super__=this.prototype,l=s(n);l.constructor=e,e.prototype=l;for(var h in this)Object.prototype.hasOwnProperty.call(this,h)&&h!=="prototype"&&h!=="__super__"&&(e[h]=this[h]);return t.statics&&c(e,t.statics),t.includes&&(lt(t.includes),c.apply(null,[l].concat(t.includes))),c(l,t),delete l.statics,delete l.includes,l.options&&(l.options=n.options?s(n.options):{},c(l.options,t.options)),l._initHooks=[],l.callInitHooks=function(){if(!this._initHooksCalled){n.c
4allInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var g=0,T=l._initHooks.length;g<T;g++)l._initHooks[g].call(this)}},e},q.include=function(t){var e=this.prototype.options;return c(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},q.mergeOptions=function(t){return c(this.prototype.options,t),this},q.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};function lt(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=z(t)?t:[t];for(var e=0;e<t.length;e++)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 Ct={on:function(t,e,n){if(typeof t=="object")for(var l in t)this._on(l,t[l],e);else{t=C(t);for(var h=0,g=t.length;h<g;h++)this._on(t[h],e,n)}return this},off:function(t,e,n){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var l in t)this._off(l,t[l],e);else{t=C(t);for(var h=arguments.length===1,g=0,T=t.length;g<T;g++)h?this._off(t[g]):this._off(t[g],e,n)}return this},_on:function(t,e,n,l){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,n)===!1){n===this&&(n=void 0);var h={fn:e,ctx:n};l&&(h.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(h)}},_off:function(t,e,n){var l,h,g;if(this._events&&(l=this._events[t],!!l)){if(arguments.length===1){if(this._firingCount)for(h=0,g=l.length;h<g;h++)l[h].fn=v;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var T=this._listens(t,e,n);if(T!==!1){var I=l[T];this._firingCount&&(I.fn=v,this._events[t]=l=l.slice()),l.splice(T,1)}}},fire:function(t,e,n){if(!this.listens(t,n))return this;var l=c({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var g=0,T=h.length;g<T;g++){var I=h[g],A=I.fn;I.once&&this.off(t,A,I.ctx),A.call(I.ctx||this,l)}this._firingCount--}}return n&&this._propagateEvent(l),this},listens:function(t,e,n,l){typeof t!="string"&&console.warn('"string" type argument expected');var h=e;typeof e!="function"&&(l=!!e,h=void 0,n=void 0);var g=this._events&&this._events[t];if(g&&g.length&&this._listens(t,h,n)!==!1)return!0;if(l){for(var T in this._eventParents)if(this._eventParents[T].listens(t,e,n,l))return!0}return!1},_listens:function(t,e,n){if(!this._events)return!1;var l=this._events[t]||[];if(!e)return!!l.length;n===this&&(n=void 0);for(var h=0,g=l.length;h<g;h++)if(l[h].fn===e&&l[h].ctx===n)return h;return!1},once:function(t,e,n){if(typeof t=="object")for(var l in t)this._on(l,t[l],e,!0);else{t=C(t);for(var h=0,g=t.length;h<g;h++)this._on(t[h],e,n,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[d(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[d(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,c({layer:t.target,propagatedFrom:t.target},t),!0)}};Ct.addEventListener=Ct.on,Ct.removeEventListener=Ct.clearAllEventListeners=Ct.off,Ct.addOneTimeEventListener=Ct.once,Ct.fireEvent=Ct.fire,Ct.hasEventListeners=Ct.listens;var st=q.extend(Ct);function Z(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var ut=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};Z.prototype={clone:function(){return new Z(this.x,this.y)},add:function(t){return this.clone()._add(tt(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(tt(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 Z(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new Z(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ut(this.x),this.y=ut(this.y),this},distanceTo:function(t){t=tt(t);var e=t.x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return t=tt(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=tt(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+P(this.x)+", "+P(this.y)+")"}};function tt(t,e,n){return t instanceof Z?t:z(t)?new Z(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new Z(t.x,t.y):new Z(t,e,n)}function pt(t,e){if(t)for(var n=e?[t,e]:t,l=0,h=n.length;l<h;l++)this.extend(n[l])}pt.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof Z||typeof t[0]=="number"||"x"in t)e=n=tt(t);else if(t=Dt(t),e=t.min,n=t.max,!e||!n)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=n.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)),this},getCenter:function(t){return tt((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return tt(this.min.x,this.max.y)},getTopRight:function(){return tt(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,n;return typeof t[0]=="number"||t instanceof Z?t=tt(t):t=Dt(t),t instanceof pt?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=Dt(t);var e=this.min,n=this.max,l=t.min,h=t.max,g=h.x>=e.x&&l.x<=n.x,T=h.y>=e.y&&l.y<=n.y;return g&&T},overlaps:function(t){t=Dt(t);var e=this.min,n=this.max,l=t.min,h=t.max,g=h.x>e.x&&l.x<n.x,T=h.y>e.y&&l.y<n.y;return g&&T},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,n=this.max,l=Math.abs(e.x-n.x)*t,h=Math.abs(e.y-n.y)*t;return Dt(tt(e.x-l,e.y-h),tt(n.x+l,n.y+h))},equals:function(t){return t?(t=Dt(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function Dt(t,e){return!t||t instanceof pt?t:new pt(t,e)}function Wt(t,e){if(t)for(var n=e?[t,e]:t,l=0,h=n.length;l<h;l++)this.extend(n[l])}Wt.prototype={extend:function(t){var e=this._southWest,n=this._northEast,l,h;if(t instanceof St)l=t,h=t;else if(t instanceof Wt){if(l=t._southWest,h=t._northEast,!l||!h)return this}else return t?this.extend(vt(t)||Ot(t)):this;return!e&&!n?(this._southWest=new St(l.lat,l.lng),this._northEast=new St(h.lat,h.lng)):(e.lat=Math.min(l.lat,e.lat),e.lng=Math.min(l.lng,e.lng),n.lat=Math.max(h.lat,n.lat),n.lng=Math.max(h.lng,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,l=Math.abs(e.lat-n.lat)*t,h=Math.abs(e.lng-n.lng)*t;return new Wt(new St(e.lat-l,e.lng-h),new St(n.lat+l,n.lng+h))},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}
4,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=vt(t):t=Ot(t);var e=this._southWest,n=this._northEast,l,h;return t instanceof Wt?(l=t.getSouthWest(),h=t.getNorthEast()):l=h=t,l.lat>=e.lat&&h.lat<=n.lat&&l.lng>=e.lng&&h.lng<=n.lng},intersects:function(t){t=Ot(t);var e=this._southWest,n=this._northEast,l=t.getSouthWest(),h=t.getNorthEast(),g=h.lat>=e.lat&&l.lat<=n.lat,T=h.lng>=e.lng&&l.lng<=n.lng;return g&&T},overlaps:function(t){t=Ot(t);var e=this._southWest,n=this._northEast,l=t.getSouthWest(),h=t.getNorthEast(),g=h.lat>e.lat&&l.lat<n.lat,T=h.lng>e.lng&&l.lng<n.lng;return g&&T},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=Ot(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Ot(t,e){return t instanceof Wt?t:new Wt(t,e)}function St(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,n!==void 0&&(this.alt=+n)}St.prototype={equals:function(t,e){if(!t)return!1;t=vt(t);var n=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return n<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+P(this.lat,t)+", "+P(this.lng,t)+")"},distanceTo:function(t){return ce.distance(this,vt(t))},wrap:function(){return ce.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return Ot([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new St(this.lat,this.lng,this.alt)}};function vt(t,e,n){return t instanceof St?t:z(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,n)}var Qt={latLngToPoint:function(t,e){var n=this.projection.project(t),l=this.scale(e);return this.transformation._transform(n,l)},pointToLatLng:function(t,e){var n=this.scale(e),l=this.transformation.untransform(t,n);return this.projection.unproject(l)},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,n=this.scale(t),l=this.transformation.transform(e.min,n),h=this.transformation.transform(e.max,n);return new pt(l,h)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?b(t.lng,this.wrapLng,!0):t.lng,n=this.wrapLat?b(t.lat,this.wrapLat,!0):t.lat,l=t.alt;return new St(n,e,l)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),l=e.lat-n.lat,h=e.lng-n.lng;if(l===0&&h===0)return t;
4var g=t.getSouthWest(),T=t.getNorthEast(),I=new St(g.lat-l,g.lng-h),A=new St(T.lat-l,T.lng-h);return new Wt(I,A)}},ce=c({},Qt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,l=t.lat*n,h=e.lat*n,g=Math.sin((e.lat-t.lat)*n/2),T=Math.sin((e.lng-t.lng)*n/2),I=g*g+Math.cos(l)*Math.cos(h)*T*T,A=2*Math.atan2(Math.sqrt(I),Math.sqrt(1-I));return this.R*A}}),Ye=6378137,Fe={R:Ye,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,l=Math.max(Math.min(n,t.lat),-n),h=Math.sin(l*e);return new Z(this.R*t.lng*e,this.R*Math.log((1+h)/(1-h))/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=Ye*Math.PI;return new pt([-t,-t],[t,t])})()};function De(t,e,n,l){if(z(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=n,this._d=l}De.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 Z((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Pe(t,e,n,l){return new De(t,e,n,l)}var Ne=c({},ce,{code:"EPSG:3857",projection:Fe,transformation:(function(){var t=.5/(Math.PI*Fe.R);return Pe(t,.5,-t,.5)})()}),Xe=c({},Ne,{code:"EPSG:900913"});function F(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var n="",l,h,g,T,I,A;for(l=0,g=t.length;l<g;l++){for(I=t[l],h=0,T=I.length;h<T;h++)A=I[h],n+=(h?"L":"M")+A.x+" "+A.y;n+=e?nt.svg?"z":"x":""}return n||"M0 0"}var mt=document.documentElement.style,rt="ActiveXObject"in window,wt=rt&&!document.addEventListener,gt="msLaunchUri"in navigator&&!("documentMode"in document),qt=le("webkit"),ne=le("android"),te=le("android 2")||le("android 3"),se=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),re=ne&&le("Google")&&se<537&&!("AudioNode"in window),Ce=!!window.opera,Ee=!gt&&le("chrome"),ye=le("gecko")&&!qt&&!Ce&&!rt,Me=!Ee&&le("safari"),be=le("phantom"),it="OTransition"in mt,ot=navigator.platform.indexOf("Win")===0,kt=rt&&"transition"in mt,Bt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!te,Vt="MozPerspective"in mt,he=!window.L_DISABLE_3D&&(kt||Bt||Vt)&&!it&&!be,Yt=typeof orientation<"u"||le("mobile"),Oe=Yt&&qt,oe=Yt&&Bt,_e=!window.PointerEvent&&window.MSPointerEvent,Xt=!!(window.PointerEvent||_e),xt="ontouchstart"in window||!!window.TouchEvent,ht=!window.L_NO_TOUCH&&(xt||Xt),X=Yt&&Ce,ft=Yt&&ye,Et=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Mt=(function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",v,e),window.removeEventListener("testPassiveEventSupport",v,e)}catch{}return t})(),Nt=(function(){return!!document.createElement("canvas").getContext})(),Rt=!!(document.createElementNS&&F("svg").createSVGRect),ae=!!Rt&&(function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Ge=!Rt&&(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{return!1}})(),sn=navigator.platform.indexOf("Mac")===0,Pi=navigator.platform.indexOf("Linux")===0;function le(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var nt={ie:rt,ielt9:wt,edge:gt,webkit:qt,android:ne,android23:te,androidStock:re,opera:Ce,chrome:Ee,gecko:ye,safari:Me,phantom:be,opera12:it,win:ot,ie3d:kt,webkit3d:Bt,gecko3d:Vt,any3d:he,mobile:Yt,mobileWebkit:Oe,mobileWebkit3d:oe,msPointer:_e,pointer:Xt,touch:ht,touchNative:xt,mobileOpera:X,mobileGecko:ft,retina:Et,passiveEvents:Mt,canvas:Nt,svg:Rt,vml:Ge,inlineSvg:ae,mac:sn,linux:Pi},li=nt.msPointer?"MSPointerDown":"pointerdown",We=nt.msPointer?"MSPointerMove":"pointermove",Ci=nt.msPointer?"MSPointerUp":"pointerup",Ei=nt.msPointer?"MSPointerCancel":"pointercancel",ui={touchstart:li,touchmove:We,touchend:Ci,touchcancel:Ei},ke={touchstart:Q,touchmove:D,touchend:D,touchcancel:D},ee={},w=!1;function m(t,e,n){return e==="touchstart"&&N(),ke[e]?(n=ke[e].bind(this,n),t.addEventListener(ui[e],n,!1),n):(console.warn("wrong event specified:",e),v)}function y(t,e,n){if(!ui[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(ui[e],n,!1)}function x(t){ee[t.pointerId]=t}function O(t){ee[t.pointerId]&&(ee[t.pointerId]=t)}function k(t){delete ee[t.pointerId]}function N(){w||(document.addEventListener(li,x,!0),document.addEventListener(We,O,!0),document.addEventListener(Ci,k,!0),document.addEventListener(Ei,k,!0),w=!0)}function D(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var n in ee)e.touches.push(ee[n]);e.changedTouches=[e],t(e)}}function Q(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ut(e),D(t,e)}function ct(t){var e={},n,l;for(l in t)n=t[l],e[l]=n&&n.bind?n.bind(t):n;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Lt=200;function At(t,e){t.addEventListener("dblclick",e);var n=0,l;function h(g){if(g.detail!==1){l=g.detail;return}if(!(g.pointerType==="mouse"||g.sourceCapabilities&&!g.sourceCapabilities.firesTouchEvents)){var T=qn(g);if(!(T.some(function(A){return A instanceof HTMLLabelElement&&A.attributes.for})&&!T.some(function(A){return A instanceof HTMLInputElement||A instanceof HTMLSelectElement}))){var I=Date.now();I-n<=Lt?(l++,l===2&&e(ct(g))):l=1,n=I}}}return t.addEventListener("click",h),{dblclick:e,simDblclick:h}}function It(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ke=ki(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ci=ki(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Wn=ci==="webkitTransition"||ci==="OTransition"?ci+"End":"transitionend";function Vn(t){return typeof t=="string"?document.getElementById(t):t}function hi(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||n==="auto")&&document.defaultView){var l=document.defaultView.getComputedStyle(t,null);n=l?l[e]:null}return n==="auto"?null:n}function Pt(t,e,n){var l=document.createElement(t);return l.className=e||"",n&&n.appendChild(l),l}function Ft(t){var e=t.parentNode;e&&e.removeChild(t)}function Mi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Je(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Qe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function rn(t,e){if(t.classList!==void 0)return t.classList.contains(e);var n=Oi(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function yt(t,e){if(t.classList!==void 0)for(var n=C(e),l=0,h=n.length;l<h;l++)t.classList.add(n[l]);else if(!rn(t,e)){var g=Oi(t);on(t,(g?g+" ":"")+e)}}function Zt(t,e){t.classList!==void 0?t.classList.remove(e):on(t,p((" "+Oi(t)+" ").replace(" "+e+" "," ")))}function on(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function Oi(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function de(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&lr(t,e)}function lr(t,e){var n=!1,l="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(l)}catch{if(e===1)return}e=Math.round(e*100),n?(n.Enabled=e!==100,n.Opacity=e):t.style.filter+=" progid:"+l+"(opacity="+e+")"}function ki(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Ve(t,e,n){var l=e||new Z(0,0);t.style[Ke]=(nt.ie3d?"translate("+l.x+"px,"+l.y+"px)":"translate3d("+l.x+"px,"+l.y+"px,0)")+(n?" scale("+n+")":"")}function Ht(t,e){t._leaflet_pos=e,nt.any3d?Ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function je(t){return t._leaflet_pos||new Z(0,0)}var di,fi,an;
4if("onselectstart"in document)di=function(){_t(window,"selectstart",Ut)},fi=function(){zt(window,"selectstart",Ut)};else{var pi=ki(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);di=function(){if(pi){var t=document.documentElement.style;an=t[pi],t[pi]="none"}},fi=function(){pi&&(document.documentElement.style[pi]=an,an=void 0)}}function ln(){_t(window,"dragstart",Ut)}function un(){zt(window,"dragstart",Ut)}var Ii,cn;function hn(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(zi(),Ii=t,cn=t.style.outlineStyle,t.style.outlineStyle="none",_t(window,"keydown",zi))}function zi(){Ii&&(Ii.style.outlineStyle=cn,Ii=void 0,cn=void 0,zt(window,"keydown",zi))}function jn(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function dn(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var ur={__proto__:null,TRANSFORM:Ke,TRANSITION:ci,TRANSITION_END:Wn,get:Vn,getStyle:hi,create:Pt,remove:Ft,empty:Mi,toFront:Je,toBack:Qe,hasClass:rn,addClass:yt,removeClass:Zt,setClass:on,getClass:Oi,setOpacity:de,testProp:ki,setTransform:Ve,setPosition:Ht,getPosition:je,get disableTextSelection(){return di},get enableTextSelection(){return fi},disableImageDrag:ln,enableImageDrag:un,preventOutline:hn,restoreOutline:zi,getSizedParentNode:jn,getScale:dn};function _t(t,e,n,l){if(e&&typeof e=="object")for(var h in e)pn(t,h,e[h],n);else{e=C(e);for(var g=0,T=e.length;g<T;g++)pn(t,e[g],n,l)}return this}var we="_leaflet_events";function zt(t,e,n,l){if(arguments.length===1)$n(t),delete t[we];else if(e&&typeof e=="object")for(var h in e)mn(t,h,e[h],n);else if(e=C(e),arguments.length===2)$n(t,function(I){return H(e,I)!==-1});else for(var g=0,T=e.length;g<T;g++)mn(t,e[g],n,l);return this}function $n(t,e){for(var n in t[we]){var l=n.split(/\d/)[0];(!e||e(l))&&mn(t,l,null,null,n)}}
4var fn={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function pn(t,e,n,l){var h=e+d(n)+(l?"_"+d(l):"");if(t[we]&&t[we][h])return this;var g=function(I){return n.call(l||t,I||window.event)},T=g;!nt.touchNative&&nt.pointer&&e.indexOf("touch")===0?g=m(t,e,g):nt.touch&&e==="dblclick"?g=At(t,g):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(fn[e]||e,g,nt.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(g=function(I){I=I||window.event,gn(t,I)&&T(I)},t.addEventListener(fn[e],g,!1)):t.addEventListener(e,T,!1):t.attachEvent("on"+e,g),t[we]=t[we]||{},t[we][h]=g}function mn(t,e,n,l,h){h=h||e+d(n)+(l?"_"+d(l):"");var g=t[we]&&t[we][h];if(!g)return this;!nt.touchNative&&nt.pointer&&e.indexOf("touch")===0?y(t,e,g):nt.touch&&e==="dblclick"?It(t,g):"removeEventListener"in t?t.removeEventListener(fn[e]||e,g,!1):t.detachEvent("on"+e,g),t[we][h]=null}function $e(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function _n(t){return pn(t,"wheel",$e),this}function mi(t){return _t(t,"mousedown touchstart dblclick contextmenu",$e),t._leaflet_disable_click=!0,this}function Ut(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function qe(t){return Ut(t),$e(t),this}function qn(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Un(t,e){if(!e)return new Z(t.clientX,t.clientY);var n=dn(e),l=n.boundingClientRect;return new Z((t.clientX-l.left)/n.x-e.clientLeft,(t.clientY-l.top)/n.y-e.clientTop)}var cr=nt.linux&&nt.chrome?window.devicePixelRatio:nt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Yn(t){return nt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/cr: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 gn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch{return!1}return n!==t}var hr={__proto__:null,on:_t,off:zt,stopPropagation:$e,disableScrollPropagation:_n,disableClickPropagation:mi,preventDefault:Ut,stop:qe,getPropagationPath:qn,getMousePosition:Un,getWheelDelta:Yn,isExternalTarget:gn,addListener:_t,removeListener:zt},Xn=st.extend({run:function(t,e,n,l){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(l||.5,.2),this._startPos=je(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=j(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=this._duration*1e3;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Ht(this._el,n),this.fire("step")},_complete:function(){U(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Tt=st.extend({options:{crs:Ne,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=E(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=u(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(vt(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ci&&nt.any3d&&!nt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),_t(this._proxy,Wn,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
4,setView:function(t,e,n){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(vt(t),e,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&n!==!0){n.animate!==void 0&&(n.zoom=c({animate:n.animate},n.zoom),n.pan=c({animate:n.animate,duration:n.duration},n.pan));var l=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(l)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,n.pan&&n.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(nt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var l=this.getZoomScale(e),h=this.getSize().divideBy(2),g=t instanceof Z?t:this.latLngToContainerPoint(t),T=g.subtract(h).multiplyBy(1-1/l),I=this.containerPointToLatLng(h.add(T));return this.setView(I,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():Ot(t);var n=tt(e.paddingTopLeft||e.padding||[0,0]),l=tt(e.paddingBottomRight||e.padding||[0,0]),h=this.getBoundsZoom(t,!1,n.add(l));if(h=typeof e.maxZoom=="number"?Math.min(e.maxZoom,h):h,h===1/0)return{center:t.getCenter(),zoom:h};
4var g=l.subtract(n).divideBy(2),T=this.project(t.getSouthWest(),h),I=this.project(t.getNorthEast(),h),A=this.unproject(T.add(I).divideBy(2).add(g),h);return{center:A,zoom:h}},fitBounds:function(t,e){if(t=Ot(t),!t.isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.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=tt(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 Xn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){yt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(n=n||{},n.animate===!1||!nt.any3d)return this.setView(t,e,n);this._stop();var l=this.project(this.getCenter()),h=this.project(t),g=this.getSize(),T=this._zoom;t=vt(t),e=e===void 0?T:e;var I=Math.max(g.x,g.y),A=I*this.getZoomScale(T,e),G=h.distanceTo(l)||1,K=1.42,dt=K*K;function bt(Gt){var ji=Gt?-1:1,Qr=Gt?A:I,to=A*A-I*I+ji*dt*dt*G*G,eo=2*Qr*dt*G,En=to/eo,Os=Math.sqrt(En*En+1)-En,io=Os<1e-9?-18:Math.log(Os);return io}function Kt(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function jt(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function pe(Gt){return Kt(Gt)/jt(Gt)}var ie=bt(0);function ri(Gt){return I*(jt(ie)/jt(ie+K*Gt))}function Yr(Gt){return I*(jt(ie)*pe(ie+K*Gt)-Kt(ie))/dt}function Xr(Gt){return 1-Math.pow(1-Gt,1.5)}var Kr=Date.now(),Es=(bt(1)-ie)/K,Jr=n.duration?1e3*n.duration:1e3*Es*.8;function Ms(){var Gt=(Date.now()-Kr)/Jr,ji=Xr(Gt)*Es;Gt<=1?(this._flyToFrame=j(Ms,this),this._move(this.unproject(l.add(h.subtract(l).multiplyBy(Yr(ji)/G)),T),this.getScaleZoom(I/ri(ji),T),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),Ms.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=Ot(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 n=this.getCenter(),l=this._limitCenter(n,this._zoom,Ot(t));return n.equals(l)||this.panTo(l,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var n=tt(e.paddingTopLeft||e.padding||[0,0]),l=tt(e.paddingBottomRight||e.padding||[0,0]),h=this.project(this.getCenter()),g=this.project(t),T=this.getPixelBounds(),I=Dt([T.min.add(n),T.max.subtract(l)]),A=I.getSize();if(!I.contains(g)){this._enforcingBounds=!0;var G=g.subtract(I.getCenter()),K=I.extend(g).getSize().subtract(A);h.x+=G.x<0?-K.x:K.x,h.y+=G.y<0?-K.y:K.y,this.panTo(this.unproject(h),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=c({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),l=e.divideBy(2).round(),h=n.divideBy(2).round(),g=l.subtract(h);return!g.x&&!g.y?this:(t.animate&&t.pan?this.panBy(g):(t.pan&&this._rawPanBy(g),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(u(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=c({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=u(this._handleGeolocationResponse,this),n=u(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,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,n=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: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,n=t.coords.longitude,l=new St(e,n),h=l.toBounds(t.coords.accuracy*2),g=this._locateOptions;if(g.setView){var T=this.getBoundsZoom(h);this.setView(l,g.maxZoom?Math.min(T,g.maxZoom):T)}var I={latlng:l,bounds:h,timestamp:t.timestamp};for(var A in t.coords)typeof t.coords[A]=="number"&&(I[A]=t.coords[A]);this.fire("locationfound",I)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.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{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ft(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(U(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)Ft(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),l=Pt("div",n,e||this._mapPane);return t&&(this._panes[t]=l),l},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()),n=this.unproject(t.getTopRight());return new Wt(e,n)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
4om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=Ot(t),n=tt(n||[0,0]);var l=this.getZoom()||0,h=this.getMinZoom(),g=this.getMaxZoom(),T=t.getNorthWest(),I=t.getSouthEast(),A=this.getSize().subtract(n),G=Dt(this.project(I,l),this.project(T,l)).getSize(),K=nt.any3d?this.options.zoomSnap:1,dt=A.x/G.x,bt=A.y/G.y,Kt=e?Math.max(dt,bt):Math.min(dt,bt);return l=this.getScaleZoom(Kt,l),K&&(l=Math.round(l/(K/100))*(K/100),l=e?Math.ceil(l/K)*K:Math.floor(l/K)*K),Math.max(h,Math.min(g,l))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Z(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new pt(n,n.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 n=this.options.crs;return e=e===void 0?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=e===void 0?this._zoom:e;var l=n.zoom(t*n.scale(e));return isNaN(l)?1/0:l},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(vt(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(tt(t),e)},layerPointToLatLng:function(t){var e=tt(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(vt(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(vt(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(Ot(t))},distance:function(t,e){return this.options.crs.distance(vt(t),vt(e))},containerPointToLayerPoint:function(t){return tt(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return tt(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(tt(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(vt(t)))},mouseEventToContainerPoint:function(t){return Un(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=Vn(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");_t(e,"scroll",this._onScroll,this),this._containerId=d(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&nt.any3d,yt(t,"leaflet-container"+(nt.touch?" leaflet-touch":"")+(nt.retina?" leaflet-retina":"")+(nt.ielt9?" leaflet-oldie":"")+(nt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=hi(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),Ht(this._mapPane,new Z(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(yt(t.markerPane,"leaflet-zoom-hide"),yt(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Ht(this._mapPane,new Z(0,0));var l=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var h=this._zoom!==e;this._moveStart(h,n)._move(t,e)._moveEnd(h),this.fire("viewreset"),l&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,l){e===void 0&&(e=this._zoom);var h=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),l?n&&n.pinch&&this.fire("zoom",n):((h||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return U(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Ht(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[d(this._container)]=this;var e=t?zt:_t;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),nt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){U(this._resizeRequest),this._resizeRequest=j(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 n=[],l,h=e==="mouseout"||e==="mouseover",g=t.target||t.srcElement,T=!1;g;){if(l=this._targets[d(g)],l&&(e==="click"||e==="preclick")&&this._draggableMoved(l)){T=!0;break}if(l&&l.listens(e,!0)&&(h&&!gn(g,t)||(n.push(l),h))||g===this._container)break;g=g.parentNode}return!n.length&&!T&&!h&&this.listens(e,!0)&&(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isCl
4ickDisabled(e))){var n=t.type;n==="mousedown"&&hn(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var l=c({},t);l.type="preclick",this._fireDOMEvent(l,l.type,n)}var h=this._findEventTargets(t,e);if(n){for(var g=[],T=0;T<n.length;T++)n[T].listens(e,!0)&&g.push(n[T]);h=g.concat(h)}if(h.length){e==="contextmenu"&&Ut(t);var I=h[0],A={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var G=I.getLatLng&&(!I._radius||I._radius<=10);A.containerPoint=G?this.latLngToContainerPoint(I.getLatLng()):this.mouseEventToContainerPoint(t),A.layerPoint=this.containerPointToLayerPoint(A.containerPoint),A.latlng=G?I.getLatLng():this.layerPointToLatLng(A.layerPoint)}for(T=0;T<h.length;T++)if(h[T].fire(e,A,!0),A.originalEvent._stopped||h[T].options.bubblingMouseEvents===!1&&H(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 je(this._mapPane)||new Z(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var n=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return n.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var l=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(l)},_latLngBoundsToNewLayerBounds:function(t,e,n){var l=this._getNewPixelOrigin(n,e);
4return Dt([this.project(t.getSouthWest(),e)._subtract(l),this.project(t.getNorthWest(),e)._subtract(l),this.project(t.getSouthEast(),e)._subtract(l),this.project(t.getNorthEast(),e)._subtract(l)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var l=this.project(t,e),h=this.getSize().divideBy(2),g=new pt(l.subtract(h),l.add(h)),T=this._getBoundsOffset(g,n,e);return Math.abs(T.x)<=1&&Math.abs(T.y)<=1?t:this.unproject(l.add(T),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),l=new pt(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(l,e))},_getBoundsOffset:function(t,e,n){var l=Dt(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),h=l.min.subtract(t.min),g=l.max.subtract(t.max),T=this._rebound(h.x,-g.x),I=this._rebound(h.y,-g.y);return new Z(T,I)},_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(),n=this.getMaxZoom(),l=nt.any3d?this.options.zoomSnap:1;return l&&(t=Math.round(t/l)*l),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Zt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=Pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var n=Ke,l=this._proxy.style[n];Ve(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),l===this._proxy.style[n]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ft(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ve(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,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var l=this.getZoomScale(e),h=this._getCenterOffset(t)._divideBy(1-1/l);return n.animate!==!0&&!this.getSize().contains(h)?!1:(j(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,n,l){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,yt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:l}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(u(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Zt(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 dr(t,e){return new Tt(t,e)}var ge=q.extend({options:{position:"topright"},initialize:function(t){E(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),n=this.getPosition(),l=t._controlCorners[n];return yt(e,"leaflet-control"),n.indexOf("bottom")!==-1?l.insertBefore(e,l.firstChild):l.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ft(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()}}),_i=function(t){return new ge(t)};Tt.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this}
vendor: 8,719 bytes, line 4
4,_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=Pt("div",e+"control-container",this._container);function l(h,g){var T=e+h+" "+e+g;t[h+g]=Pt("div",T,n)}l("top","left"),l("top","right"),l("bottom","left"),l("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Ft(this._controlCorners[t]);Ft(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Kn=ge.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,l){return n<l?-1:l<n?1:0}},initialize:function(t,e,n){E(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var l in t)this._addLayer(t[l],l);for(l in e)this._addLayer(e[l],l,!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 ge.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(d(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){yt(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?(yt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Zt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Zt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=Pt("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),mi(e),_n(e);var l=this._section=Pt("section",t+"-list");n&&(this._map.on("click",this.collapse,this),_t(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var h=this._layersLink=Pt("a",t+"-toggle",e);h.href="#",h.title="Layers",h.setAttribute("role","button"),_t(h,{keydown:function(g){g.keyCode===13&&this._expandSafely()},click:function(g){Ut(g),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=Pt("div",t+"-base",l),this._separator=Pt("div",t+"-separator",l),this._overlaysList=Pt("div",t+"-overlays",l),e.appendChild(l)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&d(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(u(function(l,h){return this.options.sortFunction(l.layer,h.layer,l.name,h.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Mi(this._baseLayersList),Mi(this._overlaysList),this._layerControlInputs=[];var t,e,n,l,h=0;for(n=0;n<this._layers.length;n++)l=this._layers[n],this._addItem(l),e=e||l.overlay,t=t||!l.overlay,h+=l.overlay?0:1;return this.options.hideSingleBase&&(t=t&&h>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(d(t.target)),n=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",l=document.createElement("div");return l.innerHTML=n,l.firstChild},_addItem:function(t){var e=document.createElement("label"),n=this._map.hasLayer(t.layer),l;t.overlay?(l=document.createElement("input"),l.type="checkbox",l.className="leaflet-control-layers-selector",l.defaultChecked=n):l=this._createRadioElement("leaflet-base-layers_"+d(this),n),this._layerControlInputs.push(l),l.layerId=d(t.layer),_t(l,"click",this._onInputClick,this);var h=document.createElement("span");h.innerHTML=" "+t.name;var g=document.createElement("span");e.appendChild(g),g.appendChild(l),g.appendChild(h);var T=t.overlay?this._overlaysList:this._baseLayersList;return T.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,n,l=[],h=[];this._handlingClick=!0;for(var g=t.length-1;g>=0;g--)e=t[g],n=this._getLayer(e.layerId).layer,e.checked?l.push(n):e.checked||h.push(n);for(g=0;g<h.length;g++)this._map.hasLayer(h[g])&&this._map.removeLayer(h[g]);for(g=0;g<l.length;g++)this._map.hasLayer(l[g])||this._map.addLayer(l[g]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,n,l=this._map.getZoom(),h=t.length-1;h>=0;h--)e=t[h],n=this._getLayer(e.layerId).layer,e.disabled=n.options.minZoom!==void 0&&l<n.options.minZoom||n.options.maxZoom!==void 0&&l>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,_t(t,"click",Ut),this.expand();var e=this;setTimeout(function(){zt(t,"click",Ut),e._preventClick=!1})}}),fr=function(t,e,n){return new Kn(t,e,n)},vn=ge.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",n=Pt("div",e+" leaflet-bar"),l=this.options;return this._zoomInButton=this._createButton(l.zoomInText,l.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(l.zoomOutText,l.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},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,n,l,h){var g=Pt("a",n,l);return g.innerHTML=t,g.href="#",g.title=e,g.setAttribute("role","button"),g.setAttribute("aria-label",e),mi(g),_t(g,"click",qe),_t(g,"click",h,this),_t(g,"click",this._refocusOnMap,this),g},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Zt(this._zoomInButton,e),Zt(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(yt(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(yt(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});Tt.mergeOptions({zoomControl:!0}),Tt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new vn,this.addControl(this.zoomControl))});var pr=function(t){return new vn(t)},Jn=ge.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=Pt("div",e),l=this.options;return this._addScales(l,e+"-line",n),t.on(l.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=Pt("div",e,n)),t.imperial&&(this._iScale=Pt("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_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),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)}
4,_updateImperial:function(t){var e=t*3.2808399,n,l,h;e>5280?(n=e/5280,l=this._getRoundNum(n),this._updateScale(this._iScale,l+" mi",l/n)):(h=this._getRoundNum(e),this._updateScale(this._iScale,h+" ft",h/e))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,e*n}}),mr=function(t){return new Jn(t)},_r='<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>',yn=ge.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(nt.inlineSvg?_r+" ":"")+"Leaflet</a>"},initialize:function(t){E(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=Pt("div","leaflet-control-attribution"),mi(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 n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Tt.mergeOptions({attributionControl:!0}),Tt.addInitHook(function(){this.options.attributionControl&&new yn().addTo(this)});var gr=function(t){return new yn(t)};ge.Layers=Kn,ge.Zoom=vn,ge.Scale=Jn,ge.Attribution=yn,_i.layers=fr,_i.zoom=pr,_i.scale=mr,_i.attribution=gr;var xe=q.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}});xe.addTo=function(t,e){return t.addHandler(e,this),this};var vr={Events:Ct},Qn=nt.touch?"touchstart mousedown":"mousedown",Re=st.extend({options:{clickTolerance:3},initialize:function(t,e,n,l){E(this,l),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(_t(this._dragStartTarget,Qn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Re._dragging===this&&this.finishDrag(!0),zt(this._dragStartTarget,Qn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!rn(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Re._dragging===this&&this.finishDrag();return}if(!(Re._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Re._dragging=this,this._preventOutline&&hn(this._element),ln(),di(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=jn(this._element);this._startPoint=new Z(e.clientX,e.clientY),this._startPos=je(this._element),this._parentScale=dn(n);var l=t.type==="mousedown";_t(document,l?"mousemove":"touchmove",this._onMove,this),_t(document,l?"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,n=new Z(e.clientX,e.clientY)._subtract(this._startPoint);!n.x&&!n.y||Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ut(t),this._moved||(this.fire("dragstart"),this._moved=!0,yt(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),yt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Ht(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Zt(document.body,"leaflet-dragging"),this._lastTarget&&(Zt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),zt(document,"mousemove touchmove",this._onMove,this),zt(document,"mouseup touchend touchcancel",this._onUp,this),un(),fi();var e=this._moved&&this._moving;this._moving=!1,Re._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function ts(t,e,n){var l,h=[1,4,2,8],g,T,I,A,G,K,dt,bt;for(g=0,K=t.length;g<K;g++)t[g]._code=Ue(t[g],e);for(I=0;I<4;I++){for(dt=h[I],l=[],g=0,K=t.length,T=K-1;g<K;T=g++)A=t[g],G=t[T],A._code&dt?G._code&dt||(bt=Ai(G,A,dt,e,n),bt._co
4de=Ue(bt,e),l.push(bt)):(G._code&dt&&(bt=Ai(G,A,dt,e,n),bt._code=Ue(bt,e),l.push(bt)),l.push(A));t=l}return t}function es(t,e){var n,l,h,g,T,I,A,G,K;if(!t||t.length===0)throw new Error("latlngs not passed");fe(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var dt=vt([0,0]),bt=Ot(t),Kt=bt.getNorthWest().distanceTo(bt.getSouthWest())*bt.getNorthEast().distanceTo(bt.getNorthWest());Kt<1700&&(dt=bn(t));var jt=t.length,pe=[];for(n=0;n<jt;n++){var ie=vt(t[n]);pe.push(e.project(vt([ie.lat-dt.lat,ie.lng-dt.lng])))}for(I=A=G=0,n=0,l=jt-1;n<jt;l=n++)h=pe[n],g=pe[l],T=h.y*g.x-g.y*h.x,A+=(h.x+g.x)*T,G+=(h.y+g.y)*T,I+=T*3;I===0?K=pe[0]:K=[A/I,G/I];var ri=e.unproject(tt(K));return vt([ri.lat+dt.lat,ri.lng+dt.lng])}function bn(t){for(var e=0,n=0,l=0,h=0;h<t.length;h++){var g=vt(t[h]);e+=g.lat,n+=g.lng,l++}return vt([e/l,n/l])}var yr={__proto__:null,clipPolygon:ts,polygonCenter:es,centroid:bn};function is(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=xr(t,n),t=wr(t,n),t}function ns(t,e,n){return Math.sqrt(gi(t,e,n,!0))}function br(t,e,n){return gi(t,e,n)}function wr(t,e){var n=t.length,l=typeof Uint8Array<"u"?Uint8Array:Array,h=new l(n);h[0]=h[n-1]=1,wn(t,h,e,0,n-1);var g,T=[];for(g=0;g<n;g++)h[g]&&T.push(t[g]);return T}function wn(t,e,n,l,h){var g=0,T,I,A;for(I=l+1;I<=h-1;I++)A=gi(t[I],t[l],t[h],!0),A>g&&(T=I,g=A);g>n&&(e[T]=1,wn(t,e,n,l,T),wn(t,e,n,T,h))}function xr(t,e){for(var n=[t[0]],l=1,h=0,g=t.length;l<g;l++)Lr(t[l],t[h])>e&&(n.push(t[l]),h=l);return h<g-1&&n.push(t[g-1]),n}var ss;function rs(t,e,n,l,h){var g=l?ss:Ue(t,n),T=Ue(e,n),I,A,G;for(ss=T;;){if(!(g|T))return[t,e];if(g&T)return!1;I=g||T,A=Ai(t,e,I,n,h),G=Ue(A,n),I===g?(t=A,g=G):(e=A,T=G)}}function Ai(t,e,n,l,h){var g=e.x-t.x,T=e.y-t.y,I=l.min,A=l.max,G,K;return n&8?(G=t.x+g*(A.y-t.y)/T,K=A.y):n&4?(G=t.x+g*(I.y-t.y)/T,K=I.y):n&2?(G=A.x,K=t.y+T*(A.x-t.x)/g):n&1&&(G=I.x,K=t.y+T*(I.x-t.x)/g),new Z(G,K,h)}function Ue(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Lr(t,e){var n=e.x-t.x,l=e.y-t.y;return n*n+l*l}function gi(t,e,n,l){var h=e.x,g=e.y,T=n.x-h,I=n.y-g,A=T*T+I*I,G;return A>0&&(G=((t.x-h)*T+(t.y-g)*I)/A,G>1?(h=n.x,g=n.y):G>0&&(h+=T*G,g+=I*G)),T=t.x-h,I=t.y-g,l?T*T+I*I:new Z(h,g)}function fe(t){return!z(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function os(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),fe(t)}function as(t,e){var n,l,h,g,T,I,A,G;if(!t||t.length===0)throw new Error("latlngs not passed");fe(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var K=vt([0,0]),dt=Ot(t),bt=dt.getNorthWest().distanceTo(dt.getSouthWest
4())*dt.getNorthEast().distanceTo(dt.getNorthWest());bt<1700&&(K=bn(t));var Kt=t.length,jt=[];for(n=0;n<Kt;n++){var pe=vt(t[n]);jt.push(e.project(vt([pe.lat-K.lat,pe.lng-K.lng])))}for(n=0,l=0;n<Kt-1;n++)l+=jt[n].distanceTo(jt[n+1])/2;if(l===0)G=jt[0];else for(n=0,g=0;n<Kt-1;n++)if(T=jt[n],I=jt[n+1],h=T.distanceTo(I),g+=h,g>l){A=(g-l)/h,G=[I.x-A*(I.x-T.x),I.y-A*(I.y-T.y)];break}var ie=e.unproject(tt(G));return vt([ie.lat+K.lat,ie.lng+K.lng])}var Sr={__proto__:null,simplify:is,pointToSegmentDistance:ns,closestPointOnSegment:br,clipSegment:rs,_getEdgeIntersection:Ai,_getBitCode:Ue,_sqClosestPointOnSegment:gi,isFlat:fe,_flat:os,polylineCenter:as},xn={project:function(t){return new Z(t.lng,t.lat)},unproject:function(t){return new St(t.y,t.x)},bounds:new pt([-180,-90],[180,90])},Ln={R:6378137,R_MINOR:6356752314245179e-9,bounds:new pt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,n=this.R,l=t.lat*e,h=this.R_MINOR/n,g=Math.sqrt(1-h*h),T=g*Math.sin(l),I=Math.tan(Math.PI/4-l/2)/Math.pow((1-T)/(1+T),g/2);return l=-n*Math.log(Math.max(I,1e-10)),new Z(t.lng*e*n,l)},unproject:function(t){for(var e=180/Math.PI,n=this.R,l=this.R_MINOR/n,h=Math.sqrt(1-l*l),g=Math.exp(-t.y/n),T=Math.PI/2-2*Math.atan(g),I=0,A=.1,G;I<15&&Math.abs(A)>1e-7;I++)G=h*Math.sin(T),G=Math.pow((1-G)/(1+G),h/2),A=Math.PI/2-2*Math.atan(g*G)-T,T+=A;return new St(T*e,t.x*e/n)}},Tr={__proto__:null,LonLat:xn,Mercator:Ln,SphericalMercator:Fe},Pr=c({},ce,{code:"EPSG:3395",projection:Ln,transformation:(function(){var t=.5/(Math.PI*Ln.R);return Pe(t,.5,-t,.5)})()}),ls=c({},ce,{code:"EPSG:4326",projection:xn,transformation:Pe(1/180,1,-1/180,.5)}),Cr=c({},Qt,{projection:xn,transformation:Pe(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 n=e.lng-t.lng,l=e.lat-t.lat;return Math.sqrt(n*n+l*l)},infinite:!0});Qt.Earth=ce,Qt.EPSG3395=Pr,Qt.EPSG3857=Ne,Qt.EPSG900913=Xe,Qt.EPSG4326=ls,Qt.Simple=Cr;var ve=st.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[d(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[d(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 n=this.getEvents();e.on(n,this),this.once("remove",function(){e.off(n,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});Tt.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=d(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=d(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 d(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){t=t?z(t)?t:[t]:[];for(var e=0,n=t.length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[d(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=d(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var l in this._zoomBoundLayers){var h=this._zoomBoundLayers[l].options;t=h.minZoom===void 0?t:Math.min(t,h.minZoom),e=h.maxZoom===void 0?e:Math.max(e,h.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
4om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ti=ve.extend({initialize:function(t,e){E(this,e),this._layers={};var n,l;if(t)for(n=0,l=t.length;n<l;n++)this.addLayer(t[n])},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),n,l;for(n in this._layers)l=this._layers[n],l[t]&&l[t].apply(l,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 n in this._layers)t.call(e,this._layers[n]);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 d(t)}}),Er=function(t,e){return new ti(t,e)},Ie=ti.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),ti.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),ti.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 Wt;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Mr=function(t,e){return new Ie(t,e)},ei=q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){E(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var l=this._createImg(n,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(l,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),l},_setIconStyles:function(t,e){var n=this.options,l=n[e+"Size"];typeof l=="number"&&(l=[l,l]);var h=tt(l),g=tt(e==="shadow"&&n.shadowAnchor||n.iconAnchor||h&&h.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),g&&(t.style.marginLeft=-g.x+"px",t.style.marginTop=-g.y+"px"),h&&(t.style.width=h.x+"px",t.style.height=h.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return nt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Or(t){return new ei(t)}var vi=ei.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof vi.imagePath!="string"&&(vi.imagePath=this._detectIconPath()),(this.options.imagePath||vi.imagePath)+ei.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(n,l,h){var g=l.exec(n);return g&&g[h]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=Pt("div","leaflet-default-icon-path",document.body),e=hi(t,"background-image")||hi(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),us=xe.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Re(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),yt(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&&Zt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,l=this._marker.options.autoPanSpeed,h=this._marker.options.autoPanPadding,g=je(e._icon),T=n.getPixelBounds(),I=n.getPixelOrigin(),A=Dt(T.min._subtract(I).add(h),T.max._subtract(I).subtract(h));if(!A.contains(g)){var G=tt((Math.max(A.max.x,g.x)-A.max.x)/(T.max.x-A.max.x)-(Math.min(A.min.x,g.x)-A.min.x)/(T.min.x-A.min.x),(Math.max(A.max.y,g.y)-A.max.y)/(T.max.y-A.max.y)-(Math.min(A.min.y,g.y)-A.min.y)/(T.min.y-A.min.y)).multiplyBy(l);n.panBy(G,{animate:!1}),this._draggable._newPos._add(G),this._draggable._startPos._add(G),Ht(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=j(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&&(U(this._panRequest),this._panRequest=j(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,l=je(e._icon),h=e._map.layerPointToLatLng(l);n&&Ht(n,l),e._latlng=h,t.latlng=h,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){U(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Bi=ve.extend({options:{icon:new vi,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){E(this,e),this._latlng=vt(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=vt(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"),n=t.icon.createIcon(this._icon),l=!1;n!==this._icon&&(this._icon&&this._removeIcon(),l=!0,t.title&&(n.title=t.title),n.tagName==="IMG"&&(n.alt=t.alt||"")),yt(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 3,589 bytes, line 4
4),this.options.autoPanOnFocus&&_t(n,"focus",this._panOnFocus,this);var h=t.icon.createShadow(this._shadow),g=!1;h!==this._shadow&&(this._removeShadow(),g=!0),h&&(yt(h,e),h.alt=""),this._shadow=h,t.opacity<1&&this._updateOpacity(),l&&this.getPane().appendChild(this._icon),this._initInteraction(),h&&g&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&zt(this._icon,"focus",this._panOnFocus,this),Ft(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ft(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Ht(this._icon,t),this._shadow&&Ht(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&&(yt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),us)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new us(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&&de(this._icon,t),this._shadow&&de(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,n=e.iconSize?tt(e.iconSize):tt(0,0),l=e.iconAnchor?tt(e.iconAnchor):tt(0,0);t.panInside(this._latlng,{paddingTopLeft:l,paddingBottomRight:n.subtract(l)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function kr(t,e){return new Bi(t,e)}var Ze=ve.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 E(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)}}),Fi=Ze.extend({options:{fill:!0,radius:10},initialize:function(t,e){E(this,e),this._latlng=vt(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=vt(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}
4,setStyle:function(t){var e=t&&t.radius||this._radius;return Ze.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,n=this._clickTolerance(),l=[t+n,e+n];this._pxBounds=new pt(this._point.subtract(l),this._point.add(l))},_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 Ir(t,e){return new Fi(t,e)}var Sn=Fi.extend({initialize:function(t,e,n){if(typeof e=="number"&&(e=c({},n,{radius:e})),E(this,e),this._latlng=vt(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 Wt(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ze.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,l=n.options.crs;if(l.distance===ce.distance){var h=Math.PI/180,g=this._mRadius/ce.R/h,T=n.project([e+g,t]),I=n.project([e-g,t]),A=T.add(I).divideBy(2),G=n.unproject(A).lat,K=Math.acos((Math.cos(g*h)-Math.sin(e*h)*Math.sin(G*h))/(Math.cos(e*h)*Math.cos(G*h)))/h;(isNaN(K)||K===0)&&(K=g/Math.cos(Math.PI/180*e)),this._point=A.subtract(n.getPixelOrigin()),this._radius=isNaN(K)?0:A.x-n.project([G,t-K]).x,this._radiusY=A.y-T.y}else{var dt=l.unproject(l.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(dt).x}this._updateBounds()}});function zr(t,e,n){return new Sn(t,e,n)}var ze=Ze.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){E(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,n=null,l=gi,h,g,T=0,I=this._parts.length;T<I;T++)for(var A=this._parts[T],G=1,K=A.length;G<K;G++){h=A[G-1],g=A[G];var dt=l(t,h,g,!0);dt<e&&(e=dt,n=l(t,h,g))}return n&&(n.distance=Math.sqrt(e)),n}
4,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return as(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=vt(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Wt,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return fe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=fe(t),l=0,h=t.length;l<h;l++)n?(e[l]=vt(t[l]),this._bounds.extend(e[l])):e[l]=this._convertLatLngs(t[l]);return e},_project:function(){var t=new pt;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 Z(t,t);this._rawPxBounds&&(this._pxBounds=new pt([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var l=t[0]instanceof St,h=t.length,g,T;if(l){for(T=[],g=0;g<h;g++)T[g]=this._map.latLngToLayerPoint(t[g]),n.extend(T[g]);e.push(T)}else for(g=0;g<h;g++)this._projectLatlngs(t[g],e,n)},_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,n,l,h,g,T,I,A;for(n=0,h=0,g=this._rings.length;n<g;n++)for(A=this._rings[n],l=0,T=A.length;l<T-1;l++)I=rs(A[l],A[l+1],t,l,!0),I&&(e[h]=e[h]||[],e[h].push(I[0]),(I[1]!==A[l+1]||l===T-2)&&(e[h].push(I[1]),h++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,l=t.length;n<l;n++)t[n]=is(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,l,h,g,T,I,A=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,g=this._parts.length;n<g;n++)for(I=this._parts[n],l=0,T=I.length,h=T-1;l<T;h=l++)if(!(!e&&l===0)&&ns(t,I[h],I[l])<=A)return!0;return!1}});function Ar(t,e){return new ze(t,e)}ze._flat=os;var ii=ze.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
4,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return es(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ze.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof St&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){ze.prototype._setLatLngs.call(this,t),fe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return fe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new Z(e,e);if(t=new pt(t.min.subtract(n),t.max.add(n)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var l=0,h=this._rings.length,g;l<h;l++)g=ts(this._rings[l],t,!0),g.length&&this._parts.push(g)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,n,l,h,g,T,I,A,G;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(g=0,A=this._parts.length;g<A;g++)for(n=this._parts[g],T=0,G=n.length,I=G-1;T<G;I=T++)l=n[T],h=n[I],l.y>t.y!=h.y>t.y&&t.x<(h.x-l.x)*(t.y-l.y)/(h.y-l.y)+l.x&&(e=!e);return e||ze.prototype._containsPoint.call(this,t,!0)}});function Br(t,e){return new ii(t,e)}var Ae=Ie.extend({initialize:function(t,e){E(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=z(t)?t:t.features,n,l,h;if(e){for(n=0,l=e.length;n<l;n++)h=e[n],(h.geometries||h.geometry||h.features||h.coordinates)&&this.addData(h);return this}var g=this.options;if(g.filter&&!g.filter(t))return this;var T=Di(t,g);return T?(T.feature=Zi(t),T.defaultOptions=T.options,this.resetStyle(T),g.onEachFeature&&g.onEachFeature(t,T),this.addLayer(T)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=c({},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 Di(t,e){var n=t.type==="Feature"?t.geometry:t,l=n?n.coordinates:null,h=[],g=e&&e.pointToLayer,T=e&&e.coordsToLatLng||Tn,I,A,G,K;if(!l&&!n)return null;switch(n.type){case"Point":return I=T(l),cs(g,t,I,e);case"MultiPoint":for(G=0,K=l.length;G<K;G++)I=T(l[G]),h.push(cs(g,t,I,e));return new Ie(h);case"LineString":case"MultiLineString":return A=Ni(l,n.type==="LineString"?0:1,T),new ze(A,e);case"Polygon":case"MultiPolygon":return A=Ni(l,n.type==="Polygon"?1:2,T),new ii(A,e);case"GeometryCollection":for(G=0,K=n.geometries.length;G<K;G++){var dt=Di({geometry:n.geometries[G],type:"Feature",properties:t.properties},e);dt&&h.push(dt)}return new Ie(h);case"FeatureCollection":for(G=0,K=n.features.length;G<K;G++){var bt=Di(n.features[G],e);bt&&h.push(bt)}return new Ie(h);default:throw new Error("Invalid GeoJSON object.")}}function cs(t,e,n,l){return t?t(e,n):new Bi(n,l&&l.markersInheritOptions&&l)}function Tn(t){return new St(t[1],t[0],t[2])}function Ni(t,e,n){for(var l=[],h=0,g=t.length,T;h<g;h++)T=e?Ni(t[h],e-1,n):(n||Tn)(t[h]),l.push(T);return l}function Pn(t,e){return t=vt(t),t.alt!==void 0?[P(t.lng,e),P(t.lat,e),P(t.alt,e)]:[P(t.lng,e),P(t.lat,e)]}function Ri(t,e,n,l){for(var h=[],g=0,T=t.length;g<T;g++)h.push(e?Ri(t[g],fe(t[g])?0:e-1,n,l):Pn(t[g],l));return!e&&n&&h.length>0&&h.push(h[0].slice()),h}function ni(t,e){return t.feature?c({},t.feature,{geometry:e}):Zi(e)}function Zi(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Cn={toGeoJSON:function(t){return ni(this,{type:"Point",coordinates:Pn(this.getLatLng(),t)})}};Bi.include(Cn),Sn.include(Cn),Fi.include(Cn),ze.include({toGeoJSON:function(t){var e=!fe(this._latlngs),n=Ri(this._latlngs,e?1:0,!1,t);return ni(this,{type:(e?"Multi":"")+"LineString",coordinates:n})}}),ii.include({toGeoJSON:function(t){var e=!fe(this._latlngs),n=e&&!fe(this._latlngs[0]),l=Ri(this._latlngs,n?2:e?1:0,!0,t);return e||(l=[l]),ni(this,{type:(n?"Multi":"")+"Polygon",coordinates:l})}}),ti.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(n){e.push(n.toGeoJSON(t).geometry.coordinates)}),ni(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 n=e==="GeometryCollection",l=[];return this.eachLayer(function(h){if(h.toGeoJSON){var g=h.toGeoJSON(t);
4if(n)l.push(g.geometry);else{var T=Zi(g);T.type==="FeatureCollection"?l.push.apply(l,T.features):l.push(T)}}}),n?ni(this,{geometries:l,type:"GeometryCollection"}):{type:"FeatureCollection",features:l}}});function hs(t,e){return new Ae(t,e)}var Fr=hs,Hi=ve.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=Ot(e),E(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(yt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ft(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&&Je(this._image),this},bringToBack:function(){return this._map&&Qe(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=Ot(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:Pt("img");if(yt(e,"leaflet-image-layer"),this._zoomAnimated&&yt(e,"leaflet-zoom-animated"),this.options.className&&yt(e,this.options.className),e.onselectstart=v,e.onmousemove=v,e.onload=u(this.fire,this,"load"),e.onerror=u(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),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ve(this._image,n,e)},_reset:function(){var t=this._image,e=new pt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Ht(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){de(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()}}),Dr=function(t,e,n){return new Hi(t,e,n)},ds=Hi.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:Pt("video");if(yt(e,"leaflet-image-layer"),this._zoomAnimated&&yt(e,"leaflet-zoom-animated"),this.options.className&&yt(e,this.options.className),e.onselectstart=v,e.onmousemove=v,e.onloadeddata=u(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),l=[],h=0;h<n.length;h++)l.push(n[h].src);this._url=n.length>0?l:[e.src];return}z(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 g=0;g<this._url.length;g++){var T=Pt("source");T.src=this._url[g],e.appendChild(T)}}});function Nr(t,e,n){return new ds(t,e,n)}var fs=Hi.extend({_initImage:function(){var t=this._image=this._url;yt(t,"leaflet-image-layer"),this._zoomAnimated&&yt(t,"leaflet-zoom-animated"),this.options.className&&yt(t,this.options.className),t.onselectstart=v,t.onmousemove=v}});function Rr(t,e,n){return new fs(t,e,n)}var Le=ve.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof St||z(t))?(this._latlng=vt(t),E(this,e)):(E(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&&de(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&de(this._container,1),this.bringToFront(),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(de(this._container,0),this._removeTimeout=setTimeout(u(Ft,void 0,this._container),200)):Ft(this._container),this.options.interactive&&(Zt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=vt(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&&Je(this._container),this},bringToBack:function(){return this._map&&Qe(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Ie){e=null;var n=this._source._layers;for(var l in n)if(n[l]._map){e=n[l];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=tt(this.options.offset),n=this._getAnchor();this._zoomAnimated?Ht(this._container,t.add(n)):e=e.add(t).add(n);var l=this._containerBottom=-e.y,h=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=l+"px",this._container.style.left=h+"px"}},_getAnchor:function(){return[0,0]}});Tt.include({_initOverlay:function(t,e,n,l){var h=e;return h instanceof t||(h=new t(l).setContent(e)),n&&h.setLatLng(n),h}}),ve.include({_initOverlay:function(t,e,n,l){var h=n;return h instanceof t?(E(h,l),h._source=this):(h=e&&!l?e:new t(l,this),h.setContent(n)),h}});var Gi=Le.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,Le.prototype.openOn.call(this,t)},onAdd:function(t){Le.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ze||this._source.on("preclick",$e))},onRemove:function(t){Le.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ze||this._source.off("preclick",$e))},getEvents:function(){var t=Le.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
4(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=Pt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=Pt("div",t+"-content-wrapper",e);if(this._contentNode=Pt("div",t+"-content",n),mi(e),_n(this._contentNode),_t(e,"contextmenu",$e),this._tipContainer=Pt("div",t+"-tip-container",e),this._tip=Pt("div",t+"-tip",this._tipContainer),this.options.closeButton){var l=this._closeButton=Pt("a",t+"-close-button",e);l.setAttribute("role","button"),l.setAttribute("aria-label","Close popup"),l.href="#close",l.innerHTML='<span aria-hidden="true">×</span>',_t(l,"click",function(h){Ut(h),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var l=t.offsetHeight,h=this.options.maxHeight,g="leaflet-popup-scrolled";h&&l>h?(e.height=h+"px",yt(t,g)):Zt(t,g),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Ht(this._container,e.add(n))},_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(hi(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,l=this._containerWidth,h=new Z(this._containerLeft,-n-this._containerBottom);h._add(je(this._container));var g=t.layerPointToContainerPoint(h),T=tt(this.options.autoPanPadding),I=tt(this.options.autoPanPaddingTopLeft||T),A=tt(this.options.autoPanPaddingBottomRight||T),G=t.getSize(),K=0,dt=0;g.x+l+A.x>G.x&&(K=g.x+l-G.x+A.x),g.x-K-I.x<0&&(K=g.x-I.x),g.y+n+A.y>G.y&&(dt=g.y+n-G.y+A.y),g.y-dt-I.y<0&&(dt=g.y-I.y),(K||dt)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([K,dt]))}},_getAnchor:function(){return tt(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Zr=function(t,e){return new Gi(t,e)};Tt.mergeOptions({closePopupOnClick:!0}),Tt.include({openPopup:function(t,e,n){return this._initOverlay(Gi,t,e,n).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),ve.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Gi,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 Ie||(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)){qe(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ze)){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 Wi=Le.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Le.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){Le.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=Le.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=Pt("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+
4d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,l=this._map,h=this._container,g=l.latLngToContainerPoint(l.getCenter()),T=l.layerPointToContainerPoint(t),I=this.options.direction,A=h.offsetWidth,G=h.offsetHeight,K=tt(this.options.offset),dt=this._getAnchor();I==="top"?(e=A/2,n=G):I==="bottom"?(e=A/2,n=0):I==="center"?(e=A/2,n=G/2):I==="right"?(e=0,n=G/2):I==="left"?(e=A,n=G/2):T.x<g.x?(I="right",e=0,n=G/2):(I="left",e=A+(K.x+dt.x)*2,n=G/2),t=t.subtract(tt(e,n,!0)).add(K).add(dt),Zt(h,"leaflet-tooltip-right"),Zt(h,"leaflet-tooltip-left"),Zt(h,"leaflet-tooltip-top"),Zt(h,"leaflet-tooltip-bottom"),yt(h,"leaflet-tooltip-"+I),Ht(h,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&de(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return tt(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Hr=function(t,e){return new Wi(t,e)};Tt.include({openTooltip:function(t,e,n){return this._initOverlay(Wi,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ve.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Wi,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",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Ie||(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&&(_t(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),_t(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,n,l;this._tooltip.options.sticky&&t.originalEvent&&(n=this._map.mouseEventToContainerPoint(t.originalEvent),l=this._map.containerPointToLayerPoint(n),e=this._map.layerPointToLatLng(l)),this._tooltip.setLatLng(e)}});var ps=ei.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"),n=this.options;if(n.html instanceof Element?(Mi(e),e.appendChild(n.html)):e.innerHTML=n.html!==!1?n.html:"",n.bgPos){var l=tt(n.bgPos);e.style.backgroundPosition=-l.x+"px "+-l.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Gr(t){return new ps(t)}ei.Default=vi;var yi=ve.extend({options:{tileSize:256,opacity:1,updateWhenIdle:nt.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){E(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),Ft(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Je(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Qe(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 Z?t:new Z(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,n=-t(-1/0,1/0),l=0,h=e.length,g;l<h;l++)g=e[l].style.zIndex,e[l]!==this._container&&g&&(n=t(n,+g));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!nt.ielt9){de(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var l in this._tiles){var h=this._tiles[l];if(!(!h.current||!h.loaded)){var g=Math.min(1,(t-h.loaded)/200);de(h.el,g),g<1?e=!0:(h.active?n=!0:this._onOpaqueTile(h),h.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(U(this._fadeFrame),this._fadeFrame=j(this._updateOpacity,this))}},_onOpaqueTile:v,_initContainer:function(){this._container||(this._container=Pt("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 n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(Ft(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var l=this._levels[t],h=this._map;return l||(l=this._levels[t]={},l.el=Pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),l.el.style.zIndex=e,l.origin=h.project(h.unproject(h.getPixelOrigin()),t).round(),l.zoom=t,this._setZoomTransform(l,h.getCenter(),h.getZoom()),v(l.el.offsetWidth),this._onCreateLevel(l)),this._level=l,l}},_onUpdateLevel:v,_onRemoveLevel:v,_onCreateLevel:v,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<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 l=e.co
4ords;this._retainParent(l.x,l.y,l.z,l.z-5)||this._retainChildren(l.x,l.y,l.z,l.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)Ft(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,l){var h=Math.floor(t/2),g=Math.floor(e/2),T=n-1,I=new Z(+h,+g);I.z=+T;var A=this._tileCoordsToKey(I),G=this._tiles[A];return G&&G.active?(G.retain=!0,!0):(G&&G.loaded&&(G.retain=!0),T>l?this._retainParent(h,g,T,l):!1)},_retainChildren:function(t,e,n,l){for(var h=2*t;h<2*t+2;h++)for(var g=2*e;g<2*e+2;g++){var T=new Z(h,g);T.z=n+1;var I=this._tileCoordsToKey(T),A=this._tiles[I];if(A&&A.active){A.retain=!0;continue}else A&&A.loaded&&(A.retain=!0);n+1<l&&this._retainChildren(h,g,n+1,l)}},_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,n,l){var h=Math.round(e);this.options.maxZoom!==void 0&&h>this.options.maxZoom||this.options.minZoom!==void 0&&h<this.options.minZoom?h=void 0:h=this._clampZoom(h);var g=this.options.updateWhenZooming&&h!==this._tileZoom;(!l||g)&&(this._tileZoom=h,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),h!==void 0&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var l=this._map.getZoomScale(n,t.zoom),h=t.origin.multiplyBy(l).subtract(this._map._getNewPixelOrigin(e,n)).round();nt.any3d?Ve(t.el,h,l):Ht(t.el,h)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),l=this._tileZoom,h=this._map.getPixelWorldBounds(this._tileZoom);h&&(this._globalTileRange=this._pxBoundsToTileRange(h)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],l).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],l).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],l).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],l).y/n.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),l=e.getZoomScale(n,this._tileZoom),h=e.project(t,this._tileZoom).floor(),g=e.getSize().divideBy(l*2);return new pt(h.subtract(g),h.add(g))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var l=this._getTiledPixelBounds(t),h=this._pxBoundsToTileRange(l),g=h.getCenter(),T=[],I=this.options.keepBuffer,A=new pt(h.getBottomLeft().subtract([I,-I]),h.getTopRight().add([I,-I]));if(!(isFinite(h.min.x)&&isFinite(h.min.y)&&isFinite(h.max.x)&&isFinite(h.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var G in this._tiles){var K=this._tiles[G].coords;(K.z!==this._tileZoom||!A.contains(new Z(K.x,K.y)))&&(this._tiles[G].current=!1)}if(Math.abs(n-this._tileZoom)>1){this._setView(t,n);return}for(var dt=h.min.y;dt<=h.max.y;dt++)for(var bt=h.min.x;bt<=h.max.x;bt++){var Kt=new Z(bt,dt);if(Kt.z=this._tileZoom,!!this._isValidTile(Kt)){var jt=this._tiles[this._tileCoordsToKey(Kt)];jt?jt.current=!0:T.push(Kt)}}if(T.sort(function(ie,ri){return ie.distanceTo(g)-ri.distanceTo(g)}),T.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var pe=document.createDocumentFragment();for(bt=0;bt<T.length;bt++)this._addTile(T[bt],pe);this._level.el.appendChild(pe)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var l=this._tileCoordsToBounds(t);return Ot(this.options.bounds).overlaps(l)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),l=t.scaleBy(n),h=l.add(n),g=e.unproject(l,t.z),T=e.unproject(h,t.z);return[g,T]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new Wt(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new Z(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(Ft(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){yt(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=v,t.onmousemove=v,nt.ielt9&&this.options.opacity<1&&de(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),l=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),u(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&j(u(this._tileReady,this,t,null,h)),Ht(h,n),this._tiles[l]={el:h,coords:t,current:!0},e.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var l=this._tileCoordsToKey(t);n=this._tiles[l],n&&(n.loaded=+new Date,this._map._fadeAnimated?(de(n.el,0),U(this._fadeFrame),this._fadeFrame=j(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(yt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),nt.ielt9||!this._map._fadeAnimated?j(this._pruneTiles,this):setTimeout(u(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new Z(this._wrapX?b(t.x,this._wrapX):t.x,this._wrapY?b(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new pt(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 Wr(t){return new yi(t)}var si=yi.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=E(this,e),e.detectRetina&&nt.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 n=document.createElement("img");return _t(n,"load",u(this._tileOnLoad,this,e,n)),_t(n,"error",u(this._tileOnError,this,e,n)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:nt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return M(this._url,c(e,this.options))},_tileOnLoad:function(t,e){nt.ielt9?setTimeout(u(t,this,null,e),
vendor: 6,660 bytes, line 4
40):t(null,e)},_tileOnError:function(t,e,n){var l=this.options.errorTileUrl;l&&e.getAttribute("src")!==l&&(e.src=l),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,n=this.options.zoomReverse,l=this.options.zoomOffset;return n&&(t=e-t),t+l},_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=v,e.onerror=v,!e.complete)){e.src=W;var n=this._tiles[t].coords;Ft(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",W),yi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(!(!this._map||n&&n.getAttribute("src")===W))return yi.prototype._tileReady.call(this,t,e,n)}});function ms(t,e){return new si(t,e)}var _s=si.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 n=c({},this.defaultWmsParams);for(var l in e)l in this.options||(n[l]=e[l]);e=E(this,e);var h=e.detectRetina&&nt.retina?2:1,g=this.getTileSize();n.width=g.x*h,n.height=g.y*h,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,si.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,l=Dt(n.project(e[0]),n.project(e[1])),h=l.min,g=l.max,T=(this._wmsVersion>=1.3&&this._crs===ls?[h.y,h.x,g.y,g.x]:[h.x,h.y,g.x,g.y]).join(","),I=si.prototype.getTileUrl.call(this,t);return I+R(this.wmsParams,I,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+T},setParams:function(t,e){return c(this.wmsParams,t),e||this.redraw(),this}});function Vr(t,e){return new _s(t,e)}si.WMS=_s,ms.wms=Vr;var Be=ve.extend({options:{padding:.1},initialize:function(t){E(this,t),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),yt(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 n=this._map.getZoomScale(e,this._zoom),l=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,e),g=l.multiplyBy(-n).add(h).subtract(this._map._getNewPixelOrigin(t,e));nt.any3d?Ve(this._container,g,n):Ht(this._container,g)},_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(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new pt(n,n.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),gs=Be.extend({options:{tolerance:0},getEvents:function(){var t=Be.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Be.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");_t(t,"mousemove",this._onMouseMove,this),_t(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),_t(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){U(this._redrawRequest),delete this._ctx,Ft(this._container),zt(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)){Be.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),l=nt.retina?2:1;Ht(e,t.min),e.width=l*n.x,e.height=l*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Be.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[d(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,n=e.next,l=e.prev;n?n.prev=l:this._drawLast=l,l?l.next=n:this._drawFirst=n,delete t._order,delete this._layers[d(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(/[, ]+/),n=[],l,h;for(h=0;h<e.length;h++){if(l=Number(e[h]),isNaN(l))return;n.push(l)}t.options._dashArray=n}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||j(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new pt,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(
4)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var l=this._drawFirst;l;l=l.next)t=l.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,l,h,g,T=t._parts,I=T.length,A=this._ctx;if(I){for(A.beginPath(),n=0;n<I;n++){for(l=0,h=T[n].length;l<h;l++)g=T[n][l],A[l?"lineTo":"moveTo"](g.x,g.y);e&&A.closePath()}this._fillStroke(A,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,n=this._ctx,l=Math.max(Math.round(t._radius),1),h=(Math.max(Math.round(t._radiusY),1)||l)/l;h!==1&&(n.save(),n.scale(1,h)),n.beginPath(),n.arc(e.x,e.y/h,l,0,Math.PI*2,!1),h!==1&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&n.weight!==0&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e=this._map.mouseEventToLayerPoint(t),n,l,h=this._drawFirst;h;h=h.next)n=h.layer,n.options.interactive&&n._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(n))&&(l=n);this._fireEvent(l?[l]:!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&&(Zt(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,l,h=this._drawFirst;h;h=h.next)n=h.layer,n.options.interactive&&n._containsPoint(e)&&(l=n);l!==this._hoveredLayer&&(this._handleMouseOut(t),l&&(yt(this._container,"leaflet-interactive"),this._fireEvent([l],t,"mouseover"),this._hoveredLayer=l)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(u(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,l=e.prev;if(n)n.prev=l;else return;l?l.next=n:n&&(this._drawFirst=n),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 n=e.next,l=e.prev;if(l)l.next=n;else return;n?n.prev=l:l&&(this._drawLast=l),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function vs(t){return nt.canvas?new gs(t):null}var bi=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),jr={_initContainer:function(){this._container=Pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Be.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=bi("shape");yt(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=bi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[d(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;Ft(e),t.removeInteractiveTarget(e),delete this._layers[d(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,l=t.options,h=t._container;h.stroked=!!l.stroke,h.filled=!!l.fill,l.stroke?(e||(e=t._stroke=bi("stroke")),h.appendChild(e),e.weight=l.weight+"px",e.color=l.color,e.opacity=l.opacity,l.dashArray?e.dashStyle=z(l.dashArray)?l.dashArray.join(" "):l.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=l.lineCap.replace("butt","flat"),e.joinstyle=l.lineJoin):e&&(h.removeChild(e),t._stroke=null),l.fill?(n||(n=t._fill=bi("fill")),h.appendChild(n),n.color=l.fillColor||l.color,n.opacity=l.fillOpacity):n&&(h.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),l=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+l+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Je(t._container)},_bringToBack:function(t){Qe(t._container)}},Vi=nt.vml?bi:F,wi=Be.extend({_initContainer:function(){this._container=Vi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ft(this._container),zt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Be.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Ht(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Vi("path");t.options.className&&yt(e,t.options.className),t.options.interactive&&yt(e,"leaflet-interactive"),this._updateStyle(t),this._layers[d(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Ft(t._path),t.removeInteractiveTarget(t._path),delete this._layers[d(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))}
4,_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),l=Math.max(Math.round(t._radiusY),1)||n,h="a"+n+","+l+" 0 1,0 ",g=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+h+n*2+",0 "+h+-n*2+",0 ";this._setPath(t,g)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Je(t._path)},_bringToBack:function(t){Qe(t._path)}});nt.vml&&wi.include(jr);function ys(t){return nt.svg||nt.vml?new wi(t):null}Tt.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&&vs(t)||ys(t)}});var bs=ii.extend({initialize:function(t,e){ii.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
vendor: 6,250 bytes, line 4
4,_boundsToLatLngs:function(t){return t=Ot(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $r(t,e){return new bs(t,e)}wi.create=Vi,wi.pointsToPath=J,Ae.geometryToLayer=Di,Ae.coordsToLatLng=Tn,Ae.coordsToLatLngs=Ni,Ae.latLngToCoords=Pn,Ae.latLngsToCoords=Ri,Ae.getFeature=ni,Ae.asFeature=Zi,Tt.mergeOptions({boxZoom:!0});var ws=xe.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(){_t(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){zt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ft(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(),di(),ln(),this._startPoint=this._map.mouseEventToContainerPoint(t),_t(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=Pt("div","leaflet-zoom-box",this._container),yt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new pt(this._point,this._startPoint),n=e.getSize();Ht(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(Ft(this._box),Zt(this._container,"leaflet-crosshair")),fi(),un(),zt(document,{contextmenu:qe,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(u(this._resetState,this),0);var e=new Wt(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())}});Tt.addInitHook("addHandler","boxZoom",ws),Tt.mergeOptions({doubleClickZoom:!0});var xs=xe.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,n=e.getZoom(),l=e.options.zoomDelta,h=t.originalEvent.shiftKey?n-l:n+l;e.options.doubleClickZoom==="center"?e.setZoom(h):e.setZoomAround(t.containerPoint,h)}});Tt.addInitHook("addHandler","doubleClickZoom",xs),Tt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ls=xe.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Re(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))}yt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Zt(this._map._container,"leaflet-grab"),Zt(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=Ot(this._map.options.maxBounds);this._offsetLimit=Dt(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,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions: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),n=this._initialWorldOffset,l=this._draggable._newPos.x,h=(l-e+n)%t+e-n,g=(l+e+n)%t-e-n,T=Math.abs(h+n)<Math.abs(g+n)?h:g;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=T},_onDragEnd:function(t){var e=this._map,n=e.options,l=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),l)e.fire("moveend");else{this._prunePositions(+new Date);var h=this._lastPos.subtract(this._positions[0]),g=(this._lastTime-this._times[0])/1e3,T=n.easeLinearity,I=h.multiplyBy(T/g),A=I.distanceTo([0,0]),G=Math.min(n.inertiaMaxSpeed,A),K=I.multiplyBy(G/A),dt=G/(n.inertiaDeceleration*T),bt=K.multiplyBy(-dt/2).round();!bt.x&&!bt.y?e.fire("moveend"):(bt=e._limitOffset(bt,e.options.maxBounds),j(function(){e.panBy(bt,{duration:dt,easeLinearity:T,noMoveStart:!0,animate:!0})}
4))}}});Tt.addInitHook("addHandler","dragging",Ls),Tt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ss=xe.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"),_t(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(),zt(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,n=t.scrollTop||e.scrollTop,l=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(l,n)}},_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={},n=this.keyCodes,l,h;for(l=0,h=n.left.length;l<h;l++)e[n.left[l]]=[-1*t,0];for(l=0,h=n.right.length;l<h;l++)e[n.right[l]]=[t,0];for(l=0,h=n.down.length;l<h;l++)e[n.down[l]]=[0,t];for(l=0,h=n.up.length;l<h;l++)e[n.up[l]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},n=this.keyCodes,l,h;for(l=0,h=n.zoomIn.length;l<h;l++)e[n.zoomIn[l]]=t;for(l=0,h=n.zoomOut.length;l<h;l++)e[n.zoomOut[l]]=-t},_addHooks:function(){_t(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){zt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,n=this._map,l;if(e in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress)if(l=this._panKeys[e],t.shiftKey&&(l=tt(l).multiplyBy(3)),n.options.maxBounds&&(l=n._limitOffset(tt(l),n.options.maxBounds)),n.options.worldCopyJump){var h=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(l)));n.panTo(h)}else n.panBy(l)}else if(e in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&n._popup&&n._popup.options.closeOnEscapeKey)n.closePopup();else return;qe(t)}}});Tt.addInitHook("addHandler","keyboard",Ss),Tt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ts=xe.extend({addHooks:function(){_t(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){zt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Yn(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var l=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(u(this._performZoom,this),l),qe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var l=this._delta/(this._map.options.wheelPxPerZoomLevel*4),h=4*Math.log(2/(1+Math.exp(-Math.abs(l))))/Math.LN2,g=n?Math.ceil(h/n)*n:h,T=t._limitZoom(e+(this._delta>0?g:-g))-e;this._delta=0,this._startTime=null,T&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+T):t.setZoomAround(this._lastMousePos,e+T))}});Tt.addInitHook("addHandler","scrollWheelZoom",Ts);var qr=600;Tt.mergeOptions({tapHold:nt.touchNative&&nt.safari&&nt.mobile,tapTolerance:15});var Ps=xe.extend({addHooks:function(){_t(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){zt(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 Z(e.clientX,e.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(_t(document,"touchend",Ut),_t(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),qr),_t(document,"touchend touchcancel contextmenu",this._cancel,this),_t(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){zt(document,"touchend",Ut),zt(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),zt(document,"touchend touchcancel contextmenu",this._cancel,this),zt(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new Z(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});Tt.addInitHook("addHandler","tapHold",Ps),Tt.mergeOptions({touchZoom:nt.touch,bounceAtZoomLimits:!0});var Cs=xe.extend({addHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),_t(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Zt(this._map._container,"leaflet-touch-zoom"),zt(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 n=e.mouseEventToContainerPoint(t.touches[0]),l=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(n.add(l)._divideBy(2))),this._startDist=n.distanceTo(l),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),_t(document,"touchmove",this._onTouchMove,this),_t(document,"touchend touchcancel",this._onTouchEnd,this),Ut(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),l=e.mouseEventToContainerPoint(t.touches[1]),h=n.distanceTo(l)/this._startDist;if(this._zoom=e.getScaleZoom(h,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
4Zoom()&&h<1||this._zoom>e.getMaxZoom()&&h>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,h===1)return}else{var g=n._add(l)._divideBy(2)._subtract(this._centerPoint);if(h===1&&g.x===0&&g.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),U(this._animRequest);var T=u(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=j(T,this,!0),Ut(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,U(this._animRequest),zt(document,"touchmove",this._onTouchMove,this),zt(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))}});Tt.addInitHook("addHandler","touchZoom",Cs),Tt.BoxZoom=ws,Tt.DoubleClickZoom=xs,Tt.Drag=Ls,Tt.Keyboard=Ss,Tt.ScrollWheelZoom=Ts,Tt.TapHold=Ps,Tt.TouchZoom=Cs,r.Bounds=pt,r.Browser=nt,r.CRS=Qt,r.Canvas=gs,r.Circle=Sn,r.CircleMarker=Fi,r.Class=q,r.Control=ge,r.DivIcon=ps,r.DivOverlay=Le,r.DomEvent=hr,r.DomUtil=ur,r.Draggable=Re,r.Evented=st,r.FeatureGroup=Ie,r.GeoJSON=Ae,r.GridLayer=yi,r.Handler=xe,r.Icon=ei,r.ImageOverlay=Hi,r.LatLng=St,r.LatLngBounds=Wt,r.Layer=ve,r.LayerGroup=ti,r.LineUtil=Sr,r.Map=Tt,r.Marker=Bi,r.Mixin=vr,r.Path=Ze,r.Point=Z,r.PolyUtil=yr,r.Polygon=ii,r.Polyline=ze,r.Popup=Gi,r.PosAnimation=Xn,r.Projection=Tr,r.Rectangle=bs,r.Renderer=Be,r.SVG=wi,r.SVGOverlay=fs,r.TileLayer=si,r.Tooltip=Wi,r.Transformation=De,r.Util=B,r.VideoOverlay=ds,r.bind=u,r.bounds=Dt,r.canvas=vs,r.circle=zr,r.circleMarker=Ir,r.control=_i,r.divIcon=Gr,r.extend=c,r.featureGroup=Mr,r.geoJSON=hs,r.geoJson=Fr,r.gridLayer=Wr,r.icon=Or,r.imageOverlay=Dr,r.latLng=vt,r.latLngBounds=Ot,r.layerGroup=Er,r.map=dr,r.marker=kr,r.point=tt,r.polygon=Br,r.polyline=Ar,r.popup=Zr,r.rectangle=$r,r.setOptions=E,r.stamp=d,r.svg=ys,r.svgOverlay=Rr,r.tileLayer=ms,r.tooltip=Hr,r.transformation=Pe,r.version=a,r.videoOverlay=Nr;var Ur=window.L;r.noConflict=function(){return window.L=Ur,this},window.L=r}))}
4)(Si,Si.exports)),Si.exports}var Po=Ks();const oi=Us(Po);var Yi={exports:{}},Co=Yi.exports,Bs;function Eo(){return Bs||(Bs=1,(function(i){(function(o,r){i.exports?i.exports=r(Ks()):r(o.L)})(typeof self<"u"?self:Co,o=>{if(typeof document>"u")return console.warn('"window.document" is undefined; leaflet.fullscreen requires this object to access the DOM'),!1;const r=(()=>{const s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"]],u=s[0],f={};for(const d of s)if(d[1]in document){for(let _=0;_<d.length;_++)f[u[_]]=d[_];return f}return!1})(),a={change:r.fullscreenchange,error:r.fullscreenerror},c={request(s,u){return new Promise((f,d)=>{const _=(function(){this.off("change",_),f()}).bind(this);this.on("change",_),s=s||document.documentElement;const b=s[r.requestFullscreen](u);b instanceof Promise&&b.then(_).catch(d)})},exit(){return new Promise((s,u)=>{if(!this.isFullscreen){s();return}const f=(function(){this.off("change",f),s()}).bind(this);this.on("change",f);const d=document[r.exitFullscreen]();d instanceof Promise&&d.then(f).catch(u)})},on(s,u){const f=a[s];f&&document.addEventListener(f,u,!1)},off(s,u){const f=a[s];f&&document.removeEventListener(f,u,!1)},nativeAPI:r};return Object.defineProperties(c,{isFullscreen:{get(){return!!document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get(){return!!document[r.fullscreenEnabled]}}}),o.Control.FullScreen=o.Control.extend({options:{position:"topleft",title:"Full Screen",titleCancel:"Exit Full Screen",forceSeparateButton:!1,forcePseudoFullscreen:!1,fullscreenElement:!1},_screenfull:c,onAdd(s){let u="leaflet-control-zoom-fullscreen",f,d="";return s.zoomControl&&!this.options.forceSeparateButton?f=s.zoomControl._container:f=o.DomUtil.create("div","leaflet-bar"),this.options.content?d=this.options.content:u+=" fullscreen-icon",this._createButton(this.options.title,u,d,f,this.toggleFullScreen,this),this._map.fullscreenControl=this,this._map.on("enterFullscreen exitFullscreen",this._toggleState,this),f},onRemove(){o.DomEvent.off(this.link,"click",o.DomEvent.stop).off(this.link,"click",this.toggleFullScreen,this),this._screenfull.isEnabled&&(o.DomEvent.off(this._container,this._screenfull.nativeAPI.fullscreenchange,o.DomEvent.stop).off(this._container,this._screenfull.nativeAPI.fullscreenchange,this._handleFullscreenChange,this),o.DomEvent.off(document,this._screenfull.nativeAPI.fullscreenchange,o.DomEvent.stop).off(document,this._screenfull.nativeAPI.fullscreenchange,this._handleFullscreenChange,this))},_createButton(s,u,f,d,_,b){return this.link=o.DomUtil.create("a",u,d),this.link.href="#",this.link.title=s,this.link.innerHTML=f,this.link.setAttribute("role","button"),this.link.setAttribute("aria-label",s),L.DomEvent.disableClickPropagation(d),o.DomEvent.on(this.link,"click",o.DomEvent.stop).on(this.link,"click",_,b),this._screenfull.isEnabled&&(o.DomEvent.on(d,this._screenfull.nativeAPI.fullscreenchange,o.DomEvent.stop).on(d,this._screenfull.nativeAPI.fullscreenchange,this._handleFullscreenChange,b),o.DomEvent.on(document,this._screenfull.nativeAPI.fullscreenchange,o.DomEvent.stop).on(document,this._screenfull.nativeAPI.fullscreenchange,this._handleFullscreenChange,b)),this.link},toggleFullScreen(){const s=this._map;s._exitFired=!1,s._isFullscreen?(this._screenfull.isEnabled&&!this.options.forcePseudoFullscreen?this._screenfull.exit().then(()=>s.invalidateSize()):(o.DomUtil.removeClass(this.options.fullscreenElement?this.options.fullscreenElement:s._container,"leaflet-pseudo-fullscreen"),s.invalidateSize()),s.fire("exitFullscreen"),s._exitFired=!0,s._isFullscreen=!1):(this._screenfull.isEnabled&&!this.options.forcePseudoFullscreen?this._screenfull.request(this.options.fullscreenElement?this.options.fullscreenElement:s._container).then(()=>s.invalidateSize()):(o.DomUtil.addClass(this.options.fullscreenElement?this.options.fullscreenElement:s._container,"leaflet-pseudo-fullscreen"),s.invalidateSize()),s.fire("enterFullscreen"),s._isFullscreen=!0)},_toggleState(){this.link.title=this._map._isFullscreen?this.options.title:this.options.titleCancel,this._map._isFullscreen?L.DomUtil.removeClass(this.link,"leaflet-fullscreen-on"):L.DomUtil.addClass(this.link,"leaflet-fullscreen-on")},_handleFullscreenChange(s){const u=this._map;s.target===u.getContainer()&&!this._screenfull.isFullscreen&&!u._exitFired&&(this._screenfull.exit().then(()=>u.invalidateSize()),u.fire("exitFullscreen"),u._exitFired=!0,u._isFullscreen=!1)}}),o.Map.include({toggleFullscreen(){this.fullscreenControl.toggleFullScreen()}}),o.Map.addInitHook(function(){this.options.fullscreenControl&&this.addControl(o.control.fullscreen(this.options.fullscreenControlOptions))}),o.control.fullscreen=function(s){return new o.Control.FullScreen(s)},{leaflet:o}})})(Yi)),Yi.exports}Eo();
4var Ti={exports:{}},Mo=Ti.exports,Fs;function Oo(){return Fs||(Fs=1,(function(i,o){(function(r,a){a(o)})(Mo,function(r){var a=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 u=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,u?this._withAnimation:this._noAnimation),this._markerCluster=u?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 u=s,f=this._zoom;if(s.__parent)for(;u.__parent._zoom>=f;)u=u.__parent;return this._currentShownBounds.contains(u.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(s,u):this._animationAddLayerNonAnimated(s,u)),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,u){if(!L.Util.isArray(s))return this.addLayer(s);var f=this._featureGroup,d=this._nonPointGroup,_=this.options.chunkedLoading,b=this.options.chunkInterval,v=this.options.chunkProgress,P=s.length,p=0,C=!0,E;if(this._map){var R=new Date().getTime(),S=L.bind(function(){var z=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();p<P;p++){if(_&&p%200===0){var H=new Date().getTime()-z;if(H>b)break}if(E=s[p],E instanceof L.LayerGroup){C&&(s=s.slice(),C=!1),this._extractNonGroupLayers(E,s),P=s.length;continue}if(!E.getLatLng){d.addLayer(E),u||this.fire("layeradd",{layer:E});continue}if(!this.hasLayer(E)&&(this._addLayer(E,this._maxZoom),u||this.fire("layeradd",{layer:E}),E.__parent&&E.__parent.getChildCount()===2)){var W=E.__parent.getAllChildMarkers(),at=W[0]===E?W[1]:W[0];f.removeLayer(at)}}v&&v(p,P,new Date().getTime()-R),p===P?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(S,this.options.chunkDelay)},this);S()}else for(var M=this._needsClustering;p<P;p++){if(E=s[p],E instanceof L.LayerGroup){C&&(s=s.slice(),C=!1),this._extractNonGroupLayers(E,s),P=s.length;continue}if(!E.getLatLng){d.addLayer(E);continue}this.hasLayer(E)||M.push(E)}return this},removeLayers:function(s){var u,f,d=s.length,_=this._featureGroup,b=this._nonPointGroup,v=!0;if(!this._map){for(u=0;
4u<d;u++){if(f=s[u],f instanceof L.LayerGroup){v&&(s=s.slice(),v=!1),this._extractNonGroupLayers(f,s),d=s.length;continue}this._arraySplice(this._needsClustering,f),b.removeLayer(f),this.hasLayer(f)&&this._needsRemoving.push({layer:f,latlng:f._latlng}),this.fire("layerremove",{layer:f})}return this}if(this._unspiderfy){this._unspiderfy();var P=s.slice(),p=d;for(u=0;u<p;u++){if(f=P[u],f instanceof L.LayerGroup){this._extractNonGroupLayers(f,P),p=P.length;continue}this._unspiderfyLayer(f)}}for(u=0;u<d;u++){if(f=s[u],f instanceof L.LayerGroup){v&&(s=s.slice(),v=!1),this._extractNonGroupLayers(f,s),d=s.length;continue}if(!f.__parent){b.removeLayer(f),this.fire("layerremove",{layer:f});continue}this._removeLayer(f,!0,!0),this.fire("layerremove",{layer:f}),_.hasLayer(f)&&(_.removeLayer(f),f.clusterShow&&f.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 u=this._needsClustering.length-1;u>=0;u--)s.extend(this._needsClustering[u].getLatLng());return s.extend(this._nonPointGroup.getBounds()),s},eachLayer:function(s,u){var f=this._needsClustering.slice(),d=this._needsRemoving,_,b,v;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(f),b=f.length-1;b>=0;b--){for(_=!0,v=d.length-1;v>=0;v--)if(d[v].layer===f[b]){_=!1;break}_&&s.call(u,f[b])}this._nonPointGroup.eachLayer(s,u)},getLayers:function(){var s=[];return this.eachLayer(function(u){s.push(u)}),s},getLayer:function(s){var u=null;return s=parseInt(s,10),this.eachLayer(function(f){L.stamp(f)===s&&(u=f)}),u},hasLayer:function(s){if(!s)return!1;var u,f=this._needsClustering;for(u=f.length-1;u>=0;u--)if(f[u]===s)return!0;for(f=this._needsRemoving,u=f.length-1;u>=0;u--)if(f[u].layer===s)return!1;return!!(s.__parent&&s.__parent._group===this)||this._nonPointGroup.hasLayer(s)},zoomToShowLayer:function(s,u){var f=this._map;typeof u!="function"&&(u=function(){});var d=function(){(f.hasLayer(s)||f.hasLayer(s.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",d,this),this.off("animationend",d,this),f.hasLayer(s)?u():s.__parent._icon&&(this.once("spiderfied",u,this),s.__parent.spiderfy()))};s._icon&&this._map.getBounds().contains(s.getLatLng())?u():s.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",d,this),this._map.panTo(s.getLatLng())):(this._map.on("moveend",d,this),this.on("animationend",d,this),s.__parent.zoomToBounds())},onAdd:function(s){this._map=s;var u,f,d;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(s),this._nonPointGroup.addTo(s),this._gridClusters||this._generateInitialClusters(),this._maxLat=s.options.crs.projection.MAX_LATITUDE,u=0,f=this._needsRemoving.length;u<f;u++)d=this._needsRemoving[u],d.newlatlng=d.layer._latlng,d.layer._latlng=d.latlng;for(u=0,f=this._needsRemoving.length;u<f;u++)d=this._needsRemoving[u],this._removeLayer(d.layer,!0),d.layer._latlng=d.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(),f=this._needsClustering,this._needsClustering=[],this.addLayers(f,!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 u=s;u&&!u._icon;)u=u.__parent;return u||null},_arraySplice:function(s,u){for(var f=s.length-1;f>=0;f--)if(s[f]===u)return s.splice(f,1),!0},_removeFromGridUnclustered:function(s,u){for(var f=this._map,d=this._gridUnclustered,_=Math.floor(this._map.getMinZoom());u>=_&&d[u].removeObject(s,f.project(s.getLatLng(),u));u--);},_childMarkerDragStart:function(s){s.target.__dragStart=s.target._latlng},_childMarkerMoved:function(s){if(!this._ignoreMove&&!s.target.__dragStart){var u=s.target._popup&&s.target._popup.isOpen();this._moveChild(s.target,s.oldLatLng,s.latlng),u&&s.target.openPopup()}},_moveChild:function(s,u,f){s._latlng=u,this.removeLayer(s),s._latlng=f,this.addLayer(s)},_childMarkerDragEnd:function(s){var u=s.target.__dragStart;delete s.target.__dragStart,u&&this._moveChild(s.target,u,s.target._latlng)},_removeLayer:function(s,u,f){var d=this._gridClusters,_=this._gridUnclustered,b=this._featureGroup,v=this._map,P=Math.floor(this._map.getMinZoom());u&&this._removeFromGridUnclustered(s,this._maxZoom);var p=s.__parent,C=p._markers,E;for(this._arraySplice(C,s);p&&(p._childCount--,p._boundsNeedUpdate=!0,!(p._zoom<P));)u&&p._childCount<=1?(E=p._markers[0]===s?p._markers[1]:p._markers[0],d[p._zoom].removeObject(p,v.project(p._cLatLng,p._zoom)),_[p._zoom].addObject(E,v.project(E.getLatLng(),p._zoom)),this._arraySplice(p.__parent._childClusters,p),p.__parent._markers.push(E),E.__parent=p.__parent,p._icon&&(b.removeLayer(p),f||b.addLayer(E))):p._iconNeedsUpdate=!0,p=p.__parent;delete s.__parent},_isOrIsParent:function(s,u){for(;u;){if(s===u)return!0;u=u.parentNode}return!1},fire:function(s,u,f){if(u&&u.layer instanceof L.MarkerCluster){if(u.originalEvent&&this._isOrIsParent(u.layer._icon,u.originalEvent.relatedTarget))return;s="cluster"+s}L.FeatureGroup.prototype.fire.call(this,s,u,f)},listens:function(s,u){return L.FeatureGroup.prototype.listens.call(this,s,u)||L.FeatureGroup.prototype.listens.call(this,"cluster"+s,u)},_defaultIconCreateFunction:function(s){var u=s.getChildCount(),f=" marker-cluster-";return u<10?f+="small":u<100?f+="medium":f+="large",new L.DivIcon({html:"<div><span>"+u+"</span></div>",className:"marker-cluster"+f,iconSize:new L.Point(40,40)})},_bindEvents:function(){var s=this._map,u=this.options.spiderfyOnMaxZoom,f=this.options.showCoverageOnHover,d=this.options.zoomToBoundsOnClick,_=this.options.spiderfyOnEveryZoom;(u||d||_)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),f&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),s.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(s){var u=s.layer,f=u;if(!(s.type==="clusterkeypress"&&s.originalEvent&&s.originalEvent.keyCode!==13)){for(;f._childClusters.length===1;)f=f._childClusters[0];f._zoom===this._maxZoom&&f._childCount===u._childCount&&this.options.spiderfyOnMaxZoom?u.spiderfy():this.options.zoomToBoundsOnClick&&u.zoomToBounds(),this.options.spiderfyOnEveryZoom&&u.spiderfy(),s.originalEvent&&s.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(s){var u=this._map;this._inZoomAnimation||(this._shownPolygon&&u.removeLayer(this._shownPolygon),s.layer.getChildCount()>2&&s.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(s.layer.getConvexHull(),this.options.polygonOptions),u.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var s=this.options.spiderfyOnMaxZoom,u=this.options.showCoverageOnHover,f=this.options.zoomToBoundsOnClick,d=this.options.spiderfyOnEveryZoom,_=this._map;(s||f||d)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),u&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),_.off("zoomend",this._hideCoverage,this))}
4,_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()),u=Math.floor(this._map.getMinZoom()),f=this.options.maxClusterRadius,d=f;typeof f!="function"&&(d=function(){return f}),this.options.disableClusteringAtZoom!==null&&(s=this.options.disableClusteringAtZoom-1),this._maxZoom=s,this._gridClusters={},this._gridUnclustered={};for(var _=s;_>=u;_--)this._gridClusters[_]=new L.DistanceGrid(d(_)),this._gridUnclustered[_]=new L.DistanceGrid(d(_));this._topClusterLevel=new this._markerCluster(this,u-1)},_addLayer:function(s,u){var f=this._gridClusters,d=this._gridUnclustered,_=Math.floor(this._map.getMinZoom()),b,v;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(s),s.on(this._childMarkerEventHandlers,this);u>=_;u--){b=this._map.project(s.getLatLng(),u);var P=f[u].getNearObject(b);if(P){P._addChild(s),s.__parent=P;return}if(P=d[u].getNearObject(b),P){var p=P.__parent;p&&this._removeLayer(P,!1);var C=new this._markerCluster(this,u,P,s);f[u].addObject(C,this._map.project(C._cLatLng,u)),P.__parent=C,s.__parent=C;var E=C;for(v=u-1;v>p._zoom;v--)E=new this._markerCluster(this,v,E),f[v].addObject(E,this._map.project(P.getLatLng(),v));p._addChild(E),this._removeFromGridUnclustered(P,u);return}d[u].addObject(s,b)}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 u=this._maxLat;return u!==void 0&&(s.getNorth()>=u&&(s._northEast.lat=1/0),s.getSouth()<=-u&&(s._southWest.lat=-1/0)),s},_animationAddLayerNonAnimated:function(s,u){if(u===s)this._featureGroup.addLayer(s);else if(u._childCount===2){u._addToMap();var f=u.getAllChildMarkers();this._featureGroup.removeLayer(f[0]),this._featureGroup.removeLayer(f[1])}else u._updateIcon()},_extractNonGroupLayers:function(s,u){var f=s.getLayers(),d=0,_;for(u=u||[];d<f.length;d++){if(_=f[d],_ instanceof L.LayerGroup){this._extractNonGroupLayers(_,u);continue}u.push(_)}return u},_overrideMarkerIcon:function(s){var u=s.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[s]}});return u}});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,u){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,u,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(s,u){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s),this._topClusterLevel._recursivelyAddChildrenToMap(null,u,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(s,u){this._animationAddLayerNonAnimated(s,u)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(s,u){var f=this._getExpandedVisibleBounds(),d=this._featureGroup,_=Math.floor(this._map.getMinZoom()),b;this._ignoreMove=!0,this._topClusterLevel._recursively(f,s,_,function(v){var P=v._latlng,p=v._markers,C;for(f.contains(P)||(P=null),v._isSingleParent()&&s+1===u?(d.removeLayer(v),v._recursivelyAddChildrenToMap(null,u,f)):(v.clusterHide(),v._recursivelyAddChildrenToMap(P,u,f)),b=p.length-1;b>=0;
vendor: 3,019 bytes, line 4
4b--)C=p[b],f.contains(C._latlng)||d.removeLayer(C)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(f,u),d.eachLayer(function(v){!(v instanceof L.MarkerCluster)&&v._icon&&v.clusterShow()}),this._topClusterLevel._recursively(f,s,u,function(v){v._recursivelyRestoreChildPositions(u)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(f,s,_,function(v){d.removeLayer(v),v.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(s,u){this._animationZoomOutSingle(this._topClusterLevel,s-1,u),this._topClusterLevel._recursivelyAddChildrenToMap(null,u,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),s,this._getExpandedVisibleBounds())},_animationAddLayer:function(s,u){var f=this,d=this._featureGroup;d.addLayer(s),u!==s&&(u._childCount>2?(u._updateIcon(),this._forceLayout(),this._animationStart(),s._setPos(this._map.latLngToLayerPoint(u.getLatLng())),s.clusterHide(),this._enqueue(function(){d.removeLayer(s),s.clusterShow(),f._animationEnd()})):(this._forceLayout(),f._animationStart(),f._animationZoomOutSingle(u,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(s,u,f){var d=this._getExpandedVisibleBounds(),_=Math.floor(this._map.getMinZoom());s._recursivelyAnimateChildrenInAndAddSelfToMap(d,_,u+1,f);var b=this;this._forceLayout(),s._recursivelyBecomeVisible(d,f),this._enqueue(function(){if(s._childCount===1){var v=s._markers[0];this._ignoreMove=!0,v.setLatLng(v.getLatLng()),this._ignoreMove=!1,v.clusterShow&&v.clusterShow()}else s._recursively(d,f,_,function(P){P._recursivelyRemoveChildrenFromMap(d,_,u+1)});b._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)};var c=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(s,u,f,d){L.Marker.prototype.initialize.call(this,f?f._cLatLng||f.getLatLng():new L.LatLng(0,0),{icon:this,pane:s.options.clusterPane}),this._group=s,this._zoom=u,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,f&&this._addChild(f),d&&this._addChild(d)},getAllChildMarkers:function(s,u){s=s||[];for(var f=this._childClusters.length-1;f>=0;f--)this._childClusters[f].getAllChildMarkers(s,u);for(var d=this._markers.length-1;d>=0;d--)u&&this._markers[d].__dragStart||s.push(this._markers[d]);return s},getChildCount:function(){return this._childCount},zoomToBounds:function(s){for(var u=this._childClusters.slice(),f=this._group._map,d=f.getBoundsZoom(this._bounds),_=this._zoom+1,b=f.getZoom(),v;u.length>0&&d>_;){_++;var P=[];for(v=0;v<u.length;v++)P=P.concat(u[v]._childClusters);u=P}d>
4_?this._group._map.setView(this._latlng,_):d<=b?this._group._map.setView(this._latlng,b+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,u){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(s),s instanceof L.MarkerCluster?(u||(this._childClusters.push(s),s.__parent=this),this._childCount+=s._childCount):(u||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,u=this._childClusters,f=0,d=0,_=this._childCount,b,v,P,p;if(_!==0){for(this._resetBounds(),b=0;b<s.length;b++)P=s[b]._latlng,this._bounds.extend(P),f+=P.lat,d+=P.lng;for(b=0;b<u.length;b++)v=u[b],v._boundsNeedUpdate&&v._recalculateBounds(),this._bounds.extend(v._bounds),P=v._wLatLng,p=v._childCount,f+=P.lat*p,d+=P.lng*p;this._latlng=this._wLatLng=new L.LatLng(f/_,d/_),this._boundsNeedUpdate=!1}},_addToMap:function(s){s&&(this._backupLatlng=this._latlng,this.setLatLng(s)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(s,u,f){this._recursively(s,this._group._map.getMinZoom(),f-1,function(d){var _=d._markers,b,v;for(b=_.length-1;b>=0;b--)v=_[b],v._icon&&(v._setPos(u),v.clusterHide())},function(d){var _=d._childClusters,b,v;for(b=_.length-1;b>=0;b--)v=_[b],v._icon&&(v._setPos(u),v.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(s,u,f,d){this._recursively(s,d,u,function(_){_._recursivelyAnimateChildrenIn(s,_._group._map.latLngToLayerPoint(_.getLatLng()).round(),f),_._isSingleParent()&&f-1===d?(_.clusterShow(),_._recursivelyRemoveChildrenFromMap(s,u,f)):_.clusterHide(),_._addToMap()})},_recursivelyBecomeVisible:function(s,u){this._recursively(s,this._group._map.getMinZoom(),u,null,function(f){f.clusterShow()})},_recursivelyAddChildrenToMap:function(s,u,f){this._recursively(f,this._group._map.getMinZoom()-1,u,function(d){if(u!==d._zoom)for(var _=d._markers.length-1;_>=0;_--){var b=d._markers[_];f.contains(b._latlng)&&(s&&(b._backupLatlng=b.getLatLng(),b.setLatLng(s),b.clusterHide&&b.clusterHide()),d._group._featureGroup.addLayer(b))}},function(d){d._addToMap(s)})},_recursivelyRestoreChildPositions:function(s){for(var u=this._markers.length-1;u>=0;u--){var f=this._markers[u];f._backupLatlng&&(f.setLatLng(f._backupLatlng),delete f._backupLatlng)}if(s-1===this._zoom)for(var d=this._childClusters.length-1;d>=0;d--)this._childClusters[d]._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,u,f,d){var _,b;this._recursively(s,u-1,f-1,function(v){for(b=v._markers.length-1;b>=0;b--)_=v._markers[b],(!d||!d.contains(_._latlng))&&(v._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())}
4,function(v){for(b=v._childClusters.length-1;b>=0;b--)_=v._childClusters[b],(!d||!d.contains(_._latlng))&&(v._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())})},_recursively:function(s,u,f,d,_){var b=this._childClusters,v=this._zoom,P,p;if(u<=v&&(d&&d(this),_&&v===f&&_(this)),v<u||v<f)for(P=b.length-1;P>=0;P--)p=b[P],p._boundsNeedUpdate&&p._recalculateBounds(),s.intersects(p._bounds)&&p._recursively(s,u,f,d,_)},_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,u){var f=this._getCoord(u.x),d=this._getCoord(u.y),_=this._grid,b=_[d]=_[d]||{},v=b[f]=b[f]||[],P=L.Util.stamp(s);this._objectPoint[P]=u,v.push(s)},updateObject:function(s,u){this.removeObject(s),this.addObject(s,u)},removeObject:function(s,u){var f=this._getCoord(u.x),d=this._getCoord(u.y),_=this._grid,b=_[d]=_[d]||{},v=b[f]=b[f]||[],P,p;for(delete this._objectPoint[L.Util.stamp(s)],P=0,p=v.length;P<p;P++)if(v[P]===s)return v.splice(P,1),p===1&&delete b[f],!0},eachObject:function(s,u){var f,d,_,b,v,P,p,C=this._grid;for(f in C){v=C[f];for(d in v)for(P=v[d],_=0,b=P.length;_<b;_++)p=s.call(u,P[_]),p&&(_--,b--)}},getNearObject:function(s){var u=this._getCoord(s.x),f=this._getCoord(s.y),d,_,b,v,P,p,C,E,R=this._objectPoint,S=this._sqCellSize,M=null;for(d=f-1;d<=f+1;d++)if(v=this._grid[d],v){for(_=u-1;_<=u+1;_++)if(P=v[_],P)for(b=0,p=P.length;b<p;b++)C=P[b],E=this._sqDist(R[L.Util.stamp(C)],s),(E<S||E<=S&&M===null)&&(S=E,M=C)}return M},_getCoord:function(s){var u=Math.floor(s/this._cellSize);return isFinite(u)?u:s},_sqDist:function(s,u){var f=u.x-s.x,d=u.y-s.y;return f*f+d*d}},(function(){L.QuickHull={getDistant:function(s,u){var f=u[1].lat-u[0].lat,d=u[0].lng-u[1].lng;return d*(s.lat-u[0].lat)+f*(s.lng-u[0].lng)},findMostDistantPointFromBaseLine:function(s,u){var f=0,d=null,_=[],b,v,P;for(b=u.length-1;b>=0;b--){if(v=u[b],P=this.getDistant(v,s),P>0)_.push(v);else continue;P>f&&(f=P,d=v)}return{maxPoint:d,newPoints:_}},buildConvexHull:function(s,u){var f=[],d=this.findMostDistantPointFromBaseLine(s,u);return d.maxPoint?(f=f.concat(this.buildConvexHull([s[0],d.maxPoint],d.newPoints)),f=f.concat(this.buildConvexHull([d.maxPoint,s[1]],d.newPoints)),f):[s[0]]},getConvexHull:function(s){var u=!1,f=!1,d=!1,_=!1,b=null,v=null,P=null,p=null,C=null,E=null,R;for(R=s.length-1;R>=0;R--){var S=s[R];(u===!1||S.lat>u)&&(b=S,u=S.lat),(f===!1||S.lat<f)&&(v=S,f=S.lat),(d===!1||S.lng>d)&&(P=S,d=S.lng),(_===!1||S.lng<_)&&(p=S,_=S.lng)}f!==u?(E=v,C=b):(E=p,C=P);var M=[].concat(this.buildConvexHull([E,C],s),this.buildConvexHull([C,E],s));return M}}})(),L.MarkerCluster.include({getConvexHull:function(){var s=this.getAllChildMarkers(),u=[],f,d;for(d=s.length-1;d>=0;d--)f=s[d].getLatLng(),u.push(f);return L.QuickHull.getConvexHull(u)}}),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),u=this._group,f=u._map,d=f.latLngToLayerPoint(this._latlng),_;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?_=this._group.options.spiderfyShapePositions(s.length,d):s.length>=this._circleSpiralSwitchover?_=this._generatePointsSpiral(s.length,d):(d.y+=10,_=this._generatePointsCircle(s.length,d)),this._animationSpiderfy(s,_)}},unspiderfy:function(s){this._group._inZoomAnimation||(this._animationUnspiderfy(s),this._group._spiderfied=null)},_generatePointsCircle:function(s,u){var f=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+s),d=f/this._2PI,_=this._2PI/s,b=[],v,P;for(d=Math.max(d,35),b.length=s,v=0;v<s;
vendor: 3,257 bytes, line 4
4v++)P=this._circleStartAngle+v*_,b[v]=new L.Point(u.x+d*Math.cos(P),u.y+d*Math.sin(P))._round();return b},_generatePointsSpiral:function(s,u){var f=this._group.options.spiderfyDistanceMultiplier,d=f*this._spiralLengthStart,_=f*this._spiralFootSeparation,b=f*this._spiralLengthFactor*this._2PI,v=0,P=[],p;for(P.length=s,p=s;p>=0;p--)p<s&&(P[p]=new L.Point(u.x+d*Math.cos(v),u.y+d*Math.sin(v))._round()),v+=_/d+p*5e-4,d+=b/v;return P},_noanimationUnspiderfy:function(){var s=this._group,u=s._map,f=s._featureGroup,d=this.getAllChildMarkers(null,!0),_,b;for(s._ignoreMove=!0,this.setOpacity(1),b=d.length-1;b>=0;b--)_=d[b],f.removeLayer(_),_._preSpiderfyLatlng&&(_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng),_.setZIndexOffset&&_.setZIndexOffset(0),_._spiderLeg&&(u.removeLayer(_._spiderLeg),delete _._spiderLeg);s.fire("unspiderfied",{cluster:this,markers:d}),s._ignoreMove=!1,s._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(s,u){var f=this._group,d=f._map,_=f._featureGroup,b=this._group.options.spiderLegPolylineOptions,v,P,p,C;for(f._ignoreMove=!0,v=0;v<s.length;v++)C=d.layerPointToLatLng(u[v]),P=s[v],p=new L.Polyline([this._latlng,C],b),d.addLayer(p),P._spiderLeg=p,P._preSpiderfyLatlng=P._latlng,P.setLatLng(C),P.setZIndexOffset&&P.setZIndexOffset(1e6),_.addLayer(P);this.setOpacity(.3),f._ignoreMove=!1,f.fire("spiderfied",{cluster:this,markers:s})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(s,u){var f=this,d=this._group,_=d._map,b=d._featureGroup,v=this._latlng,P=_.latLngToLayerPoint(v),p=L.Path.SVG,C=L.extend({},this._group.options.spiderLegPolylineOptions),E=C.opacity,R,S,M,z,H,W;for(E===void 0&&(E=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),p?(C.opacity=0,C.className=(C.className||"")+" leaflet-cluster-spider-leg"):C.opacity=E,d._ignoreMove=!0,R=0;R<s.length;R++)S=s[R],W=_.layerPointToLatLng(u[R]),M=new L.Polyline([v,W],C),_.addLayer(M),S._spiderLeg=M,p&&(z=M._path,H=z.getTotalLength()+.1,z.style.strokeDasharray=H,z.style.strokeDashoffset=H),S.setZIndexOffset&&S.setZIndexOffset(1e6),S.clusterHide&&S.clusterHide(),b.addLayer(S),S._setPos&&S._setPos(P);for(d._forceLayout(),d._animationStart(),R=s.length-1;R>=0;R--)W=_.layerPointToLatLng(u[R]),S=s[R],S._preSpiderfyLatlng=S._latlng,S.setLatLng(W),S.clusterShow&&S.clusterShow(),p&&(M=S._spiderLeg,z=M._path,z.style.strokeDashoffset=0,M.setStyle({opacity:E}));this.setOpacity(.3),d._ignoreMove=!1,setTimeout(function(){d._animationEnd(),d.fire("spiderfied",{cluster:f,markers:s})},200)},_animationUnspiderfy:function(s){var u=this,f=this._group,d=f._map,_=f._featureGroup,b=s?d._latLngToNewLayerPoint(this._latlng,s.zoom,s.center):d.latLngToLayerPoint(this._latlng),v=this.getAllChildMarkers(null,!0),P=L.Path.SVG,p,C,E,R,S,M;for(f._ignoreMove=!0,f._animationStart(),this.setOpacity(1),C=v.length-1;C>=0;C--)p=v[C],p._preSpiderfyLatlng&&(p.closePopup(),p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng,M=!0,p._setPos&&(p._setPos(b),M=!1),p.clusterHide&&(p.clusterHide(),M=!1),M&&_.removeLayer(p),P&&(E=p._spiderLeg,R=E._path,S=R.getTotalLength()+.1,R.style.strokeDashoffset=S,E.setStyle({opacity:0}
4)));f._ignoreMove=!1,setTimeout(function(){var z=0;for(C=v.length-1;C>=0;C--)p=v[C],p._spiderLeg&&z++;for(C=v.length-1;C>=0;C--)p=v[C],p._spiderLeg&&(p.clusterShow&&p.clusterShow(),p.setZIndexOffset&&p.setZIndexOffset(0),z>1&&_.removeLayer(p),d.removeLayer(p._spiderLeg),delete p._spiderLeg);f._animationEnd(),f.fire("unspiderfied",{cluster:u,markers:v})},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 u,f;for(u in s)for(f=s[u].__parent;f;)f._iconNeedsUpdate=!0,f=f.__parent},_refreshSingleMarkerModeMarkers:function(s){var u,f;for(u in s)f=s[u],this.hasLayer(f)&&f.setIcon(this._overrideMarkerIcon(f))}}),L.Marker.include({refreshIconOptions:function(s,u){var f=this.options.icon;return L.setOptions(f,s),this.setIcon(f),u&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),r.MarkerClusterGroup=a,r.MarkerCluster=c,Object.defineProperty(r,"__esModule",{value:!0})})})(Ti,Ti.exports)),Ti.exports}Oo();const ko={touch:"Verschieben der Karte mit zwei Fingern",scroll:"Verwende Strg + Scroll zum Zoomen der Karte",scrollMac:"Verwende â + Scroll zum Zoomen der Karte"},Io={touch:"Use two fingers to move the map",scroll:"Use ctrl + scroll to zoom the map",scrollMac:"Use â + scroll to zoom the map"},Ds=(document.currentScript&&document.currentScript.src||import.meta&&import.meta.url).split("/").slice(0,-1).join("/")+"/";var Mn=!1,Xi={text:{},duration:1700},zo=L.Handler.extend({_isScrolling:!1,_isTouching:!1,_isFading:!1,addHooks:function(){this._handleTouch=L.bind(this._handleTouch,this),this._setGestureHandlingOptions(),this._disableInteractions(),L.version>="1.8"?(L.DomEvent.on(this._map._container,"touchstart",this._handleTouch,this),L.DomEvent.on(this._map._container,"touchmove",this._handleTouch,this),L.DomEvent.on(this._map._container,"touchend",this._handleTouch,this),L.DomEvent.on(this._map._container,"touchcancel",this._handleTouch,this),L.DomEvent.on(this._map._container,"click",this._handleTouch,this)):(this._map._container.addEventListener("touchstart",this._handleTouch),this._map._container.addEventListener("touchmove",this._handleTouch),this._map._container.addEventListener("touchend",this._handleTouch),this._map._container.addEventListener("touchcancel",this._handleTouch),this._map._container.addEventListener("click",this._handleTouch)),L.DomEvent.on(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.on(this._map._container,"mouseenter",this._handleMouseOver,this),L.DomEvent.on(this._map._container,"mouseleave",this._handleMouseOut,this),L.DomEvent.on(this._map,"movestart",this._handleDragging,this),L.DomEvent.on(this._map,"move",this._handleDragging,this),L.DomEvent.on(this._map,"moveend",this._handleDragging,this),this._map.on("popupopen",this._handleScrollOnPopup,this),this._map.on("popupclose",this._handleScrollOnPopup,this),L.DomEvent.off(this._map,"enterFullscreen",this._onEnterFullscreen,this),L.DomEvent.off(this._map,"exitFullscreen",this._onExitFullscreen,this),L.DomEvent.on(this._map,"enterFullscreen",this._onEnterFullscreen,this),L.DomEvent.on(this._map,"exitFullscreen",this._onExitFullscreen,this),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling")},removeHooks:function(){this._enableInteractions(),L.version>="1.8"?(L.DomEvent.off(this._map._container,"touchstart",this._handleTouch,this),L.DomEvent.off(this._map._container,"touchmove",this._handleTouch,this),L.DomEvent.off(this._map._container,"touchend",this._handleTouch,this),L.DomEvent.off(this._map._container,"touchcancel",this._handleTouch,this),L.DomEvent.off(this._map._container,"click",this._handleTouch,this)):(this._map._container.removeEventListener("touchstart",this._handleTouch),this._map._container.removeEventListener("touchmove",this._handleTouch),this._map._container.removeEventListener("touchend",this._handleTouch),this._map._container.removeEventListener("touchcancel",this._handleTouch),this._map._container.removeEventListener("click",this._handleTouch)),L.DomEvent.off(this._map._container,"wheel",this._handleScroll,this),L.DomEvent.off(this._map._container,"mouseenter",this._handleMouseOver,this),L.DomEvent.off(this._map._container,"mouseleave",this._handleMouseOut,this),L.DomEvent.off(this._map,"movestart",this._handleDragging,this),L.DomEvent.off(this._map,"move",this._handleDragging,this),L.DomEvent.off(this._map,"moveend",this._handleDragging,this),this._map.off("popupopen",this._handleScrollOnPopup,this),this._map.off("popupclose",this._handleScrollOnPopup,this),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling")},_handleDragging:function(i){i.type=="movestart"||i.type=="move"?Mn=!0:i.type=="moveend"&&(Mn=!1)},_disableInteraction:function(i){this._map.options[i]&&this._map[i]&&this._map[i].disable()},_enableInteraction:function(i){this._map.options[i]&&this._map[i]&&this._map[i].enable()},_disableInteractions:function(){this._disableInteraction("dragging"),this._disableInteraction("scrollWheelZoom"),this._disableInteraction("tap")},_enableInteractions:function(){this._enableInteraction("dragging"),this._enableInteraction("scrollWheelZoom"),this._enableInteraction("tap")},_enableWarning:function(i){clearTimeout(this._isFading),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-"+i),L.DomUtil.addClass(this._map._container,"leaflet-gesture-handling-warning")},_disableWarning:function(i,o){clearTimeout(this._isFading),this._isFading=setTimeout(L.bind(function(r){L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-"+r)},this,i),o||this._map.options.gestureHandlingOptions.duration),L.DomUtil.removeClass(this._map._container,"leaflet-gesture-handling-warning")},_isLanguageContent:function(i){return i&&i.touch&&i.scroll&&i.scrollMac},_isMacUser:function(){return navigator.platform.toUpperCase().indexOf("MAC")>=0},_parseGestureHandlingOptions:function(){var i=this._map.options.gestureHandlingOptions.text||this._map.options.gestureHandlingText||Xi.text,o=this._map.options.gestureHandlingOptions.duration||this._map.options.gestureHandlingDuration||Xi.duration,r=L.extend(this._map.options.gestureHandlingOptions,Xi);return r.text=i,r.duration=o,r},_setGestureHandlingOptions:function(){var i=this._parseGestureHandlingOptions();(this._isLanguageContent(i.text)?Promise.resolve(i.text):this._getLanguageContent(i.locale)).then(o=>{this._map._container.setAttribute("data-gesture-handling-touch-content",o.touch),this._map._container.setAttribute("data-gesture-handling-scroll-content",o.scroll),this._touchWarning=o.touch,this._scrollWarning=o.scroll})},_getUserLanguage:function(){return navigator.languages?navigator.languages[0]:navigator.language||navigator.userLanguage},_getLanguageContent:function(i){i=i||this._getUserLanguage()||"en";var o,r=new Promise(c=>{o=c}),a=c=>{var s=c.default||{};s.scroll=this._isMacUser()?s.scrollMac:s.scroll,o(s)};return import(Ds+"./locales/"+i+".js").then(a).catch(c=>import(Ds+"./locales/"+i.split("-")[0]+".js").then(a).catch(s=>Promise.resolve({default:Io}).then(a))),r},_handleTouch:function(i){var o=L.DomUtil.hasClass(i.target,"leaflet-interactive")||i.target.closest(".leaflet-control-container")||i.target.closest(".leaflet-popup-pane");o?L.DomUtil.hasClass(i.target,"leaflet-interactive")&&i.type==="touchmove"&&i.touches.length===1?this._enableTouchWarning():this._disableTouchWarning():i.type!=="touchmove"&&i.type!=="touchstart"?this._disableTouchWarning():i.touches.length===1?this._enableTouchWarning():(i.preventDefault(),this._disableTouchWarning(),this._enableInteractions())},_enableTouchWarning:function(){this._enableWarning("touch"),this._disableInteractions()},_disableTouchWarning:function(i){clearTimeout(this._isTouching),this._isTouching=setTimeout(L.bind(function(){this._disableWarning("touch")},this),i||0)},_enableScrollWarning:function(){this._enableWarning("scroll"),this._disableInteraction("scrollWheelZoom")},_disableScrollWarning:function(i){clearTimeout(this._isScrolling),this._isScrolling=setTimeout(L.bind(function(){this._disableWarning("scroll"),this._enableInteraction("scrollWheelZoom")},this),i||0)},_handleScroll:function(i){this._map.scrollWheelZoom&&this._map.scrollWheelZoom.enabled()&&(i.metaKey||i.ctrlKey||i.shiftKey&&this._map._rotate?(i.preventDefault(),this._disableScrollWarning()):(this._enableScrollWarning(),this._disableScrollWarning(this._map.options.gestureHandlingOptions.duration)))},_handleScrollOnPopup:function(i){L.DomEvent[i.type=="popupopen"?"on":"off"](i.popup._contentNode,"wheel",this._handleScroll,this)},_handleMouseOver:function(i){this._enableInteractions()},_handleMouseOut:function(i){Mn||this._disableInteractions()},_onExitFullscreen:function(){this._map.options.gestureHandling&&this._map.gestureHandling.enable()},_onEnterFullscreen:function(){this._map.options.gestureHandling&&this._map.gestureHandling.disable()}});L.Map.mergeOptions({gestureHandlingOptions:Xi});L.Map.addInitHook("addHandler","gestureHandling",zo);function Ao(){return{initLeaflet(i){if(!i.markers||!i.markers.length)return;const o=oi.map(this.$el,{attributionControl:!1,fullscreenControl:!0,gestureHandling:!0,gestureHandlingOptions:{text:ko}});o.on("zoomend",()=>{const c=o.getZoom()??6;let s=c<9?5:5*Math.pow(2,c-8);this.$el.style.setProperty("--loose-size",`${s}px`)}
4),oi.tileLayer("https://maps{s}.church.tools/24878a0506db4ebbb52fca36ab0462c9/{z}/{x}/{y}.png",{maxZoom:18}).addTo(o);const r=new oi.MarkerClusterGroup({iconCreateFunction:function(c){return oi.divIcon({html:'<div class="leaflet__icon leaflet__icon--cluster"><div class="leaflet__cluster-icon">'+c.getChildCount()+"</div></div>",iconSize:[44,44],iconAnchor:[22,22]})}});i.markers.forEach(function(c){const s=c[0],u=c[1],f=c[2],d=c[3],_=oi.divIcon({html:'<div class="leaflet__icon leaflet__icon--marker'+(d?" leaflet__icon--loose":"")+'"><i class="cwb_icon-users-solid cwb_icon--spaceless"></i>'+(d?'<div class="leaflet__area-circle"></div>':"")+"</div>",iconSize:[44,44],iconAnchor:[22,22]}),b=new oi.Marker([s,u],{icon:_});b.on("mouseover",()=>{b.setZIndexOffset(1e3)}),b.on("mouseout",()=>{b.setZIndexOffset(0)}),r.addLayer(b.bindPopup(f))}),o.addLayer(r);const a=r.getBounds();o.fitBounds(a,{padding:[22,22]})}}}function Bo(){return{multiselect:{isOpen:!1,selected:[],state:[]},input:[],initMultiselect(){this.multiselect.state=[];let i=this.$refs.input.options;for(let o=0;o<i.length;o++)this.multiselect.state.push({text:i[o].text,value:i[o].value,selected:i[o].selected,index:o}),i[o].selected&&this.select(o)},select(i){this.multiselect.isOpen=!1,this.multiselect.state[i].selected=!0,this.multiselect.selected.push(this.multiselect.state[i]),this.multiselect.selected=[...this.multiselect.selected],this.input.push(this.multiselect.state[i].value),this.input=[...this.input]},deselect(i){this.multiselect.state[i].selected=!1,this.multiselect.selected.splice(this.multiselect.selected.findIndex(o=>o.index===i),1),this.multiselect.selected=[...this.multiselect.selected],this.input.splice(this.input.indexOf(this.multiselect.state[i].value),1),this.input=[...this.input]},toggleOption(i){this.multiselect.state[i].selected?this.deselect(i):this.select(i)}}}function Fo(){return{tabs:{tab:1,tabTitle:"",overflow:!1,dropdownOpen:!1},initTabs(){this.tabs.tabTitle=this.$refs.tabs.firstElementChild.innerHTML,this.checkOverflow()},activateTab(i){this.tabs.tab=i.target.dataset.tab,this.tabs.tabTitle=i.target.innerHTML,this.tabs.dropdownOpen=!1},checkOverflow(){this.tabs.overflow=this.$refs.tabs.scrollWidth>this.$refs.tabs.clientWidth}}}function Do(){return{twoStepEmbed:{sessionPrefix:"external_data_consent_",source:"",service:"",embedNode:null,placeholder:null,hasConsent:!1},initTwoStepEmbed(i){this.sessionPrefix=this.twoStepEmbed.sessionPrefix,this.twoStepEmbed.source=i.source,this.service=i.service??"default",this.embedNode=this.getEmbedNode(),this.placeholder=this.$refs.placeholder,this.twoStepEmbed.hasConsent=this.hasConsent(),this.twoStepEmbed.needsConsent=this.needsConsent(),this.adjustPlaceholderHeight(),this.twoStepEmbed.needsConsent||this.showContent(),window.addEventListener("consent",o=>{o.detail===this.service&&(this.twoStepEmbed.hasConsent=!0,this.twoStepEmbed.needsConsent=this.needsConsent(),this.showContent())}),window.addEventListener("rescind",o=>{o.detail===this.service&&(this.twoStepEmbed.hasConsent=!1,this.twoStepEmbed.needsConsent=this.needsConsent(),this.hideContent())})},isSameHostname(){return window.location.hostname===this.service},needsConsent(){return!this.isSameHostname()&&!this.hasConsent()},hasConsent(){return sessionStorage.getItem(this.sessionPrefix+this.service)},showContent(){this.$el.replaceChild(this.embedNode,this.placeholder)},hideContent(){this.$el.replaceChild(this.placeholder,this.embedNode)}
4,consent(i){sessionStorage.setItem(this.sessionPrefix+this.service,"true"),i("consent",this.service)},rescind(i){sessionStorage.removeItem(this.sessionPrefix+this.service),i("rescind",this.service)},getEmbedNode(){let i=document.createElement("div");return i.classList.add("external-service__embed"),i.innerHTML=this.twoStepEmbed.source,i.querySelectorAll("script").forEach(o=>{const r=document.createElement("script");[...o.attributes].forEach(a=>r.setAttribute(a.name,a.value)),r.text=o.text,o.replaceWith(r)}),i},adjustPlaceholderHeight(){if(this.twoStepEmbed.dataType==="raw"){let i=this.twoStepEmbed.source.match(new RegExp(/height="([^"]+)"/));if(i[1]){let o=i[1]>600?600:i[1];this.placeholder.style["min-height"]=o+"px"}}}}}var On={exports:{}},Ns;function No(){return Ns||(Ns=1,(function(i){console.info(` 5IFRAME-RESIZER 6 7Iframe-Resizer 5 is now available via the following two packages: 8 9 * @iframe-resizer/parent 10 * @iframe-resizer/child 11 12Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery. 13 14Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events. 15 16Please see https://iframe-resizer.com/upgrade for more details. 17`),(function(o){if(typeof window>"u")return;var r=0,a,c=!1,s=!1,u="message",f=u.length,d="[iFrameSizer]",_=d.length,b=null,v=window.requestAnimationFrame,P=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),p={},C=null,E=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){et("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function R(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function S(F,J,mt){F.addEventListener(J,mt,!1)}function M(F,J,mt){F.removeEventListener(J,mt,!1)}function z(){var F=["moz","webkit","o","ms"],J;for(J=0;J<F.length&&!v;J+=1)v=window[F[J]+"RequestAnimationFrame"];v?v=v.bind(window):$("setup","RequestAnimationFrame not supported")}function H(F){var J="Host page: "+F;return window.top!==window.self&&(J=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+F:"Nested host page: "+F),J}function W(F){return d+"["+H(F)+"]"}function at(F){return p[F]?p[F].log:c}function $(F,J){Y("log",F,J,at(F))}function V(F,J){Y("info",F,J,at(F))}function et(F,J){Y("warn",F,J,!0)}function Y(F,J,mt,rt){rt===!0&&typeof window.console=="object"&&console[F](W(J),mt)}function j(F){function J(){function X(){ut(xt),Ct(ht),he("onResized",xt)}gt("Height"),gt("Width"),tt(X,xt,"init")}function mt(){var X=Xt.slice(_).split(":"),ft=X[1]?parseInt(X[1],10):0,Et=p[X[0]]&&p[X[0]].iframe,Mt=getComputedStyle(Et);return{iframe:Et,id:X[0],height:ft+rt(Mt)+wt(Mt),width:X[2],type:X[3]}}function rt(X){if(X.boxSizing!=="border-box")return 0;var ft=X.paddingTop?parseInt(X.paddingTop,10):0,Et=X.paddingBottom?parseInt(X.paddingBottom,10):0;return ft+Et}function wt(X){if(X.boxSizing!=="border-box")return 0;var ft=X.borderTopWidth?parseInt(X.borderTopWidth,10):0,Et=X.borderBottomWidth?parseInt(X.borderBottomWidth,10):0;return ft+Et}function gt(X){var ft=Number(p[ht]["max"+X]),Et=Number(p[ht]["min"+X]),Mt=X.toLowerCase(),Nt=Number(xt[Mt]);$(ht,"Checking "+Mt+" is in range "+Et+"-"+ft),Nt<Et&&(Nt=Et,$(ht,"Set "+Mt+" to min value")),Nt>ft&&(Nt=ft,$(ht,"Set "+Mt+" to max value")),xt[Mt]=""+Nt}function qt(){function X(){function Mt(){var Rt=0,ae=!1;for($(ht,"Checking connection is from allowed list of origins: "+Et);Rt<Et.length;Rt++)if(Et[Rt]===ft){ae=!0;break}return ae}function Nt(){var Rt=p[ht]&&p[ht].remoteHost;return $(ht,"Checking connection is from: "+Rt),ft===Rt}return Et.constructor===Array?Mt():Nt()}var ft=F.origin,Et=p[ht]&&p[ht].checkOrigin;if(Et&&""+ft!="null"&&!X())throw new Error("Unexpected message received from: "+ft+" for "+xt.iframe.id+". Message was: "+F.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function ne(){return d===(""+Xt).slice(0,_)&&Xt.slice(_).split(":")[0]in p}function te(){var X=xt.type in{true:1,false:1,undefined:1};return X&&$(ht,"Ignoring init message from meta parent page"),X}
17function se(X){return Xt.slice(Xt.indexOf(":")+f+X)}function re(X){$(ht,"onMessage passed: {iframe: "+xt.iframe.id+", message: "+X+"}"),he("onMessage",{iframe:xt.iframe,message:JSON.parse(X)}),$(ht,"--")}function Ce(){var X=document.body.getBoundingClientRect(),ft=xt.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:ft.height,iframeWidth:ft.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(ft.top-X.top,10),offsetLeft:parseInt(ft.left-X.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function Ee(X,ft){function Et(){pt("Send Page Info","pageInfo:"+Ce(),X,ft)}Qt(Et,32,ft)}function ye(){function X(Nt,Rt){function ae(){p[Mt]?Ee(p[Mt].iframe,Mt):ft()}["scroll","resize"].forEach(function(Ge){$(Mt,Nt+Ge+" listener for sendPageInfo"),Rt(window,Ge,ae)})}function ft(){X("Remove ",M)}function Et(){X("Add ",S)}var Mt=ht;Et(),p[Mt]&&(p[Mt].stopPageInfo=ft)}function Me(){p[ht]&&p[ht].stopPageInfo&&(p[ht].stopPageInfo(),delete p[ht].stopPageInfo)}function be(){var X=!0;return xt.iframe===null&&(et(ht,"IFrame ("+xt.id+") not found"),X=!1),X}function it(X){var ft=X.getBoundingClientRect();return lt(ht),{x:Math.floor(Number(ft.left)+Number(b.x)),y:Math.floor(Number(ft.top)+Number(b.y))}}function ot(X){function ft(){b=Rt,kt(),$(ht,"--")}function Et(){return{x:Number(xt.width)+Nt.x,y:Number(xt.height)+Nt.y}}function Mt(){window.parentIFrame?window.parentIFrame["scrollTo"+(X?"Offset":"")](Rt.x,Rt.y):et(ht,"Unable to scroll to requested position, window.parentIFrame not found")}var Nt=X?it(xt.iframe):{x:0,y:0},Rt=Et();$(ht,"Reposition requested from iFrame (offset x:"+Nt.x+" y:"+Nt.y+")"),window.top===window.self?ft():Mt()}function kt(){he("onScroll",b)===!1?st():Ct(ht)}function Bt(X){function ft(){var ae=it(Rt);$(ht,"Moving to in page link (#"+Mt+") at x: "+ae.x+" y: "+ae.y),b={x:ae.x,y:ae.y},kt(),$(ht,"--")}function Et(){window.parentIFrame?window.parentIFrame.moveToAnchor(Mt):$(ht,"In page link #"+Mt+" not found and window.parentIFrame not found")}var Mt=X.split("#")[1]||"",Nt=decodeURIComponent(Mt),Rt=document.getElementById(Nt)||document.getElementsByName(Nt)[0];Rt?ft():window.top===window.self?$(ht,"In page link #"+Mt+" not found"):Et()}function Vt(X){var ft={};if(Number(xt.width)===0&&Number(xt.height)===0){var Et=se(9).split(":");ft={x:Et[1],y:Et[0]}}else ft={x:xt.width,y:xt.height};he(X,{iframe:xt.iframe,screenX:Number(ft.x),screenY:Number(ft.y),type:xt.type})}function he(X,ft){return U(ht,X,ft)}function Yt(){switch(p[ht]&&p[ht].firstRun&&_e(),xt.type){case"close":{q(xt.iframe);break}case"message":{re(se(6));break}case"mouseenter":{Vt("onMouseEnter");break}case"mouseleave":{Vt("onMouseLeave");break}case"autoResize":{p[ht].autoResize=JSON.parse(se(9));break}case"scrollTo":{ot(!1);break}case"scrollToOffset":{ot(!0);break}case"pageInfo":{Ee(p[ht]&&p[ht].iframe,ht),ye();break}case"pageInfoStop":{Me();break}case"inPageLink":{Bt(se(9));break}case"reset":{Z(xt);break}case"init":{J(),he("onInit",xt.iframe);break}default:Number(xt.width)===0&&Number(xt.height)===0?et("Unsupported message received ("+xt.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):J()}}function Oe(X){var ft=!0;return p[X]||(ft=!1,et(xt.type+" No settings for "+X+". Message was: "+Xt)),ft}function oe(){for(var X in p)pt("iFrame requested init",Dt(X),p[X].iframe,X)}function _e(){p[ht]&&(p[ht].firstRun=!1)}var Xt=F.data,xt={},ht=null;Xt==="[iFrameResizerChild]Ready"?oe():ne()?(xt=mt(),ht=xt.id,p[ht]&&(p[ht].loaded=!0),!te()&&Oe(ht)&&($(ht,"Received: "+Xt),be()&&qt()&&Yt())):V(ht,"Ignored: "+Xt)}function U(F,J,mt){var rt=null,wt=null;if(p[F])if(rt=p[F][J],typeof rt=="function")wt=rt(mt);else throw new TypeError(J+" on iFrame["+F+"] is not a function");return wt}function B(F){var J=F.id;delete p[J]}function q(F){var J=F.id;if(U(J,"onClose",J)===!1){$(J,"Close iframe cancelled by onClose event");return}$(J,"Removing iFrame: "+J);try{F.parentNode&&F.parentNode.removeChild(F)}catch(mt){et(mt)}U(J,"onClosed",J),$(J,"--"),B(F),a&&(a.disconnect(),a=null)}function lt(F){b===null&&(b={x:window.pageXOffset===o?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===o?document.documentElement.scrollTop:window.pageYOffset},$(F,"Get page position: "+b.x+","+b.y))}function Ct(F){b!==null&&(window.scrollTo(b.x,b.y),$(F,"Set page position: "+b.x+","+b.y),st())}function st(){b=null}function Z(F){function J(){ut(F),pt("reset","reset",F.iframe,F.id)}$(F.id,"Size reset requested by "+(F.type==="init"?"host page":"iFrame")),lt(F.id),tt(J,F,"reset")}function ut(F){function J(gt){if(!F.id){$("undefined","messageData id not set");return}F.iframe.style[gt]=F[gt]+"px",$(F.id,"IFrame ("+wt+") "+gt+" set to "+F[gt]+"px")}function mt(gt){!s&&F[gt]==="0"&&(s=!0,$(wt,"Hidden iFrame detected, creating visibility listener"),ce())}function rt(gt){J(gt),mt(gt)}var wt=F.iframe.id;p[wt]&&(p[wt].sizeHeight&&rt("height"),p[wt].sizeWidth&&rt("width"))}function tt(F,J,mt){mt!==J.type&&v&&!window.jasmine?($(J.id,"Requesting animation frame"),v(F)):F()}function pt(F,J,mt,rt,wt){function gt(){var re=p[rt]&&p[rt].targetOrigin;$(rt,"["+F+"] Sending msg to iframe["+rt+"] ("+J+") targetOrigin: "+re),mt.contentWindow.postMessage(d+J,re)}function qt(){et(rt,"["+F+"] IFrame("+rt+") not found")}function ne(){mt&&"contentWindow"in mt&&mt.contentWindow!==null?gt():qt()}function te(){function re(){p[rt]&&!p[rt].loaded&&!se&&(se=!0,et(rt,"IFrame has not responded within "+p[rt].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}wt&&p[rt]&&p[rt].warningTimeout&&(p[rt].msgTimeout=setTimeout(re,p[rt].warningTimeout))}var se=!1;rt=rt||mt.id,p[rt]&&(ne(),te())}function Dt(F){return F+":"+p[F].bodyMarginV1+":"+p[F].sizeWidth+":"+p[F].log+":"+p[F].interval+":"+p[F].enablePublicMethods+":"+p[F].autoResize+":"+p[F].bodyMargin+":"+p[F].heightCalculationMethod+":"+p[F].bodyBackgroun
17d+":"+p[F].bodyPadding+":"+p[F].tolerance+":"+p[F].inPageLinks+":"+p[F].resizeFrom+":"+p[F].widthCalculationMethod+":"+p[F].mouseEvents}function Wt(F){return typeof F=="number"}function Ot(F,J){function mt(){function ot(Bt){var Vt=p[it][Bt];Vt!==1/0&&Vt!==0&&(F.style[Bt]=Wt(Vt)?Vt+"px":Vt,$(it,"Set "+Bt+" = "+F.style[Bt]))}function kt(Bt){if(p[it]["min"+Bt]>p[it]["max"+Bt])throw new Error("Value for min"+Bt+" can not be greater than max"+Bt)}kt("Height"),kt("Width"),ot("maxHeight"),ot("minHeight"),ot("maxWidth"),ot("minWidth")}function rt(){var ot=J&&J.id||E.id+r++;return document.getElementById(ot)!==null&&(ot+=r++),ot}function wt(ot){if(typeof ot!="string")throw new TypeError("Invaild id for iFrame. Expected String");return ot===""&&(F.id=ot=rt(),c=(J||{}).log,$(ot,"Added missing iframe ID: "+ot+" ("+F.src+")")),ot}function gt(){switch($(it,"IFrame scrolling "+(p[it]&&p[it].scrolling?"enabled":"disabled")+" for "+it),F.style.overflow=(p[it]&&p[it].scrolling)===!1?"hidden":"auto",p[it]&&p[it].scrolling){case"omit":break;case!0:{F.scrolling="yes";break}case!1:{F.scrolling="no";break}default:F.scrolling=p[it]?p[it].scrolling:"no"}}function qt(){(typeof(p[it]&&p[it].bodyMargin)=="number"||(p[it]&&p[it].bodyMargin)==="0")&&(p[it].bodyMarginV1=p[it].bodyMargin,p[it].bodyMargin=""+p[it].bodyMargin+"px")}function ne(){var ot=p[it]&&p[it].firstRun,kt=p[it]&&p[it].heightCalculationMethod in P;!ot&&kt&&Z({iframe:F,height:0,width:0,type:"init"})}function te(){p[it]&&(p[it].iframe.iFrameResizer={close:q.bind(null,p[it].iframe),removeListeners:B.bind(null,p[it].iframe),resize:pt.bind(null,"Window resize","resize",p[it].iframe),moveToAnchor:function(ot){pt("Move to anchor","moveToAnchor:"+ot,p[it].iframe,it)},sendMessage:function(ot){ot=JSON.stringify(ot),pt("Send Message","message:"+ot,p[it].iframe,it)}})}function se(ot){function kt(){pt("iFrame.onload",ot,F,o,!0),ne()}function Bt(he){if(!F.parentNode)return null;var Yt=new he(function(Oe){Oe.forEach(function(oe){var _e=Array.prototype.slice.call(oe.removedNodes);_e.forEach(function(Xt){Xt===F&&q(F)})})});return Yt.observe(F.parentNode,{childList:!0}),Yt}var Vt=R();Vt&&(a=Bt(Vt)),S(F,"load",kt),pt("init",ot,F,o,!0)}function re(ot){if(typeof ot!="object")throw new TypeError("Options is not an object")}function Ce(ot){for(var kt in E)Object.prototype.hasOwnProperty.call(E,kt)&&(p[it][kt]=Object.prototype.hasOwnProperty.call(ot,kt)?ot[kt]:E[kt])}function Ee(ot){return ot===""||ot.match(/^(about:blank|javascript:|file:\/\/)/)!==null?"*":ot}function ye(ot){var kt=ot.split("Callback");if(kt.length===2){var Bt="on"+kt[0].charAt(0).toUpperCase()+kt[0].slice(1);this[Bt]=this[ot],delete this[ot],et(it,"Deprecated: '"+ot+"' has been renamed '"+Bt+"'. The old method will be removed in the next major version.")}}function Me(ot){ot=ot||{},p[it]=Object.create(null),p[it].iframe=F,p[it].firstRun=!0,p[it].remoteHost=F.src&&F.src.split("/").slice(0,3).join("/"),re(ot),Object.keys(ot).forEach(ye,ot),Ce(ot),p[it]&&(p[it].targetOrigin=p[it].checkOrigin===!0?Ee(p[it].remoteHost):"*")}function be(){return it in p&&"iFrameResizer"in F}var it=wt(F.id);be()?et(it,"Ignored iFrame, already setup."):(Me(J),gt(),mt(),qt(),se(Dt(it)),te())}function St(F,J){C===null&&(C=setTimeout(function(){C=null,F()},J))}var vt={};function Qt(F,J,mt){vt[mt]||(vt[mt]=setTimeout(function(){vt[mt]=null,F()},J))}function ce(){function F(){function wt(gt){function qt(te){return(p[gt]&&p[gt].iframe.style[te])==="0px"}function ne(te){return te.offsetParent!==null}p[gt]&&ne(p[gt].iframe)&&(qt("height")||qt("width"))&&pt("Visibility change","resize",p[gt].iframe,gt)}Object.keys(p).forEach(function(gt){wt(gt)})}function J(wt){$("window","Mutation observed: "+wt[0].target+" "+wt[0].type),St(F,16)}function mt(){var wt=document.querySelector("body"),gt={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},qt=new rt(J);qt.observe(wt,gt)}var rt=R();rt&&mt()}function Ye(F){function J(){De("Window "+F,"resize")}$("window","Trigger event: "+F),St(J,16)}function Fe(){function F(){De("Tab Visible","resize")}document.visibilityState!=="hidden"&&($("document","Trigger event: Visibility change"),St(F,16))}function De(F,J){function mt(rt){return p[rt]&&p[rt].resizeFrom==="parent"&&p[rt].autoResize&&!p[rt].firstRun}
17Object.keys(p).forEach(function(rt){mt(rt)&&pt(F,J,p[rt].iframe,rt)})}function Pe(){S(window,"message",j),S(window,"resize",function(){Ye("resize")}),S(document,"visibilitychange",Fe),S(document,"-webkit-visibilitychange",Fe)}function Ne(){function F(rt,wt){function gt(){if(wt.tagName){if(wt.tagName.toUpperCase()!=="IFRAME")throw new TypeError("Expected <IFRAME> tag, found <"+wt.tagName+">")}else throw new TypeError("Object is not a valid DOM element")}wt&&(gt(),Ot(wt,rt),mt.push(wt))}function J(rt){rt&&rt.enablePublicMethods&&et("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}var mt;return z(),Pe(),function(wt,gt){switch(mt=[],J(wt),typeof gt){case"undefined":case"string":{Array.prototype.forEach.call(document.querySelectorAll(gt||"iframe"),F.bind(o,wt));break}case"object":{F(wt,gt);break}default:throw new TypeError("Unexpected data type ("+typeof gt+")")}return mt}}function Xe(F){F.fn?F.fn.iFrameResize||(F.fn.iFrameResize=function(mt){function rt(wt,gt){Ot(gt,mt)}return this.filter("iframe").each(rt).end()}):V("","Unable to bind to jQuery, it is not fully loaded.")}window.jQuery!==o&&Xe(window.jQuery),i.exports=Ne(),window.iFrameResize=window.iFrameResize||Ne()})()})(On)),On.exports}No();function Ro(){const i=document.getElementsByClassName("iframe--group");for(let o of i)o.addEventListener("load",()=>{iFrameResize({},o)},{once:!0})}const Zo={init:function(){return new Ro}};function Ho(){let i=document.getElementById("page"),o=100,r=!1,a=0,c;function s(){let u=window.scrollY;if(u===a){c=window.clearInterval(c);return}a=u,r!==u>o&&(u>o?(r=!0,i.classList.add("page--offset"),document.documentElement.classList.add("scroll-offset--offset")):(r=!1,i.classList.remove("page--offset"),document.documentElement.classList.remove("scroll-offset--offset")))}s(),document.addEventListener("scroll",function(){c||(c=window.setInterval(s,250))})}const Go={init:function(){return new Ho}};function Rs(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function Gn(i={},o={}){const r=["__proto__","constructor","prototype"];Object.keys(o).filter(a=>r.indexOf(a)<0).forEach(a=>{typeof i[a]>"u"?i[a]=o[a]:Rs(o[a])&&Rs(i[a])&&Object.keys(o[a]).length>0&&Gn(i[a],o[a])})}const Js={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Te(){const i=typeof document<"u"?document:{};return Gn(i,Js),i}const Wo={document:Js,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function Jt(){const i=typeof window<"u"?window:{};return Gn(i,Wo),i}function Vo(i=""){return i.trim().split(" ").filter(o=>!!o.trim())}function jo(i){const o=i;Object.keys(o).forEach(r=>{try{o[r]=null}catch{}try{delete o[r]}catch{}})}function Qs(i,o=0){return setTimeout(i,o)}function Qi(){return Date.now()}function $o(i){const o=Jt();let r;return o.getComputedStyle&&(r=o.getComputedStyle(i,null)),!r&&i.currentStyle&&(r=i.currentStyle),r||(r=i.style),r}function qo(i,o="x"){const r=Jt();let a,c,s;const u=$o(i);return r.WebKitCSSMatrix?(c=u.transform||u.webkitTransform,c.split(",").length>6&&(c=c.split(", ").map(f=>f.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(c==="none"?"":c)):(s=u.MozTransform||u.OTransform||u.MsTransform||u.msTransform||u.transform||u.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),o==="x"&&(r.WebKitCSSMatrix?c=s.m41:a.length===16?c=parseFloat(a[12]):c=parseFloat(a[4])),o==="y"&&(r.WebKitCSSMatrix?c=s.m42:a.length===16?c=parseFloat(a[13]):c=parseFloat(a[5])),c||0}function qi(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Uo(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function ue(...i){const o=Object(i[0]);for(let r=1;r<i.length;r+=1){const a=i[r];if(a!=null&&!Uo(a)){const c=Object.keys(Object(a)).filter(s=>s!=="__proto__"&&s!=="constructor"&&s!=="prototype");for(let s=0,u=c.length;s<u;s+=1){const f=c[s],d=Object.getOwnPropertyDescriptor(a,f);d!==void 0&&d.enumerable&&(qi(o[f])&&qi(a[f])?a[f].__swiper__?o[f]=a[f]:ue(o[f],a[f]):!qi(o[f])&&qi(a[f])?(o[f]={},a[f].__swiper__?o[f]=a[f]:ue(o[f],a[f])):o[f]=a[f])}}}return o}function ai(i,o,r){i.style.setProperty(o,r)}function tr({swiper:i,targetPosition:o,side:r}){const a=Jt(),c=-i.translate;let s=null,u;const f=i.params.speed;i.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(i.cssModeFrameID);const d=o>c?"next":"prev",_=(v,P)=>d==="next"&&v>=P||d==="prev"&&v<=P,b=()=>{u=new Date().getTime(),s===null&&(s=u);const v=Math.max(Math.min((u-s)/f,1),0),P=.5-Math.cos(v*Math.PI)/2;let p=c+P*(o-c);if(_(p,o)&&(p=o),i.wrapperEl.scrollTo({[r]:p}),_(p,o)){i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout(()=>{i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo({[r]:p})}),a.cancelAnimationFrame(i.cssModeFrameID);return}i.cssModeFrameID=a.requestAnimationFrame(b)};b()}function Se(i,o=""){const r=Jt(),a=[...i.children];return r.HTMLSlotElement&&i instanceof HTMLSlotElement&&a.push(...i.assignedElements()),o?a.filter(c=>c.matches(o)):a}function Yo(i,o){const r=[o];for(;r.length>0;){const a=r.shift();if(i===a)return!0;r.push(...a.children,...a.shadowRoot?a.shadowRoot.children:[],...a.assignedElements?a.assignedElements():[])}}function Xo(i,o){const r=Jt();let a=o.contains(i);return!a&&r.HTMLSlotElement&&o instanceof HTMLSlotElement&&(a=[...o.assignedElements()].includes(i),a||(a=Yo(i,o))),a}function tn(i){try{console.warn(i);return}catch{}}function en(i,o=[]){const r=document.createElement(i);return r.classList.add(...Array.isArray(o)?o:Vo(o)),r}function Ko(i,o){const r=[];for(;i.previousElementSibling;){const a=i.previousElementSibling;o?a.matches(o)&&r.push(a):r.push(a),i=a}return r}function Jo(i,o){const r=[];for(;i.nextElementSibling;){const a=i.nextElementSibling;o?a.matches(o)&&r.push(a):r.push(a),i=a}return r}function He(i,o){return Jt().getComputedStyle(i,null).getPropertyValue(o)}function nn(i){let o=i,r;if(o){for(r=0;(o=o.previousSibling)!==null;)o.nodeType===1&&(r+=1);return r}}function er(i,o){const r=[];let a=i.parentElement;for(;a;)o?a.matches(o)&&r.push(a):r.push(a),a=a.parentElement;return r}function Nn(i,o,r){const a=Jt();return i[o==="width"?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(i,null).getPropertyValue(o==="width"?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(i,null).getPropertyValue(o==="width"?"margin-left":"margin-bottom"))}function $t(i){return(Array.isArray(i)?i:[i]).filter(o=>!!o)}function Rn(i,o=""){typeof trustedTypes<"u"?i.innerHTML=trustedTypes.createPolicy("html",{createHTML:r=>r}).createHTML(o):i.innerHTML=o}let kn;function Qo(){const i=Jt(),o=Te();return{smoothScroll:o.documentElement&&o.documentElement.style&&"scrollBehavior"in o.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&o instanceof i.DocumentTouch)}}function ir(){return kn||(kn=Qo()),kn}let In;function ta({userAgent:i}={}){const o=ir(),r=Jt(),a=r.navigator.platform,c=i||r.navigator.userAgent,s={ios:!1,android:!1},u=r.screen.width,f=r.screen.height,d=c.match(/(Android);?[\s\/]+([\d.]+)?/);let _=c.match(/(iPad)(?!\1).*OS\s([\d_]+)/);const b=c.match(/(iPod)(.*OS\s([\d_]+))?/),v=!_&&c.match(/(iPhone\sOS|iOS)\s([\d_]+)/),P=a==="Win32";let p=a==="MacIntel";const C=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!_&&p&&o.touch&&C.indexOf(`${u}x${f}`)>=0&&(_=c.match(/(Version)\/([\d.]+)/),_||(_=[0,1,"13_0_0"]),p=!1),d&&!P&&(s.os="android",s.android=!0),(_||v||b)&&(s.os="ios",s.ios=!0),s}function nr(i={}){return In||(In=ta(i)),In}let zn;function ea(){const i=Jt(),o=nr();let r=!1;function a(){const f=i.navigator.userAgent.toLowerCase();return f.indexOf("safari")>=0&&f.indexOf("chrome")<0&&f.indexOf("android")<0}if(a()){const f=String(i.navigator.userAgent);if(f.includes("Version/")){const[d,_]=f.split("Version/")[1].split(" ")[0].split(".").map(b=>Number(b));r=d<16||d===16&&_<2}}
vendor: 13,550 bytes, line 17
17const c=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent),s=a(),u=s||c&&o.ios;return{isSafari:r||s,needPerspectiveFix:r,need3dFix:u,isWebView:c}}function sr(){return zn||(zn=ea()),zn}function ia({swiper:i,on:o,emit:r}){const a=Jt();let c=null,s=null;const u=()=>{!i||i.destroyed||!i.initialized||(r("beforeResize"),r("resize"))},f=()=>{!i||i.destroyed||!i.initialized||(c=new ResizeObserver(b=>{s=a.requestAnimationFrame(()=>{const{width:v,height:P}=i;let p=v,C=P;b.forEach(({contentBoxSize:E,contentRect:R,target:S})=>{S&&S!==i.el||(p=R?R.width:(E[0]||E).inlineSize,C=R?R.height:(E[0]||E).blockSize)}),(p!==v||C!==P)&&u()})}),c.observe(i.el))},d=()=>{s&&a.cancelAnimationFrame(s),c&&c.unobserve&&i.el&&(c.unobserve(i.el),c=null)},_=()=>{!i||i.destroyed||!i.initialized||r("orientationchange")};o("init",()=>{if(i.params.resizeObserver&&typeof a.ResizeObserver<"u"){f();return}a.addEventListener("resize",u),a.addEventListener("orientationchange",_)}),o("destroy",()=>{d(),a.removeEventListener("resize",u),a.removeEventListener("orientationchange",_)})}function na({swiper:i,extendParams:o,on:r,emit:a}){const c=[],s=Jt(),u=(_,b={})=>{const v=s.MutationObserver||s.WebkitMutationObserver,P=new v(p=>{if(i.__preventObserver__)return;if(p.length===1){a("observerUpdate",p[0]);return}const C=function(){a("observerUpdate",p[0])};s.requestAnimationFrame?s.requestAnimationFrame(C):s.setTimeout(C,0)});P.observe(_,{attributes:typeof b.attributes>"u"?!0:b.attributes,childList:i.isElement||(typeof b.childList>"u"?!0:b).childList,characterData:typeof b.characterData>"u"?!0:b.characterData}),c.push(P)},f=()=>{if(i.params.observer){if(i.params.observeParents){const _=er(i.hostEl);for(let b=0;b<_.length;b+=1)u(_[b])}u(i.hostEl,{childList:i.params.observeSlideChildren}),u(i.wrapperEl,{attributes:!1})}},d=()=>{c.forEach(_=>{_.disconnect()}),c.splice(0,c.length)};o({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",f),r("destroy",d)}var sa={on(i,o,r){const a=this;if(!a.eventsListeners||a.destroyed||typeof o!="function")return a;const c=r?"unshift":"push";return i.split(" ").forEach(s=>{a.eventsListeners[s]||(a.eventsListeners[s]=[]),a.eventsListeners[s][c](o)}),a},once(i,o,r){const a=this;if(!a.eventsListeners||a.destroyed||typeof o!="function")return a;function c(...s){a.off(i,c),c.__emitterProxy&&delete c.__emitterProxy,o.apply(a,s)}return c.__emitterProxy=o,a.on(i,c,r)},onAny(i,o){const r=this;if(!r.eventsListeners||r.destroyed||typeof i!="function")return r;const a=o?"unshift":"push";return r.eventsAnyListeners.indexOf(i)<0&&r.eventsAnyListeners[a](i),r},offAny(i){const o=this;if(!o.eventsListeners||o.destroyed||!o.eventsAnyListeners)return o;const r=o.eventsAnyListeners.indexOf(i);return r>=0&&o.eventsAnyListeners.splice(r,1),o},off(i,o){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||i.split(" ").forEach(a=>{typeof o>"u"?r.eventsListeners[a]=[]:r.eventsListeners[a]&&r.eventsListeners[a].forEach((c,s)=>{(c===o||c.__emitterProxy&&c.__emitterProxy===o)&&r.eventsListeners[a].splice(s,1)})}),r},emit(...i){const o=this;if(!o.eventsListeners||o.destroyed||!o.eventsListeners)return o;let r,a,c;return typeof i[0]=="string"||Array.isArray(i[0])?(r=i[0],a=i.slice(1,i.length),c=o):(r=i[0].events,a=i[0].data,c=i[0].context||o),a.unshift(c),(Array.isArray(r)?r:r.split(" ")).forEach(u=>{o.eventsAnyListeners&&o.eventsAnyListeners.length&&o.eventsAnyListeners.forEach(f=>{f.apply(c,[u,...a])}),o.eventsListeners&&o.eventsListeners[u]&&o.eventsListeners[u].forEach(f=>{f.apply(c,a)})}),o}};function ra(){const i=this;let o,r;const a=i.el;typeof i.params.width<"u"&&i.params.width!==null?o=i.params.width:o=a.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?r=i.params.height:r=a.clientHeight,!(o===0&&i.isHorizontal()||r===0&&i.isVertical())&&(o=o-parseInt(He(a,"padding-left")||0,10)-parseInt(He(a,"padding-right")||0,10),r=r-parseInt(He(a,"padding-top")||0,10)-parseInt(He(a,"padding-bottom")||0,10),Number.isNaN(o)&&(o=0),Number.isNaN(r)&&(r=0),Object.assign(i,{width:o,height:r,size:i.isHorizontal()?o:r}))}function oa(){const i=this;function o(Y,j){return parseFloat(Y.getPropertyValue(i.getDirectionLabel(j))||0)}const r=i.params,{wrapperEl:a,slidesEl:c,rtlTranslate:s,wrongRTL:u}=i,f=i.virtual&&r.virtual.enabled,d=f?i.virtual.slides.length:i.slides.length,_=Se(c,`.${i.params.slideClass}, swiper-slide`),b=f?i.virtual.slides.length:_.length;let v=[];const P=[],p=[];let C=r.slidesOffsetBefore;typeof C=="function"&&(C=r.slidesOffsetBefore.call(i));let E=r.slidesOffsetAfter;typeof E=="function"&&(E=r.slidesOffsetAfter.call(i));const R=i.snapGrid.length,S=i.slidesGrid.length,M=i.size-C-E;let z=r.spaceBetween,H=-C,W=0,at=0;if(typeof M>"u")return;typeof z=="string"&&z.indexOf("%")>=0?z=parseFloat(z.replace("%",""))/100*M:typeof z=="string"&&(z=parseFloat(z)),i.virtualSize=-z-C-E,_.forEach(Y=>{s?Y.style.marginLeft="":Y.style.marginRight="",Y.style.marginBottom="",Y.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(ai(a,"--swiper-centered-offset-before",""),ai(a,"--swiper-centered-offset-after","")),r.cssMode&&(ai(a,"--swiper-slides-offset-before",`${C}px`),ai(a,"--swiper-slides-offset-after",`${E}px`));const $=r.grid&&r.grid.rows>1&&i.grid;$?i.grid.initSlides(_):i.grid&&i.grid.unsetSlides();let V;const et=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(Y=>typeof r.breakpoints[Y].slidesPerView<"u").length>0;for(let Y=0;Y<b;Y+=1){V=0;const j=_[Y];if(!(j&&($&&i.grid.updateSlide(Y,j,_),He(j,"display")==="none"))){if(f&&r.slidesPerView==="auto")r.virtual.slidesPerViewAutoSlideSize&&(V=r.virtual.slidesPerViewAutoSlideSize),V&&j&&(r.roundLengths&&(V=Math.floor(V)),j.style[i.getDirectionLabel("width")]=`${V}px`);else if(r.slidesPerView==="auto"){et&&(j.style[i.getDirectionLabel("width")]="");const U=getComputedStyle(j),B=j.style.transform,q=j.style.webkitTransform;if(B&&(j.style.transform="none"),q&&(j.style.webkitTransform="none"),r.roundLengths)V=i.isHorizontal()?Nn(j,"width"):Nn(j,"height");else{const lt=o(U,"width"),Ct=o(U,"padding-left"),st=o(U,"padding-right"),Z=o(U,"margin-left"),ut=o(U,"margin-right"),tt=U.getPropertyValue("box-sizing");if(tt&&tt==="border-box")V=lt+Z+ut;else{const{clientWidth:pt,offsetWidth:Dt}=j;V=lt+Ct+st+Z+ut+(Dt-pt)}}B&&(j.style.transform=B),q&&(j.style.webkitTransform=q),r.roundLengths&&(V=Math.floor(V))}else V=(M-(r.slidesPerView-1)*z)/r.slidesPerView,r.roundLengths&&(V=Math.floor(V)),j&&(j.style[i.getDirectionLabel("width")]=`${V}px`);j&&(j.swiperSlideSize=V),p.push(V),r.centeredSlides?(H=H+V/2+W/2+z,W===0&&Y!==0&&(H=H-M/2-z),Y===0&&(H=H-M/2-z),Math.abs(H)<1/1e3&&(H=0),r.roundLengths&&(H=Math.floor(H)),at%r.slidesPerGroup===0&&v.push(H),P.push(H)):(r.roundLengths&&(H=Math.floor(H)),(at-Math.min(i.params.slidesPerGroupSkip,at))%i.params.slidesPerGroup===0&&v.push(H),P.push(H),H=H+V+z),i.virtualSize+=V+z,W=V,at+=1}}if(i.virtualSize=Math.max(i.virtualSize,M)+E,s&&u&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${i.virtualSize+z}px`),r.setWrapperSize&&(a.style[i.getDirectionLabel("width")]=`${i.virtualSize+z}px`),$&&i.grid.updateWrapperSize(V,v),!r.centeredSlides){const Y=r.slidesPerView!=="auto"&&r.slidesPerView%1!==0,j=r.snapToSlideEdge&&!r.loop&&(r.slidesPerView==="auto"||Y);let U=v.length;if(j){let q;if(r.slidesPerView==="auto"){q=1;let lt=0;for(let Ct=p.length-1;Ct>=0&&(lt+=p[Ct]+(Ct<p.length-1?z:0),lt<=M);Ct-=1)q=p.length-Ct}else q=Math.floor(r.slidesPerView);U=Math.max(b-q,0)}const B=[];for(let q=0;q<v.length;q+=1){let lt=v[q];r.roundLengths&&(lt=Math.floor(lt)),j?q<=U&&B.push(lt):v[q]<=i.virtualSize-M&&B.push(lt)}v=B,Math.floor(i.virtualSize-M)-Math.floor(v[v.length-1])>1&&(j||v.push(i.virtualSize-M))}if(f&&r.loop){const Y=p[0]+z;if(r.slidesPerGroup>1){const j=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/r.slidesPerGroup),U=Y*r.slidesPerGroup;for(let B=0;B<j;B+=1)v.push(v[v.length-1]+U)}for(let j=0;j<i.virtual.slidesBefore+i.virtual.slidesAfter;j+=1)r.slidesPerGroup===1&&v.push(v[v.length-1]+Y),P.push(P[P.length-1]+Y),i.virtualSize+=Y}if(v.length===0&&(v=[0]),z!==0){const Y=i.isHorizontal()&&s?"marginLeft":i.getDirectionLabel("marginRight");_.filter((j,U)=>!r.cssMode||r.loop?!0:U!==_.length-1).forEach(j=>{j.style[Y]=`${z}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let Y=0;p.forEach(U=>{Y+=U+(z||0)}),Y-=z;const j=Y>M?Y-M:0;v=v.map(U=>U<=0?-C:U>j?j+E:U)}if(r.centerInsufficientSlides){let Y=0;if(p.forEach(j=>{Y+=j+(z||0)}),Y-=z,Y<M){const j=(M-Y)/2;v.forEach((U,B)=>{v[B]=U-j}),P.forEach((U,B)=>{P[B]=U+j})}}if(Object.assign(i,{slides:_,snapGrid:v,slidesGrid:P,slidesSizesGrid:p}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){ai(a,"--swiper-centered-offset-before",`${-v[0]}px`),ai(a,"--swiper-centered-offset-after",`${i.size/2-p[p.length-1]/2}px`);const Y=-i.snapGrid[0],j=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(U=>U+Y),i.slidesGrid=i.slidesGrid.map(U=>U+j)}if(b!==d&&i.emit("slidesLengthChange"),v.length!==R&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),P.length!==S&&i.emit("slidesGridLengthChange"),r.watchSlidesProgress&&i.updateSlidesOffset(),i.emit("slidesUpdated"),!f&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const Y=`${r.containerModifierClass}backface-hidden`,j=i.el.classList.contains(Y);b<=r.maxBackfaceHiddenSlides?j||i.el.classList.add(Y):j&&i.el.classList.remove(Y)}}function aa(i){const o=this,r=[],a=o.virtual&&o.params.virtual.enabled;let c=0,s;typeof i=="number"?o.setTransition(i):i===!0&&o.setTransition(o.params.speed);const u=f=>a?o.slides[o.getSlideIndexByData(f)]:o.slides[f];if(o.params.slidesPerView!=="auto"&&o.params.slidesPerView>1)if(o.params.centeredSlides)(o.visibleSlides||[]).forEach(f=>{r.push(f)});else for(s=0;s<Math.ceil(o.params.slidesPerView);s+=1){const f=o.activeIndex+s;if(f>o.slides.length&&!a)break;r.push(u(f))}else r.push(u(o.activeIndex));for(s=0;s<r.length;s+=1)if(typeof r[s]<"u"){const f=r[s].offsetHeight;c=f>c?f:c}(c||c===0)&&(o.wrapperEl.style.height=`${c}px`)}function la(){const i=this,o=i.slides,r=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let a=0;a<o.length;a+=1)o[a].swiperSlideOffset=(i.isHorizontal()?o[a].offsetLeft:o[a].offsetTop)-r-i.cssOverflowAdjustment()}const Zs=(i,o,r)=>{o&&!i.classList.contains(r)?i.classList.add(r):!o&&i.classList.contains(r)&&i.classList.remove(r)};function ua(i=this&&this.translate||0){const o=this,r=o.params,{slides:a,rtlTranslate:c,snapGrid:s}=o;if(a.length===0)return;typeof a[0].swiperSlideOffset>"u"&&o.updateSlidesOffset();let u=-i;c&&(u=i),o.visibleSlidesIndexes=[],o.visibleSlides=[];let f=r.spaceBetween;typeof f=="string"&&f.indexOf("%")>=0?f=parseFloat(f.replace("%",""))/100*o.size:typeof f=="string"&&(f=parseFloat(f));for(let d=0;d<a.length;d+=1){const _=a[d];let b=_.swiperSlideOffset;r.cssMode&&r.centeredSlides&&(b-=a[0].swiperSlideOffset);const v=(u+(r.centeredSlides?o.minTranslate():0)-b)/(_.swiperSlideSize+f),P=(u-s[0]+(r.centeredSlides?o.minTranslate():0)-b)/(_.swiperSlideSize+f),p=-(u-b),C=p+o.slidesSizesGrid[d],E=p>=0&&p<=o.size-o.slidesSizesGrid[d],R=p>=0&&p<o.size-1||C>1&&C<=o.size||p<=0&&C>=o.size;R&&(o.visibleSlides.push(_),o.visibleSlidesIndexes.push(d)),Zs(_,R,r.slideVisibleClass),Zs(_,E,r.slideFullyVisibleClass),_.progress=c?-v:v,_.originalProgress=c?-P:P}}function ca(i){const o=this;if(typeof i>"u"){const b=o.rtlTranslate?-1:1;i=o&&o.translate&&o.translate*b||0}const r=o.params,a=o.maxTranslate()-o.minTranslate();let{progress:c,isBeginning:s,isEnd:u,progressLoop:f}=o;const d=s,_=u;if(a===0)c=0,s=!0,u=!0;else{c=(i-o.minTranslate())/a;const b=Math.abs(i-o.minTranslate())<1,v=Math.abs(i-o.maxTranslate())<1;s=b||c<=0,u=v||c>=1,b&&(c=0),v&&(c=1)}if(r.loop){const b=o.getSlideIndexByData(0),v=o.getSlideIndexByData(o.slides.length-1),P=o.slidesGrid[b],p=o.slidesGrid[v],C=o.slidesGrid[o.slidesGrid.length-1],E=Math.abs(i);E>=P?f=(E-P)/C:f=(E+C-p)/C,f>1&&(f-=1)}Object.assign(o,{progress:c,progressLoop:f,isBeginning:s,isEnd:u}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&o.updateSlidesProgress(i),s&&!d&&o.emit("reachBeginning toEdge"),u&&!_&&o.emit("reachEnd toEdge"),(d&&!s||_&&!u)&&o.emit("fromEdge"),o.emit("progress",c)}const An=(i,o,r)=>{o&&!i.classList.contains(r)?i.classList.add(r):!o&&i.classList.contains(r)&&i.classList.remove(r)};function ha(){const i=this,{slides:o,params:r,slidesEl:a,activeIndex:c}=i,s=i.virtual&&r.virtual.enabled,u=i.grid&&r.grid&&r.grid.rows>1,f=v=>Se(a,`.${r.slideClass}${v}, swiper-slide${v}`)[0];let d,_,b;if(s)if(r.loop){let v=c-i.virtual.slidesBefore;v<0&&(v=i.virtual.slides.length+v),v>=i.virtual.slides.length&&(v-=i.virtual.slides.length),d=f(`[data-swiper-slide-index="${v}"]`)}else d=f(`[data-swiper-slide-index="${c}"]`);else u?(d=o.find(v=>v.column===c),b=o.find(v=>v.column===c+1),_=o.find(v=>v.column===c-1)):d=o[c];d&&(u||(b=Jo(d,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!b&&(b=o[0]),_=Ko(d,`.${r.slideClass}, swiper-slide`)[0],r.loop&&!_===0&&(_=o[o.length-1]))),o.forEach(v=>{An(v,v===d,r.slideActiveClass),An(v,v===b,r.slideNextClass),An(v,v===_,r.slidePrevClass)}),i.emitSlidesClasses()}const Ki=(i,o)=>{if(!i||i.destroyed||!i.params)return;const r=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,a=o.closest(r());if(a){let c=a.querySelector(`.${i.params.lazyPreloaderClass}`);!c&&i.isElement&&(a.shadowRoot?c=a.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{a.shadowRoot&&(c=a.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}
17`),c&&!c.lazyPreloaderManaged&&c.remove())})),c&&!c.lazyPreloaderManaged&&c.remove()}},Bn=(i,o)=>{if(!i.slides[o])return;const r=i.slides[o].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},Zn=i=>{if(!i||i.destroyed||!i.params)return;let o=i.params.lazyPreloadPrevNext;const r=i.slides.length;if(!r||!o||o<0)return;o=Math.min(o,r);const a=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),c=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const u=c,f=[u-o];f.push(...Array.from({length:o}).map((d,_)=>u+a+_)),i.slides.forEach((d,_)=>{f.includes(d.column)&&Bn(i,_)});return}const s=c+a-1;if(i.params.rewind||i.params.loop)for(let u=c-o;u<=s+o;u+=1){const f=(u%r+r)%r;(f<c||f>s)&&Bn(i,f)}else for(let u=Math.max(c-o,0);u<=Math.min(s+o,r-1);u+=1)u!==c&&(u>s||u<c)&&Bn(i,u)};function da(i){const{slidesGrid:o,params:r}=i,a=i.rtlTranslate?i.translate:-i.translate;let c;for(let s=0;s<o.length;s+=1)typeof o[s+1]<"u"?a>=o[s]&&a<o[s+1]-(o[s+1]-o[s])/2?c=s:a>=o[s]&&a<o[s+1]&&(c=s+1):a>=o[s]&&(c=s);return r.normalizeSlideIndex&&(c<0||typeof c>"u")&&(c=0),c}function fa(i){const o=this,r=o.rtlTranslate?o.translate:-o.translate,{snapGrid:a,params:c,activeIndex:s,realIndex:u,snapIndex:f}=o;let d=i,_;const b=p=>{let C=p-o.virtual.slidesBefore;return C<0&&(C=o.virtual.slides.length+C),C>=o.virtual.slides.length&&(C-=o.virtual.slides.length),C};if(typeof d>"u"&&(d=da(o)),a.indexOf(r)>=0)_=a.indexOf(r);else{const p=Math.min(c.slidesPerGroupSkip,d);_=p+Math.floor((d-p)/c.slidesPerGroup)}if(_>=a.length&&(_=a.length-1),d===s&&!o.params.loop){_!==f&&(o.snapIndex=_,o.emit("snapIndexChange"));return}if(d===s&&o.params.loop&&o.virtual&&o.params.virtual.enabled){o.realIndex=b(d);return}const v=o.grid&&c.grid&&c.grid.rows>1;let P;if(o.virtual&&c.virtual.enabled)c.loop?P=b(d):P=d;else if(v){const p=o.slides.find(E=>E.column===d);let C=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(C)&&(C=Math.max(o.slides.indexOf(p),0)),P=Math.floor(C/c.grid.rows)}else if(o.slides[d]){const p=o.slides[d].getAttribute("data-swiper-slide-index");p?P=parseInt(p,10):P=d}else P=d;Object.assign(o,{previousSnapIndex:f,snapIndex:_,previousRealIndex:u,realIndex:P,previousIndex:s,activeIndex:d}),o.initialized&&Zn(o),o.emit("activeIndexChange"),o.emit("snapIndexChange"),(o.initialized||o.params.runCallbacksOnInit)&&(u!==P&&o.emit("realIndexChange"),o.emit("slideChange"))}function pa(i,o){const r=this,a=r.params;let c=i.closest(`.${a.slideClass}, swiper-slide`);!c&&r.isElement&&o&&o.length>
vendor: 50,278 bytes, line 17
171&&o.includes(i)&&[...o.slice(o.indexOf(i)+1,o.length)].forEach(f=>{!c&&f.matches&&f.matches(`.${a.slideClass}, swiper-slide`)&&(c=f)});let s=!1,u;if(c){for(let f=0;f<r.slides.length;f+=1)if(r.slides[f]===c){s=!0,u=f;break}}if(c&&s)r.clickedSlide=c,r.virtual&&r.params.virtual.enabled?r.clickedIndex=parseInt(c.getAttribute("data-swiper-slide-index"),10):r.clickedIndex=u;else{r.clickedSlide=void 0,r.clickedIndex=void 0;return}a.slideToClickedSlide&&r.clickedIndex!==void 0&&r.clickedIndex!==r.activeIndex&&r.slideToClickedSlide()}var ma={updateSize:ra,updateSlides:oa,updateAutoHeight:aa,updateSlidesOffset:la,updateSlidesProgress:ua,updateProgress:ca,updateSlidesClasses:ha,updateActiveIndex:fa,updateClickedSlide:pa};function _a(i=this.isHorizontal()?"x":"y"){const o=this,{params:r,rtlTranslate:a,translate:c,wrapperEl:s}=o;if(r.virtualTranslate)return a?-c:c;if(r.cssMode)return c;let u=qo(s,i);return u+=o.cssOverflowAdjustment(),a&&(u=-u),u||0}function ga(i,o){const r=this,{rtlTranslate:a,params:c,wrapperEl:s,progress:u}=r;let f=0,d=0;const _=0;r.isHorizontal()?f=a?-i:i:d=i,c.roundLengths&&(f=Math.floor(f),d=Math.floor(d)),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?f:d,c.cssMode?s[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-f:-d:c.virtualTranslate||(r.isHorizontal()?f-=r.cssOverflowAdjustment():d-=r.cssOverflowAdjustment(),s.style.transform=`translate3d(${f}px, ${d}px, ${_}px)`);let b;const v=r.maxTranslate()-r.minTranslate();v===0?b=0:b=(i-r.minTranslate())/v,b!==u&&r.updateProgress(i),r.emit("setTranslate",r.translate,o)}function va(){return-this.snapGrid[0]}function ya(){return-this.snapGrid[this.snapGrid.length-1]}function ba(i=0,o=this.params.speed,r=!0,a=!0,c){const s=this,{params:u,wrapperEl:f}=s;if(s.animating&&u.preventInteractionOnTransition)return!1;const d=s.minTranslate(),_=s.maxTranslate();let b;if(a&&i>d?b=d:a&&i<_?b=_:b=i,s.updateProgress(b),u.cssMode){const v=s.isHorizontal();if(o===0)f[v?"scrollLeft":"scrollTop"]=-b;else{if(!s.support.smoothScroll)return tr({swiper:s,targetPosition:-b,side:v?"left":"top"}),!0;f.scrollTo({[v?"left":"top"]:-b,behavior:"smooth"})}return!0}return o===0?(s.setTransition(0),s.setTranslate(b),r&&(s.emit("beforeTransitionStart",o,c),s.emit("transitionEnd"))):(s.setTransition(o),s.setTranslate(b),r&&(s.emit("beforeTransitionStart",o,c),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(P){!s||s.destroyed||P.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,r&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var wa={getTranslate:_a,setTranslate:ga,minTranslate:va,maxTranslate:ya,translateTo:ba};function xa(i,o){const r=this;r.params.cssMode||(r.wrapperEl.style.transitionDuration=`${i}ms`,r.wrapperEl.style.transitionDelay=i===0?"0ms":""),r.emit("setTransition",i,o)}function rr({swiper:i,runCallbacks:o,direction:r,step:a}){const{activeIndex:c,previousIndex:s}=i;let u=r;u||(c>s?u="next":c<s?u="prev":u="reset"),i.emit(`transition${a}`),o&&u==="reset"?i.emit(`slideResetTransition${a}`):o&&c!==s&&(i.emit(`slideChangeTransition${a}`),u==="next"?i.emit(`slideNextTransition${a}`):i.emit(`slidePrevTransition${a}`))}function La(i=!0,o){const r=this,{params:a}=r;a.cssMode||(a.autoHeight&&r.updateAutoHeight(),rr({swiper:r,runCallbacks:i,direction:o,step:"Start"}))}function Sa(i=!0,o){const r=this,{params:a}=r;r.animating=!1,!a.cssMode&&(r.setTransition(0),rr({swiper:r,runCallbacks:i,direction:o,step:"End"}))}var Ta={setTransition:xa,transitionStart:La,transitionEnd:Sa};function Pa(i=0,o,r=!0,a,c){typeof i=="string"&&(i=parseInt(i,10));const s=this;let u=i;u<0&&(u=0);const{params:f,snapGrid:d,slidesGrid:_,previousIndex:b,activeIndex:v,rtlTranslate:P,wrapperEl:p,enabled:C}=s;if(!C&&!a&&!c||s.destroyed||s.animating&&f.preventInteractionOnTransition)return!1;typeof o>"u"&&(o=s.params.speed);const E=Math.min(s.params.slidesPerGroupSkip,u);let R=E+Math.floor((u-E)/s.params.slidesPerGroup);R>=d.length&&(R=d.length-1);const S=-d[R];if(f.normalizeSlideIndex)for(let $=0;$<_.length;$+=1){const V=-Math.floor(S*100),et=Math.floor(_[$]*100),Y=Math.floor(_[$+1]*100);typeof _[$+1]<"u"?V>=et&&V<Y-(Y-et)/2?u=$:V>=et&&V<Y&&(u=$+1):V>=et&&(u=$)}if(s.initialized&&u!==v&&(!s.allowSlideNext&&(P?S>s.translate&&S>s.minTranslate():S<s.translate&&S<s.minTranslate())||!s.allowSlidePrev&&S>s.translate&&S>s.maxTranslate()&&(v||0)!==u))return!1;u!==(b||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(S);let M;u>v?M="next":u<v?M="prev":M="reset";const z=s.virtual&&s.params.virtual.enabled;if(!(z&&c)&&(P&&-S===s.translate||!P&&S===s.translate))return s.updateActiveIndex(u),f.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),f.effect!=="slide"&&s.setTranslate(S),M!=="reset"&&(s.transitionStart(r,M),s.transitionEnd(r,M)),!1;if(f.cssMode){const $=s.isHorizontal(),V=P?S:-S;if(o===0)z&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),z&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[$?"scrollLeft":"scrollTop"]=V})):p[$?"scrollLeft":"scrollTop"]=V,z&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return tr({swiper:s,targetPosition:V,side:$?"left":"top"}),!0;p.scrollTo({[$?"left":"top"]:V,behavior:"smooth"})}return!0}const at=sr().isSafari;return z&&!c&&at&&s.isElement&&s.virtual.update(!1,!1,u),s.setTransition(o),s.setTranslate(S),s.updateActiveIndex(u),s.updateSlidesClasses(),s.emit("beforeTransitionStart",o,a),s.transitionStart(r,M),o===0?s.transitionEnd(r,M):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(V){!s||s.destroyed||V.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,M))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Ca(i=0,o,r=!0,a){typeof i=="string"&&(i=parseInt(i,10));const c=this;if(c.destroyed)return;typeof o>"u"&&(o=c.params.speed);const s=c.grid&&c.params.grid&&c.params.grid.rows>1;let u=i;if(c.params.loop)if(c.virtual&&c.params.virtual.enabled)u=u+c.virtual.slidesBefore;else{let f;if(s){const E=u*c.params.grid.rows;f=c.slides.find(R=>R.getAttribute("data-swiper-slide-index")*1===E).column}else f=c.getSlideIndexByData(u);const d=s?Math.ceil(c.slides.length/c.params.grid.rows):c.slides.length,{centeredSlides:_,slidesOffsetBefore:b,slidesOffsetAfter:v}=c.params,P=_||!!b||!!v;let p=c.params.slidesPerView;p==="auto"?p=c.slidesPerViewDynamic():(p=Math.ceil(parseFloat(c.params.slidesPerView,10)),P&&p%2===0&&(p=p+1));let C=d-f<p;if(P&&(C=C||f<Math.ceil(p/2)),a&&P&&c.params.slidesPerView!=="auto"&&!s&&(C=!1),C){const E=P?f<c.activeIndex?"prev":"next":f-c.activeIndex-1<c.params.slidesPerView?"next":"prev";c.loopFix({direction:E,slideTo:!0,activeSlideIndex:E==="next"?f+1:f-d+1,slideRealIndex:E==="next"?c.realIndex:void 0})}if(s){const E=u*c.params.grid.rows;u=c.slides.find(R=>R.getAttribute("data-swiper-slide-index")*1===E).column}else u=c.getSlideIndexByData(u)}return requestAnimationFrame(()=>{c.slideTo(u,o,r,a)}),c}function Ea(i,o=!0,r){const a=this,{enabled:c,params:s,animating:u}=a;if(!c||a.destroyed)return a;typeof i>"u"&&(i=a.params.speed);let f=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(f=Math.max(a.slidesPerViewDynamic("current",!0),1));const d=a.activeIndex<s.slidesPerGroupSkip?1:f,_=a.virtual&&s.virtual.enabled;if(s.loop){if(u&&!_&&s.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{a.slideTo(a.activeIndex+d,i,o,r)}),!0}return s.rewind&&a.isEnd?a.slideTo(0,i,o,r):a.slideTo(a.activeIndex+d,i,o,r)}function Ma(i,o=!0,r){const a=this,{params:c,snapGrid:s,slidesGrid:u,rtlTranslate:f,enabled:d,animating:_}=a;if(!d||a.destroyed)return a;typeof i>"u"&&(i=a.params.speed);const b=a.virtual&&c.virtual.enabled;if(c.loop){if(_&&!b&&c.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}const v=f?a.translate:-a.translate;function P(M){return M<0?-Math.floor(Math.abs(M)):Math.floor(M)}const p=P(v),C=s.map(M=>P(M)),E=c.freeMode&&c.freeMode.enabled;let R=s[C.indexOf(p)-1];if(typeof R>"u"&&(c.cssMode||E)){let M;s.forEach((z,H)=>{p>=z&&(M=H)}),typeof M<"u"&&(R=E?s[M]:s[M>0?M-1:M])}let S=0;if(typeof R<"u"&&(S=u.indexOf(R),S<0&&(S=a.activeIndex-1),c.slidesPerView==="auto"&&c.slidesPerGroup===1&&c.slidesPerGroupAuto&&(S=S-a.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),c.rewind&&a.isBeginning){const M=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(M,i,o,r)}else if(c.loop&&a.activeIndex===0&&c.cssMode)return requestAnimationFrame(()=>{a.slideTo(S,i,o,r)}),!0;return a.slideTo(S,i,o,r)}function Oa(i,o=!0,r){const a=this;if(!a.destroyed)return typeof i>"u"&&(i=a.params.speed),a.slideTo(a.activeIndex,i,o,r)}function ka(i,o=!0,r,a=.5){const c=this;if(c.destroyed)return;typeof i>"u"&&(i=c.params.speed);let s=c.activeIndex;const u=Math.min(c.params.slidesPerGroupSkip,s),f=u+Math.floor((s-u)/c.params.slidesPerGroup),d=c.rtlTranslate?c.translate:-c.translate;if(d>=c.snapGrid[f]){const _=c.snapGrid[f],b=c.snapGrid[f+1];d-_>(b-_)*a&&(s+=c.params.slidesPerGroup)}else{const _=c.snapGrid[f-1],b=c.snapGrid[f];d-_<=(b-_)*a&&(s-=c.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,c.slidesGrid.length-1),c.slideTo(s,i,o,r)}function Ia(){const i=this;if(i.destroyed)return;const{params:o,slidesEl:r}=i,a=o.slidesPerView==="auto"?i.slidesPerViewDynamic():o.slidesPerView;let c=i.getSlideIndexWhenGrid(i.clickedIndex),s;const u=i.isElement?"swiper-slide":`.${o.slideClass}`,f=i.grid&&i.params.grid&&i.params.grid.rows>1;if(o.loop){if(i.animating)return;s=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),o.centeredSlides?i.slideToLoop(s):c>(f?(i.slides.length-a)/2-(i.params.grid.rows-1):i.slides.length-a)?(i.loopFix(),c=i.getSlideIndex(Se(r,`${u}[data-swiper-slide-index="${s}"]`)[0]),Qs(()=>{i.slideTo(c)})):i.slideTo(c)}else i.slideTo(c)}var za={slideTo:Pa,slideToLoop:Ca,slideNext:Ea,slidePrev:Ma,slideReset:Oa,slideToClosest:ka,slideToClickedSlide:Ia};function Aa(i,o){const r=this,{params:a,slidesEl:c}=r;if(!a.loop||r.virtual&&r.params.virtual.enabled)return;const s=()=>{Se(c,`.${a.slideClass}, swiper-slide`).forEach((C,E)=>{C.setAttribute("data-swiper-slide-index",E)})},u=()=>{const p=Se(c,`.${a.slideBlankClass}`);p.forEach(C=>{C.remove()}),p.length>0&&(r.recalcSlides(),r.updateSlides())},f=r.grid&&a.grid&&a.grid.rows>1;a.loopAddBlankSlides&&(a.slidesPerGroup>1||f)&&u();const d=a.slidesPerGroup*(f?a.grid.rows:1),_=r.slides.length%d!==0,b=f&&r.slides.length%a.grid.rows!==0,v=p=>{for(let C=0;C<p;C+=1){const E=r.isElement?en("swiper-slide",[a.slideBlankClass]):en("div",[a.slideClass,a.slideBlankClass]);r.slidesEl.append(E)}};if(_){if(a.loopAddBlankSlides){const p=d-r.slides.length%d;v(p),r.recalcSlides(),r.updateSlides()}else tn("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(b){if(a.loopAddBlankSlides){const p=a.grid.rows-r.slides.length%a.grid.rows;v(p),r.recalcSlides(),r.updateSlides()}else tn("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();const P=a.centeredSlides||!!a.slidesOffsetBefore||!!a.slidesOffsetAfter;r.loopFix({slideRealIndex:i,direction:P?void 0:"next",initial:o})}function Ba({slideRealIndex:i,slideTo:o=!0,direction:r,setTranslate:a,activeSlideIndex:c,initial:s,byController:u,byMousewheel:f}={}){const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:_,allowSlidePrev:b,allowSlideNext:v,slidesEl:P,params:p}=d,{centeredSlides:C,slidesOffsetBefore:E,slidesOffsetAfter:R,initialSlide:S}=p,M=C||!!E||!!R;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&p.virtual.enabled){o&&(!M&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):M&&d.snapIndex<p.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=b,d.allowSlideNext=v,d.emit("loopFix");return}let z=p.slidesPerView;z==="auto"?z=d.slidesPerViewDynamic():(z=Math.ceil(parseFloat(p.slidesPerView,10)),M&&z%2===0&&(z=z+1));const H=p.slidesPerGroupAuto?z:p.slidesPerGroup;let W=M?Math.max(H,Math.ceil(z/2)):H;W%H!==0&&(W+=H-W%H),W+=p.loopAdditionalSlides,d.loopedSlides=W;const at=d.grid&&p.grid&&p.grid.rows>1;_.length<z+W||d.params.effect==="cards"&&_.length<z+W*2?tn("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):at&&p.grid.fill==="row"&&tn("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const $=[],V=[],et=at?Math.ceil(_.length/p.grid.rows):_.length,Y=s&&et-S<z&&!M;let j=Y?S:d.activeIndex;typeof c>"u"?c=d.getSlideIndex(_.find(Z=>Z.classList.contains(p.slideActiveClass))):j=c;const U=r==="next"||!r,B=r==="prev"||!r;let q=0,lt=0;const st=(at?_[c].column:c)+(M&&typeof a>"u"?-z/2+.5:0);if(st<W){q=Math.max(W-st,H);for(let Z=0;Z<W-st;Z+=1){const ut=Z-Math.floor(Z/et)*et;if(at){const tt=et-ut-1;for(let pt=_.length-1;pt>=0;pt-=1)_[pt].column===tt&&$.push(pt)}else $.push(et-ut-1)}}else if(st+z>et-W){lt=Math.max(st-(et-W*2),H),Y&&(lt=Math.max(lt,z-et+S+1));for(let Z=0;Z<lt;Z+=1){const ut=Z-Math.floor(Z/et)*et;at?_.forEach((tt,pt)=>{tt.column===ut&&V.push(pt)}):V.push(ut)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),d.params.effect==="cards"&&_.length<z+W*2&&(V.includes(c)&&V.splice(V.indexOf(c),1),$.includes(c)&&$.splice($.indexOf(c),1)),B&&$.forEach(Z=>{_[Z].swiperLoopMoveDOM=!0,P.prepend(_[Z]),_[Z].swiperLoopMoveDOM=!1}),U&&V.forEach(Z=>{_[Z].swiperLoopMoveDOM=!0,P.append(_[Z]),_[Z].swiperLoopMoveDOM=!1}),d.recalcSlides(),p.slidesPerView==="auto"?d.updateSlides():at&&($.length>0&&B||V.length>0&&U)&&d.slides.forEach((Z,ut)=>{d.grid.updateSlide(ut,Z,d.slides)}),p.watchSlidesProgress&&d.updateSlidesOffset(),o){if($.length>0&&B){if(typeof i>"u"){const Z=d.slidesGrid[j],tt=d.slidesGrid[j+q]-Z;f?d.setTranslate(d.translate-tt):(d.slideTo(j+Math.ceil(q),0,!1,!0),a&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-tt,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-tt))}else if(a){const Z=at?$.length/p.grid.rows:$.length;d.slideTo(d.activeIndex+Z,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(V.length>0&&U)if(typeof i>"u"){const Z=d.slidesGrid[j],tt=d.slidesGrid[j-lt]-Z;f?d.setTranslate(d.translate-tt):(d.slideTo(j-lt,0,!1,!0),a&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-tt,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-tt))}else{const Z=at?V.length/p.grid.rows:V.length;d.slideTo(d.activeIndex-Z,0,!1,!0)}}if(d.allowSlidePrev=b,d.allowSlideNext=v,d.controller&&d.controller.control&&!u){const Z={slideRealIndex:i,direction:r,setTranslate:a,activeSlideIndex:c,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(ut=>{!ut.destroyed&&ut.params.loop&&ut.loopFix({...Z,slideTo:ut.params.slidesPerView===p.slidesPerView?o:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...Z,slideTo:d.controller.control.params.slidesPerView===p.slidesPerView?o:!1})}d.emit("loopFix")}function Fa(){const i=this,{params:o,slidesEl:r}=i;if(!o.loop||!r||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const a=[];i.slides.forEach(c=>{const s=typeof c.swiperSlideIndex>"u"?c.getAttribute("data-swiper-slide-index")*1:c.swiperSlideIndex;a[s]=c}),i.slides.forEach(c=>{c.removeAttribute("data-swiper-slide-index")}),a.forEach(c=>{r.append(c)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var Da={loopCreate:Aa,loopFix:Ba,loopDestroy:Fa};function Na(i){const o=this;if(!o.params.simulateTouch||o.params.watchOverflow&&o.isLocked||o.params.cssMode)return;const r=o.params.touchEventsTarget==="container"?o.el:o.wrapperEl;o.isElement&&(o.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=i?"grabbing":"grab",o.isElement&&requestAnimationFrame(()=>{o.__preventObserver__=!1})}function Ra(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var Za={setGrabCursor:Na,unsetGrabCursor:Ra};function Ha(i,o=this){function r(a){if(!a||a===Te()||a===Jt())return null;a.assignedSlot&&(a=a.assignedSlot);const c=a.closest(i);return!c&&!a.getRootNode?null:c||r(a.getRootNode().host)}return r(o)}function Hs(i,o,r){const a=Jt(),{params:c}=i,s=c.edgeSwipeDetection,u=c.edgeSwipeThreshold;return s&&(r<=u||r>=a.innerWidth-u)?s==="prevent"?(o.preventDefault(),!0):!1:!0}function Ga(i){const o=this;if(o.destroyed)return;const r=Te();let a=i;a.originalEvent&&(a=a.originalEvent);const c=o.touchEventsData;if(a.type==="pointerdown"){if(c.pointerId!==null&&c.pointerId!==a.pointerId)return;c.pointerId=a.pointerId}else a.type==="touchstart"&&a.targetTouches.length===1&&(c.touchId=a.targetTouches[0].identifier);if(a.type==="touchstart"){Hs(o,a,a.targetTouches[0].pageX);return}const{params:s,touches:u,enabled:f}=o;if(!f||!s.simulateTouch&&a.pointerType==="mouse"||o.animating&&s.preventInteractionOnTransition)return;!o.animating&&s.cssMode&&s.loop&&o.loopFix();let d=a.target;if(s.touchEventsTarget==="wrapper"&&!Xo(d,o.wrapperEl)||"which"in a&&a.which===3||"button"in a&&a.button>0||c.isTouched&&c.isMoved)return;const _=!!s.noSwipingClass&&s.noSwipingClass!=="",b=a.composedPath?a.composedPath():a.path;_&&a.target&&a.target.shadowRoot&&b&&(d=b[0]);const v=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,P=!!(a.target&&a.target.shadowRoot);if(s.noSwiping&&(P?Ha(v,d):d.closest(v))){o.allowClick=!0;return}if(s.swipeHandler&&!d.closest(s.swipeHandler))return;u.currentX=a.pageX,u.currentY=a.pageY;const p=u.currentX,C=u.currentY;if(!Hs(o,a,p))return;Object.assign(c,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),u.startX=p,u.startY=C,c.touchStartTime=Qi(),o.allowClick=!0,o.updateSize(),o.swipeDirection=void 0,s.threshold>0&&(c.allowThresholdMove=!1);let E=!0;d.matches(c.focusableElements)&&(E=!1,d.nodeName==="SELECT"&&(c.isTouched=!1)),r.activeElement&&r.activeElement.matches(c.focusableElements)&&r.activeElement!==d&&(a.pointerType==="mouse"||a.pointerType!=="mouse"&&!d.matches(c.focusableElements))&&r.activeElement.blur();const R=E&&o.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||R)&&!d.isContentEditable&&a.preventDefault(),s.freeMode&&s.freeMode.enabled&&o.freeMode&&o.animating&&!s.cssMode&&o.freeMode.onTouchStart(),o.emit("touchStart",a)}function Wa(i){const o=Te(),r=this;if(r.destroyed)return;const a=r.touchEventsData,{params:c,touches:s,rtlTranslate:u,enabled:f}=r;if(!f||!c.simulateTouch&&i.pointerType==="mouse")return;let d=i;if(d.originalEvent&&(d=d.originalEvent),d.type==="pointermove"&&(a.touchId!==null||d.pointerId!==a.pointerId))return;let _;if(d.type==="touchmove"){if(_=[...d.changedTouches].find(W=>W.identifier===a.touchId),!_||_.identifier!==a.touchId)return}else _=d;if(!a.isTouched){a.startMoving&&a.isScrolling&&r.emit("touchMoveOpposite",d);return}const b=_.pageX,v=_.pageY;if(d.preventedByNestedSwiper){s.startX=b,s.startY=v;return}if(!r.allowTouchMove){d.target.matches(a.focusableElements)||(r.allowClick=!1),a.isTouched&&(Object.assign(s,{startX:b,startY:v,currentX:b,currentY:v}),a.touchStartTime=Qi());return}if(c.touchReleaseOnEdges&&!c.loop)if(r.isVertical()){if(v<s.startY&&r.translate<=r.maxTranslate()||v>s.startY&&r.translate>=r.minTranslate()){a.isTouched=!1,a.isMoved=!1;return}}else{if(u&&(b>s.startX&&-r.translate<=r.maxTranslate()||b<s.startX&&-r.translate>=r.minTranslate()))return;if(!u&&(b<s.startX&&r.translate<=r.maxTranslate()||b>s.startX&&r.translate>=r.minTranslate()))return}if(o.activeElement&&o.activeElement.matches(a.focusableElements)&&o.activeElement!==d.target&&d.pointerType!=="mouse"&&o.activeElement.blur(),o.activeElement&&d.target===o.activeElement&&d.target.matches(a.focusableElements)){a.isMoved=!0,r.allowClick=!1;return}a.allowTouchCallbacks&&r.emit("touchMove",d),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=b,s.currentY=v;const P=s.currentX-s.startX,p=s.currentY-s.startY;if(r.params.threshold&&Math.sqrt(P**2+p**2)<r.params.threshold)return;if(typeof a.isScrolling>"u"){let W;r.isHorizontal()&&s.currentY===s.startY||r.isVertical()&&s.currentX===s.startX?a.isScrolling=!1:P*P+p*p>=25&&(W=Math.atan2(Math.abs(p),Math.abs(P))*180/Math.PI,a.isScrolling=r.isHorizontal()?W>c.touchAngle:90-W>c.touchAngle)}if(a.isScrolling&&r.emit("touchMoveOpposite",d),typeof a.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(a.startMoving=!0),a.isScrolling||d.type==="touchmove"&&a.preventTouchMoveFromPointerMove){a.isTouched=!1;return}if(!a.startMoving)return;r.allowClick=!1,!c.cssMode&&d.cancelable&&d.preventDefault(),c.touchMoveStopPropagation&&!c.nested&&d.stopPropagation();let C=r.isHorizontal()?P:p,E=r.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;c.oneWayMovement&&(C=Math.abs(C)*(u?1:-1),E=Math.abs(E)*(u?1:-1)),s.diff=C,C*=c.touchRatio,u&&(C=-C,E=-E);const R=r.touchesDirection;r.swipeDirection=C>0?"prev":"next",r.touchesDirection=E>0?"prev":"next";const S=r.params.loop&&!c.cssMode,M=r.touchesDirection==="next"&&r.allowSlideNext||r.touchesDirection==="prev"&&r.allowSlidePrev;if(!a.isMoved){if(S&&M&&r.loopFix({direction:r.swipeDirection}),a.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const W=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});r.wrapperEl.dispatchEvent(W)}a.allowMomentumBounce=!1,c.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",d)}if(new Date().getTime(),c._loopSwapReset!==!1&&a.isMoved&&a.allowThresholdMove&&R!==r.touchesDirection&&S&&M&&Math.abs(C)>=1){Object.assign(s,{startX:b,startY:v,currentX:b,currentY:v,startTranslate:a.currentTranslate}),a.loopSwapReset=!0,a.startTranslate=a.currentTranslate;return}r.emit("sliderMove",d),a.isMoved=!0,a.currentTranslate=C+a.startTranslate;let z=!0,H=c.resistanceRatio;if(c.touchReleaseOnEdges&&(H=0),C>0?(S&&M&&a.allowThresholdMove&&a.currentTranslate>(c.centeredSlides?r.minTranslate()-r.slidesSizesGrid[r.activeIndex+1]-(c.slidesPerView!=="auto"&&r.slides.length-c.slidesPerView>=2?r.slidesSizesGrid[r.activeIndex+1]+r.params.spaceBetween:0)-r.params.spaceBetween:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),a.currentTranslate>r.minTranslate()&&(z=!1,c.resistance&&(a.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+a.startTranslate+C)**H))):C<0&&(S&&M&&a.allowThresholdMove&&a.currentTranslate<(c.centeredSlides?r.maxTranslate()+r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween+(c.slidesPerView!=="auto"&&r.slides.length-c.slidesPerView>=2?r.slidesSizesGrid[r.slidesSizesGrid.length-1]+r.params.spaceBetween:0):r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(c.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(c.slidesPerView,10)))}),a.currentTranslate<r.maxTranslate()&&(z=!1,c.resistance&&(a.currentTranslate=r.maxTranslate()+1-(r.maxTranslate()-a.startTranslate-C)**H))),z&&(d.preventedByNestedSwiper=!0),!r.allowSlideNext&&r.swipeDirection==="next"&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!r.allowSlidePrev&&r.swipeDirection==="prev"&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(a.currentTranslate=a.startTranslate),c.threshold>0)if(Math.abs(C)>c.threshold||a.allowThresholdMove){if(!a.allowThresholdMove){a.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,a.currentTranslate=a.startTranslate,s.diff=r.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{a.currentTranslate=a.startTranslate;return}!c.followFinger||c.cssMode||((c.freeMode&&c.freeMode.enabled&&r.freeMode||c.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),c.freeMode&&c.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(a.currentTranslate),r.setTranslate(a.currentTranslate))}function Va(i){const o=this;if(o.destroyed)return;const r=o.touchEventsData;let a=i;a.originalEvent&&(a=a.originalEvent);let c;if(a.type==="touchend"||a.type==="touchcancel"){if(c=[...a.changedTouches].find(W=>W.identifier===r.touchId),!c||c.identifier!==r.touchId)return}else{if(r.touchId!==null||a.pointerId!==r.pointerId)return;c=a}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(a.type)&&!(["pointercancel","contextmenu"].includes(a.type)&&(o.browser.isSafari||o.browser.isWebView)))return;r.pointerId=null,r.touchId=null;const{params:u,touches:f,rtlTranslate:d,slidesGrid:_,enabled:b}=o;if(!b||!u.simulateTouch&&a.pointerType==="mouse")return;if(r.allowTouchCallbacks&&o.emit("touchEnd",a),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&u.grabCursor&&o.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}u.grabCursor&&r.isMoved&&r.isTouched&&(o.allowSlideNext===!0||o.allowSlidePrev===!0)&&o.setGrabCursor(!1);const v=Qi(),P=v-r.touchStartTime;if(o.allowClick){const W=a.path||a.composedPath&&a.composedPath();o.updateClickedSlide(W&&W[0]||a.target,W),o.emit("tap click",a),P<300&&v-r.lastClickTime<300&&o.emit("doubleTap doubleClick",a)}if(r.lastClickTime=Qi(),Qs(()=>{o.destroyed||(o.allowClick=!0)}),!r.isTouched||!r.isMoved||!o.swipeDirection||f.diff===0&&!r.loopSwapReset||r.currentTranslate===r.startTranslate&&!r.loopSwapReset){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let p;if(u.followFinger?p=d?o.translate:-o.translate:p=-r.currentTranslate,u.cssMode)return;if(u.freeMode&&u.freeMode.enabled){o.freeMode.onTouchEnd({currentPos:p});return}const C=p>=-o.maxTranslate()&&!o.params.loop;let E=0,R=o.slidesSizesGrid[0];for(let W=0;W<_.length;W+=W<u.slidesPerGroupSkip?1:u.slidesPerGroup){const at=W<u.slidesPerGroupSkip-1?1:u.slidesPerGroup;typeof _[W+at]<"u"?(C||p>=_[W]&&p<_[W+at])&&(E=W,R=_[W+at]-_[W]):(C||p>=_[W])&&(E=W,R=_[_.length-1]-_[_.length-2])}let S=null,M=null;u.rewind&&(o.isBeginning?M=u.virtual&&u.virtual.enabled&&o.virtual?o.virtual.slides.length-1:o.slides.length-1:o.isEnd&&(S=0));const z=(p-_[E])/R,H=E<u.slidesPerGroupSkip-1?1:u.slidesPerGroup;if(P>u.longSwipesMs){if(!u.longSwipes){o.slideTo(o.activeIndex);return}o.swipeDirection==="next"&&(z>=u.longSwipesRatio?o.slideTo(u.rewind&&o.isEnd?S:E+H):o.slideTo(E)),o.swipeDirection==="prev"&&(z>1-u.longSwipesRatio?o.slideTo(E+H):M!==null&&z<0&&Math.abs(z)>u.longSwipesRatio?o.slideTo(M):o.slideTo(E))}else{if(!u.shortSwipes){o.slideTo(o.activeIndex);return}o.navigation&&(a.target===o.navigation.nextEl||a.target===o.navigation.prevEl)?a.target===o.navigation.nextEl?o.slideTo(E+H):o.slideTo(E):(o.swipeDirection==="next"&&o.slideTo(S!==null?S:E+H),o.swipeDirection==="prev"&&o.slideTo(M!==null?M:E))}}function Gs(){const i=this,{params:o,el:r}=i;if(r&&r.offsetWidth===0)return;o.breakpoints&&i.setBreakpoint();const{allowSlideNext:a,allowSlidePrev:c,snapGrid:s}=i,u=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const f=u&&o.loop;if((o.slidesPerView==="auto"||o.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!f){const d=u?i.virtual.slides:i.slides;i.slideTo(d.length-1,0,!1,!0)}else i.params.loop&&!u?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0);i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=c,i.allowSlideNext=a,i.params.watchOverflow&&s!==i.snapGrid&&i.checkOverflow()}function ja(i){const o=this;o.destroyed||o.enabled&&(o.allowClick||(o.params.preventClicks&&i.preventDefault(),o.params.preventClicksPropagation&&o.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function $a(){const i=this;if(i.destroyed)return;const{wrapperEl:o,rtlTranslate:r,enabled:a}=i;if(!a)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-o.scrollLeft:i.translate=-o.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let c;const s=i.maxTranslate()-i.minTranslate();s===0?c=0:c=(i.translate-i.minTranslate())/s,c!==i.progress&&i.updateProgress(r?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function qa(i){const o=this;o.destroyed||(Ki(o,i.target),!(o.params.cssMode||o.params.slidesPerView!=="auto"&&!o.params.autoHeight)&&o.update())}function Ua(){const i=this;i.destroyed||i.documentTouchHandlerProceeded||(i.documentTouchHandlerProceeded=!0,i.params.touchReleaseOnEdges&&(i.el.style.touchAction="auto"))}const or=(i,o)=>{const r=Te(),{params:a,el:c,wrapperEl:s,device:u}=i,f=!!a.nested,d=o==="on"?"addEventListener":"removeEventListener",_=o;!c||typeof c=="string"||(r[d]("touchstart",i.onDocumentTouchStart,{passive:!1,capture:f}),c[d]("touchstart",i.onTouchStart,{passive:!1}),c[d]("pointerdown",i.onTouchStart,{passive:!1}),r[d]("touchmove",i.onTouchMove,{passive:!1,capture:f}),r[d]("pointermove",i.onTouchMove,{passive:!1,capture:f}),r[d]("touchend",i.onTouchEnd,{passive:!0}),r[d]("pointerup",i.onTouchEnd,{passive:!0}),r[d]("pointercancel",i.onTouchEnd,{passive:!0}),r[d]("touchcancel",i.onTouchEnd,{passive:!0}),r[d]("pointerout",i.onTouchEnd,{passive:!0}),r[d]("pointerleave",i.onTouchEnd,{passive:!0}),r[d]("contextmenu",i.onTouchEnd,{passive:!0}),(a.preventClicks||a.preventClicksPropagation)&&c[d]("click",i.onClick,!0),a.cssMode&&s[d]("scroll",i.onScroll),a.updateOnWindowResize?i[_](u.ios||u.android?"resize orientationchange observerUpdate":"resize observerUpdate",Gs,!0):i[_]("observerUpdate",Gs,!0),c[d]("load",i.onLoad,{capture:!0}))};function Ya(){const i=this,{params:o}=i;i.onTouchStart=Ga.bind(i),i.onTouchMove=Wa.bind(i),i.onTouchEnd=Va.bind(i),i.onDocumentTouchStart=Ua.bind(i),o.cssMode&&(i.onScroll=$a.bind(i)),i.onClick=ja.bind(i),i.onLoad=qa.bind(i),or(i,"on")}function Xa(){or(this,"off")}var Ka={attachEvents:Ya,detachEvents:Xa};const Ws=(i,o)=>i.grid&&o.grid&&o.grid.rows>1;function Ja(){const i=this,{realIndex:o,initialized:r,params:a,el:c}=i,s=a.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const u=Te(),f=a.breakpointsBase==="window"||!a.breakpointsBase?a.breakpointsBase:"container",d=["window","container"].includes(a.breakpointsBase)||!a.breakpointsBase?i.el:u.querySelector(a.breakpointsBase),_=i.getBreakpoint(s,f,d);if(!_||i.currentBreakpoint===_)return;const v=(_ in s?s[_]:void 0)||i.originalParams,P=Ws(i,a),p=Ws(i,v),C=i.params.grabCursor,E=v.grabCursor,R=a.enabled;P&&!p?(c.classList.remove(`${a.containerModifierClass}grid`,`${a.containerModifierClass}grid-column`),i.emitContainerClasses()):!P&&p&&(c.classList.add(`${a.containerModifierClass}grid`),(v.grid.fill&&v.grid.fill==="column"||!v.grid.fill&&a.grid.fill==="column")&&c.classList.add(`${a.containerModifierClass}grid-column`),i.emitContainerClasses()),C&&!E?i.unsetGrabCursor():!C&&E&&i.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(at=>{if(typeof v[at]>"u")return;const $=a[at]&&a[at].enabled,V=v[at]&&v[at].enabled;$&&!V&&i[at].disable(),!$&&V&&i[at].enable()});const S=v.direction&&v.direction!==a.direction,M=a.loop&&(v.slidesPerView!==a.slidesPerView||S),z=a.loop;S&&r&&i.changeDirection(),ue(i.params,v);const H=i.params.enabled,W=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),R&&!H?i.disable():!R&&H&&i.enable(),i.currentBreakpoint=_,i.emit("_beforeBreakpoint",v),r&&(M?(i.loopDestroy(),i.loopCreate(o),i.updateSlides()):!z&&W?(i.loopCreate(o),i.updateSlides()):z&&!W&&i.loopDestroy()),i.emit("breakpoint",v)}function Qa(i,o="window",r){if(!i||o==="container"&&!r)return;let a=!1;const c=Jt(),s=o==="window"?c.innerHeight:r.clientHeight,u=Object.keys(i).map(f=>{if(typeof f=="string"&&f.indexOf("@")===0){const d=parseFloat(f.substr(1));return{value:s*d,point:f}}return{value:f,point:f}});u.sort((f,d)=>parseInt(f.value,10)-parseInt(d.value,10));for(let f=0;f<u.length;f+=1){const{point:d,value:_}=u[f];o==="window"?c.matchMedia(`(min-width: ${_}px)`).matches&&(a=d):_<=r.clientWidth&&(a=d)}return a||"max"}var tl={setBreakpoint:Ja,getBreakpoint:Qa};function el(i,o){const r=[];return i.forEach(a=>{typeof a=="object"?Object.keys(a).forEach(c=>{a[c]&&r.push(o+c)}):typeof a=="string"&&r.push(o+a)}),r}function il(){const i=this,{classNames:o,params:r,rtl:a,el:c,device:s}=i,u=el(["initialized",r.direction,{"free-mode":i.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:a},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);o.push(...u),c.classList.add(...o),i.emitContainerClasses()}function nl(){const i=this,{el:o,classNames:r}=i;!o||typeof o=="string"||(o.classList.remove(...r),i.emitContainerClasses())}var sl={addClasses:il,removeClasses:nl};function rl(){const i=this,{isLocked:o,params:r}=i,{slidesOffsetBefore:a}=r;if(a){const c=i.slides.length-1,s=i.slidesGrid[c]+i.slidesSizesGrid[c]+a*2;i.isLocked=i.size>s}else i.isLocked=i.snapGrid.length===1;r.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),r.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),o&&o!==i.isLocked&&(i.isEnd=!1),o!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var ol={checkOverflow:rl},Vs={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function al(i,o){return function(a={}){const c=Object.keys(a)[0],s=a[c];if(typeof s!="object"||s===null){ue(o,a);return}if(i[c]===!0&&(i[c]={enabled:!0}),c==="navigation"&&i[c]&&i[c].enabled&&!i[c].prevEl&&!i[c].nextEl&&(i[c].auto=!0),["pagination","scrollbar"].indexOf(c)>=0&&i[c]&&i[c].enabled&&!i[c].el&&(i[c].auto=!0),!(c in i&&"enabled"in s)){ue(o,a);return}typeof i[c]=="object"&&!("enabled"in i[c])&&(i[c].enabled=!0),i[c]||(i[c]={enabled:!1}),ue(o,a)}}const Fn={eventsEmitter:sa,update:ma,translate:wa,transition:Ta,slide:za,loop:Da,grabCursor:Za,events:Ka,breakpoints:tl,checkOverflow:ol,classes:sl},Dn={};class me{constructor(...o){let r,a;o.length===1&&o[0].constructor&&Object.prototype.toString.call(o[0]).slice(8,-1)==="Object"?a=o[0]:[r,a]=o,a||(a={}),a=ue({},a),r&&!a.el&&(a.el=r);const c=Te();if(a.el&&typeof a.el=="string"&&c.querySelectorAll(a.el).length>1){const d=[];return c.querySelectorAll(a.el).forEach(_=>{const b=ue({},a,{el:_});d.push(new me(b))}),d}const s=this;s.__swiper__=!0,s.support=ir(),s.device=nr({userAgent:a.userAgent}),s.browser=sr(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],a.modules&&Array.isArray(a.modules)&&a.modules.forEach(d=>{typeof d=="function"&&s.modules.indexOf(d)<0&&s.modules.push(d)});const u={};s.modules.forEach(d=>{d({params:a,swiper:s,extendParams:al(a,u),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const f=ue({},Vs,u);return s.params=ue({},f,Dn,a),s.originalParams=ue({},s.params),s.passedParams=ue({},a),s.params&&s.params.on&&Object.keys(s.params.on).forEach(d=>{s.on(d,s.params.on[d])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),Object.assign(s,{enabled:s.params.enabled,el:r,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return s.params.direction==="horizontal"},isVertical(){return s.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:s.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}getDirectionLabel(o){return this.isHorizontal()?o:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[o]}getSlideIndex(o){const{slidesEl:r,params:a}=this,c=Se(r,`.${a.slideClass}, swiper-slide`),s=nn(c[0]);return nn(o)-s}getSlideIndexByData(o){return this.getSlideIndex(this.slides.find(r=>r.getAttribute("data-swiper-slide-index")*1===o))}getSlideIndexWhenGrid(o){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?o=Math.floor(o/this.params.grid.rows):this.params.grid.fill==="row"&&(o=o%Math.ceil(this.slides.length/this.params.grid.rows))),o}recalcSlides(){const o=this,{slidesEl:r,params:a}=o;o.slides=Se(r,`.${a.slideClass}, swiper-slide`)}enable(){const o=this;o.enabled||(o.enabled=!0,o.params.grabCursor&&o.setGrabCursor(),o.emit("enable"))}disable(){const o=this;o.enabled&&(o.enabled=!1,o.params.grabCursor&&o.unsetGrabCursor(),o.emit("disable"))}setProgress(o,r){const a=this;o=Math.min(Math.max(o,0),1);const c=a.minTranslate(),u=(a.maxTranslate()-c)*o+c;a.translateTo(u,typeof r>"u"?0:r),a.updateActiveIndex(),a.updateSlidesClasses()}emitContainerClasses(){const o=this;if(!o.params._emitClasses||!o.el)return;const r=o.el.className.split(" ").filter(a=>a.indexOf("swiper")===0||a.indexOf(o.params.containerModifierClass)===0);o.emit("_containerClasses",r.join(" "))}getSlideClasses(o){const r=this;return r.destroyed?"":o.className.split(" ").filter(a=>a.indexOf("swiper-slide")===0||a.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const o=this;if(!o.params._emitClasses||!o.el)return;const r=[];o.slides.forEach(a=>{const c=o.getSlideClasses(a);r.push({slideEl:a,classNames:c}),o.emit("_slideClass",a,c)}),o.emit("_slideClasses",r)}slidesPerViewDynamic(o="current",r=!1){const a=this,{params:c,slides:s,slidesGrid:u,slidesSizesGrid:f,size:d,activeIndex:_}=a;let b=1;if(typeof c.slidesPerView=="number")return c.slidesPerView;if(c.centeredSlides){let v=s[_]?Math.ceil(s[_].swiperSlideSize):0,P;for(let p=_+1;p<s.length;p+=1)s[p]&&!P&&(v+=Math.ceil(s[p].swiperSlideSize),b+=1,v>d&&(P=!0));for(let p=_-1;p>=0;p-=1)s[p]&&!P&&(v+=s[p].swiperSlideSize,b+=1,v>d&&(P=!0))}else if(o==="current")for(let v=_+1;v<s.length;v+=1)(r?u[v]+f[v]-u[_]<d:u[v]-u[_]<d)&&(b+=1);else for(let v=_-1;v>=0;v-=1)u[_]-u[v]<d&&(b+=1);return b}update(){const o=this;if(!o||o.destroyed)return;const{snapGrid:r,params:a}=o;a.breakpoints&&o.setBreakpoint(),[...o.el.querySelectorAll('[loading="lazy"]')].forEach(u=>{u.complete&&Ki(o,u)}),o.updateSize(),o.updateSlides(),o.updateProgress(),o.updateSlidesClasses();function c(){const u=o.rtlTranslate?o.translate*-1:o.translate,f=Math.min(Math.max(u,o.maxTranslate()),o.minTranslate());o.setTranslate(f),o.updateActiveIndex(),o.updateSlidesClasses()}let s;if(a.freeMode&&a.freeMode.enabled&&!a.cssMode)c(),a.autoHeight&&o.updateAutoHeight();else{if((a.slidesPerView==="auto"||a.slidesPerView>1)&&o.isEnd&&!a.centeredSlides){const u=o.virtual&&a.virtual.enabled?o.virtual.slides:o.slides;s=o.slideTo(u.length-1,0,!1,!0)}else s=o.slideTo(o.activeIndex,0,!1,!0);s||c()}a.watchOverflow&&r!==o.snapGrid&&o.checkOverflow(),o.emit("update")}changeDirection(o,r=!0){const a=this,c=a.params.direction;return o||(o=c==="horizontal"?"vertical":"horizontal"),o===c||o!=="horizontal"&&o!=="vertical"||(a.el.classList.remove(`${a.params.containerModifierClass}${c}`),a.el.classList.add(`${a.params.containerModifierClass}${o}`),a.emitContainerClasses(),a.params.direction=o,a.slides.forEach(s=>{o==="vertical"?s.style.width="":s.style.height=""}),a.emit("changeDirection"),r&&a.update()),a}changeLanguageDirection(o){const r=this;r.rtl&&o==="rtl"||!r.rtl&&o==="ltr"||(r.rtl=o==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(o){const r=this;if(r.mounted)return!0;let a=o||r.params.el;if(typeof a=="string"&&(a=document.querySelector(a)),!a)return!1;a.swiper=r,a.parentNode&&a.parentNode.host&&a.parentNode.host.nodeName===r.params.swiperElementNodeName.toUpperCase()&&(r.isElement=!0);const c=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let u=a&&a.shadowRoot&&a.shadowRoot.querySelector?a.shadowRoot.querySelector(c()):Se(a,c())[0];return!u&&r.params.createElements&&(u=en("div",r.params.wrapperClass),a.append(u),Se(a,`.${r.params.slideClass}`).forEach(f=>{u.append(f)})),Object.assign(r,{el:a,wrapperEl:u,slidesEl:r.isElement&&!a.parentNode.host.slideSlots?a.parentNode.host:u,hostEl:r.isElement?a.parentNode.host:a,mounted:!0,rtl:a.dir.toLowerCase()==="rtl"||He(a,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(a.dir.toLowerCase()==="rtl"||He(a,"direction")==="rtl"),wrongRTL:He(u,"display")==="-webkit-box"}),!0}init(o){const r=this;if(r.initialized||r.mount(o)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(void 0,!0),r.attachEvents();const c=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&c.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),c.forEach(s=>{s.complete?Ki(r,s):s.addEventListener("load",u=>{Ki(r,u.target)})}),Zn(r),r.initialized=!0,Zn(r),r.emit("init"),r.emit("afterInit"),r}destroy(o=!0,r=!0){const a=this,{params:c,el:s,wrapperEl:u,slides:f}=a;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),c.loop&&a.loopDestroy(),r&&(a.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),u&&u.removeAttribute("style"),f&&f.length&&f.forEach(d=>{d.classList.remove(c.slideVisibleClass,c.slideFullyVisibleClass,c.slideActiveClass,c.slideNextClass,c.slidePrevClass),d.removeAttribute("style"),d.removeAttribute("data-swiper-slide-index")})),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(d=>{a.off(d)}),o!==!1&&(a.el&&typeof a.el!="string"&&(a.el.swiper=null),jo(a)),a.destroyed=!0),null}static extendDefaults(o){ue(Dn,o)}static get extendedDefaults(){return Dn}static get defaults(){return Vs}static installModule(o){me.prototype.__modules__||(me.prototype.__modules__=[]);const r=me.prototype.__modules__;typeof o=="function"&&r.indexOf(o)<0&&r.push(o)}static use(o){return Array.isArray(o)?(o.forEach(r=>me.installModule(r)),me):(me.installModule(o),me)}}Object.keys(Fn).forEach(i=>{Object.keys(Fn[i]).forEach(o=>{me.prototype[o]=Fn[i][o]})});me.use([ia,na]);function ar(i,o,r,a){return i.params.createElements&&Object.keys(a).forEach(c=>{if(!r[c]&&r.auto===!0){let s=Se(i.el,`.${a[c]}`)[0];s||(s=en("div",a[c]),s.className=a[c],i.el.append(s)),r[c]=s,o[c]=s}}),r}const js='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>';function ll({swiper:i,extendParams:o,on:r,emit:a}){o({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),i.navigation={nextEl:null,prevEl:null,arrowSvg:js};function c(p){let C;return p&&typeof p=="string"&&i.isElement&&(C=i.el.querySelector(p)||i.hostEl.querySelector(p),C)?C:(p&&(typeof p=="string"&&(C=[...document.querySelectorAll(p)]),i.params.uniqueNavElements&&typeof p=="string"&&C&&C.length>1&&i.el.querySelectorAll(p).length===1?C=i.el.querySelector(p):C&&C.length===1&&(C=C[0])),p&&!C?p:C)}function s(p,C){const E=i.params.navigation;p=$t(p),p.forEach(R=>{R&&(R.classList[C?"add":"remove"](...E.disabledClass.split(" ")),R.tagName==="BUTTON"&&(R.disabled=C),i.params.watchOverflow&&i.enabled&&R.classList[i.isLocked?"add":"remove"](E.lockClass))})}function u(){const{nextEl:p,prevEl:C}=i.navigation;if(i.params.loop){s(C,!1),s(p,!1);return}s(C,i.isBeginning&&!i.params.rewind),s(p,i.isEnd&&!i.params.rewind)}function f(p){p.preventDefault(),!(i.isBeginning&&!i.params.loop&&!i.params.rewind)&&(i.slidePrev(),a("navigationPrev"))}function d(p){p.preventDefault(),!(i.isEnd&&!i.params.loop&&!i.params.rewind)&&(i.slideNext(),a("navigationNext"))}function _(){const p=i.params.navigation;if(i.params.navigation=ar(i,i.originalParams.navigation,i.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(p.nextEl||p.prevEl))return;let C=c(p.nextEl),E=c(p.prevEl);Object.assign(i.navigation,{nextEl:C,prevEl:E}),C=$t(C),E=$t(E);const R=(S,M)=>{if(S){if(p.addIcons&&S.matches(".swiper-button-next,.swiper-button-prev")&&!S.querySelector("svg")){const z=document.createElement("div");Rn(z,js),S.appendChild(z.querySelector("svg")),z.remove()}S.addEventListener("click",M==="next"?d:f)}!i.enabled&&S&&S.classList.add(...p.lockClass.split(" "))};C.forEach(S=>R(S,"next")),E.forEach(S=>R(S,"prev"))}function b(){let{nextEl:p,prevEl:C}=i.navigation;p=$t(p),C=$t(C);const E=(R,S)=>{R.removeEventListener("click",S==="next"?d:f),R.classList.remove(...i.params.navigation.disabledClass.split(" "))};p.forEach(R=>E(R,"next")),C.forEach(R=>E(R,"prev"))}r("init",()=>{i.params.navigation.enabled===!1?P():(_(),u())}),r("toEdge fromEdge lock unlock",()=>{u()}),r("destroy",()=>{b()}),r("enable disable",()=>{let{nextEl:p,prevEl:C}=i.navigation;if(p=$t(p),C=$t(C),i.enabled){u();return}[...p,...C].filter(E=>!!E).forEach(E=>E.classList.add(i.params.navigation.lockClass))}),r("click",(p,C)=>{let{nextEl:E,prevEl:R}=i.navigation;E=$t(E),R=$t(R);const S=C.target;let M=R.includes(S)||E.includes(S);if(i.isElement&&!M){const z=C.path||C.composedPath&&C.composedPath();z&&(M=z.find(H=>E.includes(H)||R.includes(H)))}if(i.params.navigation.hideOnClick&&!M){if(i.pagination&&i.params.pagination&&i.params.pagination.clickable&&(i.pagination.el===S||i.pagination.el.contains(S)))return;let z;E.length?z=E[0].classList.contains(i.params.navigation.hiddenClass):R.length&&(z=R[0].classList.contains(i.params.navigation.hiddenClass)),a(z===!0?"navigationShow":"navigationHide"),[...E,...R].filter(H=>
17!!H).forEach(H=>H.classList.toggle(i.params.navigation.hiddenClass))}});const v=()=>{i.el.classList.remove(...i.params.navigation.navigationDisabledClass.split(" ")),_(),u()},P=()=>{i.el.classList.add(...i.params.navigation.navigationDisabledClass.split(" ")),b()};Object.assign(i.navigation,{enable:v,disable:P,update:u,init:_,destroy:b})}function xi(i=""){return`.${i.trim().replace(/([\.:!+\/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}function ul({swiper:i,extendParams:o,on:r,emit:a}){const c="swiper-pagination";o({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:S=>S,formatFractionTotal:S=>S,bulletClass:`${c}-bullet`,bulletActiveClass:`${c}-bullet-active`,modifierClass:`${c}-`,currentClass:`${c}-current`,totalClass:`${c}-total`,hiddenClass:`${c}-hidden`,progressbarFillClass:`${c}-progressbar-fill`,progressbarOppositeClass:`${c}-progressbar-opposite`,clickableClass:`${c}-clickable`,lockClass:`${c}-lock`,horizontalClass:`${c}-horizontal`,verticalClass:`${c}-vertical`,paginationDisabledClass:`${c}-disabled`}}),i.pagination={el:null,bullets:[]};let s,u=0;function f(){return!i.params.pagination.el||!i.pagination.el||Array.isArray(i.pagination.el)&&i.pagination.el.length===0}function d(S,M){const{bulletActiveClass:z}=i.params.pagination;S&&(S=S[`${M==="prev"?"previous":"next"}ElementSibling`],S&&(S.classList.add(`${z}-${M}`),S=S[`${M==="prev"?"previous":"next"}ElementSibling`],S&&S.classList.add(`${z}-${M}-${M}`)))}function _(S,M,z){if(S=S%z,M=M%z,M===S+1)return"next";if(M===S-1)return"previous"}function b(S){const M=S.target.closest(xi(i.params.pagination.bulletClass));if(!M)return;S.preventDefault();const z=nn(M)*i.params.slidesPerGroup;if(i.params.loop){if(i.realIndex===z)return;const H=_(i.realIndex,z,i.slides.length);H==="next"?i.slideNext():H==="previous"?i.slidePrev():i.slideToLoop(z)}else i.slideTo(z)}function v(){const S=i.rtl,M=i.params.pagination;if(f())return;let z=i.pagination.el;z=$t(z);let H,W;const at=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,$=i.params.loop?Math.ceil(at/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(W=i.previousRealIndex||0,H=i.params.slidesPerGroup>1?Math.floor(i.realIndex/i.params.slidesPerGroup):i.realIndex):typeof i.snapIndex<"u"?(H=i.snapIndex,W=i.previousSnapIndex):(W=i.previousIndex||0,H=i.activeIndex||0),M.type==="bullets"&&i.pagination.bullets&&i.pagination.bullets.length>0){const V=i.pagination.bullets;let et,Y,j;if(M.dynamicBullets&&(s=Nn(V[0],i.isHorizontal()?"width":"height"),z.forEach(U=>{U.style[i.isHorizontal()?"width":"height"]=`${s*(M.dynamicMainBullets+4)}px`}),M.dynamicMainBullets>1&&W!==void 0&&(u+=H-(W||0),u>M.dynamicMainBullets-1?u=M.dynamicMainBullets-1:u<0&&(u=0)),et=Math.max(H-u,0),Y=et+(Math.min(V.length,M.dynamicMainBullets)-1),j=(Y+et)/2),V.forEach(U=>{const B=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(q=>`${M.bulletActiveClass}${q}`)].map(q=>typeof q=="string"&&q.includes(" ")?q.split(" "):q).flat();U.classList.remove(...B)}),z.length>1)V.forEach(U=>{const B=nn(U);B===H?U.classList.add(...M.bulletActiveClass.split(" ")):i.isElement&&U.setAttribute("part","bullet"),M.dynamicBullets&&(B>=et&&B<=Y&&U.classList.add(...`${M.bulletActiveClass}-main`.split(" ")),B===et&&d(U,"prev"),B===Y&&d(U,"next"))});else{const U=V[H];if(U&&U.classList.add(...M.bulletActiveClass.split(" ")),i.isElement&&V.forEach((B,q)=>{B.setAttribute("part",q===H?"bullet-active":"bullet")}),M.dynamicBullets){const B=V[et],q=V[Y];for(let lt=et;lt<=Y;lt+=1)V[lt]&&V[lt].classList.add(...`${M.bulletActiveClass}-main`.split(" "));d(B,"prev"),d(q,"next")}}if(M.dynamicBullets){const U=Math.min(V.length,M.dynamicMainBullets+4),B=(s*U-s)/2-j*s,q=S?"right":"left";V.forEach(lt=>{lt.style[i.isHorizontal()?q:"top"]=`${B}px`})}}z.forEach((V,et)=>{if(M.type==="fraction"&&(V.querySelectorAll(xi(M.currentClass)).forEach(Y=>{Y.textContent=M.formatFractionCurrent(H+1)}
vendor: 4,665 bytes, line 17
17),V.querySelectorAll(xi(M.totalClass)).forEach(Y=>{Y.textContent=M.formatFractionTotal($)})),M.type==="progressbar"){let Y;M.progressbarOpposite?Y=i.isHorizontal()?"vertical":"horizontal":Y=i.isHorizontal()?"horizontal":"vertical";const j=(H+1)/$;let U=1,B=1;Y==="horizontal"?U=j:B=j,V.querySelectorAll(xi(M.progressbarFillClass)).forEach(q=>{q.style.transform=`translate3d(0,0,0) scaleX(${U}) scaleY(${B})`,q.style.transitionDuration=`${i.params.speed}ms`})}M.type==="custom"&&M.renderCustom?(Rn(V,M.renderCustom(i,H+1,$)),et===0&&a("paginationRender",V)):(et===0&&a("paginationRender",V),a("paginationUpdate",V)),i.params.watchOverflow&&i.enabled&&V.classList[i.isLocked?"add":"remove"](M.lockClass)})}function P(){const S=i.params.pagination;if(f())return;const M=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.grid&&i.params.grid.rows>1?i.slides.length/Math.ceil(i.params.grid.rows):i.slides.length;let z=i.pagination.el;z=$t(z);let H="";if(S.type==="bullets"){let W=i.params.loop?Math.ceil(M/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&W>M&&(W=M);for(let at=0;at<W;at+=1)S.renderBullet?H+=S.renderBullet.call(i,at,S.bulletClass):H+=`<${S.bulletElement} ${i.isElement?'part="bullet"':""} class="${S.bulletClass}"></${S.bulletElement}>`}S.type==="fraction"&&(S.renderFraction?H=S.renderFraction.call(i,S.currentClass,S.totalClass):H=`<span class="${S.currentClass}"></span> / <span class="${S.totalClass}"></span>`),S.type==="progressbar"&&(S.renderProgressbar?H=S.renderProgressbar.call(i,S.progressbarFillClass):H=`<span class="${S.progressbarFillClass}"></span>`),i.pagination.bullets=[],z.forEach(W=>{S.type!=="custom"&&Rn(W,H||""),S.type==="bullets"&&i.pagination.bullets.push(...W.querySelectorAll(xi(S.bulletClass)))}),S.type!=="custom"&&a("paginationRender",z[0])}function p(){i.params.pagination=ar(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});const S=i.params.pagination;if(!S.el)return;let M;typeof S.el=="string"&&i.isElement&&(M=i.el.querySelector(S.el)),!M&&typeof S.el=="string"&&(M=[...document.querySelectorAll(S.el)]),M||(M=S.el),!(!M||M.length===0)&&(i.params.uniqueNavElements&&typeof S.el=="string"&&Array.isArray(M)&&M.length>1&&(M=[...i.el.querySelectorAll(S.el)],M.length>1&&(M=M.find(z=>er(z,".swiper")[0]===i.el))),Array.isArray(M)&&M.length===1&&(M=M[0]),Object.assign(i.pagination,{el:M}),M=$t(M),M.forEach(z=>{S.type==="bullets"&&S.clickable&&z.classList.add(...(S.clickableClass||"").split(" ")),z.classList.add(S.modifierClass+S.type),z.classList.add(i.isHorizontal()?S.horizontalClass:S.verticalClass),S.type==="bullets"&&S.dynamicBullets&&(z.classList.add(`${S.modifierClass}${S.type}-dynamic`),u=0,S.dynamicMainBullets<1&&(S.dynamicMainBullets=1)),S.type==="progressbar"&&S.progressbarOpposite&&z.classList.add(S.progressbarOppositeClass),S.clickable&&z.addEventListener("click",b),i.enabled||z.classList.add(S.lockClass)}))}function C(){const S=i.params.pagination;if(f())return;let M=i.pagination.el;M&&(M=$t(M),M.forEach(z=>{z.classList.remove(S.hiddenClass),z.classList.remove(S.modifierClass+S.type),z.classList.remove(i.isHorizontal()?S.horizontalClass:S.verticalClass),S.clickable&&(z.classList.remove(...(S.clickableClass||"").split(" ")),z.removeEventListener("click",b))})),i.pagination.bullets&&i.pagination.bullets.forEach(z=>z.classList.remove(...S.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!i.pagination||!i.pagination.el)return;const S=i.params.pagination;let{el:M}=i.pagination;M=$t(M),M.forEach(z=>{z.classList.remove(S.horizontalClass,S.verticalClass),z.classList.add(i.isHorizontal()?S.horizontalClass:S.verticalClass)})}),r("init",()=>{i.params.pagination.enabled===!1?R():(p(),P(),v())}),r("activeIndexChange",()=>{typeof i.snapIndex>"u"&&v()}),r("snapIndexChange",()=>{v()}),r("snapGridLengthChange",()=>{P(),v()}),r("destroy",()=>{C()}),r("enable disable",()=>{let{el:S}=i.pagination;S&&(S=$t(S),S.forEach(M=>M.classList[i.enabled?"remove":"add"](i.params.pagination.lockClass)))}),r("lock unlock",()=>{v()}),r("click",(S,M)=>{const z=M.target,H=$t(i.pagination.el);if(i.params.pagination.el&&i.params.pagination.hideOnClick&&H&&H.length>0&&!z.classList.contains(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&z===i.navigation.nextEl||i.navigation.prevEl&&z===i.navigation.prevEl))return;const W=H[0].classList.contains(i.params.pagination.hiddenClass);a(W===!0?"paginationShow":"paginationHide"),H.forEach(at=>at.classList.toggle(i.params.pagination.hiddenClass))}});const E=()=>{i.el.classList.remove(i.params.pagination.paginationDisabledClass);let{el:S}=i.pagination;
17S&&(S=$t(S),S.forEach(M=>M.classList.remove(i.params.pagination.paginationDisabledClass))),p(),P(),v()},R=()=>{i.el.classList.add(i.params.pagination.paginationDisabledClass);let{el:S}=i.pagination;S&&(S=$t(S),S.forEach(M=>M.classList.add(i.params.pagination.paginationDisabledClass))),C()};Object.assign(i.pagination,{enable:E,disable:R,render:P,update:v,init:p,destroy:C})}function cl({swiper:i,extendParams:o,on:r,emit:a,params:c}){i.autoplay={running:!1,paused:!1,timeLeft:0},o({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let s,u,f=c&&c.autoplay?c.autoplay.delay:3e3,d=c&&c.autoplay?c.autoplay.delay:3e3,_,b=new Date().getTime(),v,P,p,C,E,R;function S(st){!i||i.destroyed||!i.wrapperEl||st.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",S),!(R||st.detail&&st.detail.bySwiperTouchMove)&&et())}const M=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?v=!0:v&&(d=_,v=!1);const st=i.autoplay.paused?_:b+d-new Date().getTime();i.autoplay.timeLeft=st,a("autoplayTimeLeft",st,st/f),u=requestAnimationFrame(()=>{M()})},z=()=>{let st;return i.virtual&&i.params.virtual.enabled?st=i.slides.find(ut=>ut.classList.contains("swiper-slide-active")):st=i.slides[i.activeIndex],st?parseInt(st.getAttribute("data-swiper-autoplay"),10):void 0},H=()=>{let st=i.params.autoplay.delay;const Z=z();return!Number.isNaN(Z)&&Z>0&&(st=Z),st},W=st=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(u),M();let Z=st;typeof Z>"u"&&(Z=H(),f=Z,d=Z),_=Z;const ut=i.params.speed,tt=()=>{!i||i.destroyed||(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(ut,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,ut,!0,!0),a("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(ut,!0,!0),a("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,ut,!0,!0),a("autoplay")),i.params.cssMode&&(b=new Date().getTime(),requestAnimationFrame(()=>{W()})))};return Z>0?(clearTimeout(s),s=setTimeout(()=>{tt()},Z)):requestAnimationFrame(()=>{tt()}),Z},at=()=>{b=new Date().getTime(),i.autoplay.running=!0,W(),a("autoplayStart")},$=()=>{i.autoplay.running=!1,clearTimeout(s),cancelAnimationFrame(u),a("autoplayStop")},V=(st,Z)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(s),st||(E=!0);const ut=()=>{a("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",S):et()};if(i.autoplay.paused=!0,Z){ut();return}_=(_||i.params.autoplay.delay)-(new Date().getTime()-b),!(i.isEnd&&_<0&&!i.params.loop)&&(_<0&&(_=0),ut())},et=()=>{i.isEnd&&_<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(b=ne
17w Date().getTime(),E?(E=!1,W(_)):W(),i.autoplay.paused=!1,a("autoplayResume"))},Y=()=>{if(i.destroyed||!i.autoplay.running)return;const st=Te();st.visibilityState==="hidden"&&(E=!0,V(!0)),st.visibilityState==="visible"&&et()},j=st=>{st.pointerType==="mouse"&&(E=!0,R=!0,!(i.animating||i.autoplay.paused)&&V(!0))},U=st=>{st.pointerType==="mouse"&&(R=!1,i.autoplay.paused&&et())},B=()=>{i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",j),i.el.addEventListener("pointerleave",U))},q=()=>{i.el&&typeof i.el!="string"&&(i.el.removeEventListener("pointerenter",j),i.el.removeEventListener("pointerleave",U))},lt=()=>{Te().addEventListener("visibilitychange",Y)},Ct=()=>{Te().removeEventListener("visibilitychange",Y)};r("init",()=>{i.params.autoplay.enabled&&(B(),lt(),at())}),r("destroy",()=>{q(),Ct(),i.autoplay.running&&$()}),r("_freeModeStaticRelease",()=>{(p||E)&&et()}),r("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?$():V(!0,!0)}),r("beforeTransitionStart",(st,Z,ut)=>{i.destroyed||!i.autoplay.running||(ut||!i.params.autoplay.disableOnInteraction?V(!0,!0):$())}),r("sliderFirstMove",()=>{if(!(i.destroyed||!i.autoplay.running)){if(i.params.autoplay.disableOnInteraction){$();return}P=!0,p=!1,E=!1,C=setTimeout(()=>{E=!0,p=!0,V(!0)},200)}}),r("touchEnd",()=>{if(!(i.destroyed||!i.autoplay.running||!P)){if(clearTimeout(C),clearTimeout(s),i.params.autoplay.disableOnInteraction){p=!1,P=!1;return}p&&i.params.cssMode&&et(),p=!1,P=!1}}),r("slideChange",()=>{i.destroyed||!i.autoplay.running||i.autoplay.paused&&(_=H(),f=H())}),Object.assign(i.autoplay,{start:at,stop:$,pause:V,resume:et})}function hl(){const i=document.getElementsByClassName("swiper");for(let r of i){if(r.dataset.count<2){o(r);continue}new me(r,{modules:[cl,ll,ul],roundLengths:!0,loop:!0,autoplay:r.dataset.autoplay?{delay:5e3}:!1,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev",addIcons:!1},pagination:{el:".swiper-pagination",clickable:!0,bulletClass:"controls__bullet",bulletActiveClass:"is-active"},on:{transitionStart:function(){for(const c of r.querySelectorAll("video"))c.pause();const a=r.getElementsByClassName("swiper-slide")[this.activeIndex];o(a)}}})}function o(r){for(const a of r.getElementsByTagName("video"))if(window.getComputedStyle(a).display!=="none"){a.style.visibility="hidden",a.preload!=="auto"&&(a.preload="auto",a.load());const c=()=>{a.play(),a.style.visibility="visible"},s=()=>{!isNaN(a.duration)&&a.buffered.length&&a.buffered.end(0)>=a.duration?c():a.addEventListener("canplaythrough",c,{once:!0})};isNaN(a.duration)?a.addEventListener("loadedmetadata",s,{once:!0}):s();break}}}const dl={init:function(){return new hl}};var Ji={exports:{}},fl=Ji.exports,$s;function pl(){return $s||($s=1,(function(i,o){(function(r,a){i.exports=a()})(typeof ks=="object"?ks:fl,function(){var r={alignVert:!1,alignHoriz:!1,multiLine:!1,detectMultiLine:!0,minFontSize:6,maxFontSize:80,reProcess:!0,widthOnly:!1,alignVertWithFlexbox:!1};return function(b,v){v||(v={});var P={};for(var p in r)v.hasOwnProperty(p)?P[p]=v[p]:P[p]=r[p];typeof b.toArray=="function"&&(b=b.toArray());var C=Object.prototype.toString.call(b);C!=="[object Array]"&&C!=="[object NodeList]"&&C!=="[object HTMLCollection]"&&(b=[b]);for(var E=0;E<b.length;E++)a(b[E],P)};function a(_,b){if(!u(_)||!b.reProcess&&_.getAttribute("textFitted"))return!1;b.reProcess||_.setAttribute("textFitted",1);var v,P,p,C,E,R,S;if(p=_.innerHTML,C=s(_),P=c(_),!C||!b.widthOnly&&!P)throw b.widthOnly?new Error("Set a static width on the target element "+_.outerHTML+" before using textFit!"):new Error("Set a static height and width on the target element "+_.outerHTML+" before using textFit!");p.indexOf("textFitted")===-1?(v=document.createElement("span"),v.className="textFitted",v.style.display="inline-block",v.innerHTML=p,_.innerHTML="",_.appendChild(v)):(v=_.querySelector("span.textFitted"),f(v,"textFitAlignVert")&&(v.className=v.className.replace("textFitAlignVert",""),v.style.height="",_.className.replace("textFitAlignVertFlex",""))),b.alignHoriz&&(_.style["text-align"]="center",v.style["text-align"]="center");var M=b.multiLine;b.detectMultiLine&&!M&&v.scrollHeight>
17=parseInt(window.getComputedStyle(v)["font-size"],10)*2&&(M=!0),M||(_.style["white-space"]="nowrap"),E=b.minFontSize,S=b.maxFontSize;for(var z=E;E<=S;)R=S+E>>1,v.style.fontSize=R+"px",v.scrollWidth<=C&&(b.widthOnly||v.scrollHeight<=P)?(z=R,E=R+1):S=R-1;if(v.style.fontSize!=z+"px"&&(v.style.fontSize=z+"px"),b.alignVert){d();var H=v.scrollHeight;window.getComputedStyle(_).position==="static"&&(_.style.position="relative"),f(v,"textFitAlignVert")||(v.className=v.className+" textFitAlignVert"),v.style.height=H+"px",b.alignVertWithFlexbox&&!f(_,"textFitAlignVertFlex")&&(_.className=_.className+" textFitAlignVertFlex")}}function c(_){var b=window.getComputedStyle(_,null);return _.clientHeight-parseInt(b.getPropertyValue("padding-top"),10)-parseInt(b.getPropertyValue("padding-bottom"),10)}function s(_){var b=window.getComputedStyle(_,null);return _.clientWidth-parseInt(b.getPropertyValue("padding-left"),10)-parseInt(b.getPropertyValue("padding-right"),10)}function u(_){return typeof HTMLElement=="object"?_ instanceof HTMLElement:_&&typeof _=="object"&&_!==null&&_.nodeType===1&&typeof _.nodeName=="string"}function f(_,b){return(" "+_.className+" ").indexOf(" "+b+" ")>-1}function d(){if(!document.getElementById("textFitStyleSheet")){var _=[".textFitAlignVert{","position: absolute;","top: 0; right: 0; bottom: 0; left: 0;","margin: auto;","display: flex;","justify-content: center;","flex-direction: column;","}",".textFitAlignVertFlex{","display: flex;","}",".textFitAlignVertFlex .textFitAlignVert{","position: static;","}"].join(""),b=document.createElement("style");b.type="text/css",b.id="textFitStyleSheet",b.innerHTML=_,document.body.appendChild(b)}}})})(Ji)),Ji.exports}var ml=pl();const qs=Us(ml);function _l(){function i(a){const c=a.firstElementChild;c&&(a.innerHTML=c.innerHTML),a.style.height=a.clientHeight+"px",a.style.width=a.clientWidth+"px";let s=Math.round(Number(getComputedStyle(a).fontSize.replace("px",""))),u={multiline:!0,minFontSize:.5*s,maxFontSize:s};qs(a,u),a.style.height=null,a.style.width=null}function o(a){let c,s=new Set;const u=new ResizeObserver(f=>{for(let d of f)s.has(d.target)?(clearTimeout(c),c=setTimeout(()=>{u.unobserve(a),i(a),s=new Set,u.observe(a)},500)):s.add(d.target)});u.observe(a)}function r(){const a=document.querySelectorAll(".component-text-overlay__headline ,.component-text-overlay__text");for(const c of a){let s=Math.round(Number(getComputedStyle(c).fontSize.replace("px",""))),u={multiline:!0,minFontSize:.5*s,maxFontSize:s};qs(c,u),o(c)}}this.init=()=>r()}const gl={init:function(){return new _l().init()}};var vl=(function(i){if(i){var o=function(B){return[].slice.call(B)},r=0,a=1,c=2,s=3,u=[],f=null,d="requestAnimationFrame"in i?function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{sync:!1};i.cancelAnimationFrame(f);var q=function(){return b(u.filter((function(lt){return lt.dirty&<.active})))};if(B.sync)return q();f=i.requestAnimationFrame(q)}:function(){},_=function(B){return function(q){u.forEach((function(lt){return lt.dirty=B})),d(q)}},b=function(B){B.filter((function(lt){return!lt.styleComputed})).forEach((function(lt){lt.styleComputed=C(lt)})),B.filter(E).forEach(R);var q=B.filter(p);q.forEach(P),q.forEach((function(lt){R(lt),v(lt)})),q.forEach(S)},v=function(B){return B.dirty=r},P=function(B){B.availableWidth=B.element.parentNode.clientWidth,B.currentWidth=B.element.scrollWidth,B.previousFontSize=B.currentFontSize,B.currentFontSize=Math.min(Math.max(B.minSize,B.availableWidth/B.currentWidth*B.previousFontSize),B.maxSize),B.whiteSpace=B.multiLine&&B.currentFontSize===B.minSize?"normal":"nowrap"},p=function(B){return B.dirty!==c||B.dirty===c&&B.element.parentNode.clientWidth!==B.availableWidth},C=function(B){var q=i.getComputedStyle(B.element,null);return B.currentFontSize=parseFloat(q.getPropertyValue("font-size")),B.display=q.getPropertyValue("display"),B.whiteSpace=q.getPropertyValue("white-space"),!0},E=function(B){var q=!1;return!B.preStyleTestCompleted&&(/inline-/.test(B.display)||(q=!0,B.display="inline-block"),B.whiteSpace!=="nowrap"&&(q=!0,B.whiteSpace="nowrap"),B.preStyleTestCompleted=!0,q)},R=function(B){B.element.style.whiteSpace=B.whiteSpace,B.element.style.display=B.display,B.element.style.fontSize=B.currentFontSize+"px"},S=function(B){B.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:B.previousFontSize,newValue:B.currentFontSize,scaleFactor:B.currentFontSize/B.previousFontSize}}))},M=function(B,q){return function(lt){B.dirty=q,B.active&&d(lt)}},z=function(B){return function(){u=u.filter((function(q){return q.element!==B.element})),B.observeMutations&&B.observer.disconnect(),B.element.style.whiteSpace=B.originalStyle.whiteSpace,B.element.style.display=B.originalStyle.display,B.element.style.fontSize=B.originalStyle.fontSize}},H=function(B){return function(){B.active||(B.active=!0,d())}},W=function(B){return function(){return B.active=!1}},at=function(B){B.observeMutations&&(B.observer=new MutationObserver(M(B,a)),B.observer.observe(B.element,B.observeMutations))},$={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in i&&{subtree:!0,childList:!0,characterData:!0}
17},V=null,et=function(){i.clearTimeout(V),V=i.setTimeout(_(c),U.observeWindowDelay)},Y=["resize","orientationchange"];return Object.defineProperty(U,"observeWindow",{set:function(B){var q="".concat(B?"add":"remove","EventListener");Y.forEach((function(lt){i[q](lt,et)}))}}),U.observeWindow=!0,U.observeWindowDelay=100,U.fitAll=_(s),U}function j(B,q){var lt=Object.assign({},$,q),Ct=B.map((function(st){var Z=Object.assign({},lt,{element:st,active:!0});return(function(ut){ut.originalStyle={whiteSpace:ut.element.style.whiteSpace,display:ut.element.style.display,fontSize:ut.element.style.fontSize},at(ut),ut.newbie=!0,ut.dirty=!0,u.push(ut)})(Z),{element:st,fit:M(Z,s),unfreeze:H(Z),freeze:W(Z),unsubscribe:z(Z)}}));return d(),Ct}function U(B){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof B=="string"?j(o(document.querySelectorAll(B)),q):j([B],q)[0]}})(typeof window>"u"?null:window);window.wf===void 0&&(window.wf={});Zo.init();dl.init();document.getElementById("page").classList.contains("page--sticky-header")&&Go.init();gl.init();window.wf.youtubeLivestream=so;let Li=vl("#fit");(Li[0]??null)&&window.addEventListener("DOMContentLoaded",function(){document.fonts!==void 0?document.fonts.ready.then(function(){Li[0].fit(),Li[0].element.classList.add("is-ready")}):(Li[0].fit(),Li[0].element.classList.add("is-ready"))});window.wf.alpine={dropdown:ao,entryloader:lo,form:uo,gallery:yo,group_contact_leader:wo,image_credits:So,leaflet:Ao,modal:Hn,multiple_selects:xo,multiselect:Bo,person_contact:Lo,tabs:Fo,two_step_embed:Do};
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.