diff --git a/archesdataviewer/static/vite_build/.vite/manifest.json b/archesdataviewer/static/vite_build/.vite/manifest.json index 52d3424..740aa4c 100644 --- a/archesdataviewer/static/vite_build/.vite/manifest.json +++ b/archesdataviewer/static/vite_build/.vite/manifest.json @@ -1,11 +1,11 @@ { "index.html": { - "file": "assets/index-CDqcz2DA.js", + "file": "assets/index-DTFcdUi7.js", "name": "index", "src": "index.html", "isEntry": true, "css": [ - "assets/index-DfABYeLy.css" + "assets/index-Dd1Lzziq.css" ], "assets": [ "assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2", diff --git a/archesdataviewer/static/vite_build/assets/index-CDqcz2DA.js b/archesdataviewer/static/vite_build/assets/index-DTFcdUi7.js similarity index 91% rename from archesdataviewer/static/vite_build/assets/index-CDqcz2DA.js rename to archesdataviewer/static/vite_build/assets/index-DTFcdUi7.js index 0b19131..9103f1f 100644 --- a/archesdataviewer/static/vite_build/assets/index-CDqcz2DA.js +++ b/archesdataviewer/static/vite_build/assets/index-DTFcdUi7.js @@ -2,30 +2,30 @@ * @vue/shared v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Ba(e){const n=Object.create(null);for(const i of e.split(","))n[i]=1;return i=>i in n}const qe={},ji=[],vn=()=>{},vm=()=>!1,Gs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Za=e=>e.startsWith("onUpdate:"),ft=Object.assign,Fa=(e,n)=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)},ym=Object.prototype.hasOwnProperty,Be=(e,n)=>ym.call(e,n),ge=Array.isArray,Bi=e=>Js(e)==="[object Map]",Tf=e=>Js(e)==="[object Set]",we=e=>typeof e=="function",Xe=e=>typeof e=="string",Qn=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",xf=e=>(Ge(e)||we(e))&&we(e.then)&&we(e.catch),Cf=Object.prototype.toString,Js=e=>Cf.call(e),wm=e=>Js(e).slice(8,-1),Lf=e=>Js(e)==="[object Object]",Va=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pr=Ba(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ys=e=>{const n=Object.create(null);return i=>n[i]||(n[i]=e(i))},bm=/-(\w)/g,nn=Ys(e=>e.replace(bm,(n,i)=>i?i.toUpperCase():"")),Pm=/\B([A-Z])/g,Pi=Ys(e=>e.replace(Pm,"-$1").toLowerCase()),Xs=Ys(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uo=Ys(e=>e?`on${Xs(e)}`:""),Yn=(e,n)=>!Object.is(e,n),ks=(e,...n)=>{for(let i=0;i{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,writable:s,value:i})},pa=e=>{const n=parseFloat(e);return isNaN(n)?e:n},$m=e=>{const n=Xe(e)?Number(e):NaN;return isNaN(n)?e:n};let Xc;const Of=()=>Xc||(Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ha(e){if(ge(e)){const n={};for(let i=0;i{if(i){const s=i.split(Em);s.length>1&&(n[s[0].trim()]=s[1].trim())}}),n}function vi(e){let n="";if(Xe(e))n=e;else if(ge(e))for(let i=0;i!!(e&&e.__v_isRef===!0),Rt=e=>Xe(e)?e:e==null?"":ge(e)||Ge(e)&&(e.toString===Cf||!we(e.toString))?Mf(e)?Rt(e.value):JSON.stringify(e,If,2):String(e),If=(e,n)=>Mf(n)?If(e,n.value):Bi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((i,[s,a],l)=>(i[qo(s,l)+" =>"]=a,i),{})}:Tf(n)?{[`Set(${n.size})`]:[...n.values()].map(i=>qo(i))}:Qn(n)?qo(n):Ge(n)&&!ge(n)&&!Lf(n)?String(n):n,qo=(e,n="")=>{var i;return Qn(e)?`Symbol(${(i=e.description)!=null?i:n})`:e};/** +**//*! #__NO_SIDE_EFFECTS__ */function Ba(e){const n=Object.create(null);for(const i of e.split(","))n[i]=1;return i=>i in n}const qe={},ji=[],vn=()=>{},vm=()=>!1,Ks=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Za=e=>e.startsWith("onUpdate:"),ft=Object.assign,Fa=(e,n)=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)},ym=Object.prototype.hasOwnProperty,Be=(e,n)=>ym.call(e,n),ge=Array.isArray,Bi=e=>Gs(e)==="[object Map]",Tf=e=>Gs(e)==="[object Set]",we=e=>typeof e=="function",Xe=e=>typeof e=="string",Xn=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",xf=e=>(Ge(e)||we(e))&&we(e.then)&&we(e.catch),Cf=Object.prototype.toString,Gs=e=>Cf.call(e),wm=e=>Gs(e).slice(8,-1),Lf=e=>Gs(e)==="[object Object]",Va=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Pr=Ba(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Js=e=>{const n=Object.create(null);return i=>n[i]||(n[i]=e(i))},bm=/-(\w)/g,nn=Js(e=>e.replace(bm,(n,i)=>i?i.toUpperCase():"")),Pm=/\B([A-Z])/g,Pi=Js(e=>e.replace(Pm,"-$1").toLowerCase()),Ys=Js(e=>e.charAt(0).toUpperCase()+e.slice(1)),Uo=Js(e=>e?`on${Ys(e)}`:""),Jn=(e,n)=>!Object.is(e,n),Ls=(e,...n)=>{for(let i=0;i{Object.defineProperty(e,n,{configurable:!0,enumerable:!1,writable:s,value:i})},pa=e=>{const n=parseFloat(e);return isNaN(n)?e:n},$m=e=>{const n=Xe(e)?Number(e):NaN;return isNaN(n)?e:n};let Xc;const Of=()=>Xc||(Xc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ha(e){if(ge(e)){const n={};for(let i=0;i{if(i){const s=i.split(Em);s.length>1&&(n[s[0].trim()]=s[1].trim())}}),n}function vi(e){let n="";if(Xe(e))n=e;else if(ge(e))for(let i=0;i!!(e&&e.__v_isRef===!0),Rt=e=>Xe(e)?e:e==null?"":ge(e)||Ge(e)&&(e.toString===Cf||!we(e.toString))?Mf(e)?Rt(e.value):JSON.stringify(e,If,2):String(e),If=(e,n)=>Mf(n)?If(e,n.value):Bi(n)?{[`Map(${n.size})`]:[...n.entries()].reduce((i,[s,a],l)=>(i[qo(s,l)+" =>"]=a,i),{})}:Tf(n)?{[`Set(${n.size})`]:[...n.values()].map(i=>qo(i))}:Xn(n)?qo(n):Ge(n)&&!ge(n)&&!Lf(n)?String(n):n,qo=(e,n="")=>{var i;return Xn(e)?`Symbol(${(i=e.description)!=null?i:n})`:e};/** * @vue/reactivity v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Bt;class km{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Bt,!n&&Bt&&(this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let n,i;if(this.scopes)for(n=0,i=this.scopes.length;n0)return;let e;for(;$r;){let n=$r;for($r=void 0;n;){const i=n.nextEffect;if(n.nextEffect=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(s){e||(e=s)}n=i}}if(e)throw e}function zf(e){for(let n=e.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function Df(e){let n,i=e.depsTail;for(let s=i;s;s=s.prevDep)s.version===-1?(s===i&&(i=s.prevDep),Wa(s),Rm(s)):n=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0;e.deps=n,e.depsTail=i}function ma(e){for(let n=e.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&jf(n.dep.computed)||n.dep.version!==n.version)return!0;return!!e._dirty}function jf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir))return;e.globalVersion=Ir;const n=e.dep;if(e.flags|=2,n.version>0&&!e.isSSR&&!ma(e)){e.flags&=-3;return}const i=He,s=Qt;He=e,Qt=!0;try{zf(e);const a=e.fn(e._value);(n.version===0||Yn(a,e._value))&&(e._value=a,n.version++)}catch(a){throw n.version++,a}finally{He=i,Qt=s,Df(e),e.flags&=-3}}function Wa(e){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i),!n.subs&&n.computed){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)Wa(a)}}function Rm(e){const{prevDep:n,nextDep:i}=e;n&&(n.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=n,e.nextDep=void 0)}let Qt=!0;const Bf=[];function ei(){Bf.push(Qt),Qt=!1}function ti(){const e=Bf.pop();Qt=e===void 0?!0:e}function Qc(e){const{cleanup:n}=e;if(e.cleanup=void 0,n){const i=He;He=void 0;try{n()}finally{He=i}}}let Ir=0;class Ka{constructor(n){this.computed=n,this.version=0,this.activeLink=void 0,this.subs=void 0}track(n){if(!He||!Qt||He===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==He)i=this.activeLink={dep:this,sub:He,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},He.deps?(i.prevDep=He.depsTail,He.depsTail.nextDep=i,He.depsTail=i):He.deps=He.depsTail=i,He.flags&4&&Zf(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=He.depsTail,i.nextDep=void 0,He.depsTail.nextDep=i,He.depsTail=i,He.deps===i&&(He.deps=s)}return i}trigger(n){this.version++,Ir++,this.notify(n)}notify(n){Ua();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()}finally{qa()}}}function Zf(e){const n=e.dep.computed;if(n&&!e.dep.subs){n.flags|=20;for(let s=n.deps;s;s=s.nextDep)Zf(s)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}const _a=new WeakMap,gi=Symbol(""),ga=Symbol(""),Ar=Symbol("");function Tt(e,n,i){if(Qt&&He){let s=_a.get(e);s||_a.set(e,s=new Map);let a=s.get(i);a||s.set(i,a=new Ka),a.track()}}function Ln(e,n,i,s,a,l){const u=_a.get(e);if(!u){Ir++;return}const f=h=>{h&&h.trigger()};if(Ua(),n==="clear")u.forEach(f);else{const h=ge(e),p=h&&Va(i);if(h&&i==="length"){const m=Number(s);u.forEach((_,y)=>{(y==="length"||y===Ar||!Qn(y)&&y>=m)&&f(_)})}else switch(i!==void 0&&f(u.get(i)),p&&f(u.get(Ar)),n){case"add":h?p&&f(u.get("length")):(f(u.get(gi)),Bi(e)&&f(u.get(ga)));break;case"delete":h||(f(u.get(gi)),Bi(e)&&f(u.get(ga)));break;case"set":Bi(e)&&f(u.get(gi));break}}qa()}function Ri(e){const n=je(e);return n===e?n:(Tt(n,"iterate",Ar),Wt(e)?n:n.map(St))}function Qs(e){return Tt(e=je(e),"iterate",Ar),e}const Mm={__proto__:null,[Symbol.iterator](){return Ko(this,Symbol.iterator,St)},concat(...e){return Ri(this).concat(...e.map(n=>ge(n)?Ri(n):n))},entries(){return Ko(this,"entries",e=>(e[1]=St(e[1]),e))},every(e,n){return En(this,"every",e,n,void 0,arguments)},filter(e,n){return En(this,"filter",e,n,i=>i.map(St),arguments)},find(e,n){return En(this,"find",e,n,St,arguments)},findIndex(e,n){return En(this,"findIndex",e,n,void 0,arguments)},findLast(e,n){return En(this,"findLast",e,n,St,arguments)},findLastIndex(e,n){return En(this,"findLastIndex",e,n,void 0,arguments)},forEach(e,n){return En(this,"forEach",e,n,void 0,arguments)},includes(...e){return Go(this,"includes",e)},indexOf(...e){return Go(this,"indexOf",e)},join(e){return Ri(this).join(e)},lastIndexOf(...e){return Go(this,"lastIndexOf",e)},map(e,n){return En(this,"map",e,n,void 0,arguments)},pop(){return pr(this,"pop")},push(...e){return pr(this,"push",e)},reduce(e,...n){return eu(this,"reduce",e,n)},reduceRight(e,...n){return eu(this,"reduceRight",e,n)},shift(){return pr(this,"shift")},some(e,n){return En(this,"some",e,n,void 0,arguments)},splice(...e){return pr(this,"splice",e)},toReversed(){return Ri(this).toReversed()},toSorted(e){return Ri(this).toSorted(e)},toSpliced(...e){return Ri(this).toSpliced(...e)},unshift(...e){return pr(this,"unshift",e)},values(){return Ko(this,"values",St)}};function Ko(e,n,i){const s=Qs(e),a=s[n]();return s!==e&&!Wt(e)&&(a._next=a.next,a.next=()=>{const l=a._next();return l.value&&(l.value=i(l.value)),l}),a}const Im=Array.prototype;function En(e,n,i,s,a,l){const u=Qs(e),f=u!==e&&!Wt(e),h=u[n];if(h!==Im[n]){const _=h.apply(e,l);return f?St(_):_}let p=i;u!==e&&(f?p=function(_,y){return i.call(this,St(_),y,e)}:i.length>2&&(p=function(_,y){return i.call(this,_,y,e)}));const m=h.call(u,p,s);return f&&a?a(m):m}function eu(e,n,i,s){const a=Qs(e);let l=i;return a!==e&&(Wt(e)?i.length>3&&(l=function(u,f,h){return i.call(this,u,f,h,e)}):l=function(u,f,h){return i.call(this,u,St(f),h,e)}),a[n](l,...s)}function Go(e,n,i){const s=je(e);Tt(s,"iterate",Ar);const a=s[n](...i);return(a===-1||a===!1)&&Xa(i[0])?(i[0]=je(i[0]),s[n](...i)):a}function pr(e,n,i=[]){ei(),Ua();const s=je(e)[n].apply(e,i);return qa(),ti(),s}const Am=Ba("__proto__,__v_isRef,__isVue"),Ff=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qn));function Nm(e){Qn(e)||(e=String(e));const n=je(this);return Tt(n,"has",e),n.hasOwnProperty(e)}class Vf{constructor(n=!1,i=!1){this._isReadonly=n,this._isShallow=i}get(n,i,s){const a=this._isReadonly,l=this._isShallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return l;if(i==="__v_raw")return s===(a?l?Gm:Wf:l?qf:Uf).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(s)?n:void 0;const u=ge(n);if(!a){let h;if(u&&(h=Mm[i]))return h;if(i==="hasOwnProperty")return Nm}const f=Reflect.get(n,i,Et(n)?n:s);return(Qn(i)?Ff.has(i):Am(i))||(a||Tt(n,"get",i),l)?f:Et(f)?u&&Va(i)?f:f.value:Ge(f)?a?Gf(f):to(f):f}}class Hf extends Vf{constructor(n=!1){super(!1,n)}set(n,i,s,a){let l=n[i];if(!this._isShallow){const h=yi(l);if(!Wt(s)&&!yi(s)&&(l=je(l),s=je(s)),!ge(n)&&Et(l)&&!Et(s))return h?!1:(l.value=s,!0)}const u=ge(n)&&Va(i)?Number(i)e,eo=e=>Reflect.getPrototypeOf(e);function _s(e,n,i=!1,s=!1){e=e.__v_raw;const a=je(e),l=je(n);i||(Yn(n,l)&&Tt(a,"get",n),Tt(a,"get",l));const{has:u}=eo(a),f=s?Ga:i?Qa:St;if(u.call(a,n))return f(e.get(n));if(u.call(a,l))return f(e.get(l));e!==a&&e.get(n)}function gs(e,n=!1){const i=this.__v_raw,s=je(i),a=je(e);return n||(Yn(e,a)&&Tt(s,"has",e),Tt(s,"has",a)),e===a?i.has(e):i.has(e)||i.has(a)}function vs(e,n=!1){return e=e.__v_raw,!n&&Tt(je(e),"iterate",gi),Reflect.get(e,"size",e)}function tu(e,n=!1){!n&&!Wt(e)&&!yi(e)&&(e=je(e));const i=je(this);return eo(i).has.call(i,e)||(i.add(e),Ln(i,"add",e,e)),this}function nu(e,n,i=!1){!i&&!Wt(n)&&!yi(n)&&(n=je(n));const s=je(this),{has:a,get:l}=eo(s);let u=a.call(s,e);u||(e=je(e),u=a.call(s,e));const f=l.call(s,e);return s.set(e,n),u?Yn(n,f)&&Ln(s,"set",e,n):Ln(s,"add",e,n),this}function iu(e){const n=je(this),{has:i,get:s}=eo(n);let a=i.call(n,e);a||(e=je(e),a=i.call(n,e)),s&&s.call(n,e);const l=n.delete(e);return a&&Ln(n,"delete",e,void 0),l}function ru(){const e=je(this),n=e.size!==0,i=e.clear();return n&&Ln(e,"clear",void 0,void 0),i}function ys(e,n){return function(s,a){const l=this,u=l.__v_raw,f=je(u),h=n?Ga:e?Qa:St;return!e&&Tt(f,"iterate",gi),u.forEach((p,m)=>s.call(a,h(p),h(m),l))}}function ws(e,n,i){return function(...s){const a=this.__v_raw,l=je(a),u=Bi(l),f=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,p=a[e](...s),m=i?Ga:n?Qa:St;return!n&&Tt(l,"iterate",h?ga:gi),{next(){const{value:_,done:y}=p.next();return y?{value:_,done:y}:{value:f?[m(_[0]),m(_[1])]:m(_),done:y}},[Symbol.iterator](){return this}}}}function Dn(e){return function(...n){return e==="delete"?!1:e==="clear"?void 0:this}}function Zm(){const e={get(l){return _s(this,l)},get size(){return vs(this)},has:gs,add:tu,set:nu,delete:iu,clear:ru,forEach:ys(!1,!1)},n={get(l){return _s(this,l,!1,!0)},get size(){return vs(this)},has:gs,add(l){return tu.call(this,l,!0)},set(l,u){return nu.call(this,l,u,!0)},delete:iu,clear:ru,forEach:ys(!1,!0)},i={get(l){return _s(this,l,!0)},get size(){return vs(this,!0)},has(l){return gs.call(this,l,!0)},add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear"),forEach:ys(!0,!1)},s={get(l){return _s(this,l,!0,!0)},get size(){return vs(this,!0)},has(l){return gs.call(this,l,!0)},add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear"),forEach:ys(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=ws(l,!1,!1),i[l]=ws(l,!0,!1),n[l]=ws(l,!1,!0),s[l]=ws(l,!0,!0)}),[e,i,n,s]}const[Fm,Vm,Hm,Um]=Zm();function Ja(e,n){const i=n?e?Um:Hm:e?Vm:Fm;return(s,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(Be(i,a)&&a in s?i:s,a,l)}const qm={get:Ja(!1,!1)},Wm={get:Ja(!1,!0)},Km={get:Ja(!0,!1)};const Uf=new WeakMap,qf=new WeakMap,Wf=new WeakMap,Gm=new WeakMap;function Jm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ym(e){return e.__v_skip||!Object.isExtensible(e)?0:Jm(wm(e))}function to(e){return yi(e)?e:Ya(e,!1,Dm,qm,Uf)}function Kf(e){return Ya(e,!1,Bm,Wm,qf)}function Gf(e){return Ya(e,!0,jm,Km,Wf)}function Ya(e,n,i,s,a){if(!Ge(e)||e.__v_raw&&!(n&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const u=Ym(e);if(u===0)return e;const f=new Proxy(e,u===2?s:i);return a.set(e,f),f}function Zi(e){return yi(e)?Zi(e.__v_raw):!!(e&&e.__v_isReactive)}function yi(e){return!!(e&&e.__v_isReadonly)}function Wt(e){return!!(e&&e.__v_isShallow)}function Xa(e){return e?!!e.__v_raw:!1}function je(e){const n=e&&e.__v_raw;return n?je(n):e}function Xm(e){return!Be(e,"__v_skip")&&Object.isExtensible(e)&&kf(e,"__v_skip",!0),e}const St=e=>Ge(e)?to(e):e,Qa=e=>Ge(e)?Gf(e):e;function Et(e){return e?e.__v_isRef===!0:!1}function it(e){return Jf(e,!1)}function Qm(e){return Jf(e,!0)}function Jf(e,n){return Et(e)?e:new e_(e,n)}class e_{constructor(n,i){this.dep=new Ka,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?n:je(n),this._value=i?n:St(n),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(n){const i=this._rawValue,s=this.__v_isShallow||Wt(n)||yi(n);n=s?n:je(n),Yn(n,i)&&(this._rawValue=n,this._value=s?n:St(n),this.dep.trigger())}}function ke(e){return Et(e)?e.value:e}const t_={get:(e,n,i)=>n==="__v_raw"?e:ke(Reflect.get(e,n,i)),set:(e,n,i,s)=>{const a=e[n];return Et(a)&&!Et(i)?(a.value=i,!0):Reflect.set(e,n,i,s)}};function Yf(e){return Zi(e)?e:new Proxy(e,t_)}class n_{constructor(n,i,s){this.fn=n,this.setter=i,this._value=void 0,this.dep=new Ka(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){this.flags|=16,He!==this&&this.dep.notify()}get value(){const n=this.dep.track();return jf(this),n&&(n.version=this.dep.version),this._value}set value(n){this.setter&&this.setter(n)}}function i_(e,n,i=!1){let s,a;return we(e)?s=e:(s=e.get,a=e.set),new n_(s,a,i)}const bs={},js=new WeakMap;let hi;function r_(e,n=!1,i=hi){if(i){let s=js.get(i);s||js.set(i,s=[]),s.push(e)}}function s_(e,n,i=qe){const{immediate:s,deep:a,once:l,scheduler:u,augmentJob:f,call:h}=i,p=B=>a?B:Wt(B)||a===!1||a===0?Cn(B,1):Cn(B);let m,_,y,b,x=!1,T=!1;if(Et(e)?(_=()=>e.value,x=Wt(e)):Zi(e)?(_=()=>p(e),x=!0):ge(e)?(T=!0,x=e.some(B=>Zi(B)||Wt(B)),_=()=>e.map(B=>{if(Et(B))return B.value;if(Zi(B))return p(B);if(we(B))return h?h(B,2):B()})):we(e)?n?_=h?()=>h(e,2):e:_=()=>{if(y){ei();try{y()}finally{ti()}}const B=hi;hi=m;try{return h?h(e,3,[b]):e(b)}finally{hi=B}}:_=vn,n&&a){const B=_,G=a===!0?1/0:a;_=()=>Cn(B(),G)}const C=Om(),P=()=>{m.stop(),C&&Fa(C.effects,m)};if(l)if(n){const B=n;n=(...G)=>{B(...G),P()}}else{const B=_;_=()=>{B(),P()}}let k=T?new Array(e.length).fill(bs):bs;const z=B=>{if(!(!(m.flags&1)||!m.dirty&&!B))if(n){const G=m.run();if(a||x||(T?G.some((oe,de)=>Yn(oe,k[de])):Yn(G,k))){y&&y();const oe=hi;hi=m;try{const de=[G,k===bs?void 0:T&&k[0]===bs?[]:k,b];h?h(n,3,de):n(...de),k=G}finally{hi=oe}}}else m.run()};return f&&f(z),m=new Af(_),m.scheduler=u?()=>u(z,!1):z,b=B=>r_(B,!1,m),y=m.onStop=()=>{const B=js.get(m);if(B){if(h)h(B,4);else for(const G of B)G();js.delete(m)}},n?s?z(!0):k=m.run():u?u(z.bind(null,!0),!0):m.run(),P.pause=m.pause.bind(m),P.resume=m.resume.bind(m),P.stop=P,P}function Cn(e,n=1/0,i){if(n<=0||!Ge(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),n--,Et(e))Cn(e.value,n,i);else if(ge(e))for(let s=0;s{Cn(s,n,i)});else if(Lf(e)){for(const s in e)Cn(e[s],n,i);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Cn(e[s],n,i)}return e}/** +**/let Bt;class km{constructor(n=!1){this.detached=n,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Bt,!n&&Bt&&(this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let n,i;if(this.scopes)for(n=0,i=this.scopes.length;n0)return;let e;for(;$r;){let n=$r;for($r=void 0;n;){const i=n.nextEffect;if(n.nextEffect=void 0,n.flags&=-9,n.flags&1)try{n.trigger()}catch(s){e||(e=s)}n=i}}if(e)throw e}function zf(e){for(let n=e.deps;n;n=n.nextDep)n.version=-1,n.prevActiveLink=n.dep.activeLink,n.dep.activeLink=n}function Df(e){let n,i=e.depsTail;for(let s=i;s;s=s.prevDep)s.version===-1?(s===i&&(i=s.prevDep),Wa(s),Rm(s)):n=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0;e.deps=n,e.depsTail=i}function ma(e){for(let n=e.deps;n;n=n.nextDep)if(n.dep.version!==n.version||n.dep.computed&&jf(n.dep.computed)||n.dep.version!==n.version)return!0;return!!e._dirty}function jf(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ir))return;e.globalVersion=Ir;const n=e.dep;if(e.flags|=2,n.version>0&&!e.isSSR&&!ma(e)){e.flags&=-3;return}const i=He,s=Qt;He=e,Qt=!0;try{zf(e);const a=e.fn(e._value);(n.version===0||Jn(a,e._value))&&(e._value=a,n.version++)}catch(a){throw n.version++,a}finally{He=i,Qt=s,Df(e),e.flags&=-3}}function Wa(e){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i),!n.subs&&n.computed){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)Wa(a)}}function Rm(e){const{prevDep:n,nextDep:i}=e;n&&(n.nextDep=i,e.prevDep=void 0),i&&(i.prevDep=n,e.nextDep=void 0)}let Qt=!0;const Bf=[];function Qn(){Bf.push(Qt),Qt=!1}function ei(){const e=Bf.pop();Qt=e===void 0?!0:e}function Qc(e){const{cleanup:n}=e;if(e.cleanup=void 0,n){const i=He;He=void 0;try{n()}finally{He=i}}}let Ir=0;class Ka{constructor(n){this.computed=n,this.version=0,this.activeLink=void 0,this.subs=void 0}track(n){if(!He||!Qt||He===this.computed)return;let i=this.activeLink;if(i===void 0||i.sub!==He)i=this.activeLink={dep:this,sub:He,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},He.deps?(i.prevDep=He.depsTail,He.depsTail.nextDep=i,He.depsTail=i):He.deps=He.depsTail=i,He.flags&4&&Zf(i);else if(i.version===-1&&(i.version=this.version,i.nextDep)){const s=i.nextDep;s.prevDep=i.prevDep,i.prevDep&&(i.prevDep.nextDep=s),i.prevDep=He.depsTail,i.nextDep=void 0,He.depsTail.nextDep=i,He.depsTail=i,He.deps===i&&(He.deps=s)}return i}trigger(n){this.version++,Ir++,this.notify(n)}notify(n){Ua();try{for(let i=this.subs;i;i=i.prevSub)i.sub.notify()}finally{qa()}}}function Zf(e){const n=e.dep.computed;if(n&&!e.dep.subs){n.flags|=20;for(let s=n.deps;s;s=s.nextDep)Zf(s)}const i=e.dep.subs;i!==e&&(e.prevSub=i,i&&(i.nextSub=e)),e.dep.subs=e}const _a=new WeakMap,_i=Symbol(""),ga=Symbol(""),Ar=Symbol("");function Tt(e,n,i){if(Qt&&He){let s=_a.get(e);s||_a.set(e,s=new Map);let a=s.get(i);a||s.set(i,a=new Ka),a.track()}}function Ln(e,n,i,s,a,l){const u=_a.get(e);if(!u){Ir++;return}const f=h=>{h&&h.trigger()};if(Ua(),n==="clear")u.forEach(f);else{const h=ge(e),p=h&&Va(i);if(h&&i==="length"){const m=Number(s);u.forEach((_,y)=>{(y==="length"||y===Ar||!Xn(y)&&y>=m)&&f(_)})}else switch(i!==void 0&&f(u.get(i)),p&&f(u.get(Ar)),n){case"add":h?p&&f(u.get("length")):(f(u.get(_i)),Bi(e)&&f(u.get(ga)));break;case"delete":h||(f(u.get(_i)),Bi(e)&&f(u.get(ga)));break;case"set":Bi(e)&&f(u.get(_i));break}}qa()}function Ri(e){const n=je(e);return n===e?n:(Tt(n,"iterate",Ar),Wt(e)?n:n.map(St))}function Xs(e){return Tt(e=je(e),"iterate",Ar),e}const Mm={__proto__:null,[Symbol.iterator](){return Ko(this,Symbol.iterator,St)},concat(...e){return Ri(this).concat(...e.map(n=>ge(n)?Ri(n):n))},entries(){return Ko(this,"entries",e=>(e[1]=St(e[1]),e))},every(e,n){return En(this,"every",e,n,void 0,arguments)},filter(e,n){return En(this,"filter",e,n,i=>i.map(St),arguments)},find(e,n){return En(this,"find",e,n,St,arguments)},findIndex(e,n){return En(this,"findIndex",e,n,void 0,arguments)},findLast(e,n){return En(this,"findLast",e,n,St,arguments)},findLastIndex(e,n){return En(this,"findLastIndex",e,n,void 0,arguments)},forEach(e,n){return En(this,"forEach",e,n,void 0,arguments)},includes(...e){return Go(this,"includes",e)},indexOf(...e){return Go(this,"indexOf",e)},join(e){return Ri(this).join(e)},lastIndexOf(...e){return Go(this,"lastIndexOf",e)},map(e,n){return En(this,"map",e,n,void 0,arguments)},pop(){return pr(this,"pop")},push(...e){return pr(this,"push",e)},reduce(e,...n){return eu(this,"reduce",e,n)},reduceRight(e,...n){return eu(this,"reduceRight",e,n)},shift(){return pr(this,"shift")},some(e,n){return En(this,"some",e,n,void 0,arguments)},splice(...e){return pr(this,"splice",e)},toReversed(){return Ri(this).toReversed()},toSorted(e){return Ri(this).toSorted(e)},toSpliced(...e){return Ri(this).toSpliced(...e)},unshift(...e){return pr(this,"unshift",e)},values(){return Ko(this,"values",St)}};function Ko(e,n,i){const s=Xs(e),a=s[n]();return s!==e&&!Wt(e)&&(a._next=a.next,a.next=()=>{const l=a._next();return l.value&&(l.value=i(l.value)),l}),a}const Im=Array.prototype;function En(e,n,i,s,a,l){const u=Xs(e),f=u!==e&&!Wt(e),h=u[n];if(h!==Im[n]){const _=h.apply(e,l);return f?St(_):_}let p=i;u!==e&&(f?p=function(_,y){return i.call(this,St(_),y,e)}:i.length>2&&(p=function(_,y){return i.call(this,_,y,e)}));const m=h.call(u,p,s);return f&&a?a(m):m}function eu(e,n,i,s){const a=Xs(e);let l=i;return a!==e&&(Wt(e)?i.length>3&&(l=function(u,f,h){return i.call(this,u,f,h,e)}):l=function(u,f,h){return i.call(this,u,St(f),h,e)}),a[n](l,...s)}function Go(e,n,i){const s=je(e);Tt(s,"iterate",Ar);const a=s[n](...i);return(a===-1||a===!1)&&Xa(i[0])?(i[0]=je(i[0]),s[n](...i)):a}function pr(e,n,i=[]){Qn(),Ua();const s=je(e)[n].apply(e,i);return qa(),ei(),s}const Am=Ba("__proto__,__v_isRef,__isVue"),Ff=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Xn));function Nm(e){Xn(e)||(e=String(e));const n=je(this);return Tt(n,"has",e),n.hasOwnProperty(e)}class Vf{constructor(n=!1,i=!1){this._isReadonly=n,this._isShallow=i}get(n,i,s){const a=this._isReadonly,l=this._isShallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return l;if(i==="__v_raw")return s===(a?l?Gm:Wf:l?qf:Uf).get(n)||Object.getPrototypeOf(n)===Object.getPrototypeOf(s)?n:void 0;const u=ge(n);if(!a){let h;if(u&&(h=Mm[i]))return h;if(i==="hasOwnProperty")return Nm}const f=Reflect.get(n,i,Et(n)?n:s);return(Xn(i)?Ff.has(i):Am(i))||(a||Tt(n,"get",i),l)?f:Et(f)?u&&Va(i)?f:f.value:Ge(f)?a?Gf(f):eo(f):f}}class Hf extends Vf{constructor(n=!1){super(!1,n)}set(n,i,s,a){let l=n[i];if(!this._isShallow){const h=yi(l);if(!Wt(s)&&!yi(s)&&(l=je(l),s=je(s)),!ge(n)&&Et(l)&&!Et(s))return h?!1:(l.value=s,!0)}const u=ge(n)&&Va(i)?Number(i)e,Qs=e=>Reflect.getPrototypeOf(e);function ms(e,n,i=!1,s=!1){e=e.__v_raw;const a=je(e),l=je(n);i||(Jn(n,l)&&Tt(a,"get",n),Tt(a,"get",l));const{has:u}=Qs(a),f=s?Ga:i?Qa:St;if(u.call(a,n))return f(e.get(n));if(u.call(a,l))return f(e.get(l));e!==a&&e.get(n)}function _s(e,n=!1){const i=this.__v_raw,s=je(i),a=je(e);return n||(Jn(e,a)&&Tt(s,"has",e),Tt(s,"has",a)),e===a?i.has(e):i.has(e)||i.has(a)}function gs(e,n=!1){return e=e.__v_raw,!n&&Tt(je(e),"iterate",_i),Reflect.get(e,"size",e)}function tu(e,n=!1){!n&&!Wt(e)&&!yi(e)&&(e=je(e));const i=je(this);return Qs(i).has.call(i,e)||(i.add(e),Ln(i,"add",e,e)),this}function nu(e,n,i=!1){!i&&!Wt(n)&&!yi(n)&&(n=je(n));const s=je(this),{has:a,get:l}=Qs(s);let u=a.call(s,e);u||(e=je(e),u=a.call(s,e));const f=l.call(s,e);return s.set(e,n),u?Jn(n,f)&&Ln(s,"set",e,n):Ln(s,"add",e,n),this}function iu(e){const n=je(this),{has:i,get:s}=Qs(n);let a=i.call(n,e);a||(e=je(e),a=i.call(n,e)),s&&s.call(n,e);const l=n.delete(e);return a&&Ln(n,"delete",e,void 0),l}function ru(){const e=je(this),n=e.size!==0,i=e.clear();return n&&Ln(e,"clear",void 0,void 0),i}function vs(e,n){return function(s,a){const l=this,u=l.__v_raw,f=je(u),h=n?Ga:e?Qa:St;return!e&&Tt(f,"iterate",_i),u.forEach((p,m)=>s.call(a,h(p),h(m),l))}}function ys(e,n,i){return function(...s){const a=this.__v_raw,l=je(a),u=Bi(l),f=e==="entries"||e===Symbol.iterator&&u,h=e==="keys"&&u,p=a[e](...s),m=i?Ga:n?Qa:St;return!n&&Tt(l,"iterate",h?ga:_i),{next(){const{value:_,done:y}=p.next();return y?{value:_,done:y}:{value:f?[m(_[0]),m(_[1])]:m(_),done:y}},[Symbol.iterator](){return this}}}}function Dn(e){return function(...n){return e==="delete"?!1:e==="clear"?void 0:this}}function Zm(){const e={get(l){return ms(this,l)},get size(){return gs(this)},has:_s,add:tu,set:nu,delete:iu,clear:ru,forEach:vs(!1,!1)},n={get(l){return ms(this,l,!1,!0)},get size(){return gs(this)},has:_s,add(l){return tu.call(this,l,!0)},set(l,u){return nu.call(this,l,u,!0)},delete:iu,clear:ru,forEach:vs(!1,!0)},i={get(l){return ms(this,l,!0)},get size(){return gs(this,!0)},has(l){return _s.call(this,l,!0)},add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear"),forEach:vs(!0,!1)},s={get(l){return ms(this,l,!0,!0)},get size(){return gs(this,!0)},has(l){return _s.call(this,l,!0)},add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear"),forEach:vs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=ys(l,!1,!1),i[l]=ys(l,!0,!1),n[l]=ys(l,!1,!0),s[l]=ys(l,!0,!0)}),[e,i,n,s]}const[Fm,Vm,Hm,Um]=Zm();function Ja(e,n){const i=n?e?Um:Hm:e?Vm:Fm;return(s,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(Be(i,a)&&a in s?i:s,a,l)}const qm={get:Ja(!1,!1)},Wm={get:Ja(!1,!0)},Km={get:Ja(!0,!1)};const Uf=new WeakMap,qf=new WeakMap,Wf=new WeakMap,Gm=new WeakMap;function Jm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ym(e){return e.__v_skip||!Object.isExtensible(e)?0:Jm(wm(e))}function eo(e){return yi(e)?e:Ya(e,!1,Dm,qm,Uf)}function Kf(e){return Ya(e,!1,Bm,Wm,qf)}function Gf(e){return Ya(e,!0,jm,Km,Wf)}function Ya(e,n,i,s,a){if(!Ge(e)||e.__v_raw&&!(n&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const u=Ym(e);if(u===0)return e;const f=new Proxy(e,u===2?s:i);return a.set(e,f),f}function Zi(e){return yi(e)?Zi(e.__v_raw):!!(e&&e.__v_isReactive)}function yi(e){return!!(e&&e.__v_isReadonly)}function Wt(e){return!!(e&&e.__v_isShallow)}function Xa(e){return e?!!e.__v_raw:!1}function je(e){const n=e&&e.__v_raw;return n?je(n):e}function Xm(e){return!Be(e,"__v_skip")&&Object.isExtensible(e)&&kf(e,"__v_skip",!0),e}const St=e=>Ge(e)?eo(e):e,Qa=e=>Ge(e)?Gf(e):e;function Et(e){return e?e.__v_isRef===!0:!1}function it(e){return Jf(e,!1)}function Qm(e){return Jf(e,!0)}function Jf(e,n){return Et(e)?e:new e_(e,n)}class e_{constructor(n,i){this.dep=new Ka,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=i?n:je(n),this._value=i?n:St(n),this.__v_isShallow=i}get value(){return this.dep.track(),this._value}set value(n){const i=this._rawValue,s=this.__v_isShallow||Wt(n)||yi(n);n=s?n:je(n),Jn(n,i)&&(this._rawValue=n,this._value=s?n:St(n),this.dep.trigger())}}function ke(e){return Et(e)?e.value:e}const t_={get:(e,n,i)=>n==="__v_raw"?e:ke(Reflect.get(e,n,i)),set:(e,n,i,s)=>{const a=e[n];return Et(a)&&!Et(i)?(a.value=i,!0):Reflect.set(e,n,i,s)}};function Yf(e){return Zi(e)?e:new Proxy(e,t_)}class n_{constructor(n,i,s){this.fn=n,this.setter=i,this._value=void 0,this.dep=new Ka(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ir-1,this.effect=this,this.__v_isReadonly=!i,this.isSSR=s}notify(){this.flags|=16,He!==this&&this.dep.notify()}get value(){const n=this.dep.track();return jf(this),n&&(n.version=this.dep.version),this._value}set value(n){this.setter&&this.setter(n)}}function i_(e,n,i=!1){let s,a;return we(e)?s=e:(s=e.get,a=e.set),new n_(s,a,i)}const ws={},Ds=new WeakMap;let fi;function r_(e,n=!1,i=fi){if(i){let s=Ds.get(i);s||Ds.set(i,s=[]),s.push(e)}}function s_(e,n,i=qe){const{immediate:s,deep:a,once:l,scheduler:u,augmentJob:f,call:h}=i,p=B=>a?B:Wt(B)||a===!1||a===0?Cn(B,1):Cn(B);let m,_,y,b,x=!1,T=!1;if(Et(e)?(_=()=>e.value,x=Wt(e)):Zi(e)?(_=()=>p(e),x=!0):ge(e)?(T=!0,x=e.some(B=>Zi(B)||Wt(B)),_=()=>e.map(B=>{if(Et(B))return B.value;if(Zi(B))return p(B);if(we(B))return h?h(B,2):B()})):we(e)?n?_=h?()=>h(e,2):e:_=()=>{if(y){Qn();try{y()}finally{ei()}}const B=fi;fi=m;try{return h?h(e,3,[b]):e(b)}finally{fi=B}}:_=vn,n&&a){const B=_,G=a===!0?1/0:a;_=()=>Cn(B(),G)}const C=Om(),P=()=>{m.stop(),C&&Fa(C.effects,m)};if(l)if(n){const B=n;n=(...G)=>{B(...G),P()}}else{const B=_;_=()=>{B(),P()}}let k=T?new Array(e.length).fill(ws):ws;const z=B=>{if(!(!(m.flags&1)||!m.dirty&&!B))if(n){const G=m.run();if(a||x||(T?G.some((oe,de)=>Jn(oe,k[de])):Jn(G,k))){y&&y();const oe=fi;fi=m;try{const de=[G,k===ws?void 0:T&&k[0]===ws?[]:k,b];h?h(n,3,de):n(...de),k=G}finally{fi=oe}}}else m.run()};return f&&f(z),m=new Af(_),m.scheduler=u?()=>u(z,!1):z,b=B=>r_(B,!1,m),y=m.onStop=()=>{const B=Ds.get(m);if(B){if(h)h(B,4);else for(const G of B)G();Ds.delete(m)}},n?s?z(!0):k=m.run():u?u(z.bind(null,!0),!0):m.run(),P.pause=m.pause.bind(m),P.resume=m.resume.bind(m),P.stop=P,P}function Cn(e,n=1/0,i){if(n<=0||!Ge(e)||e.__v_skip||(i=i||new Set,i.has(e)))return e;if(i.add(e),n--,Et(e))Cn(e.value,n,i);else if(ge(e))for(let s=0;s{Cn(s,n,i)});else if(Lf(e)){for(const s in e)Cn(e[s],n,i);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Cn(e[s],n,i)}return e}/** * @vue/runtime-core v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function Hr(e,n,i,s){try{return s?e(...s):e()}catch(a){no(a,n,i)}}function rn(e,n,i,s){if(we(e)){const a=Hr(e,n,i,s);return a&&xf(a)&&a.catch(l=>{no(l,n,i)}),a}if(ge(e)){const a=[];for(let l=0;l>>1,a=Ot[s],l=zr(a);l=zr(i)?Ot.push(e):Ot.splice(a_(n),0,e),e.flags|=1,eh()}}function eh(){!Nr&&!va&&(va=!0,el=Xf.then(nh))}function l_(e){ge(e)?Fi.push(...e):Hn&&e.id===-1?Hn.splice(Ai+1,0,e):e.flags&1||(Fi.push(e),e.flags|=1),eh()}function su(e,n,i=Nr?fn+1:0){for(;izr(i)-zr(s));if(Fi.length=0,Hn){Hn.push(...n);return}for(Hn=n,Ai=0;Aie.id==null?e.flags&2?-1:1/0:e.id;function nh(e){va=!1,Nr=!0;try{for(fn=0;fn{s._d&&mu(-1);const l=Bs(n);let u;try{u=e(...a)}finally{Bs(l),s._d&&mu(1)}return u};return s._n=!0,s._c=!0,s._d=!0,s}function c_(e,n){if(pt===null)return e;const i=lo(pt),s=e.dirs||(e.dirs=[]);for(let a=0;ae.__isTeleport,Un=Symbol("_leaveCb"),Ps=Symbol("_enterCb");function f_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nl(()=>{e.isMounted=!0}),hh(()=>{e.isUnmounting=!0}),e}const Ut=[Function,Array],sh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},oh=e=>{const n=e.subTree;return n.component?oh(n.component):n},h_={name:"BaseTransition",props:sh,setup(e,{slots:n}){const i=og(),s=f_();return()=>{const a=n.default&&ch(n.default(),!0);if(!a||!a.length)return;const l=ah(a),u=je(e),{mode:f}=u;if(s.isLeaving)return Jo(l);const h=ou(l);if(!h)return Jo(l);let p=ya(h,u,s,i,y=>p=y);h.type!==Mt&&Dr(h,p);const m=i.subTree,_=m&&ou(m);if(_&&_.type!==Mt&&!di(h,_)&&oh(i).type!==Mt){const y=ya(_,u,s,i);if(Dr(_,y),f==="out-in"&&h.type!==Mt)return s.isLeaving=!0,y.afterLeave=()=>{s.isLeaving=!1,i.job.flags&8||i.update(),delete y.afterLeave},Jo(l);f==="in-out"&&h.type!==Mt&&(y.delayLeave=(b,x,T)=>{const C=lh(s,_);C[String(_.key)]=_,b[Un]=()=>{x(),b[Un]=void 0,delete p.delayedLeave},p.delayedLeave=T})}return l}}};function ah(e){let n=e[0];if(e.length>1){for(const i of e)if(i.type!==Mt){n=i;break}}return n}const d_=h_;function lh(e,n){const{leavingVNodes:i}=e;let s=i.get(n.type);return s||(s=Object.create(null),i.set(n.type,s)),s}function ya(e,n,i,s,a){const{appear:l,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:m,onEnterCancelled:_,onBeforeLeave:y,onLeave:b,onAfterLeave:x,onLeaveCancelled:T,onBeforeAppear:C,onAppear:P,onAfterAppear:k,onAppearCancelled:z}=n,B=String(e.key),G=lh(i,e),oe=(fe,be)=>{fe&&rn(fe,s,9,be)},de=(fe,be)=>{const ve=be[1];oe(fe,be),ge(fe)?fe.every(Q=>Q.length<=1)&&ve():fe.length<=1&&ve()},Ze={mode:u,persisted:f,beforeEnter(fe){let be=h;if(!i.isMounted)if(l)be=C||h;else return;fe[Un]&&fe[Un](!0);const ve=G[B];ve&&di(e,ve)&&ve.el[Un]&&ve.el[Un](),oe(be,[fe])},enter(fe){let be=p,ve=m,Q=_;if(!i.isMounted)if(l)be=P||p,ve=k||m,Q=z||_;else return;let xe=!1;const Me=fe[Ps]=ot=>{xe||(xe=!0,ot?oe(Q,[fe]):oe(ve,[fe]),Ze.delayedLeave&&Ze.delayedLeave(),fe[Ps]=void 0)};be?de(be,[fe,Me]):Me()},leave(fe,be){const ve=String(e.key);if(fe[Ps]&&fe[Ps](!0),i.isUnmounting)return be();oe(y,[fe]);let Q=!1;const xe=fe[Un]=Me=>{Q||(Q=!0,be(),Me?oe(T,[fe]):oe(x,[fe]),fe[Un]=void 0,G[ve]===e&&delete G[ve])};G[ve]=e,b?de(b,[fe,xe]):xe()},clone(fe){const be=ya(fe,n,i,s,a);return a&&a(be),be}};return Ze}function Jo(e){if(io(e))return e=Xn(e),e.children=null,e}function ou(e){if(!io(e))return rh(e.type)&&e.children?ah(e.children):e;const{shapeFlag:n,children:i}=e;if(i){if(n&16)return i[0];if(n&32&&we(i.default))return i.default()}}function Dr(e,n){e.shapeFlag&6&&e.component?(e.transition=n,Dr(e.component.subTree,n)):e.shapeFlag&128?(e.ssContent.transition=n.clone(e.ssContent),e.ssFallback.transition=n.clone(e.ssFallback)):e.transition=n}function ch(e,n=!1,i){let s=[],a=0;for(let l=0;l1)for(let l=0;lwa(x,n&&(ge(n)?n[T]:n),i,s,a));return}if(Vi(s)&&!a)return;const l=s.shapeFlag&4?lo(s.component):s.el,u=a?null:l,{i:f,r:h}=e,p=n&&n.r,m=f.refs===qe?f.refs={}:f.refs,_=f.setupState,y=je(_),b=_===qe?()=>!1:x=>Be(y,x);if(p!=null&&p!==h&&(Xe(p)?(m[p]=null,b(p)&&(_[p]=null)):Et(p)&&(p.value=null)),we(h))Hr(h,f,12,[u,m]);else{const x=Xe(h),T=Et(h);if(x||T){const C=()=>{if(e.f){const P=x?b(h)?_[h]:m[h]:h.value;a?ge(P)&&Fa(P,l):ge(P)?P.includes(l)||P.push(l):x?(m[h]=[l],b(h)&&(_[h]=m[h])):(h.value=[l],e.k&&(m[e.k]=h.value))}else x?(m[h]=u,b(h)&&(_[h]=u)):T&&(h.value=u,e.k&&(m[e.k]=u))};u?(C.id=-1,jt(C,i)):C()}}}const Vi=e=>!!e.type.__asyncLoader,io=e=>e.type.__isKeepAlive;function p_(e,n){fh(e,"a",n)}function m_(e,n){fh(e,"da",n)}function fh(e,n,i=yt){const s=e.__wdc||(e.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(ro(n,s,i),i){let a=i.parent;for(;a&&a.parent;)io(a.parent.vnode)&&__(s,n,i,a),a=a.parent}}function __(e,n,i,s){const a=ro(n,e,s,!0);dh(()=>{Fa(s[n],a)},i)}function ro(e,n,i=yt,s=!1){if(i){const a=i[e]||(i[e]=[]),l=n.__weh||(n.__weh=(...u)=>{ei();const f=Ur(i),h=rn(n,i,e,u);return f(),ti(),h});return s?a.unshift(l):a.push(l),l}}const In=e=>(n,i=yt)=>{(!ao||e==="sp")&&ro(e,(...s)=>n(...s),i)},g_=In("bm"),nl=In("m"),v_=In("bu"),y_=In("u"),hh=In("bum"),dh=In("um"),w_=In("sp"),b_=In("rtg"),P_=In("rtc");function $_(e,n=yt){ro("ec",e,n)}const ph="components";function Yi(e,n){return _h(ph,e,!0,n)||e}const mh=Symbol.for("v-ndc");function S_(e){return Xe(e)?_h(ph,e,!1)||e:e||mh}function _h(e,n,i=!0,s=!1){const a=pt||yt;if(a){const l=a.type;{const f=fg(l,!1);if(f&&(f===n||f===nn(n)||f===Xs(nn(n))))return l}const u=au(a[e]||l[e],n)||au(a.appContext[e],n);return!u&&s?l:u}}function au(e,n){return e&&(e[n]||e[nn(n)]||e[Xs(nn(n))])}function Sr(e,n,i,s){let a;const l=i,u=ge(e);if(u||Xe(e)){const f=u&&Zi(e);let h=!1;f&&(h=!Wt(e),e=Qs(e)),a=new Array(e.length);for(let p=0,m=e.length;pn(f,h,void 0,l));else{const f=Object.keys(e);a=new Array(f.length);for(let h=0,p=f.length;h{const l=s.fn(...a);return l&&(l.key=s.key),l}:s.fn)}return e}function dn(e,n,i={},s,a){if(pt.ce||pt.parent&&Vi(pt.parent)&&pt.parent.ce)return n!=="default"&&(i.name=n),_e(),st(ct,null,[Ye("slot",i,s)],64);let l=e[n];l&&l._c&&(l._d=!1),_e();const u=l&&vh(l(i)),f=st(ct,{key:(i.key||u&&u.key||`_${n}`)+(!u&&s?"_fb":"")},u||[],u&&e._===1?64:-2);return!a&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),l&&l._c&&(l._d=!0),f}function vh(e){return e.some(n=>Fs(n)?!(n.type===Mt||n.type===ct&&!vh(n.children)):!0)?e:null}const ba=e=>e?Dh(e)?lo(e):ba(e.parent):null,Er=ft(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ba(e.parent),$root:e=>ba(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>il(e),$forceUpdate:e=>e.f||(e.f=()=>{tl(e.update)}),$nextTick:e=>e.n||(e.n=Qf.bind(e.proxy)),$watch:e=>U_.bind(e)}),Yo=(e,n)=>e!==qe&&!e.__isScriptSetup&&Be(e,n),E_={get({_:e},n){if(n==="__v_skip")return!0;const{ctx:i,setupState:s,data:a,props:l,accessCache:u,type:f,appContext:h}=e;let p;if(n[0]!=="$"){const b=u[n];if(b!==void 0)switch(b){case 1:return s[n];case 2:return a[n];case 4:return i[n];case 3:return l[n]}else{if(Yo(s,n))return u[n]=1,s[n];if(a!==qe&&Be(a,n))return u[n]=2,a[n];if((p=e.propsOptions[0])&&Be(p,n))return u[n]=3,l[n];if(i!==qe&&Be(i,n))return u[n]=4,i[n];Pa&&(u[n]=0)}}const m=Er[n];let _,y;if(m)return n==="$attrs"&&Tt(e.attrs,"get",""),m(e);if((_=f.__cssModules)&&(_=_[n]))return _;if(i!==qe&&Be(i,n))return u[n]=4,i[n];if(y=h.config.globalProperties,Be(y,n))return y[n]},set({_:e},n,i){const{data:s,setupState:a,ctx:l}=e;return Yo(a,n)?(a[n]=i,!0):s!==qe&&Be(s,n)?(s[n]=i,!0):Be(e.props,n)||n[0]==="$"&&n.slice(1)in e?!1:(l[n]=i,!0)},has({_:{data:e,setupState:n,accessCache:i,ctx:s,appContext:a,propsOptions:l}},u){let f;return!!i[u]||e!==qe&&Be(e,u)||Yo(n,u)||(f=l[0])&&Be(f,u)||Be(s,u)||Be(Er,u)||Be(a.config.globalProperties,u)},defineProperty(e,n,i){return i.get!=null?e._.accessCache[n]=0:Be(i,"value")&&this.set(e,n,i.value,null),Reflect.defineProperty(e,n,i)}};function lu(e){return ge(e)?e.reduce((n,i)=>(n[i]=null,n),{}):e}let Pa=!0;function T_(e){const n=il(e),i=e.proxy,s=e.ctx;Pa=!1,n.beforeCreate&&cu(n.beforeCreate,e,"bc");const{data:a,computed:l,methods:u,watch:f,provide:h,inject:p,created:m,beforeMount:_,mounted:y,beforeUpdate:b,updated:x,activated:T,deactivated:C,beforeDestroy:P,beforeUnmount:k,destroyed:z,unmounted:B,render:G,renderTracked:oe,renderTriggered:de,errorCaptured:Ze,serverPrefetch:fe,expose:be,inheritAttrs:ve,components:Q,directives:xe,filters:Me}=n;if(p&&x_(p,s,null),u)for(const Ce in u){const te=u[Ce];we(te)&&(s[Ce]=te.bind(i))}if(a){const Ce=a.call(i,i);Ge(Ce)&&(e.data=to(Ce))}if(Pa=!0,l)for(const Ce in l){const te=l[Ce],mt=we(te)?te.bind(i,i):we(te.get)?te.get.bind(i,i):vn,Z=!we(te)&&we(te.set)?te.set.bind(i):vn,O=ut({get:mt,set:Z});Object.defineProperty(s,Ce,{enumerable:!0,configurable:!0,get:()=>O.value,set:F=>O.value=F})}if(f)for(const Ce in f)yh(f[Ce],s,i,Ce);if(h){const Ce=we(h)?h.call(i):h;Reflect.ownKeys(Ce).forEach(te=>{Os(te,Ce[te])})}m&&cu(m,e,"c");function Ee(Ce,te){ge(te)?te.forEach(mt=>Ce(mt.bind(i))):te&&Ce(te.bind(i))}if(Ee(g_,_),Ee(nl,y),Ee(v_,b),Ee(y_,x),Ee(p_,T),Ee(m_,C),Ee($_,Ze),Ee(P_,oe),Ee(b_,de),Ee(hh,k),Ee(dh,B),Ee(w_,fe),ge(be))if(be.length){const Ce=e.exposed||(e.exposed={});be.forEach(te=>{Object.defineProperty(Ce,te,{get:()=>i[te],set:mt=>i[te]=mt})})}else e.exposed||(e.exposed={});G&&e.render===vn&&(e.render=G),ve!=null&&(e.inheritAttrs=ve),Q&&(e.components=Q),xe&&(e.directives=xe),fe&&uh(e)}function x_(e,n,i=vn){ge(e)&&(e=$a(e));for(const s in e){const a=e[s];let l;Ge(a)?"default"in a?l=en(a.from||s,a.default,!0):l=en(a.from||s):l=en(a),Et(l)?Object.defineProperty(n,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):n[s]=l}}function cu(e,n,i){rn(ge(e)?e.map(s=>s.bind(n.proxy)):e.bind(n.proxy),n,i)}function yh(e,n,i,s){let a=s.includes(".")?Mh(i,s):()=>i[s];if(Xe(e)){const l=n[e];we(l)&&Gn(a,l)}else if(we(e))Gn(a,e.bind(i));else if(Ge(e))if(ge(e))e.forEach(l=>yh(l,n,i,s));else{const l=we(e.handler)?e.handler.bind(i):n[e.handler];we(l)&&Gn(a,l,e)}}function il(e){const n=e.type,{mixins:i,extends:s}=n,{mixins:a,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,f=l.get(n);let h;return f?h=f:!a.length&&!i&&!s?h=n:(h={},a.length&&a.forEach(p=>Zs(h,p,u,!0)),Zs(h,n,u)),Ge(n)&&l.set(n,h),h}function Zs(e,n,i,s=!1){const{mixins:a,extends:l}=n;l&&Zs(e,l,i,!0),a&&a.forEach(u=>Zs(e,u,i,!0));for(const u in n)if(!(s&&u==="expose")){const f=C_[u]||i&&i[u];e[u]=f?f(e[u],n[u]):n[u]}return e}const C_={data:uu,props:fu,emits:fu,methods:yr,computed:yr,beforeCreate:Lt,created:Lt,beforeMount:Lt,mounted:Lt,beforeUpdate:Lt,updated:Lt,beforeDestroy:Lt,beforeUnmount:Lt,destroyed:Lt,unmounted:Lt,activated:Lt,deactivated:Lt,errorCaptured:Lt,serverPrefetch:Lt,components:yr,directives:yr,watch:k_,provide:uu,inject:L_};function uu(e,n){return n?e?function(){return ft(we(e)?e.call(this,this):e,we(n)?n.call(this,this):n)}:n:e}function L_(e,n){return yr($a(e),$a(n))}function $a(e){if(ge(e)){const n={};for(let i=0;i1)return i&&we(n)?n.call(s&&s.proxy):n}}const bh={},Ph=()=>Object.create(bh),$h=e=>Object.getPrototypeOf(e)===bh;function M_(e,n,i,s=!1){const a={},l=Ph();e.propsDefaults=Object.create(null),Sh(e,n,a,l);for(const u in e.propsOptions[0])u in a||(a[u]=void 0);i?e.props=s?a:Kf(a):e.type.props?e.props=a:e.props=l,e.attrs=l}function I_(e,n,i,s){const{props:a,attrs:l,vnode:{patchFlag:u}}=e,f=je(a),[h]=e.propsOptions;let p=!1;if((s||u>0)&&!(u&16)){if(u&8){const m=e.vnode.dynamicProps;for(let _=0;_{h=!0;const[y,b]=Eh(_,n,!0);ft(u,y),b&&f.push(...b)};!i&&n.mixins.length&&n.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!l&&!h)return Ge(e)&&s.set(e,ji),ji;if(ge(l))for(let m=0;me[0]==="_"||e==="$stable",rl=e=>ge(e)?e.map(hn):[hn(e)],N_=(e,n,i)=>{if(n._n)return n;const s=rt((...a)=>rl(n(...a)),i);return s._c=!1,s},xh=(e,n,i)=>{const s=e._ctx;for(const a in e){if(Th(a))continue;const l=e[a];if(we(l))n[a]=N_(a,l,s);else if(l!=null){const u=rl(l);n[a]=()=>u}}},Ch=(e,n)=>{const i=rl(n);e.slots.default=()=>i},Lh=(e,n,i)=>{for(const s in n)(i||s!=="_")&&(e[s]=n[s])},z_=(e,n,i)=>{const s=e.slots=Ph();if(e.vnode.shapeFlag&32){const a=n._;a?(Lh(s,n,i),i&&kf(s,"_",a,!0)):xh(n,s)}else n&&Ch(e,n)},D_=(e,n,i)=>{const{vnode:s,slots:a}=e;let l=!0,u=qe;if(s.shapeFlag&32){const f=n._;f?i&&f===1?l=!1:Lh(a,n,i):(l=!n.$stable,xh(n,a)),u=n}else n&&(Ch(e,n),u={default:1});if(l)for(const f in a)!Th(f)&&u[f]==null&&delete a[f]},jt=X_;function j_(e){return B_(e)}function B_(e,n){const i=Of();i.__VUE__=!0;const{insert:s,remove:a,patchProp:l,createElement:u,createText:f,createComment:h,setText:p,setElementText:m,parentNode:_,nextSibling:y,setScopeId:b=vn,insertStaticContent:x}=e,T=(w,S,N,U=null,V=null,W=null,ee=void 0,X=null,Y=!!S.dynamicChildren)=>{if(w===S)return;w&&!di(w,S)&&(U=R(w),F(w,V,W,!0),w=null),S.patchFlag===-2&&(Y=!1,S.dynamicChildren=null);const{type:K,ref:le,shapeFlag:ne}=S;switch(K){case oo:C(w,S,N,U);break;case Mt:P(w,S,N,U);break;case ea:w==null&&k(S,N,U,ee);break;case ct:Q(w,S,N,U,V,W,ee,X,Y);break;default:ne&1?G(w,S,N,U,V,W,ee,X,Y):ne&6?xe(w,S,N,U,V,W,ee,X,Y):(ne&64||ne&128)&&K.process(w,S,N,U,V,W,ee,X,Y,J)}le!=null&&V&&wa(le,w&&w.ref,W,S||w,!S)},C=(w,S,N,U)=>{if(w==null)s(S.el=f(S.children),N,U);else{const V=S.el=w.el;S.children!==w.children&&p(V,S.children)}},P=(w,S,N,U)=>{w==null?s(S.el=h(S.children||""),N,U):S.el=w.el},k=(w,S,N,U)=>{[w.el,w.anchor]=x(w.children,S,N,U,w.el,w.anchor)},z=({el:w,anchor:S},N,U)=>{let V;for(;w&&w!==S;)V=y(w),s(w,N,U),w=V;s(S,N,U)},B=({el:w,anchor:S})=>{let N;for(;w&&w!==S;)N=y(w),a(w),w=N;a(S)},G=(w,S,N,U,V,W,ee,X,Y)=>{S.type==="svg"?ee="svg":S.type==="math"&&(ee="mathml"),w==null?oe(S,N,U,V,W,ee,X,Y):fe(w,S,V,W,ee,X,Y)},oe=(w,S,N,U,V,W,ee,X)=>{let Y,K;const{props:le,shapeFlag:ne,transition:se,dirs:ue}=w;if(Y=w.el=u(w.type,W,le&&le.is,le),ne&8?m(Y,w.children):ne&16&&Ze(w.children,Y,null,U,V,Xo(w,W),ee,X),ue&&ai(w,null,U,"created"),de(Y,w,w.scopeId,ee,U),le){for(const ze in le)ze!=="value"&&!Pr(ze)&&l(Y,ze,null,le[ze],W,U);"value"in le&&l(Y,"value",null,le.value,W),(K=le.onVnodeBeforeMount)&&un(K,U,w)}ue&&ai(w,null,U,"beforeMount");const $e=Z_(V,se);$e&&se.beforeEnter(Y),s(Y,S,N),((K=le&&le.onVnodeMounted)||$e||ue)&&jt(()=>{K&&un(K,U,w),$e&&se.enter(Y),ue&&ai(w,null,U,"mounted")},V)},de=(w,S,N,U,V)=>{if(N&&b(w,N),U)for(let W=0;W{for(let K=Y;K{const X=S.el=w.el;let{patchFlag:Y,dynamicChildren:K,dirs:le}=S;Y|=w.patchFlag&16;const ne=w.props||qe,se=S.props||qe;let ue;if(N&&li(N,!1),(ue=se.onVnodeBeforeUpdate)&&un(ue,N,S,w),le&&ai(S,w,N,"beforeUpdate"),N&&li(N,!0),(ne.innerHTML&&se.innerHTML==null||ne.textContent&&se.textContent==null)&&m(X,""),K?be(w.dynamicChildren,K,X,N,U,Xo(S,V),W):ee||te(w,S,X,null,N,U,Xo(S,V),W,!1),Y>0){if(Y&16)ve(X,ne,se,N,V);else if(Y&2&&ne.class!==se.class&&l(X,"class",null,se.class,V),Y&4&&l(X,"style",ne.style,se.style,V),Y&8){const $e=S.dynamicProps;for(let ze=0;ze<$e.length;ze++){const Ae=$e[ze],ht=ne[Ae],at=se[Ae];(at!==ht||Ae==="value")&&l(X,Ae,ht,at,V,N)}}Y&1&&w.children!==S.children&&m(X,S.children)}else!ee&&K==null&&ve(X,ne,se,N,V);((ue=se.onVnodeUpdated)||le)&&jt(()=>{ue&&un(ue,N,S,w),le&&ai(S,w,N,"updated")},U)},be=(w,S,N,U,V,W,ee)=>{for(let X=0;X{if(S!==N){if(S!==qe)for(const W in S)!Pr(W)&&!(W in N)&&l(w,W,S[W],null,V,U);for(const W in N){if(Pr(W))continue;const ee=N[W],X=S[W];ee!==X&&W!=="value"&&l(w,W,X,ee,V,U)}"value"in N&&l(w,"value",S.value,N.value,V)}},Q=(w,S,N,U,V,W,ee,X,Y)=>{const K=S.el=w?w.el:f(""),le=S.anchor=w?w.anchor:f("");let{patchFlag:ne,dynamicChildren:se,slotScopeIds:ue}=S;ue&&(X=X?X.concat(ue):ue),w==null?(s(K,N,U),s(le,N,U),Ze(S.children||[],N,le,V,W,ee,X,Y)):ne>0&&ne&64&&se&&w.dynamicChildren?(be(w.dynamicChildren,se,N,V,W,ee,X),(S.key!=null||V&&S===V.subTree)&&kh(w,S,!0)):te(w,S,N,le,V,W,ee,X,Y)},xe=(w,S,N,U,V,W,ee,X,Y)=>{S.slotScopeIds=X,w==null?S.shapeFlag&512?V.ctx.activate(S,N,U,ee,Y):Me(S,N,U,V,W,ee,Y):ot(w,S,Y)},Me=(w,S,N,U,V,W,ee)=>{const X=w.component=sg(w,U,V);if(io(w)&&(X.ctx.renderer=J),ag(X,!1,ee),X.asyncDep){if(V&&V.registerDep(X,Ee,ee),!w.el){const Y=X.subTree=Ye(Mt);P(null,Y,S,N)}}else Ee(X,w,S,N,V,W,ee)},ot=(w,S,N)=>{const U=S.component=w.component;if(J_(w,S,N))if(U.asyncDep&&!U.asyncResolved){Ce(U,S,N);return}else U.next=S,U.update();else S.el=w.el,U.vnode=S},Ee=(w,S,N,U,V,W,ee)=>{const X=()=>{if(w.isMounted){let{next:ne,bu:se,u:ue,parent:$e,vnode:ze}=w;{const bt=Oh(w);if(bt){ne&&(ne.el=ze.el,Ce(w,ne,ee)),bt.asyncDep.then(()=>{w.isUnmounted||X()});return}}let Ae=ne,ht;li(w,!1),ne?(ne.el=ze.el,Ce(w,ne,ee)):ne=ze,se&&ks(se),(ht=ne.props&&ne.props.onVnodeBeforeUpdate)&&un(ht,$e,ne,ze),li(w,!0);const at=Qo(w),Dt=w.subTree;w.subTree=at,T(Dt,at,_(Dt.el),R(Dt),w,V,W),ne.el=at.el,Ae===null&&Y_(w,at.el),ue&&jt(ue,V),(ht=ne.props&&ne.props.onVnodeUpdated)&&jt(()=>un(ht,$e,ne,ze),V)}else{let ne;const{el:se,props:ue}=S,{bm:$e,m:ze,parent:Ae,root:ht,type:at}=w,Dt=Vi(S);if(li(w,!1),$e&&ks($e),!Dt&&(ne=ue&&ue.onVnodeBeforeMount)&&un(ne,Ae,S),li(w,!0),se&&Ie){const bt=()=>{w.subTree=Qo(w),Ie(se,w.subTree,w,V,null)};Dt&&at.__asyncHydrate?at.__asyncHydrate(se,w,bt):bt()}else{ht.ce&&ht.ce._injectChildStyle(at);const bt=w.subTree=Qo(w);T(null,bt,N,U,w,V,W),S.el=bt.el}if(ze&&jt(ze,V),!Dt&&(ne=ue&&ue.onVnodeMounted)){const bt=S;jt(()=>un(ne,Ae,bt),V)}(S.shapeFlag&256||Ae&&Vi(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&w.a&&jt(w.a,V),w.isMounted=!0,S=N=U=null}};w.scope.on();const Y=w.effect=new Af(X);w.scope.off();const K=w.update=Y.run.bind(Y),le=w.job=Y.runIfDirty.bind(Y);le.i=w,le.id=w.uid,Y.scheduler=()=>tl(le),li(w,!0),K()},Ce=(w,S,N)=>{S.component=w;const U=w.vnode.props;w.vnode=S,w.next=null,I_(w,S.props,U,N),D_(w,S.children,N),ei(),su(w),ti()},te=(w,S,N,U,V,W,ee,X,Y=!1)=>{const K=w&&w.children,le=w?w.shapeFlag:0,ne=S.children,{patchFlag:se,shapeFlag:ue}=S;if(se>0){if(se&128){Z(K,ne,N,U,V,W,ee,X,Y);return}else if(se&256){mt(K,ne,N,U,V,W,ee,X,Y);return}}ue&8?(le&16&&M(K,V,W),ne!==K&&m(N,ne)):le&16?ue&16?Z(K,ne,N,U,V,W,ee,X,Y):M(K,V,W,!0):(le&8&&m(N,""),ue&16&&Ze(ne,N,U,V,W,ee,X,Y))},mt=(w,S,N,U,V,W,ee,X,Y)=>{w=w||ji,S=S||ji;const K=w.length,le=S.length,ne=Math.min(K,le);let se;for(se=0;sele?M(w,V,W,!0,!1,ne):Ze(S,N,U,V,W,ee,X,Y,ne)},Z=(w,S,N,U,V,W,ee,X,Y)=>{let K=0;const le=S.length;let ne=w.length-1,se=le-1;for(;K<=ne&&K<=se;){const ue=w[K],$e=S[K]=Y?qn(S[K]):hn(S[K]);if(di(ue,$e))T(ue,$e,N,null,V,W,ee,X,Y);else break;K++}for(;K<=ne&&K<=se;){const ue=w[ne],$e=S[se]=Y?qn(S[se]):hn(S[se]);if(di(ue,$e))T(ue,$e,N,null,V,W,ee,X,Y);else break;ne--,se--}if(K>ne){if(K<=se){const ue=se+1,$e=uese)for(;K<=ne;)F(w[K],V,W,!0),K++;else{const ue=K,$e=K,ze=new Map;for(K=$e;K<=se;K++){const xt=S[K]=Y?qn(S[K]):hn(S[K]);xt.key!=null&&ze.set(xt.key,K)}let Ae,ht=0;const at=se-$e+1;let Dt=!1,bt=0;const wn=new Array(at);for(K=0;K=at){F(xt,V,W,!0);continue}let Pt;if(xt.key!=null)Pt=ze.get(xt.key);else for(Ae=$e;Ae<=se;Ae++)if(wn[Ae-$e]===0&&di(xt,S[Ae])){Pt=Ae;break}Pt===void 0?F(xt,V,W,!0):(wn[Pt-$e]=K+1,Pt>=bt?bt=Pt:Dt=!0,T(xt,S[Pt],N,null,V,W,ee,X,Y),ht++)}const tr=Dt?F_(wn):ji;for(Ae=tr.length-1,K=at-1;K>=0;K--){const xt=$e+K,Pt=S[xt],Yr=xt+1{const{el:W,type:ee,transition:X,children:Y,shapeFlag:K}=w;if(K&6){O(w.component.subTree,S,N,U);return}if(K&128){w.suspense.move(S,N,U);return}if(K&64){ee.move(w,S,N,J);return}if(ee===ct){s(W,S,N);for(let ne=0;neX.enter(W),V);else{const{leave:ne,delayLeave:se,afterLeave:ue}=X,$e=()=>s(W,S,N),ze=()=>{ne(W,()=>{$e(),ue&&ue()})};se?se(W,$e,ze):ze()}else s(W,S,N)},F=(w,S,N,U=!1,V=!1)=>{const{type:W,props:ee,ref:X,children:Y,dynamicChildren:K,shapeFlag:le,patchFlag:ne,dirs:se,cacheIndex:ue}=w;if(ne===-2&&(V=!1),X!=null&&wa(X,null,N,w,!0),ue!=null&&(S.renderCache[ue]=void 0),le&256){S.ctx.deactivate(w);return}const $e=le&1&&se,ze=!Vi(w);let Ae;if(ze&&(Ae=ee&&ee.onVnodeBeforeUnmount)&&un(Ae,S,w),le&6)$(w.component,N,U);else{if(le&128){w.suspense.unmount(N,U);return}$e&&ai(w,null,S,"beforeUnmount"),le&64?w.type.remove(w,S,N,J,U):K&&!K.hasOnce&&(W!==ct||ne>0&&ne&64)?M(K,S,N,!1,!0):(W===ct&&ne&384||!V&&le&16)&&M(Y,S,N),U&&A(w)}(ze&&(Ae=ee&&ee.onVnodeUnmounted)||$e)&&jt(()=>{Ae&&un(Ae,S,w),$e&&ai(w,null,S,"unmounted")},N)},A=w=>{const{type:S,el:N,anchor:U,transition:V}=w;if(S===ct){v(N,U);return}if(S===ea){B(w);return}const W=()=>{a(N),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(w.shapeFlag&1&&V&&!V.persisted){const{leave:ee,delayLeave:X}=V,Y=()=>ee(N,W);X?X(w.el,W,Y):Y()}else W()},v=(w,S)=>{let N;for(;w!==S;)N=y(w),a(w),w=N;a(S)},$=(w,S,N)=>{const{bum:U,scope:V,job:W,subTree:ee,um:X,m:Y,a:K}=w;du(Y),du(K),U&&ks(U),V.stop(),W&&(W.flags|=8,F(ee,w,S,N)),X&&jt(X,S),jt(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},M=(w,S,N,U=!1,V=!1,W=0)=>{for(let ee=W;ee{if(w.shapeFlag&6)return R(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const S=y(w.anchor||w.el),N=S&&S[u_];return N?y(N):S};let j=!1;const H=(w,S,N)=>{w==null?S._vnode&&F(S._vnode,null,null,!0):T(S._vnode||null,w,S,null,null,null,N),S._vnode=w,j||(j=!0,su(),th(),j=!1)},J={p:T,um:F,m:O,r:A,mt:Me,mc:Ze,pc:te,pbc:be,n:R,o:e};let he,Ie;return{render:H,hydrate:he,createApp:R_(H,he)}}function Xo({type:e,props:n},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:i}function li({effect:e,job:n},i){i?(e.flags|=32,n.flags|=4):(e.flags&=-33,n.flags&=-5)}function Z_(e,n){return(!e||e&&!e.pendingBranch)&&n&&!n.persisted}function kh(e,n,i=!1){const s=e.children,a=n.children;if(ge(s)&&ge(a))for(let l=0;l>1,e[i[f]]0&&(n[s]=i[l-1]),i[l]=s)}}for(l=i.length,u=i[l-1];l-- >0;)i[l]=u,u=n[u];return i}function Oh(e){const n=e.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:Oh(n)}function du(e){if(e)for(let n=0;nen(V_);function Gn(e,n,i){return Rh(e,n,i)}function Rh(e,n,i=qe){const{immediate:s,deep:a,flush:l,once:u}=i,f=ft({},i);let h;if(ao)if(l==="sync"){const y=H_();h=y.__watcherHandles||(y.__watcherHandles=[])}else if(!n||s)f.once=!0;else return{stop:vn,resume:vn,pause:vn};const p=yt;f.call=(y,b,x)=>rn(y,p,b,x);let m=!1;l==="post"?f.scheduler=y=>{jt(y,p&&p.suspense)}:l!=="sync"&&(m=!0,f.scheduler=(y,b)=>{b?y():tl(y)}),f.augmentJob=y=>{n&&(y.flags|=4),m&&(y.flags|=2,p&&(y.id=p.uid,y.i=p))};const _=s_(e,n,f);return h&&h.push(_),_}function U_(e,n,i){const s=this.proxy,a=Xe(e)?e.includes(".")?Mh(s,e):()=>s[e]:e.bind(s,s);let l;we(n)?l=n:(l=n.handler,i=n);const u=Ur(this),f=Rh(a,l.bind(s),i);return u(),f}function Mh(e,n){const i=n.split(".");return()=>{let s=e;for(let a=0;an==="modelValue"||n==="model-value"?e.modelModifiers:e[`${n}Modifiers`]||e[`${nn(n)}Modifiers`]||e[`${Pi(n)}Modifiers`];function W_(e,n,...i){if(e.isUnmounted)return;const s=e.vnode.props||qe;let a=i;const l=n.startsWith("update:"),u=l&&q_(s,n.slice(7));u&&(u.trim&&(a=i.map(m=>Xe(m)?m.trim():m)),u.number&&(a=i.map(pa)));let f,h=s[f=Uo(n)]||s[f=Uo(nn(n))];!h&&l&&(h=s[f=Uo(Pi(n))]),h&&rn(h,e,6,a);const p=s[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,rn(p,e,6,a)}}function Ih(e,n,i=!1){const s=n.emitsCache,a=s.get(e);if(a!==void 0)return a;const l=e.emits;let u={},f=!1;if(!we(e)){const h=p=>{const m=Ih(p,n,!0);m&&(f=!0,ft(u,m))};!i&&n.mixins.length&&n.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!l&&!f?(Ge(e)&&s.set(e,null),null):(ge(l)?l.forEach(h=>u[h]=null):ft(u,l),Ge(e)&&s.set(e,u),u)}function so(e,n){return!e||!Gs(n)?!1:(n=n.slice(2).replace(/Once$/,""),Be(e,n[0].toLowerCase()+n.slice(1))||Be(e,Pi(n))||Be(e,n))}function Qo(e){const{type:n,vnode:i,proxy:s,withProxy:a,propsOptions:[l],slots:u,attrs:f,emit:h,render:p,renderCache:m,props:_,data:y,setupState:b,ctx:x,inheritAttrs:T}=e,C=Bs(e);let P,k;try{if(i.shapeFlag&4){const B=a||s,G=B;P=hn(p.call(G,B,m,_,b,y,x)),k=f}else{const B=n;P=hn(B.length>1?B(_,{attrs:f,slots:u,emit:h}):B(_,null)),k=n.props?f:K_(f)}}catch(B){Tr.length=0,no(B,e,1),P=Ye(Mt)}let z=P;if(k&&T!==!1){const B=Object.keys(k),{shapeFlag:G}=z;B.length&&G&7&&(l&&B.some(Za)&&(k=G_(k,l)),z=Xn(z,k,!1,!0))}return i.dirs&&(z=Xn(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(i.dirs):i.dirs),i.transition&&Dr(z,i.transition),P=z,Bs(C),P}const K_=e=>{let n;for(const i in e)(i==="class"||i==="style"||Gs(i))&&((n||(n={}))[i]=e[i]);return n},G_=(e,n)=>{const i={};for(const s in e)(!Za(s)||!(s.slice(9)in n))&&(i[s]=e[s]);return i};function J_(e,n,i){const{props:s,children:a,component:l}=e,{props:u,children:f,patchFlag:h}=n,p=l.emitsOptions;if(n.dirs||n.transition)return!0;if(i&&h>=0){if(h&1024)return!0;if(h&16)return s?pu(s,u,p):!!u;if(h&8){const m=n.dynamicProps;for(let _=0;_e.__isSuspense;function X_(e,n){n&&n.pendingBranch?ge(e)?n.effects.push(...e):n.effects.push(e):l_(e)}const ct=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ea=Symbol.for("v-stc"),Tr=[];let Zt=null;function _e(e=!1){Tr.push(Zt=e?null:[])}function Q_(){Tr.pop(),Zt=Tr[Tr.length-1]||null}let jr=1;function mu(e){jr+=e,e<0&&Zt&&(Zt.hasOnce=!0)}function Nh(e){return e.dynamicChildren=jr>0?Zt||ji:null,Q_(),jr>0&&Zt&&Zt.push(e),e}function Ve(e,n,i,s,a,l){return Nh(pe(e,n,i,s,a,l,!0))}function st(e,n,i,s,a){return Nh(Ye(e,n,i,s,a,!0))}function Fs(e){return e?e.__v_isVNode===!0:!1}function di(e,n){return e.type===n.type&&e.key===n.key}const zh=({key:e})=>e??null,Rs=({ref:e,ref_key:n,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||Et(e)||we(e)?{i:pt,r:e,k:n,f:!!i}:e:null);function pe(e,n=null,i=null,s=0,a=null,l=e===ct?0:1,u=!1,f=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:n,key:n&&zh(n),ref:n&&Rs(n),scopeId:ih,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:pt};return f?(sl(h,i),l&128&&e.normalize(h)):i&&(h.shapeFlag|=Xe(i)?8:16),jr>0&&!u&&Zt&&(h.patchFlag>0||l&6)&&h.patchFlag!==32&&Zt.push(h),h}const Ye=eg;function eg(e,n=null,i=null,s=0,a=null,l=!1){if((!e||e===mh)&&(e=Mt),Fs(e)){const f=Xn(e,n,!0);return i&&sl(f,i),jr>0&&!l&&Zt&&(f.shapeFlag&6?Zt[Zt.indexOf(e)]=f:Zt.push(f)),f.patchFlag=-2,f}if(hg(e)&&(e=e.__vccOpts),n){n=tg(n);let{class:f,style:h}=n;f&&!Xe(f)&&(n.class=vi(f)),Ge(h)&&(Xa(h)&&!ge(h)&&(h=ft({},h)),n.style=Ha(h))}const u=Xe(e)?1:Ah(e)?128:rh(e)?64:Ge(e)?4:we(e)?2:0;return pe(e,n,i,s,a,u,l,!0)}function tg(e){return e?Xa(e)||$h(e)?ft({},e):e:null}function Xn(e,n,i=!1,s=!1){const{props:a,ref:l,patchFlag:u,children:f,transition:h}=e,p=n?ng(a||{},n):a,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&zh(p),ref:n&&n.ref?i&&l?ge(l)?l.concat(Rs(n)):[l,Rs(n)]:Rs(n):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:n&&e.type!==ct?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xn(e.ssContent),ssFallback:e.ssFallback&&Xn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&s&&Dr(m,h.clone(m)),m}function kn(e=" ",n=0){return Ye(oo,null,e,n)}function wt(e="",n=!1){return n?(_e(),st(Mt,null,e)):Ye(Mt,null,e)}function hn(e){return e==null||typeof e=="boolean"?Ye(Mt):ge(e)?Ye(ct,null,e.slice()):typeof e=="object"?qn(e):Ye(oo,null,String(e))}function qn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xn(e)}function sl(e,n){let i=0;const{shapeFlag:s}=e;if(n==null)n=null;else if(ge(n))i=16;else if(typeof n=="object")if(s&65){const a=n.default;a&&(a._c&&(a._d=!1),sl(e,a()),a._c&&(a._d=!0));return}else{i=32;const a=n._;!a&&!$h(n)?n._ctx=pt:a===3&&pt&&(pt.slots._===1?n._=1:(n._=2,e.patchFlag|=1024))}else we(n)?(n={default:n,_ctx:pt},i=32):(n=String(n),s&64?(i=16,n=[kn(n)]):i=8);e.children=n,e.shapeFlag|=i}function ng(...e){const n={};for(let i=0;iyt||pt;let Vs,Ea;{const e=Of(),n=(i,s)=>{let a;return(a=e[i])||(a=e[i]=[]),a.push(s),l=>{a.length>1?a.forEach(u=>u(l)):a[0](l)}};Vs=n("__VUE_INSTANCE_SETTERS__",i=>yt=i),Ea=n("__VUE_SSR_SETTERS__",i=>ao=i)}const Ur=e=>{const n=yt;return Vs(e),e.scope.on(),()=>{e.scope.off(),Vs(n)}},_u=()=>{yt&&yt.scope.off(),Vs(null)};function Dh(e){return e.vnode.shapeFlag&4}let ao=!1;function ag(e,n=!1,i=!1){n&&Ea(n);const{props:s,children:a}=e.vnode,l=Dh(e);M_(e,s,l,n),z_(e,a,i);const u=l?lg(e,n):void 0;return n&&Ea(!1),u}function lg(e,n){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,E_);const{setup:s}=i;if(s){const a=e.setupContext=s.length>1?ug(e):null,l=Ur(e);ei();const u=Hr(s,e,0,[e.props,a]);if(ti(),l(),xf(u)){if(Vi(e)||uh(e),u.then(_u,_u),n)return u.then(f=>{gu(e,f,n)}).catch(f=>{no(f,e,0)});e.asyncDep=u}else gu(e,u,n)}else jh(e,n)}function gu(e,n,i){we(n)?e.type.__ssrInlineRender?e.ssrRender=n:e.render=n:Ge(n)&&(e.setupState=Yf(n)),jh(e,i)}let vu;function jh(e,n,i){const s=e.type;if(!e.render){if(!n&&vu&&!s.render){const a=s.template||il(e).template;if(a){const{isCustomElement:l,compilerOptions:u}=e.appContext.config,{delimiters:f,compilerOptions:h}=s,p=ft(ft({isCustomElement:l,delimiters:f},u),h);s.render=vu(a,p)}}e.render=s.render||vn}{const a=Ur(e);ei();try{T_(e)}finally{ti(),a()}}}const cg={get(e,n){return Tt(e,"get",""),e[n]}};function ug(e){const n=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,cg),slots:e.slots,emit:e.emit,expose:n}}function lo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yf(Xm(e.exposed)),{get(n,i){if(i in n)return n[i];if(i in Er)return Er[i](e)},has(n,i){return i in n||i in Er}})):e.proxy}function fg(e,n=!0){return we(e)?e.displayName||e.name:e.name||n&&e.__name}function hg(e){return we(e)&&"__vccOpts"in e}const ut=(e,n)=>i_(e,n,ao);function ol(e,n,i){const s=arguments.length;return s===2?Ge(n)&&!ge(n)?Fs(n)?Ye(e,null,[n]):Ye(e,n):Ye(e,null,n):(s>3?i=Array.prototype.slice.call(arguments,2):s===3&&Fs(i)&&(i=[i]),Ye(e,n,i))}const dg="3.5.4";/** +**/function Hr(e,n,i,s){try{return s?e(...s):e()}catch(a){to(a,n,i)}}function rn(e,n,i,s){if(we(e)){const a=Hr(e,n,i,s);return a&&xf(a)&&a.catch(l=>{to(l,n,i)}),a}if(ge(e)){const a=[];for(let l=0;l>>1,a=Ot[s],l=zr(a);l=zr(i)?Ot.push(e):Ot.splice(a_(n),0,e),e.flags|=1,eh()}}function eh(){!Nr&&!va&&(va=!0,el=Xf.then(nh))}function l_(e){ge(e)?Fi.push(...e):Hn&&e.id===-1?Hn.splice(Ai+1,0,e):e.flags&1||(Fi.push(e),e.flags|=1),eh()}function su(e,n,i=Nr?fn+1:0){for(;izr(i)-zr(s));if(Fi.length=0,Hn){Hn.push(...n);return}for(Hn=n,Ai=0;Aie.id==null?e.flags&2?-1:1/0:e.id;function nh(e){va=!1,Nr=!0;try{for(fn=0;fn{s._d&&mu(-1);const l=js(n);let u;try{u=e(...a)}finally{js(l),s._d&&mu(1)}return u};return s._n=!0,s._c=!0,s._d=!0,s}function c_(e,n){if(pt===null)return e;const i=ao(pt),s=e.dirs||(e.dirs=[]);for(let a=0;ae.__isTeleport,Un=Symbol("_leaveCb"),bs=Symbol("_enterCb");function f_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nl(()=>{e.isMounted=!0}),hh(()=>{e.isUnmounting=!0}),e}const Ut=[Function,Array],sh={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ut,onEnter:Ut,onAfterEnter:Ut,onEnterCancelled:Ut,onBeforeLeave:Ut,onLeave:Ut,onAfterLeave:Ut,onLeaveCancelled:Ut,onBeforeAppear:Ut,onAppear:Ut,onAfterAppear:Ut,onAppearCancelled:Ut},oh=e=>{const n=e.subTree;return n.component?oh(n.component):n},h_={name:"BaseTransition",props:sh,setup(e,{slots:n}){const i=og(),s=f_();return()=>{const a=n.default&&ch(n.default(),!0);if(!a||!a.length)return;const l=ah(a),u=je(e),{mode:f}=u;if(s.isLeaving)return Jo(l);const h=ou(l);if(!h)return Jo(l);let p=ya(h,u,s,i,y=>p=y);h.type!==Mt&&Dr(h,p);const m=i.subTree,_=m&&ou(m);if(_&&_.type!==Mt&&!hi(h,_)&&oh(i).type!==Mt){const y=ya(_,u,s,i);if(Dr(_,y),f==="out-in"&&h.type!==Mt)return s.isLeaving=!0,y.afterLeave=()=>{s.isLeaving=!1,i.job.flags&8||i.update(),delete y.afterLeave},Jo(l);f==="in-out"&&h.type!==Mt&&(y.delayLeave=(b,x,T)=>{const C=lh(s,_);C[String(_.key)]=_,b[Un]=()=>{x(),b[Un]=void 0,delete p.delayedLeave},p.delayedLeave=T})}return l}}};function ah(e){let n=e[0];if(e.length>1){for(const i of e)if(i.type!==Mt){n=i;break}}return n}const d_=h_;function lh(e,n){const{leavingVNodes:i}=e;let s=i.get(n.type);return s||(s=Object.create(null),i.set(n.type,s)),s}function ya(e,n,i,s,a){const{appear:l,mode:u,persisted:f=!1,onBeforeEnter:h,onEnter:p,onAfterEnter:m,onEnterCancelled:_,onBeforeLeave:y,onLeave:b,onAfterLeave:x,onLeaveCancelled:T,onBeforeAppear:C,onAppear:P,onAfterAppear:k,onAppearCancelled:z}=n,B=String(e.key),G=lh(i,e),oe=(fe,be)=>{fe&&rn(fe,s,9,be)},de=(fe,be)=>{const ve=be[1];oe(fe,be),ge(fe)?fe.every(Q=>Q.length<=1)&&ve():fe.length<=1&&ve()},Ze={mode:u,persisted:f,beforeEnter(fe){let be=h;if(!i.isMounted)if(l)be=C||h;else return;fe[Un]&&fe[Un](!0);const ve=G[B];ve&&hi(e,ve)&&ve.el[Un]&&ve.el[Un](),oe(be,[fe])},enter(fe){let be=p,ve=m,Q=_;if(!i.isMounted)if(l)be=P||p,ve=k||m,Q=z||_;else return;let xe=!1;const Me=fe[bs]=ot=>{xe||(xe=!0,ot?oe(Q,[fe]):oe(ve,[fe]),Ze.delayedLeave&&Ze.delayedLeave(),fe[bs]=void 0)};be?de(be,[fe,Me]):Me()},leave(fe,be){const ve=String(e.key);if(fe[bs]&&fe[bs](!0),i.isUnmounting)return be();oe(y,[fe]);let Q=!1;const xe=fe[Un]=Me=>{Q||(Q=!0,be(),Me?oe(T,[fe]):oe(x,[fe]),fe[Un]=void 0,G[ve]===e&&delete G[ve])};G[ve]=e,b?de(b,[fe,xe]):xe()},clone(fe){const be=ya(fe,n,i,s,a);return a&&a(be),be}};return Ze}function Jo(e){if(no(e))return e=Yn(e),e.children=null,e}function ou(e){if(!no(e))return rh(e.type)&&e.children?ah(e.children):e;const{shapeFlag:n,children:i}=e;if(i){if(n&16)return i[0];if(n&32&&we(i.default))return i.default()}}function Dr(e,n){e.shapeFlag&6&&e.component?(e.transition=n,Dr(e.component.subTree,n)):e.shapeFlag&128?(e.ssContent.transition=n.clone(e.ssContent),e.ssFallback.transition=n.clone(e.ssFallback)):e.transition=n}function ch(e,n=!1,i){let s=[],a=0;for(let l=0;l1)for(let l=0;lwa(x,n&&(ge(n)?n[T]:n),i,s,a));return}if(Vi(s)&&!a)return;const l=s.shapeFlag&4?ao(s.component):s.el,u=a?null:l,{i:f,r:h}=e,p=n&&n.r,m=f.refs===qe?f.refs={}:f.refs,_=f.setupState,y=je(_),b=_===qe?()=>!1:x=>Be(y,x);if(p!=null&&p!==h&&(Xe(p)?(m[p]=null,b(p)&&(_[p]=null)):Et(p)&&(p.value=null)),we(h))Hr(h,f,12,[u,m]);else{const x=Xe(h),T=Et(h);if(x||T){const C=()=>{if(e.f){const P=x?b(h)?_[h]:m[h]:h.value;a?ge(P)&&Fa(P,l):ge(P)?P.includes(l)||P.push(l):x?(m[h]=[l],b(h)&&(_[h]=m[h])):(h.value=[l],e.k&&(m[e.k]=h.value))}else x?(m[h]=u,b(h)&&(_[h]=u)):T&&(h.value=u,e.k&&(m[e.k]=u))};u?(C.id=-1,jt(C,i)):C()}}}const Vi=e=>!!e.type.__asyncLoader,no=e=>e.type.__isKeepAlive;function p_(e,n){fh(e,"a",n)}function m_(e,n){fh(e,"da",n)}function fh(e,n,i=yt){const s=e.__wdc||(e.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(io(n,s,i),i){let a=i.parent;for(;a&&a.parent;)no(a.parent.vnode)&&__(s,n,i,a),a=a.parent}}function __(e,n,i,s){const a=io(n,e,s,!0);dh(()=>{Fa(s[n],a)},i)}function io(e,n,i=yt,s=!1){if(i){const a=i[e]||(i[e]=[]),l=n.__weh||(n.__weh=(...u)=>{Qn();const f=Ur(i),h=rn(n,i,e,u);return f(),ei(),h});return s?a.unshift(l):a.push(l),l}}const In=e=>(n,i=yt)=>{(!oo||e==="sp")&&io(e,(...s)=>n(...s),i)},g_=In("bm"),nl=In("m"),v_=In("bu"),y_=In("u"),hh=In("bum"),dh=In("um"),w_=In("sp"),b_=In("rtg"),P_=In("rtc");function $_(e,n=yt){io("ec",e,n)}const ph="components";function Yi(e,n){return _h(ph,e,!0,n)||e}const mh=Symbol.for("v-ndc");function S_(e){return Xe(e)?_h(ph,e,!1)||e:e||mh}function _h(e,n,i=!0,s=!1){const a=pt||yt;if(a){const l=a.type;{const f=fg(l,!1);if(f&&(f===n||f===nn(n)||f===Ys(nn(n))))return l}const u=au(a[e]||l[e],n)||au(a.appContext[e],n);return!u&&s?l:u}}function au(e,n){return e&&(e[n]||e[nn(n)]||e[Ys(nn(n))])}function Sr(e,n,i,s){let a;const l=i,u=ge(e);if(u||Xe(e)){const f=u&&Zi(e);let h=!1;f&&(h=!Wt(e),e=Xs(e)),a=new Array(e.length);for(let p=0,m=e.length;pn(f,h,void 0,l));else{const f=Object.keys(e);a=new Array(f.length);for(let h=0,p=f.length;h{const l=s.fn(...a);return l&&(l.key=s.key),l}:s.fn)}return e}function dn(e,n,i={},s,a){if(pt.ce||pt.parent&&Vi(pt.parent)&&pt.parent.ce)return n!=="default"&&(i.name=n),_e(),st(ct,null,[Ye("slot",i,s)],64);let l=e[n];l&&l._c&&(l._d=!1),_e();const u=l&&vh(l(i)),f=st(ct,{key:(i.key||u&&u.key||`_${n}`)+(!u&&s?"_fb":"")},u||[],u&&e._===1?64:-2);return!a&&f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),l&&l._c&&(l._d=!0),f}function vh(e){return e.some(n=>Zs(n)?!(n.type===Mt||n.type===ct&&!vh(n.children)):!0)?e:null}const ba=e=>e?Dh(e)?ao(e):ba(e.parent):null,Er=ft(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ba(e.parent),$root:e=>ba(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>il(e),$forceUpdate:e=>e.f||(e.f=()=>{tl(e.update)}),$nextTick:e=>e.n||(e.n=Qf.bind(e.proxy)),$watch:e=>U_.bind(e)}),Yo=(e,n)=>e!==qe&&!e.__isScriptSetup&&Be(e,n),E_={get({_:e},n){if(n==="__v_skip")return!0;const{ctx:i,setupState:s,data:a,props:l,accessCache:u,type:f,appContext:h}=e;let p;if(n[0]!=="$"){const b=u[n];if(b!==void 0)switch(b){case 1:return s[n];case 2:return a[n];case 4:return i[n];case 3:return l[n]}else{if(Yo(s,n))return u[n]=1,s[n];if(a!==qe&&Be(a,n))return u[n]=2,a[n];if((p=e.propsOptions[0])&&Be(p,n))return u[n]=3,l[n];if(i!==qe&&Be(i,n))return u[n]=4,i[n];Pa&&(u[n]=0)}}const m=Er[n];let _,y;if(m)return n==="$attrs"&&Tt(e.attrs,"get",""),m(e);if((_=f.__cssModules)&&(_=_[n]))return _;if(i!==qe&&Be(i,n))return u[n]=4,i[n];if(y=h.config.globalProperties,Be(y,n))return y[n]},set({_:e},n,i){const{data:s,setupState:a,ctx:l}=e;return Yo(a,n)?(a[n]=i,!0):s!==qe&&Be(s,n)?(s[n]=i,!0):Be(e.props,n)||n[0]==="$"&&n.slice(1)in e?!1:(l[n]=i,!0)},has({_:{data:e,setupState:n,accessCache:i,ctx:s,appContext:a,propsOptions:l}},u){let f;return!!i[u]||e!==qe&&Be(e,u)||Yo(n,u)||(f=l[0])&&Be(f,u)||Be(s,u)||Be(Er,u)||Be(a.config.globalProperties,u)},defineProperty(e,n,i){return i.get!=null?e._.accessCache[n]=0:Be(i,"value")&&this.set(e,n,i.value,null),Reflect.defineProperty(e,n,i)}};function lu(e){return ge(e)?e.reduce((n,i)=>(n[i]=null,n),{}):e}let Pa=!0;function T_(e){const n=il(e),i=e.proxy,s=e.ctx;Pa=!1,n.beforeCreate&&cu(n.beforeCreate,e,"bc");const{data:a,computed:l,methods:u,watch:f,provide:h,inject:p,created:m,beforeMount:_,mounted:y,beforeUpdate:b,updated:x,activated:T,deactivated:C,beforeDestroy:P,beforeUnmount:k,destroyed:z,unmounted:B,render:G,renderTracked:oe,renderTriggered:de,errorCaptured:Ze,serverPrefetch:fe,expose:be,inheritAttrs:ve,components:Q,directives:xe,filters:Me}=n;if(p&&x_(p,s,null),u)for(const Ce in u){const te=u[Ce];we(te)&&(s[Ce]=te.bind(i))}if(a){const Ce=a.call(i,i);Ge(Ce)&&(e.data=eo(Ce))}if(Pa=!0,l)for(const Ce in l){const te=l[Ce],mt=we(te)?te.bind(i,i):we(te.get)?te.get.bind(i,i):vn,Z=!we(te)&&we(te.set)?te.set.bind(i):vn,O=ut({get:mt,set:Z});Object.defineProperty(s,Ce,{enumerable:!0,configurable:!0,get:()=>O.value,set:F=>O.value=F})}if(f)for(const Ce in f)yh(f[Ce],s,i,Ce);if(h){const Ce=we(h)?h.call(i):h;Reflect.ownKeys(Ce).forEach(te=>{ks(te,Ce[te])})}m&&cu(m,e,"c");function Ee(Ce,te){ge(te)?te.forEach(mt=>Ce(mt.bind(i))):te&&Ce(te.bind(i))}if(Ee(g_,_),Ee(nl,y),Ee(v_,b),Ee(y_,x),Ee(p_,T),Ee(m_,C),Ee($_,Ze),Ee(P_,oe),Ee(b_,de),Ee(hh,k),Ee(dh,B),Ee(w_,fe),ge(be))if(be.length){const Ce=e.exposed||(e.exposed={});be.forEach(te=>{Object.defineProperty(Ce,te,{get:()=>i[te],set:mt=>i[te]=mt})})}else e.exposed||(e.exposed={});G&&e.render===vn&&(e.render=G),ve!=null&&(e.inheritAttrs=ve),Q&&(e.components=Q),xe&&(e.directives=xe),fe&&uh(e)}function x_(e,n,i=vn){ge(e)&&(e=$a(e));for(const s in e){const a=e[s];let l;Ge(a)?"default"in a?l=en(a.from||s,a.default,!0):l=en(a.from||s):l=en(a),Et(l)?Object.defineProperty(n,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:u=>l.value=u}):n[s]=l}}function cu(e,n,i){rn(ge(e)?e.map(s=>s.bind(n.proxy)):e.bind(n.proxy),n,i)}function yh(e,n,i,s){let a=s.includes(".")?Mh(i,s):()=>i[s];if(Xe(e)){const l=n[e];we(l)&&gi(a,l)}else if(we(e))gi(a,e.bind(i));else if(Ge(e))if(ge(e))e.forEach(l=>yh(l,n,i,s));else{const l=we(e.handler)?e.handler.bind(i):n[e.handler];we(l)&&gi(a,l,e)}}function il(e){const n=e.type,{mixins:i,extends:s}=n,{mixins:a,optionsCache:l,config:{optionMergeStrategies:u}}=e.appContext,f=l.get(n);let h;return f?h=f:!a.length&&!i&&!s?h=n:(h={},a.length&&a.forEach(p=>Bs(h,p,u,!0)),Bs(h,n,u)),Ge(n)&&l.set(n,h),h}function Bs(e,n,i,s=!1){const{mixins:a,extends:l}=n;l&&Bs(e,l,i,!0),a&&a.forEach(u=>Bs(e,u,i,!0));for(const u in n)if(!(s&&u==="expose")){const f=C_[u]||i&&i[u];e[u]=f?f(e[u],n[u]):n[u]}return e}const C_={data:uu,props:fu,emits:fu,methods:yr,computed:yr,beforeCreate:Lt,created:Lt,beforeMount:Lt,mounted:Lt,beforeUpdate:Lt,updated:Lt,beforeDestroy:Lt,beforeUnmount:Lt,destroyed:Lt,unmounted:Lt,activated:Lt,deactivated:Lt,errorCaptured:Lt,serverPrefetch:Lt,components:yr,directives:yr,watch:k_,provide:uu,inject:L_};function uu(e,n){return n?e?function(){return ft(we(e)?e.call(this,this):e,we(n)?n.call(this,this):n)}:n:e}function L_(e,n){return yr($a(e),$a(n))}function $a(e){if(ge(e)){const n={};for(let i=0;i1)return i&&we(n)?n.call(s&&s.proxy):n}}const bh={},Ph=()=>Object.create(bh),$h=e=>Object.getPrototypeOf(e)===bh;function M_(e,n,i,s=!1){const a={},l=Ph();e.propsDefaults=Object.create(null),Sh(e,n,a,l);for(const u in e.propsOptions[0])u in a||(a[u]=void 0);i?e.props=s?a:Kf(a):e.type.props?e.props=a:e.props=l,e.attrs=l}function I_(e,n,i,s){const{props:a,attrs:l,vnode:{patchFlag:u}}=e,f=je(a),[h]=e.propsOptions;let p=!1;if((s||u>0)&&!(u&16)){if(u&8){const m=e.vnode.dynamicProps;for(let _=0;_{h=!0;const[y,b]=Eh(_,n,!0);ft(u,y),b&&f.push(...b)};!i&&n.mixins.length&&n.mixins.forEach(m),e.extends&&m(e.extends),e.mixins&&e.mixins.forEach(m)}if(!l&&!h)return Ge(e)&&s.set(e,ji),ji;if(ge(l))for(let m=0;me[0]==="_"||e==="$stable",rl=e=>ge(e)?e.map(hn):[hn(e)],N_=(e,n,i)=>{if(n._n)return n;const s=rt((...a)=>rl(n(...a)),i);return s._c=!1,s},xh=(e,n,i)=>{const s=e._ctx;for(const a in e){if(Th(a))continue;const l=e[a];if(we(l))n[a]=N_(a,l,s);else if(l!=null){const u=rl(l);n[a]=()=>u}}},Ch=(e,n)=>{const i=rl(n);e.slots.default=()=>i},Lh=(e,n,i)=>{for(const s in n)(i||s!=="_")&&(e[s]=n[s])},z_=(e,n,i)=>{const s=e.slots=Ph();if(e.vnode.shapeFlag&32){const a=n._;a?(Lh(s,n,i),i&&kf(s,"_",a,!0)):xh(n,s)}else n&&Ch(e,n)},D_=(e,n,i)=>{const{vnode:s,slots:a}=e;let l=!0,u=qe;if(s.shapeFlag&32){const f=n._;f?i&&f===1?l=!1:Lh(a,n,i):(l=!n.$stable,xh(n,a)),u=n}else n&&(Ch(e,n),u={default:1});if(l)for(const f in a)!Th(f)&&u[f]==null&&delete a[f]},jt=X_;function j_(e){return B_(e)}function B_(e,n){const i=Of();i.__VUE__=!0;const{insert:s,remove:a,patchProp:l,createElement:u,createText:f,createComment:h,setText:p,setElementText:m,parentNode:_,nextSibling:y,setScopeId:b=vn,insertStaticContent:x}=e,T=(w,S,N,U=null,V=null,W=null,ee=void 0,X=null,Y=!!S.dynamicChildren)=>{if(w===S)return;w&&!hi(w,S)&&(U=R(w),F(w,V,W,!0),w=null),S.patchFlag===-2&&(Y=!1,S.dynamicChildren=null);const{type:K,ref:le,shapeFlag:ne}=S;switch(K){case so:C(w,S,N,U);break;case Mt:P(w,S,N,U);break;case ea:w==null&&k(S,N,U,ee);break;case ct:Q(w,S,N,U,V,W,ee,X,Y);break;default:ne&1?G(w,S,N,U,V,W,ee,X,Y):ne&6?xe(w,S,N,U,V,W,ee,X,Y):(ne&64||ne&128)&&K.process(w,S,N,U,V,W,ee,X,Y,J)}le!=null&&V&&wa(le,w&&w.ref,W,S||w,!S)},C=(w,S,N,U)=>{if(w==null)s(S.el=f(S.children),N,U);else{const V=S.el=w.el;S.children!==w.children&&p(V,S.children)}},P=(w,S,N,U)=>{w==null?s(S.el=h(S.children||""),N,U):S.el=w.el},k=(w,S,N,U)=>{[w.el,w.anchor]=x(w.children,S,N,U,w.el,w.anchor)},z=({el:w,anchor:S},N,U)=>{let V;for(;w&&w!==S;)V=y(w),s(w,N,U),w=V;s(S,N,U)},B=({el:w,anchor:S})=>{let N;for(;w&&w!==S;)N=y(w),a(w),w=N;a(S)},G=(w,S,N,U,V,W,ee,X,Y)=>{S.type==="svg"?ee="svg":S.type==="math"&&(ee="mathml"),w==null?oe(S,N,U,V,W,ee,X,Y):fe(w,S,V,W,ee,X,Y)},oe=(w,S,N,U,V,W,ee,X)=>{let Y,K;const{props:le,shapeFlag:ne,transition:se,dirs:ue}=w;if(Y=w.el=u(w.type,W,le&&le.is,le),ne&8?m(Y,w.children):ne&16&&Ze(w.children,Y,null,U,V,Xo(w,W),ee,X),ue&&oi(w,null,U,"created"),de(Y,w,w.scopeId,ee,U),le){for(const ze in le)ze!=="value"&&!Pr(ze)&&l(Y,ze,null,le[ze],W,U);"value"in le&&l(Y,"value",null,le.value,W),(K=le.onVnodeBeforeMount)&&un(K,U,w)}ue&&oi(w,null,U,"beforeMount");const $e=Z_(V,se);$e&&se.beforeEnter(Y),s(Y,S,N),((K=le&&le.onVnodeMounted)||$e||ue)&&jt(()=>{K&&un(K,U,w),$e&&se.enter(Y),ue&&oi(w,null,U,"mounted")},V)},de=(w,S,N,U,V)=>{if(N&&b(w,N),U)for(let W=0;W{for(let K=Y;K{const X=S.el=w.el;let{patchFlag:Y,dynamicChildren:K,dirs:le}=S;Y|=w.patchFlag&16;const ne=w.props||qe,se=S.props||qe;let ue;if(N&&ai(N,!1),(ue=se.onVnodeBeforeUpdate)&&un(ue,N,S,w),le&&oi(S,w,N,"beforeUpdate"),N&&ai(N,!0),(ne.innerHTML&&se.innerHTML==null||ne.textContent&&se.textContent==null)&&m(X,""),K?be(w.dynamicChildren,K,X,N,U,Xo(S,V),W):ee||te(w,S,X,null,N,U,Xo(S,V),W,!1),Y>0){if(Y&16)ve(X,ne,se,N,V);else if(Y&2&&ne.class!==se.class&&l(X,"class",null,se.class,V),Y&4&&l(X,"style",ne.style,se.style,V),Y&8){const $e=S.dynamicProps;for(let ze=0;ze<$e.length;ze++){const Ae=$e[ze],ht=ne[Ae],at=se[Ae];(at!==ht||Ae==="value")&&l(X,Ae,ht,at,V,N)}}Y&1&&w.children!==S.children&&m(X,S.children)}else!ee&&K==null&&ve(X,ne,se,N,V);((ue=se.onVnodeUpdated)||le)&&jt(()=>{ue&&un(ue,N,S,w),le&&oi(S,w,N,"updated")},U)},be=(w,S,N,U,V,W,ee)=>{for(let X=0;X{if(S!==N){if(S!==qe)for(const W in S)!Pr(W)&&!(W in N)&&l(w,W,S[W],null,V,U);for(const W in N){if(Pr(W))continue;const ee=N[W],X=S[W];ee!==X&&W!=="value"&&l(w,W,X,ee,V,U)}"value"in N&&l(w,"value",S.value,N.value,V)}},Q=(w,S,N,U,V,W,ee,X,Y)=>{const K=S.el=w?w.el:f(""),le=S.anchor=w?w.anchor:f("");let{patchFlag:ne,dynamicChildren:se,slotScopeIds:ue}=S;ue&&(X=X?X.concat(ue):ue),w==null?(s(K,N,U),s(le,N,U),Ze(S.children||[],N,le,V,W,ee,X,Y)):ne>0&&ne&64&&se&&w.dynamicChildren?(be(w.dynamicChildren,se,N,V,W,ee,X),(S.key!=null||V&&S===V.subTree)&&kh(w,S,!0)):te(w,S,N,le,V,W,ee,X,Y)},xe=(w,S,N,U,V,W,ee,X,Y)=>{S.slotScopeIds=X,w==null?S.shapeFlag&512?V.ctx.activate(S,N,U,ee,Y):Me(S,N,U,V,W,ee,Y):ot(w,S,Y)},Me=(w,S,N,U,V,W,ee)=>{const X=w.component=sg(w,U,V);if(no(w)&&(X.ctx.renderer=J),ag(X,!1,ee),X.asyncDep){if(V&&V.registerDep(X,Ee,ee),!w.el){const Y=X.subTree=Ye(Mt);P(null,Y,S,N)}}else Ee(X,w,S,N,V,W,ee)},ot=(w,S,N)=>{const U=S.component=w.component;if(J_(w,S,N))if(U.asyncDep&&!U.asyncResolved){Ce(U,S,N);return}else U.next=S,U.update();else S.el=w.el,U.vnode=S},Ee=(w,S,N,U,V,W,ee)=>{const X=()=>{if(w.isMounted){let{next:ne,bu:se,u:ue,parent:$e,vnode:ze}=w;{const bt=Oh(w);if(bt){ne&&(ne.el=ze.el,Ce(w,ne,ee)),bt.asyncDep.then(()=>{w.isUnmounted||X()});return}}let Ae=ne,ht;ai(w,!1),ne?(ne.el=ze.el,Ce(w,ne,ee)):ne=ze,se&&Ls(se),(ht=ne.props&&ne.props.onVnodeBeforeUpdate)&&un(ht,$e,ne,ze),ai(w,!0);const at=Qo(w),Dt=w.subTree;w.subTree=at,T(Dt,at,_(Dt.el),R(Dt),w,V,W),ne.el=at.el,Ae===null&&Y_(w,at.el),ue&&jt(ue,V),(ht=ne.props&&ne.props.onVnodeUpdated)&&jt(()=>un(ht,$e,ne,ze),V)}else{let ne;const{el:se,props:ue}=S,{bm:$e,m:ze,parent:Ae,root:ht,type:at}=w,Dt=Vi(S);if(ai(w,!1),$e&&Ls($e),!Dt&&(ne=ue&&ue.onVnodeBeforeMount)&&un(ne,Ae,S),ai(w,!0),se&&Ie){const bt=()=>{w.subTree=Qo(w),Ie(se,w.subTree,w,V,null)};Dt&&at.__asyncHydrate?at.__asyncHydrate(se,w,bt):bt()}else{ht.ce&&ht.ce._injectChildStyle(at);const bt=w.subTree=Qo(w);T(null,bt,N,U,w,V,W),S.el=bt.el}if(ze&&jt(ze,V),!Dt&&(ne=ue&&ue.onVnodeMounted)){const bt=S;jt(()=>un(ne,Ae,bt),V)}(S.shapeFlag&256||Ae&&Vi(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&w.a&&jt(w.a,V),w.isMounted=!0,S=N=U=null}};w.scope.on();const Y=w.effect=new Af(X);w.scope.off();const K=w.update=Y.run.bind(Y),le=w.job=Y.runIfDirty.bind(Y);le.i=w,le.id=w.uid,Y.scheduler=()=>tl(le),ai(w,!0),K()},Ce=(w,S,N)=>{S.component=w;const U=w.vnode.props;w.vnode=S,w.next=null,I_(w,S.props,U,N),D_(w,S.children,N),Qn(),su(w),ei()},te=(w,S,N,U,V,W,ee,X,Y=!1)=>{const K=w&&w.children,le=w?w.shapeFlag:0,ne=S.children,{patchFlag:se,shapeFlag:ue}=S;if(se>0){if(se&128){Z(K,ne,N,U,V,W,ee,X,Y);return}else if(se&256){mt(K,ne,N,U,V,W,ee,X,Y);return}}ue&8?(le&16&&M(K,V,W),ne!==K&&m(N,ne)):le&16?ue&16?Z(K,ne,N,U,V,W,ee,X,Y):M(K,V,W,!0):(le&8&&m(N,""),ue&16&&Ze(ne,N,U,V,W,ee,X,Y))},mt=(w,S,N,U,V,W,ee,X,Y)=>{w=w||ji,S=S||ji;const K=w.length,le=S.length,ne=Math.min(K,le);let se;for(se=0;sele?M(w,V,W,!0,!1,ne):Ze(S,N,U,V,W,ee,X,Y,ne)},Z=(w,S,N,U,V,W,ee,X,Y)=>{let K=0;const le=S.length;let ne=w.length-1,se=le-1;for(;K<=ne&&K<=se;){const ue=w[K],$e=S[K]=Y?qn(S[K]):hn(S[K]);if(hi(ue,$e))T(ue,$e,N,null,V,W,ee,X,Y);else break;K++}for(;K<=ne&&K<=se;){const ue=w[ne],$e=S[se]=Y?qn(S[se]):hn(S[se]);if(hi(ue,$e))T(ue,$e,N,null,V,W,ee,X,Y);else break;ne--,se--}if(K>ne){if(K<=se){const ue=se+1,$e=uese)for(;K<=ne;)F(w[K],V,W,!0),K++;else{const ue=K,$e=K,ze=new Map;for(K=$e;K<=se;K++){const xt=S[K]=Y?qn(S[K]):hn(S[K]);xt.key!=null&&ze.set(xt.key,K)}let Ae,ht=0;const at=se-$e+1;let Dt=!1,bt=0;const wn=new Array(at);for(K=0;K=at){F(xt,V,W,!0);continue}let Pt;if(xt.key!=null)Pt=ze.get(xt.key);else for(Ae=$e;Ae<=se;Ae++)if(wn[Ae-$e]===0&&hi(xt,S[Ae])){Pt=Ae;break}Pt===void 0?F(xt,V,W,!0):(wn[Pt-$e]=K+1,Pt>=bt?bt=Pt:Dt=!0,T(xt,S[Pt],N,null,V,W,ee,X,Y),ht++)}const tr=Dt?F_(wn):ji;for(Ae=tr.length-1,K=at-1;K>=0;K--){const xt=$e+K,Pt=S[xt],Jr=xt+1{const{el:W,type:ee,transition:X,children:Y,shapeFlag:K}=w;if(K&6){O(w.component.subTree,S,N,U);return}if(K&128){w.suspense.move(S,N,U);return}if(K&64){ee.move(w,S,N,J);return}if(ee===ct){s(W,S,N);for(let ne=0;neX.enter(W),V);else{const{leave:ne,delayLeave:se,afterLeave:ue}=X,$e=()=>s(W,S,N),ze=()=>{ne(W,()=>{$e(),ue&&ue()})};se?se(W,$e,ze):ze()}else s(W,S,N)},F=(w,S,N,U=!1,V=!1)=>{const{type:W,props:ee,ref:X,children:Y,dynamicChildren:K,shapeFlag:le,patchFlag:ne,dirs:se,cacheIndex:ue}=w;if(ne===-2&&(V=!1),X!=null&&wa(X,null,N,w,!0),ue!=null&&(S.renderCache[ue]=void 0),le&256){S.ctx.deactivate(w);return}const $e=le&1&&se,ze=!Vi(w);let Ae;if(ze&&(Ae=ee&&ee.onVnodeBeforeUnmount)&&un(Ae,S,w),le&6)$(w.component,N,U);else{if(le&128){w.suspense.unmount(N,U);return}$e&&oi(w,null,S,"beforeUnmount"),le&64?w.type.remove(w,S,N,J,U):K&&!K.hasOnce&&(W!==ct||ne>0&&ne&64)?M(K,S,N,!1,!0):(W===ct&&ne&384||!V&&le&16)&&M(Y,S,N),U&&A(w)}(ze&&(Ae=ee&&ee.onVnodeUnmounted)||$e)&&jt(()=>{Ae&&un(Ae,S,w),$e&&oi(w,null,S,"unmounted")},N)},A=w=>{const{type:S,el:N,anchor:U,transition:V}=w;if(S===ct){v(N,U);return}if(S===ea){B(w);return}const W=()=>{a(N),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(w.shapeFlag&1&&V&&!V.persisted){const{leave:ee,delayLeave:X}=V,Y=()=>ee(N,W);X?X(w.el,W,Y):Y()}else W()},v=(w,S)=>{let N;for(;w!==S;)N=y(w),a(w),w=N;a(S)},$=(w,S,N)=>{const{bum:U,scope:V,job:W,subTree:ee,um:X,m:Y,a:K}=w;du(Y),du(K),U&&Ls(U),V.stop(),W&&(W.flags|=8,F(ee,w,S,N)),X&&jt(X,S),jt(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},M=(w,S,N,U=!1,V=!1,W=0)=>{for(let ee=W;ee{if(w.shapeFlag&6)return R(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const S=y(w.anchor||w.el),N=S&&S[u_];return N?y(N):S};let j=!1;const H=(w,S,N)=>{w==null?S._vnode&&F(S._vnode,null,null,!0):T(S._vnode||null,w,S,null,null,null,N),S._vnode=w,j||(j=!0,su(),th(),j=!1)},J={p:T,um:F,m:O,r:A,mt:Me,mc:Ze,pc:te,pbc:be,n:R,o:e};let he,Ie;return{render:H,hydrate:he,createApp:R_(H,he)}}function Xo({type:e,props:n},i){return i==="svg"&&e==="foreignObject"||i==="mathml"&&e==="annotation-xml"&&n&&n.encoding&&n.encoding.includes("html")?void 0:i}function ai({effect:e,job:n},i){i?(e.flags|=32,n.flags|=4):(e.flags&=-33,n.flags&=-5)}function Z_(e,n){return(!e||e&&!e.pendingBranch)&&n&&!n.persisted}function kh(e,n,i=!1){const s=e.children,a=n.children;if(ge(s)&&ge(a))for(let l=0;l>1,e[i[f]]0&&(n[s]=i[l-1]),i[l]=s)}}for(l=i.length,u=i[l-1];l-- >0;)i[l]=u,u=n[u];return i}function Oh(e){const n=e.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:Oh(n)}function du(e){if(e)for(let n=0;nen(V_);function gi(e,n,i){return Rh(e,n,i)}function Rh(e,n,i=qe){const{immediate:s,deep:a,flush:l,once:u}=i,f=ft({},i);let h;if(oo)if(l==="sync"){const y=H_();h=y.__watcherHandles||(y.__watcherHandles=[])}else if(!n||s)f.once=!0;else return{stop:vn,resume:vn,pause:vn};const p=yt;f.call=(y,b,x)=>rn(y,p,b,x);let m=!1;l==="post"?f.scheduler=y=>{jt(y,p&&p.suspense)}:l!=="sync"&&(m=!0,f.scheduler=(y,b)=>{b?y():tl(y)}),f.augmentJob=y=>{n&&(y.flags|=4),m&&(y.flags|=2,p&&(y.id=p.uid,y.i=p))};const _=s_(e,n,f);return h&&h.push(_),_}function U_(e,n,i){const s=this.proxy,a=Xe(e)?e.includes(".")?Mh(s,e):()=>s[e]:e.bind(s,s);let l;we(n)?l=n:(l=n.handler,i=n);const u=Ur(this),f=Rh(a,l.bind(s),i);return u(),f}function Mh(e,n){const i=n.split(".");return()=>{let s=e;for(let a=0;an==="modelValue"||n==="model-value"?e.modelModifiers:e[`${n}Modifiers`]||e[`${nn(n)}Modifiers`]||e[`${Pi(n)}Modifiers`];function W_(e,n,...i){if(e.isUnmounted)return;const s=e.vnode.props||qe;let a=i;const l=n.startsWith("update:"),u=l&&q_(s,n.slice(7));u&&(u.trim&&(a=i.map(m=>Xe(m)?m.trim():m)),u.number&&(a=i.map(pa)));let f,h=s[f=Uo(n)]||s[f=Uo(nn(n))];!h&&l&&(h=s[f=Uo(Pi(n))]),h&&rn(h,e,6,a);const p=s[f+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,rn(p,e,6,a)}}function Ih(e,n,i=!1){const s=n.emitsCache,a=s.get(e);if(a!==void 0)return a;const l=e.emits;let u={},f=!1;if(!we(e)){const h=p=>{const m=Ih(p,n,!0);m&&(f=!0,ft(u,m))};!i&&n.mixins.length&&n.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}return!l&&!f?(Ge(e)&&s.set(e,null),null):(ge(l)?l.forEach(h=>u[h]=null):ft(u,l),Ge(e)&&s.set(e,u),u)}function ro(e,n){return!e||!Ks(n)?!1:(n=n.slice(2).replace(/Once$/,""),Be(e,n[0].toLowerCase()+n.slice(1))||Be(e,Pi(n))||Be(e,n))}function Qo(e){const{type:n,vnode:i,proxy:s,withProxy:a,propsOptions:[l],slots:u,attrs:f,emit:h,render:p,renderCache:m,props:_,data:y,setupState:b,ctx:x,inheritAttrs:T}=e,C=js(e);let P,k;try{if(i.shapeFlag&4){const B=a||s,G=B;P=hn(p.call(G,B,m,_,b,y,x)),k=f}else{const B=n;P=hn(B.length>1?B(_,{attrs:f,slots:u,emit:h}):B(_,null)),k=n.props?f:K_(f)}}catch(B){Tr.length=0,to(B,e,1),P=Ye(Mt)}let z=P;if(k&&T!==!1){const B=Object.keys(k),{shapeFlag:G}=z;B.length&&G&7&&(l&&B.some(Za)&&(k=G_(k,l)),z=Yn(z,k,!1,!0))}return i.dirs&&(z=Yn(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(i.dirs):i.dirs),i.transition&&Dr(z,i.transition),P=z,js(C),P}const K_=e=>{let n;for(const i in e)(i==="class"||i==="style"||Ks(i))&&((n||(n={}))[i]=e[i]);return n},G_=(e,n)=>{const i={};for(const s in e)(!Za(s)||!(s.slice(9)in n))&&(i[s]=e[s]);return i};function J_(e,n,i){const{props:s,children:a,component:l}=e,{props:u,children:f,patchFlag:h}=n,p=l.emitsOptions;if(n.dirs||n.transition)return!0;if(i&&h>=0){if(h&1024)return!0;if(h&16)return s?pu(s,u,p):!!u;if(h&8){const m=n.dynamicProps;for(let _=0;_e.__isSuspense;function X_(e,n){n&&n.pendingBranch?ge(e)?n.effects.push(...e):n.effects.push(e):l_(e)}const ct=Symbol.for("v-fgt"),so=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ea=Symbol.for("v-stc"),Tr=[];let Zt=null;function _e(e=!1){Tr.push(Zt=e?null:[])}function Q_(){Tr.pop(),Zt=Tr[Tr.length-1]||null}let jr=1;function mu(e){jr+=e,e<0&&Zt&&(Zt.hasOnce=!0)}function Nh(e){return e.dynamicChildren=jr>0?Zt||ji:null,Q_(),jr>0&&Zt&&Zt.push(e),e}function Ve(e,n,i,s,a,l){return Nh(pe(e,n,i,s,a,l,!0))}function st(e,n,i,s,a){return Nh(Ye(e,n,i,s,a,!0))}function Zs(e){return e?e.__v_isVNode===!0:!1}function hi(e,n){return e.type===n.type&&e.key===n.key}const zh=({key:e})=>e??null,Os=({ref:e,ref_key:n,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||Et(e)||we(e)?{i:pt,r:e,k:n,f:!!i}:e:null);function pe(e,n=null,i=null,s=0,a=null,l=e===ct?0:1,u=!1,f=!1){const h={__v_isVNode:!0,__v_skip:!0,type:e,props:n,key:n&&zh(n),ref:n&&Os(n),scopeId:ih,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:s,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:pt};return f?(sl(h,i),l&128&&e.normalize(h)):i&&(h.shapeFlag|=Xe(i)?8:16),jr>0&&!u&&Zt&&(h.patchFlag>0||l&6)&&h.patchFlag!==32&&Zt.push(h),h}const Ye=eg;function eg(e,n=null,i=null,s=0,a=null,l=!1){if((!e||e===mh)&&(e=Mt),Zs(e)){const f=Yn(e,n,!0);return i&&sl(f,i),jr>0&&!l&&Zt&&(f.shapeFlag&6?Zt[Zt.indexOf(e)]=f:Zt.push(f)),f.patchFlag=-2,f}if(hg(e)&&(e=e.__vccOpts),n){n=tg(n);let{class:f,style:h}=n;f&&!Xe(f)&&(n.class=vi(f)),Ge(h)&&(Xa(h)&&!ge(h)&&(h=ft({},h)),n.style=Ha(h))}const u=Xe(e)?1:Ah(e)?128:rh(e)?64:Ge(e)?4:we(e)?2:0;return pe(e,n,i,s,a,u,l,!0)}function tg(e){return e?Xa(e)||$h(e)?ft({},e):e:null}function Yn(e,n,i=!1,s=!1){const{props:a,ref:l,patchFlag:u,children:f,transition:h}=e,p=n?ng(a||{},n):a,m={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&zh(p),ref:n&&n.ref?i&&l?ge(l)?l.concat(Os(n)):[l,Os(n)]:Os(n):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:n&&e.type!==ct?u===-1?16:u|16:u,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:h,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yn(e.ssContent),ssFallback:e.ssFallback&&Yn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return h&&s&&Dr(m,h.clone(m)),m}function kn(e=" ",n=0){return Ye(so,null,e,n)}function wt(e="",n=!1){return n?(_e(),st(Mt,null,e)):Ye(Mt,null,e)}function hn(e){return e==null||typeof e=="boolean"?Ye(Mt):ge(e)?Ye(ct,null,e.slice()):typeof e=="object"?qn(e):Ye(so,null,String(e))}function qn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yn(e)}function sl(e,n){let i=0;const{shapeFlag:s}=e;if(n==null)n=null;else if(ge(n))i=16;else if(typeof n=="object")if(s&65){const a=n.default;a&&(a._c&&(a._d=!1),sl(e,a()),a._c&&(a._d=!0));return}else{i=32;const a=n._;!a&&!$h(n)?n._ctx=pt:a===3&&pt&&(pt.slots._===1?n._=1:(n._=2,e.patchFlag|=1024))}else we(n)?(n={default:n,_ctx:pt},i=32):(n=String(n),s&64?(i=16,n=[kn(n)]):i=8);e.children=n,e.shapeFlag|=i}function ng(...e){const n={};for(let i=0;iyt||pt;let Fs,Ea;{const e=Of(),n=(i,s)=>{let a;return(a=e[i])||(a=e[i]=[]),a.push(s),l=>{a.length>1?a.forEach(u=>u(l)):a[0](l)}};Fs=n("__VUE_INSTANCE_SETTERS__",i=>yt=i),Ea=n("__VUE_SSR_SETTERS__",i=>oo=i)}const Ur=e=>{const n=yt;return Fs(e),e.scope.on(),()=>{e.scope.off(),Fs(n)}},_u=()=>{yt&&yt.scope.off(),Fs(null)};function Dh(e){return e.vnode.shapeFlag&4}let oo=!1;function ag(e,n=!1,i=!1){n&&Ea(n);const{props:s,children:a}=e.vnode,l=Dh(e);M_(e,s,l,n),z_(e,a,i);const u=l?lg(e,n):void 0;return n&&Ea(!1),u}function lg(e,n){const i=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,E_);const{setup:s}=i;if(s){const a=e.setupContext=s.length>1?ug(e):null,l=Ur(e);Qn();const u=Hr(s,e,0,[e.props,a]);if(ei(),l(),xf(u)){if(Vi(e)||uh(e),u.then(_u,_u),n)return u.then(f=>{gu(e,f,n)}).catch(f=>{to(f,e,0)});e.asyncDep=u}else gu(e,u,n)}else jh(e,n)}function gu(e,n,i){we(n)?e.type.__ssrInlineRender?e.ssrRender=n:e.render=n:Ge(n)&&(e.setupState=Yf(n)),jh(e,i)}let vu;function jh(e,n,i){const s=e.type;if(!e.render){if(!n&&vu&&!s.render){const a=s.template||il(e).template;if(a){const{isCustomElement:l,compilerOptions:u}=e.appContext.config,{delimiters:f,compilerOptions:h}=s,p=ft(ft({isCustomElement:l,delimiters:f},u),h);s.render=vu(a,p)}}e.render=s.render||vn}{const a=Ur(e);Qn();try{T_(e)}finally{ei(),a()}}}const cg={get(e,n){return Tt(e,"get",""),e[n]}};function ug(e){const n=i=>{e.exposed=i||{}};return{attrs:new Proxy(e.attrs,cg),slots:e.slots,emit:e.emit,expose:n}}function ao(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Yf(Xm(e.exposed)),{get(n,i){if(i in n)return n[i];if(i in Er)return Er[i](e)},has(n,i){return i in n||i in Er}})):e.proxy}function fg(e,n=!0){return we(e)?e.displayName||e.name:e.name||n&&e.__name}function hg(e){return we(e)&&"__vccOpts"in e}const ut=(e,n)=>i_(e,n,oo);function ol(e,n,i){const s=arguments.length;return s===2?Ge(n)&&!ge(n)?Zs(n)?Ye(e,null,[n]):Ye(e,n):Ye(e,null,n):(s>3?i=Array.prototype.slice.call(arguments,2):s===3&&Zs(i)&&(i=[i]),Ye(e,n,i))}const dg="3.5.4";/** * @vue/runtime-dom v3.5.4 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Ta;const yu=typeof window<"u"&&window.trustedTypes;if(yu)try{Ta=yu.createPolicy("vue",{createHTML:e=>e})}catch{}const Bh=Ta?e=>Ta.createHTML(e):e=>e,pg="http://www.w3.org/2000/svg",mg="http://www.w3.org/1998/Math/MathML",xn=typeof document<"u"?document:null,wu=xn&&xn.createElement("template"),_g={insert:(e,n,i)=>{n.insertBefore(e,i||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,i,s)=>{const a=n==="svg"?xn.createElementNS(pg,e):n==="mathml"?xn.createElementNS(mg,e):i?xn.createElement(e,{is:i}):xn.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>xn.createTextNode(e),createComment:e=>xn.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xn.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,i,s,a,l){const u=i?i.previousSibling:n.lastChild;if(a&&(a===l||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),i),!(a===l||!(a=a.nextSibling)););else{wu.innerHTML=Bh(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const f=wu.content;if(s==="svg"||s==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}n.insertBefore(f,i)}return[u?u.nextSibling:n.firstChild,i?i.previousSibling:n.lastChild]}},jn="transition",mr="animation",Br=Symbol("_vtc"),Zh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gg=ft({},sh,Zh),vg=e=>(e.displayName="Transition",e.props=gg,e),Fh=vg((e,{slots:n})=>ol(d_,yg(e),n)),ci=(e,n=[])=>{ge(e)?e.forEach(i=>i(...n)):e&&e(...n)},bu=e=>e?ge(e)?e.some(n=>n.length>1):e.length>1:!1;function yg(e){const n={};for(const Q in e)Q in Zh||(n[Q]=e[Q]);if(e.css===!1)return n;const{name:i="v",type:s,duration:a,enterFromClass:l=`${i}-enter-from`,enterActiveClass:u=`${i}-enter-active`,enterToClass:f=`${i}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:m=f,leaveFromClass:_=`${i}-leave-from`,leaveActiveClass:y=`${i}-leave-active`,leaveToClass:b=`${i}-leave-to`}=e,x=wg(a),T=x&&x[0],C=x&&x[1],{onBeforeEnter:P,onEnter:k,onEnterCancelled:z,onLeave:B,onLeaveCancelled:G,onBeforeAppear:oe=P,onAppear:de=k,onAppearCancelled:Ze=z}=n,fe=(Q,xe,Me)=>{ui(Q,xe?m:f),ui(Q,xe?p:u),Me&&Me()},be=(Q,xe)=>{Q._isLeaving=!1,ui(Q,_),ui(Q,b),ui(Q,y),xe&&xe()},ve=Q=>(xe,Me)=>{const ot=Q?de:k,Ee=()=>fe(xe,Q,Me);ci(ot,[xe,Ee]),Pu(()=>{ui(xe,Q?h:l),Bn(xe,Q?m:f),bu(ot)||$u(xe,s,T,Ee)})};return ft(n,{onBeforeEnter(Q){ci(P,[Q]),Bn(Q,l),Bn(Q,u)},onBeforeAppear(Q){ci(oe,[Q]),Bn(Q,h),Bn(Q,p)},onEnter:ve(!1),onAppear:ve(!0),onLeave(Q,xe){Q._isLeaving=!0;const Me=()=>be(Q,xe);Bn(Q,_),Bn(Q,y),$g(),Pu(()=>{Q._isLeaving&&(ui(Q,_),Bn(Q,b),bu(B)||$u(Q,s,C,Me))}),ci(B,[Q,Me])},onEnterCancelled(Q){fe(Q,!1),ci(z,[Q])},onAppearCancelled(Q){fe(Q,!0),ci(Ze,[Q])},onLeaveCancelled(Q){be(Q),ci(G,[Q])}})}function wg(e){if(e==null)return null;if(Ge(e))return[ta(e.enter),ta(e.leave)];{const n=ta(e);return[n,n]}}function ta(e){return $m(e)}function Bn(e,n){n.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Br]||(e[Br]=new Set)).add(n)}function ui(e,n){n.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const i=e[Br];i&&(i.delete(n),i.size||(e[Br]=void 0))}function Pu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bg=0;function $u(e,n,i,s){const a=e._endId=++bg,l=()=>{a===e._endId&&s()};if(i)return setTimeout(l,i);const{type:u,timeout:f,propCount:h}=Pg(e,n);if(!u)return s();const p=u+"end";let m=0;const _=()=>{e.removeEventListener(p,y),l()},y=b=>{b.target===e&&++m>=h&&_()};setTimeout(()=>{m(i[x]||"").split(", "),a=s(`${jn}Delay`),l=s(`${jn}Duration`),u=Su(a,l),f=s(`${mr}Delay`),h=s(`${mr}Duration`),p=Su(f,h);let m=null,_=0,y=0;n===jn?u>0&&(m=jn,_=u,y=l.length):n===mr?p>0&&(m=mr,_=p,y=h.length):(_=Math.max(u,p),m=_>0?u>p?jn:mr:null,y=m?m===jn?l.length:h.length:0);const b=m===jn&&/\b(transform|all)(,|$)/.test(s(`${jn}Property`).toString());return{type:m,timeout:_,propCount:y,hasTransform:b}}function Su(e,n){for(;e.lengthEu(i)+Eu(e[s])))}function Eu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $g(){return document.body.offsetHeight}function Sg(e,n,i){const s=e[Br];s&&(n=(n?[n,...s]:[...s]).join(" ")),n==null?e.removeAttribute("class"):i?e.setAttribute("class",n):e.className=n}const Tu=Symbol("_vod"),Eg=Symbol("_vsh"),Tg=Symbol(""),xg=/(^|;)\s*display\s*:/;function Cg(e,n,i){const s=e.style,a=Xe(i);let l=!1;if(i&&!a){if(n)if(Xe(n))for(const u of n.split(";")){const f=u.slice(0,u.indexOf(":")).trim();i[f]==null&&Ms(s,f,"")}else for(const u in n)i[u]==null&&Ms(s,u,"");for(const u in i)u==="display"&&(l=!0),Ms(s,u,i[u])}else if(a){if(n!==i){const u=s[Tg];u&&(i+=";"+u),s.cssText=i,l=xg.test(i)}}else n&&e.removeAttribute("style");Tu in e&&(e[Tu]=l?s.display:"",e[Eg]&&(s.display="none"))}const xu=/\s*!important$/;function Ms(e,n,i){if(ge(i))i.forEach(s=>Ms(e,n,s));else if(i==null&&(i=""),n.startsWith("--"))e.setProperty(n,i);else{const s=Lg(e,n);xu.test(i)?e.setProperty(Pi(s),i.replace(xu,""),"important"):e[s]=i}}const Cu=["Webkit","Moz","ms"],na={};function Lg(e,n){const i=na[n];if(i)return i;let s=nn(n);if(s!=="filter"&&s in e)return na[n]=s;s=Xs(s);for(let a=0;aia||(Ig.then(()=>ia=0),ia=Date.now());function Ng(e,n){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;rn(zg(s,i.value),n,5,[s])};return i.value=e,i.attached=Ag(),i}function zg(e,n){if(ge(n)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},n.map(s=>a=>!a._stopped&&s&&s(a))}else return n}const Mu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dg=(e,n,i,s,a,l)=>{const u=a==="svg";n==="class"?Sg(e,s,u):n==="style"?Cg(e,i,s):Gs(n)?Za(n)||Rg(e,n,i,s,l):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):jg(e,n,s,u))?(kg(e,n,s),!e.tagName.includes("-")&&(n==="value"||n==="checked"||n==="selected")&&ku(e,n,s,u,l,n!=="value")):(n==="true-value"?e._trueValue=s:n==="false-value"&&(e._falseValue=s),ku(e,n,s,u))};function jg(e,n,i,s){if(s)return!!(n==="innerHTML"||n==="textContent"||n in e&&Mu(n)&&we(i));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&e.tagName==="INPUT"||n==="type"&&e.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Mu(n)&&Xe(i)?!1:!!(n in e||e._isVueCE&&(/[A-Z]/.test(n)||!Xe(i)))}const Iu=e=>{const n=e.props["onUpdate:modelValue"]||!1;return ge(n)?i=>ks(n,i):n};function Bg(e){e.target.composing=!0}function Au(e){const n=e.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const ra=Symbol("_assign"),Zg={created(e,{modifiers:{lazy:n,trim:i,number:s}},a){e[ra]=Iu(a);const l=s||a.props&&a.props.type==="number";Ni(e,n?"change":"input",u=>{if(u.target.composing)return;let f=e.value;i&&(f=f.trim()),l&&(f=pa(f)),e[ra](f)}),i&&Ni(e,"change",()=>{e.value=e.value.trim()}),n||(Ni(e,"compositionstart",Bg),Ni(e,"compositionend",Au),Ni(e,"change",Au))},mounted(e,{value:n}){e.value=n??""},beforeUpdate(e,{value:n,oldValue:i,modifiers:{lazy:s,trim:a,number:l}},u){if(e[ra]=Iu(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?pa(e.value):e.value,h=n??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(s&&n===i||a&&e.value.trim()===h)||(e.value=h))}},Fg=ft({patchProp:Dg},_g);let Nu;function Vg(){return Nu||(Nu=j_(Fg))}const Hg=(...e)=>{const n=Vg().createApp(...e),{mount:i}=n;return n.mount=s=>{const a=qg(s);if(!a)return;const l=n._component;!we(l)&&!l.render&&!l.template&&(l.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const u=i(a,!1,Ug(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),u},n};function Ug(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qg(e){return Xe(e)?document.querySelector(e):e}/*! +**/let Ta;const yu=typeof window<"u"&&window.trustedTypes;if(yu)try{Ta=yu.createPolicy("vue",{createHTML:e=>e})}catch{}const Bh=Ta?e=>Ta.createHTML(e):e=>e,pg="http://www.w3.org/2000/svg",mg="http://www.w3.org/1998/Math/MathML",xn=typeof document<"u"?document:null,wu=xn&&xn.createElement("template"),_g={insert:(e,n,i)=>{n.insertBefore(e,i||null)},remove:e=>{const n=e.parentNode;n&&n.removeChild(e)},createElement:(e,n,i,s)=>{const a=n==="svg"?xn.createElementNS(pg,e):n==="mathml"?xn.createElementNS(mg,e):i?xn.createElement(e,{is:i}):xn.createElement(e);return e==="select"&&s&&s.multiple!=null&&a.setAttribute("multiple",s.multiple),a},createText:e=>xn.createTextNode(e),createComment:e=>xn.createComment(e),setText:(e,n)=>{e.nodeValue=n},setElementText:(e,n)=>{e.textContent=n},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xn.querySelector(e),setScopeId(e,n){e.setAttribute(n,"")},insertStaticContent(e,n,i,s,a,l){const u=i?i.previousSibling:n.lastChild;if(a&&(a===l||a.nextSibling))for(;n.insertBefore(a.cloneNode(!0),i),!(a===l||!(a=a.nextSibling)););else{wu.innerHTML=Bh(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const f=wu.content;if(s==="svg"||s==="mathml"){const h=f.firstChild;for(;h.firstChild;)f.appendChild(h.firstChild);f.removeChild(h)}n.insertBefore(f,i)}return[u?u.nextSibling:n.firstChild,i?i.previousSibling:n.lastChild]}},jn="transition",mr="animation",Br=Symbol("_vtc"),Zh={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},gg=ft({},sh,Zh),vg=e=>(e.displayName="Transition",e.props=gg,e),Fh=vg((e,{slots:n})=>ol(d_,yg(e),n)),li=(e,n=[])=>{ge(e)?e.forEach(i=>i(...n)):e&&e(...n)},bu=e=>e?ge(e)?e.some(n=>n.length>1):e.length>1:!1;function yg(e){const n={};for(const Q in e)Q in Zh||(n[Q]=e[Q]);if(e.css===!1)return n;const{name:i="v",type:s,duration:a,enterFromClass:l=`${i}-enter-from`,enterActiveClass:u=`${i}-enter-active`,enterToClass:f=`${i}-enter-to`,appearFromClass:h=l,appearActiveClass:p=u,appearToClass:m=f,leaveFromClass:_=`${i}-leave-from`,leaveActiveClass:y=`${i}-leave-active`,leaveToClass:b=`${i}-leave-to`}=e,x=wg(a),T=x&&x[0],C=x&&x[1],{onBeforeEnter:P,onEnter:k,onEnterCancelled:z,onLeave:B,onLeaveCancelled:G,onBeforeAppear:oe=P,onAppear:de=k,onAppearCancelled:Ze=z}=n,fe=(Q,xe,Me)=>{ci(Q,xe?m:f),ci(Q,xe?p:u),Me&&Me()},be=(Q,xe)=>{Q._isLeaving=!1,ci(Q,_),ci(Q,b),ci(Q,y),xe&&xe()},ve=Q=>(xe,Me)=>{const ot=Q?de:k,Ee=()=>fe(xe,Q,Me);li(ot,[xe,Ee]),Pu(()=>{ci(xe,Q?h:l),Bn(xe,Q?m:f),bu(ot)||$u(xe,s,T,Ee)})};return ft(n,{onBeforeEnter(Q){li(P,[Q]),Bn(Q,l),Bn(Q,u)},onBeforeAppear(Q){li(oe,[Q]),Bn(Q,h),Bn(Q,p)},onEnter:ve(!1),onAppear:ve(!0),onLeave(Q,xe){Q._isLeaving=!0;const Me=()=>be(Q,xe);Bn(Q,_),Bn(Q,y),$g(),Pu(()=>{Q._isLeaving&&(ci(Q,_),Bn(Q,b),bu(B)||$u(Q,s,C,Me))}),li(B,[Q,Me])},onEnterCancelled(Q){fe(Q,!1),li(z,[Q])},onAppearCancelled(Q){fe(Q,!0),li(Ze,[Q])},onLeaveCancelled(Q){be(Q),li(G,[Q])}})}function wg(e){if(e==null)return null;if(Ge(e))return[ta(e.enter),ta(e.leave)];{const n=ta(e);return[n,n]}}function ta(e){return $m(e)}function Bn(e,n){n.split(/\s+/).forEach(i=>i&&e.classList.add(i)),(e[Br]||(e[Br]=new Set)).add(n)}function ci(e,n){n.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const i=e[Br];i&&(i.delete(n),i.size||(e[Br]=void 0))}function Pu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let bg=0;function $u(e,n,i,s){const a=e._endId=++bg,l=()=>{a===e._endId&&s()};if(i)return setTimeout(l,i);const{type:u,timeout:f,propCount:h}=Pg(e,n);if(!u)return s();const p=u+"end";let m=0;const _=()=>{e.removeEventListener(p,y),l()},y=b=>{b.target===e&&++m>=h&&_()};setTimeout(()=>{m(i[x]||"").split(", "),a=s(`${jn}Delay`),l=s(`${jn}Duration`),u=Su(a,l),f=s(`${mr}Delay`),h=s(`${mr}Duration`),p=Su(f,h);let m=null,_=0,y=0;n===jn?u>0&&(m=jn,_=u,y=l.length):n===mr?p>0&&(m=mr,_=p,y=h.length):(_=Math.max(u,p),m=_>0?u>p?jn:mr:null,y=m?m===jn?l.length:h.length:0);const b=m===jn&&/\b(transform|all)(,|$)/.test(s(`${jn}Property`).toString());return{type:m,timeout:_,propCount:y,hasTransform:b}}function Su(e,n){for(;e.lengthEu(i)+Eu(e[s])))}function Eu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function $g(){return document.body.offsetHeight}function Sg(e,n,i){const s=e[Br];s&&(n=(n?[n,...s]:[...s]).join(" ")),n==null?e.removeAttribute("class"):i?e.setAttribute("class",n):e.className=n}const Tu=Symbol("_vod"),Eg=Symbol("_vsh"),Tg=Symbol(""),xg=/(^|;)\s*display\s*:/;function Cg(e,n,i){const s=e.style,a=Xe(i);let l=!1;if(i&&!a){if(n)if(Xe(n))for(const u of n.split(";")){const f=u.slice(0,u.indexOf(":")).trim();i[f]==null&&Rs(s,f,"")}else for(const u in n)i[u]==null&&Rs(s,u,"");for(const u in i)u==="display"&&(l=!0),Rs(s,u,i[u])}else if(a){if(n!==i){const u=s[Tg];u&&(i+=";"+u),s.cssText=i,l=xg.test(i)}}else n&&e.removeAttribute("style");Tu in e&&(e[Tu]=l?s.display:"",e[Eg]&&(s.display="none"))}const xu=/\s*!important$/;function Rs(e,n,i){if(ge(i))i.forEach(s=>Rs(e,n,s));else if(i==null&&(i=""),n.startsWith("--"))e.setProperty(n,i);else{const s=Lg(e,n);xu.test(i)?e.setProperty(Pi(s),i.replace(xu,""),"important"):e[s]=i}}const Cu=["Webkit","Moz","ms"],na={};function Lg(e,n){const i=na[n];if(i)return i;let s=nn(n);if(s!=="filter"&&s in e)return na[n]=s;s=Ys(s);for(let a=0;aia||(Ig.then(()=>ia=0),ia=Date.now());function Ng(e,n){const i=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=i.attached)return;rn(zg(s,i.value),n,5,[s])};return i.value=e,i.attached=Ag(),i}function zg(e,n){if(ge(n)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},n.map(s=>a=>!a._stopped&&s&&s(a))}else return n}const Mu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dg=(e,n,i,s,a,l)=>{const u=a==="svg";n==="class"?Sg(e,s,u):n==="style"?Cg(e,i,s):Ks(n)?Za(n)||Rg(e,n,i,s,l):(n[0]==="."?(n=n.slice(1),!0):n[0]==="^"?(n=n.slice(1),!1):jg(e,n,s,u))?(kg(e,n,s),!e.tagName.includes("-")&&(n==="value"||n==="checked"||n==="selected")&&ku(e,n,s,u,l,n!=="value")):(n==="true-value"?e._trueValue=s:n==="false-value"&&(e._falseValue=s),ku(e,n,s,u))};function jg(e,n,i,s){if(s)return!!(n==="innerHTML"||n==="textContent"||n in e&&Mu(n)&&we(i));if(n==="spellcheck"||n==="draggable"||n==="translate"||n==="form"||n==="list"&&e.tagName==="INPUT"||n==="type"&&e.tagName==="TEXTAREA")return!1;if(n==="width"||n==="height"){const a=e.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Mu(n)&&Xe(i)?!1:!!(n in e||e._isVueCE&&(/[A-Z]/.test(n)||!Xe(i)))}const Iu=e=>{const n=e.props["onUpdate:modelValue"]||!1;return ge(n)?i=>Ls(n,i):n};function Bg(e){e.target.composing=!0}function Au(e){const n=e.target;n.composing&&(n.composing=!1,n.dispatchEvent(new Event("input")))}const ra=Symbol("_assign"),Zg={created(e,{modifiers:{lazy:n,trim:i,number:s}},a){e[ra]=Iu(a);const l=s||a.props&&a.props.type==="number";Ni(e,n?"change":"input",u=>{if(u.target.composing)return;let f=e.value;i&&(f=f.trim()),l&&(f=pa(f)),e[ra](f)}),i&&Ni(e,"change",()=>{e.value=e.value.trim()}),n||(Ni(e,"compositionstart",Bg),Ni(e,"compositionend",Au),Ni(e,"change",Au))},mounted(e,{value:n}){e.value=n??""},beforeUpdate(e,{value:n,oldValue:i,modifiers:{lazy:s,trim:a,number:l}},u){if(e[ra]=Iu(u),e.composing)return;const f=(l||e.type==="number")&&!/^0\d/.test(e.value)?pa(e.value):e.value,h=n??"";f!==h&&(document.activeElement===e&&e.type!=="range"&&(s&&n===i||a&&e.value.trim()===h)||(e.value=h))}},Fg=ft({patchProp:Dg},_g);let Nu;function Vg(){return Nu||(Nu=j_(Fg))}const Hg=(...e)=>{const n=Vg().createApp(...e),{mount:i}=n;return n.mount=s=>{const a=qg(s);if(!a)return;const l=n._component;!we(l)&&!l.render&&!l.template&&(l.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const u=i(a,!1,Ug(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),u},n};function Ug(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qg(e){return Xe(e)?document.querySelector(e):e}/*! * vue-router v4.4.4 * (c) 2024 Eduardo San Martin Morote * @license MIT - */const zi=typeof document<"u";function Vh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Vh(e.default)}const Fe=Object.assign;function sa(e,n){const i={};for(const s in n){const a=n[s];i[s]=sn(a)?a.map(e):e(a)}return i}const xr=()=>{},sn=Array.isArray,Hh=/#/g,Kg=/&/g,Gg=/\//g,Jg=/=/g,Yg=/\?/g,Uh=/\+/g,Xg=/%5B/g,Qg=/%5D/g,qh=/%5E/g,ev=/%60/g,Wh=/%7B/g,tv=/%7C/g,Kh=/%7D/g,nv=/%20/g;function al(e){return encodeURI(""+e).replace(tv,"|").replace(Xg,"[").replace(Qg,"]")}function iv(e){return al(e).replace(Wh,"{").replace(Kh,"}").replace(qh,"^")}function xa(e){return al(e).replace(Uh,"%2B").replace(nv,"+").replace(Hh,"%23").replace(Kg,"%26").replace(ev,"`").replace(Wh,"{").replace(Kh,"}").replace(qh,"^")}function rv(e){return xa(e).replace(Jg,"%3D")}function sv(e){return al(e).replace(Hh,"%23").replace(Yg,"%3F")}function ov(e){return e==null?"":sv(e).replace(Gg,"%2F")}function Zr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const av=/\/$/,lv=e=>e.replace(av,"");function oa(e,n,i="/"){let s,a={},l="",u="";const f=n.indexOf("#");let h=n.indexOf("?");return f=0&&(h=-1),h>-1&&(s=n.slice(0,h),l=n.slice(h+1,f>-1?f:n.length),a=e(l)),f>-1&&(s=s||n.slice(0,f),u=n.slice(f,n.length)),s=hv(s??n,i),{fullPath:s+(l&&"?")+l+u,path:s,query:a,hash:Zr(u)}}function cv(e,n){const i=n.query?e(n.query):"";return n.path+(i&&"?")+i+(n.hash||"")}function zu(e,n){return!n||!e.toLowerCase().startsWith(n.toLowerCase())?e:e.slice(n.length)||"/"}function uv(e,n,i){const s=n.matched.length-1,a=i.matched.length-1;return s>-1&&s===a&&Wi(n.matched[s],i.matched[a])&&Gh(n.params,i.params)&&e(n.query)===e(i.query)&&n.hash===i.hash}function Wi(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Gh(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(!fv(e[i],n[i]))return!1;return!0}function fv(e,n){return sn(e)?Du(e,n):sn(n)?Du(n,e):e===n}function Du(e,n){return sn(n)?e.length===n.length&&e.every((i,s)=>i===n[s]):e.length===1&&e[0]===n}function hv(e,n){if(e.startsWith("/"))return e;if(!e)return n;const i=n.split("/"),s=e.split("/"),a=s[s.length-1];(a===".."||a===".")&&s.push("");let l=i.length-1,u,f;for(u=0;u1&&l--;else break;return i.slice(0,l).join("/")+"/"+s.slice(u).join("/")}const Zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Fr;(function(e){e.pop="pop",e.push="push"})(Fr||(Fr={}));var Cr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cr||(Cr={}));function dv(e){if(!e)if(zi){const n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lv(e)}const pv=/^[^#]+#/;function mv(e,n){return e.replace(pv,"#")+n}function _v(e,n){const i=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:n.behavior,left:s.left-i.left-(n.left||0),top:s.top-i.top-(n.top||0)}}const co=()=>({left:window.scrollX,top:window.scrollY});function gv(e){let n;if("el"in e){const i=e.el,s=typeof i=="string"&&i.startsWith("#"),a=typeof i=="string"?s?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!a)return;n=_v(a,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.scrollX,n.top!=null?n.top:window.scrollY)}function ju(e,n){return(history.state?history.state.position-n:-1)+e}const Ca=new Map;function vv(e,n){Ca.set(e,n)}function yv(e){const n=Ca.get(e);return Ca.delete(e),n}let wv=()=>location.protocol+"//"+location.host;function Jh(e,n){const{pathname:i,search:s,hash:a}=n,l=e.indexOf("#");if(l>-1){let f=a.includes(e.slice(l))?e.slice(l).length:1,h=a.slice(f);return h[0]!=="/"&&(h="/"+h),zu(h,"")}return zu(i,e)+s+a}function bv(e,n,i,s){let a=[],l=[],u=null;const f=({state:y})=>{const b=Jh(e,location),x=i.value,T=n.value;let C=0;if(y){if(i.value=b,n.value=y,u&&u===x){u=null;return}C=T?y.position-T.position:0}else s(b);a.forEach(P=>{P(i.value,x,{delta:C,type:Fr.pop,direction:C?C>0?Cr.forward:Cr.back:Cr.unknown})})};function h(){u=i.value}function p(y){a.push(y);const b=()=>{const x=a.indexOf(y);x>-1&&a.splice(x,1)};return l.push(b),b}function m(){const{history:y}=window;y.state&&y.replaceState(Fe({},y.state,{scroll:co()}),"")}function _(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",m,{passive:!0}),{pauseListeners:h,listen:p,destroy:_}}function Bu(e,n,i,s=!1,a=!1){return{back:e,current:n,forward:i,replaced:s,position:window.history.length,scroll:a?co():null}}function Pv(e){const{history:n,location:i}=window,s={value:Jh(e,i)},a={value:n.state};a.value||l(s.value,{back:null,current:s.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function l(h,p,m){const _=e.indexOf("#"),y=_>-1?(i.host&&document.querySelector("base")?e:e.slice(_))+h:wv()+e+h;try{n[m?"replaceState":"pushState"](p,"",y),a.value=p}catch(b){console.error(b),i[m?"replace":"assign"](y)}}function u(h,p){const m=Fe({},n.state,Bu(a.value.back,h,a.value.forward,!0),p,{position:a.value.position});l(h,m,!0),s.value=h}function f(h,p){const m=Fe({},a.value,n.state,{forward:h,scroll:co()});l(m.current,m,!0);const _=Fe({},Bu(s.value,h,null),{position:m.position+1},p);l(h,_,!1),s.value=h}return{location:s,state:a,push:f,replace:u}}function $v(e){e=dv(e);const n=Pv(e),i=bv(e,n.state,n.location,n.replace);function s(l,u=!0){u||i.pauseListeners(),history.go(l)}const a=Fe({location:"",base:e,go:s,createHref:mv.bind(null,e)},n,i);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n.state.value}),a}function Sv(e){return typeof e=="string"||e&&typeof e=="object"}function Yh(e){return typeof e=="string"||typeof e=="symbol"}const Xh=Symbol("");var Zu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zu||(Zu={}));function Ki(e,n){return Fe(new Error,{type:e,[Xh]:!0},n)}function Tn(e,n){return e instanceof Error&&Xh in e&&(n==null||!!(e.type&n))}const Fu="[^/]+?",Ev={sensitive:!1,strict:!1,start:!0,end:!0},Tv=/[.+*?^${}()[\]/\\]/g;function xv(e,n){const i=Fe({},Ev,n),s=[];let a=i.start?"^":"";const l=[];for(const p of e){const m=p.length?[]:[90];i.strict&&!p.length&&(a+="/");for(let _=0;_n.length?n.length===1&&n[0]===80?1:-1:0}function Qh(e,n){let i=0;const s=e.score,a=n.score;for(;i0&&n[n.length-1]<0}const Lv={type:0,value:""},kv=/[a-zA-Z0-9_]/;function Ov(e){if(!e)return[[]];if(e==="/")return[[Lv]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(b){throw new Error(`ERR (${i})/"${p}": ${b}`)}let i=0,s=i;const a=[];let l;function u(){l&&a.push(l),l=[]}let f=0,h,p="",m="";function _(){p&&(i===0?l.push({type:0,value:p}):i===1||i===2||i===3?(l.length>1&&(h==="*"||h==="+")&&n(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:m,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):n("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f{u(z)}:xr}function u(_){if(Yh(_)){const y=s.get(_);y&&(s.delete(_),i.splice(i.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=i.indexOf(_);y>-1&&(i.splice(y,1),_.record.name&&s.delete(_.record.name),_.children.forEach(u),_.alias.forEach(u))}}function f(){return i}function h(_){const y=zv(_,i);i.splice(y,0,_),_.record.name&&!Uu(_)&&s.set(_.record.name,_)}function p(_,y){let b,x={},T,C;if("name"in _&&_.name){if(b=s.get(_.name),!b)throw Ki(1,{location:_});C=b.record.name,x=Fe(Hu(y.params,b.keys.filter(z=>!z.optional).concat(b.parent?b.parent.keys.filter(z=>z.optional):[]).map(z=>z.name)),_.params&&Hu(_.params,b.keys.map(z=>z.name))),T=b.stringify(x)}else if(_.path!=null)T=_.path,b=i.find(z=>z.re.test(T)),b&&(x=b.parse(T),C=b.record.name);else{if(b=y.name?s.get(y.name):i.find(z=>z.re.test(y.path)),!b)throw Ki(1,{location:_,currentLocation:y});C=b.record.name,x=Fe({},y.params,_.params),T=b.stringify(x)}const P=[];let k=b;for(;k;)P.unshift(k.record),k=k.parent;return{name:C,path:T,params:x,matched:P,meta:Nv(P)}}e.forEach(_=>l(_));function m(){i.length=0,s.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:m,getRoutes:f,getRecordMatcher:a}}function Hu(e,n){const i={};for(const s of n)s in e&&(i[s]=e[s]);return i}function Iv(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Av(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},mods:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Av(e){const n={},i=e.props||!1;if("component"in e)n.default=i;else for(const s in e.components)n[s]=typeof i=="object"?i[s]:i;return n}function Uu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Nv(e){return e.reduce((n,i)=>Fe(n,i.meta),{})}function qu(e,n){const i={};for(const s in e)i[s]=s in n?n[s]:e[s];return i}function zv(e,n){let i=0,s=n.length;for(;i!==s;){const l=i+s>>1;Qh(e,n[l])<0?s=l:i=l+1}const a=Dv(e);return a&&(s=n.lastIndexOf(a,s-1)),s}function Dv(e){let n=e;for(;n=n.parent;)if(ed(n)&&Qh(e,n)===0)return n}function ed({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jv(e){const n={};if(e===""||e==="?")return n;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;al&&xa(l)):[s&&xa(s)]).forEach(l=>{l!==void 0&&(n+=(n.length?"&":"")+i,l!=null&&(n+="="+l))})}return n}function Bv(e){const n={};for(const i in e){const s=e[i];s!==void 0&&(n[i]=sn(s)?s.map(a=>a==null?null:""+a):s==null?s:""+s)}return n}const Zv=Symbol(""),Ku=Symbol(""),uo=Symbol(""),ll=Symbol(""),La=Symbol("");function _r(){let e=[];function n(s){return e.push(s),()=>{const a=e.indexOf(s);a>-1&&e.splice(a,1)}}function i(){e=[]}return{add:n,list:()=>e.slice(),reset:i}}function Wn(e,n,i,s,a,l=u=>u()){const u=s&&(s.enterCallbacks[a]=s.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Ki(4,{from:i,to:n})):y instanceof Error?h(y):Sv(y)?h(Ki(2,{from:n,to:y})):(u&&s.enterCallbacks[a]===u&&typeof y=="function"&&u.push(y),f())},m=l(()=>e.call(s&&s.instances[a],n,i,p));let _=Promise.resolve(m);e.length<3&&(_=_.then(p)),_.catch(y=>h(y))})}function aa(e,n,i,s,a=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(n!=="beforeRouteEnter"&&!u.instances[f]))if(Vh(h)){const m=(h.__vccOpts||h)[n];m&&l.push(Wn(m,i,s,u,f,a))}else{let p=h();l.push(()=>p.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const _=Wg(m)?m.default:m;u.mods[f]=m,u.components[f]=_;const b=(_.__vccOpts||_)[n];return b&&Wn(b,i,s,u,f,a)()}))}}return l}function Gu(e){const n=en(uo),i=en(ll),s=ut(()=>{const h=ke(e.to);return n.resolve(h)}),a=ut(()=>{const{matched:h}=s.value,{length:p}=h,m=h[p-1],_=i.matched;if(!m||!_.length)return-1;const y=_.findIndex(Wi.bind(null,m));if(y>-1)return y;const b=Ju(h[p-2]);return p>1&&Ju(m)===b&&_[_.length-1].path!==b?_.findIndex(Wi.bind(null,h[p-2])):y}),l=ut(()=>a.value>-1&&Uv(i.params,s.value.params)),u=ut(()=>a.value>-1&&a.value===i.matched.length-1&&Gh(i.params,s.value.params));function f(h={}){return Hv(h)?n[ke(e.replace)?"replace":"push"](ke(e.to)).catch(xr):Promise.resolve()}return{route:s,href:ut(()=>s.value.href),isActive:l,isExactActive:u,navigate:f}}const Fv=It({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gu,setup(e,{slots:n}){const i=to(Gu(e)),{options:s}=en(uo),a=ut(()=>({[Yu(e.activeClass,s.linkActiveClass,"router-link-active")]:i.isActive,[Yu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const l=n.default&&n.default(i);return e.custom?l:ol("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:a.value},l)}}}),Vv=Fv;function Hv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function Uv(e,n){for(const i in n){const s=n[i],a=e[i];if(typeof s=="string"){if(s!==a)return!1}else if(!sn(a)||a.length!==s.length||s.some((l,u)=>l!==a[u]))return!1}return!0}function Ju(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yu=(e,n,i)=>e??n??i,qv=It({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:i}){const s=en(La),a=ut(()=>e.route||s.value),l=en(Ku,0),u=ut(()=>{let p=ke(l);const{matched:m}=a.value;let _;for(;(_=m[p])&&!_.components;)p++;return p}),f=ut(()=>a.value.matched[u.value]);Os(Ku,ut(()=>u.value+1)),Os(Zv,f),Os(La,a);const h=it();return Gn(()=>[h.value,f.value,e.name],([p,m,_],[y,b,x])=>{m&&(m.instances[_]=p,b&&b!==m&&p&&p===y&&(m.leaveGuards.size||(m.leaveGuards=b.leaveGuards),m.updateGuards.size||(m.updateGuards=b.updateGuards))),p&&m&&(!b||!Wi(m,b)||!y)&&(m.enterCallbacks[_]||[]).forEach(T=>T(p))},{flush:"post"}),()=>{const p=a.value,m=e.name,_=f.value,y=_&&_.components[m];if(!y)return Xu(i.default,{Component:y,route:p});const b=_.props[m],x=b?b===!0?p.params:typeof b=="function"?b(p):b:null,C=ol(y,Fe({},x,n,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(_.instances[m]=null)},ref:h}));return Xu(i.default,{Component:C,route:p})||C}}});function Xu(e,n){if(!e)return null;const i=e(n);return i.length===1?i[0]:i}const Wv=qv;function Kv(e){const n=Mv(e.routes,e),i=e.parseQuery||jv,s=e.stringifyQuery||Wu,a=e.history,l=_r(),u=_r(),f=_r(),h=Qm(Zn);let p=Zn;zi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=sa.bind(null,R=>""+R),_=sa.bind(null,ov),y=sa.bind(null,Zr);function b(R,j){let H,J;return Yh(R)?(H=n.getRecordMatcher(R),J=j):J=R,n.addRoute(J,H)}function x(R){const j=n.getRecordMatcher(R);j&&n.removeRoute(j)}function T(){return n.getRoutes().map(R=>R.record)}function C(R){return!!n.getRecordMatcher(R)}function P(R,j){if(j=Fe({},j||h.value),typeof R=="string"){const S=oa(i,R,j.path),N=n.resolve({path:S.path},j),U=a.createHref(S.fullPath);return Fe(S,N,{params:y(N.params),hash:Zr(S.hash),redirectedFrom:void 0,href:U})}let H;if(R.path!=null)H=Fe({},R,{path:oa(i,R.path,j.path).path});else{const S=Fe({},R.params);for(const N in S)S[N]==null&&delete S[N];H=Fe({},R,{params:_(S)}),j.params=_(j.params)}const J=n.resolve(H,j),he=R.hash||"";J.params=m(y(J.params));const Ie=cv(s,Fe({},R,{hash:iv(he),path:J.path})),w=a.createHref(Ie);return Fe({fullPath:Ie,hash:he,query:s===Wu?Bv(R.query):R.query||{}},J,{redirectedFrom:void 0,href:w})}function k(R){return typeof R=="string"?oa(i,R,h.value.path):Fe({},R)}function z(R,j){if(p!==R)return Ki(8,{from:j,to:R})}function B(R){return de(R)}function G(R){return B(Fe(k(R),{replace:!0}))}function oe(R){const j=R.matched[R.matched.length-1];if(j&&j.redirect){const{redirect:H}=j;let J=typeof H=="function"?H(R):H;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=k(J):{path:J},J.params={}),Fe({query:R.query,hash:R.hash,params:J.path!=null?{}:R.params},J)}}function de(R,j){const H=p=P(R),J=h.value,he=R.state,Ie=R.force,w=R.replace===!0,S=oe(H);if(S)return de(Fe(k(S),{state:typeof S=="object"?Fe({},he,S.state):he,force:Ie,replace:w}),j||H);const N=H;N.redirectedFrom=j;let U;return!Ie&&uv(s,J,H)&&(U=Ki(16,{to:N,from:J}),O(J,J,!0,!1)),(U?Promise.resolve(U):be(N,J)).catch(V=>Tn(V)?Tn(V,2)?V:Z(V):te(V,N,J)).then(V=>{if(V){if(Tn(V,2))return de(Fe({replace:w},k(V.to),{state:typeof V.to=="object"?Fe({},he,V.to.state):he,force:Ie}),j||N)}else V=Q(N,J,!0,w,he);return ve(N,J,V),V})}function Ze(R,j){const H=z(R,j);return H?Promise.reject(H):Promise.resolve()}function fe(R){const j=v.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(R):R()}function be(R,j){let H;const[J,he,Ie]=Gv(R,j);H=aa(J.reverse(),"beforeRouteLeave",R,j);for(const S of J)S.leaveGuards.forEach(N=>{H.push(Wn(N,R,j))});const w=Ze.bind(null,R,j);return H.push(w),M(H).then(()=>{H=[];for(const S of l.list())H.push(Wn(S,R,j));return H.push(w),M(H)}).then(()=>{H=aa(he,"beforeRouteUpdate",R,j);for(const S of he)S.updateGuards.forEach(N=>{H.push(Wn(N,R,j))});return H.push(w),M(H)}).then(()=>{H=[];for(const S of Ie)if(S.beforeEnter)if(sn(S.beforeEnter))for(const N of S.beforeEnter)H.push(Wn(N,R,j));else H.push(Wn(S.beforeEnter,R,j));return H.push(w),M(H)}).then(()=>(R.matched.forEach(S=>S.enterCallbacks={}),H=aa(Ie,"beforeRouteEnter",R,j,fe),H.push(w),M(H))).then(()=>{H=[];for(const S of u.list())H.push(Wn(S,R,j));return H.push(w),M(H)}).catch(S=>Tn(S,8)?S:Promise.reject(S))}function ve(R,j,H){f.list().forEach(J=>fe(()=>J(R,j,H)))}function Q(R,j,H,J,he){const Ie=z(R,j);if(Ie)return Ie;const w=j===Zn,S=zi?history.state:{};H&&(J||w?a.replace(R.fullPath,Fe({scroll:w&&S&&S.scroll},he)):a.push(R.fullPath,he)),h.value=R,O(R,j,H,w),Z()}let xe;function Me(){xe||(xe=a.listen((R,j,H)=>{if(!$.listening)return;const J=P(R),he=oe(J);if(he){de(Fe(he,{replace:!0}),J).catch(xr);return}p=J;const Ie=h.value;zi&&vv(ju(Ie.fullPath,H.delta),co()),be(J,Ie).catch(w=>Tn(w,12)?w:Tn(w,2)?(de(w.to,J).then(S=>{Tn(S,20)&&!H.delta&&H.type===Fr.pop&&a.go(-1,!1)}).catch(xr),Promise.reject()):(H.delta&&a.go(-H.delta,!1),te(w,J,Ie))).then(w=>{w=w||Q(J,Ie,!1),w&&(H.delta&&!Tn(w,8)?a.go(-H.delta,!1):H.type===Fr.pop&&Tn(w,20)&&a.go(-1,!1)),ve(J,Ie,w)}).catch(xr)}))}let ot=_r(),Ee=_r(),Ce;function te(R,j,H){Z(R);const J=Ee.list();return J.length?J.forEach(he=>he(R,j,H)):console.error(R),Promise.reject(R)}function mt(){return Ce&&h.value!==Zn?Promise.resolve():new Promise((R,j)=>{ot.add([R,j])})}function Z(R){return Ce||(Ce=!R,Me(),ot.list().forEach(([j,H])=>R?H(R):j()),ot.reset()),R}function O(R,j,H,J){const{scrollBehavior:he}=e;if(!zi||!he)return Promise.resolve();const Ie=!H&&yv(ju(R.fullPath,0))||(J||!H)&&history.state&&history.state.scroll||null;return Qf().then(()=>he(R,j,Ie)).then(w=>w&&gv(w)).catch(w=>te(w,R,j))}const F=R=>a.go(R);let A;const v=new Set,$={currentRoute:h,listening:!0,addRoute:b,removeRoute:x,clearRoutes:n.clearRoutes,hasRoute:C,getRoutes:T,resolve:P,options:e,push:B,replace:G,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:Ee.add,isReady:mt,install(R){const j=this;R.component("RouterLink",Vv),R.component("RouterView",Wv),R.config.globalProperties.$router=j,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(h)}),zi&&!A&&h.value===Zn&&(A=!0,B(a.location).catch(he=>{}));const H={};for(const he in Zn)Object.defineProperty(H,he,{get:()=>h.value[he],enumerable:!0});R.provide(uo,j),R.provide(ll,Kf(H)),R.provide(La,h);const J=R.unmount;v.add(R),R.unmount=function(){v.delete(R),v.size<1&&(p=Zn,xe&&xe(),xe=null,h.value=Zn,A=!1,Ce=!1),J()}}};function M(R){return R.reduce((j,H)=>j.then(()=>fe(H)),Promise.resolve())}return $}function Gv(e,n){const i=[],s=[],a=[],l=Math.max(n.matched.length,e.matched.length);for(let u=0;uWi(p,f))?s.push(f):i.push(f));const h=e.matched[u];h&&(n.matched.find(p=>Wi(p,h))||a.push(h))}return[i,s,a]}function Jv(){return en(uo)}function qr(e){return en(ll)}var Yv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka={exports:{}},nd={},tn={},Gi={},Wr={},Re={},Vr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class n{}e._CodeOrName=n,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class i extends n{constructor(k){if(super(),!e.IDENTIFIER.test(k))throw new Error("CodeGen: name must be a valid identifier");this.str=k}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=i;class s extends n{constructor(k){super(),this._items=typeof k=="string"?[k]:k}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const k=this._items[0];return k===""||k==='""'}get str(){var k;return(k=this._str)!==null&&k!==void 0?k:this._str=this._items.reduce((z,B)=>`${z}${B}`,"")}get names(){var k;return(k=this._names)!==null&&k!==void 0?k:this._names=this._items.reduce((z,B)=>(B instanceof i&&(z[B.str]=(z[B.str]||0)+1),z),{})}}e._Code=s,e.nil=new s("");function a(P,...k){const z=[P[0]];let B=0;for(;B{if(_.scopePath===void 0)throw new Error(`CodeGen: name "${_}" has no value`);return(0,n._)`${p}${_.scopePath}`})}scopeCode(p=this._values,m,_){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},m,_)}_reduceValues(p,m,_={},y){let b=n.nil;for(const x in p){const T=p[x];if(!T)continue;const C=_[x]=_[x]||new Map;T.forEach(P=>{if(C.has(P))return;C.set(P,s.Started);let k=m(P);if(k){const z=this.opts.es5?e.varKinds.var:e.varKinds.const;b=(0,n._)`${b}${z} ${P} = ${k};${this.opts._n}`}else if(k=y==null?void 0:y(P))b=(0,n._)`${b}${k}${this.opts._n}`;else throw new i(P);C.set(P,s.Completed)})}return b}}e.ValueScope=f})(Oa);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const n=Vr,i=Oa;var s=Vr;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return s.Name}});var a=Oa;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class l{optimizeNodes(){return this}optimizeNames(v,$){return this}}class u extends l{constructor(v,$,M){super(),this.varKind=v,this.name=$,this.rhs=M}render({es5:v,_n:$}){const M=v?i.varKinds.var:this.varKind,R=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${R};`+$}optimizeNames(v,$){if(v[this.name.str])return this.rhs&&(this.rhs=Me(this.rhs,v,$)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class f extends l{constructor(v,$,M){super(),this.lhs=v,this.rhs=$,this.sideEffects=M}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,$){if(!(this.lhs instanceof n.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=Me(this.rhs,v,$),this}get names(){const v=this.lhs instanceof n.Name?{}:{...this.lhs.names};return xe(v,this.rhs)}}class h extends f{constructor(v,$,M,R){super(v,M,R),this.op=$}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class p extends l{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class m extends l{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class _ extends l{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class y extends l{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,$){return this.code=Me(this.code,v,$),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class b extends l{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce(($,M)=>$+M.render(v),"")}optimizeNodes(){const{nodes:v}=this;let $=v.length;for(;$--;){const M=v[$].optimizeNodes();Array.isArray(M)?v.splice($,1,...M):M?v[$]=M:v.splice($,1)}return v.length>0?this:void 0}optimizeNames(v,$){const{nodes:M}=this;let R=M.length;for(;R--;){const j=M[R];j.optimizeNames(v,$)||(ot(v,j.names),M.splice(R,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((v,$)=>Q(v,$.names),{})}}class x extends b{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class T extends b{}class C extends x{}C.kind="else";class P extends x{constructor(v,$){super($),this.condition=v}render(v){let $=`if(${this.condition})`+super.render(v);return this.else&&($+="else "+this.else.render(v)),$}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let $=this.else;if($){const M=$.optimizeNodes();$=this.else=Array.isArray(M)?new C(M):M}if($)return v===!1?$ instanceof P?$:$.nodes:this.nodes.length?this:new P(Ee(v),$ instanceof P?[$]:$.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,$){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(v,$),!!(super.optimizeNames(v,$)||this.else))return this.condition=Me(this.condition,v,$),this}get names(){const v=super.names;return xe(v,this.condition),this.else&&Q(v,this.else.names),v}}P.kind="if";class k extends x{}k.kind="for";class z extends k{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,$){if(super.optimizeNames(v,$))return this.iteration=Me(this.iteration,v,$),this}get names(){return Q(super.names,this.iteration.names)}}class B extends k{constructor(v,$,M,R){super(),this.varKind=v,this.name=$,this.from=M,this.to=R}render(v){const $=v.es5?i.varKinds.var:this.varKind,{name:M,from:R,to:j}=this;return`for(${$} ${M}=${R}; ${M}<${j}; ${M}++)`+super.render(v)}get names(){const v=xe(super.names,this.from);return xe(v,this.to)}}class G extends k{constructor(v,$,M,R){super(),this.loop=v,this.varKind=$,this.name=M,this.iterable=R}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,$){if(super.optimizeNames(v,$))return this.iterable=Me(this.iterable,v,$),this}get names(){return Q(super.names,this.iterable.names)}}class oe extends x{constructor(v,$,M){super(),this.name=v,this.args=$,this.async=M}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}oe.kind="func";class de extends b{render(v){return"return "+super.render(v)}}de.kind="return";class Ze extends x{render(v){let $="try"+super.render(v);return this.catch&&($+=this.catch.render(v)),this.finally&&($+=this.finally.render(v)),$}optimizeNodes(){var v,$;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(v,$){var M,R;return super.optimizeNames(v,$),(M=this.catch)===null||M===void 0||M.optimizeNames(v,$),(R=this.finally)===null||R===void 0||R.optimizeNames(v,$),this}get names(){const v=super.names;return this.catch&&Q(v,this.catch.names),this.finally&&Q(v,this.finally.names),v}}class fe extends x{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}fe.kind="catch";class be extends x{render(v){return"finally"+super.render(v)}}be.kind="finally";class ve{constructor(v,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?` -`:""},this._extScope=v,this._scope=new i.Scope({parent:v}),this._nodes=[new T]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,$){const M=this._extScope.value(v,$);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(v,$){return this._extScope.getValue(v,$)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,$,M,R){const j=this._scope.toName($);return M!==void 0&&R&&(this._constants[j.str]=M),this._leafNode(new u(v,j,M)),j}const(v,$,M){return this._def(i.varKinds.const,v,$,M)}let(v,$,M){return this._def(i.varKinds.let,v,$,M)}var(v,$,M){return this._def(i.varKinds.var,v,$,M)}assign(v,$,M){return this._leafNode(new f(v,$,M))}add(v,$){return this._leafNode(new h(v,e.operators.ADD,$))}code(v){return typeof v=="function"?v():v!==n.nil&&this._leafNode(new y(v)),this}object(...v){const $=["{"];for(const[M,R]of v)$.length>1&&$.push(","),$.push(M),(M!==R||this.opts.es5)&&($.push(":"),(0,n.addCodeArg)($,R));return $.push("}"),new n._Code($)}if(v,$,M){if(this._blockNode(new P(v)),$&&M)this.code($).else().code(M).endIf();else if($)this.code($).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new P(v))}else(){return this._elseNode(new C)}endIf(){return this._endBlockNode(P,C)}_for(v,$){return this._blockNode(v),$&&this.code($).endFor(),this}for(v,$){return this._for(new z(v),$)}forRange(v,$,M,R,j=this.opts.es5?i.varKinds.var:i.varKinds.let){const H=this._scope.toName(v);return this._for(new B(j,H,$,M),()=>R(H))}forOf(v,$,M,R=i.varKinds.const){const j=this._scope.toName(v);if(this.opts.es5){const H=$ instanceof n.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,n._)`${H}.length`,J=>{this.var(j,(0,n._)`${H}[${J}]`),M(j)})}return this._for(new G("of",R,j,$),()=>M(j))}forIn(v,$,M,R=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,n._)`Object.keys(${$})`,M);const j=this._scope.toName(v);return this._for(new G("in",R,j,$),()=>M(j))}endFor(){return this._endBlockNode(k)}label(v){return this._leafNode(new p(v))}break(v){return this._leafNode(new m(v))}return(v){const $=new de;if(this._blockNode($),this.code(v),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(de)}try(v,$,M){if(!$&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const R=new Ze;if(this._blockNode(R),this.code(v),$){const j=this.name("e");this._currNode=R.catch=new fe(j),$(j)}return M&&(this._currNode=R.finally=new be,this.code(M)),this._endBlockNode(fe,be)}throw(v){return this._leafNode(new _(v))}block(v,$){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock($),this}endBlock(v){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-$;if(M<0||v!==void 0&&M!==v)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${v} expected`);return this._nodes.length=$,this}func(v,$=n.nil,M,R){return this._blockNode(new oe(v,$,M)),R&&this.code(R).endFunc(),this}endFunc(){return this._endBlockNode(oe)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,$){const M=this._currNode;if(M instanceof v||$&&M instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${v.kind}/${$.kind}`:v.kind}"`)}_elseNode(v){const $=this._currNode;if(!($ instanceof P))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const $=this._nodes;$[$.length-1]=v}}e.CodeGen=ve;function Q(A,v){for(const $ in v)A[$]=(A[$]||0)+(v[$]||0);return A}function xe(A,v){return v instanceof n._CodeOrName?Q(A,v.names):A}function Me(A,v,$){if(A instanceof n.Name)return M(A);if(!R(A))return A;return new n._Code(A._items.reduce((j,H)=>(H instanceof n.Name&&(H=M(H)),H instanceof n._Code?j.push(...H._items):j.push(H),j),[]));function M(j){const H=$[j.str];return H===void 0||v[j.str]!==1?j:(delete v[j.str],H)}function R(j){return j instanceof n._Code&&j._items.some(H=>H instanceof n.Name&&v[H.str]===1&&$[H.str]!==void 0)}}function ot(A,v){for(const $ in v)A[$]=(A[$]||0)-(v[$]||0)}function Ee(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:(0,n._)`!${F(A)}`}e.not=Ee;const Ce=O(e.operators.AND);function te(...A){return A.reduce(Ce)}e.and=te;const mt=O(e.operators.OR);function Z(...A){return A.reduce(mt)}e.or=Z;function O(A){return(v,$)=>v===n.nil?$:$===n.nil?v:(0,n._)`${F(v)} ${A} ${F($)}`}function F(A){return A instanceof n.Name?A:(0,n._)`(${A})`}})(Re);var re={};Object.defineProperty(re,"__esModule",{value:!0});re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const Ue=Re,Xv=Vr;function Qv(e){const n={};for(const i of e)n[i]=!0;return n}re.toHash=Qv;function ey(e,n){return typeof n=="boolean"?n:Object.keys(n).length===0?!0:(id(e,n),!rd(n,e.self.RULES.all))}re.alwaysValidSchema=ey;function id(e,n=e.schema){const{opts:i,self:s}=e;if(!i.strictSchema||typeof n=="boolean")return;const a=s.RULES.keywords;for(const l in n)a[l]||ad(e,`unknown keyword: "${l}"`)}re.checkUnknownRules=id;function rd(e,n){if(typeof e=="boolean")return!e;for(const i in e)if(n[i])return!0;return!1}re.schemaHasRules=rd;function ty(e,n){if(typeof e=="boolean")return!e;for(const i in e)if(i!=="$ref"&&n.all[i])return!0;return!1}re.schemaHasRulesButRef=ty;function ny({topSchemaRef:e,schemaPath:n},i,s,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,Ue._)`${i}`}return(0,Ue._)`${e}${n}${(0,Ue.getProperty)(s)}`}re.schemaRefOrVal=ny;function iy(e){return sd(decodeURIComponent(e))}re.unescapeFragment=iy;function ry(e){return encodeURIComponent(cl(e))}re.escapeFragment=ry;function cl(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=cl;function sd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=sd;function sy(e,n){if(Array.isArray(e))for(const i of e)n(i);else n(e)}re.eachItem=sy;function Qu({mergeNames:e,mergeToName:n,mergeValues:i,resultToName:s}){return(a,l,u,f)=>{const h=u===void 0?l:u instanceof Ue.Name?(l instanceof Ue.Name?e(a,l,u):n(a,l,u),u):l instanceof Ue.Name?(n(a,u,l),l):i(l,u);return f===Ue.Name&&!(h instanceof Ue.Name)?s(a,h):h}}re.mergeEvaluated={props:Qu({mergeNames:(e,n,i)=>e.if((0,Ue._)`${i} !== true && ${n} !== undefined`,()=>{e.if((0,Ue._)`${n} === true`,()=>e.assign(i,!0),()=>e.assign(i,(0,Ue._)`${i} || {}`).code((0,Ue._)`Object.assign(${i}, ${n})`))}),mergeToName:(e,n,i)=>e.if((0,Ue._)`${i} !== true`,()=>{n===!0?e.assign(i,!0):(e.assign(i,(0,Ue._)`${i} || {}`),ul(e,i,n))}),mergeValues:(e,n)=>e===!0?!0:{...e,...n},resultToName:od}),items:Qu({mergeNames:(e,n,i)=>e.if((0,Ue._)`${i} !== true && ${n} !== undefined`,()=>e.assign(i,(0,Ue._)`${n} === true ? true : ${i} > ${n} ? ${i} : ${n}`)),mergeToName:(e,n,i)=>e.if((0,Ue._)`${i} !== true`,()=>e.assign(i,n===!0?!0:(0,Ue._)`${i} > ${n} ? ${i} : ${n}`)),mergeValues:(e,n)=>e===!0?!0:Math.max(e,n),resultToName:(e,n)=>e.var("items",n)})};function od(e,n){if(n===!0)return e.var("props",!0);const i=e.var("props",(0,Ue._)`{}`);return n!==void 0&&ul(e,i,n),i}re.evaluatedPropsToName=od;function ul(e,n,i){Object.keys(i).forEach(s=>e.assign((0,Ue._)`${n}${(0,Ue.getProperty)(s)}`,!0))}re.setEvaluated=ul;const ef={};function oy(e,n){return e.scopeValue("func",{ref:n,code:ef[n.code]||(ef[n.code]=new Xv._Code(n.code))})}re.useFunc=oy;var Ra;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ra||(re.Type=Ra={}));function ay(e,n,i){if(e instanceof Ue.Name){const s=n===Ra.Num;return i?s?(0,Ue._)`"[" + ${e} + "]"`:(0,Ue._)`"['" + ${e} + "']"`:s?(0,Ue._)`"/" + ${e}`:(0,Ue._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,Ue.getProperty)(e).toString():"/"+cl(e)}re.getErrorPath=ay;function ad(e,n,i=e.opts.strictSchema){if(i){if(n=`strict mode: ${n}`,i===!0)throw new Error(n);e.self.logger.warn(n)}}re.checkStrictMode=ad;var yn={};Object.defineProperty(yn,"__esModule",{value:!0});const $t=Re,ly={data:new $t.Name("data"),valCxt:new $t.Name("valCxt"),instancePath:new $t.Name("instancePath"),parentData:new $t.Name("parentData"),parentDataProperty:new $t.Name("parentDataProperty"),rootData:new $t.Name("rootData"),dynamicAnchors:new $t.Name("dynamicAnchors"),vErrors:new $t.Name("vErrors"),errors:new $t.Name("errors"),this:new $t.Name("this"),self:new $t.Name("self"),scope:new $t.Name("scope"),json:new $t.Name("json"),jsonPos:new $t.Name("jsonPos"),jsonLen:new $t.Name("jsonLen"),jsonPart:new $t.Name("jsonPart")};yn.default=ly;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const n=Re,i=re,s=yn;e.keywordError={message:({keyword:C})=>(0,n.str)`must pass "${C}" keyword validation`},e.keyword$DataError={message:({keyword:C,schemaType:P})=>P?(0,n.str)`"${C}" keyword must be ${P} ($data)`:(0,n.str)`"${C}" keyword is invalid ($data)`};function a(C,P=e.keywordError,k,z){const{it:B}=C,{gen:G,compositeRule:oe,allErrors:de}=B,Ze=_(C,P,k);z??(oe||de)?h(G,Ze):p(B,(0,n._)`[${Ze}]`)}e.reportError=a;function l(C,P=e.keywordError,k){const{it:z}=C,{gen:B,compositeRule:G,allErrors:oe}=z,de=_(C,P,k);h(B,de),G||oe||p(z,s.default.vErrors)}e.reportExtraError=l;function u(C,P){C.assign(s.default.errors,P),C.if((0,n._)`${s.default.vErrors} !== null`,()=>C.if(P,()=>C.assign((0,n._)`${s.default.vErrors}.length`,P),()=>C.assign(s.default.vErrors,null)))}e.resetErrorsCount=u;function f({gen:C,keyword:P,schemaValue:k,data:z,errsCount:B,it:G}){if(B===void 0)throw new Error("ajv implementation error");const oe=C.name("err");C.forRange("i",B,s.default.errors,de=>{C.const(oe,(0,n._)`${s.default.vErrors}[${de}]`),C.if((0,n._)`${oe}.instancePath === undefined`,()=>C.assign((0,n._)`${oe}.instancePath`,(0,n.strConcat)(s.default.instancePath,G.errorPath))),C.assign((0,n._)`${oe}.schemaPath`,(0,n.str)`${G.errSchemaPath}/${P}`),G.opts.verbose&&(C.assign((0,n._)`${oe}.schema`,k),C.assign((0,n._)`${oe}.data`,z))})}e.extendErrors=f;function h(C,P){const k=C.const("err",P);C.if((0,n._)`${s.default.vErrors} === null`,()=>C.assign(s.default.vErrors,(0,n._)`[${k}]`),(0,n._)`${s.default.vErrors}.push(${k})`),C.code((0,n._)`${s.default.errors}++`)}function p(C,P){const{gen:k,validateName:z,schemaEnv:B}=C;B.$async?k.throw((0,n._)`new ${C.ValidationError}(${P})`):(k.assign((0,n._)`${z}.errors`,P),k.return(!1))}const m={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function _(C,P,k){const{createErrors:z}=C.it;return z===!1?(0,n._)`{}`:y(C,P,k)}function y(C,P,k={}){const{gen:z,it:B}=C,G=[b(B,k),x(C,k)];return T(C,P,G),z.object(...G)}function b({errorPath:C},{instancePath:P}){const k=P?(0,n.str)`${C}${(0,i.getErrorPath)(P,i.Type.Str)}`:C;return[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,k)]}function x({keyword:C,it:{errSchemaPath:P}},{schemaPath:k,parentSchema:z}){let B=z?P:(0,n.str)`${P}/${C}`;return k&&(B=(0,n.str)`${B}${(0,i.getErrorPath)(k,i.Type.Str)}`),[m.schemaPath,B]}function T(C,{params:P,message:k},z){const{keyword:B,data:G,schemaValue:oe,it:de}=C,{opts:Ze,propertyName:fe,topSchemaRef:be,schemaPath:ve}=de;z.push([m.keyword,B],[m.params,typeof P=="function"?P(C):P||(0,n._)`{}`]),Ze.messages&&z.push([m.message,typeof k=="function"?k(C):k]),Ze.verbose&&z.push([m.schema,oe],[m.parentSchema,(0,n._)`${be}${ve}`],[s.default.data,G]),fe&&z.push([m.propertyName,fe])}})(Wr);Object.defineProperty(Gi,"__esModule",{value:!0});Gi.boolOrEmptySchema=Gi.topBoolOrEmptySchema=void 0;const cy=Wr,uy=Re,fy=yn,hy={message:"boolean schema is false"};function dy(e){const{gen:n,schema:i,validateName:s}=e;i===!1?ld(e,!1):typeof i=="object"&&i.$async===!0?n.return(fy.default.data):(n.assign((0,uy._)`${s}.errors`,null),n.return(!0))}Gi.topBoolOrEmptySchema=dy;function py(e,n){const{gen:i,schema:s}=e;s===!1?(i.var(n,!1),ld(e)):i.var(n,!0)}Gi.boolOrEmptySchema=py;function ld(e,n){const{gen:i,data:s}=e,a={gen:i,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,cy.reportError)(a,hy,void 0,n)}var lt={},wi={};Object.defineProperty(wi,"__esModule",{value:!0});wi.getRules=wi.isJSONType=void 0;const my=["string","number","integer","boolean","null","object","array"],_y=new Set(my);function gy(e){return typeof e=="string"&&_y.has(e)}wi.isJSONType=gy;function vy(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}wi.getRules=vy;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.shouldUseRule=On.shouldUseGroup=On.schemaHasRulesForType=void 0;function yy({schema:e,self:n},i){const s=n.RULES.types[i];return s&&s!==!0&&cd(e,s)}On.schemaHasRulesForType=yy;function cd(e,n){return n.rules.some(i=>ud(e,i))}On.shouldUseGroup=cd;function ud(e,n){var i;return e[n.keyword]!==void 0||((i=n.definition.implements)===null||i===void 0?void 0:i.some(s=>e[s]!==void 0))}On.shouldUseRule=ud;Object.defineProperty(lt,"__esModule",{value:!0});lt.reportTypeError=lt.checkDataTypes=lt.checkDataType=lt.coerceAndCheckDataType=lt.getJSONTypes=lt.getSchemaTypes=lt.DataType=void 0;const wy=wi,by=On,Py=Wr,Se=Re,fd=re;var Ui;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ui||(lt.DataType=Ui={}));function $y(e){const n=hd(e.type);if(n.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&n.push("null")}return n}lt.getSchemaTypes=$y;function hd(e){const n=Array.isArray(e)?e:e?[e]:[];if(n.every(wy.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}lt.getJSONTypes=hd;function Sy(e,n){const{gen:i,data:s,opts:a}=e,l=Ey(n,a.coerceTypes),u=n.length>0&&!(l.length===0&&n.length===1&&(0,by.schemaHasRulesForType)(e,n[0]));if(u){const f=fl(n,s,a.strictNumbers,Ui.Wrong);i.if(f,()=>{l.length?Ty(e,n,l):hl(e)})}return u}lt.coerceAndCheckDataType=Sy;const dd=new Set(["string","number","integer","boolean","null"]);function Ey(e,n){return n?e.filter(i=>dd.has(i)||n==="array"&&i==="array"):[]}function Ty(e,n,i){const{gen:s,data:a,opts:l}=e,u=s.let("dataType",(0,Se._)`typeof ${a}`),f=s.let("coerced",(0,Se._)`undefined`);l.coerceTypes==="array"&&s.if((0,Se._)`${u} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>s.assign(a,(0,Se._)`${a}[0]`).assign(u,(0,Se._)`typeof ${a}`).if(fl(n,a,l.strictNumbers),()=>s.assign(f,a))),s.if((0,Se._)`${f} !== undefined`);for(const p of i)(dd.has(p)||p==="array"&&l.coerceTypes==="array")&&h(p);s.else(),hl(e),s.endIf(),s.if((0,Se._)`${f} !== undefined`,()=>{s.assign(a,f),xy(e,f)});function h(p){switch(p){case"string":s.elseIf((0,Se._)`${u} == "number" || ${u} == "boolean"`).assign(f,(0,Se._)`"" + ${a}`).elseIf((0,Se._)`${a} === null`).assign(f,(0,Se._)`""`);return;case"number":s.elseIf((0,Se._)`${u} == "boolean" || ${a} === null + */const zi=typeof document<"u";function Vh(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Vh(e.default)}const Fe=Object.assign;function sa(e,n){const i={};for(const s in n){const a=n[s];i[s]=sn(a)?a.map(e):e(a)}return i}const xr=()=>{},sn=Array.isArray,Hh=/#/g,Kg=/&/g,Gg=/\//g,Jg=/=/g,Yg=/\?/g,Uh=/\+/g,Xg=/%5B/g,Qg=/%5D/g,qh=/%5E/g,ev=/%60/g,Wh=/%7B/g,tv=/%7C/g,Kh=/%7D/g,nv=/%20/g;function al(e){return encodeURI(""+e).replace(tv,"|").replace(Xg,"[").replace(Qg,"]")}function iv(e){return al(e).replace(Wh,"{").replace(Kh,"}").replace(qh,"^")}function xa(e){return al(e).replace(Uh,"%2B").replace(nv,"+").replace(Hh,"%23").replace(Kg,"%26").replace(ev,"`").replace(Wh,"{").replace(Kh,"}").replace(qh,"^")}function rv(e){return xa(e).replace(Jg,"%3D")}function sv(e){return al(e).replace(Hh,"%23").replace(Yg,"%3F")}function ov(e){return e==null?"":sv(e).replace(Gg,"%2F")}function Zr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const av=/\/$/,lv=e=>e.replace(av,"");function oa(e,n,i="/"){let s,a={},l="",u="";const f=n.indexOf("#");let h=n.indexOf("?");return f=0&&(h=-1),h>-1&&(s=n.slice(0,h),l=n.slice(h+1,f>-1?f:n.length),a=e(l)),f>-1&&(s=s||n.slice(0,f),u=n.slice(f,n.length)),s=hv(s??n,i),{fullPath:s+(l&&"?")+l+u,path:s,query:a,hash:Zr(u)}}function cv(e,n){const i=n.query?e(n.query):"";return n.path+(i&&"?")+i+(n.hash||"")}function zu(e,n){return!n||!e.toLowerCase().startsWith(n.toLowerCase())?e:e.slice(n.length)||"/"}function uv(e,n,i){const s=n.matched.length-1,a=i.matched.length-1;return s>-1&&s===a&&Wi(n.matched[s],i.matched[a])&&Gh(n.params,i.params)&&e(n.query)===e(i.query)&&n.hash===i.hash}function Wi(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function Gh(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const i in e)if(!fv(e[i],n[i]))return!1;return!0}function fv(e,n){return sn(e)?Du(e,n):sn(n)?Du(n,e):e===n}function Du(e,n){return sn(n)?e.length===n.length&&e.every((i,s)=>i===n[s]):e.length===1&&e[0]===n}function hv(e,n){if(e.startsWith("/"))return e;if(!e)return n;const i=n.split("/"),s=e.split("/"),a=s[s.length-1];(a===".."||a===".")&&s.push("");let l=i.length-1,u,f;for(u=0;u1&&l--;else break;return i.slice(0,l).join("/")+"/"+s.slice(u).join("/")}const Zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Fr;(function(e){e.pop="pop",e.push="push"})(Fr||(Fr={}));var Cr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cr||(Cr={}));function dv(e){if(!e)if(zi){const n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lv(e)}const pv=/^[^#]+#/;function mv(e,n){return e.replace(pv,"#")+n}function _v(e,n){const i=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:n.behavior,left:s.left-i.left-(n.left||0),top:s.top-i.top-(n.top||0)}}const lo=()=>({left:window.scrollX,top:window.scrollY});function gv(e){let n;if("el"in e){const i=e.el,s=typeof i=="string"&&i.startsWith("#"),a=typeof i=="string"?s?document.getElementById(i.slice(1)):document.querySelector(i):i;if(!a)return;n=_v(a,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.scrollX,n.top!=null?n.top:window.scrollY)}function ju(e,n){return(history.state?history.state.position-n:-1)+e}const Ca=new Map;function vv(e,n){Ca.set(e,n)}function yv(e){const n=Ca.get(e);return Ca.delete(e),n}let wv=()=>location.protocol+"//"+location.host;function Jh(e,n){const{pathname:i,search:s,hash:a}=n,l=e.indexOf("#");if(l>-1){let f=a.includes(e.slice(l))?e.slice(l).length:1,h=a.slice(f);return h[0]!=="/"&&(h="/"+h),zu(h,"")}return zu(i,e)+s+a}function bv(e,n,i,s){let a=[],l=[],u=null;const f=({state:y})=>{const b=Jh(e,location),x=i.value,T=n.value;let C=0;if(y){if(i.value=b,n.value=y,u&&u===x){u=null;return}C=T?y.position-T.position:0}else s(b);a.forEach(P=>{P(i.value,x,{delta:C,type:Fr.pop,direction:C?C>0?Cr.forward:Cr.back:Cr.unknown})})};function h(){u=i.value}function p(y){a.push(y);const b=()=>{const x=a.indexOf(y);x>-1&&a.splice(x,1)};return l.push(b),b}function m(){const{history:y}=window;y.state&&y.replaceState(Fe({},y.state,{scroll:lo()}),"")}function _(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",f),window.addEventListener("beforeunload",m,{passive:!0}),{pauseListeners:h,listen:p,destroy:_}}function Bu(e,n,i,s=!1,a=!1){return{back:e,current:n,forward:i,replaced:s,position:window.history.length,scroll:a?lo():null}}function Pv(e){const{history:n,location:i}=window,s={value:Jh(e,i)},a={value:n.state};a.value||l(s.value,{back:null,current:s.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function l(h,p,m){const _=e.indexOf("#"),y=_>-1?(i.host&&document.querySelector("base")?e:e.slice(_))+h:wv()+e+h;try{n[m?"replaceState":"pushState"](p,"",y),a.value=p}catch(b){console.error(b),i[m?"replace":"assign"](y)}}function u(h,p){const m=Fe({},n.state,Bu(a.value.back,h,a.value.forward,!0),p,{position:a.value.position});l(h,m,!0),s.value=h}function f(h,p){const m=Fe({},a.value,n.state,{forward:h,scroll:lo()});l(m.current,m,!0);const _=Fe({},Bu(s.value,h,null),{position:m.position+1},p);l(h,_,!1),s.value=h}return{location:s,state:a,push:f,replace:u}}function $v(e){e=dv(e);const n=Pv(e),i=bv(e,n.state,n.location,n.replace);function s(l,u=!0){u||i.pauseListeners(),history.go(l)}const a=Fe({location:"",base:e,go:s,createHref:mv.bind(null,e)},n,i);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>n.state.value}),a}function Sv(e){return typeof e=="string"||e&&typeof e=="object"}function Yh(e){return typeof e=="string"||typeof e=="symbol"}const Xh=Symbol("");var Zu;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Zu||(Zu={}));function Ki(e,n){return Fe(new Error,{type:e,[Xh]:!0},n)}function Tn(e,n){return e instanceof Error&&Xh in e&&(n==null||!!(e.type&n))}const Fu="[^/]+?",Ev={sensitive:!1,strict:!1,start:!0,end:!0},Tv=/[.+*?^${}()[\]/\\]/g;function xv(e,n){const i=Fe({},Ev,n),s=[];let a=i.start?"^":"";const l=[];for(const p of e){const m=p.length?[]:[90];i.strict&&!p.length&&(a+="/");for(let _=0;_n.length?n.length===1&&n[0]===80?1:-1:0}function Qh(e,n){let i=0;const s=e.score,a=n.score;for(;i0&&n[n.length-1]<0}const Lv={type:0,value:""},kv=/[a-zA-Z0-9_]/;function Ov(e){if(!e)return[[]];if(e==="/")return[[Lv]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(b){throw new Error(`ERR (${i})/"${p}": ${b}`)}let i=0,s=i;const a=[];let l;function u(){l&&a.push(l),l=[]}let f=0,h,p="",m="";function _(){p&&(i===0?l.push({type:0,value:p}):i===1||i===2||i===3?(l.length>1&&(h==="*"||h==="+")&&n(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:p,regexp:m,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):n("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f{u(z)}:xr}function u(_){if(Yh(_)){const y=s.get(_);y&&(s.delete(_),i.splice(i.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=i.indexOf(_);y>-1&&(i.splice(y,1),_.record.name&&s.delete(_.record.name),_.children.forEach(u),_.alias.forEach(u))}}function f(){return i}function h(_){const y=zv(_,i);i.splice(y,0,_),_.record.name&&!Uu(_)&&s.set(_.record.name,_)}function p(_,y){let b,x={},T,C;if("name"in _&&_.name){if(b=s.get(_.name),!b)throw Ki(1,{location:_});C=b.record.name,x=Fe(Hu(y.params,b.keys.filter(z=>!z.optional).concat(b.parent?b.parent.keys.filter(z=>z.optional):[]).map(z=>z.name)),_.params&&Hu(_.params,b.keys.map(z=>z.name))),T=b.stringify(x)}else if(_.path!=null)T=_.path,b=i.find(z=>z.re.test(T)),b&&(x=b.parse(T),C=b.record.name);else{if(b=y.name?s.get(y.name):i.find(z=>z.re.test(y.path)),!b)throw Ki(1,{location:_,currentLocation:y});C=b.record.name,x=Fe({},y.params,_.params),T=b.stringify(x)}const P=[];let k=b;for(;k;)P.unshift(k.record),k=k.parent;return{name:C,path:T,params:x,matched:P,meta:Nv(P)}}e.forEach(_=>l(_));function m(){i.length=0,s.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:m,getRoutes:f,getRecordMatcher:a}}function Hu(e,n){const i={};for(const s of n)s in e&&(i[s]=e[s]);return i}function Iv(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Av(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},mods:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Av(e){const n={},i=e.props||!1;if("component"in e)n.default=i;else for(const s in e.components)n[s]=typeof i=="object"?i[s]:i;return n}function Uu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Nv(e){return e.reduce((n,i)=>Fe(n,i.meta),{})}function qu(e,n){const i={};for(const s in e)i[s]=s in n?n[s]:e[s];return i}function zv(e,n){let i=0,s=n.length;for(;i!==s;){const l=i+s>>1;Qh(e,n[l])<0?s=l:i=l+1}const a=Dv(e);return a&&(s=n.lastIndexOf(a,s-1)),s}function Dv(e){let n=e;for(;n=n.parent;)if(ed(n)&&Qh(e,n)===0)return n}function ed({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jv(e){const n={};if(e===""||e==="?")return n;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;al&&xa(l)):[s&&xa(s)]).forEach(l=>{l!==void 0&&(n+=(n.length?"&":"")+i,l!=null&&(n+="="+l))})}return n}function Bv(e){const n={};for(const i in e){const s=e[i];s!==void 0&&(n[i]=sn(s)?s.map(a=>a==null?null:""+a):s==null?s:""+s)}return n}const Zv=Symbol(""),Ku=Symbol(""),co=Symbol(""),ll=Symbol(""),La=Symbol("");function _r(){let e=[];function n(s){return e.push(s),()=>{const a=e.indexOf(s);a>-1&&e.splice(a,1)}}function i(){e=[]}return{add:n,list:()=>e.slice(),reset:i}}function Wn(e,n,i,s,a,l=u=>u()){const u=s&&(s.enterCallbacks[a]=s.enterCallbacks[a]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Ki(4,{from:i,to:n})):y instanceof Error?h(y):Sv(y)?h(Ki(2,{from:n,to:y})):(u&&s.enterCallbacks[a]===u&&typeof y=="function"&&u.push(y),f())},m=l(()=>e.call(s&&s.instances[a],n,i,p));let _=Promise.resolve(m);e.length<3&&(_=_.then(p)),_.catch(y=>h(y))})}function aa(e,n,i,s,a=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(n!=="beforeRouteEnter"&&!u.instances[f]))if(Vh(h)){const m=(h.__vccOpts||h)[n];m&&l.push(Wn(m,i,s,u,f,a))}else{let p=h();l.push(()=>p.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const _=Wg(m)?m.default:m;u.mods[f]=m,u.components[f]=_;const b=(_.__vccOpts||_)[n];return b&&Wn(b,i,s,u,f,a)()}))}}return l}function Gu(e){const n=en(co),i=en(ll),s=ut(()=>{const h=ke(e.to);return n.resolve(h)}),a=ut(()=>{const{matched:h}=s.value,{length:p}=h,m=h[p-1],_=i.matched;if(!m||!_.length)return-1;const y=_.findIndex(Wi.bind(null,m));if(y>-1)return y;const b=Ju(h[p-2]);return p>1&&Ju(m)===b&&_[_.length-1].path!==b?_.findIndex(Wi.bind(null,h[p-2])):y}),l=ut(()=>a.value>-1&&Uv(i.params,s.value.params)),u=ut(()=>a.value>-1&&a.value===i.matched.length-1&&Gh(i.params,s.value.params));function f(h={}){return Hv(h)?n[ke(e.replace)?"replace":"push"](ke(e.to)).catch(xr):Promise.resolve()}return{route:s,href:ut(()=>s.value.href),isActive:l,isExactActive:u,navigate:f}}const Fv=It({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Gu,setup(e,{slots:n}){const i=eo(Gu(e)),{options:s}=en(co),a=ut(()=>({[Yu(e.activeClass,s.linkActiveClass,"router-link-active")]:i.isActive,[Yu(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:i.isExactActive}));return()=>{const l=n.default&&n.default(i);return e.custom?l:ol("a",{"aria-current":i.isExactActive?e.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:a.value},l)}}}),Vv=Fv;function Hv(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function Uv(e,n){for(const i in n){const s=n[i],a=e[i];if(typeof s=="string"){if(s!==a)return!1}else if(!sn(a)||a.length!==s.length||s.some((l,u)=>l!==a[u]))return!1}return!0}function Ju(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yu=(e,n,i)=>e??n??i,qv=It({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:i}){const s=en(La),a=ut(()=>e.route||s.value),l=en(Ku,0),u=ut(()=>{let p=ke(l);const{matched:m}=a.value;let _;for(;(_=m[p])&&!_.components;)p++;return p}),f=ut(()=>a.value.matched[u.value]);ks(Ku,ut(()=>u.value+1)),ks(Zv,f),ks(La,a);const h=it();return gi(()=>[h.value,f.value,e.name],([p,m,_],[y,b,x])=>{m&&(m.instances[_]=p,b&&b!==m&&p&&p===y&&(m.leaveGuards.size||(m.leaveGuards=b.leaveGuards),m.updateGuards.size||(m.updateGuards=b.updateGuards))),p&&m&&(!b||!Wi(m,b)||!y)&&(m.enterCallbacks[_]||[]).forEach(T=>T(p))},{flush:"post"}),()=>{const p=a.value,m=e.name,_=f.value,y=_&&_.components[m];if(!y)return Xu(i.default,{Component:y,route:p});const b=_.props[m],x=b?b===!0?p.params:typeof b=="function"?b(p):b:null,C=ol(y,Fe({},x,n,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(_.instances[m]=null)},ref:h}));return Xu(i.default,{Component:C,route:p})||C}}});function Xu(e,n){if(!e)return null;const i=e(n);return i.length===1?i[0]:i}const Wv=qv;function Kv(e){const n=Mv(e.routes,e),i=e.parseQuery||jv,s=e.stringifyQuery||Wu,a=e.history,l=_r(),u=_r(),f=_r(),h=Qm(Zn);let p=Zn;zi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=sa.bind(null,R=>""+R),_=sa.bind(null,ov),y=sa.bind(null,Zr);function b(R,j){let H,J;return Yh(R)?(H=n.getRecordMatcher(R),J=j):J=R,n.addRoute(J,H)}function x(R){const j=n.getRecordMatcher(R);j&&n.removeRoute(j)}function T(){return n.getRoutes().map(R=>R.record)}function C(R){return!!n.getRecordMatcher(R)}function P(R,j){if(j=Fe({},j||h.value),typeof R=="string"){const S=oa(i,R,j.path),N=n.resolve({path:S.path},j),U=a.createHref(S.fullPath);return Fe(S,N,{params:y(N.params),hash:Zr(S.hash),redirectedFrom:void 0,href:U})}let H;if(R.path!=null)H=Fe({},R,{path:oa(i,R.path,j.path).path});else{const S=Fe({},R.params);for(const N in S)S[N]==null&&delete S[N];H=Fe({},R,{params:_(S)}),j.params=_(j.params)}const J=n.resolve(H,j),he=R.hash||"";J.params=m(y(J.params));const Ie=cv(s,Fe({},R,{hash:iv(he),path:J.path})),w=a.createHref(Ie);return Fe({fullPath:Ie,hash:he,query:s===Wu?Bv(R.query):R.query||{}},J,{redirectedFrom:void 0,href:w})}function k(R){return typeof R=="string"?oa(i,R,h.value.path):Fe({},R)}function z(R,j){if(p!==R)return Ki(8,{from:j,to:R})}function B(R){return de(R)}function G(R){return B(Fe(k(R),{replace:!0}))}function oe(R){const j=R.matched[R.matched.length-1];if(j&&j.redirect){const{redirect:H}=j;let J=typeof H=="function"?H(R):H;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=k(J):{path:J},J.params={}),Fe({query:R.query,hash:R.hash,params:J.path!=null?{}:R.params},J)}}function de(R,j){const H=p=P(R),J=h.value,he=R.state,Ie=R.force,w=R.replace===!0,S=oe(H);if(S)return de(Fe(k(S),{state:typeof S=="object"?Fe({},he,S.state):he,force:Ie,replace:w}),j||H);const N=H;N.redirectedFrom=j;let U;return!Ie&&uv(s,J,H)&&(U=Ki(16,{to:N,from:J}),O(J,J,!0,!1)),(U?Promise.resolve(U):be(N,J)).catch(V=>Tn(V)?Tn(V,2)?V:Z(V):te(V,N,J)).then(V=>{if(V){if(Tn(V,2))return de(Fe({replace:w},k(V.to),{state:typeof V.to=="object"?Fe({},he,V.to.state):he,force:Ie}),j||N)}else V=Q(N,J,!0,w,he);return ve(N,J,V),V})}function Ze(R,j){const H=z(R,j);return H?Promise.reject(H):Promise.resolve()}function fe(R){const j=v.values().next().value;return j&&typeof j.runWithContext=="function"?j.runWithContext(R):R()}function be(R,j){let H;const[J,he,Ie]=Gv(R,j);H=aa(J.reverse(),"beforeRouteLeave",R,j);for(const S of J)S.leaveGuards.forEach(N=>{H.push(Wn(N,R,j))});const w=Ze.bind(null,R,j);return H.push(w),M(H).then(()=>{H=[];for(const S of l.list())H.push(Wn(S,R,j));return H.push(w),M(H)}).then(()=>{H=aa(he,"beforeRouteUpdate",R,j);for(const S of he)S.updateGuards.forEach(N=>{H.push(Wn(N,R,j))});return H.push(w),M(H)}).then(()=>{H=[];for(const S of Ie)if(S.beforeEnter)if(sn(S.beforeEnter))for(const N of S.beforeEnter)H.push(Wn(N,R,j));else H.push(Wn(S.beforeEnter,R,j));return H.push(w),M(H)}).then(()=>(R.matched.forEach(S=>S.enterCallbacks={}),H=aa(Ie,"beforeRouteEnter",R,j,fe),H.push(w),M(H))).then(()=>{H=[];for(const S of u.list())H.push(Wn(S,R,j));return H.push(w),M(H)}).catch(S=>Tn(S,8)?S:Promise.reject(S))}function ve(R,j,H){f.list().forEach(J=>fe(()=>J(R,j,H)))}function Q(R,j,H,J,he){const Ie=z(R,j);if(Ie)return Ie;const w=j===Zn,S=zi?history.state:{};H&&(J||w?a.replace(R.fullPath,Fe({scroll:w&&S&&S.scroll},he)):a.push(R.fullPath,he)),h.value=R,O(R,j,H,w),Z()}let xe;function Me(){xe||(xe=a.listen((R,j,H)=>{if(!$.listening)return;const J=P(R),he=oe(J);if(he){de(Fe(he,{replace:!0}),J).catch(xr);return}p=J;const Ie=h.value;zi&&vv(ju(Ie.fullPath,H.delta),lo()),be(J,Ie).catch(w=>Tn(w,12)?w:Tn(w,2)?(de(w.to,J).then(S=>{Tn(S,20)&&!H.delta&&H.type===Fr.pop&&a.go(-1,!1)}).catch(xr),Promise.reject()):(H.delta&&a.go(-H.delta,!1),te(w,J,Ie))).then(w=>{w=w||Q(J,Ie,!1),w&&(H.delta&&!Tn(w,8)?a.go(-H.delta,!1):H.type===Fr.pop&&Tn(w,20)&&a.go(-1,!1)),ve(J,Ie,w)}).catch(xr)}))}let ot=_r(),Ee=_r(),Ce;function te(R,j,H){Z(R);const J=Ee.list();return J.length?J.forEach(he=>he(R,j,H)):console.error(R),Promise.reject(R)}function mt(){return Ce&&h.value!==Zn?Promise.resolve():new Promise((R,j)=>{ot.add([R,j])})}function Z(R){return Ce||(Ce=!R,Me(),ot.list().forEach(([j,H])=>R?H(R):j()),ot.reset()),R}function O(R,j,H,J){const{scrollBehavior:he}=e;if(!zi||!he)return Promise.resolve();const Ie=!H&&yv(ju(R.fullPath,0))||(J||!H)&&history.state&&history.state.scroll||null;return Qf().then(()=>he(R,j,Ie)).then(w=>w&&gv(w)).catch(w=>te(w,R,j))}const F=R=>a.go(R);let A;const v=new Set,$={currentRoute:h,listening:!0,addRoute:b,removeRoute:x,clearRoutes:n.clearRoutes,hasRoute:C,getRoutes:T,resolve:P,options:e,push:B,replace:G,go:F,back:()=>F(-1),forward:()=>F(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:Ee.add,isReady:mt,install(R){const j=this;R.component("RouterLink",Vv),R.component("RouterView",Wv),R.config.globalProperties.$router=j,Object.defineProperty(R.config.globalProperties,"$route",{enumerable:!0,get:()=>ke(h)}),zi&&!A&&h.value===Zn&&(A=!0,B(a.location).catch(he=>{}));const H={};for(const he in Zn)Object.defineProperty(H,he,{get:()=>h.value[he],enumerable:!0});R.provide(co,j),R.provide(ll,Kf(H)),R.provide(La,h);const J=R.unmount;v.add(R),R.unmount=function(){v.delete(R),v.size<1&&(p=Zn,xe&&xe(),xe=null,h.value=Zn,A=!1,Ce=!1),J()}}};function M(R){return R.reduce((j,H)=>j.then(()=>fe(H)),Promise.resolve())}return $}function Gv(e,n){const i=[],s=[],a=[],l=Math.max(n.matched.length,e.matched.length);for(let u=0;uWi(p,f))?s.push(f):i.push(f));const h=e.matched[u];h&&(n.matched.find(p=>Wi(p,h))||a.push(h))}return[i,s,a]}function Jv(){return en(co)}function uo(e){return en(ll)}var Yv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ka={exports:{}},nd={},tn={},Gi={},qr={},Re={},Vr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class n{}e._CodeOrName=n,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class i extends n{constructor(k){if(super(),!e.IDENTIFIER.test(k))throw new Error("CodeGen: name must be a valid identifier");this.str=k}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=i;class s extends n{constructor(k){super(),this._items=typeof k=="string"?[k]:k}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const k=this._items[0];return k===""||k==='""'}get str(){var k;return(k=this._str)!==null&&k!==void 0?k:this._str=this._items.reduce((z,B)=>`${z}${B}`,"")}get names(){var k;return(k=this._names)!==null&&k!==void 0?k:this._names=this._items.reduce((z,B)=>(B instanceof i&&(z[B.str]=(z[B.str]||0)+1),z),{})}}e._Code=s,e.nil=new s("");function a(P,...k){const z=[P[0]];let B=0;for(;B{if(_.scopePath===void 0)throw new Error(`CodeGen: name "${_}" has no value`);return(0,n._)`${p}${_.scopePath}`})}scopeCode(p=this._values,m,_){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},m,_)}_reduceValues(p,m,_={},y){let b=n.nil;for(const x in p){const T=p[x];if(!T)continue;const C=_[x]=_[x]||new Map;T.forEach(P=>{if(C.has(P))return;C.set(P,s.Started);let k=m(P);if(k){const z=this.opts.es5?e.varKinds.var:e.varKinds.const;b=(0,n._)`${b}${z} ${P} = ${k};${this.opts._n}`}else if(k=y==null?void 0:y(P))b=(0,n._)`${b}${k}${this.opts._n}`;else throw new i(P);C.set(P,s.Completed)})}return b}}e.ValueScope=f})(Oa);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const n=Vr,i=Oa;var s=Vr;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return s.Name}});var a=Oa;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return a.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return a.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return a.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return a.varKinds}}),e.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class l{optimizeNodes(){return this}optimizeNames(v,$){return this}}class u extends l{constructor(v,$,M){super(),this.varKind=v,this.name=$,this.rhs=M}render({es5:v,_n:$}){const M=v?i.varKinds.var:this.varKind,R=this.rhs===void 0?"":` = ${this.rhs}`;return`${M} ${this.name}${R};`+$}optimizeNames(v,$){if(v[this.name.str])return this.rhs&&(this.rhs=Me(this.rhs,v,$)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class f extends l{constructor(v,$,M){super(),this.lhs=v,this.rhs=$,this.sideEffects=M}render({_n:v}){return`${this.lhs} = ${this.rhs};`+v}optimizeNames(v,$){if(!(this.lhs instanceof n.Name&&!v[this.lhs.str]&&!this.sideEffects))return this.rhs=Me(this.rhs,v,$),this}get names(){const v=this.lhs instanceof n.Name?{}:{...this.lhs.names};return xe(v,this.rhs)}}class h extends f{constructor(v,$,M,R){super(v,M,R),this.op=$}render({_n:v}){return`${this.lhs} ${this.op}= ${this.rhs};`+v}}class p extends l{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`${this.label}:`+v}}class m extends l{constructor(v){super(),this.label=v,this.names={}}render({_n:v}){return`break${this.label?` ${this.label}`:""};`+v}}class _ extends l{constructor(v){super(),this.error=v}render({_n:v}){return`throw ${this.error};`+v}get names(){return this.error.names}}class y extends l{constructor(v){super(),this.code=v}render({_n:v}){return`${this.code};`+v}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(v,$){return this.code=Me(this.code,v,$),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class b extends l{constructor(v=[]){super(),this.nodes=v}render(v){return this.nodes.reduce(($,M)=>$+M.render(v),"")}optimizeNodes(){const{nodes:v}=this;let $=v.length;for(;$--;){const M=v[$].optimizeNodes();Array.isArray(M)?v.splice($,1,...M):M?v[$]=M:v.splice($,1)}return v.length>0?this:void 0}optimizeNames(v,$){const{nodes:M}=this;let R=M.length;for(;R--;){const j=M[R];j.optimizeNames(v,$)||(ot(v,j.names),M.splice(R,1))}return M.length>0?this:void 0}get names(){return this.nodes.reduce((v,$)=>Q(v,$.names),{})}}class x extends b{render(v){return"{"+v._n+super.render(v)+"}"+v._n}}class T extends b{}class C extends x{}C.kind="else";class P extends x{constructor(v,$){super($),this.condition=v}render(v){let $=`if(${this.condition})`+super.render(v);return this.else&&($+="else "+this.else.render(v)),$}optimizeNodes(){super.optimizeNodes();const v=this.condition;if(v===!0)return this.nodes;let $=this.else;if($){const M=$.optimizeNodes();$=this.else=Array.isArray(M)?new C(M):M}if($)return v===!1?$ instanceof P?$:$.nodes:this.nodes.length?this:new P(Ee(v),$ instanceof P?[$]:$.nodes);if(!(v===!1||!this.nodes.length))return this}optimizeNames(v,$){var M;if(this.else=(M=this.else)===null||M===void 0?void 0:M.optimizeNames(v,$),!!(super.optimizeNames(v,$)||this.else))return this.condition=Me(this.condition,v,$),this}get names(){const v=super.names;return xe(v,this.condition),this.else&&Q(v,this.else.names),v}}P.kind="if";class k extends x{}k.kind="for";class z extends k{constructor(v){super(),this.iteration=v}render(v){return`for(${this.iteration})`+super.render(v)}optimizeNames(v,$){if(super.optimizeNames(v,$))return this.iteration=Me(this.iteration,v,$),this}get names(){return Q(super.names,this.iteration.names)}}class B extends k{constructor(v,$,M,R){super(),this.varKind=v,this.name=$,this.from=M,this.to=R}render(v){const $=v.es5?i.varKinds.var:this.varKind,{name:M,from:R,to:j}=this;return`for(${$} ${M}=${R}; ${M}<${j}; ${M}++)`+super.render(v)}get names(){const v=xe(super.names,this.from);return xe(v,this.to)}}class G extends k{constructor(v,$,M,R){super(),this.loop=v,this.varKind=$,this.name=M,this.iterable=R}render(v){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(v)}optimizeNames(v,$){if(super.optimizeNames(v,$))return this.iterable=Me(this.iterable,v,$),this}get names(){return Q(super.names,this.iterable.names)}}class oe extends x{constructor(v,$,M){super(),this.name=v,this.args=$,this.async=M}render(v){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(v)}}oe.kind="func";class de extends b{render(v){return"return "+super.render(v)}}de.kind="return";class Ze extends x{render(v){let $="try"+super.render(v);return this.catch&&($+=this.catch.render(v)),this.finally&&($+=this.finally.render(v)),$}optimizeNodes(){var v,$;return super.optimizeNodes(),(v=this.catch)===null||v===void 0||v.optimizeNodes(),($=this.finally)===null||$===void 0||$.optimizeNodes(),this}optimizeNames(v,$){var M,R;return super.optimizeNames(v,$),(M=this.catch)===null||M===void 0||M.optimizeNames(v,$),(R=this.finally)===null||R===void 0||R.optimizeNames(v,$),this}get names(){const v=super.names;return this.catch&&Q(v,this.catch.names),this.finally&&Q(v,this.finally.names),v}}class fe extends x{constructor(v){super(),this.error=v}render(v){return`catch(${this.error})`+super.render(v)}}fe.kind="catch";class be extends x{render(v){return"finally"+super.render(v)}}be.kind="finally";class ve{constructor(v,$={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...$,_n:$.lines?` +`:""},this._extScope=v,this._scope=new i.Scope({parent:v}),this._nodes=[new T]}toString(){return this._root.render(this.opts)}name(v){return this._scope.name(v)}scopeName(v){return this._extScope.name(v)}scopeValue(v,$){const M=this._extScope.value(v,$);return(this._values[M.prefix]||(this._values[M.prefix]=new Set)).add(M),M}getScopeValue(v,$){return this._extScope.getValue(v,$)}scopeRefs(v){return this._extScope.scopeRefs(v,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(v,$,M,R){const j=this._scope.toName($);return M!==void 0&&R&&(this._constants[j.str]=M),this._leafNode(new u(v,j,M)),j}const(v,$,M){return this._def(i.varKinds.const,v,$,M)}let(v,$,M){return this._def(i.varKinds.let,v,$,M)}var(v,$,M){return this._def(i.varKinds.var,v,$,M)}assign(v,$,M){return this._leafNode(new f(v,$,M))}add(v,$){return this._leafNode(new h(v,e.operators.ADD,$))}code(v){return typeof v=="function"?v():v!==n.nil&&this._leafNode(new y(v)),this}object(...v){const $=["{"];for(const[M,R]of v)$.length>1&&$.push(","),$.push(M),(M!==R||this.opts.es5)&&($.push(":"),(0,n.addCodeArg)($,R));return $.push("}"),new n._Code($)}if(v,$,M){if(this._blockNode(new P(v)),$&&M)this.code($).else().code(M).endIf();else if($)this.code($).endIf();else if(M)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(v){return this._elseNode(new P(v))}else(){return this._elseNode(new C)}endIf(){return this._endBlockNode(P,C)}_for(v,$){return this._blockNode(v),$&&this.code($).endFor(),this}for(v,$){return this._for(new z(v),$)}forRange(v,$,M,R,j=this.opts.es5?i.varKinds.var:i.varKinds.let){const H=this._scope.toName(v);return this._for(new B(j,H,$,M),()=>R(H))}forOf(v,$,M,R=i.varKinds.const){const j=this._scope.toName(v);if(this.opts.es5){const H=$ instanceof n.Name?$:this.var("_arr",$);return this.forRange("_i",0,(0,n._)`${H}.length`,J=>{this.var(j,(0,n._)`${H}[${J}]`),M(j)})}return this._for(new G("of",R,j,$),()=>M(j))}forIn(v,$,M,R=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(v,(0,n._)`Object.keys(${$})`,M);const j=this._scope.toName(v);return this._for(new G("in",R,j,$),()=>M(j))}endFor(){return this._endBlockNode(k)}label(v){return this._leafNode(new p(v))}break(v){return this._leafNode(new m(v))}return(v){const $=new de;if(this._blockNode($),this.code(v),$.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(de)}try(v,$,M){if(!$&&!M)throw new Error('CodeGen: "try" without "catch" and "finally"');const R=new Ze;if(this._blockNode(R),this.code(v),$){const j=this.name("e");this._currNode=R.catch=new fe(j),$(j)}return M&&(this._currNode=R.finally=new be,this.code(M)),this._endBlockNode(fe,be)}throw(v){return this._leafNode(new _(v))}block(v,$){return this._blockStarts.push(this._nodes.length),v&&this.code(v).endBlock($),this}endBlock(v){const $=this._blockStarts.pop();if($===void 0)throw new Error("CodeGen: not in self-balancing block");const M=this._nodes.length-$;if(M<0||v!==void 0&&M!==v)throw new Error(`CodeGen: wrong number of nodes: ${M} vs ${v} expected`);return this._nodes.length=$,this}func(v,$=n.nil,M,R){return this._blockNode(new oe(v,$,M)),R&&this.code(R).endFunc(),this}endFunc(){return this._endBlockNode(oe)}optimize(v=1){for(;v-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(v){return this._currNode.nodes.push(v),this}_blockNode(v){this._currNode.nodes.push(v),this._nodes.push(v)}_endBlockNode(v,$){const M=this._currNode;if(M instanceof v||$&&M instanceof $)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${$?`${v.kind}/${$.kind}`:v.kind}"`)}_elseNode(v){const $=this._currNode;if(!($ instanceof P))throw new Error('CodeGen: "else" without "if"');return this._currNode=$.else=v,this}get _root(){return this._nodes[0]}get _currNode(){const v=this._nodes;return v[v.length-1]}set _currNode(v){const $=this._nodes;$[$.length-1]=v}}e.CodeGen=ve;function Q(A,v){for(const $ in v)A[$]=(A[$]||0)+(v[$]||0);return A}function xe(A,v){return v instanceof n._CodeOrName?Q(A,v.names):A}function Me(A,v,$){if(A instanceof n.Name)return M(A);if(!R(A))return A;return new n._Code(A._items.reduce((j,H)=>(H instanceof n.Name&&(H=M(H)),H instanceof n._Code?j.push(...H._items):j.push(H),j),[]));function M(j){const H=$[j.str];return H===void 0||v[j.str]!==1?j:(delete v[j.str],H)}function R(j){return j instanceof n._Code&&j._items.some(H=>H instanceof n.Name&&v[H.str]===1&&$[H.str]!==void 0)}}function ot(A,v){for(const $ in v)A[$]=(A[$]||0)-(v[$]||0)}function Ee(A){return typeof A=="boolean"||typeof A=="number"||A===null?!A:(0,n._)`!${F(A)}`}e.not=Ee;const Ce=O(e.operators.AND);function te(...A){return A.reduce(Ce)}e.and=te;const mt=O(e.operators.OR);function Z(...A){return A.reduce(mt)}e.or=Z;function O(A){return(v,$)=>v===n.nil?$:$===n.nil?v:(0,n._)`${F(v)} ${A} ${F($)}`}function F(A){return A instanceof n.Name?A:(0,n._)`(${A})`}})(Re);var re={};Object.defineProperty(re,"__esModule",{value:!0});re.checkStrictMode=re.getErrorPath=re.Type=re.useFunc=re.setEvaluated=re.evaluatedPropsToName=re.mergeEvaluated=re.eachItem=re.unescapeJsonPointer=re.escapeJsonPointer=re.escapeFragment=re.unescapeFragment=re.schemaRefOrVal=re.schemaHasRulesButRef=re.schemaHasRules=re.checkUnknownRules=re.alwaysValidSchema=re.toHash=void 0;const Ue=Re,Xv=Vr;function Qv(e){const n={};for(const i of e)n[i]=!0;return n}re.toHash=Qv;function ey(e,n){return typeof n=="boolean"?n:Object.keys(n).length===0?!0:(id(e,n),!rd(n,e.self.RULES.all))}re.alwaysValidSchema=ey;function id(e,n=e.schema){const{opts:i,self:s}=e;if(!i.strictSchema||typeof n=="boolean")return;const a=s.RULES.keywords;for(const l in n)a[l]||ad(e,`unknown keyword: "${l}"`)}re.checkUnknownRules=id;function rd(e,n){if(typeof e=="boolean")return!e;for(const i in e)if(n[i])return!0;return!1}re.schemaHasRules=rd;function ty(e,n){if(typeof e=="boolean")return!e;for(const i in e)if(i!=="$ref"&&n.all[i])return!0;return!1}re.schemaHasRulesButRef=ty;function ny({topSchemaRef:e,schemaPath:n},i,s,a){if(!a){if(typeof i=="number"||typeof i=="boolean")return i;if(typeof i=="string")return(0,Ue._)`${i}`}return(0,Ue._)`${e}${n}${(0,Ue.getProperty)(s)}`}re.schemaRefOrVal=ny;function iy(e){return sd(decodeURIComponent(e))}re.unescapeFragment=iy;function ry(e){return encodeURIComponent(cl(e))}re.escapeFragment=ry;function cl(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}re.escapeJsonPointer=cl;function sd(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}re.unescapeJsonPointer=sd;function sy(e,n){if(Array.isArray(e))for(const i of e)n(i);else n(e)}re.eachItem=sy;function Qu({mergeNames:e,mergeToName:n,mergeValues:i,resultToName:s}){return(a,l,u,f)=>{const h=u===void 0?l:u instanceof Ue.Name?(l instanceof Ue.Name?e(a,l,u):n(a,l,u),u):l instanceof Ue.Name?(n(a,u,l),l):i(l,u);return f===Ue.Name&&!(h instanceof Ue.Name)?s(a,h):h}}re.mergeEvaluated={props:Qu({mergeNames:(e,n,i)=>e.if((0,Ue._)`${i} !== true && ${n} !== undefined`,()=>{e.if((0,Ue._)`${n} === true`,()=>e.assign(i,!0),()=>e.assign(i,(0,Ue._)`${i} || {}`).code((0,Ue._)`Object.assign(${i}, ${n})`))}),mergeToName:(e,n,i)=>e.if((0,Ue._)`${i} !== true`,()=>{n===!0?e.assign(i,!0):(e.assign(i,(0,Ue._)`${i} || {}`),ul(e,i,n))}),mergeValues:(e,n)=>e===!0?!0:{...e,...n},resultToName:od}),items:Qu({mergeNames:(e,n,i)=>e.if((0,Ue._)`${i} !== true && ${n} !== undefined`,()=>e.assign(i,(0,Ue._)`${n} === true ? true : ${i} > ${n} ? ${i} : ${n}`)),mergeToName:(e,n,i)=>e.if((0,Ue._)`${i} !== true`,()=>e.assign(i,n===!0?!0:(0,Ue._)`${i} > ${n} ? ${i} : ${n}`)),mergeValues:(e,n)=>e===!0?!0:Math.max(e,n),resultToName:(e,n)=>e.var("items",n)})};function od(e,n){if(n===!0)return e.var("props",!0);const i=e.var("props",(0,Ue._)`{}`);return n!==void 0&&ul(e,i,n),i}re.evaluatedPropsToName=od;function ul(e,n,i){Object.keys(i).forEach(s=>e.assign((0,Ue._)`${n}${(0,Ue.getProperty)(s)}`,!0))}re.setEvaluated=ul;const ef={};function oy(e,n){return e.scopeValue("func",{ref:n,code:ef[n.code]||(ef[n.code]=new Xv._Code(n.code))})}re.useFunc=oy;var Ra;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ra||(re.Type=Ra={}));function ay(e,n,i){if(e instanceof Ue.Name){const s=n===Ra.Num;return i?s?(0,Ue._)`"[" + ${e} + "]"`:(0,Ue._)`"['" + ${e} + "']"`:s?(0,Ue._)`"/" + ${e}`:(0,Ue._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return i?(0,Ue.getProperty)(e).toString():"/"+cl(e)}re.getErrorPath=ay;function ad(e,n,i=e.opts.strictSchema){if(i){if(n=`strict mode: ${n}`,i===!0)throw new Error(n);e.self.logger.warn(n)}}re.checkStrictMode=ad;var yn={};Object.defineProperty(yn,"__esModule",{value:!0});const $t=Re,ly={data:new $t.Name("data"),valCxt:new $t.Name("valCxt"),instancePath:new $t.Name("instancePath"),parentData:new $t.Name("parentData"),parentDataProperty:new $t.Name("parentDataProperty"),rootData:new $t.Name("rootData"),dynamicAnchors:new $t.Name("dynamicAnchors"),vErrors:new $t.Name("vErrors"),errors:new $t.Name("errors"),this:new $t.Name("this"),self:new $t.Name("self"),scope:new $t.Name("scope"),json:new $t.Name("json"),jsonPos:new $t.Name("jsonPos"),jsonLen:new $t.Name("jsonLen"),jsonPart:new $t.Name("jsonPart")};yn.default=ly;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const n=Re,i=re,s=yn;e.keywordError={message:({keyword:C})=>(0,n.str)`must pass "${C}" keyword validation`},e.keyword$DataError={message:({keyword:C,schemaType:P})=>P?(0,n.str)`"${C}" keyword must be ${P} ($data)`:(0,n.str)`"${C}" keyword is invalid ($data)`};function a(C,P=e.keywordError,k,z){const{it:B}=C,{gen:G,compositeRule:oe,allErrors:de}=B,Ze=_(C,P,k);z??(oe||de)?h(G,Ze):p(B,(0,n._)`[${Ze}]`)}e.reportError=a;function l(C,P=e.keywordError,k){const{it:z}=C,{gen:B,compositeRule:G,allErrors:oe}=z,de=_(C,P,k);h(B,de),G||oe||p(z,s.default.vErrors)}e.reportExtraError=l;function u(C,P){C.assign(s.default.errors,P),C.if((0,n._)`${s.default.vErrors} !== null`,()=>C.if(P,()=>C.assign((0,n._)`${s.default.vErrors}.length`,P),()=>C.assign(s.default.vErrors,null)))}e.resetErrorsCount=u;function f({gen:C,keyword:P,schemaValue:k,data:z,errsCount:B,it:G}){if(B===void 0)throw new Error("ajv implementation error");const oe=C.name("err");C.forRange("i",B,s.default.errors,de=>{C.const(oe,(0,n._)`${s.default.vErrors}[${de}]`),C.if((0,n._)`${oe}.instancePath === undefined`,()=>C.assign((0,n._)`${oe}.instancePath`,(0,n.strConcat)(s.default.instancePath,G.errorPath))),C.assign((0,n._)`${oe}.schemaPath`,(0,n.str)`${G.errSchemaPath}/${P}`),G.opts.verbose&&(C.assign((0,n._)`${oe}.schema`,k),C.assign((0,n._)`${oe}.data`,z))})}e.extendErrors=f;function h(C,P){const k=C.const("err",P);C.if((0,n._)`${s.default.vErrors} === null`,()=>C.assign(s.default.vErrors,(0,n._)`[${k}]`),(0,n._)`${s.default.vErrors}.push(${k})`),C.code((0,n._)`${s.default.errors}++`)}function p(C,P){const{gen:k,validateName:z,schemaEnv:B}=C;B.$async?k.throw((0,n._)`new ${C.ValidationError}(${P})`):(k.assign((0,n._)`${z}.errors`,P),k.return(!1))}const m={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function _(C,P,k){const{createErrors:z}=C.it;return z===!1?(0,n._)`{}`:y(C,P,k)}function y(C,P,k={}){const{gen:z,it:B}=C,G=[b(B,k),x(C,k)];return T(C,P,G),z.object(...G)}function b({errorPath:C},{instancePath:P}){const k=P?(0,n.str)`${C}${(0,i.getErrorPath)(P,i.Type.Str)}`:C;return[s.default.instancePath,(0,n.strConcat)(s.default.instancePath,k)]}function x({keyword:C,it:{errSchemaPath:P}},{schemaPath:k,parentSchema:z}){let B=z?P:(0,n.str)`${P}/${C}`;return k&&(B=(0,n.str)`${B}${(0,i.getErrorPath)(k,i.Type.Str)}`),[m.schemaPath,B]}function T(C,{params:P,message:k},z){const{keyword:B,data:G,schemaValue:oe,it:de}=C,{opts:Ze,propertyName:fe,topSchemaRef:be,schemaPath:ve}=de;z.push([m.keyword,B],[m.params,typeof P=="function"?P(C):P||(0,n._)`{}`]),Ze.messages&&z.push([m.message,typeof k=="function"?k(C):k]),Ze.verbose&&z.push([m.schema,oe],[m.parentSchema,(0,n._)`${be}${ve}`],[s.default.data,G]),fe&&z.push([m.propertyName,fe])}})(qr);Object.defineProperty(Gi,"__esModule",{value:!0});Gi.boolOrEmptySchema=Gi.topBoolOrEmptySchema=void 0;const cy=qr,uy=Re,fy=yn,hy={message:"boolean schema is false"};function dy(e){const{gen:n,schema:i,validateName:s}=e;i===!1?ld(e,!1):typeof i=="object"&&i.$async===!0?n.return(fy.default.data):(n.assign((0,uy._)`${s}.errors`,null),n.return(!0))}Gi.topBoolOrEmptySchema=dy;function py(e,n){const{gen:i,schema:s}=e;s===!1?(i.var(n,!1),ld(e)):i.var(n,!0)}Gi.boolOrEmptySchema=py;function ld(e,n){const{gen:i,data:s}=e,a={gen:i,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,cy.reportError)(a,hy,void 0,n)}var lt={},wi={};Object.defineProperty(wi,"__esModule",{value:!0});wi.getRules=wi.isJSONType=void 0;const my=["string","number","integer","boolean","null","object","array"],_y=new Set(my);function gy(e){return typeof e=="string"&&_y.has(e)}wi.isJSONType=gy;function vy(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}wi.getRules=vy;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.shouldUseRule=On.shouldUseGroup=On.schemaHasRulesForType=void 0;function yy({schema:e,self:n},i){const s=n.RULES.types[i];return s&&s!==!0&&cd(e,s)}On.schemaHasRulesForType=yy;function cd(e,n){return n.rules.some(i=>ud(e,i))}On.shouldUseGroup=cd;function ud(e,n){var i;return e[n.keyword]!==void 0||((i=n.definition.implements)===null||i===void 0?void 0:i.some(s=>e[s]!==void 0))}On.shouldUseRule=ud;Object.defineProperty(lt,"__esModule",{value:!0});lt.reportTypeError=lt.checkDataTypes=lt.checkDataType=lt.coerceAndCheckDataType=lt.getJSONTypes=lt.getSchemaTypes=lt.DataType=void 0;const wy=wi,by=On,Py=qr,Se=Re,fd=re;var Ui;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ui||(lt.DataType=Ui={}));function $y(e){const n=hd(e.type);if(n.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!n.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&n.push("null")}return n}lt.getSchemaTypes=$y;function hd(e){const n=Array.isArray(e)?e:e?[e]:[];if(n.every(wy.isJSONType))return n;throw new Error("type must be JSONType or JSONType[]: "+n.join(","))}lt.getJSONTypes=hd;function Sy(e,n){const{gen:i,data:s,opts:a}=e,l=Ey(n,a.coerceTypes),u=n.length>0&&!(l.length===0&&n.length===1&&(0,by.schemaHasRulesForType)(e,n[0]));if(u){const f=fl(n,s,a.strictNumbers,Ui.Wrong);i.if(f,()=>{l.length?Ty(e,n,l):hl(e)})}return u}lt.coerceAndCheckDataType=Sy;const dd=new Set(["string","number","integer","boolean","null"]);function Ey(e,n){return n?e.filter(i=>dd.has(i)||n==="array"&&i==="array"):[]}function Ty(e,n,i){const{gen:s,data:a,opts:l}=e,u=s.let("dataType",(0,Se._)`typeof ${a}`),f=s.let("coerced",(0,Se._)`undefined`);l.coerceTypes==="array"&&s.if((0,Se._)`${u} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>s.assign(a,(0,Se._)`${a}[0]`).assign(u,(0,Se._)`typeof ${a}`).if(fl(n,a,l.strictNumbers),()=>s.assign(f,a))),s.if((0,Se._)`${f} !== undefined`);for(const p of i)(dd.has(p)||p==="array"&&l.coerceTypes==="array")&&h(p);s.else(),hl(e),s.endIf(),s.if((0,Se._)`${f} !== undefined`,()=>{s.assign(a,f),xy(e,f)});function h(p){switch(p){case"string":s.elseIf((0,Se._)`${u} == "number" || ${u} == "boolean"`).assign(f,(0,Se._)`"" + ${a}`).elseIf((0,Se._)`${a} === null`).assign(f,(0,Se._)`""`);return;case"number":s.elseIf((0,Se._)`${u} == "boolean" || ${a} === null || (${u} == "string" && ${a} && ${a} == +${a})`).assign(f,(0,Se._)`+${a}`);return;case"integer":s.elseIf((0,Se._)`${u} === "boolean" || ${a} === null || (${u} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(f,(0,Se._)`+${a}`);return;case"boolean":s.elseIf((0,Se._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(f,!1).elseIf((0,Se._)`${a} === "true" || ${a} === 1`).assign(f,!0);return;case"null":s.elseIf((0,Se._)`${a} === "" || ${a} === 0 || ${a} === false`),s.assign(f,null);return;case"array":s.elseIf((0,Se._)`${u} === "string" || ${u} === "number" - || ${u} === "boolean" || ${a} === null`).assign(f,(0,Se._)`[${a}]`)}}}function xy({gen:e,parentData:n,parentDataProperty:i},s){e.if((0,Se._)`${n} !== undefined`,()=>e.assign((0,Se._)`${n}[${i}]`,s))}function Ma(e,n,i,s=Ui.Correct){const a=s===Ui.Correct?Se.operators.EQ:Se.operators.NEQ;let l;switch(e){case"null":return(0,Se._)`${n} ${a} null`;case"array":l=(0,Se._)`Array.isArray(${n})`;break;case"object":l=(0,Se._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":l=u((0,Se._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":l=u();break;default:return(0,Se._)`typeof ${n} ${a} ${e}`}return s===Ui.Correct?l:(0,Se.not)(l);function u(f=Se.nil){return(0,Se.and)((0,Se._)`typeof ${n} == "number"`,f,i?(0,Se._)`isFinite(${n})`:Se.nil)}}lt.checkDataType=Ma;function fl(e,n,i,s){if(e.length===1)return Ma(e[0],n,i,s);let a;const l=(0,fd.toHash)(e);if(l.array&&l.object){const u=(0,Se._)`typeof ${n} != "object"`;a=l.null?u:(0,Se._)`!${n} || ${u}`,delete l.null,delete l.array,delete l.object}else a=Se.nil;l.number&&delete l.integer;for(const u in l)a=(0,Se.and)(a,Ma(u,n,i,s));return a}lt.checkDataTypes=fl;const Cy={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:n})=>typeof e=="string"?(0,Se._)`{type: ${e}}`:(0,Se._)`{type: ${n}}`};function hl(e){const n=Ly(e);(0,Py.reportError)(n,Cy)}lt.reportTypeError=hl;function Ly(e){const{gen:n,data:i,schema:s}=e,a=(0,fd.schemaRefOrVal)(e,s,"type");return{gen:n,keyword:"type",data:i,schema:s.type,schemaCode:a,schemaValue:a,parentSchema:s,params:{},it:e}}var fo={};Object.defineProperty(fo,"__esModule",{value:!0});fo.assignDefaults=void 0;const Mi=Re,ky=re;function Oy(e,n){const{properties:i,items:s}=e.schema;if(n==="object"&&i)for(const a in i)tf(e,a,i[a].default);else n==="array"&&Array.isArray(s)&&s.forEach((a,l)=>tf(e,l,a.default))}fo.assignDefaults=Oy;function tf(e,n,i){const{gen:s,compositeRule:a,data:l,opts:u}=e;if(i===void 0)return;const f=(0,Mi._)`${l}${(0,Mi.getProperty)(n)}`;if(a){(0,ky.checkStrictMode)(e,`default is ignored for: ${f}`);return}let h=(0,Mi._)`${f} === undefined`;u.useDefaults==="empty"&&(h=(0,Mi._)`${h} || ${f} === null || ${f} === ""`),s.if(h,(0,Mi._)`${f} = ${(0,Mi.stringify)(i)}`)}var _n={},Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateUnion=Oe.validateArray=Oe.usePattern=Oe.callValidateCode=Oe.schemaProperties=Oe.allSchemaProperties=Oe.noPropertyInData=Oe.propertyInData=Oe.isOwnProperty=Oe.hasPropFunc=Oe.reportMissingProp=Oe.checkMissingProp=Oe.checkReportMissingProp=void 0;const Ke=Re,dl=re,Fn=yn,Ry=re;function My(e,n){const{gen:i,data:s,it:a}=e;i.if(ml(i,s,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ke._)`${n}`},!0),e.error()})}Oe.checkReportMissingProp=My;function Iy({gen:e,data:n,it:{opts:i}},s,a){return(0,Ke.or)(...s.map(l=>(0,Ke.and)(ml(e,n,l,i.ownProperties),(0,Ke._)`${a} = ${l}`)))}Oe.checkMissingProp=Iy;function Ay(e,n){e.setParams({missingProperty:n},!0),e.error()}Oe.reportMissingProp=Ay;function pd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ke._)`Object.prototype.hasOwnProperty`})}Oe.hasPropFunc=pd;function pl(e,n,i){return(0,Ke._)`${pd(e)}.call(${n}, ${i})`}Oe.isOwnProperty=pl;function Ny(e,n,i,s){const a=(0,Ke._)`${n}${(0,Ke.getProperty)(i)} !== undefined`;return s?(0,Ke._)`${a} && ${pl(e,n,i)}`:a}Oe.propertyInData=Ny;function ml(e,n,i,s){const a=(0,Ke._)`${n}${(0,Ke.getProperty)(i)} === undefined`;return s?(0,Ke.or)(a,(0,Ke.not)(pl(e,n,i))):a}Oe.noPropertyInData=ml;function md(e){return e?Object.keys(e).filter(n=>n!=="__proto__"):[]}Oe.allSchemaProperties=md;function zy(e,n){return md(n).filter(i=>!(0,dl.alwaysValidSchema)(e,n[i]))}Oe.schemaProperties=zy;function Dy({schemaCode:e,data:n,it:{gen:i,topSchemaRef:s,schemaPath:a,errorPath:l},it:u},f,h,p){const m=p?(0,Ke._)`${e}, ${n}, ${s}${a}`:n,_=[[Fn.default.instancePath,(0,Ke.strConcat)(Fn.default.instancePath,l)],[Fn.default.parentData,u.parentData],[Fn.default.parentDataProperty,u.parentDataProperty],[Fn.default.rootData,Fn.default.rootData]];u.opts.dynamicRef&&_.push([Fn.default.dynamicAnchors,Fn.default.dynamicAnchors]);const y=(0,Ke._)`${m}, ${i.object(..._)}`;return h!==Ke.nil?(0,Ke._)`${f}.call(${h}, ${y})`:(0,Ke._)`${f}(${y})`}Oe.callValidateCode=Dy;const jy=(0,Ke._)`new RegExp`;function By({gen:e,it:{opts:n}},i){const s=n.unicodeRegExp?"u":"",{regExp:a}=n.code,l=a(i,s);return e.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,Ke._)`${a.code==="new RegExp"?jy:(0,Ry.useFunc)(e,a)}(${i}, ${s})`})}Oe.usePattern=By;function Zy(e){const{gen:n,data:i,keyword:s,it:a}=e,l=n.name("valid");if(a.allErrors){const f=n.let("valid",!0);return u(()=>n.assign(f,!1)),f}return n.var(l,!0),u(()=>n.break()),l;function u(f){const h=n.const("len",(0,Ke._)`${i}.length`);n.forRange("i",0,h,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:dl.Type.Num},l),n.if((0,Ke.not)(l),f)})}}Oe.validateArray=Zy;function Fy(e){const{gen:n,schema:i,keyword:s,it:a}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(h=>(0,dl.alwaysValidSchema)(a,h))&&!a.opts.unevaluated)return;const u=n.let("valid",!1),f=n.name("_valid");n.block(()=>i.forEach((h,p)=>{const m=e.subschema({keyword:s,schemaProp:p,compositeRule:!0},f);n.assign(u,(0,Ke._)`${u} || ${f}`),e.mergeValidEvaluated(m,f)||n.if((0,Ke.not)(u))})),e.result(u,()=>e.reset(),()=>e.error(!0))}Oe.validateUnion=Fy;Object.defineProperty(_n,"__esModule",{value:!0});_n.validateKeywordUsage=_n.validSchemaType=_n.funcKeywordCode=_n.macroKeywordCode=void 0;const kt=Re,pi=yn,Vy=Oe,Hy=Wr;function Uy(e,n){const{gen:i,keyword:s,schema:a,parentSchema:l,it:u}=e,f=n.macro.call(u.self,a,l,u),h=_d(i,s,f);u.opts.validateSchema!==!1&&u.self.validateSchema(f,!0);const p=i.name("valid");e.subschema({schema:f,schemaPath:kt.nil,errSchemaPath:`${u.errSchemaPath}/${s}`,topSchemaRef:h,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}_n.macroKeywordCode=Uy;function qy(e,n){var i;const{gen:s,keyword:a,schema:l,parentSchema:u,$data:f,it:h}=e;Ky(h,n);const p=!f&&n.compile?n.compile.call(h.self,l,u,h):n.validate,m=_d(s,a,p),_=s.let("valid");e.block$data(_,y),e.ok((i=n.valid)!==null&&i!==void 0?i:_);function y(){if(n.errors===!1)T(),n.modifying&&nf(e),C(()=>e.error());else{const P=n.async?b():x();n.modifying&&nf(e),C(()=>Wy(e,P))}}function b(){const P=s.let("ruleErrs",null);return s.try(()=>T((0,kt._)`await `),k=>s.assign(_,!1).if((0,kt._)`${k} instanceof ${h.ValidationError}`,()=>s.assign(P,(0,kt._)`${k}.errors`),()=>s.throw(k))),P}function x(){const P=(0,kt._)`${m}.errors`;return s.assign(P,null),T(kt.nil),P}function T(P=n.async?(0,kt._)`await `:kt.nil){const k=h.opts.passContext?pi.default.this:pi.default.self,z=!("compile"in n&&!f||n.schema===!1);s.assign(_,(0,kt._)`${P}${(0,Vy.callValidateCode)(e,m,k,z)}`,n.modifying)}function C(P){var k;s.if((0,kt.not)((k=n.valid)!==null&&k!==void 0?k:_),P)}}_n.funcKeywordCode=qy;function nf(e){const{gen:n,data:i,it:s}=e;n.if(s.parentData,()=>n.assign(i,(0,kt._)`${s.parentData}[${s.parentDataProperty}]`))}function Wy(e,n){const{gen:i}=e;i.if((0,kt._)`Array.isArray(${n})`,()=>{i.assign(pi.default.vErrors,(0,kt._)`${pi.default.vErrors} === null ? ${n} : ${pi.default.vErrors}.concat(${n})`).assign(pi.default.errors,(0,kt._)`${pi.default.vErrors}.length`),(0,Hy.extendErrors)(e)},()=>e.error())}function Ky({schemaEnv:e},n){if(n.async&&!e.$async)throw new Error("async keyword in sync schema")}function _d(e,n,i){if(i===void 0)throw new Error(`keyword "${n}" failed to compile`);return e.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,kt.stringify)(i)})}function Gy(e,n,i=!1){return!n.length||n.some(s=>s==="array"?Array.isArray(e):s==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==s||i&&typeof e>"u")}_n.validSchemaType=Gy;function Jy({schema:e,opts:n,self:i,errSchemaPath:s},a,l){if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");const u=a.dependencies;if(u!=null&&u.some(f=>!Object.prototype.hasOwnProperty.call(e,f)))throw new Error(`parent schema must have dependencies of ${l}: ${u.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[l])){const h=`keyword "${l}" value is invalid at path "${s}": `+i.errorsText(a.validateSchema.errors);if(n.validateSchema==="log")i.logger.error(h);else throw new Error(h)}}_n.validateKeywordUsage=Jy;var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.extendSubschemaMode=Jn.extendSubschemaData=Jn.getSubschema=void 0;const pn=Re,gd=re;function Yy(e,{keyword:n,schemaProp:i,schema:s,schemaPath:a,errSchemaPath:l,topSchemaRef:u}){if(n!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){const f=e.schema[n];return i===void 0?{schema:f,schemaPath:(0,pn._)`${e.schemaPath}${(0,pn.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${n}`}:{schema:f[i],schemaPath:(0,pn._)`${e.schemaPath}${(0,pn.getProperty)(n)}${(0,pn.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${n}/${(0,gd.escapeFragment)(i)}`}}if(s!==void 0){if(a===void 0||l===void 0||u===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:a,topSchemaRef:u,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}Jn.getSubschema=Yy;function Xy(e,n,{dataProp:i,dataPropType:s,data:a,dataTypes:l,propertyName:u}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=n;if(i!==void 0){const{errorPath:p,dataPathArr:m,opts:_}=n,y=f.let("data",(0,pn._)`${n.data}${(0,pn.getProperty)(i)}`,!0);h(y),e.errorPath=(0,pn.str)`${p}${(0,gd.getErrorPath)(i,s,_.jsPropertySyntax)}`,e.parentDataProperty=(0,pn._)`${i}`,e.dataPathArr=[...m,e.parentDataProperty]}if(a!==void 0){const p=a instanceof pn.Name?a:f.let("data",a,!0);h(p),u!==void 0&&(e.propertyName=u)}l&&(e.dataTypes=l);function h(p){e.data=p,e.dataLevel=n.dataLevel+1,e.dataTypes=[],n.definedProperties=new Set,e.parentData=n.data,e.dataNames=[...n.dataNames,p]}}Jn.extendSubschemaData=Xy;function Qy(e,{jtdDiscriminator:n,jtdMetadata:i,compositeRule:s,createErrors:a,allErrors:l}){s!==void 0&&(e.compositeRule=s),a!==void 0&&(e.createErrors=a),l!==void 0&&(e.allErrors=l),e.jtdDiscriminator=n,e.jtdMetadata=i}Jn.extendSubschemaMode=Qy;var vt={},vd=function e(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var s,a,l;if(Array.isArray(n)){if(s=n.length,s!=i.length)return!1;for(a=s;a--!==0;)if(!e(n[a],i[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(l=Object.keys(n),s=l.length,s!==Object.keys(i).length)return!1;for(a=s;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,l[a]))return!1;for(a=s;a--!==0;){var u=l[a];if(!e(n[u],i[u]))return!1}return!0}return n!==n&&i!==i},yd={exports:{}},Kn=yd.exports=function(e,n,i){typeof n=="function"&&(i=n,n={}),i=n.cb||i;var s=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Is(n,s,a,e,"",e)};Kn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Is(e,n,i,s,a,l,u,f,h,p){if(s&&typeof s=="object"&&!Array.isArray(s)){n(s,a,l,u,f,h,p);for(var m in s){var _=s[m];if(Array.isArray(_)){if(m in Kn.arrayKeywords)for(var y=0;y<_.length;y++)Is(e,n,i,_[y],a+"/"+m+"/"+y,l,a,m,s,y)}else if(m in Kn.propsKeywords){if(_&&typeof _=="object")for(var b in _)Is(e,n,i,_[b],a+"/"+m+"/"+e0(b),l,a,m,s,b)}else(m in Kn.keywords||e.allKeys&&!(m in Kn.skipKeywords))&&Is(e,n,i,_,a+"/"+m,l,a,m,s)}i(s,a,l,u,f,h,p)}}function e0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var t0=yd.exports;Object.defineProperty(vt,"__esModule",{value:!0});vt.getSchemaRefs=vt.resolveUrl=vt.normalizeId=vt._getFullPath=vt.getFullPath=vt.inlineRef=void 0;const n0=re,i0=vd,r0=t0,s0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o0(e,n=!0){return typeof e=="boolean"?!0:n===!0?!Ia(e):n?wd(e)<=n:!1}vt.inlineRef=o0;const a0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ia(e){for(const n in e){if(a0.has(n))return!0;const i=e[n];if(Array.isArray(i)&&i.some(Ia)||typeof i=="object"&&Ia(i))return!0}return!1}function wd(e){let n=0;for(const i in e){if(i==="$ref")return 1/0;if(n++,!s0.has(i)&&(typeof e[i]=="object"&&(0,n0.eachItem)(e[i],s=>n+=wd(s)),n===1/0))return 1/0}return n}function bd(e,n="",i){i!==!1&&(n=qi(n));const s=e.parse(n);return Pd(e,s)}vt.getFullPath=bd;function Pd(e,n){return e.serialize(n).split("#")[0]+"#"}vt._getFullPath=Pd;const l0=/#\/?$/;function qi(e){return e?e.replace(l0,""):""}vt.normalizeId=qi;function c0(e,n,i){return i=qi(i),e.resolve(n,i)}vt.resolveUrl=c0;const u0=/^[a-z_][-a-z0-9._]*$/i;function f0(e,n){if(typeof e=="boolean")return{};const{schemaId:i,uriResolver:s}=this.opts,a=qi(e[i]||n),l={"":a},u=bd(s,a,!1),f={},h=new Set;return r0(e,{allKeys:!0},(_,y,b,x)=>{if(x===void 0)return;const T=u+y;let C=l[x];typeof _[i]=="string"&&(C=P.call(this,_[i])),k.call(this,_.$anchor),k.call(this,_.$dynamicAnchor),l[y]=C;function P(z){const B=this.opts.uriResolver.resolve;if(z=qi(C?B(C,z):z),h.has(z))throw m(z);h.add(z);let G=this.refs[z];return typeof G=="string"&&(G=this.refs[G]),typeof G=="object"?p(_,G.schema,z):z!==qi(T)&&(z[0]==="#"?(p(_,f[z],z),f[z]=_):this.refs[z]=T),z}function k(z){if(typeof z=="string"){if(!u0.test(z))throw new Error(`invalid anchor "${z}"`);P.call(this,`#${z}`)}}}),f;function p(_,y,b){if(y!==void 0&&!i0(_,y))throw m(b)}function m(_){return new Error(`reference "${_}" resolves to more than one schema`)}}vt.getSchemaRefs=f0;Object.defineProperty(tn,"__esModule",{value:!0});tn.getData=tn.KeywordCxt=tn.validateFunctionCode=void 0;const $d=Gi,rf=lt,_l=On,Hs=lt,h0=fo,Lr=_n,la=Jn,ae=Re,ye=yn,d0=vt,Rn=re,gr=Wr;function p0(e){if(Td(e)&&(xd(e),Ed(e))){g0(e);return}Sd(e,()=>(0,$d.topBoolOrEmptySchema)(e))}tn.validateFunctionCode=p0;function Sd({gen:e,validateName:n,schema:i,schemaEnv:s,opts:a},l){a.code.es5?e.func(n,(0,ae._)`${ye.default.data}, ${ye.default.valCxt}`,s.$async,()=>{e.code((0,ae._)`"use strict"; ${sf(i,a)}`),_0(e,a),e.code(l)}):e.func(n,(0,ae._)`${ye.default.data}, ${m0(a)}`,s.$async,()=>e.code(sf(i,a)).code(l))}function m0(e){return(0,ae._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${e.dynamicRef?(0,ae._)`, ${ye.default.dynamicAnchors}={}`:ae.nil}}={}`}function _0(e,n){e.if(ye.default.valCxt,()=>{e.var(ye.default.instancePath,(0,ae._)`${ye.default.valCxt}.${ye.default.instancePath}`),e.var(ye.default.parentData,(0,ae._)`${ye.default.valCxt}.${ye.default.parentData}`),e.var(ye.default.parentDataProperty,(0,ae._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),e.var(ye.default.rootData,(0,ae._)`${ye.default.valCxt}.${ye.default.rootData}`),n.dynamicRef&&e.var(ye.default.dynamicAnchors,(0,ae._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{e.var(ye.default.instancePath,(0,ae._)`""`),e.var(ye.default.parentData,(0,ae._)`undefined`),e.var(ye.default.parentDataProperty,(0,ae._)`undefined`),e.var(ye.default.rootData,ye.default.data),n.dynamicRef&&e.var(ye.default.dynamicAnchors,(0,ae._)`{}`)})}function g0(e){const{schema:n,opts:i,gen:s}=e;Sd(e,()=>{i.$comment&&n.$comment&&Ld(e),P0(e),s.let(ye.default.vErrors,null),s.let(ye.default.errors,0),i.unevaluated&&v0(e),Cd(e),E0(e)})}function v0(e){const{gen:n,validateName:i}=e;e.evaluated=n.const("evaluated",(0,ae._)`${i}.evaluated`),n.if((0,ae._)`${e.evaluated}.dynamicProps`,()=>n.assign((0,ae._)`${e.evaluated}.props`,(0,ae._)`undefined`)),n.if((0,ae._)`${e.evaluated}.dynamicItems`,()=>n.assign((0,ae._)`${e.evaluated}.items`,(0,ae._)`undefined`))}function sf(e,n){const i=typeof e=="object"&&e[n.schemaId];return i&&(n.code.source||n.code.process)?(0,ae._)`/*# sourceURL=${i} */`:ae.nil}function y0(e,n){if(Td(e)&&(xd(e),Ed(e))){w0(e,n);return}(0,$d.boolOrEmptySchema)(e,n)}function Ed({schema:e,self:n}){if(typeof e=="boolean")return!e;for(const i in e)if(n.RULES.all[i])return!0;return!1}function Td(e){return typeof e.schema!="boolean"}function w0(e,n){const{schema:i,gen:s,opts:a}=e;a.$comment&&i.$comment&&Ld(e),$0(e),S0(e);const l=s.const("_errs",ye.default.errors);Cd(e,l),s.var(n,(0,ae._)`${l} === ${ye.default.errors}`)}function xd(e){(0,Rn.checkUnknownRules)(e),b0(e)}function Cd(e,n){if(e.opts.jtd)return of(e,[],!1,n);const i=(0,rf.getSchemaTypes)(e.schema),s=(0,rf.coerceAndCheckDataType)(e,i);of(e,i,!s,n)}function b0(e){const{schema:n,errSchemaPath:i,opts:s,self:a}=e;n.$ref&&s.ignoreKeywordsWithRef&&(0,Rn.schemaHasRulesButRef)(n,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function P0(e){const{schema:n,opts:i}=e;n.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,Rn.checkStrictMode)(e,"default is ignored in the schema root")}function $0(e){const n=e.schema[e.opts.schemaId];n&&(e.baseId=(0,d0.resolveUrl)(e.opts.uriResolver,e.baseId,n))}function S0(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ld({gen:e,schemaEnv:n,schema:i,errSchemaPath:s,opts:a}){const l=i.$comment;if(a.$comment===!0)e.code((0,ae._)`${ye.default.self}.logger.log(${l})`);else if(typeof a.$comment=="function"){const u=(0,ae.str)`${s}/$comment`,f=e.scopeValue("root",{ref:n.root});e.code((0,ae._)`${ye.default.self}.opts.$comment(${l}, ${u}, ${f}.schema)`)}}function E0(e){const{gen:n,schemaEnv:i,validateName:s,ValidationError:a,opts:l}=e;i.$async?n.if((0,ae._)`${ye.default.errors} === 0`,()=>n.return(ye.default.data),()=>n.throw((0,ae._)`new ${a}(${ye.default.vErrors})`)):(n.assign((0,ae._)`${s}.errors`,ye.default.vErrors),l.unevaluated&&T0(e),n.return((0,ae._)`${ye.default.errors} === 0`))}function T0({gen:e,evaluated:n,props:i,items:s}){i instanceof ae.Name&&e.assign((0,ae._)`${n}.props`,i),s instanceof ae.Name&&e.assign((0,ae._)`${n}.items`,s)}function of(e,n,i,s){const{gen:a,schema:l,data:u,allErrors:f,opts:h,self:p}=e,{RULES:m}=p;if(l.$ref&&(h.ignoreKeywordsWithRef||!(0,Rn.schemaHasRulesButRef)(l,m))){a.block(()=>Rd(e,"$ref",m.all.$ref.definition));return}h.jtd||x0(e,n),a.block(()=>{for(const y of m.rules)_(y);_(m.post)});function _(y){(0,_l.shouldUseGroup)(l,y)&&(y.type?(a.if((0,Hs.checkDataType)(y.type,u,h.strictNumbers)),af(e,y),n.length===1&&n[0]===y.type&&i&&(a.else(),(0,Hs.reportTypeError)(e)),a.endIf()):af(e,y),f||a.if((0,ae._)`${ye.default.errors} === ${s||0}`))}}function af(e,n){const{gen:i,schema:s,opts:{useDefaults:a}}=e;a&&(0,h0.assignDefaults)(e,n.type),i.block(()=>{for(const l of n.rules)(0,_l.shouldUseRule)(s,l)&&Rd(e,l.keyword,l.definition,n.type)})}function x0(e,n){e.schemaEnv.meta||!e.opts.strictTypes||(C0(e,n),e.opts.allowUnionTypes||L0(e,n),k0(e,e.dataTypes))}function C0(e,n){if(n.length){if(!e.dataTypes.length){e.dataTypes=n;return}n.forEach(i=>{kd(e.dataTypes,i)||gl(e,`type "${i}" not allowed by context "${e.dataTypes.join(",")}"`)}),R0(e,n)}}function L0(e,n){n.length>1&&!(n.length===2&&n.includes("null"))&&gl(e,"use allowUnionTypes to allow union type keyword")}function k0(e,n){const i=e.self.RULES.all;for(const s in i){const a=i[s];if(typeof a=="object"&&(0,_l.shouldUseRule)(e.schema,a)){const{type:l}=a.definition;l.length&&!l.some(u=>O0(n,u))&&gl(e,`missing type "${l.join(",")}" for keyword "${s}"`)}}}function O0(e,n){return e.includes(n)||n==="number"&&e.includes("integer")}function kd(e,n){return e.includes(n)||n==="integer"&&e.includes("number")}function R0(e,n){const i=[];for(const s of e.dataTypes)kd(n,s)?i.push(s):n.includes("integer")&&s==="number"&&i.push("integer");e.dataTypes=i}function gl(e,n){const i=e.schemaEnv.baseId+e.errSchemaPath;n+=` at "${i}" (strictTypes)`,(0,Rn.checkStrictMode)(e,n,e.opts.strictTypes)}class Od{constructor(n,i,s){if((0,Lr.validateKeywordUsage)(n,i,s),this.gen=n.gen,this.allErrors=n.allErrors,this.keyword=s,this.data=n.data,this.schema=n.schema[s],this.$data=i.$data&&n.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Rn.schemaRefOrVal)(n,this.schema,s,this.$data),this.schemaType=i.schemaType,this.parentSchema=n.schema,this.params={},this.it=n,this.def=i,this.$data)this.schemaCode=n.gen.const("vSchema",Md(this.$data,n));else if(this.schemaCode=this.schemaValue,!(0,Lr.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=n.gen.const("_errs",ye.default.errors))}result(n,i,s){this.failResult((0,ae.not)(n),i,s)}failResult(n,i,s){this.gen.if(n),s?s():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(n,i){this.failResult((0,ae.not)(n),void 0,i)}fail(n){if(n===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(n),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(n){if(!this.$data)return this.fail(n);const{schemaCode:i}=this;this.fail((0,ae._)`${i} !== undefined && (${(0,ae.or)(this.invalid$data(),n)})`)}error(n,i,s){if(i){this.setParams(i),this._error(n,s),this.setParams({});return}this._error(n,s)}_error(n,i){(n?gr.reportExtraError:gr.reportError)(this,this.def.error,i)}$dataError(){(0,gr.reportError)(this,this.def.$dataError||gr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,gr.resetErrorsCount)(this.gen,this.errsCount)}ok(n){this.allErrors||this.gen.if(n)}setParams(n,i){i?Object.assign(this.params,n):this.params=n}block$data(n,i,s=ae.nil){this.gen.block(()=>{this.check$data(n,s),i()})}check$data(n=ae.nil,i=ae.nil){if(!this.$data)return;const{gen:s,schemaCode:a,schemaType:l,def:u}=this;s.if((0,ae.or)((0,ae._)`${a} === undefined`,i)),n!==ae.nil&&s.assign(n,!0),(l.length||u.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),n!==ae.nil&&s.assign(n,!1)),s.else()}invalid$data(){const{gen:n,schemaCode:i,schemaType:s,def:a,it:l}=this;return(0,ae.or)(u(),f());function u(){if(s.length){if(!(i instanceof ae.Name))throw new Error("ajv implementation error");const h=Array.isArray(s)?s:[s];return(0,ae._)`${(0,Hs.checkDataTypes)(h,i,l.opts.strictNumbers,Hs.DataType.Wrong)}`}return ae.nil}function f(){if(a.validateSchema){const h=n.scopeValue("validate$data",{ref:a.validateSchema});return(0,ae._)`!${h}(${i})`}return ae.nil}}subschema(n,i){const s=(0,la.getSubschema)(this.it,n);(0,la.extendSubschemaData)(s,this.it,n),(0,la.extendSubschemaMode)(s,n);const a={...this.it,...s,items:void 0,props:void 0};return y0(a,i),a}mergeEvaluated(n,i){const{it:s,gen:a}=this;s.opts.unevaluated&&(s.props!==!0&&n.props!==void 0&&(s.props=Rn.mergeEvaluated.props(a,n.props,s.props,i)),s.items!==!0&&n.items!==void 0&&(s.items=Rn.mergeEvaluated.items(a,n.items,s.items,i)))}mergeValidEvaluated(n,i){const{it:s,gen:a}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return a.if(i,()=>this.mergeEvaluated(n,ae.Name)),!0}}tn.KeywordCxt=Od;function Rd(e,n,i,s){const a=new Od(e,i,n);"code"in i?i.code(a,s):a.$data&&i.validate?(0,Lr.funcKeywordCode)(a,i):"macro"in i?(0,Lr.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,Lr.funcKeywordCode)(a,i)}const M0=/^\/(?:[^~]|~0|~1)*$/,I0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Md(e,{dataLevel:n,dataNames:i,dataPathArr:s}){let a,l;if(e==="")return ye.default.rootData;if(e[0]==="/"){if(!M0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);a=e,l=ye.default.rootData}else{const p=I0.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);const m=+p[1];if(a=p[2],a==="#"){if(m>=n)throw new Error(h("property/index",m));return s[n-m]}if(m>n)throw new Error(h("data",m));if(l=i[n-m],!a)return l}let u=l;const f=a.split("/");for(const p of f)p&&(l=(0,ae._)`${l}${(0,ae.getProperty)((0,Rn.unescapeJsonPointer)(p))}`,u=(0,ae._)`${u} && ${l}`);return u;function h(p,m){return`Cannot access ${p} ${m} levels up, current level is ${n}`}}tn.getData=Md;var Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});class A0 extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}Kr.default=A0;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});const ca=vt;class N0 extends Error{constructor(n,i,s,a){super(a||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,ca.resolveUrl)(n,i,s),this.missingSchema=(0,ca.normalizeId)((0,ca.getFullPath)(n,this.missingRef))}}Xi.default=N0;var zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.resolveSchema=zt.getCompilingSchema=zt.resolveRef=zt.compileSchema=zt.SchemaEnv=void 0;const Jt=Re,z0=Kr,fi=yn,Xt=vt,lf=re,D0=tn;class ho{constructor(n){var i;this.refs={},this.dynamicAnchors={};let s;typeof n.schema=="object"&&(s=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=(i=n.baseId)!==null&&i!==void 0?i:(0,Xt.normalizeId)(s==null?void 0:s[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=s==null?void 0:s.$async,this.refs={}}}zt.SchemaEnv=ho;function vl(e){const n=Id.call(this,e);if(n)return n;const i=(0,Xt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:a}=this.opts.code,{ownProperties:l}=this.opts,u=new Jt.CodeGen(this.scope,{es5:s,lines:a,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:z0.default,code:(0,Jt._)`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const p={gen:u,allErrors:this.opts.allErrors,data:fi.default.data,parentData:fi.default.parentData,parentDataProperty:fi.default.parentDataProperty,dataNames:[fi.default.data],dataPathArr:[Jt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Jt.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:i,baseId:e.baseId||i,schemaPath:Jt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Jt._)`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,D0.validateFunctionCode)(p),u.optimize(this.opts.code.optimize);const _=u.toString();m=`${u.scopeRefs(fi.default.scope)}return ${_}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const b=new Function(`${fi.default.self}`,`${fi.default.scope}`,m)(this,this.scope.get());if(this.scope.value(h,{ref:b}),b.errors=null,b.schema=e.schema,b.schemaEnv=e,e.$async&&(b.$async=!0),this.opts.code.source===!0&&(b.source={validateName:h,validateCode:_,scopeValues:u._values}),this.opts.unevaluated){const{props:x,items:T}=p;b.evaluated={props:x instanceof Jt.Name?void 0:x,items:T instanceof Jt.Name?void 0:T,dynamicProps:x instanceof Jt.Name,dynamicItems:T instanceof Jt.Name},b.source&&(b.source.evaluated=(0,Jt.stringify)(b.evaluated))}return e.validate=b,e}catch(_){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),_}finally{this._compilations.delete(e)}}zt.compileSchema=vl;function j0(e,n,i){var s;i=(0,Xt.resolveUrl)(this.opts.uriResolver,n,i);const a=e.refs[i];if(a)return a;let l=F0.call(this,e,i);if(l===void 0){const u=(s=e.localRefs)===null||s===void 0?void 0:s[i],{schemaId:f}=this.opts;u&&(l=new ho({schema:u,schemaId:f,root:e,baseId:n}))}if(l!==void 0)return e.refs[i]=B0.call(this,l)}zt.resolveRef=j0;function B0(e){return(0,Xt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vl.call(this,e)}function Id(e){for(const n of this._compilations)if(Z0(n,e))return n}zt.getCompilingSchema=Id;function Z0(e,n){return e.schema===n.schema&&e.root===n.root&&e.baseId===n.baseId}function F0(e,n){let i;for(;typeof(i=this.refs[n])=="string";)n=i;return i||this.schemas[n]||po.call(this,e,n)}function po(e,n){const i=this.opts.uriResolver.parse(n),s=(0,Xt._getFullPath)(this.opts.uriResolver,i);let a=(0,Xt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===a)return ua.call(this,i,e);const l=(0,Xt.normalizeId)(s),u=this.refs[l]||this.schemas[l];if(typeof u=="string"){const f=po.call(this,e,u);return typeof(f==null?void 0:f.schema)!="object"?void 0:ua.call(this,i,f)}if(typeof(u==null?void 0:u.schema)=="object"){if(u.validate||vl.call(this,u),l===(0,Xt.normalizeId)(n)){const{schema:f}=u,{schemaId:h}=this.opts,p=f[h];return p&&(a=(0,Xt.resolveUrl)(this.opts.uriResolver,a,p)),new ho({schema:f,schemaId:h,root:e,baseId:a})}return ua.call(this,i,u)}}zt.resolveSchema=po;const V0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ua(e,{baseId:n,schema:i,root:s}){var a;if(((a=e.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const f of e.fragment.slice(1).split("/")){if(typeof i=="boolean")return;const h=i[(0,lf.unescapeFragment)(f)];if(h===void 0)return;i=h;const p=typeof i=="object"&&i[this.opts.schemaId];!V0.has(f)&&p&&(n=(0,Xt.resolveUrl)(this.opts.uriResolver,n,p))}let l;if(typeof i!="boolean"&&i.$ref&&!(0,lf.schemaHasRulesButRef)(i,this.RULES)){const f=(0,Xt.resolveUrl)(this.opts.uriResolver,n,i.$ref);l=po.call(this,s,f)}const{schemaId:u}=this.opts;if(l=l||new ho({schema:i,schemaId:u,root:s,baseId:n}),l.schema!==l.root.schema)return l}const H0="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",U0="Meta-schema for $data reference (JSON AnySchema extension proposal)",q0="object",W0=["$data"],K0={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},G0=!1,J0={$id:H0,description:U0,type:q0,required:W0,properties:K0,additionalProperties:G0};var yl={},mo={exports:{}};const Y0={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var X0={HEX:Y0};const{HEX:Q0}=X0;function Ad(e){if(zd(e,".")<3)return{host:e,isIPV4:!1};const n=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[i]=n;return i?{host:tw(i,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Aa(e,n=!1){let i="",s=!0;for(const a of e){if(Q0[a]===void 0)return;a!=="0"&&s===!0&&(s=!1),s||(i+=a)}return n&&i.length===0&&(i="0"),i}function ew(e){let n=0;const i={error:!1,address:"",zone:""},s=[],a=[];let l=!1,u=!1,f=!1;function h(){if(a.length){if(l===!1){const p=Aa(a);if(p!==void 0)s.push(p);else return i.error=!0,!1}a.length=0}return!0}for(let p=0;p7){i.error=!0;break}p-1>=0&&e[p-1]===":"&&(u=!0);continue}else if(m==="%"){if(!h())break;l=!0}else{a.push(m);continue}}return a.length&&(l?i.zone=a.join(""):f?s.push(a.join("")):s.push(Aa(a))),i.address=s.join(""),i}function Nd(e,n={}){if(zd(e,":")<2)return{host:e,isIPV6:!1};const i=ew(e);if(i.error)return{host:e,isIPV6:!1};{let s=i.address,a=i.address;return i.zone&&(s+="%"+i.zone,a+="%25"+i.zone),{host:s,escapedHost:a,isIPV6:!0}}}function tw(e,n){let i="",s=!0;const a=e.length;for(let l=0;l/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(n)));function xw(e){let n=0;for(let i=0,s=e.length;i126||Tw[n])return!0;return!1}const Cw=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Mn(e,n){const i=Object.assign({},n),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=e.indexOf("%")!==-1;let l=!1;i.reference==="suffix"&&(e=(i.scheme?i.scheme+":":"")+"//"+e);const u=e.match(Cw);if(u){if(s.scheme=u[1],s.userinfo=u[3],s.host=u[4],s.port=parseInt(u[5],10),s.path=u[6]||"",s.query=u[7],s.fragment=u[8],isNaN(s.port)&&(s.port=u[5]),s.host){const h=bw(s.host);if(h.isIPV4===!1){const p=ww(h.host,{isIPV4:!1});s.host=p.host.toLowerCase(),l=p.isIPV6}else s.host=h.host,l=!0}s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&!s.path&&s.query===void 0?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==s.reference&&(s.error=s.error||"URI is not a "+i.reference+" reference.");const f=bl[(i.scheme||s.scheme||"").toLowerCase()];if(!i.unicodeSupport&&(!f||!f.unicodeSupport)&&s.host&&(i.domainHost||f&&f.domainHost)&&l===!1&&xw(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(h){s.error=s.error||"Host's domain name can not be converted to ASCII: "+h}(!f||f&&!f.skipNormalize)&&(a&&s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),a&&s.userinfo!==void 0&&(s.userinfo=unescape(s.userinfo)),a&&s.host!==void 0&&(s.host=unescape(s.host)),s.path!==void 0&&s.path.length&&(s.path=escape(unescape(s.path))),s.fragment!==void 0&&s.fragment.length&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),f&&f.parse&&f.parse(s,i)}else s.error=s.error||"URI can not be parsed.";return s}const Pl={SCHEMES:bl,normalize:$w,resolve:Sw,resolveComponents:Fd,equal:Ew,serialize:gn,parse:Mn};mo.exports=Pl;mo.exports.default=Pl;mo.exports.fastUri=Pl;var Lw=mo.exports;Object.defineProperty(yl,"__esModule",{value:!0});const Vd=Lw;Vd.code='require("ajv/dist/runtime/uri").default';yl.default=Vd;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var n=tn;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=Re;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const s=Kr,a=Xi,l=wi,u=zt,f=Re,h=vt,p=lt,m=re,_=J0,y=yl,b=(Z,O)=>new RegExp(Z,O);b.code="new RegExp";const x=["removeAdditional","useDefaults","coerceTypes"],T=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),C={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},P={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function z(Z){var O,F,A,v,$,M,R,j,H,J,he,Ie,w,S,N,U,V,W,ee,X,Y,K,le,ne,se;const ue=Z.strict,$e=(O=Z.code)===null||O===void 0?void 0:O.optimize,ze=$e===!0||$e===void 0?1:$e||0,Ae=(A=(F=Z.code)===null||F===void 0?void 0:F.regExp)!==null&&A!==void 0?A:b,ht=(v=Z.uriResolver)!==null&&v!==void 0?v:y.default;return{strictSchema:(M=($=Z.strictSchema)!==null&&$!==void 0?$:ue)!==null&&M!==void 0?M:!0,strictNumbers:(j=(R=Z.strictNumbers)!==null&&R!==void 0?R:ue)!==null&&j!==void 0?j:!0,strictTypes:(J=(H=Z.strictTypes)!==null&&H!==void 0?H:ue)!==null&&J!==void 0?J:"log",strictTuples:(Ie=(he=Z.strictTuples)!==null&&he!==void 0?he:ue)!==null&&Ie!==void 0?Ie:"log",strictRequired:(S=(w=Z.strictRequired)!==null&&w!==void 0?w:ue)!==null&&S!==void 0?S:!1,code:Z.code?{...Z.code,optimize:ze,regExp:Ae}:{optimize:ze,regExp:Ae},loopRequired:(N=Z.loopRequired)!==null&&N!==void 0?N:k,loopEnum:(U=Z.loopEnum)!==null&&U!==void 0?U:k,meta:(V=Z.meta)!==null&&V!==void 0?V:!0,messages:(W=Z.messages)!==null&&W!==void 0?W:!0,inlineRefs:(ee=Z.inlineRefs)!==null&&ee!==void 0?ee:!0,schemaId:(X=Z.schemaId)!==null&&X!==void 0?X:"$id",addUsedSchema:(Y=Z.addUsedSchema)!==null&&Y!==void 0?Y:!0,validateSchema:(K=Z.validateSchema)!==null&&K!==void 0?K:!0,validateFormats:(le=Z.validateFormats)!==null&&le!==void 0?le:!0,unicodeRegExp:(ne=Z.unicodeRegExp)!==null&&ne!==void 0?ne:!0,int32range:(se=Z.int32range)!==null&&se!==void 0?se:!0,uriResolver:ht}}class B{constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,...z(O)};const{es5:F,lines:A}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:T,es5:F,lines:A}),this.logger=Q(O.logger);const v=O.validateFormats;O.validateFormats=!1,this.RULES=(0,l.getRules)(),G.call(this,C,O,"NOT SUPPORTED"),G.call(this,P,O,"DEPRECATED","warn"),this._metaOpts=be.call(this),O.formats&&Ze.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&fe.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),de.call(this),O.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:F,schemaId:A}=this.opts;let v=_;A==="id"&&(v={..._},v.id=v.$id,delete v.$id),F&&O&&this.addMetaSchema(v,v[A],!1)}defaultMeta(){const{meta:O,schemaId:F}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[F]||O:void 0}validate(O,F){let A;if(typeof O=="string"){if(A=this.getSchema(O),!A)throw new Error(`no schema with key or ref "${O}"`)}else A=this.compile(O);const v=A(F);return"$async"in A||(this.errors=A.errors),v}compile(O,F){const A=this._addSchema(O,F);return A.validate||this._compileSchemaEnv(A)}compileAsync(O,F){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:A}=this.opts;return v.call(this,O,F);async function v(J,he){await $.call(this,J.$schema);const Ie=this._addSchema(J,he);return Ie.validate||M.call(this,Ie)}async function $(J){J&&!this.getSchema(J)&&await v.call(this,{$ref:J},!0)}async function M(J){try{return this._compileSchemaEnv(J)}catch(he){if(!(he instanceof a.default))throw he;return R.call(this,he),await j.call(this,he.missingSchema),M.call(this,J)}}function R({missingSchema:J,missingRef:he}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${he} cannot be resolved`)}async function j(J){const he=await H.call(this,J);this.refs[J]||await $.call(this,he.$schema),this.refs[J]||this.addSchema(he,J,F)}async function H(J){const he=this._loading[J];if(he)return he;try{return await(this._loading[J]=A(J))}finally{delete this._loading[J]}}}addSchema(O,F,A,v=this.opts.validateSchema){if(Array.isArray(O)){for(const M of O)this.addSchema(M,void 0,A,v);return this}let $;if(typeof O=="object"){const{schemaId:M}=this.opts;if($=O[M],$!==void 0&&typeof $!="string")throw new Error(`schema ${M} must be string`)}return F=(0,h.normalizeId)(F||$),this._checkUnique(F),this.schemas[F]=this._addSchema(O,A,F,v,!0),this}addMetaSchema(O,F,A=this.opts.validateSchema){return this.addSchema(O,F,!0,A),this}validateSchema(O,F){if(typeof O=="boolean")return!0;let A;if(A=O.$schema,A!==void 0&&typeof A!="string")throw new Error("$schema must be a string");if(A=A||this.opts.defaultMeta||this.defaultMeta(),!A)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(A,O);if(!v&&F){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return v}getSchema(O){let F;for(;typeof(F=oe.call(this,O))=="string";)O=F;if(F===void 0){const{schemaId:A}=this.opts,v=new u.SchemaEnv({schema:{},schemaId:A});if(F=u.resolveSchema.call(this,v,O),!F)return;this.refs[O]=F}return F.validate||this._compileSchemaEnv(F)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const F=oe.call(this,O);return typeof F=="object"&&this._cache.delete(F.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{const F=O;this._cache.delete(F);let A=O[this.opts.schemaId];return A&&(A=(0,h.normalizeId)(A),delete this.schemas[A],delete this.refs[A]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(const F of O)this.addKeyword(F);return this}addKeyword(O,F){let A;if(typeof O=="string")A=O,typeof F=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=A);else if(typeof O=="object"&&F===void 0){if(F=O,A=F.keyword,Array.isArray(A)&&!A.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Me.call(this,A,F),!F)return(0,m.eachItem)(A,$=>ot.call(this,$)),this;Ce.call(this,F);const v={...F,type:(0,p.getJSONTypes)(F.type),schemaType:(0,p.getJSONTypes)(F.schemaType)};return(0,m.eachItem)(A,v.type.length===0?$=>ot.call(this,$,v):$=>v.type.forEach(M=>ot.call(this,$,v,M))),this}getKeyword(O){const F=this.RULES.all[O];return typeof F=="object"?F.definition:!!F}removeKeyword(O){const{RULES:F}=this;delete F.keywords[O],delete F.all[O];for(const A of F.rules){const v=A.rules.findIndex($=>$.keyword===O);v>=0&&A.rules.splice(v,1)}return this}addFormat(O,F){return typeof F=="string"&&(F=new RegExp(F)),this.formats[O]=F,this}errorsText(O=this.errors,{separator:F=", ",dataVar:A="data"}={}){return!O||O.length===0?"No errors":O.map(v=>`${A}${v.instancePath} ${v.message}`).reduce((v,$)=>v+F+$)}$dataMetaSchema(O,F){const A=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const v of F){const $=v.split("/").slice(1);let M=O;for(const R of $)M=M[R];for(const R in A){const j=A[R];if(typeof j!="object")continue;const{$data:H}=j.definition,J=M[R];H&&J&&(M[R]=mt(J))}}return O}_removeAllSchemas(O,F){for(const A in O){const v=O[A];(!F||F.test(A))&&(typeof v=="string"?delete O[A]:v&&!v.meta&&(this._cache.delete(v.schema),delete O[A]))}}_addSchema(O,F,A,v=this.opts.validateSchema,$=this.opts.addUsedSchema){let M;const{schemaId:R}=this.opts;if(typeof O=="object")M=O[R];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let j=this._cache.get(O);if(j!==void 0)return j;A=(0,h.normalizeId)(M||A);const H=h.getSchemaRefs.call(this,O,A);return j=new u.SchemaEnv({schema:O,schemaId:R,meta:F,baseId:A,localRefs:H}),this._cache.set(j.schema,j),$&&!A.startsWith("#")&&(A&&this._checkUnique(A),this.refs[A]=j),v&&this.validateSchema(O,!0),j}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):u.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){const F=this.opts;this.opts=this._metaOpts;try{u.compileSchema.call(this,O)}finally{this.opts=F}}}B.ValidationError=s.default,B.MissingRefError=a.default,e.default=B;function G(Z,O,F,A="error"){for(const v in Z){const $=v;$ in O&&this.logger[A](`${F}: option ${v}. ${Z[$]}`)}}function oe(Z){return Z=(0,h.normalizeId)(Z),this.schemas[Z]||this.refs[Z]}function de(){const Z=this.opts.schemas;if(Z)if(Array.isArray(Z))this.addSchema(Z);else for(const O in Z)this.addSchema(Z[O],O)}function Ze(){for(const Z in this.opts.formats){const O=this.opts.formats[Z];O&&this.addFormat(Z,O)}}function fe(Z){if(Array.isArray(Z)){this.addVocabulary(Z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const O in Z){const F=Z[O];F.keyword||(F.keyword=O),this.addKeyword(F)}}function be(){const Z={...this.opts};for(const O of x)delete Z[O];return Z}const ve={log(){},warn(){},error(){}};function Q(Z){if(Z===!1)return ve;if(Z===void 0)return console;if(Z.log&&Z.warn&&Z.error)return Z;throw new Error("logger must implement log, warn and error methods")}const xe=/^[a-z_$][a-z0-9_$:-]*$/i;function Me(Z,O){const{RULES:F}=this;if((0,m.eachItem)(Z,A=>{if(F.keywords[A])throw new Error(`Keyword ${A} is already defined`);if(!xe.test(A))throw new Error(`Keyword ${A} has invalid name`)}),!!O&&O.$data&&!("code"in O||"validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function ot(Z,O,F){var A;const v=O==null?void 0:O.post;if(F&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let M=v?$.post:$.rules.find(({type:j})=>j===F);if(M||(M={type:F,rules:[]},$.rules.push(M)),$.keywords[Z]=!0,!O)return;const R={keyword:Z,definition:{...O,type:(0,p.getJSONTypes)(O.type),schemaType:(0,p.getJSONTypes)(O.schemaType)}};O.before?Ee.call(this,M,R,O.before):M.rules.push(R),$.all[Z]=R,(A=O.implements)===null||A===void 0||A.forEach(j=>this.addKeyword(j))}function Ee(Z,O,F){const A=Z.rules.findIndex(v=>v.keyword===F);A>=0?Z.rules.splice(A,0,O):(Z.rules.push(O),this.logger.warn(`rule ${F} is not defined`))}function Ce(Z){let{metaSchema:O}=Z;O!==void 0&&(Z.$data&&this.opts.$data&&(O=mt(O)),Z.validateSchema=this.compile(O,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function mt(Z){return{anyOf:[Z,te]}}})(nd);var $l={},Sl={},El={};Object.defineProperty(El,"__esModule",{value:!0});const kw={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};El.default=kw;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.callRef=bi.getValidate=void 0;const Ow=Xi,hf=Oe,Nt=Re,Ii=yn,df=zt,Ss=re,Rw={keyword:"$ref",schemaType:"string",code(e){const{gen:n,schema:i,it:s}=e,{baseId:a,schemaEnv:l,validateName:u,opts:f,self:h}=s,{root:p}=l;if((i==="#"||i==="#/")&&a===p.baseId)return _();const m=df.resolveRef.call(h,p,a,i);if(m===void 0)throw new Ow.default(s.opts.uriResolver,a,i);if(m instanceof df.SchemaEnv)return y(m);return b(m);function _(){if(l===p)return Ns(e,u,l,l.$async);const x=n.scopeValue("root",{ref:p});return Ns(e,(0,Nt._)`${x}.validate`,p,p.$async)}function y(x){const T=Hd(e,x);Ns(e,T,x,x.$async)}function b(x){const T=n.scopeValue("schema",f.code.source===!0?{ref:x,code:(0,Nt.stringify)(x)}:{ref:x}),C=n.name("valid"),P=e.subschema({schema:x,dataTypes:[],schemaPath:Nt.nil,topSchemaRef:T,errSchemaPath:i},C);e.mergeEvaluated(P),e.ok(C)}}};function Hd(e,n){const{gen:i}=e;return n.validate?i.scopeValue("validate",{ref:n.validate}):(0,Nt._)`${i.scopeValue("wrapper",{ref:n})}.validate`}bi.getValidate=Hd;function Ns(e,n,i,s){const{gen:a,it:l}=e,{allErrors:u,schemaEnv:f,opts:h}=l,p=h.passContext?Ii.default.this:Nt.nil;s?m():_();function m(){if(!f.$async)throw new Error("async schema referenced by sync schema");const x=a.let("valid");a.try(()=>{a.code((0,Nt._)`await ${(0,hf.callValidateCode)(e,n,p)}`),b(n),u||a.assign(x,!0)},T=>{a.if((0,Nt._)`!(${T} instanceof ${l.ValidationError})`,()=>a.throw(T)),y(T),u||a.assign(x,!1)}),e.ok(x)}function _(){e.result((0,hf.callValidateCode)(e,n,p),()=>b(n),()=>y(n))}function y(x){const T=(0,Nt._)`${x}.errors`;a.assign(Ii.default.vErrors,(0,Nt._)`${Ii.default.vErrors} === null ? ${T} : ${Ii.default.vErrors}.concat(${T})`),a.assign(Ii.default.errors,(0,Nt._)`${Ii.default.vErrors}.length`)}function b(x){var T;if(!l.opts.unevaluated)return;const C=(T=i==null?void 0:i.validate)===null||T===void 0?void 0:T.evaluated;if(l.props!==!0)if(C&&!C.dynamicProps)C.props!==void 0&&(l.props=Ss.mergeEvaluated.props(a,C.props,l.props));else{const P=a.var("props",(0,Nt._)`${x}.evaluated.props`);l.props=Ss.mergeEvaluated.props(a,P,l.props,Nt.Name)}if(l.items!==!0)if(C&&!C.dynamicItems)C.items!==void 0&&(l.items=Ss.mergeEvaluated.items(a,C.items,l.items));else{const P=a.var("items",(0,Nt._)`${x}.evaluated.items`);l.items=Ss.mergeEvaluated.items(a,P,l.items,Nt.Name)}}}bi.callRef=Ns;bi.default=Rw;Object.defineProperty(Sl,"__esModule",{value:!0});const Mw=El,Iw=bi,Aw=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Mw.default,Iw.default];Sl.default=Aw;var Tl={},xl={};Object.defineProperty(xl,"__esModule",{value:!0});const Us=Re,Vn=Us.operators,qs={maximum:{okStr:"<=",ok:Vn.LTE,fail:Vn.GT},minimum:{okStr:">=",ok:Vn.GTE,fail:Vn.LT},exclusiveMaximum:{okStr:"<",ok:Vn.LT,fail:Vn.GTE},exclusiveMinimum:{okStr:">",ok:Vn.GT,fail:Vn.LTE}},Nw={message:({keyword:e,schemaCode:n})=>(0,Us.str)`must be ${qs[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,Us._)`{comparison: ${qs[e].okStr}, limit: ${n}}`},zw={keyword:Object.keys(qs),type:"number",schemaType:"number",$data:!0,error:Nw,code(e){const{keyword:n,data:i,schemaCode:s}=e;e.fail$data((0,Us._)`${i} ${qs[n].fail} ${s} || isNaN(${i})`)}};xl.default=zw;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});const kr=Re,Dw={message:({schemaCode:e})=>(0,kr.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,kr._)`{multipleOf: ${e}}`},jw={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Dw,code(e){const{gen:n,data:i,schemaCode:s,it:a}=e,l=a.opts.multipleOfPrecision,u=n.let("res"),f=l?(0,kr._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,kr._)`${u} !== parseInt(${u})`;e.fail$data((0,kr._)`(${s} === 0 || (${u} = ${i}/${s}, ${f}))`)}};Cl.default=jw;var Ll={},kl={};Object.defineProperty(kl,"__esModule",{value:!0});function Ud(e){const n=e.length;let i=0,s=0,a;for(;s=55296&&a<=56319&&s(0,mi._)`{limit: ${e}}`},Vw={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Fw,code(e){const{keyword:n,data:i,schemaCode:s,it:a}=e,l=n==="maxLength"?mi.operators.GT:mi.operators.LT,u=a.opts.unicode===!1?(0,mi._)`${i}.length`:(0,mi._)`${(0,Bw.useFunc)(e.gen,Zw.default)}(${i})`;e.fail$data((0,mi._)`${u} ${l} ${s}`)}};Ll.default=Vw;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});const Hw=Oe,Ws=Re,Uw={message:({schemaCode:e})=>(0,Ws.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ws._)`{pattern: ${e}}`},qw={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Uw,code(e){const{data:n,$data:i,schema:s,schemaCode:a,it:l}=e,u=l.opts.unicodeRegExp?"u":"",f=i?(0,Ws._)`(new RegExp(${a}, ${u}))`:(0,Hw.usePattern)(e,s);e.fail$data((0,Ws._)`!${f}.test(${n})`)}};Ol.default=qw;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});const Or=Re,Ww={message({keyword:e,schemaCode:n}){const i=e==="maxProperties"?"more":"fewer";return(0,Or.str)`must NOT have ${i} than ${n} properties`},params:({schemaCode:e})=>(0,Or._)`{limit: ${e}}`},Kw={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Ww,code(e){const{keyword:n,data:i,schemaCode:s}=e,a=n==="maxProperties"?Or.operators.GT:Or.operators.LT;e.fail$data((0,Or._)`Object.keys(${i}).length ${a} ${s}`)}};Rl.default=Kw;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});const vr=Oe,Rr=Re,Gw=re,Jw={message:({params:{missingProperty:e}})=>(0,Rr.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Rr._)`{missingProperty: ${e}}`},Yw={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Jw,code(e){const{gen:n,schema:i,schemaCode:s,data:a,$data:l,it:u}=e,{opts:f}=u;if(!l&&i.length===0)return;const h=i.length>=f.loopRequired;if(u.allErrors?p():m(),f.strictRequired){const b=e.parentSchema.properties,{definedProperties:x}=e.it;for(const T of i)if((b==null?void 0:b[T])===void 0&&!x.has(T)){const C=u.schemaEnv.baseId+u.errSchemaPath,P=`required property "${T}" is not defined at "${C}" (strictRequired)`;(0,Gw.checkStrictMode)(u,P,u.opts.strictRequired)}}function p(){if(h||l)e.block$data(Rr.nil,_);else for(const b of i)(0,vr.checkReportMissingProp)(e,b)}function m(){const b=n.let("missing");if(h||l){const x=n.let("valid",!0);e.block$data(x,()=>y(b,x)),e.ok(x)}else n.if((0,vr.checkMissingProp)(e,i,b)),(0,vr.reportMissingProp)(e,b),n.else()}function _(){n.forOf("prop",s,b=>{e.setParams({missingProperty:b}),n.if((0,vr.noPropertyInData)(n,a,b,f.ownProperties),()=>e.error())})}function y(b,x){e.setParams({missingProperty:b}),n.forOf(b,s,()=>{n.assign(x,(0,vr.propertyInData)(n,a,b,f.ownProperties)),n.if((0,Rr.not)(x),()=>{e.error(),n.break()})},Rr.nil)}}};Ml.default=Yw;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});const Mr=Re,Xw={message({keyword:e,schemaCode:n}){const i=e==="maxItems"?"more":"fewer";return(0,Mr.str)`must NOT have ${i} than ${n} items`},params:({schemaCode:e})=>(0,Mr._)`{limit: ${e}}`},Qw={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Xw,code(e){const{keyword:n,data:i,schemaCode:s}=e,a=n==="maxItems"?Mr.operators.GT:Mr.operators.LT;e.fail$data((0,Mr._)`${i}.length ${a} ${s}`)}};Il.default=Qw;var Al={},Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});const qd=vd;qd.code='require("ajv/dist/runtime/equal").default';Gr.default=qd;Object.defineProperty(Al,"__esModule",{value:!0});const fa=lt,gt=Re,eb=re,tb=Gr,nb={message:({params:{i:e,j:n}})=>(0,gt.str)`must NOT have duplicate items (items ## ${n} and ${e} are identical)`,params:({params:{i:e,j:n}})=>(0,gt._)`{i: ${e}, j: ${n}}`},ib={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:nb,code(e){const{gen:n,data:i,$data:s,schema:a,parentSchema:l,schemaCode:u,it:f}=e;if(!s&&!a)return;const h=n.let("valid"),p=l.items?(0,fa.getSchemaTypes)(l.items):[];e.block$data(h,m,(0,gt._)`${u} === false`),e.ok(h);function m(){const x=n.let("i",(0,gt._)`${i}.length`),T=n.let("j");e.setParams({i:x,j:T}),n.assign(h,!0),n.if((0,gt._)`${x} > 1`,()=>(_()?y:b)(x,T))}function _(){return p.length>0&&!p.some(x=>x==="object"||x==="array")}function y(x,T){const C=n.name("item"),P=(0,fa.checkDataTypes)(p,C,f.opts.strictNumbers,fa.DataType.Wrong),k=n.const("indices",(0,gt._)`{}`);n.for((0,gt._)`;${x}--;`,()=>{n.let(C,(0,gt._)`${i}[${x}]`),n.if(P,(0,gt._)`continue`),p.length>1&&n.if((0,gt._)`typeof ${C} == "string"`,(0,gt._)`${C} += "_"`),n.if((0,gt._)`typeof ${k}[${C}] == "number"`,()=>{n.assign(T,(0,gt._)`${k}[${C}]`),e.error(),n.assign(h,!1).break()}).code((0,gt._)`${k}[${C}] = ${x}`)})}function b(x,T){const C=(0,eb.useFunc)(n,tb.default),P=n.name("outer");n.label(P).for((0,gt._)`;${x}--;`,()=>n.for((0,gt._)`${T} = ${x}; ${T}--;`,()=>n.if((0,gt._)`${C}(${i}[${x}], ${i}[${T}])`,()=>{e.error(),n.assign(h,!1).break(P)})))}}};Al.default=ib;var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});const Na=Re,rb=re,sb=Gr,ob={message:"must be equal to constant",params:({schemaCode:e})=>(0,Na._)`{allowedValue: ${e}}`},ab={keyword:"const",$data:!0,error:ob,code(e){const{gen:n,data:i,$data:s,schemaCode:a,schema:l}=e;s||l&&typeof l=="object"?e.fail$data((0,Na._)`!${(0,rb.useFunc)(n,sb.default)}(${i}, ${a})`):e.fail((0,Na._)`${l} !== ${i}`)}};Nl.default=ab;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});const br=Re,lb=re,cb=Gr,ub={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,br._)`{allowedValues: ${e}}`},fb={keyword:"enum",schemaType:"array",$data:!0,error:ub,code(e){const{gen:n,data:i,$data:s,schema:a,schemaCode:l,it:u}=e;if(!s&&a.length===0)throw new Error("enum must have non-empty array");const f=a.length>=u.opts.loopEnum;let h;const p=()=>h??(h=(0,lb.useFunc)(n,cb.default));let m;if(f||s)m=n.let("valid"),e.block$data(m,_);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const b=n.const("vSchema",l);m=(0,br.or)(...a.map((x,T)=>y(b,T)))}e.pass(m);function _(){n.assign(m,!1),n.forOf("v",l,b=>n.if((0,br._)`${p()}(${i}, ${b})`,()=>n.assign(m,!0).break()))}function y(b,x){const T=a[x];return typeof T=="object"&&T!==null?(0,br._)`${p()}(${i}, ${b}[${x}])`:(0,br._)`${i} === ${T}`}}};zl.default=fb;Object.defineProperty(Tl,"__esModule",{value:!0});const hb=xl,db=Cl,pb=Ll,mb=Ol,_b=Rl,gb=Ml,vb=Il,yb=Al,wb=Nl,bb=zl,Pb=[hb.default,db.default,pb.default,mb.default,_b.default,gb.default,vb.default,yb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},wb.default,bb.default];Tl.default=Pb;var Dl={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.validateAdditionalItems=void 0;const _i=Re,za=re,$b={message:({params:{len:e}})=>(0,_i.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_i._)`{limit: ${e}}`},Sb={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:$b,code(e){const{parentSchema:n,it:i}=e,{items:s}=n;if(!Array.isArray(s)){(0,za.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Wd(e,s)}};function Wd(e,n){const{gen:i,schema:s,data:a,keyword:l,it:u}=e;u.items=!0;const f=i.const("len",(0,_i._)`${a}.length`);if(s===!1)e.setParams({len:n.length}),e.pass((0,_i._)`${f} <= ${n.length}`);else if(typeof s=="object"&&!(0,za.alwaysValidSchema)(u,s)){const p=i.var("valid",(0,_i._)`${f} <= ${n.length}`);i.if((0,_i.not)(p),()=>h(p)),e.ok(p)}function h(p){i.forRange("i",n.length,f,m=>{e.subschema({keyword:l,dataProp:m,dataPropType:za.Type.Num},p),u.allErrors||i.if((0,_i.not)(p),()=>i.break())})}}Qi.validateAdditionalItems=Wd;Qi.default=Sb;var jl={},er={};Object.defineProperty(er,"__esModule",{value:!0});er.validateTuple=void 0;const pf=Re,zs=re,Eb=Oe,Tb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:n,it:i}=e;if(Array.isArray(n))return Kd(e,"additionalItems",n);i.items=!0,!(0,zs.alwaysValidSchema)(i,n)&&e.ok((0,Eb.validateArray)(e))}};function Kd(e,n,i=e.schema){const{gen:s,parentSchema:a,data:l,keyword:u,it:f}=e;m(a),f.opts.unevaluated&&i.length&&f.items!==!0&&(f.items=zs.mergeEvaluated.items(s,i.length,f.items));const h=s.name("valid"),p=s.const("len",(0,pf._)`${l}.length`);i.forEach((_,y)=>{(0,zs.alwaysValidSchema)(f,_)||(s.if((0,pf._)`${p} > ${y}`,()=>e.subschema({keyword:u,schemaProp:y,dataProp:y},h)),e.ok(h))});function m(_){const{opts:y,errSchemaPath:b}=f,x=i.length,T=x===_.minItems&&(x===_.maxItems||_[n]===!1);if(y.strictTuples&&!T){const C=`"${u}" is ${x}-tuple, but minItems or maxItems/${n} are not specified or different at path "${b}"`;(0,zs.checkStrictMode)(f,C,y.strictTuples)}}}er.validateTuple=Kd;er.default=Tb;Object.defineProperty(jl,"__esModule",{value:!0});const xb=er,Cb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,xb.validateTuple)(e,"items")};jl.default=Cb;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});const mf=Re,Lb=re,kb=Oe,Ob=Qi,Rb={message:({params:{len:e}})=>(0,mf.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mf._)`{limit: ${e}}`},Mb={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Rb,code(e){const{schema:n,parentSchema:i,it:s}=e,{prefixItems:a}=i;s.items=!0,!(0,Lb.alwaysValidSchema)(s,n)&&(a?(0,Ob.validateAdditionalItems)(e,a):e.ok((0,kb.validateArray)(e)))}};Bl.default=Mb;var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});const qt=Re,Es=re,Ib={message:({params:{min:e,max:n}})=>n===void 0?(0,qt.str)`must contain at least ${e} valid item(s)`:(0,qt.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,qt._)`{minContains: ${e}}`:(0,qt._)`{minContains: ${e}, maxContains: ${n}}`},Ab={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Ib,code(e){const{gen:n,schema:i,parentSchema:s,data:a,it:l}=e;let u,f;const{minContains:h,maxContains:p}=s;l.opts.next?(u=h===void 0?1:h,f=p):u=1;const m=n.const("len",(0,qt._)`${a}.length`);if(e.setParams({min:u,max:f}),f===void 0&&u===0){(0,Es.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,Es.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Es.alwaysValidSchema)(l,i)){let T=(0,qt._)`${m} >= ${u}`;f!==void 0&&(T=(0,qt._)`${T} && ${m} <= ${f}`),e.pass(T);return}l.items=!0;const _=n.name("valid");f===void 0&&u===1?b(_,()=>n.if(_,()=>n.break())):u===0?(n.let(_,!0),f!==void 0&&n.if((0,qt._)`${a}.length > 0`,y)):(n.let(_,!1),y()),e.result(_,()=>e.reset());function y(){const T=n.name("_valid"),C=n.let("count",0);b(T,()=>n.if(T,()=>x(C)))}function b(T,C){n.forRange("i",0,m,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:Es.Type.Num,compositeRule:!0},T),C()})}function x(T){n.code((0,qt._)`${T}++`),f===void 0?n.if((0,qt._)`${T} >= ${u}`,()=>n.assign(_,!0).break()):(n.if((0,qt._)`${T} > ${f}`,()=>n.assign(_,!1).break()),u===1?n.assign(_,!0):n.if((0,qt._)`${T} >= ${u}`,()=>n.assign(_,!0)))}}};Zl.default=Ab;var Gd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const n=Re,i=re,s=Oe;e.error={message:({params:{property:h,depsCount:p,deps:m}})=>{const _=p===1?"property":"properties";return(0,n.str)`must have ${_} ${m} when property ${h} is present`},params:({params:{property:h,depsCount:p,deps:m,missingProperty:_}})=>(0,n._)`{property: ${h}, + || ${u} === "boolean" || ${a} === null`).assign(f,(0,Se._)`[${a}]`)}}}function xy({gen:e,parentData:n,parentDataProperty:i},s){e.if((0,Se._)`${n} !== undefined`,()=>e.assign((0,Se._)`${n}[${i}]`,s))}function Ma(e,n,i,s=Ui.Correct){const a=s===Ui.Correct?Se.operators.EQ:Se.operators.NEQ;let l;switch(e){case"null":return(0,Se._)`${n} ${a} null`;case"array":l=(0,Se._)`Array.isArray(${n})`;break;case"object":l=(0,Se._)`${n} && typeof ${n} == "object" && !Array.isArray(${n})`;break;case"integer":l=u((0,Se._)`!(${n} % 1) && !isNaN(${n})`);break;case"number":l=u();break;default:return(0,Se._)`typeof ${n} ${a} ${e}`}return s===Ui.Correct?l:(0,Se.not)(l);function u(f=Se.nil){return(0,Se.and)((0,Se._)`typeof ${n} == "number"`,f,i?(0,Se._)`isFinite(${n})`:Se.nil)}}lt.checkDataType=Ma;function fl(e,n,i,s){if(e.length===1)return Ma(e[0],n,i,s);let a;const l=(0,fd.toHash)(e);if(l.array&&l.object){const u=(0,Se._)`typeof ${n} != "object"`;a=l.null?u:(0,Se._)`!${n} || ${u}`,delete l.null,delete l.array,delete l.object}else a=Se.nil;l.number&&delete l.integer;for(const u in l)a=(0,Se.and)(a,Ma(u,n,i,s));return a}lt.checkDataTypes=fl;const Cy={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:n})=>typeof e=="string"?(0,Se._)`{type: ${e}}`:(0,Se._)`{type: ${n}}`};function hl(e){const n=Ly(e);(0,Py.reportError)(n,Cy)}lt.reportTypeError=hl;function Ly(e){const{gen:n,data:i,schema:s}=e,a=(0,fd.schemaRefOrVal)(e,s,"type");return{gen:n,keyword:"type",data:i,schema:s.type,schemaCode:a,schemaValue:a,parentSchema:s,params:{},it:e}}var fo={};Object.defineProperty(fo,"__esModule",{value:!0});fo.assignDefaults=void 0;const Mi=Re,ky=re;function Oy(e,n){const{properties:i,items:s}=e.schema;if(n==="object"&&i)for(const a in i)tf(e,a,i[a].default);else n==="array"&&Array.isArray(s)&&s.forEach((a,l)=>tf(e,l,a.default))}fo.assignDefaults=Oy;function tf(e,n,i){const{gen:s,compositeRule:a,data:l,opts:u}=e;if(i===void 0)return;const f=(0,Mi._)`${l}${(0,Mi.getProperty)(n)}`;if(a){(0,ky.checkStrictMode)(e,`default is ignored for: ${f}`);return}let h=(0,Mi._)`${f} === undefined`;u.useDefaults==="empty"&&(h=(0,Mi._)`${h} || ${f} === null || ${f} === ""`),s.if(h,(0,Mi._)`${f} = ${(0,Mi.stringify)(i)}`)}var _n={},Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.validateUnion=Oe.validateArray=Oe.usePattern=Oe.callValidateCode=Oe.schemaProperties=Oe.allSchemaProperties=Oe.noPropertyInData=Oe.propertyInData=Oe.isOwnProperty=Oe.hasPropFunc=Oe.reportMissingProp=Oe.checkMissingProp=Oe.checkReportMissingProp=void 0;const Ke=Re,dl=re,Fn=yn,Ry=re;function My(e,n){const{gen:i,data:s,it:a}=e;i.if(ml(i,s,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ke._)`${n}`},!0),e.error()})}Oe.checkReportMissingProp=My;function Iy({gen:e,data:n,it:{opts:i}},s,a){return(0,Ke.or)(...s.map(l=>(0,Ke.and)(ml(e,n,l,i.ownProperties),(0,Ke._)`${a} = ${l}`)))}Oe.checkMissingProp=Iy;function Ay(e,n){e.setParams({missingProperty:n},!0),e.error()}Oe.reportMissingProp=Ay;function pd(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ke._)`Object.prototype.hasOwnProperty`})}Oe.hasPropFunc=pd;function pl(e,n,i){return(0,Ke._)`${pd(e)}.call(${n}, ${i})`}Oe.isOwnProperty=pl;function Ny(e,n,i,s){const a=(0,Ke._)`${n}${(0,Ke.getProperty)(i)} !== undefined`;return s?(0,Ke._)`${a} && ${pl(e,n,i)}`:a}Oe.propertyInData=Ny;function ml(e,n,i,s){const a=(0,Ke._)`${n}${(0,Ke.getProperty)(i)} === undefined`;return s?(0,Ke.or)(a,(0,Ke.not)(pl(e,n,i))):a}Oe.noPropertyInData=ml;function md(e){return e?Object.keys(e).filter(n=>n!=="__proto__"):[]}Oe.allSchemaProperties=md;function zy(e,n){return md(n).filter(i=>!(0,dl.alwaysValidSchema)(e,n[i]))}Oe.schemaProperties=zy;function Dy({schemaCode:e,data:n,it:{gen:i,topSchemaRef:s,schemaPath:a,errorPath:l},it:u},f,h,p){const m=p?(0,Ke._)`${e}, ${n}, ${s}${a}`:n,_=[[Fn.default.instancePath,(0,Ke.strConcat)(Fn.default.instancePath,l)],[Fn.default.parentData,u.parentData],[Fn.default.parentDataProperty,u.parentDataProperty],[Fn.default.rootData,Fn.default.rootData]];u.opts.dynamicRef&&_.push([Fn.default.dynamicAnchors,Fn.default.dynamicAnchors]);const y=(0,Ke._)`${m}, ${i.object(..._)}`;return h!==Ke.nil?(0,Ke._)`${f}.call(${h}, ${y})`:(0,Ke._)`${f}(${y})`}Oe.callValidateCode=Dy;const jy=(0,Ke._)`new RegExp`;function By({gen:e,it:{opts:n}},i){const s=n.unicodeRegExp?"u":"",{regExp:a}=n.code,l=a(i,s);return e.scopeValue("pattern",{key:l.toString(),ref:l,code:(0,Ke._)`${a.code==="new RegExp"?jy:(0,Ry.useFunc)(e,a)}(${i}, ${s})`})}Oe.usePattern=By;function Zy(e){const{gen:n,data:i,keyword:s,it:a}=e,l=n.name("valid");if(a.allErrors){const f=n.let("valid",!0);return u(()=>n.assign(f,!1)),f}return n.var(l,!0),u(()=>n.break()),l;function u(f){const h=n.const("len",(0,Ke._)`${i}.length`);n.forRange("i",0,h,p=>{e.subschema({keyword:s,dataProp:p,dataPropType:dl.Type.Num},l),n.if((0,Ke.not)(l),f)})}}Oe.validateArray=Zy;function Fy(e){const{gen:n,schema:i,keyword:s,it:a}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(i.some(h=>(0,dl.alwaysValidSchema)(a,h))&&!a.opts.unevaluated)return;const u=n.let("valid",!1),f=n.name("_valid");n.block(()=>i.forEach((h,p)=>{const m=e.subschema({keyword:s,schemaProp:p,compositeRule:!0},f);n.assign(u,(0,Ke._)`${u} || ${f}`),e.mergeValidEvaluated(m,f)||n.if((0,Ke.not)(u))})),e.result(u,()=>e.reset(),()=>e.error(!0))}Oe.validateUnion=Fy;Object.defineProperty(_n,"__esModule",{value:!0});_n.validateKeywordUsage=_n.validSchemaType=_n.funcKeywordCode=_n.macroKeywordCode=void 0;const kt=Re,di=yn,Vy=Oe,Hy=qr;function Uy(e,n){const{gen:i,keyword:s,schema:a,parentSchema:l,it:u}=e,f=n.macro.call(u.self,a,l,u),h=_d(i,s,f);u.opts.validateSchema!==!1&&u.self.validateSchema(f,!0);const p=i.name("valid");e.subschema({schema:f,schemaPath:kt.nil,errSchemaPath:`${u.errSchemaPath}/${s}`,topSchemaRef:h,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}_n.macroKeywordCode=Uy;function qy(e,n){var i;const{gen:s,keyword:a,schema:l,parentSchema:u,$data:f,it:h}=e;Ky(h,n);const p=!f&&n.compile?n.compile.call(h.self,l,u,h):n.validate,m=_d(s,a,p),_=s.let("valid");e.block$data(_,y),e.ok((i=n.valid)!==null&&i!==void 0?i:_);function y(){if(n.errors===!1)T(),n.modifying&&nf(e),C(()=>e.error());else{const P=n.async?b():x();n.modifying&&nf(e),C(()=>Wy(e,P))}}function b(){const P=s.let("ruleErrs",null);return s.try(()=>T((0,kt._)`await `),k=>s.assign(_,!1).if((0,kt._)`${k} instanceof ${h.ValidationError}`,()=>s.assign(P,(0,kt._)`${k}.errors`),()=>s.throw(k))),P}function x(){const P=(0,kt._)`${m}.errors`;return s.assign(P,null),T(kt.nil),P}function T(P=n.async?(0,kt._)`await `:kt.nil){const k=h.opts.passContext?di.default.this:di.default.self,z=!("compile"in n&&!f||n.schema===!1);s.assign(_,(0,kt._)`${P}${(0,Vy.callValidateCode)(e,m,k,z)}`,n.modifying)}function C(P){var k;s.if((0,kt.not)((k=n.valid)!==null&&k!==void 0?k:_),P)}}_n.funcKeywordCode=qy;function nf(e){const{gen:n,data:i,it:s}=e;n.if(s.parentData,()=>n.assign(i,(0,kt._)`${s.parentData}[${s.parentDataProperty}]`))}function Wy(e,n){const{gen:i}=e;i.if((0,kt._)`Array.isArray(${n})`,()=>{i.assign(di.default.vErrors,(0,kt._)`${di.default.vErrors} === null ? ${n} : ${di.default.vErrors}.concat(${n})`).assign(di.default.errors,(0,kt._)`${di.default.vErrors}.length`),(0,Hy.extendErrors)(e)},()=>e.error())}function Ky({schemaEnv:e},n){if(n.async&&!e.$async)throw new Error("async keyword in sync schema")}function _d(e,n,i){if(i===void 0)throw new Error(`keyword "${n}" failed to compile`);return e.scopeValue("keyword",typeof i=="function"?{ref:i}:{ref:i,code:(0,kt.stringify)(i)})}function Gy(e,n,i=!1){return!n.length||n.some(s=>s==="array"?Array.isArray(e):s==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==s||i&&typeof e>"u")}_n.validSchemaType=Gy;function Jy({schema:e,opts:n,self:i,errSchemaPath:s},a,l){if(Array.isArray(a.keyword)?!a.keyword.includes(l):a.keyword!==l)throw new Error("ajv implementation error");const u=a.dependencies;if(u!=null&&u.some(f=>!Object.prototype.hasOwnProperty.call(e,f)))throw new Error(`parent schema must have dependencies of ${l}: ${u.join(",")}`);if(a.validateSchema&&!a.validateSchema(e[l])){const h=`keyword "${l}" value is invalid at path "${s}": `+i.errorsText(a.validateSchema.errors);if(n.validateSchema==="log")i.logger.error(h);else throw new Error(h)}}_n.validateKeywordUsage=Jy;var Gn={};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.extendSubschemaMode=Gn.extendSubschemaData=Gn.getSubschema=void 0;const pn=Re,gd=re;function Yy(e,{keyword:n,schemaProp:i,schema:s,schemaPath:a,errSchemaPath:l,topSchemaRef:u}){if(n!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(n!==void 0){const f=e.schema[n];return i===void 0?{schema:f,schemaPath:(0,pn._)`${e.schemaPath}${(0,pn.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${n}`}:{schema:f[i],schemaPath:(0,pn._)`${e.schemaPath}${(0,pn.getProperty)(n)}${(0,pn.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${n}/${(0,gd.escapeFragment)(i)}`}}if(s!==void 0){if(a===void 0||l===void 0||u===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:a,topSchemaRef:u,errSchemaPath:l}}throw new Error('either "keyword" or "schema" must be passed')}Gn.getSubschema=Yy;function Xy(e,n,{dataProp:i,dataPropType:s,data:a,dataTypes:l,propertyName:u}){if(a!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=n;if(i!==void 0){const{errorPath:p,dataPathArr:m,opts:_}=n,y=f.let("data",(0,pn._)`${n.data}${(0,pn.getProperty)(i)}`,!0);h(y),e.errorPath=(0,pn.str)`${p}${(0,gd.getErrorPath)(i,s,_.jsPropertySyntax)}`,e.parentDataProperty=(0,pn._)`${i}`,e.dataPathArr=[...m,e.parentDataProperty]}if(a!==void 0){const p=a instanceof pn.Name?a:f.let("data",a,!0);h(p),u!==void 0&&(e.propertyName=u)}l&&(e.dataTypes=l);function h(p){e.data=p,e.dataLevel=n.dataLevel+1,e.dataTypes=[],n.definedProperties=new Set,e.parentData=n.data,e.dataNames=[...n.dataNames,p]}}Gn.extendSubschemaData=Xy;function Qy(e,{jtdDiscriminator:n,jtdMetadata:i,compositeRule:s,createErrors:a,allErrors:l}){s!==void 0&&(e.compositeRule=s),a!==void 0&&(e.createErrors=a),l!==void 0&&(e.allErrors=l),e.jtdDiscriminator=n,e.jtdMetadata=i}Gn.extendSubschemaMode=Qy;var vt={},vd=function e(n,i){if(n===i)return!0;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(n.constructor!==i.constructor)return!1;var s,a,l;if(Array.isArray(n)){if(s=n.length,s!=i.length)return!1;for(a=s;a--!==0;)if(!e(n[a],i[a]))return!1;return!0}if(n.constructor===RegExp)return n.source===i.source&&n.flags===i.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===i.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===i.toString();if(l=Object.keys(n),s=l.length,s!==Object.keys(i).length)return!1;for(a=s;a--!==0;)if(!Object.prototype.hasOwnProperty.call(i,l[a]))return!1;for(a=s;a--!==0;){var u=l[a];if(!e(n[u],i[u]))return!1}return!0}return n!==n&&i!==i},yd={exports:{}},Kn=yd.exports=function(e,n,i){typeof n=="function"&&(i=n,n={}),i=n.cb||i;var s=typeof i=="function"?i:i.pre||function(){},a=i.post||function(){};Ms(n,s,a,e,"",e)};Kn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Kn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Kn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Kn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ms(e,n,i,s,a,l,u,f,h,p){if(s&&typeof s=="object"&&!Array.isArray(s)){n(s,a,l,u,f,h,p);for(var m in s){var _=s[m];if(Array.isArray(_)){if(m in Kn.arrayKeywords)for(var y=0;y<_.length;y++)Ms(e,n,i,_[y],a+"/"+m+"/"+y,l,a,m,s,y)}else if(m in Kn.propsKeywords){if(_&&typeof _=="object")for(var b in _)Ms(e,n,i,_[b],a+"/"+m+"/"+e0(b),l,a,m,s,b)}else(m in Kn.keywords||e.allKeys&&!(m in Kn.skipKeywords))&&Ms(e,n,i,_,a+"/"+m,l,a,m,s)}i(s,a,l,u,f,h,p)}}function e0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}var t0=yd.exports;Object.defineProperty(vt,"__esModule",{value:!0});vt.getSchemaRefs=vt.resolveUrl=vt.normalizeId=vt._getFullPath=vt.getFullPath=vt.inlineRef=void 0;const n0=re,i0=vd,r0=t0,s0=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o0(e,n=!0){return typeof e=="boolean"?!0:n===!0?!Ia(e):n?wd(e)<=n:!1}vt.inlineRef=o0;const a0=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ia(e){for(const n in e){if(a0.has(n))return!0;const i=e[n];if(Array.isArray(i)&&i.some(Ia)||typeof i=="object"&&Ia(i))return!0}return!1}function wd(e){let n=0;for(const i in e){if(i==="$ref")return 1/0;if(n++,!s0.has(i)&&(typeof e[i]=="object"&&(0,n0.eachItem)(e[i],s=>n+=wd(s)),n===1/0))return 1/0}return n}function bd(e,n="",i){i!==!1&&(n=qi(n));const s=e.parse(n);return Pd(e,s)}vt.getFullPath=bd;function Pd(e,n){return e.serialize(n).split("#")[0]+"#"}vt._getFullPath=Pd;const l0=/#\/?$/;function qi(e){return e?e.replace(l0,""):""}vt.normalizeId=qi;function c0(e,n,i){return i=qi(i),e.resolve(n,i)}vt.resolveUrl=c0;const u0=/^[a-z_][-a-z0-9._]*$/i;function f0(e,n){if(typeof e=="boolean")return{};const{schemaId:i,uriResolver:s}=this.opts,a=qi(e[i]||n),l={"":a},u=bd(s,a,!1),f={},h=new Set;return r0(e,{allKeys:!0},(_,y,b,x)=>{if(x===void 0)return;const T=u+y;let C=l[x];typeof _[i]=="string"&&(C=P.call(this,_[i])),k.call(this,_.$anchor),k.call(this,_.$dynamicAnchor),l[y]=C;function P(z){const B=this.opts.uriResolver.resolve;if(z=qi(C?B(C,z):z),h.has(z))throw m(z);h.add(z);let G=this.refs[z];return typeof G=="string"&&(G=this.refs[G]),typeof G=="object"?p(_,G.schema,z):z!==qi(T)&&(z[0]==="#"?(p(_,f[z],z),f[z]=_):this.refs[z]=T),z}function k(z){if(typeof z=="string"){if(!u0.test(z))throw new Error(`invalid anchor "${z}"`);P.call(this,`#${z}`)}}}),f;function p(_,y,b){if(y!==void 0&&!i0(_,y))throw m(b)}function m(_){return new Error(`reference "${_}" resolves to more than one schema`)}}vt.getSchemaRefs=f0;Object.defineProperty(tn,"__esModule",{value:!0});tn.getData=tn.KeywordCxt=tn.validateFunctionCode=void 0;const $d=Gi,rf=lt,_l=On,Vs=lt,h0=fo,Lr=_n,la=Gn,ae=Re,ye=yn,d0=vt,Rn=re,gr=qr;function p0(e){if(Td(e)&&(xd(e),Ed(e))){g0(e);return}Sd(e,()=>(0,$d.topBoolOrEmptySchema)(e))}tn.validateFunctionCode=p0;function Sd({gen:e,validateName:n,schema:i,schemaEnv:s,opts:a},l){a.code.es5?e.func(n,(0,ae._)`${ye.default.data}, ${ye.default.valCxt}`,s.$async,()=>{e.code((0,ae._)`"use strict"; ${sf(i,a)}`),_0(e,a),e.code(l)}):e.func(n,(0,ae._)`${ye.default.data}, ${m0(a)}`,s.$async,()=>e.code(sf(i,a)).code(l))}function m0(e){return(0,ae._)`{${ye.default.instancePath}="", ${ye.default.parentData}, ${ye.default.parentDataProperty}, ${ye.default.rootData}=${ye.default.data}${e.dynamicRef?(0,ae._)`, ${ye.default.dynamicAnchors}={}`:ae.nil}}={}`}function _0(e,n){e.if(ye.default.valCxt,()=>{e.var(ye.default.instancePath,(0,ae._)`${ye.default.valCxt}.${ye.default.instancePath}`),e.var(ye.default.parentData,(0,ae._)`${ye.default.valCxt}.${ye.default.parentData}`),e.var(ye.default.parentDataProperty,(0,ae._)`${ye.default.valCxt}.${ye.default.parentDataProperty}`),e.var(ye.default.rootData,(0,ae._)`${ye.default.valCxt}.${ye.default.rootData}`),n.dynamicRef&&e.var(ye.default.dynamicAnchors,(0,ae._)`${ye.default.valCxt}.${ye.default.dynamicAnchors}`)},()=>{e.var(ye.default.instancePath,(0,ae._)`""`),e.var(ye.default.parentData,(0,ae._)`undefined`),e.var(ye.default.parentDataProperty,(0,ae._)`undefined`),e.var(ye.default.rootData,ye.default.data),n.dynamicRef&&e.var(ye.default.dynamicAnchors,(0,ae._)`{}`)})}function g0(e){const{schema:n,opts:i,gen:s}=e;Sd(e,()=>{i.$comment&&n.$comment&&Ld(e),P0(e),s.let(ye.default.vErrors,null),s.let(ye.default.errors,0),i.unevaluated&&v0(e),Cd(e),E0(e)})}function v0(e){const{gen:n,validateName:i}=e;e.evaluated=n.const("evaluated",(0,ae._)`${i}.evaluated`),n.if((0,ae._)`${e.evaluated}.dynamicProps`,()=>n.assign((0,ae._)`${e.evaluated}.props`,(0,ae._)`undefined`)),n.if((0,ae._)`${e.evaluated}.dynamicItems`,()=>n.assign((0,ae._)`${e.evaluated}.items`,(0,ae._)`undefined`))}function sf(e,n){const i=typeof e=="object"&&e[n.schemaId];return i&&(n.code.source||n.code.process)?(0,ae._)`/*# sourceURL=${i} */`:ae.nil}function y0(e,n){if(Td(e)&&(xd(e),Ed(e))){w0(e,n);return}(0,$d.boolOrEmptySchema)(e,n)}function Ed({schema:e,self:n}){if(typeof e=="boolean")return!e;for(const i in e)if(n.RULES.all[i])return!0;return!1}function Td(e){return typeof e.schema!="boolean"}function w0(e,n){const{schema:i,gen:s,opts:a}=e;a.$comment&&i.$comment&&Ld(e),$0(e),S0(e);const l=s.const("_errs",ye.default.errors);Cd(e,l),s.var(n,(0,ae._)`${l} === ${ye.default.errors}`)}function xd(e){(0,Rn.checkUnknownRules)(e),b0(e)}function Cd(e,n){if(e.opts.jtd)return of(e,[],!1,n);const i=(0,rf.getSchemaTypes)(e.schema),s=(0,rf.coerceAndCheckDataType)(e,i);of(e,i,!s,n)}function b0(e){const{schema:n,errSchemaPath:i,opts:s,self:a}=e;n.$ref&&s.ignoreKeywordsWithRef&&(0,Rn.schemaHasRulesButRef)(n,a.RULES)&&a.logger.warn(`$ref: keywords ignored in schema at path "${i}"`)}function P0(e){const{schema:n,opts:i}=e;n.default!==void 0&&i.useDefaults&&i.strictSchema&&(0,Rn.checkStrictMode)(e,"default is ignored in the schema root")}function $0(e){const n=e.schema[e.opts.schemaId];n&&(e.baseId=(0,d0.resolveUrl)(e.opts.uriResolver,e.baseId,n))}function S0(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Ld({gen:e,schemaEnv:n,schema:i,errSchemaPath:s,opts:a}){const l=i.$comment;if(a.$comment===!0)e.code((0,ae._)`${ye.default.self}.logger.log(${l})`);else if(typeof a.$comment=="function"){const u=(0,ae.str)`${s}/$comment`,f=e.scopeValue("root",{ref:n.root});e.code((0,ae._)`${ye.default.self}.opts.$comment(${l}, ${u}, ${f}.schema)`)}}function E0(e){const{gen:n,schemaEnv:i,validateName:s,ValidationError:a,opts:l}=e;i.$async?n.if((0,ae._)`${ye.default.errors} === 0`,()=>n.return(ye.default.data),()=>n.throw((0,ae._)`new ${a}(${ye.default.vErrors})`)):(n.assign((0,ae._)`${s}.errors`,ye.default.vErrors),l.unevaluated&&T0(e),n.return((0,ae._)`${ye.default.errors} === 0`))}function T0({gen:e,evaluated:n,props:i,items:s}){i instanceof ae.Name&&e.assign((0,ae._)`${n}.props`,i),s instanceof ae.Name&&e.assign((0,ae._)`${n}.items`,s)}function of(e,n,i,s){const{gen:a,schema:l,data:u,allErrors:f,opts:h,self:p}=e,{RULES:m}=p;if(l.$ref&&(h.ignoreKeywordsWithRef||!(0,Rn.schemaHasRulesButRef)(l,m))){a.block(()=>Rd(e,"$ref",m.all.$ref.definition));return}h.jtd||x0(e,n),a.block(()=>{for(const y of m.rules)_(y);_(m.post)});function _(y){(0,_l.shouldUseGroup)(l,y)&&(y.type?(a.if((0,Vs.checkDataType)(y.type,u,h.strictNumbers)),af(e,y),n.length===1&&n[0]===y.type&&i&&(a.else(),(0,Vs.reportTypeError)(e)),a.endIf()):af(e,y),f||a.if((0,ae._)`${ye.default.errors} === ${s||0}`))}}function af(e,n){const{gen:i,schema:s,opts:{useDefaults:a}}=e;a&&(0,h0.assignDefaults)(e,n.type),i.block(()=>{for(const l of n.rules)(0,_l.shouldUseRule)(s,l)&&Rd(e,l.keyword,l.definition,n.type)})}function x0(e,n){e.schemaEnv.meta||!e.opts.strictTypes||(C0(e,n),e.opts.allowUnionTypes||L0(e,n),k0(e,e.dataTypes))}function C0(e,n){if(n.length){if(!e.dataTypes.length){e.dataTypes=n;return}n.forEach(i=>{kd(e.dataTypes,i)||gl(e,`type "${i}" not allowed by context "${e.dataTypes.join(",")}"`)}),R0(e,n)}}function L0(e,n){n.length>1&&!(n.length===2&&n.includes("null"))&&gl(e,"use allowUnionTypes to allow union type keyword")}function k0(e,n){const i=e.self.RULES.all;for(const s in i){const a=i[s];if(typeof a=="object"&&(0,_l.shouldUseRule)(e.schema,a)){const{type:l}=a.definition;l.length&&!l.some(u=>O0(n,u))&&gl(e,`missing type "${l.join(",")}" for keyword "${s}"`)}}}function O0(e,n){return e.includes(n)||n==="number"&&e.includes("integer")}function kd(e,n){return e.includes(n)||n==="integer"&&e.includes("number")}function R0(e,n){const i=[];for(const s of e.dataTypes)kd(n,s)?i.push(s):n.includes("integer")&&s==="number"&&i.push("integer");e.dataTypes=i}function gl(e,n){const i=e.schemaEnv.baseId+e.errSchemaPath;n+=` at "${i}" (strictTypes)`,(0,Rn.checkStrictMode)(e,n,e.opts.strictTypes)}class Od{constructor(n,i,s){if((0,Lr.validateKeywordUsage)(n,i,s),this.gen=n.gen,this.allErrors=n.allErrors,this.keyword=s,this.data=n.data,this.schema=n.schema[s],this.$data=i.$data&&n.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Rn.schemaRefOrVal)(n,this.schema,s,this.$data),this.schemaType=i.schemaType,this.parentSchema=n.schema,this.params={},this.it=n,this.def=i,this.$data)this.schemaCode=n.gen.const("vSchema",Md(this.$data,n));else if(this.schemaCode=this.schemaValue,!(0,Lr.validSchemaType)(this.schema,i.schemaType,i.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(i.schemaType)}`);("code"in i?i.trackErrors:i.errors!==!1)&&(this.errsCount=n.gen.const("_errs",ye.default.errors))}result(n,i,s){this.failResult((0,ae.not)(n),i,s)}failResult(n,i,s){this.gen.if(n),s?s():this.error(),i?(this.gen.else(),i(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(n,i){this.failResult((0,ae.not)(n),void 0,i)}fail(n){if(n===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(n),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(n){if(!this.$data)return this.fail(n);const{schemaCode:i}=this;this.fail((0,ae._)`${i} !== undefined && (${(0,ae.or)(this.invalid$data(),n)})`)}error(n,i,s){if(i){this.setParams(i),this._error(n,s),this.setParams({});return}this._error(n,s)}_error(n,i){(n?gr.reportExtraError:gr.reportError)(this,this.def.error,i)}$dataError(){(0,gr.reportError)(this,this.def.$dataError||gr.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,gr.resetErrorsCount)(this.gen,this.errsCount)}ok(n){this.allErrors||this.gen.if(n)}setParams(n,i){i?Object.assign(this.params,n):this.params=n}block$data(n,i,s=ae.nil){this.gen.block(()=>{this.check$data(n,s),i()})}check$data(n=ae.nil,i=ae.nil){if(!this.$data)return;const{gen:s,schemaCode:a,schemaType:l,def:u}=this;s.if((0,ae.or)((0,ae._)`${a} === undefined`,i)),n!==ae.nil&&s.assign(n,!0),(l.length||u.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),n!==ae.nil&&s.assign(n,!1)),s.else()}invalid$data(){const{gen:n,schemaCode:i,schemaType:s,def:a,it:l}=this;return(0,ae.or)(u(),f());function u(){if(s.length){if(!(i instanceof ae.Name))throw new Error("ajv implementation error");const h=Array.isArray(s)?s:[s];return(0,ae._)`${(0,Vs.checkDataTypes)(h,i,l.opts.strictNumbers,Vs.DataType.Wrong)}`}return ae.nil}function f(){if(a.validateSchema){const h=n.scopeValue("validate$data",{ref:a.validateSchema});return(0,ae._)`!${h}(${i})`}return ae.nil}}subschema(n,i){const s=(0,la.getSubschema)(this.it,n);(0,la.extendSubschemaData)(s,this.it,n),(0,la.extendSubschemaMode)(s,n);const a={...this.it,...s,items:void 0,props:void 0};return y0(a,i),a}mergeEvaluated(n,i){const{it:s,gen:a}=this;s.opts.unevaluated&&(s.props!==!0&&n.props!==void 0&&(s.props=Rn.mergeEvaluated.props(a,n.props,s.props,i)),s.items!==!0&&n.items!==void 0&&(s.items=Rn.mergeEvaluated.items(a,n.items,s.items,i)))}mergeValidEvaluated(n,i){const{it:s,gen:a}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return a.if(i,()=>this.mergeEvaluated(n,ae.Name)),!0}}tn.KeywordCxt=Od;function Rd(e,n,i,s){const a=new Od(e,i,n);"code"in i?i.code(a,s):a.$data&&i.validate?(0,Lr.funcKeywordCode)(a,i):"macro"in i?(0,Lr.macroKeywordCode)(a,i):(i.compile||i.validate)&&(0,Lr.funcKeywordCode)(a,i)}const M0=/^\/(?:[^~]|~0|~1)*$/,I0=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Md(e,{dataLevel:n,dataNames:i,dataPathArr:s}){let a,l;if(e==="")return ye.default.rootData;if(e[0]==="/"){if(!M0.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);a=e,l=ye.default.rootData}else{const p=I0.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);const m=+p[1];if(a=p[2],a==="#"){if(m>=n)throw new Error(h("property/index",m));return s[n-m]}if(m>n)throw new Error(h("data",m));if(l=i[n-m],!a)return l}let u=l;const f=a.split("/");for(const p of f)p&&(l=(0,ae._)`${l}${(0,ae.getProperty)((0,Rn.unescapeJsonPointer)(p))}`,u=(0,ae._)`${u} && ${l}`);return u;function h(p,m){return`Cannot access ${p} ${m} levels up, current level is ${n}`}}tn.getData=Md;var Wr={};Object.defineProperty(Wr,"__esModule",{value:!0});class A0 extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}Wr.default=A0;var Xi={};Object.defineProperty(Xi,"__esModule",{value:!0});const ca=vt;class N0 extends Error{constructor(n,i,s,a){super(a||`can't resolve reference ${s} from id ${i}`),this.missingRef=(0,ca.resolveUrl)(n,i,s),this.missingSchema=(0,ca.normalizeId)((0,ca.getFullPath)(n,this.missingRef))}}Xi.default=N0;var zt={};Object.defineProperty(zt,"__esModule",{value:!0});zt.resolveSchema=zt.getCompilingSchema=zt.resolveRef=zt.compileSchema=zt.SchemaEnv=void 0;const Jt=Re,z0=Wr,ui=yn,Xt=vt,lf=re,D0=tn;class ho{constructor(n){var i;this.refs={},this.dynamicAnchors={};let s;typeof n.schema=="object"&&(s=n.schema),this.schema=n.schema,this.schemaId=n.schemaId,this.root=n.root||this,this.baseId=(i=n.baseId)!==null&&i!==void 0?i:(0,Xt.normalizeId)(s==null?void 0:s[n.schemaId||"$id"]),this.schemaPath=n.schemaPath,this.localRefs=n.localRefs,this.meta=n.meta,this.$async=s==null?void 0:s.$async,this.refs={}}}zt.SchemaEnv=ho;function vl(e){const n=Id.call(this,e);if(n)return n;const i=(0,Xt.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:s,lines:a}=this.opts.code,{ownProperties:l}=this.opts,u=new Jt.CodeGen(this.scope,{es5:s,lines:a,ownProperties:l});let f;e.$async&&(f=u.scopeValue("Error",{ref:z0.default,code:(0,Jt._)`require("ajv/dist/runtime/validation_error").default`}));const h=u.scopeName("validate");e.validateName=h;const p={gen:u,allErrors:this.opts.allErrors,data:ui.default.data,parentData:ui.default.parentData,parentDataProperty:ui.default.parentDataProperty,dataNames:[ui.default.data],dataPathArr:[Jt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:u.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Jt.stringify)(e.schema)}:{ref:e.schema}),validateName:h,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:i,baseId:e.baseId||i,schemaPath:Jt.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Jt._)`""`,opts:this.opts,self:this};let m;try{this._compilations.add(e),(0,D0.validateFunctionCode)(p),u.optimize(this.opts.code.optimize);const _=u.toString();m=`${u.scopeRefs(ui.default.scope)}return ${_}`,this.opts.code.process&&(m=this.opts.code.process(m,e));const b=new Function(`${ui.default.self}`,`${ui.default.scope}`,m)(this,this.scope.get());if(this.scope.value(h,{ref:b}),b.errors=null,b.schema=e.schema,b.schemaEnv=e,e.$async&&(b.$async=!0),this.opts.code.source===!0&&(b.source={validateName:h,validateCode:_,scopeValues:u._values}),this.opts.unevaluated){const{props:x,items:T}=p;b.evaluated={props:x instanceof Jt.Name?void 0:x,items:T instanceof Jt.Name?void 0:T,dynamicProps:x instanceof Jt.Name,dynamicItems:T instanceof Jt.Name},b.source&&(b.source.evaluated=(0,Jt.stringify)(b.evaluated))}return e.validate=b,e}catch(_){throw delete e.validate,delete e.validateName,m&&this.logger.error("Error compiling schema, function code:",m),_}finally{this._compilations.delete(e)}}zt.compileSchema=vl;function j0(e,n,i){var s;i=(0,Xt.resolveUrl)(this.opts.uriResolver,n,i);const a=e.refs[i];if(a)return a;let l=F0.call(this,e,i);if(l===void 0){const u=(s=e.localRefs)===null||s===void 0?void 0:s[i],{schemaId:f}=this.opts;u&&(l=new ho({schema:u,schemaId:f,root:e,baseId:n}))}if(l!==void 0)return e.refs[i]=B0.call(this,l)}zt.resolveRef=j0;function B0(e){return(0,Xt.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vl.call(this,e)}function Id(e){for(const n of this._compilations)if(Z0(n,e))return n}zt.getCompilingSchema=Id;function Z0(e,n){return e.schema===n.schema&&e.root===n.root&&e.baseId===n.baseId}function F0(e,n){let i;for(;typeof(i=this.refs[n])=="string";)n=i;return i||this.schemas[n]||po.call(this,e,n)}function po(e,n){const i=this.opts.uriResolver.parse(n),s=(0,Xt._getFullPath)(this.opts.uriResolver,i);let a=(0,Xt.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&s===a)return ua.call(this,i,e);const l=(0,Xt.normalizeId)(s),u=this.refs[l]||this.schemas[l];if(typeof u=="string"){const f=po.call(this,e,u);return typeof(f==null?void 0:f.schema)!="object"?void 0:ua.call(this,i,f)}if(typeof(u==null?void 0:u.schema)=="object"){if(u.validate||vl.call(this,u),l===(0,Xt.normalizeId)(n)){const{schema:f}=u,{schemaId:h}=this.opts,p=f[h];return p&&(a=(0,Xt.resolveUrl)(this.opts.uriResolver,a,p)),new ho({schema:f,schemaId:h,root:e,baseId:a})}return ua.call(this,i,u)}}zt.resolveSchema=po;const V0=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function ua(e,{baseId:n,schema:i,root:s}){var a;if(((a=e.fragment)===null||a===void 0?void 0:a[0])!=="/")return;for(const f of e.fragment.slice(1).split("/")){if(typeof i=="boolean")return;const h=i[(0,lf.unescapeFragment)(f)];if(h===void 0)return;i=h;const p=typeof i=="object"&&i[this.opts.schemaId];!V0.has(f)&&p&&(n=(0,Xt.resolveUrl)(this.opts.uriResolver,n,p))}let l;if(typeof i!="boolean"&&i.$ref&&!(0,lf.schemaHasRulesButRef)(i,this.RULES)){const f=(0,Xt.resolveUrl)(this.opts.uriResolver,n,i.$ref);l=po.call(this,s,f)}const{schemaId:u}=this.opts;if(l=l||new ho({schema:i,schemaId:u,root:s,baseId:n}),l.schema!==l.root.schema)return l}const H0="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",U0="Meta-schema for $data reference (JSON AnySchema extension proposal)",q0="object",W0=["$data"],K0={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},G0=!1,J0={$id:H0,description:U0,type:q0,required:W0,properties:K0,additionalProperties:G0};var yl={},mo={exports:{}};const Y0={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};var X0={HEX:Y0};const{HEX:Q0}=X0;function Ad(e){if(zd(e,".")<3)return{host:e,isIPV4:!1};const n=e.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[i]=n;return i?{host:tw(i,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function Aa(e,n=!1){let i="",s=!0;for(const a of e){if(Q0[a]===void 0)return;a!=="0"&&s===!0&&(s=!1),s||(i+=a)}return n&&i.length===0&&(i="0"),i}function ew(e){let n=0;const i={error:!1,address:"",zone:""},s=[],a=[];let l=!1,u=!1,f=!1;function h(){if(a.length){if(l===!1){const p=Aa(a);if(p!==void 0)s.push(p);else return i.error=!0,!1}a.length=0}return!0}for(let p=0;p7){i.error=!0;break}p-1>=0&&e[p-1]===":"&&(u=!0);continue}else if(m==="%"){if(!h())break;l=!0}else{a.push(m);continue}}return a.length&&(l?i.zone=a.join(""):f?s.push(a.join("")):s.push(Aa(a))),i.address=s.join(""),i}function Nd(e,n={}){if(zd(e,":")<2)return{host:e,isIPV6:!1};const i=ew(e);if(i.error)return{host:e,isIPV6:!1};{let s=i.address,a=i.address;return i.zone&&(s+="%"+i.zone,a+="%25"+i.zone),{host:s,escapedHost:a,isIPV6:!0}}}function tw(e,n){let i="",s=!0;const a=e.length;for(let l=0;l/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(n)));function xw(e){let n=0;for(let i=0,s=e.length;i126||Tw[n])return!0;return!1}const Cw=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Mn(e,n){const i=Object.assign({},n),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},a=e.indexOf("%")!==-1;let l=!1;i.reference==="suffix"&&(e=(i.scheme?i.scheme+":":"")+"//"+e);const u=e.match(Cw);if(u){if(s.scheme=u[1],s.userinfo=u[3],s.host=u[4],s.port=parseInt(u[5],10),s.path=u[6]||"",s.query=u[7],s.fragment=u[8],isNaN(s.port)&&(s.port=u[5]),s.host){const h=bw(s.host);if(h.isIPV4===!1){const p=ww(h.host,{isIPV4:!1});s.host=p.host.toLowerCase(),l=p.isIPV6}else s.host=h.host,l=!0}s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&!s.path&&s.query===void 0?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",i.reference&&i.reference!=="suffix"&&i.reference!==s.reference&&(s.error=s.error||"URI is not a "+i.reference+" reference.");const f=bl[(i.scheme||s.scheme||"").toLowerCase()];if(!i.unicodeSupport&&(!f||!f.unicodeSupport)&&s.host&&(i.domainHost||f&&f.domainHost)&&l===!1&&xw(s.host))try{s.host=URL.domainToASCII(s.host.toLowerCase())}catch(h){s.error=s.error||"Host's domain name can not be converted to ASCII: "+h}(!f||f&&!f.skipNormalize)&&(a&&s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),a&&s.userinfo!==void 0&&(s.userinfo=unescape(s.userinfo)),a&&s.host!==void 0&&(s.host=unescape(s.host)),s.path!==void 0&&s.path.length&&(s.path=escape(unescape(s.path))),s.fragment!==void 0&&s.fragment.length&&(s.fragment=encodeURI(decodeURIComponent(s.fragment)))),f&&f.parse&&f.parse(s,i)}else s.error=s.error||"URI can not be parsed.";return s}const Pl={SCHEMES:bl,normalize:$w,resolve:Sw,resolveComponents:Fd,equal:Ew,serialize:gn,parse:Mn};mo.exports=Pl;mo.exports.default=Pl;mo.exports.fastUri=Pl;var Lw=mo.exports;Object.defineProperty(yl,"__esModule",{value:!0});const Vd=Lw;Vd.code='require("ajv/dist/runtime/uri").default';yl.default=Vd;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var n=tn;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=Re;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const s=Wr,a=Xi,l=wi,u=zt,f=Re,h=vt,p=lt,m=re,_=J0,y=yl,b=(Z,O)=>new RegExp(Z,O);b.code="new RegExp";const x=["removeAdditional","useDefaults","coerceTypes"],T=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),C={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},P={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function z(Z){var O,F,A,v,$,M,R,j,H,J,he,Ie,w,S,N,U,V,W,ee,X,Y,K,le,ne,se;const ue=Z.strict,$e=(O=Z.code)===null||O===void 0?void 0:O.optimize,ze=$e===!0||$e===void 0?1:$e||0,Ae=(A=(F=Z.code)===null||F===void 0?void 0:F.regExp)!==null&&A!==void 0?A:b,ht=(v=Z.uriResolver)!==null&&v!==void 0?v:y.default;return{strictSchema:(M=($=Z.strictSchema)!==null&&$!==void 0?$:ue)!==null&&M!==void 0?M:!0,strictNumbers:(j=(R=Z.strictNumbers)!==null&&R!==void 0?R:ue)!==null&&j!==void 0?j:!0,strictTypes:(J=(H=Z.strictTypes)!==null&&H!==void 0?H:ue)!==null&&J!==void 0?J:"log",strictTuples:(Ie=(he=Z.strictTuples)!==null&&he!==void 0?he:ue)!==null&&Ie!==void 0?Ie:"log",strictRequired:(S=(w=Z.strictRequired)!==null&&w!==void 0?w:ue)!==null&&S!==void 0?S:!1,code:Z.code?{...Z.code,optimize:ze,regExp:Ae}:{optimize:ze,regExp:Ae},loopRequired:(N=Z.loopRequired)!==null&&N!==void 0?N:k,loopEnum:(U=Z.loopEnum)!==null&&U!==void 0?U:k,meta:(V=Z.meta)!==null&&V!==void 0?V:!0,messages:(W=Z.messages)!==null&&W!==void 0?W:!0,inlineRefs:(ee=Z.inlineRefs)!==null&&ee!==void 0?ee:!0,schemaId:(X=Z.schemaId)!==null&&X!==void 0?X:"$id",addUsedSchema:(Y=Z.addUsedSchema)!==null&&Y!==void 0?Y:!0,validateSchema:(K=Z.validateSchema)!==null&&K!==void 0?K:!0,validateFormats:(le=Z.validateFormats)!==null&&le!==void 0?le:!0,unicodeRegExp:(ne=Z.unicodeRegExp)!==null&&ne!==void 0?ne:!0,int32range:(se=Z.int32range)!==null&&se!==void 0?se:!0,uriResolver:ht}}class B{constructor(O={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,O=this.opts={...O,...z(O)};const{es5:F,lines:A}=this.opts.code;this.scope=new f.ValueScope({scope:{},prefixes:T,es5:F,lines:A}),this.logger=Q(O.logger);const v=O.validateFormats;O.validateFormats=!1,this.RULES=(0,l.getRules)(),G.call(this,C,O,"NOT SUPPORTED"),G.call(this,P,O,"DEPRECATED","warn"),this._metaOpts=be.call(this),O.formats&&Ze.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),O.keywords&&fe.call(this,O.keywords),typeof O.meta=="object"&&this.addMetaSchema(O.meta),de.call(this),O.validateFormats=v}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:O,meta:F,schemaId:A}=this.opts;let v=_;A==="id"&&(v={..._},v.id=v.$id,delete v.$id),F&&O&&this.addMetaSchema(v,v[A],!1)}defaultMeta(){const{meta:O,schemaId:F}=this.opts;return this.opts.defaultMeta=typeof O=="object"?O[F]||O:void 0}validate(O,F){let A;if(typeof O=="string"){if(A=this.getSchema(O),!A)throw new Error(`no schema with key or ref "${O}"`)}else A=this.compile(O);const v=A(F);return"$async"in A||(this.errors=A.errors),v}compile(O,F){const A=this._addSchema(O,F);return A.validate||this._compileSchemaEnv(A)}compileAsync(O,F){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:A}=this.opts;return v.call(this,O,F);async function v(J,he){await $.call(this,J.$schema);const Ie=this._addSchema(J,he);return Ie.validate||M.call(this,Ie)}async function $(J){J&&!this.getSchema(J)&&await v.call(this,{$ref:J},!0)}async function M(J){try{return this._compileSchemaEnv(J)}catch(he){if(!(he instanceof a.default))throw he;return R.call(this,he),await j.call(this,he.missingSchema),M.call(this,J)}}function R({missingSchema:J,missingRef:he}){if(this.refs[J])throw new Error(`AnySchema ${J} is loaded but ${he} cannot be resolved`)}async function j(J){const he=await H.call(this,J);this.refs[J]||await $.call(this,he.$schema),this.refs[J]||this.addSchema(he,J,F)}async function H(J){const he=this._loading[J];if(he)return he;try{return await(this._loading[J]=A(J))}finally{delete this._loading[J]}}}addSchema(O,F,A,v=this.opts.validateSchema){if(Array.isArray(O)){for(const M of O)this.addSchema(M,void 0,A,v);return this}let $;if(typeof O=="object"){const{schemaId:M}=this.opts;if($=O[M],$!==void 0&&typeof $!="string")throw new Error(`schema ${M} must be string`)}return F=(0,h.normalizeId)(F||$),this._checkUnique(F),this.schemas[F]=this._addSchema(O,A,F,v,!0),this}addMetaSchema(O,F,A=this.opts.validateSchema){return this.addSchema(O,F,!0,A),this}validateSchema(O,F){if(typeof O=="boolean")return!0;let A;if(A=O.$schema,A!==void 0&&typeof A!="string")throw new Error("$schema must be a string");if(A=A||this.opts.defaultMeta||this.defaultMeta(),!A)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const v=this.validate(A,O);if(!v&&F){const $="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error($);else throw new Error($)}return v}getSchema(O){let F;for(;typeof(F=oe.call(this,O))=="string";)O=F;if(F===void 0){const{schemaId:A}=this.opts,v=new u.SchemaEnv({schema:{},schemaId:A});if(F=u.resolveSchema.call(this,v,O),!F)return;this.refs[O]=F}return F.validate||this._compileSchemaEnv(F)}removeSchema(O){if(O instanceof RegExp)return this._removeAllSchemas(this.schemas,O),this._removeAllSchemas(this.refs,O),this;switch(typeof O){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const F=oe.call(this,O);return typeof F=="object"&&this._cache.delete(F.schema),delete this.schemas[O],delete this.refs[O],this}case"object":{const F=O;this._cache.delete(F);let A=O[this.opts.schemaId];return A&&(A=(0,h.normalizeId)(A),delete this.schemas[A],delete this.refs[A]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(O){for(const F of O)this.addKeyword(F);return this}addKeyword(O,F){let A;if(typeof O=="string")A=O,typeof F=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),F.keyword=A);else if(typeof O=="object"&&F===void 0){if(F=O,A=F.keyword,Array.isArray(A)&&!A.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Me.call(this,A,F),!F)return(0,m.eachItem)(A,$=>ot.call(this,$)),this;Ce.call(this,F);const v={...F,type:(0,p.getJSONTypes)(F.type),schemaType:(0,p.getJSONTypes)(F.schemaType)};return(0,m.eachItem)(A,v.type.length===0?$=>ot.call(this,$,v):$=>v.type.forEach(M=>ot.call(this,$,v,M))),this}getKeyword(O){const F=this.RULES.all[O];return typeof F=="object"?F.definition:!!F}removeKeyword(O){const{RULES:F}=this;delete F.keywords[O],delete F.all[O];for(const A of F.rules){const v=A.rules.findIndex($=>$.keyword===O);v>=0&&A.rules.splice(v,1)}return this}addFormat(O,F){return typeof F=="string"&&(F=new RegExp(F)),this.formats[O]=F,this}errorsText(O=this.errors,{separator:F=", ",dataVar:A="data"}={}){return!O||O.length===0?"No errors":O.map(v=>`${A}${v.instancePath} ${v.message}`).reduce((v,$)=>v+F+$)}$dataMetaSchema(O,F){const A=this.RULES.all;O=JSON.parse(JSON.stringify(O));for(const v of F){const $=v.split("/").slice(1);let M=O;for(const R of $)M=M[R];for(const R in A){const j=A[R];if(typeof j!="object")continue;const{$data:H}=j.definition,J=M[R];H&&J&&(M[R]=mt(J))}}return O}_removeAllSchemas(O,F){for(const A in O){const v=O[A];(!F||F.test(A))&&(typeof v=="string"?delete O[A]:v&&!v.meta&&(this._cache.delete(v.schema),delete O[A]))}}_addSchema(O,F,A,v=this.opts.validateSchema,$=this.opts.addUsedSchema){let M;const{schemaId:R}=this.opts;if(typeof O=="object")M=O[R];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof O!="boolean")throw new Error("schema must be object or boolean")}let j=this._cache.get(O);if(j!==void 0)return j;A=(0,h.normalizeId)(M||A);const H=h.getSchemaRefs.call(this,O,A);return j=new u.SchemaEnv({schema:O,schemaId:R,meta:F,baseId:A,localRefs:H}),this._cache.set(j.schema,j),$&&!A.startsWith("#")&&(A&&this._checkUnique(A),this.refs[A]=j),v&&this.validateSchema(O,!0),j}_checkUnique(O){if(this.schemas[O]||this.refs[O])throw new Error(`schema with key or id "${O}" already exists`)}_compileSchemaEnv(O){if(O.meta?this._compileMetaSchema(O):u.compileSchema.call(this,O),!O.validate)throw new Error("ajv implementation error");return O.validate}_compileMetaSchema(O){const F=this.opts;this.opts=this._metaOpts;try{u.compileSchema.call(this,O)}finally{this.opts=F}}}B.ValidationError=s.default,B.MissingRefError=a.default,e.default=B;function G(Z,O,F,A="error"){for(const v in Z){const $=v;$ in O&&this.logger[A](`${F}: option ${v}. ${Z[$]}`)}}function oe(Z){return Z=(0,h.normalizeId)(Z),this.schemas[Z]||this.refs[Z]}function de(){const Z=this.opts.schemas;if(Z)if(Array.isArray(Z))this.addSchema(Z);else for(const O in Z)this.addSchema(Z[O],O)}function Ze(){for(const Z in this.opts.formats){const O=this.opts.formats[Z];O&&this.addFormat(Z,O)}}function fe(Z){if(Array.isArray(Z)){this.addVocabulary(Z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const O in Z){const F=Z[O];F.keyword||(F.keyword=O),this.addKeyword(F)}}function be(){const Z={...this.opts};for(const O of x)delete Z[O];return Z}const ve={log(){},warn(){},error(){}};function Q(Z){if(Z===!1)return ve;if(Z===void 0)return console;if(Z.log&&Z.warn&&Z.error)return Z;throw new Error("logger must implement log, warn and error methods")}const xe=/^[a-z_$][a-z0-9_$:-]*$/i;function Me(Z,O){const{RULES:F}=this;if((0,m.eachItem)(Z,A=>{if(F.keywords[A])throw new Error(`Keyword ${A} is already defined`);if(!xe.test(A))throw new Error(`Keyword ${A} has invalid name`)}),!!O&&O.$data&&!("code"in O||"validate"in O))throw new Error('$data keyword must have "code" or "validate" function')}function ot(Z,O,F){var A;const v=O==null?void 0:O.post;if(F&&v)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:$}=this;let M=v?$.post:$.rules.find(({type:j})=>j===F);if(M||(M={type:F,rules:[]},$.rules.push(M)),$.keywords[Z]=!0,!O)return;const R={keyword:Z,definition:{...O,type:(0,p.getJSONTypes)(O.type),schemaType:(0,p.getJSONTypes)(O.schemaType)}};O.before?Ee.call(this,M,R,O.before):M.rules.push(R),$.all[Z]=R,(A=O.implements)===null||A===void 0||A.forEach(j=>this.addKeyword(j))}function Ee(Z,O,F){const A=Z.rules.findIndex(v=>v.keyword===F);A>=0?Z.rules.splice(A,0,O):(Z.rules.push(O),this.logger.warn(`rule ${F} is not defined`))}function Ce(Z){let{metaSchema:O}=Z;O!==void 0&&(Z.$data&&this.opts.$data&&(O=mt(O)),Z.validateSchema=this.compile(O,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function mt(Z){return{anyOf:[Z,te]}}})(nd);var $l={},Sl={},El={};Object.defineProperty(El,"__esModule",{value:!0});const kw={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};El.default=kw;var bi={};Object.defineProperty(bi,"__esModule",{value:!0});bi.callRef=bi.getValidate=void 0;const Ow=Xi,hf=Oe,Nt=Re,Ii=yn,df=zt,$s=re,Rw={keyword:"$ref",schemaType:"string",code(e){const{gen:n,schema:i,it:s}=e,{baseId:a,schemaEnv:l,validateName:u,opts:f,self:h}=s,{root:p}=l;if((i==="#"||i==="#/")&&a===p.baseId)return _();const m=df.resolveRef.call(h,p,a,i);if(m===void 0)throw new Ow.default(s.opts.uriResolver,a,i);if(m instanceof df.SchemaEnv)return y(m);return b(m);function _(){if(l===p)return As(e,u,l,l.$async);const x=n.scopeValue("root",{ref:p});return As(e,(0,Nt._)`${x}.validate`,p,p.$async)}function y(x){const T=Hd(e,x);As(e,T,x,x.$async)}function b(x){const T=n.scopeValue("schema",f.code.source===!0?{ref:x,code:(0,Nt.stringify)(x)}:{ref:x}),C=n.name("valid"),P=e.subschema({schema:x,dataTypes:[],schemaPath:Nt.nil,topSchemaRef:T,errSchemaPath:i},C);e.mergeEvaluated(P),e.ok(C)}}};function Hd(e,n){const{gen:i}=e;return n.validate?i.scopeValue("validate",{ref:n.validate}):(0,Nt._)`${i.scopeValue("wrapper",{ref:n})}.validate`}bi.getValidate=Hd;function As(e,n,i,s){const{gen:a,it:l}=e,{allErrors:u,schemaEnv:f,opts:h}=l,p=h.passContext?Ii.default.this:Nt.nil;s?m():_();function m(){if(!f.$async)throw new Error("async schema referenced by sync schema");const x=a.let("valid");a.try(()=>{a.code((0,Nt._)`await ${(0,hf.callValidateCode)(e,n,p)}`),b(n),u||a.assign(x,!0)},T=>{a.if((0,Nt._)`!(${T} instanceof ${l.ValidationError})`,()=>a.throw(T)),y(T),u||a.assign(x,!1)}),e.ok(x)}function _(){e.result((0,hf.callValidateCode)(e,n,p),()=>b(n),()=>y(n))}function y(x){const T=(0,Nt._)`${x}.errors`;a.assign(Ii.default.vErrors,(0,Nt._)`${Ii.default.vErrors} === null ? ${T} : ${Ii.default.vErrors}.concat(${T})`),a.assign(Ii.default.errors,(0,Nt._)`${Ii.default.vErrors}.length`)}function b(x){var T;if(!l.opts.unevaluated)return;const C=(T=i==null?void 0:i.validate)===null||T===void 0?void 0:T.evaluated;if(l.props!==!0)if(C&&!C.dynamicProps)C.props!==void 0&&(l.props=$s.mergeEvaluated.props(a,C.props,l.props));else{const P=a.var("props",(0,Nt._)`${x}.evaluated.props`);l.props=$s.mergeEvaluated.props(a,P,l.props,Nt.Name)}if(l.items!==!0)if(C&&!C.dynamicItems)C.items!==void 0&&(l.items=$s.mergeEvaluated.items(a,C.items,l.items));else{const P=a.var("items",(0,Nt._)`${x}.evaluated.items`);l.items=$s.mergeEvaluated.items(a,P,l.items,Nt.Name)}}}bi.callRef=As;bi.default=Rw;Object.defineProperty(Sl,"__esModule",{value:!0});const Mw=El,Iw=bi,Aw=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Mw.default,Iw.default];Sl.default=Aw;var Tl={},xl={};Object.defineProperty(xl,"__esModule",{value:!0});const Hs=Re,Vn=Hs.operators,Us={maximum:{okStr:"<=",ok:Vn.LTE,fail:Vn.GT},minimum:{okStr:">=",ok:Vn.GTE,fail:Vn.LT},exclusiveMaximum:{okStr:"<",ok:Vn.LT,fail:Vn.GTE},exclusiveMinimum:{okStr:">",ok:Vn.GT,fail:Vn.LTE}},Nw={message:({keyword:e,schemaCode:n})=>(0,Hs.str)`must be ${Us[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,Hs._)`{comparison: ${Us[e].okStr}, limit: ${n}}`},zw={keyword:Object.keys(Us),type:"number",schemaType:"number",$data:!0,error:Nw,code(e){const{keyword:n,data:i,schemaCode:s}=e;e.fail$data((0,Hs._)`${i} ${Us[n].fail} ${s} || isNaN(${i})`)}};xl.default=zw;var Cl={};Object.defineProperty(Cl,"__esModule",{value:!0});const kr=Re,Dw={message:({schemaCode:e})=>(0,kr.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,kr._)`{multipleOf: ${e}}`},jw={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Dw,code(e){const{gen:n,data:i,schemaCode:s,it:a}=e,l=a.opts.multipleOfPrecision,u=n.let("res"),f=l?(0,kr._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${l}`:(0,kr._)`${u} !== parseInt(${u})`;e.fail$data((0,kr._)`(${s} === 0 || (${u} = ${i}/${s}, ${f}))`)}};Cl.default=jw;var Ll={},kl={};Object.defineProperty(kl,"__esModule",{value:!0});function Ud(e){const n=e.length;let i=0,s=0,a;for(;s=55296&&a<=56319&&s(0,pi._)`{limit: ${e}}`},Vw={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Fw,code(e){const{keyword:n,data:i,schemaCode:s,it:a}=e,l=n==="maxLength"?pi.operators.GT:pi.operators.LT,u=a.opts.unicode===!1?(0,pi._)`${i}.length`:(0,pi._)`${(0,Bw.useFunc)(e.gen,Zw.default)}(${i})`;e.fail$data((0,pi._)`${u} ${l} ${s}`)}};Ll.default=Vw;var Ol={};Object.defineProperty(Ol,"__esModule",{value:!0});const Hw=Oe,qs=Re,Uw={message:({schemaCode:e})=>(0,qs.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,qs._)`{pattern: ${e}}`},qw={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Uw,code(e){const{data:n,$data:i,schema:s,schemaCode:a,it:l}=e,u=l.opts.unicodeRegExp?"u":"",f=i?(0,qs._)`(new RegExp(${a}, ${u}))`:(0,Hw.usePattern)(e,s);e.fail$data((0,qs._)`!${f}.test(${n})`)}};Ol.default=qw;var Rl={};Object.defineProperty(Rl,"__esModule",{value:!0});const Or=Re,Ww={message({keyword:e,schemaCode:n}){const i=e==="maxProperties"?"more":"fewer";return(0,Or.str)`must NOT have ${i} than ${n} properties`},params:({schemaCode:e})=>(0,Or._)`{limit: ${e}}`},Kw={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Ww,code(e){const{keyword:n,data:i,schemaCode:s}=e,a=n==="maxProperties"?Or.operators.GT:Or.operators.LT;e.fail$data((0,Or._)`Object.keys(${i}).length ${a} ${s}`)}};Rl.default=Kw;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});const vr=Oe,Rr=Re,Gw=re,Jw={message:({params:{missingProperty:e}})=>(0,Rr.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Rr._)`{missingProperty: ${e}}`},Yw={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Jw,code(e){const{gen:n,schema:i,schemaCode:s,data:a,$data:l,it:u}=e,{opts:f}=u;if(!l&&i.length===0)return;const h=i.length>=f.loopRequired;if(u.allErrors?p():m(),f.strictRequired){const b=e.parentSchema.properties,{definedProperties:x}=e.it;for(const T of i)if((b==null?void 0:b[T])===void 0&&!x.has(T)){const C=u.schemaEnv.baseId+u.errSchemaPath,P=`required property "${T}" is not defined at "${C}" (strictRequired)`;(0,Gw.checkStrictMode)(u,P,u.opts.strictRequired)}}function p(){if(h||l)e.block$data(Rr.nil,_);else for(const b of i)(0,vr.checkReportMissingProp)(e,b)}function m(){const b=n.let("missing");if(h||l){const x=n.let("valid",!0);e.block$data(x,()=>y(b,x)),e.ok(x)}else n.if((0,vr.checkMissingProp)(e,i,b)),(0,vr.reportMissingProp)(e,b),n.else()}function _(){n.forOf("prop",s,b=>{e.setParams({missingProperty:b}),n.if((0,vr.noPropertyInData)(n,a,b,f.ownProperties),()=>e.error())})}function y(b,x){e.setParams({missingProperty:b}),n.forOf(b,s,()=>{n.assign(x,(0,vr.propertyInData)(n,a,b,f.ownProperties)),n.if((0,Rr.not)(x),()=>{e.error(),n.break()})},Rr.nil)}}};Ml.default=Yw;var Il={};Object.defineProperty(Il,"__esModule",{value:!0});const Mr=Re,Xw={message({keyword:e,schemaCode:n}){const i=e==="maxItems"?"more":"fewer";return(0,Mr.str)`must NOT have ${i} than ${n} items`},params:({schemaCode:e})=>(0,Mr._)`{limit: ${e}}`},Qw={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Xw,code(e){const{keyword:n,data:i,schemaCode:s}=e,a=n==="maxItems"?Mr.operators.GT:Mr.operators.LT;e.fail$data((0,Mr._)`${i}.length ${a} ${s}`)}};Il.default=Qw;var Al={},Kr={};Object.defineProperty(Kr,"__esModule",{value:!0});const qd=vd;qd.code='require("ajv/dist/runtime/equal").default';Kr.default=qd;Object.defineProperty(Al,"__esModule",{value:!0});const fa=lt,gt=Re,eb=re,tb=Kr,nb={message:({params:{i:e,j:n}})=>(0,gt.str)`must NOT have duplicate items (items ## ${n} and ${e} are identical)`,params:({params:{i:e,j:n}})=>(0,gt._)`{i: ${e}, j: ${n}}`},ib={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:nb,code(e){const{gen:n,data:i,$data:s,schema:a,parentSchema:l,schemaCode:u,it:f}=e;if(!s&&!a)return;const h=n.let("valid"),p=l.items?(0,fa.getSchemaTypes)(l.items):[];e.block$data(h,m,(0,gt._)`${u} === false`),e.ok(h);function m(){const x=n.let("i",(0,gt._)`${i}.length`),T=n.let("j");e.setParams({i:x,j:T}),n.assign(h,!0),n.if((0,gt._)`${x} > 1`,()=>(_()?y:b)(x,T))}function _(){return p.length>0&&!p.some(x=>x==="object"||x==="array")}function y(x,T){const C=n.name("item"),P=(0,fa.checkDataTypes)(p,C,f.opts.strictNumbers,fa.DataType.Wrong),k=n.const("indices",(0,gt._)`{}`);n.for((0,gt._)`;${x}--;`,()=>{n.let(C,(0,gt._)`${i}[${x}]`),n.if(P,(0,gt._)`continue`),p.length>1&&n.if((0,gt._)`typeof ${C} == "string"`,(0,gt._)`${C} += "_"`),n.if((0,gt._)`typeof ${k}[${C}] == "number"`,()=>{n.assign(T,(0,gt._)`${k}[${C}]`),e.error(),n.assign(h,!1).break()}).code((0,gt._)`${k}[${C}] = ${x}`)})}function b(x,T){const C=(0,eb.useFunc)(n,tb.default),P=n.name("outer");n.label(P).for((0,gt._)`;${x}--;`,()=>n.for((0,gt._)`${T} = ${x}; ${T}--;`,()=>n.if((0,gt._)`${C}(${i}[${x}], ${i}[${T}])`,()=>{e.error(),n.assign(h,!1).break(P)})))}}};Al.default=ib;var Nl={};Object.defineProperty(Nl,"__esModule",{value:!0});const Na=Re,rb=re,sb=Kr,ob={message:"must be equal to constant",params:({schemaCode:e})=>(0,Na._)`{allowedValue: ${e}}`},ab={keyword:"const",$data:!0,error:ob,code(e){const{gen:n,data:i,$data:s,schemaCode:a,schema:l}=e;s||l&&typeof l=="object"?e.fail$data((0,Na._)`!${(0,rb.useFunc)(n,sb.default)}(${i}, ${a})`):e.fail((0,Na._)`${l} !== ${i}`)}};Nl.default=ab;var zl={};Object.defineProperty(zl,"__esModule",{value:!0});const br=Re,lb=re,cb=Kr,ub={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,br._)`{allowedValues: ${e}}`},fb={keyword:"enum",schemaType:"array",$data:!0,error:ub,code(e){const{gen:n,data:i,$data:s,schema:a,schemaCode:l,it:u}=e;if(!s&&a.length===0)throw new Error("enum must have non-empty array");const f=a.length>=u.opts.loopEnum;let h;const p=()=>h??(h=(0,lb.useFunc)(n,cb.default));let m;if(f||s)m=n.let("valid"),e.block$data(m,_);else{if(!Array.isArray(a))throw new Error("ajv implementation error");const b=n.const("vSchema",l);m=(0,br.or)(...a.map((x,T)=>y(b,T)))}e.pass(m);function _(){n.assign(m,!1),n.forOf("v",l,b=>n.if((0,br._)`${p()}(${i}, ${b})`,()=>n.assign(m,!0).break()))}function y(b,x){const T=a[x];return typeof T=="object"&&T!==null?(0,br._)`${p()}(${i}, ${b}[${x}])`:(0,br._)`${i} === ${T}`}}};zl.default=fb;Object.defineProperty(Tl,"__esModule",{value:!0});const hb=xl,db=Cl,pb=Ll,mb=Ol,_b=Rl,gb=Ml,vb=Il,yb=Al,wb=Nl,bb=zl,Pb=[hb.default,db.default,pb.default,mb.default,_b.default,gb.default,vb.default,yb.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},wb.default,bb.default];Tl.default=Pb;var Dl={},Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});Qi.validateAdditionalItems=void 0;const mi=Re,za=re,$b={message:({params:{len:e}})=>(0,mi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mi._)`{limit: ${e}}`},Sb={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:$b,code(e){const{parentSchema:n,it:i}=e,{items:s}=n;if(!Array.isArray(s)){(0,za.checkStrictMode)(i,'"additionalItems" is ignored when "items" is not an array of schemas');return}Wd(e,s)}};function Wd(e,n){const{gen:i,schema:s,data:a,keyword:l,it:u}=e;u.items=!0;const f=i.const("len",(0,mi._)`${a}.length`);if(s===!1)e.setParams({len:n.length}),e.pass((0,mi._)`${f} <= ${n.length}`);else if(typeof s=="object"&&!(0,za.alwaysValidSchema)(u,s)){const p=i.var("valid",(0,mi._)`${f} <= ${n.length}`);i.if((0,mi.not)(p),()=>h(p)),e.ok(p)}function h(p){i.forRange("i",n.length,f,m=>{e.subschema({keyword:l,dataProp:m,dataPropType:za.Type.Num},p),u.allErrors||i.if((0,mi.not)(p),()=>i.break())})}}Qi.validateAdditionalItems=Wd;Qi.default=Sb;var jl={},er={};Object.defineProperty(er,"__esModule",{value:!0});er.validateTuple=void 0;const pf=Re,Ns=re,Eb=Oe,Tb={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:n,it:i}=e;if(Array.isArray(n))return Kd(e,"additionalItems",n);i.items=!0,!(0,Ns.alwaysValidSchema)(i,n)&&e.ok((0,Eb.validateArray)(e))}};function Kd(e,n,i=e.schema){const{gen:s,parentSchema:a,data:l,keyword:u,it:f}=e;m(a),f.opts.unevaluated&&i.length&&f.items!==!0&&(f.items=Ns.mergeEvaluated.items(s,i.length,f.items));const h=s.name("valid"),p=s.const("len",(0,pf._)`${l}.length`);i.forEach((_,y)=>{(0,Ns.alwaysValidSchema)(f,_)||(s.if((0,pf._)`${p} > ${y}`,()=>e.subschema({keyword:u,schemaProp:y,dataProp:y},h)),e.ok(h))});function m(_){const{opts:y,errSchemaPath:b}=f,x=i.length,T=x===_.minItems&&(x===_.maxItems||_[n]===!1);if(y.strictTuples&&!T){const C=`"${u}" is ${x}-tuple, but minItems or maxItems/${n} are not specified or different at path "${b}"`;(0,Ns.checkStrictMode)(f,C,y.strictTuples)}}}er.validateTuple=Kd;er.default=Tb;Object.defineProperty(jl,"__esModule",{value:!0});const xb=er,Cb={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,xb.validateTuple)(e,"items")};jl.default=Cb;var Bl={};Object.defineProperty(Bl,"__esModule",{value:!0});const mf=Re,Lb=re,kb=Oe,Ob=Qi,Rb={message:({params:{len:e}})=>(0,mf.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mf._)`{limit: ${e}}`},Mb={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Rb,code(e){const{schema:n,parentSchema:i,it:s}=e,{prefixItems:a}=i;s.items=!0,!(0,Lb.alwaysValidSchema)(s,n)&&(a?(0,Ob.validateAdditionalItems)(e,a):e.ok((0,kb.validateArray)(e)))}};Bl.default=Mb;var Zl={};Object.defineProperty(Zl,"__esModule",{value:!0});const qt=Re,Ss=re,Ib={message:({params:{min:e,max:n}})=>n===void 0?(0,qt.str)`must contain at least ${e} valid item(s)`:(0,qt.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,qt._)`{minContains: ${e}}`:(0,qt._)`{minContains: ${e}, maxContains: ${n}}`},Ab={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Ib,code(e){const{gen:n,schema:i,parentSchema:s,data:a,it:l}=e;let u,f;const{minContains:h,maxContains:p}=s;l.opts.next?(u=h===void 0?1:h,f=p):u=1;const m=n.const("len",(0,qt._)`${a}.length`);if(e.setParams({min:u,max:f}),f===void 0&&u===0){(0,Ss.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(f!==void 0&&u>f){(0,Ss.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ss.alwaysValidSchema)(l,i)){let T=(0,qt._)`${m} >= ${u}`;f!==void 0&&(T=(0,qt._)`${T} && ${m} <= ${f}`),e.pass(T);return}l.items=!0;const _=n.name("valid");f===void 0&&u===1?b(_,()=>n.if(_,()=>n.break())):u===0?(n.let(_,!0),f!==void 0&&n.if((0,qt._)`${a}.length > 0`,y)):(n.let(_,!1),y()),e.result(_,()=>e.reset());function y(){const T=n.name("_valid"),C=n.let("count",0);b(T,()=>n.if(T,()=>x(C)))}function b(T,C){n.forRange("i",0,m,P=>{e.subschema({keyword:"contains",dataProp:P,dataPropType:Ss.Type.Num,compositeRule:!0},T),C()})}function x(T){n.code((0,qt._)`${T}++`),f===void 0?n.if((0,qt._)`${T} >= ${u}`,()=>n.assign(_,!0).break()):(n.if((0,qt._)`${T} > ${f}`,()=>n.assign(_,!1).break()),u===1?n.assign(_,!0):n.if((0,qt._)`${T} >= ${u}`,()=>n.assign(_,!0)))}}};Zl.default=Ab;var Gd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const n=Re,i=re,s=Oe;e.error={message:({params:{property:h,depsCount:p,deps:m}})=>{const _=p===1?"property":"properties";return(0,n.str)`must have ${_} ${m} when property ${h} is present`},params:({params:{property:h,depsCount:p,deps:m,missingProperty:_}})=>(0,n._)`{property: ${h}, missingProperty: ${_}, depsCount: ${p}, - deps: ${m}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(h){const[p,m]=l(h);u(h,p),f(h,m)}};function l({schema:h}){const p={},m={};for(const _ in h){if(_==="__proto__")continue;const y=Array.isArray(h[_])?p:m;y[_]=h[_]}return[p,m]}function u(h,p=h.schema){const{gen:m,data:_,it:y}=h;if(Object.keys(p).length===0)return;const b=m.let("missing");for(const x in p){const T=p[x];if(T.length===0)continue;const C=(0,s.propertyInData)(m,_,x,y.opts.ownProperties);h.setParams({property:x,depsCount:T.length,deps:T.join(", ")}),y.allErrors?m.if(C,()=>{for(const P of T)(0,s.checkReportMissingProp)(h,P)}):(m.if((0,n._)`${C} && (${(0,s.checkMissingProp)(h,T,b)})`),(0,s.reportMissingProp)(h,b),m.else())}}e.validatePropertyDeps=u;function f(h,p=h.schema){const{gen:m,data:_,keyword:y,it:b}=h,x=m.name("valid");for(const T in p)(0,i.alwaysValidSchema)(b,p[T])||(m.if((0,s.propertyInData)(m,_,T,b.opts.ownProperties),()=>{const C=h.subschema({keyword:y,schemaProp:T},x);h.mergeValidEvaluated(C,x)},()=>m.var(x,!0)),h.ok(x))}e.validateSchemaDeps=f,e.default=a})(Gd);var Fl={};Object.defineProperty(Fl,"__esModule",{value:!0});const Jd=Re,Nb=re,zb={message:"property name must be valid",params:({params:e})=>(0,Jd._)`{propertyName: ${e.propertyName}}`},Db={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:zb,code(e){const{gen:n,schema:i,data:s,it:a}=e;if((0,Nb.alwaysValidSchema)(a,i))return;const l=n.name("valid");n.forIn("key",s,u=>{e.setParams({propertyName:u}),e.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),n.if((0,Jd.not)(l),()=>{e.error(!0),a.allErrors||n.break()})}),e.ok(l)}};Fl.default=Db;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});const Ts=Oe,Yt=Re,jb=yn,xs=re,Bb={message:"must NOT have additional properties",params:({params:e})=>(0,Yt._)`{additionalProperty: ${e.additionalProperty}}`},Zb={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Bb,code(e){const{gen:n,schema:i,parentSchema:s,data:a,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:f,opts:h}=u;if(u.props=!0,h.removeAdditional!=="all"&&(0,xs.alwaysValidSchema)(u,i))return;const p=(0,Ts.allSchemaProperties)(s.properties),m=(0,Ts.allSchemaProperties)(s.patternProperties);_(),e.ok((0,Yt._)`${l} === ${jb.default.errors}`);function _(){n.forIn("key",a,C=>{!p.length&&!m.length?x(C):n.if(y(C),()=>x(C))})}function y(C){let P;if(p.length>8){const k=(0,xs.schemaRefOrVal)(u,s.properties,"properties");P=(0,Ts.isOwnProperty)(n,k,C)}else p.length?P=(0,Yt.or)(...p.map(k=>(0,Yt._)`${C} === ${k}`)):P=Yt.nil;return m.length&&(P=(0,Yt.or)(P,...m.map(k=>(0,Yt._)`${(0,Ts.usePattern)(e,k)}.test(${C})`))),(0,Yt.not)(P)}function b(C){n.code((0,Yt._)`delete ${a}[${C}]`)}function x(C){if(h.removeAdditional==="all"||h.removeAdditional&&i===!1){b(C);return}if(i===!1){e.setParams({additionalProperty:C}),e.error(),f||n.break();return}if(typeof i=="object"&&!(0,xs.alwaysValidSchema)(u,i)){const P=n.name("valid");h.removeAdditional==="failing"?(T(C,P,!1),n.if((0,Yt.not)(P),()=>{e.reset(),b(C)})):(T(C,P),f||n.if((0,Yt.not)(P),()=>n.break()))}}function T(C,P,k){const z={keyword:"additionalProperties",dataProp:C,dataPropType:xs.Type.Str};k===!1&&Object.assign(z,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(z,P)}}};_o.default=Zb;var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});const Fb=tn,_f=Oe,ha=re,gf=_o,Vb={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:n,schema:i,parentSchema:s,data:a,it:l}=e;l.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&gf.default.code(new Fb.KeywordCxt(l,gf.default,"additionalProperties"));const u=(0,_f.allSchemaProperties)(i);for(const _ of u)l.definedProperties.add(_);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=ha.mergeEvaluated.props(n,(0,ha.toHash)(u),l.props));const f=u.filter(_=>!(0,ha.alwaysValidSchema)(l,i[_]));if(f.length===0)return;const h=n.name("valid");for(const _ of f)p(_)?m(_):(n.if((0,_f.propertyInData)(n,a,_,l.opts.ownProperties)),m(_),l.allErrors||n.else().var(h,!0),n.endIf()),e.it.definedProperties.add(_),e.ok(h);function p(_){return l.opts.useDefaults&&!l.compositeRule&&i[_].default!==void 0}function m(_){e.subschema({keyword:"properties",schemaProp:_,dataProp:_},h)}}};Vl.default=Vb;var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});const vf=Oe,Cs=Re,yf=re,wf=re,Hb={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:n,schema:i,data:s,parentSchema:a,it:l}=e,{opts:u}=l,f=(0,vf.allSchemaProperties)(i),h=f.filter(T=>(0,yf.alwaysValidSchema)(l,i[T]));if(f.length===0||h.length===f.length&&(!l.opts.unevaluated||l.props===!0))return;const p=u.strictSchema&&!u.allowMatchingProperties&&a.properties,m=n.name("valid");l.props!==!0&&!(l.props instanceof Cs.Name)&&(l.props=(0,wf.evaluatedPropsToName)(n,l.props));const{props:_}=l;y();function y(){for(const T of f)p&&b(T),l.allErrors?x(T):(n.var(m,!0),x(T),n.if(m))}function b(T){for(const C in p)new RegExp(T).test(C)&&(0,yf.checkStrictMode)(l,`property ${C} matches pattern ${T} (use allowMatchingProperties)`)}function x(T){n.forIn("key",s,C=>{n.if((0,Cs._)`${(0,vf.usePattern)(e,T)}.test(${C})`,()=>{const P=h.includes(T);P||e.subschema({keyword:"patternProperties",schemaProp:T,dataProp:C,dataPropType:wf.Type.Str},m),l.opts.unevaluated&&_!==!0?n.assign((0,Cs._)`${_}[${C}]`,!0):!P&&!l.allErrors&&n.if((0,Cs.not)(m),()=>n.break())})})}}};Hl.default=Hb;var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});const Ub=re,qb={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:n,schema:i,it:s}=e;if((0,Ub.alwaysValidSchema)(s,i)){e.fail();return}const a=n.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ul.default=qb;var ql={};Object.defineProperty(ql,"__esModule",{value:!0});const Wb=Oe,Kb={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Wb.validateUnion,error:{message:"must match a schema in anyOf"}};ql.default=Kb;var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});const Ds=Re,Gb=re,Jb={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ds._)`{passingSchemas: ${e.passing}}`},Yb={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Jb,code(e){const{gen:n,schema:i,parentSchema:s,it:a}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&s.discriminator)return;const l=i,u=n.let("valid",!1),f=n.let("passing",null),h=n.name("_valid");e.setParams({passing:f}),n.block(p),e.result(u,()=>e.reset(),()=>e.error(!0));function p(){l.forEach((m,_)=>{let y;(0,Gb.alwaysValidSchema)(a,m)?n.var(h,!0):y=e.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},h),_>0&&n.if((0,Ds._)`${h} && ${u}`).assign(u,!1).assign(f,(0,Ds._)`[${f}, ${_}]`).else(),n.if(h,()=>{n.assign(u,!0),n.assign(f,_),y&&e.mergeEvaluated(y,Ds.Name)})})}}};Wl.default=Yb;var Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});const Xb=re,Qb={keyword:"allOf",schemaType:"array",code(e){const{gen:n,schema:i,it:s}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");const a=n.name("valid");i.forEach((l,u)=>{if((0,Xb.alwaysValidSchema)(s,l))return;const f=e.subschema({keyword:"allOf",schemaProp:u},a);e.ok(a),e.mergeEvaluated(f)})}};Kl.default=Qb;var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});const Ks=Re,Yd=re,eP={message:({params:e})=>(0,Ks.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ks._)`{failingKeyword: ${e.ifClause}}`},tP={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:eP,code(e){const{gen:n,parentSchema:i,it:s}=e;i.then===void 0&&i.else===void 0&&(0,Yd.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const a=bf(s,"then"),l=bf(s,"else");if(!a&&!l)return;const u=n.let("valid",!0),f=n.name("_valid");if(h(),e.reset(),a&&l){const m=n.let("ifClause");e.setParams({ifClause:m}),n.if(f,p("then",m),p("else",m))}else a?n.if(f,p("then")):n.if((0,Ks.not)(f),p("else"));e.pass(u,()=>e.error(!0));function h(){const m=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);e.mergeEvaluated(m)}function p(m,_){return()=>{const y=e.subschema({keyword:m},f);n.assign(u,f),e.mergeValidEvaluated(y,u),_?n.assign(_,(0,Ks._)`${m}`):e.setParams({ifClause:m})}}}};function bf(e,n){const i=e.schema[n];return i!==void 0&&!(0,Yd.alwaysValidSchema)(e,i)}Gl.default=tP;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});const nP=re,iP={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:n,it:i}){n.if===void 0&&(0,nP.checkStrictMode)(i,`"${e}" without "if" is ignored`)}};Jl.default=iP;Object.defineProperty(Dl,"__esModule",{value:!0});const rP=Qi,sP=jl,oP=er,aP=Bl,lP=Zl,cP=Gd,uP=Fl,fP=_o,hP=Vl,dP=Hl,pP=Ul,mP=ql,_P=Wl,gP=Kl,vP=Gl,yP=Jl;function wP(e=!1){const n=[pP.default,mP.default,_P.default,gP.default,vP.default,yP.default,uP.default,fP.default,cP.default,hP.default,dP.default];return e?n.push(sP.default,aP.default):n.push(rP.default,oP.default),n.push(lP.default),n}Dl.default=wP;var Yl={},Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});const et=Re,bP={message:({schemaCode:e})=>(0,et.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,et._)`{format: ${e}}`},PP={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:bP,code(e,n){const{gen:i,data:s,$data:a,schema:l,schemaCode:u,it:f}=e,{opts:h,errSchemaPath:p,schemaEnv:m,self:_}=f;if(!h.validateFormats)return;a?y():b();function y(){const x=i.scopeValue("formats",{ref:_.formats,code:h.code.formats}),T=i.const("fDef",(0,et._)`${x}[${u}]`),C=i.let("fType"),P=i.let("format");i.if((0,et._)`typeof ${T} == "object" && !(${T} instanceof RegExp)`,()=>i.assign(C,(0,et._)`${T}.type || "string"`).assign(P,(0,et._)`${T}.validate`),()=>i.assign(C,(0,et._)`"string"`).assign(P,T)),e.fail$data((0,et.or)(k(),z()));function k(){return h.strictSchema===!1?et.nil:(0,et._)`${u} && !${P}`}function z(){const B=m.$async?(0,et._)`(${T}.async ? await ${P}(${s}) : ${P}(${s}))`:(0,et._)`${P}(${s})`,G=(0,et._)`(typeof ${P} == "function" ? ${B} : ${P}.test(${s}))`;return(0,et._)`${P} && ${P} !== true && ${C} === ${n} && !${G}`}}function b(){const x=_.formats[l];if(!x){k();return}if(x===!0)return;const[T,C,P]=z(x);T===n&&e.pass(B());function k(){if(h.strictSchema===!1){_.logger.warn(G());return}throw new Error(G());function G(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function z(G){const oe=G instanceof RegExp?(0,et.regexpCode)(G):h.code.formats?(0,et._)`${h.code.formats}${(0,et.getProperty)(l)}`:void 0,de=i.scopeValue("formats",{key:l,ref:G,code:oe});return typeof G=="object"&&!(G instanceof RegExp)?[G.type||"string",G.validate,(0,et._)`${de}.validate`]:["string",G,de]}function B(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!m.$async)throw new Error("async format in sync schema");return(0,et._)`await ${P}(${s})`}return typeof C=="function"?(0,et._)`${P}(${s})`:(0,et._)`${P}.test(${s})`}}}};Xl.default=PP;Object.defineProperty(Yl,"__esModule",{value:!0});const $P=Xl,SP=[$P.default];Yl.default=SP;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.contentVocabulary=Ji.metadataVocabulary=void 0;Ji.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ji.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty($l,"__esModule",{value:!0});const EP=Sl,TP=Tl,xP=Dl,CP=Yl,Pf=Ji,LP=[EP.default,TP.default,(0,xP.default)(),CP.default,Pf.metadataVocabulary,Pf.contentVocabulary];$l.default=LP;var Ql={},go={};Object.defineProperty(go,"__esModule",{value:!0});go.DiscrError=void 0;var $f;(function(e){e.Tag="tag",e.Mapping="mapping"})($f||(go.DiscrError=$f={}));Object.defineProperty(Ql,"__esModule",{value:!0});const Di=Re,Da=go,Sf=zt,kP=Xi,OP=re,RP={message:({params:{discrError:e,tagName:n}})=>e===Da.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:i}})=>(0,Di._)`{error: ${e}, tag: ${i}, tagValue: ${n}}`},MP={keyword:"discriminator",type:"object",schemaType:"object",error:RP,code(e){const{gen:n,data:i,schema:s,parentSchema:a,it:l}=e,{oneOf:u}=a;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=s.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=n.let("valid",!1),p=n.const("tag",(0,Di._)`${i}${(0,Di.getProperty)(f)}`);n.if((0,Di._)`typeof ${p} == "string"`,()=>m(),()=>e.error(!1,{discrError:Da.DiscrError.Tag,tag:p,tagName:f})),e.ok(h);function m(){const b=y();n.if(!1);for(const x in b)n.elseIf((0,Di._)`${p} === ${x}`),n.assign(h,_(b[x]));n.else(),e.error(!1,{discrError:Da.DiscrError.Mapping,tag:p,tagName:f}),n.endIf()}function _(b){const x=n.name("valid"),T=e.subschema({keyword:"oneOf",schemaProp:b},x);return e.mergeEvaluated(T,Di.Name),x}function y(){var b;const x={},T=P(a);let C=!0;for(let B=0;Bthis.addVocabulary(x)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const x=this.opts.$data?this.$dataMetaSchema(l,u):l;this.addMetaSchema(x,f,!1),this.refs["http://json-schema.org/schema"]=f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}n.Ajv=h,e.exports=n=h,e.exports.Ajv=h,Object.defineProperty(n,"__esModule",{value:!0}),n.default=h;var p=tn;Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var m=Re;Object.defineProperty(n,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var _=Kr;Object.defineProperty(n,"ValidationError",{enumerable:!0,get:function(){return _.default}});var y=Xi;Object.defineProperty(n,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(ka,ka.exports);var ZP=ka.exports;const FP=td(ZP),Jr=new FP({coerceTypes:!0}),VP={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0};Jr.compile(VP);const HP={type:"object",properties:{Artist:{type:"string",nullable:!0},Description:{type:"string",nullable:!0},Photograph:{type:"object",properties:{Image:{type:"string"},Photographer:{type:"string"}},required:["Image","Photographer"],nullable:!0},Location:{type:"object",properties:{Coordinates:{type:"string",nullable:!0},"Located On":{type:"string"}},required:["Located On"],nullable:!0},Medium:{type:"string",nullable:!0},Title:{type:"string",nullable:!0}},additionalProperties:!0},Xd=Jr.compile(HP),UP={type:"object",properties:{type:{type:"string"},features:{type:"array",items:{type:"object",properties:{id:{type:"string"},type:{type:"string"},geometry:{type:"object",properties:{type:{type:"string"},coordinates:{type:"array",items:{type:"number"}}},required:["type","coordinates"]},properties:{type:"object",properties:{nodeId:{type:"string"}},required:["nodeId"]}},required:["id","type","properties"]}}},nullable:!0,required:["type","features"]};Jr.compile(UP);const qP={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0};Jr.compile(qP);var mn=(e=>(e.ARTWORK="Artwork",e.ARTIST="Artist",e.STRUCTURE="Structure",e.PHOTOGRAPHER="Photographer",e))(mn||{});const WP={type:"object",properties:{Location:{type:"object",properties:{Address:{type:"string"},Coordinates:{type:"string",nullable:!0}},required:["Address"]}},required:["Location"],additionalProperties:!0};Jr.compile(WP);const Qd=(e,n,i,s)=>{if(s.graphIdToNameTable[e.graph_id]==="Artwork"){const u=n.find(f=>f.resourceinstance_id===e.resourceinstanceid);return(u==null?void 0:u.data[s.imageNodeId])??void 0}const a=i.find(u=>u.resourceinstanceidto_id===e.resourceinstanceid&&u.resourceinstancefrom_graphid_id===s.nameToGraphIdTable.Artwork);if(!a)return;const l=n.find(u=>u.resourceinstance_id===a.resourceinstanceidfrom_id);return(l==null?void 0:l.data[s.imageNodeId])??void 0},KP=(e,n,i,s)=>{if(s.graphIdToNameTable[e.graph_id]!=="Artist")return;const a=i.filter(f=>f.resourceinstanceidto_id===e.resourceinstanceid&&f.resourceinstancefrom_graphid_id===s.nameToGraphIdTable.Artwork);if(!a)return;const l=a.map(f=>f.resourceinstanceidfrom_id);return n.filter(f=>l.includes(f.resourceinstanceid))??void 0},GP={class:"search-result"},JP={class:"metadata"},YP={class:"resource-type"},XP={class:"title"},QP={key:0,class:"description"},e$=["src"],t$=["src"],n$=It({__name:"SearchListItem",props:{resourceName:{},resourceId:{},resourceDescription:{},resourceType:{},imageTileData:{}},setup(e){const n=e,i=!0,s=n.imageTileData?"https://arches-app-demo.opentechstrategies.com"+n.imageTileData[0].url:void 0;return(a,l)=>{const u=Yi("RouterLink");return _e(),st(u,{to:`/archesdataviewer/home/resource/${n.resourceId}`,class:"search-result-container"},{default:rt(()=>[pe("div",GP,[pe("div",JP,[pe("div",YP,Rt(n.resourceType??"Resource"),1),pe("div",XP,Rt(n.resourceName),1),n.resourceDescription&&n.resourceDescription!=="Undefined"?(_e(),Ve("div",QP,Rt(n.resourceDescription),1)):wt("",!0)]),ke(s)?(_e(),Ve("img",{key:0,class:"image",loading:"lazy",src:ke(s),alt:"thumbnail image"},null,8,e$)):(_e(),Ve("img",{key:1,class:"image",src:ke(i)?"https://arches-app-demo.opentechstrategies.com/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,8,t$))])]),_:1},8,["to"])}}}),An=(e,n)=>{const i=e.__vccOpts||e;for(const[s,a]of n)i[s]=a;return i},i$=An(n$,[["__scopeId","data-v-92222f0d"]]),r$={class:"search-list-container"},s$={class:"search-header"},o$={class:"resource-selection-menu"},a$=["placeholder"],l$={class:"search-results"},c$=It({__name:"SearchList",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(e){const n=it(""),i=it("Artwork"),s=e,a=ut(()=>s.resourcesPrefetch.filter(f=>{const h=f.descriptors.en.name.toLowerCase().includes(n.value.toLowerCase()),p=i.value?s.idReferences.graphIdToNameTable[f.graph_id]===i.value:!0;return h&&p})),l=f=>{i.value=f},u=ut(()=>i.value==="Artwork"?"Search artworks by name...":i.value==="Artist"?"Search artists by name...":"");return(f,h)=>(_e(),Ve("div",r$,[pe("div",s$,[pe("div",o$,[pe("button",{type:"button",class:vi({active:i.value==="Artist"}),onClick:h[0]||(h[0]=p=>l("Artist"))}," Artists ",2),pe("button",{type:"button",class:vi({active:i.value==="Artwork"}),onClick:h[1]||(h[1]=p=>l("Artwork"))}," Artworks ",2)]),c_(pe("input",{"onUpdate:modelValue":h[2]||(h[2]=p=>n.value=p),class:"search-input",placeholder:u.value},null,8,a$),[[Zg,n.value]])]),pe("div",l$,[(_e(!0),Ve(ct,null,Sr(a.value,p=>(_e(),st(i$,{key:p.resourceinstanceid,"resource-name":p.descriptors.en.name,"resource-description":p.descriptors.en.description,"resource-id":p.resourceinstanceid,"resource-type":s.idReferences.graphIdToNameTable[p.graph_id],"image-tile-data":ke(Qd)(p,s.imagesPrefetch,s.resourceRelationsPrefetch,s.idReferences)},null,8,["resource-name","resource-description","resource-id","resource-type","image-tile-data"]))),128))])]))}}),u$=An(c$,[["__scopeId","data-v-d280a100"]]),Ef=It({__name:"SearchView",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(e){const n=e;return(i,s)=>(_e(),st(u$,{"resource-relations-prefetch":n.resourceRelationsPrefetch,"images-prefetch":n.imagesPrefetch,"resources-prefetch":n.resourcesPrefetch,"id-references":n.idReferences},null,8,["resource-relations-prefetch","images-prefetch","resources-prefetch","id-references"]))}}),f$=It({__name:"ResourcePanelProvider",props:{id:{}},setup(e){const n=e,i=qr(),s=it(),a=it(),l=it(!1);async function u(){try{const p=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.id}`),m=new URLSearchParams({format:"json"});p.search=m.toString();const y=await(await fetch(p.toString())).json();s.value=y}catch{s.value=void 0,l.value=!0}}async function f(){const p=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.id}`),m=await fetch(p.toString()).then(_=>_.json());a.value=m.related_resources.related_resources}async function h(){try{await u(),await f()}catch{l.value=!0}}return Gn(()=>i.params.id,h,{immediate:!0}),(p,m)=>(_e(),st(Fh,null,{default:rt(()=>[s.value&&a.value?dn(p.$slots,"default",{key:0,resource:s.value,resourceRelations:a.value,error:l.value}):wt("",!0)]),_:3}))}});function h$(e,n){return _e(),Ve("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[pe("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z","clip-rule":"evenodd"})])}function d$(e,n){return _e(),Ve("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[pe("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z","clip-rule":"evenodd"})])}const p$={},m$={class:"resource-detail-header"},_$={class:"resource-detail-type"},g$={class:"resource-detail-title"},v$={key:0,class:"resource-detail-more-by-artist"},y$={class:"resource-detail-metadata"},w$={class:"resource-detail-metadata-content"};function b$(e,n){return _e(),Ve(ct,null,[pe("div",m$,[pe("div",_$,[dn(e.$slots,"header-label",{},void 0,!0)]),pe("div",g$,[dn(e.$slots,"header-title",{},void 0,!0)])]),dn(e.$slots,"items",{},void 0,!0),e.$slots["more-by-artist"]?(_e(),Ve("div",v$,[dn(e.$slots,"more-by-artist",{},void 0,!0)])):wt("",!0),pe("div",y$,[n[0]||(n[0]=pe("div",{class:"resource-detail-metadata-title"},"Arches metadata:",-1)),pe("div",w$,[dn(e.$slots,"metadata",{},void 0,!0)])])],64)}const P$=An(p$,[["render",b$],["__scopeId","data-v-ac051309"]]),$$={class:"resource-detail-item"},S$={class:"resource-detail-item-header"},E$={key:0,class:"resource-detail-item-title"},T$={key:1,class:"resource-detail-item-byline"},x$={class:"resource-detail-item-image"},C$=["src"],L$=["src"],k$={key:2,class:"resource-detail-item-credit"},O$={key:0,class:"resource-detail-item-description"},R$=It({__name:"ResourceDetailItem",props:{imageUrl:{}},setup(e){const i=e,s=ut(()=>i.imageUrl?"https://arches-app-demo.opentechstrategies.com"+i.imageUrl:void 0);return(a,l)=>(_e(),Ve("div",$$,[pe("div",S$,[a.$slots["item-header-title"]?(_e(),Ve("div",E$,[dn(a.$slots,"item-header-title",{},void 0,!0)])):wt("",!0),a.$slots["item-header-byline"]?(_e(),Ve("div",T$,[dn(a.$slots,"item-header-byline",{},void 0,!0)])):wt("",!0)]),pe("figure",x$,[s.value?(_e(),Ve("img",{key:0,src:s.value,alt:"resource image"},null,8,C$)):(_e(),Ve("img",{key:1,src:ke(!0)?"https://arches-app-demo.opentechstrategies.com/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,8,L$)),a.$slots["item-credit"]?(_e(),Ve("figcaption",k$,[dn(a.$slots,"item-credit",{},void 0,!0)])):wt("",!0)]),a.$slots["item-description"]?(_e(),Ve("div",O$,[dn(a.$slots,"item-description",{},void 0,!0)])):wt("",!0)]))}}),M$=An(R$,[["__scopeId","data-v-34d6af25"]]),I$={key:0},A$={key:1},ep=It({__name:"ArtworkDetailItem",props:{artwork:{},artworkId:{},panelResourceType:{},resourceRelations:{},idReferences:{}},setup(e){const n=it(),i=it(),s=it(),a=e,{graphIdToNameTable:l}=a.idReferences;return Gn(()=>a.resourceRelations,u=>{n.value=u.find(f=>l[f.graph_id]==="Photographer"),i.value=u.find(f=>l[f.graph_id]==="Structure"),s.value=u.find(f=>l[f.graph_id]==="Artist")},{immediate:!0}),(u,f)=>{var p;const h=Yi("RouterLink");return a.panelResourceType!==void 0?(_e(),st(M$,{key:0,"image-url":(p=a.artwork.Photograph)==null?void 0:p.Image},gh({_:2},[a.panelResourceType!==ke(mn).ARTWORK?{name:"item-header-title",fn:rt(()=>[Ye(h,{to:`/archesdataviewer/home/resource/${a.artworkId}`,class:"resource-link"},{default:rt(()=>[kn(Rt(u.artwork.Title),1)]),_:1},8,["to"])]),key:"0"}:void 0,s.value&&i.value?{name:"item-header-byline",fn:rt(()=>[pe("span",null,[a.panelResourceType!==ke(mn).ARTIST?(_e(),Ve("span",I$,[f[0]||(f[0]=kn("by ")),Ye(h,{to:`/archesdataviewer/home/resource/${s.value.resourceinstanceid}`,class:"resource-link"},{default:rt(()=>[kn(Rt(s.value.displayname),1)]),_:1},8,["to"])])):wt("",!0),a.panelResourceType!==ke(mn).STRUCTURE?(_e(),Ve("span",A$," at "+Rt(i.value.displayname),1)):wt("",!0)])]),key:"1"}:void 0,n.value&&a.panelResourceType!==ke(mn).PHOTOGRAPHER?{name:"item-credit",fn:rt(()=>[pe("span",null," Photographer: "+Rt(n.value.displayname),1)]),key:"2"}:void 0,a.artwork.Description&&a.panelResourceType===ke(mn).ARTWORK?{name:"item-description",fn:rt(()=>[pe("p",null,Rt(a.artwork.Description),1)]),key:"3"}:void 0]),1032,["image-url"])):wt("",!0)}}}),da=It({__name:"RelatedArtworkDetailItem",props:{relatedArtwork:{},idReferences:{},panelResourceType:{}},setup(e){const n=e,{graphIdToNameTable:i}=n.idReferences,s=it(),a=it();async function l(){const f=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.relatedArtwork.resourceinstanceid}`),h=new URLSearchParams({format:"json"});f.search=h.toString();const m=await(await fetch(f.toString())).json();s.value=m}async function u(){const f=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.relatedArtwork.resourceinstanceid}`),h=await fetch(f.toString()).then(p=>p.json());a.value=h.related_resources.related_resources}return l(),u(),(f,h)=>{var p;return ke(Xd)((p=s.value)==null?void 0:p.resource)&&ke(i)[s.value.graph_id]==="Artwork"&&a.value&&s.value!==void 0?(_e(),st(ep,{key:0,artwork:s.value.resource,"artwork-id":s.value.resourceinstanceid,"resource-relations":a.value,"id-references":n.idReferences,"panel-resource-type":n.panelResourceType},null,8,["artwork","artwork-id","resource-relations","id-references","panel-resource-type"])):wt("",!0)}}}),N$=["src","alt"],z$=It({__name:"MoreArtworksByArtistItem",props:{artwork:{},imageTileData:{}},setup(e){const n=qr(),i=e,s=ut(()=>{var u;return(u=i.imageTileData)!=null&&u.length?"https://arches-app-demo.opentechstrategies.com"+i.imageTileData[0].url:void 0}),a=ut(()=>"https://arches-app-demo.opentechstrategies.com/archesdataviewer/noimage.png"),l=ut(()=>{var u;return((u=n.params)==null?void 0:u.id)===i.artwork.resourceinstanceid});return(u,f)=>{const h=Yi("RouterLink");return _e(),st(h,{to:`/archesdataviewer/home/resource/${i.artwork.resourceinstanceid}`},{default:rt(()=>[pe("div",null,[pe("img",{class:vi(["more-artwork-image",{blocked:l.value}]),src:s.value||a.value,alt:s.value?"Thumbnail image":"No image available"},null,10,N$)])]),_:1},8,["to"])}}}),D$=An(z$,[["__scopeId","data-v-f9a8b566"]]),j$={key:0},B$={key:0,class:"more-artworks-by-artist-title"},Z$={class:"more-artworks-by-artist-gallery"},F$=It({__name:"MoreArtworksByArtist",props:{resource:{},resourcesPrefetch:{},resourceRelations:{},idReferences:{},resourceRelationsPrefetch:{},imagesPrefetch:{}},setup(e){const n=e,i=ut(()=>n.resourceRelations.find(a=>n.idReferences.graphIdToNameTable[a.graph_id]==="Artist")),s=ut(()=>{if(i.value)return KP(i.value,n.resourcesPrefetch,n.resourceRelationsPrefetch,n.idReferences)});return(a,l)=>{const u=Yi("RouterLink");return s.value&&s.value.length>1?(_e(),Ve("div",j$,[i.value?(_e(),Ve("div",B$,[l[0]||(l[0]=kn(" More artwork by ")),Ye(u,{to:`/archesdataviewer/home/resource/${i.value.resourceinstanceid}`,class:"resource-link"},{default:rt(()=>[kn(Rt(i.value.displayname),1)]),_:1},8,["to"])])):wt("",!0),pe("div",Z$,[(_e(!0),Ve(ct,null,Sr(s.value,f=>(_e(),st(D$,{key:f.resourceinstanceid,artwork:f,"image-tile-data":ke(Qd)(f,n.imagesPrefetch,n.resourceRelationsPrefetch,n.idReferences)},null,8,["artwork","image-tile-data"]))),128))])])):wt("",!0)}}}),V$=An(F$,[["__scopeId","data-v-0665300e"]]),H$={key:0,class:"resource-detail"},U$=["href"],q$=It({__name:"ResourcePanel",props:{resource:{},resourceRelations:{},resourceRelationsPrefetch:{},imagesPrefetch:{},idReferences:{},resourcesPrefetch:{}},setup(e){const n=e,{graphIdToNameTable:i}=n.idReferences,s="https://arches-app-demo.opentechstrategies.com";return(a,l)=>{const u=Yi("RouterLink");return n.resource?(_e(),Ve("div",H$,[pe("div",null,[Ye(u,{to:"/archesdataviewer/home/",class:"button"},{default:rt(()=>[Ye(ke(h$),{class:"button-icon"}),l[0]||(l[0]=pe("span",null,"Back to search",-1))]),_:1})]),Ye(P$,null,gh({"header-label":rt(()=>[kn(Rt(ke(i)[n.resource.graph_id]),1)]),"header-title":rt(()=>[kn(Rt(n.resource.displayname??""),1)]),items:rt(()=>[ke(Xd)(n.resource.resource)&&ke(i)[n.resource.graph_id]==="Artwork"?(_e(),st(ep,{key:0,artwork:n.resource.resource,"artwork-id":n.resource.resourceinstanceid,"resource-relations":n.resourceRelations,"id-references":n.idReferences,"panel-resource-type":ke(mn).ARTWORK},null,8,["artwork","artwork-id","resource-relations","id-references","panel-resource-type"])):ke(i)[n.resource.graph_id]==="Artist"?(_e(!0),Ve(ct,{key:1},Sr(a.resourceRelations.filter(f=>ke(i)[f.graph_id]==="Artwork"),f=>(_e(),st(da,{key:f.graph_id,"related-artwork":f,"id-references":n.idReferences,"panel-resource-type":ke(mn).ARTIST},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):ke(i)[n.resource.graph_id]==="Structure"?(_e(!0),Ve(ct,{key:2},Sr(a.resourceRelations.filter(f=>ke(i)[f.graph_id]==="Artwork"),f=>(_e(),st(da,{key:f.resourceinstanceid,"related-artwork":f,"id-references":n.idReferences,"panel-resource-type":ke(mn).STRUCTURE},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):ke(i)[n.resource.graph_id]==="Photographer"?(_e(!0),Ve(ct,{key:3},Sr(a.resourceRelations.filter(f=>ke(i)[f.graph_id]==="Artwork"),f=>(_e(),st(da,{key:f.root_ontology_class,"related-artwork":f,"id-references":n.idReferences,"panel-resource-type":ke(mn).PHOTOGRAPHER},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):wt("",!0)]),metadata:rt(()=>[pe("div",null,"Graph ID: "+Rt(n.resource.graph_id),1),pe("div",null,[l[1]||(l[1]=kn(" Resource Instance ID: ")),pe("a",{href:`${ke(s)}/report/${n.resource.resourceinstanceid}`},Rt(n.resource.resourceinstanceid),9,U$)])]),_:2},[ke(i)[n.resource.graph_id]==="Artwork"?{name:"more-by-artist",fn:rt(()=>[Ye(V$,{resource:n.resource,"resource-relations":a.resourceRelations,"resource-relations-prefetch":n.resourceRelationsPrefetch,"resources-prefetch":n.resourcesPrefetch,"images-prefetch":n.imagesPrefetch,"id-references":n.idReferences},null,8,["resource","resource-relations","resource-relations-prefetch","resources-prefetch","images-prefetch","id-references"])]),key:"0"}:void 0]),1024)])):wt("",!0)}}}),W$=An(q$,[["__scopeId","data-v-a5da39c2"]]),K$={key:1},G$=It({__name:"ResourceDetailView",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(e){const n=qr(),i=e;return(s,a)=>(_e(),st(f$,{id:ke(n).params.id},{default:rt(({resource:l,resourceRelations:u,error:f})=>[l&&u&&!f?(_e(),st(W$,{key:0,resource:l,"resource-relations":u,"id-references":i.idReferences,"resource-relations-prefetch":i.resourceRelationsPrefetch,"images-prefetch":i.imagesPrefetch,"resources-prefetch":i.resourcesPrefetch},null,8,["resource","resource-relations","id-references","resource-relations-prefetch","images-prefetch","resources-prefetch"])):f?(_e(),Ve("div",K$,[pe("p",null,"No Resource found with id "+Rt(ke(n).params.id),1)])):wt("",!0)]),_:1},8,["id"]))}}),J$=[{path:"/archesdataviewer/home/",component:Ef},{path:"/",component:Ef},{path:"/archesdataviewer/home/resource/:id",component:G$}],Y$=Kv({history:$v(),routes:J$});var ja={exports:{}};/* @preserve + deps: ${m}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(h){const[p,m]=l(h);u(h,p),f(h,m)}};function l({schema:h}){const p={},m={};for(const _ in h){if(_==="__proto__")continue;const y=Array.isArray(h[_])?p:m;y[_]=h[_]}return[p,m]}function u(h,p=h.schema){const{gen:m,data:_,it:y}=h;if(Object.keys(p).length===0)return;const b=m.let("missing");for(const x in p){const T=p[x];if(T.length===0)continue;const C=(0,s.propertyInData)(m,_,x,y.opts.ownProperties);h.setParams({property:x,depsCount:T.length,deps:T.join(", ")}),y.allErrors?m.if(C,()=>{for(const P of T)(0,s.checkReportMissingProp)(h,P)}):(m.if((0,n._)`${C} && (${(0,s.checkMissingProp)(h,T,b)})`),(0,s.reportMissingProp)(h,b),m.else())}}e.validatePropertyDeps=u;function f(h,p=h.schema){const{gen:m,data:_,keyword:y,it:b}=h,x=m.name("valid");for(const T in p)(0,i.alwaysValidSchema)(b,p[T])||(m.if((0,s.propertyInData)(m,_,T,b.opts.ownProperties),()=>{const C=h.subschema({keyword:y,schemaProp:T},x);h.mergeValidEvaluated(C,x)},()=>m.var(x,!0)),h.ok(x))}e.validateSchemaDeps=f,e.default=a})(Gd);var Fl={};Object.defineProperty(Fl,"__esModule",{value:!0});const Jd=Re,Nb=re,zb={message:"property name must be valid",params:({params:e})=>(0,Jd._)`{propertyName: ${e.propertyName}}`},Db={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:zb,code(e){const{gen:n,schema:i,data:s,it:a}=e;if((0,Nb.alwaysValidSchema)(a,i))return;const l=n.name("valid");n.forIn("key",s,u=>{e.setParams({propertyName:u}),e.subschema({keyword:"propertyNames",data:u,dataTypes:["string"],propertyName:u,compositeRule:!0},l),n.if((0,Jd.not)(l),()=>{e.error(!0),a.allErrors||n.break()})}),e.ok(l)}};Fl.default=Db;var _o={};Object.defineProperty(_o,"__esModule",{value:!0});const Es=Oe,Yt=Re,jb=yn,Ts=re,Bb={message:"must NOT have additional properties",params:({params:e})=>(0,Yt._)`{additionalProperty: ${e.additionalProperty}}`},Zb={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Bb,code(e){const{gen:n,schema:i,parentSchema:s,data:a,errsCount:l,it:u}=e;if(!l)throw new Error("ajv implementation error");const{allErrors:f,opts:h}=u;if(u.props=!0,h.removeAdditional!=="all"&&(0,Ts.alwaysValidSchema)(u,i))return;const p=(0,Es.allSchemaProperties)(s.properties),m=(0,Es.allSchemaProperties)(s.patternProperties);_(),e.ok((0,Yt._)`${l} === ${jb.default.errors}`);function _(){n.forIn("key",a,C=>{!p.length&&!m.length?x(C):n.if(y(C),()=>x(C))})}function y(C){let P;if(p.length>8){const k=(0,Ts.schemaRefOrVal)(u,s.properties,"properties");P=(0,Es.isOwnProperty)(n,k,C)}else p.length?P=(0,Yt.or)(...p.map(k=>(0,Yt._)`${C} === ${k}`)):P=Yt.nil;return m.length&&(P=(0,Yt.or)(P,...m.map(k=>(0,Yt._)`${(0,Es.usePattern)(e,k)}.test(${C})`))),(0,Yt.not)(P)}function b(C){n.code((0,Yt._)`delete ${a}[${C}]`)}function x(C){if(h.removeAdditional==="all"||h.removeAdditional&&i===!1){b(C);return}if(i===!1){e.setParams({additionalProperty:C}),e.error(),f||n.break();return}if(typeof i=="object"&&!(0,Ts.alwaysValidSchema)(u,i)){const P=n.name("valid");h.removeAdditional==="failing"?(T(C,P,!1),n.if((0,Yt.not)(P),()=>{e.reset(),b(C)})):(T(C,P),f||n.if((0,Yt.not)(P),()=>n.break()))}}function T(C,P,k){const z={keyword:"additionalProperties",dataProp:C,dataPropType:Ts.Type.Str};k===!1&&Object.assign(z,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(z,P)}}};_o.default=Zb;var Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});const Fb=tn,_f=Oe,ha=re,gf=_o,Vb={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:n,schema:i,parentSchema:s,data:a,it:l}=e;l.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&gf.default.code(new Fb.KeywordCxt(l,gf.default,"additionalProperties"));const u=(0,_f.allSchemaProperties)(i);for(const _ of u)l.definedProperties.add(_);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=ha.mergeEvaluated.props(n,(0,ha.toHash)(u),l.props));const f=u.filter(_=>!(0,ha.alwaysValidSchema)(l,i[_]));if(f.length===0)return;const h=n.name("valid");for(const _ of f)p(_)?m(_):(n.if((0,_f.propertyInData)(n,a,_,l.opts.ownProperties)),m(_),l.allErrors||n.else().var(h,!0),n.endIf()),e.it.definedProperties.add(_),e.ok(h);function p(_){return l.opts.useDefaults&&!l.compositeRule&&i[_].default!==void 0}function m(_){e.subschema({keyword:"properties",schemaProp:_,dataProp:_},h)}}};Vl.default=Vb;var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});const vf=Oe,xs=Re,yf=re,wf=re,Hb={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:n,schema:i,data:s,parentSchema:a,it:l}=e,{opts:u}=l,f=(0,vf.allSchemaProperties)(i),h=f.filter(T=>(0,yf.alwaysValidSchema)(l,i[T]));if(f.length===0||h.length===f.length&&(!l.opts.unevaluated||l.props===!0))return;const p=u.strictSchema&&!u.allowMatchingProperties&&a.properties,m=n.name("valid");l.props!==!0&&!(l.props instanceof xs.Name)&&(l.props=(0,wf.evaluatedPropsToName)(n,l.props));const{props:_}=l;y();function y(){for(const T of f)p&&b(T),l.allErrors?x(T):(n.var(m,!0),x(T),n.if(m))}function b(T){for(const C in p)new RegExp(T).test(C)&&(0,yf.checkStrictMode)(l,`property ${C} matches pattern ${T} (use allowMatchingProperties)`)}function x(T){n.forIn("key",s,C=>{n.if((0,xs._)`${(0,vf.usePattern)(e,T)}.test(${C})`,()=>{const P=h.includes(T);P||e.subschema({keyword:"patternProperties",schemaProp:T,dataProp:C,dataPropType:wf.Type.Str},m),l.opts.unevaluated&&_!==!0?n.assign((0,xs._)`${_}[${C}]`,!0):!P&&!l.allErrors&&n.if((0,xs.not)(m),()=>n.break())})})}}};Hl.default=Hb;var Ul={};Object.defineProperty(Ul,"__esModule",{value:!0});const Ub=re,qb={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:n,schema:i,it:s}=e;if((0,Ub.alwaysValidSchema)(s,i)){e.fail();return}const a=n.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Ul.default=qb;var ql={};Object.defineProperty(ql,"__esModule",{value:!0});const Wb=Oe,Kb={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Wb.validateUnion,error:{message:"must match a schema in anyOf"}};ql.default=Kb;var Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});const zs=Re,Gb=re,Jb={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,zs._)`{passingSchemas: ${e.passing}}`},Yb={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Jb,code(e){const{gen:n,schema:i,parentSchema:s,it:a}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");if(a.opts.discriminator&&s.discriminator)return;const l=i,u=n.let("valid",!1),f=n.let("passing",null),h=n.name("_valid");e.setParams({passing:f}),n.block(p),e.result(u,()=>e.reset(),()=>e.error(!0));function p(){l.forEach((m,_)=>{let y;(0,Gb.alwaysValidSchema)(a,m)?n.var(h,!0):y=e.subschema({keyword:"oneOf",schemaProp:_,compositeRule:!0},h),_>0&&n.if((0,zs._)`${h} && ${u}`).assign(u,!1).assign(f,(0,zs._)`[${f}, ${_}]`).else(),n.if(h,()=>{n.assign(u,!0),n.assign(f,_),y&&e.mergeEvaluated(y,zs.Name)})})}}};Wl.default=Yb;var Kl={};Object.defineProperty(Kl,"__esModule",{value:!0});const Xb=re,Qb={keyword:"allOf",schemaType:"array",code(e){const{gen:n,schema:i,it:s}=e;if(!Array.isArray(i))throw new Error("ajv implementation error");const a=n.name("valid");i.forEach((l,u)=>{if((0,Xb.alwaysValidSchema)(s,l))return;const f=e.subschema({keyword:"allOf",schemaProp:u},a);e.ok(a),e.mergeEvaluated(f)})}};Kl.default=Qb;var Gl={};Object.defineProperty(Gl,"__esModule",{value:!0});const Ws=Re,Yd=re,eP={message:({params:e})=>(0,Ws.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ws._)`{failingKeyword: ${e.ifClause}}`},tP={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:eP,code(e){const{gen:n,parentSchema:i,it:s}=e;i.then===void 0&&i.else===void 0&&(0,Yd.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const a=bf(s,"then"),l=bf(s,"else");if(!a&&!l)return;const u=n.let("valid",!0),f=n.name("_valid");if(h(),e.reset(),a&&l){const m=n.let("ifClause");e.setParams({ifClause:m}),n.if(f,p("then",m),p("else",m))}else a?n.if(f,p("then")):n.if((0,Ws.not)(f),p("else"));e.pass(u,()=>e.error(!0));function h(){const m=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);e.mergeEvaluated(m)}function p(m,_){return()=>{const y=e.subschema({keyword:m},f);n.assign(u,f),e.mergeValidEvaluated(y,u),_?n.assign(_,(0,Ws._)`${m}`):e.setParams({ifClause:m})}}}};function bf(e,n){const i=e.schema[n];return i!==void 0&&!(0,Yd.alwaysValidSchema)(e,i)}Gl.default=tP;var Jl={};Object.defineProperty(Jl,"__esModule",{value:!0});const nP=re,iP={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:n,it:i}){n.if===void 0&&(0,nP.checkStrictMode)(i,`"${e}" without "if" is ignored`)}};Jl.default=iP;Object.defineProperty(Dl,"__esModule",{value:!0});const rP=Qi,sP=jl,oP=er,aP=Bl,lP=Zl,cP=Gd,uP=Fl,fP=_o,hP=Vl,dP=Hl,pP=Ul,mP=ql,_P=Wl,gP=Kl,vP=Gl,yP=Jl;function wP(e=!1){const n=[pP.default,mP.default,_P.default,gP.default,vP.default,yP.default,uP.default,fP.default,cP.default,hP.default,dP.default];return e?n.push(sP.default,aP.default):n.push(rP.default,oP.default),n.push(lP.default),n}Dl.default=wP;var Yl={},Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});const et=Re,bP={message:({schemaCode:e})=>(0,et.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,et._)`{format: ${e}}`},PP={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:bP,code(e,n){const{gen:i,data:s,$data:a,schema:l,schemaCode:u,it:f}=e,{opts:h,errSchemaPath:p,schemaEnv:m,self:_}=f;if(!h.validateFormats)return;a?y():b();function y(){const x=i.scopeValue("formats",{ref:_.formats,code:h.code.formats}),T=i.const("fDef",(0,et._)`${x}[${u}]`),C=i.let("fType"),P=i.let("format");i.if((0,et._)`typeof ${T} == "object" && !(${T} instanceof RegExp)`,()=>i.assign(C,(0,et._)`${T}.type || "string"`).assign(P,(0,et._)`${T}.validate`),()=>i.assign(C,(0,et._)`"string"`).assign(P,T)),e.fail$data((0,et.or)(k(),z()));function k(){return h.strictSchema===!1?et.nil:(0,et._)`${u} && !${P}`}function z(){const B=m.$async?(0,et._)`(${T}.async ? await ${P}(${s}) : ${P}(${s}))`:(0,et._)`${P}(${s})`,G=(0,et._)`(typeof ${P} == "function" ? ${B} : ${P}.test(${s}))`;return(0,et._)`${P} && ${P} !== true && ${C} === ${n} && !${G}`}}function b(){const x=_.formats[l];if(!x){k();return}if(x===!0)return;const[T,C,P]=z(x);T===n&&e.pass(B());function k(){if(h.strictSchema===!1){_.logger.warn(G());return}throw new Error(G());function G(){return`unknown format "${l}" ignored in schema at path "${p}"`}}function z(G){const oe=G instanceof RegExp?(0,et.regexpCode)(G):h.code.formats?(0,et._)`${h.code.formats}${(0,et.getProperty)(l)}`:void 0,de=i.scopeValue("formats",{key:l,ref:G,code:oe});return typeof G=="object"&&!(G instanceof RegExp)?[G.type||"string",G.validate,(0,et._)`${de}.validate`]:["string",G,de]}function B(){if(typeof x=="object"&&!(x instanceof RegExp)&&x.async){if(!m.$async)throw new Error("async format in sync schema");return(0,et._)`await ${P}(${s})`}return typeof C=="function"?(0,et._)`${P}(${s})`:(0,et._)`${P}.test(${s})`}}}};Xl.default=PP;Object.defineProperty(Yl,"__esModule",{value:!0});const $P=Xl,SP=[$P.default];Yl.default=SP;var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0});Ji.contentVocabulary=Ji.metadataVocabulary=void 0;Ji.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ji.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty($l,"__esModule",{value:!0});const EP=Sl,TP=Tl,xP=Dl,CP=Yl,Pf=Ji,LP=[EP.default,TP.default,(0,xP.default)(),CP.default,Pf.metadataVocabulary,Pf.contentVocabulary];$l.default=LP;var Ql={},go={};Object.defineProperty(go,"__esModule",{value:!0});go.DiscrError=void 0;var $f;(function(e){e.Tag="tag",e.Mapping="mapping"})($f||(go.DiscrError=$f={}));Object.defineProperty(Ql,"__esModule",{value:!0});const Di=Re,Da=go,Sf=zt,kP=Xi,OP=re,RP={message:({params:{discrError:e,tagName:n}})=>e===Da.DiscrError.Tag?`tag "${n}" must be string`:`value of tag "${n}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:i}})=>(0,Di._)`{error: ${e}, tag: ${i}, tagValue: ${n}}`},MP={keyword:"discriminator",type:"object",schemaType:"object",error:RP,code(e){const{gen:n,data:i,schema:s,parentSchema:a,it:l}=e,{oneOf:u}=a;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const f=s.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!u)throw new Error("discriminator: requires oneOf keyword");const h=n.let("valid",!1),p=n.const("tag",(0,Di._)`${i}${(0,Di.getProperty)(f)}`);n.if((0,Di._)`typeof ${p} == "string"`,()=>m(),()=>e.error(!1,{discrError:Da.DiscrError.Tag,tag:p,tagName:f})),e.ok(h);function m(){const b=y();n.if(!1);for(const x in b)n.elseIf((0,Di._)`${p} === ${x}`),n.assign(h,_(b[x]));n.else(),e.error(!1,{discrError:Da.DiscrError.Mapping,tag:p,tagName:f}),n.endIf()}function _(b){const x=n.name("valid"),T=e.subschema({keyword:"oneOf",schemaProp:b},x);return e.mergeEvaluated(T,Di.Name),x}function y(){var b;const x={},T=P(a);let C=!0;for(let B=0;Bthis.addVocabulary(x)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const x=this.opts.$data?this.$dataMetaSchema(l,u):l;this.addMetaSchema(x,f,!1),this.refs["http://json-schema.org/schema"]=f}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(f)?f:void 0)}}n.Ajv=h,e.exports=n=h,e.exports.Ajv=h,Object.defineProperty(n,"__esModule",{value:!0}),n.default=h;var p=tn;Object.defineProperty(n,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var m=Re;Object.defineProperty(n,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(n,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(n,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(n,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(n,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(n,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var _=Wr;Object.defineProperty(n,"ValidationError",{enumerable:!0,get:function(){return _.default}});var y=Xi;Object.defineProperty(n,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(ka,ka.exports);var ZP=ka.exports;const FP=td(ZP),Gr=new FP({coerceTypes:!0}),VP={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0};Gr.compile(VP);const HP={type:"object",properties:{Artist:{type:"string",nullable:!0},Description:{type:"string",nullable:!0},Photograph:{type:"object",properties:{Image:{type:"string"},Photographer:{type:"string"}},required:["Image","Photographer"],nullable:!0},Location:{type:"object",properties:{Coordinates:{type:"string",nullable:!0},"Located On":{type:"string"}},required:["Located On"],nullable:!0},Medium:{type:"string",nullable:!0},Title:{type:"string",nullable:!0}},additionalProperties:!0},Xd=Gr.compile(HP),UP={type:"object",properties:{type:{type:"string"},features:{type:"array",items:{type:"object",properties:{id:{type:"string"},type:{type:"string"},geometry:{type:"object",properties:{type:{type:"string"},coordinates:{type:"array",items:{type:"number"}}},required:["type","coordinates"]},properties:{type:"object",properties:{nodeId:{type:"string"}},required:["nodeId"]}},required:["id","type","properties"]}}},nullable:!0,required:["type","features"]};Gr.compile(UP);const qP={type:"object",properties:{Name:{type:"string"}},required:["Name"],additionalProperties:!0};Gr.compile(qP);var mn=(e=>(e.ARTWORK="Artwork",e.ARTIST="Artist",e.STRUCTURE="Structure",e.PHOTOGRAPHER="Photographer",e))(mn||{});const WP={type:"object",properties:{Location:{type:"object",properties:{Address:{type:"string"},Coordinates:{type:"string",nullable:!0}},required:["Address"]}},required:["Location"],additionalProperties:!0};Gr.compile(WP);const Qd=(e,n,i,s)=>{if(s.graphIdToNameTable[e.graph_id]==="Artwork"){const u=n.find(f=>f.resourceinstance_id===e.resourceinstanceid);return(u==null?void 0:u.data[s.imageNodeId])??void 0}const a=i.find(u=>u.resourceinstanceidto_id===e.resourceinstanceid&&u.resourceinstancefrom_graphid_id===s.nameToGraphIdTable.Artwork);if(!a)return;const l=n.find(u=>u.resourceinstance_id===a.resourceinstanceidfrom_id);return(l==null?void 0:l.data[s.imageNodeId])??void 0},KP=(e,n,i,s)=>{if(s.graphIdToNameTable[e.graph_id]!=="Artist")return;const a=i.filter(f=>f.resourceinstanceidto_id===e.resourceinstanceid&&f.resourceinstancefrom_graphid_id===s.nameToGraphIdTable.Artwork);if(!a)return;const l=a.map(f=>f.resourceinstanceidfrom_id);return n.filter(f=>l.includes(f.resourceinstanceid))??void 0},GP={class:"search-result"},JP={class:"metadata"},YP={class:"resource-type"},XP={class:"title"},QP={key:0,class:"description"},e$=["src"],t$=["src"],n$=It({__name:"SearchListItem",props:{resourceName:{},resourceId:{},resourceDescription:{},resourceType:{},imageTileData:{}},setup(e){const n=e,i=!0,s=n.imageTileData?"https://arches-app-demo.opentechstrategies.com"+n.imageTileData[0].url:void 0;return(a,l)=>{const u=Yi("RouterLink");return _e(),st(u,{to:`/archesdataviewer/home/resource/${n.resourceId}`,class:"search-result-container"},{default:rt(()=>[pe("div",GP,[pe("div",JP,[pe("div",YP,Rt(n.resourceType??"Resource"),1),pe("div",XP,Rt(n.resourceName),1),n.resourceDescription&&n.resourceDescription!=="Undefined"?(_e(),Ve("div",QP,Rt(n.resourceDescription),1)):wt("",!0)]),ke(s)?(_e(),Ve("img",{key:0,class:"image",loading:"lazy",src:ke(s),alt:"thumbnail image"},null,8,e$)):(_e(),Ve("img",{key:1,class:"image",src:ke(i)?"https://arches-app-demo.opentechstrategies.com/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,8,t$))])]),_:1},8,["to"])}}}),An=(e,n)=>{const i=e.__vccOpts||e;for(const[s,a]of n)i[s]=a;return i},i$=An(n$,[["__scopeId","data-v-92222f0d"]]),r$={class:"search-list-container"},s$={class:"search-header"},o$={class:"resource-selection-menu"},a$=["placeholder"],l$={class:"search-results"},c$=It({__name:"SearchList",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(e){const n=it(""),i=it("Artwork"),s=e,a=ut(()=>s.resourcesPrefetch.filter(f=>{const h=f.descriptors.en.name.toLowerCase().includes(n.value.toLowerCase()),p=i.value?s.idReferences.graphIdToNameTable[f.graph_id]===i.value:!0;return h&&p})),l=f=>{i.value=f},u=ut(()=>i.value==="Artwork"?"Search artworks by name...":i.value==="Artist"?"Search artists by name...":"");return(f,h)=>(_e(),Ve("div",r$,[pe("div",s$,[pe("div",o$,[pe("button",{type:"button",class:vi({active:i.value==="Artist"}),onClick:h[0]||(h[0]=p=>l("Artist"))}," Artists ",2),pe("button",{type:"button",class:vi({active:i.value==="Artwork"}),onClick:h[1]||(h[1]=p=>l("Artwork"))}," Artworks ",2)]),c_(pe("input",{"onUpdate:modelValue":h[2]||(h[2]=p=>n.value=p),class:"search-input",placeholder:u.value},null,8,a$),[[Zg,n.value]])]),pe("div",l$,[(_e(!0),Ve(ct,null,Sr(a.value,p=>(_e(),st(i$,{key:p.resourceinstanceid,"resource-name":p.descriptors.en.name,"resource-description":p.descriptors.en.description,"resource-id":p.resourceinstanceid,"resource-type":s.idReferences.graphIdToNameTable[p.graph_id],"image-tile-data":ke(Qd)(p,s.imagesPrefetch,s.resourceRelationsPrefetch,s.idReferences)},null,8,["resource-name","resource-description","resource-id","resource-type","image-tile-data"]))),128))])]))}}),u$=An(c$,[["__scopeId","data-v-d280a100"]]),Ef=It({__name:"SearchView",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(e){const n=e;return(i,s)=>(_e(),st(u$,{"resource-relations-prefetch":n.resourceRelationsPrefetch,"images-prefetch":n.imagesPrefetch,"resources-prefetch":n.resourcesPrefetch,"id-references":n.idReferences},null,8,["resource-relations-prefetch","images-prefetch","resources-prefetch","id-references"]))}}),f$=It({__name:"ResourcePanelProvider",props:{id:{}},setup(e){const n=e,i=uo(),s=it(),a=it(),l=it(!1);async function u(){try{const p=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.id}`),m=new URLSearchParams({format:"json"});p.search=m.toString();const y=await(await fetch(p.toString())).json();s.value=y}catch{s.value=void 0,l.value=!0}}async function f(){const p=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.id}`),m=await fetch(p.toString()).then(_=>_.json());a.value=m.related_resources.related_resources}async function h(){try{await u(),await f()}catch{l.value=!0}}return gi(()=>i.params.id,h,{immediate:!0}),(p,m)=>(_e(),st(Fh,null,{default:rt(()=>[s.value&&a.value?dn(p.$slots,"default",{key:0,resource:s.value,resourceRelations:a.value,error:l.value}):wt("",!0)]),_:3}))}});function h$(e,n){return _e(),Ve("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[pe("path",{"fill-rule":"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z","clip-rule":"evenodd"})])}function d$(e,n){return _e(),Ve("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[pe("path",{"fill-rule":"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z","clip-rule":"evenodd"})])}const p$={},m$={class:"resource-detail-header"},_$={class:"resource-detail-type"},g$={class:"resource-detail-title"},v$={key:0,class:"resource-detail-more-by-artist"},y$={class:"resource-detail-metadata"},w$={class:"resource-detail-metadata-content"};function b$(e,n){return _e(),Ve(ct,null,[pe("div",m$,[pe("div",_$,[dn(e.$slots,"header-label",{},void 0,!0)]),pe("div",g$,[dn(e.$slots,"header-title",{},void 0,!0)])]),dn(e.$slots,"items",{},void 0,!0),e.$slots["more-by-artist"]?(_e(),Ve("div",v$,[dn(e.$slots,"more-by-artist",{},void 0,!0)])):wt("",!0),pe("div",y$,[n[0]||(n[0]=pe("div",{class:"resource-detail-metadata-title"},"Arches metadata:",-1)),pe("div",w$,[dn(e.$slots,"metadata",{},void 0,!0)])])],64)}const P$=An(p$,[["render",b$],["__scopeId","data-v-ac051309"]]),$$={class:"resource-detail-item"},S$={class:"resource-detail-item-header"},E$={key:0,class:"resource-detail-item-title"},T$={key:1,class:"resource-detail-item-byline"},x$={class:"resource-detail-item-image"},C$=["src"],L$=["src"],k$={key:2,class:"resource-detail-item-credit"},O$={key:0,class:"resource-detail-item-description"},R$=It({__name:"ResourceDetailItem",props:{imageUrl:{}},setup(e){const i=e,s=ut(()=>i.imageUrl?"https://arches-app-demo.opentechstrategies.com"+i.imageUrl:void 0);return(a,l)=>(_e(),Ve("div",$$,[pe("div",S$,[a.$slots["item-header-title"]?(_e(),Ve("div",E$,[dn(a.$slots,"item-header-title",{},void 0,!0)])):wt("",!0),a.$slots["item-header-byline"]?(_e(),Ve("div",T$,[dn(a.$slots,"item-header-byline",{},void 0,!0)])):wt("",!0)]),pe("figure",x$,[s.value?(_e(),Ve("img",{key:0,src:s.value,alt:"resource image"},null,8,C$)):(_e(),Ve("img",{key:1,src:ke(!0)?"https://arches-app-demo.opentechstrategies.com/archesdataviewer/noimage.png":"/noimage.png",alt:"no image available",loading:"lazy"},null,8,L$)),a.$slots["item-credit"]?(_e(),Ve("figcaption",k$,[dn(a.$slots,"item-credit",{},void 0,!0)])):wt("",!0)]),a.$slots["item-description"]?(_e(),Ve("div",O$,[dn(a.$slots,"item-description",{},void 0,!0)])):wt("",!0)]))}}),M$=An(R$,[["__scopeId","data-v-34d6af25"]]),I$={key:0},A$={key:1},ep=It({__name:"ArtworkDetailItem",props:{artwork:{},artworkId:{},panelResourceType:{},resourceRelations:{},idReferences:{}},setup(e){const n=it(),i=it(),s=it(),a=e,{graphIdToNameTable:l}=a.idReferences;return gi(()=>a.resourceRelations,u=>{n.value=u.find(f=>l[f.graph_id]==="Photographer"),i.value=u.find(f=>l[f.graph_id]==="Structure"),s.value=u.find(f=>l[f.graph_id]==="Artist")},{immediate:!0}),(u,f)=>{var p;const h=Yi("RouterLink");return a.panelResourceType!==void 0?(_e(),st(M$,{key:0,"image-url":(p=a.artwork.Photograph)==null?void 0:p.Image},gh({_:2},[a.panelResourceType!==ke(mn).ARTWORK?{name:"item-header-title",fn:rt(()=>[Ye(h,{to:`/archesdataviewer/home/resource/${a.artworkId}`,class:"resource-link"},{default:rt(()=>[kn(Rt(u.artwork.Title),1)]),_:1},8,["to"])]),key:"0"}:void 0,s.value&&i.value?{name:"item-header-byline",fn:rt(()=>[pe("span",null,[a.panelResourceType!==ke(mn).ARTIST?(_e(),Ve("span",I$,[f[0]||(f[0]=kn("by ")),Ye(h,{to:`/archesdataviewer/home/resource/${s.value.resourceinstanceid}`,class:"resource-link"},{default:rt(()=>[kn(Rt(s.value.displayname),1)]),_:1},8,["to"])])):wt("",!0),a.panelResourceType!==ke(mn).STRUCTURE?(_e(),Ve("span",A$," at "+Rt(i.value.displayname),1)):wt("",!0)])]),key:"1"}:void 0,n.value&&a.panelResourceType!==ke(mn).PHOTOGRAPHER?{name:"item-credit",fn:rt(()=>[pe("span",null," Photographer: "+Rt(n.value.displayname),1)]),key:"2"}:void 0,a.artwork.Description&&a.panelResourceType===ke(mn).ARTWORK?{name:"item-description",fn:rt(()=>[pe("p",null,Rt(a.artwork.Description),1)]),key:"3"}:void 0]),1032,["image-url"])):wt("",!0)}}}),da=It({__name:"RelatedArtworkDetailItem",props:{relatedArtwork:{},idReferences:{},panelResourceType:{}},setup(e){const n=e,{graphIdToNameTable:i}=n.idReferences,s=it(),a=it();async function l(){const f=new URL(`https://arches-app-demo.opentechstrategies.com/resources/${n.relatedArtwork.resourceinstanceid}`),h=new URLSearchParams({format:"json"});f.search=h.toString();const m=await(await fetch(f.toString())).json();s.value=m}async function u(){const f=new URL(`https://arches-app-demo.opentechstrategies.com/resource/related/${n.relatedArtwork.resourceinstanceid}`),h=await fetch(f.toString()).then(p=>p.json());a.value=h.related_resources.related_resources}return l(),u(),(f,h)=>{var p;return ke(Xd)((p=s.value)==null?void 0:p.resource)&&ke(i)[s.value.graph_id]==="Artwork"&&a.value&&s.value!==void 0?(_e(),st(ep,{key:0,artwork:s.value.resource,"artwork-id":s.value.resourceinstanceid,"resource-relations":a.value,"id-references":n.idReferences,"panel-resource-type":n.panelResourceType},null,8,["artwork","artwork-id","resource-relations","id-references","panel-resource-type"])):wt("",!0)}}}),N$=["src","alt"],z$=It({__name:"MoreArtworksByArtistItem",props:{artwork:{},imageTileData:{}},setup(e){const n=uo(),i=e,s=ut(()=>{var u;return(u=i.imageTileData)!=null&&u.length?"https://arches-app-demo.opentechstrategies.com"+i.imageTileData[0].url:void 0}),a=ut(()=>"https://arches-app-demo.opentechstrategies.com/archesdataviewer/noimage.png"),l=ut(()=>{var u;return((u=n.params)==null?void 0:u.id)===i.artwork.resourceinstanceid});return(u,f)=>{const h=Yi("RouterLink");return _e(),st(h,{to:`/archesdataviewer/home/resource/${i.artwork.resourceinstanceid}`},{default:rt(()=>[pe("div",null,[pe("img",{class:vi(["more-artwork-image",{blocked:l.value}]),src:s.value||a.value,alt:s.value?"Thumbnail image":"No image available"},null,10,N$)])]),_:1},8,["to"])}}}),D$=An(z$,[["__scopeId","data-v-f9a8b566"]]),j$={key:0},B$={key:0,class:"more-artworks-by-artist-title"},Z$={class:"more-artworks-by-artist-gallery"},F$=It({__name:"MoreArtworksByArtist",props:{resource:{},resourcesPrefetch:{},resourceRelations:{},idReferences:{},resourceRelationsPrefetch:{},imagesPrefetch:{}},setup(e){const n=e,i=ut(()=>n.resourceRelations.find(a=>n.idReferences.graphIdToNameTable[a.graph_id]==="Artist")),s=ut(()=>{if(i.value)return KP(i.value,n.resourcesPrefetch,n.resourceRelationsPrefetch,n.idReferences)});return(a,l)=>{const u=Yi("RouterLink");return s.value&&s.value.length>1?(_e(),Ve("div",j$,[i.value?(_e(),Ve("div",B$,[l[0]||(l[0]=kn(" More artwork by ")),Ye(u,{to:`/archesdataviewer/home/resource/${i.value.resourceinstanceid}`,class:"resource-link"},{default:rt(()=>[kn(Rt(i.value.displayname),1)]),_:1},8,["to"])])):wt("",!0),pe("div",Z$,[(_e(!0),Ve(ct,null,Sr(s.value,f=>(_e(),st(D$,{key:f.resourceinstanceid,artwork:f,"image-tile-data":ke(Qd)(f,n.imagesPrefetch,n.resourceRelationsPrefetch,n.idReferences)},null,8,["artwork","image-tile-data"]))),128))])])):wt("",!0)}}}),V$=An(F$,[["__scopeId","data-v-0665300e"]]),H$={key:0,class:"resource-detail"},U$=["href"],q$=It({__name:"ResourcePanel",props:{resource:{},resourceRelations:{},resourceRelationsPrefetch:{},imagesPrefetch:{},idReferences:{},resourcesPrefetch:{}},setup(e){const n=e,{graphIdToNameTable:i}=n.idReferences,s="https://arches-app-demo.opentechstrategies.com";return(a,l)=>{const u=Yi("RouterLink");return n.resource?(_e(),Ve("div",H$,[pe("div",null,[Ye(u,{to:"/archesdataviewer/home/",class:"button"},{default:rt(()=>[Ye(ke(h$),{class:"button-icon"}),l[0]||(l[0]=pe("span",null,"Back to search",-1))]),_:1})]),Ye(P$,null,gh({"header-label":rt(()=>[kn(Rt(ke(i)[n.resource.graph_id]),1)]),"header-title":rt(()=>[kn(Rt(n.resource.displayname??""),1)]),items:rt(()=>[ke(Xd)(n.resource.resource)&&ke(i)[n.resource.graph_id]==="Artwork"?(_e(),st(ep,{key:0,artwork:n.resource.resource,"artwork-id":n.resource.resourceinstanceid,"resource-relations":n.resourceRelations,"id-references":n.idReferences,"panel-resource-type":ke(mn).ARTWORK},null,8,["artwork","artwork-id","resource-relations","id-references","panel-resource-type"])):ke(i)[n.resource.graph_id]==="Artist"?(_e(!0),Ve(ct,{key:1},Sr(a.resourceRelations.filter(f=>ke(i)[f.graph_id]==="Artwork"),f=>(_e(),st(da,{key:f.graph_id,"related-artwork":f,"id-references":n.idReferences,"panel-resource-type":ke(mn).ARTIST},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):ke(i)[n.resource.graph_id]==="Structure"?(_e(!0),Ve(ct,{key:2},Sr(a.resourceRelations.filter(f=>ke(i)[f.graph_id]==="Artwork"),f=>(_e(),st(da,{key:f.resourceinstanceid,"related-artwork":f,"id-references":n.idReferences,"panel-resource-type":ke(mn).STRUCTURE},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):ke(i)[n.resource.graph_id]==="Photographer"?(_e(!0),Ve(ct,{key:3},Sr(a.resourceRelations.filter(f=>ke(i)[f.graph_id]==="Artwork"),f=>(_e(),st(da,{key:f.root_ontology_class,"related-artwork":f,"id-references":n.idReferences,"panel-resource-type":ke(mn).PHOTOGRAPHER},null,8,["related-artwork","id-references","panel-resource-type"]))),128)):wt("",!0)]),metadata:rt(()=>[pe("div",null,"Graph ID: "+Rt(n.resource.graph_id),1),pe("div",null,[l[1]||(l[1]=kn(" Resource Instance ID: ")),pe("a",{href:`${ke(s)}/report/${n.resource.resourceinstanceid}`},Rt(n.resource.resourceinstanceid),9,U$)])]),_:2},[ke(i)[n.resource.graph_id]==="Artwork"?{name:"more-by-artist",fn:rt(()=>[Ye(V$,{resource:n.resource,"resource-relations":a.resourceRelations,"resource-relations-prefetch":n.resourceRelationsPrefetch,"resources-prefetch":n.resourcesPrefetch,"images-prefetch":n.imagesPrefetch,"id-references":n.idReferences},null,8,["resource","resource-relations","resource-relations-prefetch","resources-prefetch","images-prefetch","id-references"])]),key:"0"}:void 0]),1024)])):wt("",!0)}}}),W$=An(q$,[["__scopeId","data-v-a5da39c2"]]),K$={key:1},G$=It({__name:"ResourceDetailView",props:{resourcesPrefetch:{},imagesPrefetch:{},resourceRelationsPrefetch:{},idReferences:{}},setup(e){const n=uo(),i=e;return(s,a)=>(_e(),st(f$,{id:ke(n).params.id},{default:rt(({resource:l,resourceRelations:u,error:f})=>[l&&u&&!f?(_e(),st(W$,{key:0,resource:l,"resource-relations":u,"id-references":i.idReferences,"resource-relations-prefetch":i.resourceRelationsPrefetch,"images-prefetch":i.imagesPrefetch,"resources-prefetch":i.resourcesPrefetch},null,8,["resource","resource-relations","id-references","resource-relations-prefetch","images-prefetch","resources-prefetch"])):f?(_e(),Ve("div",K$,[pe("p",null,"No Resource found with id "+Rt(ke(n).params.id),1)])):wt("",!0)]),_:1},8,["id"]))}}),J$=[{path:"/archesdataviewer/home/",component:Ef},{path:"/",component:Ef},{path:"/archesdataviewer/home/resource/:id",component:G$}],Y$=Kv({history:$v(),routes:J$});var ja={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */(function(e,n){(function(i,s){s(n)})(Yv,function(i){var s="1.9.4";function a(t){var r,o,c,d;for(o=1,c=arguments.length;o"u"||!L||!L.Mixin)){t=z(t)?t:[t];for(var r=0;r0?Math.floor(t):Math.ceil(t)};te.prototype={clone:function(){return new te(this.x,this.y)},add:function(t){return this.clone()._add(Z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(Z(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 te(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new te(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=mt(this.x),this.y=mt(this.y),this},distanceTo:function(t){t=Z(t);var r=t.x-this.x,o=t.y-this.y;return Math.sqrt(r*r+o*o)},equals:function(t){return t=Z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=Z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function Z(t,r,o){return t instanceof te?t:z(t)?new te(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new te(t.x,t.y):new te(t,r,o)}function O(t,r){if(t)for(var o=r?[t,r]:t,c=0,d=o.length;c=this.min.x&&o.x<=this.max.x&&r.y>=this.min.y&&o.y<=this.max.y},intersects:function(t){t=F(t);var r=this.min,o=this.max,c=t.min,d=t.max,g=d.x>=r.x&&c.x<=o.x,E=d.y>=r.y&&c.y<=o.y;return g&&E},overlaps:function(t){t=F(t);var r=this.min,o=this.max,c=t.min,d=t.max,g=d.x>r.x&&c.xr.y&&c.y=r.lat&&d.lat<=o.lat&&c.lng>=r.lng&&d.lng<=o.lng},intersects:function(t){t=v(t);var r=this._southWest,o=this._northEast,c=t.getSouthWest(),d=t.getNorthEast(),g=d.lat>=r.lat&&c.lat<=o.lat,E=d.lng>=r.lng&&c.lng<=o.lng;return g&&E},overlaps:function(t){t=v(t);var r=this._southWest,o=this._northEast,c=t.getSouthWest(),d=t.getNorthEast(),g=d.lat>r.lat&&c.latr.lng&&c.lng1,ap=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",_,r),window.removeEventListener("testPassiveEventSupport",_,r)}catch{}return t}(),lp=function(){return!!document.createElement("canvas").getContext}(),vo=!!(document.createElementNS&&N("svg").createSVGRect),cp=!!vo&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),up=!vo&&function(){try{var t=document.createElement("div");t.innerHTML='';var r=t.firstChild;return r.style.behavior="url(#default#VML)",r&&typeof r.adj=="object"}catch{return!1}}(),fp=navigator.platform.indexOf("Mac")===0,hp=navigator.platform.indexOf("Linux")===0;function on(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ce={ie:W,ielt9:ee,edge:X,webkit:Y,android:K,android23:le,androidStock:se,opera:ue,chrome:$e,gecko:ze,safari:Ae,phantom:ht,opera12:at,win:Dt,ie3d:bt,webkit3d:wn,gecko3d:tr,any3d:xt,mobile:Pt,mobileWebkit:Yr,mobileWebkit3d:np,msPointer:ec,pointer:tc,touch:ip,touchNative:nc,mobileOpera:rp,mobileGecko:sp,retina:op,passiveEvents:ap,canvas:lp,svg:vo,vml:up,inlineSvg:cp,mac:fp,linux:hp},ic=ce.msPointer?"MSPointerDown":"pointerdown",rc=ce.msPointer?"MSPointerMove":"pointermove",sc=ce.msPointer?"MSPointerUp":"pointerup",oc=ce.msPointer?"MSPointerCancel":"pointercancel",yo={touchstart:ic,touchmove:rc,touchend:sc,touchcancel:oc},ac={touchstart:vp,touchmove:Xr,touchend:Xr,touchcancel:Xr},$i={},lc=!1;function dp(t,r,o){return r==="touchstart"&&gp(),ac[r]?(o=ac[r].bind(this,o),t.addEventListener(yo[r],o,!1),o):(console.warn("wrong event specified:",r),_)}function pp(t,r,o){if(!yo[r]){console.warn("wrong event specified:",r);return}t.removeEventListener(yo[r],o,!1)}function mp(t){$i[t.pointerId]=t}function _p(t){$i[t.pointerId]&&($i[t.pointerId]=t)}function cc(t){delete $i[t.pointerId]}function gp(){lc||(document.addEventListener(ic,mp,!0),document.addEventListener(rc,_p,!0),document.addEventListener(sc,cc,!0),document.addEventListener(oc,cc,!0),lc=!0)}function Xr(t,r){if(r.pointerType!==(r.MSPOINTER_TYPE_MOUSE||"mouse")){r.touches=[];for(var o in $i)r.touches.push($i[o]);r.changedTouches=[r],t(r)}}function vp(t,r){r.MSPOINTER_TYPE_TOUCH&&r.pointerType===r.MSPOINTER_TYPE_TOUCH&&_t(r),Xr(t,r)}function yp(t){var r={},o,c;for(c in t)o=t[c],r[c]=o&&o.bind?o.bind(t):o;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var wp=200;function bp(t,r){t.addEventListener("dblclick",r);var o=0,c;function d(g){if(g.detail!==1){c=g.detail;return}if(!(g.pointerType==="mouse"||g.sourceCapabilities&&!g.sourceCapabilities.firesTouchEvents)){var E=pc(g);if(!(E.some(function(D){return D instanceof HTMLLabelElement&&D.attributes.for})&&!E.some(function(D){return D instanceof HTMLInputElement||D instanceof HTMLSelectElement}))){var I=Date.now();I-o<=wp?(c++,c===2&&r(yp(g))):c=1,o=I}}}return t.addEventListener("click",d),{dblclick:r,simDblclick:d}}function Pp(t,r){t.removeEventListener("dblclick",r.dblclick),t.removeEventListener("click",r.simDblclick)}var wo=ts(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nr=ts(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),uc=nr==="webkitTransition"||nr==="OTransition"?nr+"End":"transitionend";function fc(t){return typeof t=="string"?document.getElementById(t):t}function ir(t,r){var o=t.style[r]||t.currentStyle&&t.currentStyle[r];if((!o||o==="auto")&&document.defaultView){var c=document.defaultView.getComputedStyle(t,null);o=c?c[r]:null}return o==="auto"?null:o}function De(t,r,o){var c=document.createElement(t);return c.className=r||"",o&&o.appendChild(c),c}function Je(t){var r=t.parentNode;r&&r.removeChild(t)}function Qr(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Si(t){var r=t.parentNode;r&&r.lastChild!==t&&r.appendChild(t)}function Ei(t){var r=t.parentNode;r&&r.firstChild!==t&&r.insertBefore(t,r.firstChild)}function bo(t,r){if(t.classList!==void 0)return t.classList.contains(r);var o=es(t);return o.length>0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(o)}function Te(t,r){if(t.classList!==void 0)for(var o=x(r),c=0,d=o.length;c0?2*window.devicePixelRatio:1;function _c(t){return ce.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ep: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 Mo(t,r){var o=r.relatedTarget;if(!o)return!0;try{for(;o&&o!==t;)o=o.parentNode}catch{return!1}return o!==t}var Tp={__proto__:null,on:Pe,off:We,stopPropagation:ri,disableScrollPropagation:Ro,disableClickPropagation:ar,preventDefault:_t,stop:si,getPropagationPath:pc,getMousePosition:mc,getWheelDelta:_c,isExternalTarget:Mo,addListener:Pe,removeListener:We},gc=Ce.extend({run:function(t,r,o,c){this.stop(),this._el=t,this._inProgress=!0,this._duration=o||.25,this._easeOutPower=1/Math.max(c||.5,.2),this._startPos=ii(t),this._offset=r.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=ve(this._animate,this),this._step()},_step:function(t){var r=+new Date-this._startTime,o=this._duration*1e3;rthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,r){this._enforcingBounds=!0;var o=this.getCenter(),c=this._limitCenter(o,this._zoom,v(t));return o.equals(c)||this.panTo(c,r),this._enforcingBounds=!1,this},panInside:function(t,r){r=r||{};var o=Z(r.paddingTopLeft||r.padding||[0,0]),c=Z(r.paddingBottomRight||r.padding||[0,0]),d=this.project(this.getCenter()),g=this.project(t),E=this.getPixelBounds(),I=F([E.min.add(o),E.max.subtract(c)]),D=I.getSize();if(!I.contains(g)){this._enforcingBounds=!0;var q=g.subtract(I.getCenter()),ie=I.extend(g).getSize().subtract(D);d.x+=q.x<0?-ie.x:ie.x,d.y+=q.y<0?-ie.y:ie.y,this.panTo(this.unproject(d),r),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=a({animate:!1,pan:!0},t===!0?{animate:!0}:t);var r=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),c=r.divideBy(2).round(),d=o.divideBy(2).round(),g=c.subtract(d);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:r,newSize:o}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=a({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var r=u(this._handleGeolocationResponse,this),o=u(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(r,o,t):navigator.geolocation.getCurrentPosition(r,o,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 r=t.code,o=t.message||(r===1?"permission denied":r===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:r,message:"Geolocation error: "+o+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var r=t.coords.latitude,o=t.coords.longitude,c=new $(r,o),d=c.toBounds(t.coords.accuracy*2),g=this._locateOptions;if(g.setView){var E=this.getBoundsZoom(d);this.setView(c,g.maxZoom?Math.min(E,g.maxZoom):E)}var I={latlng:c,bounds:d,timestamp:t.timestamp};for(var D in t.coords)typeof t.coords[D]=="number"&&(I[D]=t.coords[D]);this.fire("locationfound",I)}},addHandler:function(t,r){if(!r)return this;var o=this[t]=new r(this);return this._handlers.push(o),this.options[t]&&o.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(),Je(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Q(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)Je(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,r){var o="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),c=De("div",o,r||this._mapPane);return t&&(this._panes[t]=c),c},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(),r=this.unproject(t.getBottomLeft()),o=this.unproject(t.getTopRight());return new A(r,o)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,r,o){t=v(t),o=Z(o||[0,0]);var c=this.getZoom()||0,d=this.getMinZoom(),g=this.getMaxZoom(),E=t.getNorthWest(),I=t.getSouthEast(),D=this.getSize().subtract(o),q=F(this.project(I,c),this.project(E,c)).getSize(),ie=ce.any3d?this.options.zoomSnap:1,me=D.x/q.x,Le=D.y/q.y,Ct=r?Math.max(me,Le):Math.min(me,Le);return c=this.getScaleZoom(Ct,c),ie&&(c=Math.round(c/(ie/100))*(ie/100),c=r?Math.ceil(c/ie)*ie:Math.floor(c/ie)*ie),Math.max(d,Math.min(g,c))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new te(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,r){var o=this._getTopLeftPoint(t,r);return new O(o,o.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,r){var o=this.options.crs;return r=r===void 0?this._zoom:r,o.scale(t)/o.scale(r)},getScaleZoom:function(t,r){var o=this.options.crs;r=r===void 0?this._zoom:r;var c=o.zoom(t*o.scale(r));return isNaN(c)?1/0:c},project:function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.latLngToPoint(M(t),r)},unproject:function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.pointToLatLng(Z(t),r)},layerPointToLatLng:function(t){var r=Z(t).add(this.getPixelOrigin());return this.unproject(r)},latLngToLayerPoint:function(t){var r=this.project(M(t))._round();return r._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(M(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(v(t))},distance:function(t,r){return this.options.crs.distance(M(t),M(r))},containerPointToLayerPoint:function(t){return Z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return Z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var r=this.containerPointToLayerPoint(Z(t));return this.layerPointToLatLng(r)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(M(t)))},mouseEventToContainerPoint:function(t){return mc(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 r=this._container=fc(t);if(r){if(r._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Pe(r,"scroll",this._onScroll,this),this._containerId=h(r)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ce.any3d,Te(t,"leaflet-container"+(ce.touch?" leaflet-touch":"")+(ce.retina?" leaflet-retina":"")+(ce.ielt9?" leaflet-oldie":"")+(ce.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var r=ir(t,"position");r!=="absolute"&&r!=="relative"&&r!=="fixed"&&r!=="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),tt(this._mapPane,new te(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Te(t.markerPane,"leaflet-zoom-hide"),Te(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,r,o){tt(this._mapPane,new te(0,0));var c=!this._loaded;this._loaded=!0,r=this._limitZoom(r),this.fire("viewprereset");var d=this._zoom!==r;this._moveStart(d,o)._move(t,r)._moveEnd(d),this.fire("viewreset"),c&&this.fire("load")},_moveStart:function(t,r){return t&&this.fire("zoomstart"),r||this.fire("movestart"),this},_move:function(t,r,o,c){r===void 0&&(r=this._zoom);var d=this._zoom!==r;return this._zoom=r,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),c?o&&o.pinch&&this.fire("zoom",o):((d||o&&o.pinch)&&this.fire("zoom",o),this.fire("move",o)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){tt(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[h(this._container)]=this;var r=t?We:Pe;r(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&r(window,"resize",this._onResize,this),ce.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Q(this._resizeRequest),this._resizeRequest=ve(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,r){for(var o=[],c,d=r==="mouseout"||r==="mouseover",g=t.target||t.srcElement,E=!1;g;){if(c=this._targets[h(g)],c&&(r==="click"||r==="preclick")&&this._draggableMoved(c)){E=!0;break}if(c&&c.listens(r,!0)&&(d&&!Mo(g,t)||(o.push(c),d))||g===this._container)break;g=g.parentNode}return!o.length&&!E&&!d&&this.listens(r,!0)&&(o=[this]),o},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var r=t.target||t.srcElement;if(!(!this._loaded||r._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(r))){var o=t.type;o==="mousedown"&&xo(r),this._fireDOMEvent(t,o)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,r,o){if(t.type==="click"){var c=a({},t);c.type="preclick",this._fireDOMEvent(c,c.type,o)}var d=this._findEventTargets(t,r);if(o){for(var g=[],E=0;E0?Math.round(t-r)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(r))},_limitZoom:function(t){var r=this.getMinZoom(),o=this.getMaxZoom(),c=ce.any3d?this.options.zoomSnap:1;return c&&(t=Math.round(t/c)*c),Math.max(r,Math.min(o,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,r){var o=this._getCenterOffset(t)._trunc();return(r&&r.animate)!==!0&&!this.getSize().contains(o)?!1:(this.panBy(o,r),!0)},_createAnimProxy:function(){var t=this._proxy=De("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(r){var o=wo,c=this._proxy.style[o];ni(this._proxy,this.project(r.center,r.zoom),this.getZoomScale(r.zoom,1)),c===this._proxy.style[o]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Je(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),r=this.getZoom();ni(this._proxy,this.project(t,r),this.getZoomScale(r,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,r,o){if(this._animatingZoom)return!0;if(o=o||{},!this._zoomAnimated||o.animate===!1||this._nothingToAnimate()||Math.abs(r-this._zoom)>this.options.zoomAnimationThreshold)return!1;var c=this.getZoomScale(r),d=this._getCenterOffset(t)._divideBy(1-1/c);return o.animate!==!0&&!this.getSize().contains(d)?!1:(ve(function(){this._moveStart(!0,o.noMoveStart||!1)._animateZoom(t,r,!0)},this),!0)},_animateZoom:function(t,r,o,c){this._mapPane&&(o&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=r,Te(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:r,noUpdate:c}),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&&Qe(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 xp(t,r){return new Ne(t,r)}var Kt=Me.extend({options:{position:"topright"},initialize:function(t){T(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var r=this._map;return r&&r.removeControl(this),this.options.position=t,r&&r.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var r=this._container=this.onAdd(t),o=this.getPosition(),c=t._controlCorners[o];return Te(r,"leaflet-control"),o.indexOf("bottom")!==-1?c.insertBefore(r,c.firstChild):c.appendChild(r),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Je(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()}}),lr=function(t){return new Kt(t)};Ne.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},r="leaflet-",o=this._controlContainer=De("div",r+"control-container",this._container);function c(d,g){var E=r+d+" "+r+g;t[d+g]=De("div",E,o)}c("top","left"),c("top","right"),c("bottom","left"),c("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Je(this._controlCorners[t]);Je(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var vc=Kt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,r,o,c){return o1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=r&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var r=this._getLayer(h(t.target)),o=r.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;o&&this._map.fire(o,r)},_createRadioElement:function(t,r){var o='",c=document.createElement("div");return c.innerHTML=o,c.firstChild},_addItem:function(t){var r=document.createElement("label"),o=this._map.hasLayer(t.layer),c;t.overlay?(c=document.createElement("input"),c.type="checkbox",c.className="leaflet-control-layers-selector",c.defaultChecked=o):c=this._createRadioElement("leaflet-base-layers_"+h(this),o),this._layerControlInputs.push(c),c.layerId=h(t.layer),Pe(c,"click",this._onInputClick,this);var d=document.createElement("span");d.innerHTML=" "+t.name;var g=document.createElement("span");r.appendChild(g),g.appendChild(c),g.appendChild(d);var E=t.overlay?this._overlaysList:this._baseLayersList;return E.appendChild(r),this._checkDisabledLayers(),r},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,r,o,c=[],d=[];this._handlingClick=!0;for(var g=t.length-1;g>=0;g--)r=t[g],o=this._getLayer(r.layerId).layer,r.checked?c.push(o):r.checked||d.push(o);for(g=0;g=0;d--)r=t[d],o=this._getLayer(r.layerId).layer,r.disabled=o.options.minZoom!==void 0&&co.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Pe(t,"click",_t),this.expand();var r=this;setTimeout(function(){We(t,"click",_t),r._preventClick=!1})}}),Cp=function(t,r,o){return new vc(t,r,o)},Io=Kt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var r="leaflet-control-zoom",o=De("div",r+" leaflet-bar"),c=this.options;return this._zoomInButton=this._createButton(c.zoomInText,c.zoomInTitle,r+"-in",o,this._zoomIn),this._zoomOutButton=this._createButton(c.zoomOutText,c.zoomOutTitle,r+"-out",o,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),o},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._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,r,o,c,d){var g=De("a",o,c);return g.innerHTML=t,g.href="#",g.title=r,g.setAttribute("role","button"),g.setAttribute("aria-label",r),ar(g),Pe(g,"click",si),Pe(g,"click",d,this),Pe(g,"click",this._refocusOnMap,this),g},_updateDisabled:function(){var t=this._map,r="leaflet-disabled";Qe(this._zoomInButton,r),Qe(this._zoomOutButton,r),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(Te(this._zoomOutButton,r),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(Te(this._zoomInButton,r),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ne.mergeOptions({zoomControl:!0}),Ne.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Io,this.addControl(this.zoomControl))});var Lp=function(t){return new Io(t)},yc=Kt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var r="leaflet-control-scale",o=De("div",r),c=this.options;return this._addScales(c,r+"-line",o),t.on(c.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),o},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,r,o){t.metric&&(this._mScale=De("div",r,o)),t.imperial&&(this._iScale=De("div",r,o))},_update:function(){var t=this._map,r=t.getSize().y/2,o=t.distance(t.containerPointToLatLng([0,r]),t.containerPointToLatLng([this.options.maxWidth,r]));this._updateScales(o)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var r=this._getRoundNum(t),o=r<1e3?r+" m":r/1e3+" km";this._updateScale(this._mScale,o,r/t)},_updateImperial:function(t){var r=t*3.2808399,o,c,d;r>5280?(o=r/5280,c=this._getRoundNum(o),this._updateScale(this._iScale,c+" mi",c/o)):(d=this._getRoundNum(r),this._updateScale(this._iScale,d+" ft",d/r))},_updateScale:function(t,r,o){t.style.width=Math.round(this.options.maxWidth*o)+"px",t.innerHTML=r},_getRoundNum:function(t){var r=Math.pow(10,(Math.floor(t)+"").length-1),o=t/r;return o=o>=10?10:o>=5?5:o>=3?3:o>=2?2:1,r*o}}),kp=function(t){return new yc(t)},Op='',Ao=Kt.extend({options:{position:"bottomright",prefix:''+(ce.inlineSvg?Op+" ":"")+"Leaflet"},initialize:function(t){T(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=De("div","leaflet-control-attribution"),ar(this._container);for(var r in t._layers)t._layers[r].getAttribution&&this.addAttribution(t._layers[r].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 r in this._attributions)this._attributions[r]&&t.push(r);var o=[];this.options.prefix&&o.push(this.options.prefix),t.length&&o.push(t.join(", ")),this._container.innerHTML=o.join(' ')}}});Ne.mergeOptions({attributionControl:!0}),Ne.addInitHook(function(){this.options.attributionControl&&new Ao().addTo(this)});var Rp=function(t){return new Ao(t)};Kt.Layers=vc,Kt.Zoom=Io,Kt.Scale=yc,Kt.Attribution=Ao,lr.layers=Cp,lr.zoom=Lp,lr.scale=kp,lr.attribution=Rp;var ln=Me.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}});ln.addTo=function(t,r){return t.addHandler(r,this),this};var Mp={Events:Ee},wc=ce.touch?"touchstart mousedown":"mousedown",Nn=Ce.extend({options:{clickTolerance:3},initialize:function(t,r,o,c){T(this,c),this._element=t,this._dragStartTarget=r||t,this._preventOutline=o},enable:function(){this._enabled||(Pe(this._dragStartTarget,wc,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Nn._dragging===this&&this.finishDrag(!0),We(this._dragStartTarget,wc,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!bo(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Nn._dragging===this&&this.finishDrag();return}if(!(Nn._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Nn._dragging=this,this._preventOutline&&xo(this._element),So(),rr(),!this._moving)){this.fire("down");var r=t.touches?t.touches[0]:t,o=hc(this._element);this._startPoint=new te(r.clientX,r.clientY),this._startPos=ii(this._element),this._parentScale=Co(o);var c=t.type==="mousedown";Pe(document,c?"mousemove":"touchmove",this._onMove,this),Pe(document,c?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var r=t.touches&&t.touches.length===1?t.touches[0]:t,o=new te(r.clientX,r.clientY)._subtract(this._startPoint);!o.x&&!o.y||Math.abs(o.x)+Math.abs(o.y)g&&(E=I,g=D);g>o&&(r[E]=1,zo(t,r,o,c,E),zo(t,r,o,E,d))}function zp(t,r){for(var o=[t[0]],c=1,d=0,g=t.length;cr&&(o.push(t[c]),d=c);return dr.max.x&&(o|=2),t.yr.max.y&&(o|=8),o}function Dp(t,r){var o=r.x-t.x,c=r.y-t.y;return o*o+c*c}function cr(t,r,o,c){var d=r.x,g=r.y,E=o.x-d,I=o.y-g,D=E*E+I*I,q;return D>0&&(q=((t.x-d)*E+(t.y-g)*I)/D,q>1?(d=o.x,g=o.y):q>0&&(d+=E*q,g+=I*q)),E=t.x-d,I=t.y-g,c?E*E+I*I:new te(d,g)}function Vt(t){return!z(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function xc(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Vt(t)}function Cc(t,r){var o,c,d,g,E,I,D,q;if(!t||t.length===0)throw new Error("latlngs not passed");Vt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var ie=M([0,0]),me=v(t),Le=me.getNorthWest().distanceTo(me.getSouthWest())*me.getNorthEast().distanceTo(me.getNorthWest());Le<1700&&(ie=No(t));var Ct=t.length,dt=[];for(o=0;oc){D=(g-c)/d,q=[I.x-D*(I.x-E.x),I.y-D*(I.y-E.y)];break}var At=r.unproject(Z(q));return M([At.lat+ie.lat,At.lng+ie.lng])}var jp={__proto__:null,simplify:$c,pointToSegmentDistance:Sc,closestPointOnSegment:Ap,clipSegment:Tc,_getEdgeIntersection:rs,_getBitCode:oi,_sqClosestPointOnSegment:cr,isFlat:Vt,_flat:xc,polylineCenter:Cc},Do={project:function(t){return new te(t.lng,t.lat)},unproject:function(t){return new $(t.y,t.x)},bounds:new O([-180,-90],[180,90])},jo={R:6378137,R_MINOR:6356752314245179e-9,bounds:new O([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var r=Math.PI/180,o=this.R,c=t.lat*r,d=this.R_MINOR/o,g=Math.sqrt(1-d*d),E=g*Math.sin(c),I=Math.tan(Math.PI/4-c/2)/Math.pow((1-E)/(1+E),g/2);return c=-o*Math.log(Math.max(I,1e-10)),new te(t.lng*r*o,c)},unproject:function(t){for(var r=180/Math.PI,o=this.R,c=this.R_MINOR/o,d=Math.sqrt(1-c*c),g=Math.exp(-t.y/o),E=Math.PI/2-2*Math.atan(g),I=0,D=.1,q;I<15&&Math.abs(D)>1e-7;I++)q=d*Math.sin(E),q=Math.pow((1-q)/(1+q),d/2),D=Math.PI/2-2*Math.atan(g*q)-E,E+=D;return new $(E*r,t.x*r/o)}},Bp={__proto__:null,LonLat:Do,Mercator:jo,SphericalMercator:J},Zp=a({},j,{code:"EPSG:3395",projection:jo,transformation:function(){var t=.5/(Math.PI*jo.R);return Ie(t,.5,-t,.5)}()}),Lc=a({},j,{code:"EPSG:4326",projection:Do,transformation:Ie(1/180,1,-1/180,.5)}),Fp=a({},R,{projection:Do,transformation:Ie(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,r){var o=r.lng-t.lng,c=r.lat-t.lat;return Math.sqrt(o*o+c*c)},infinite:!0});R.Earth=j,R.EPSG3395=Zp,R.EPSG3857=w,R.EPSG900913=S,R.EPSG4326=Lc,R.Simple=Fp;var Gt=Ce.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[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var r=t.target;if(r.hasLayer(this)){if(this._map=r,this._zoomAnimated=r._zoomAnimated,this.getEvents){var o=this.getEvents();r.on(o,this),this.once("remove",function(){r.off(o,this)},this)}this.onAdd(r),this.fire("add"),r.fire("layeradd",{layer:this})}}});Ne.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var r=h(t);return this._layers[r]?this:(this._layers[r]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var r=h(t);return this._layers[r]?(this._loaded&&t.onRemove(this),delete this._layers[r],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,r){for(var o in this._layers)t.call(r,this._layers[o]);return this},_addLayers:function(t){t=t?z(t)?t:[t]:[];for(var r=0,o=t.length;rthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&r[0]instanceof $&&r[0].equals(r[o-1])&&r.pop(),r},_setLatLngs:function(t){Pn.prototype._setLatLngs.call(this,t),Vt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Vt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,r=this.options.weight,o=new te(r,r);if(t=new O(t.min.subtract(o),t.max.add(o)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var c=0,d=this._rings.length,g;ct.y!=d.y>t.y&&t.x<(d.x-c.x)*(t.y-c.y)/(d.y-c.y)+c.x&&(r=!r);return r||Pn.prototype._containsPoint.call(this,t,!0)}});function Jp(t,r){return new Ci(t,r)}var $n=bn.extend({initialize:function(t,r){T(this,r),this._layers={},t&&this.addData(t)},addData:function(t){var r=z(t)?t:t.features,o,c,d;if(r){for(o=0,c=r.length;o0&&d.push(d[0].slice()),d}function Li(t,r){return t.feature?a({},t.feature,{geometry:r}):us(r)}function us(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Vo={toGeoJSON:function(t){return Li(this,{type:"Point",coordinates:Fo(this.getLatLng(),t)})}};ss.include(Vo),Bo.include(Vo),os.include(Vo),Pn.include({toGeoJSON:function(t){var r=!Vt(this._latlngs),o=cs(this._latlngs,r?1:0,!1,t);return Li(this,{type:(r?"Multi":"")+"LineString",coordinates:o})}}),Ci.include({toGeoJSON:function(t){var r=!Vt(this._latlngs),o=r&&!Vt(this._latlngs[0]),c=cs(this._latlngs,o?2:r?1:0,!0,t);return r||(c=[c]),Li(this,{type:(o?"Multi":"")+"Polygon",coordinates:c})}}),Ti.include({toMultiPoint:function(t){var r=[];return this.eachLayer(function(o){r.push(o.toGeoJSON(t).geometry.coordinates)}),Li(this,{type:"MultiPoint",coordinates:r})},toGeoJSON:function(t){var r=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(r==="MultiPoint")return this.toMultiPoint(t);var o=r==="GeometryCollection",c=[];return this.eachLayer(function(d){if(d.toGeoJSON){var g=d.toGeoJSON(t);if(o)c.push(g.geometry);else{var E=us(g);E.type==="FeatureCollection"?c.push.apply(c,E.features):c.push(E)}}}),o?Li(this,{geometries:c,type:"GeometryCollection"}):{type:"FeatureCollection",features:c}}});function Rc(t,r){return new $n(t,r)}var Yp=Rc,fs=Gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,r,o){this._url=t,this._bounds=v(r),T(this,o)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Te(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Je(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&&Si(this._image),this},bringToBack:function(){return this._map&&Ei(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=v(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",r=this._image=t?this._url:De("img");if(Te(r,"leaflet-image-layer"),this._zoomAnimated&&Te(r,"leaflet-zoom-animated"),this.options.className&&Te(r,this.options.className),r.onselectstart=_,r.onmousemove=_,r.onload=u(this.fire,this,"load"),r.onerror=u(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(r.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=r.src;return}r.src=this._url,r.alt=this.options.alt},_animateZoom:function(t){var r=this._map.getZoomScale(t.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ni(this._image,o,r)},_reset:function(){var t=this._image,r=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),o=r.getSize();tt(t,r.min),t.style.width=o.x+"px",t.style.height=o.y+"px"},_updateOpacity:function(){Ft(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()}}),Xp=function(t,r,o){return new fs(t,r,o)},Mc=fs.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",r=this._image=t?this._url:De("video");if(Te(r,"leaflet-image-layer"),this._zoomAnimated&&Te(r,"leaflet-zoom-animated"),this.options.className&&Te(r,this.options.className),r.onselectstart=_,r.onmousemove=_,r.onloadeddata=u(this.fire,this,"load"),t){for(var o=r.getElementsByTagName("source"),c=[],d=0;d0?c:[r.src];return}z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(r.style,"objectFit")&&(r.style.objectFit="fill"),r.autoplay=!!this.options.autoplay,r.loop=!!this.options.loop,r.muted=!!this.options.muted,r.playsInline=!!this.options.playsInline;for(var g=0;gd?(r.height=d+"px",Te(t,g)):Qe(t,g),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),o=this._getAnchor();tt(this._container,r.add(o))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,r=parseInt(ir(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+r,c=this._containerWidth,d=new te(this._containerLeft,-o-this._containerBottom);d._add(ii(this._container));var g=t.layerPointToContainerPoint(d),E=Z(this.options.autoPanPadding),I=Z(this.options.autoPanPaddingTopLeft||E),D=Z(this.options.autoPanPaddingBottomRight||E),q=t.getSize(),ie=0,me=0;g.x+c+D.x>q.x&&(ie=g.x+c-q.x+D.x),g.x-ie-I.x<0&&(ie=g.x-I.x),g.y+o+D.y>q.y&&(me=g.y+o-q.y+D.y),g.y-me-I.y<0&&(me=g.y-I.y),(ie||me)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([ie,me]))}},_getAnchor:function(){return Z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),tm=function(t,r){return new hs(t,r)};Ne.mergeOptions({closePopupOnClick:!0}),Ne.include({openPopup:function(t,r,o){return this._initOverlay(hs,t,r,o).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Gt.include({bindPopup:function(t,r){return this._popup=this._initOverlay(hs,this._popup,t,r),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 bn||(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)){si(t);var r=t.layer||t.target;if(this._popup._source===r&&!(r instanceof zn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=r,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var ds=cn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){cn.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){cn.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=cn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",r=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=De("div",r),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var r,o,c=this._map,d=this._container,g=c.latLngToContainerPoint(c.getCenter()),E=c.layerPointToContainerPoint(t),I=this.options.direction,D=d.offsetWidth,q=d.offsetHeight,ie=Z(this.options.offset),me=this._getAnchor();I==="top"?(r=D/2,o=q):I==="bottom"?(r=D/2,o=0):I==="center"?(r=D/2,o=q/2):I==="right"?(r=0,o=q/2):I==="left"?(r=D,o=q/2):E.xthis.options.maxZoom||oc?this._retainParent(d,g,E,c):!1)},_retainChildren:function(t,r,o,c){for(var d=2*t;d<2*t+2;d++)for(var g=2*r;g<2*r+2;g++){var E=new te(d,g);E.z=o+1;var I=this._tileCoordsToKey(E),D=this._tiles[I];if(D&&D.active){D.retain=!0;continue}else D&&D.loaded&&(D.retain=!0);o+1this.options.maxZoom||this.options.minZoom!==void 0&&d1){this._setView(t,o);return}for(var me=d.min.y;me<=d.max.y;me++)for(var Le=d.min.x;Le<=d.max.x;Le++){var Ct=new te(Le,me);if(Ct.z=this._tileZoom,!!this._isValidTile(Ct)){var dt=this._tiles[this._tileCoordsToKey(Ct)];dt?dt.current=!0:E.push(Ct)}}if(E.sort(function(At,Oi){return At.distanceTo(g)-Oi.distanceTo(g)}),E.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ht=document.createDocumentFragment();for(Le=0;Leo.max.x)||!r.wrapLat&&(t.yo.max.y))return!1}if(!this.options.bounds)return!0;var c=this._tileCoordsToBounds(t);return v(this.options.bounds).overlaps(c)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var r=this._map,o=this.getTileSize(),c=t.scaleBy(o),d=c.add(o),g=r.unproject(c,t.z),E=r.unproject(d,t.z);return[g,E]},_tileCoordsToBounds:function(t){var r=this._tileCoordsToNwSe(t),o=new A(r[0],r[1]);return this.options.noWrap||(o=this._map.wrapLatLngBounds(o)),o},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var r=t.split(":"),o=new te(+r[0],+r[1]);return o.z=+r[2],o},_removeTile:function(t){var r=this._tiles[t];r&&(Je(r.el),delete this._tiles[t],this.fire("tileunload",{tile:r.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Te(t,"leaflet-tile");var r=this.getTileSize();t.style.width=r.x+"px",t.style.height=r.y+"px",t.onselectstart=_,t.onmousemove=_,ce.ielt9&&this.options.opacity<1&&Ft(t,this.options.opacity)},_addTile:function(t,r){var o=this._getTilePos(t),c=this._tileCoordsToKey(t),d=this.createTile(this._wrapCoords(t),u(this._tileReady,this,t));this._initTile(d),this.createTile.length<2&&ve(u(this._tileReady,this,t,null,d)),tt(d,o),this._tiles[c]={el:d,coords:t,current:!0},r.appendChild(d),this.fire("tileloadstart",{tile:d,coords:t})},_tileReady:function(t,r,o){r&&this.fire("tileerror",{error:r,tile:o,coords:t});var c=this._tileCoordsToKey(t);o=this._tiles[c],o&&(o.loaded=+new Date,this._map._fadeAnimated?(Ft(o.el,0),Q(this._fadeFrame),this._fadeFrame=ve(this._updateOpacity,this)):(o.active=!0,this._pruneTiles()),r||(Te(o.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:o.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ce.ielt9||!this._map._fadeAnimated?ve(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 r=new te(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return r.z=t.z,r},_pxBoundsToTileRange:function(t){var r=this.getTileSize();return new O(t.min.unscaleBy(r).floor(),t.max.unscaleBy(r).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function rm(t){return new fr(t)}var ki=fr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,r){this._url=t,r=T(this,r),r.detectRetina&&ce.retina&&r.maxZoom>0?(r.tileSize=Math.floor(r.tileSize/2),r.zoomReverse?(r.zoomOffset--,r.minZoom=Math.min(r.maxZoom,r.minZoom+1)):(r.zoomOffset++,r.maxZoom=Math.max(r.minZoom,r.maxZoom-1)),r.minZoom=Math.max(0,r.minZoom)):r.zoomReverse?r.minZoom=Math.min(r.maxZoom,r.minZoom):r.maxZoom=Math.max(r.minZoom,r.maxZoom),typeof r.subdomains=="string"&&(r.subdomains=r.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,r){return this._url===t&&r===void 0&&(r=!0),this._url=t,r||this.redraw(),this},createTile:function(t,r){var o=document.createElement("img");return Pe(o,"load",u(this._tileOnLoad,this,r,o)),Pe(o,"error",u(this._tileOnError,this,r,o)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(o.referrerPolicy=this.options.referrerPolicy),o.alt="",o.src=this.getTileUrl(t),o},getTileUrl:function(t){var r={r:ce.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-t.y;this.options.tms&&(r.y=o),r["-y"]=o}return k(this._url,a(r,this.options))},_tileOnLoad:function(t,r){ce.ielt9?setTimeout(u(t,this,null,r),0):t(null,r)},_tileOnError:function(t,r,o){var c=this.options.errorTileUrl;c&&r.getAttribute("src")!==c&&(r.src=c),t(o,r)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,r=this.options.maxZoom,o=this.options.zoomReverse,c=this.options.zoomOffset;return o&&(t=r-t),t+c},_getSubdomain:function(t){var r=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[r]},_abortLoading:function(){var t,r;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(r=this._tiles[t].el,r.onload=_,r.onerror=_,!r.complete)){r.src=G;var o=this._tiles[t].coords;Je(r),delete this._tiles[t],this.fire("tileabort",{tile:r,coords:o})}},_removeTile:function(t){var r=this._tiles[t];if(r)return r.el.setAttribute("src",G),fr.prototype._removeTile.call(this,t)},_tileReady:function(t,r,o){if(!(!this._map||o&&o.getAttribute("src")===G))return fr.prototype._tileReady.call(this,t,r,o)}});function Nc(t,r){return new ki(t,r)}var zc=ki.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,r){this._url=t;var o=a({},this.defaultWmsParams);for(var c in r)c in this.options||(o[c]=r[c]);r=T(this,r);var d=r.detectRetina&&ce.retina?2:1,g=this.getTileSize();o.width=g.x*d,o.height=g.y*d,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var r=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,ki.prototype.onAdd.call(this,t)},getTileUrl:function(t){var r=this._tileCoordsToNwSe(t),o=this._crs,c=F(o.project(r[0]),o.project(r[1])),d=c.min,g=c.max,E=(this._wmsVersion>=1.3&&this._crs===Lc?[d.y,d.x,g.y,g.x]:[d.x,d.y,g.x,g.y]).join(","),I=ki.prototype.getTileUrl.call(this,t);return I+C(this.wmsParams,I,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+E},setParams:function(t,r){return a(this.wmsParams,t),r||this.redraw(),this}});function sm(t,r){return new zc(t,r)}ki.WMS=zc,Nc.wms=sm;var Sn=Gt.extend({options:{padding:.1},initialize:function(t){T(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Te(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,r){var o=this._map.getZoomScale(r,this._zoom),c=this._map.getSize().multiplyBy(.5+this.options.padding),d=this._map.project(this._center,r),g=c.multiplyBy(-o).add(d).subtract(this._map._getNewPixelOrigin(t,r));ce.any3d?ni(this._container,g,o):tt(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,r=this._map.getSize(),o=this._map.containerPointToLayerPoint(r.multiplyBy(-t)).round();this._bounds=new O(o,o.add(r.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Dc=Sn.extend({options:{tolerance:0},getEvents:function(){var t=Sn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Sn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Pe(t,"mousemove",this._onMouseMove,this),Pe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){Q(this._redrawRequest),delete this._ctx,Je(this._container),We(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var r in this._layers)t=this._layers[r],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Sn.prototype._update.call(this);var t=this._bounds,r=this._container,o=t.getSize(),c=ce.retina?2:1;tt(r,t.min),r.width=c*o.x,r.height=c*o.y,r.style.width=o.x+"px",r.style.height=o.y+"px",ce.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Sn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var r=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=r),this._drawLast=r,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var r=t._order,o=r.next,c=r.prev;o?o.prev=c:this._drawLast=c,c?c.next=o:this._drawFirst=o,delete t._order,delete this._layers[h(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 r=t.options.dashArray.split(/[, ]+/),o=[],c,d;for(d=0;d')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),om={_initContainer:function(){this._container=De("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Sn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var r=t._container=hr("shape");Te(r,"leaflet-vml-shape "+(this.options.className||"")),r.coordsize="1 1",t._path=hr("path"),r.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var r=t._container;this._container.appendChild(r),t.options.interactive&&t.addInteractiveTarget(r)},_removePath:function(t){var r=t._container;Je(r),t.removeInteractiveTarget(r),delete this._layers[h(t)]},_updateStyle:function(t){var r=t._stroke,o=t._fill,c=t.options,d=t._container;d.stroked=!!c.stroke,d.filled=!!c.fill,c.stroke?(r||(r=t._stroke=hr("stroke")),d.appendChild(r),r.weight=c.weight+"px",r.color=c.color,r.opacity=c.opacity,c.dashArray?r.dashStyle=z(c.dashArray)?c.dashArray.join(" "):c.dashArray.replace(/( *, *)/g," "):r.dashStyle="",r.endcap=c.lineCap.replace("butt","flat"),r.joinstyle=c.lineJoin):r&&(d.removeChild(r),t._stroke=null),c.fill?(o||(o=t._fill=hr("fill")),d.appendChild(o),o.color=c.fillColor||c.color,o.opacity=c.fillOpacity):o&&(d.removeChild(o),t._fill=null)},_updateCircle:function(t){var r=t._point.round(),o=Math.round(t._radius),c=Math.round(t._radiusY||o);this._setPath(t,t._empty()?"M0 0":"AL "+r.x+","+r.y+" "+o+","+c+" 0,"+65535*360)},_setPath:function(t,r){t._path.v=r},_bringToFront:function(t){Si(t._container)},_bringToBack:function(t){Ei(t._container)}},ps=ce.vml?hr:N,dr=Sn.extend({_initContainer:function(){this._container=ps("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ps("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Je(this._container),We(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Sn.prototype._update.call(this);var t=this._bounds,r=t.getSize(),o=this._container;(!this._svgSize||!this._svgSize.equals(r))&&(this._svgSize=r,o.setAttribute("width",r.x),o.setAttribute("height",r.y)),tt(o,t.min),o.setAttribute("viewBox",[t.min.x,t.min.y,r.x,r.y].join(" ")),this.fire("update")}},_initPath:function(t){var r=t._path=ps("path");t.options.className&&Te(r,t.options.className),t.options.interactive&&Te(r,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Je(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var r=t._path,o=t.options;r&&(o.stroke?(r.setAttribute("stroke",o.color),r.setAttribute("stroke-opacity",o.opacity),r.setAttribute("stroke-width",o.weight),r.setAttribute("stroke-linecap",o.lineCap),r.setAttribute("stroke-linejoin",o.lineJoin),o.dashArray?r.setAttribute("stroke-dasharray",o.dashArray):r.removeAttribute("stroke-dasharray"),o.dashOffset?r.setAttribute("stroke-dashoffset",o.dashOffset):r.removeAttribute("stroke-dashoffset")):r.setAttribute("stroke","none"),o.fill?(r.setAttribute("fill",o.fillColor||o.color),r.setAttribute("fill-opacity",o.fillOpacity),r.setAttribute("fill-rule",o.fillRule||"evenodd")):r.setAttribute("fill","none"))},_updatePoly:function(t,r){this._setPath(t,U(t._parts,r))},_updateCircle:function(t){var r=t._point,o=Math.max(Math.round(t._radius),1),c=Math.max(Math.round(t._radiusY),1)||o,d="a"+o+","+c+" 0 1,0 ",g=t._empty()?"M0 0":"M"+(r.x-o)+","+r.y+d+o*2+",0 "+d+-o*2+",0 ";this._setPath(t,g)},_setPath:function(t,r){t._path.setAttribute("d",r)},_bringToFront:function(t){Si(t._path)},_bringToBack:function(t){Ei(t._path)}});ce.vml&&dr.include(om);function Bc(t){return ce.svg||ce.vml?new dr(t):null}Ne.include({getRenderer:function(t){var r=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return r||(r=this._renderer=this._createRenderer()),this.hasLayer(r)||this.addLayer(r),r},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var r=this._paneRenderers[t];return r===void 0&&(r=this._createRenderer({pane:t}),this._paneRenderers[t]=r),r},_createRenderer:function(t){return this.options.preferCanvas&&jc(t)||Bc(t)}});var Zc=Ci.extend({initialize:function(t,r){Ci.prototype.initialize.call(this,this._boundsToLatLngs(t),r)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=v(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function am(t,r){return new Zc(t,r)}dr.create=ps,dr.pointsToPath=U,$n.geometryToLayer=as,$n.coordsToLatLng=Zo,$n.coordsToLatLngs=ls,$n.latLngToCoords=Fo,$n.latLngsToCoords=cs,$n.getFeature=Li,$n.asFeature=us,Ne.mergeOptions({boxZoom:!0});var Fc=ln.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Je(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(),rr(),So(),this._startPoint=this._map.mouseEventToContainerPoint(t),Pe(document,{contextmenu:si,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=De("div","leaflet-zoom-box",this._container),Te(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var r=new O(this._point,this._startPoint),o=r.getSize();tt(this._box,r.min),this._box.style.width=o.x+"px",this._box.style.height=o.y+"px"},_finish:function(){this._moved&&(Je(this._box),Qe(this._container,"leaflet-crosshair")),sr(),Eo(),We(document,{contextmenu:si,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 r=new A(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(r).fire("boxzoomend",{boxZoomBounds:r})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ne.addInitHook("addHandler","boxZoom",Fc),Ne.mergeOptions({doubleClickZoom:!0});var Vc=ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var r=this._map,o=r.getZoom(),c=r.options.zoomDelta,d=t.originalEvent.shiftKey?o-c:o+c;r.options.doubleClickZoom==="center"?r.setZoom(d):r.setZoomAround(t.containerPoint,d)}});Ne.addInitHook("addHandler","doubleClickZoom",Vc),Ne.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Hc=ln.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Nn(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))}Te(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qe(this._map._container,"leaflet-grab"),Qe(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 r=v(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(r.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(r.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 r=this._lastTime=+new Date,o=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(o),this._times.push(r),this._prunePositions(r)}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),r=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=r.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,r){return t-(t-r)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),r=this._offsetLimit;t.xr.max.x&&(t.x=this._viscousLimit(t.x,r.max.x)),t.y>r.max.y&&(t.y=this._viscousLimit(t.y,r.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,r=Math.round(t/2),o=this._initialWorldOffset,c=this._draggable._newPos.x,d=(c-r+o)%t+r-o,g=(c+r+o)%t-r-o,E=Math.abs(d+o)0?g:-g))-r;this._delta=0,this._startTime=null,E&&(t.options.scrollWheelZoom==="center"?t.setZoom(r+E):t.setZoomAround(this._lastMousePos,r+E))}});Ne.addInitHook("addHandler","scrollWheelZoom",qc);var lm=600;Ne.mergeOptions({tapHold:ce.touchNative&&ce.safari&&ce.mobile,tapTolerance:15});var Wc=ln.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var r=t.touches[0];this._startPos=this._newPos=new te(r.clientX,r.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(Pe(document,"touchend",_t),Pe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",r))},this),lm),Pe(document,"touchend touchcancel contextmenu",this._cancel,this),Pe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){We(document,"touchend",_t),We(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)},_onMove:function(t){var r=t.touches[0];this._newPos=new te(r.clientX,r.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,r){var o=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY});o._simulated=!0,r.target.dispatchEvent(o)}});Ne.addInitHook("addHandler","tapHold",Wc),Ne.mergeOptions({touchZoom:ce.touch,bounceAtZoomLimits:!0});var Kc=ln.extend({addHooks:function(){Te(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var r=this._map;if(!(!t.touches||t.touches.length!==2||r._animatingZoom||this._zooming)){var o=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=r.getSize()._divideBy(2),this._startLatLng=r.containerPointToLatLng(this._centerPoint),r.options.touchZoom!=="center"&&(this._pinchStartLatLng=r.containerPointToLatLng(o.add(c)._divideBy(2))),this._startDist=o.distanceTo(c),this._startZoom=r.getZoom(),this._moved=!1,this._zooming=!0,r._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend touchcancel",this._onTouchEnd,this),_t(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var r=this._map,o=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]),d=o.distanceTo(c)/this._startDist;if(this._zoom=r.getScaleZoom(d,this._startZoom),!r.options.bounceAtZoomLimits&&(this._zoomr.getMaxZoom()&&d>1)&&(this._zoom=r._limitZoom(this._zoom)),r.options.touchZoom==="center"){if(this._center=this._startLatLng,d===1)return}else{var g=o._add(c)._divideBy(2)._subtract(this._centerPoint);if(d===1&&g.x===0&&g.y===0)return;this._center=r.unproject(r.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(r._moveStart(!0,!1),this._moved=!0),Q(this._animRequest);var E=u(r._move,r,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ve(E,this,!0),_t(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Q(this._animRequest),We(document,"touchmove",this._onTouchMove,this),We(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))}});Ne.addInitHook("addHandler","touchZoom",Kc),Ne.BoxZoom=Fc,Ne.DoubleClickZoom=Vc,Ne.Drag=Hc,Ne.Keyboard=Uc,Ne.ScrollWheelZoom=qc,Ne.TapHold=Wc,Ne.TouchZoom=Kc,i.Bounds=O,i.Browser=ce,i.CRS=R,i.Canvas=Dc,i.Circle=Bo,i.CircleMarker=os,i.Class=Me,i.Control=Kt,i.DivIcon=Ac,i.DivOverlay=cn,i.DomEvent=Tp,i.DomUtil=Sp,i.Draggable=Nn,i.Evented=Ce,i.FeatureGroup=bn,i.GeoJSON=$n,i.GridLayer=fr,i.Handler=ln,i.Icon=xi,i.ImageOverlay=fs,i.LatLng=$,i.LatLngBounds=A,i.Layer=Gt,i.LayerGroup=Ti,i.LineUtil=jp,i.Map=Ne,i.Marker=ss,i.Mixin=Mp,i.Path=zn,i.Point=te,i.PolyUtil=Ip,i.Polygon=Ci,i.Polyline=Pn,i.Popup=hs,i.PosAnimation=gc,i.Projection=Bp,i.Rectangle=Zc,i.Renderer=Sn,i.SVG=dr,i.SVGOverlay=Ic,i.TileLayer=ki,i.Tooltip=ds,i.Transformation=he,i.Util=xe,i.VideoOverlay=Mc,i.bind=u,i.bounds=F,i.canvas=jc,i.circle=Kp,i.circleMarker=Wp,i.control=lr,i.divIcon=im,i.extend=a,i.featureGroup=Hp,i.geoJSON=Rc,i.geoJson=Yp,i.gridLayer=rm,i.icon=Up,i.imageOverlay=Xp,i.latLng=M,i.latLngBounds=v,i.layerGroup=Vp,i.map=xp,i.marker=qp,i.point=Z,i.polygon=Jp,i.polyline=Gp,i.popup=tm,i.rectangle=am,i.setOptions=T,i.stamp=h,i.svg=Bc,i.svgOverlay=em,i.tileLayer=Nc,i.tooltip=nm,i.transformation=Ie,i.version=s,i.videoOverlay=Qp;var cm=window.L;i.noConflict=function(){return window.L=cm,this},window.L=i})})(ja,ja.exports);var X$=ja.exports;const Ls=td(X$),Q$={class:"toggle-map-container"},eS={class:"map-wrapper"},tS=It({__name:"LeafletMap",props:{resourcesPrefetch:{},locationsPrefetch:{},idReferences:{}},setup(e){const n=Jv(),i=qr(),s=it(!1),a=e,l=it([]);l.value=a.resourcesPrefetch.map(m=>{var _;return{resource:m,coordinates:((_=a.locationsPrefetch.find(y=>y.resourceinstance_id===m.resourceinstanceid))==null?void 0:_.data[a.idReferences.coordinatesNodeId])??void 0}});const u=it(null);let f;const h=new Map,p=m=>{const _=Ls.map(m).setView([41.87213786,-87.62576558],14);f=_,Ls.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:20,attribution:'© OpenStreetMap'}).addTo(_);const y=Ls.icon({iconUrl:"https://arches-app-demo.opentechstrategies.com/archesdataviewer/marker-icon-2x.png",iconSize:[16,30],popupAnchor:[0,-32]});return l.value.forEach(b=>{var x;if(b.coordinates){const T=((x=b.coordinates)==null?void 0:x.features[0].geometry.coordinates)??void 0;if(T){const C=Ls.marker([T[1],T[0]],{icon:y});C.bindPopup(`${b.resource.descriptors.en.name}`),C.on("click",()=>{n.push(`/archesdataviewer/home/resource/${b.resource.resourceinstanceid}`)}),h.set(b.resource.resourceinstanceid,C),C.addTo(_)}}}),f};return nl(()=>{u.value&&(f=p(u.value))}),Gn(()=>i.params.id,m=>{if(m){const _=h.get(m);_?_.openPopup():f==null||f.closePopup()}else f==null||f.closePopup()},{immediate:!0}),(m,_)=>(_e(),Ve("div",{class:vi(s.value?"map-container expanded":"map-container collapsed")},[pe("div",Q$,[pe("button",{type:"button",class:"toggle-map",onClick:_[0]||(_[0]=y=>s.value=!s.value)},[_[2]||(_[2]=pe("span",null,"Explore the artwork geographically",-1)),Ye(ke(d$),{class:"button-icon"})])]),pe("div",{onClick:_[1]||(_[1]=y=>s.value=!0)},[pe("div",eS,[pe("div",{id:"map",ref_key:"mapElement",ref:u},null,512)])])],2))}}),nS=An(tS,[["__scopeId","data-v-d460b876"]]),iS={class:"home"},rS={id:"map-container"},sS={key:1,class:"map-placeholder"},oS=It({__name:"App",setup(e){const n=it(void 0),i=it(void 0),s=it(void 0),a=it(void 0),l=it(void 0),u=it(null),f=qr();Gn(()=>f.params.id,p=>{p&&u.value&&u.value.scrollIntoView({behavior:"smooth",block:"start"})});async function h(){try{const p=new URL("https://arches-app-demo.opentechstrategies.com/archesdataviewer/prefetch/"),_=await(await fetch(p.toString())).json();n.value=_.idReferences,i.value=_.images,s.value=_.locations,a.value=_.resourceRelations,l.value=_.resources}catch{n.value=void 0,i.value=void 0,s.value=void 0,a.value=void 0,l.value=void 0}}return h(),(p,m)=>{const _=Yi("RouterView");return _e(),Ve("div",iS,[m[0]||(m[0]=pe("header",{class:"welcome"},[pe("h1",null,"Explore Chicago’s Wabash Arts Corridor"),pe("p",null," In 2013, Columbia College Chicago launched the Wabash Arts Corridor to immerse students in the creative spirit by using urban spaces and reclaimable resources to revitalize and transform the South Loop business district into one of the city’s major cultural assets. The heart of WAC is Wabash Avenue from Van Buren to Roosevelt and is framed to the east by Michigan Avenue and to the west by State Street. The corridor is regarded as an “living urban canvas” due to its ever-growing number of large-scale mural installations and collaborative projects. ")],-1)),pe("main",null,[pe("div",rS,[l.value&&n.value&&s.value?(_e(),st(nS,{key:0,"resources-prefetch":l.value,"id-references":n.value,"locations-prefetch":s.value},null,8,["resources-prefetch","id-references","locations-prefetch"])):(_e(),Ve("div",sS,"Loading map…"))]),pe("div",{id:"search-list-container",ref_key:"searchListContainer",ref:u},[Ye(_,null,{default:rt(({Component:y})=>[l.value&&a.value&&n.value&&i.value?(_e(),st(Fh,{key:0},{default:rt(()=>[(_e(),st(S_(y),{"resources-prefetch":l.value,"resource-relations-prefetch":a.value,"id-references":n.value,"images-prefetch":i.value},null,8,["resources-prefetch","resource-relations-prefetch","id-references","images-prefetch"]))]),_:2},1024)):wt("",!0)]),_:1})],512)]),m[1]||(m[1]=pe("footer",{class:"footer"},[pe("div",{class:"footer-blurb"},[pe("h2",null,"About / Credit"),pe("p",null," This site is a project of XYZ and ABC in association with DEF. All artwork is courtesy of the respective artist. You can email contact@example.org to suggest changes or pat our collective back. ")])],-1))])}}}),aS=An(oS,[["__scopeId","data-v-bf722eb2"]]),tp=Hg(aS);tp.use(Y$);tp.mount("#app"); + */(function(e,n){(function(i,s){s(n)})(Yv,function(i){var s="1.9.4";function a(t){var r,o,c,d;for(o=1,c=arguments.length;o"u"||!L||!L.Mixin)){t=z(t)?t:[t];for(var r=0;r0?Math.floor(t):Math.ceil(t)};te.prototype={clone:function(){return new te(this.x,this.y)},add:function(t){return this.clone()._add(Z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(Z(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 te(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new te(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=mt(this.x),this.y=mt(this.y),this},distanceTo:function(t){t=Z(t);var r=t.x-this.x,o=t.y-this.y;return Math.sqrt(r*r+o*o)},equals:function(t){return t=Z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=Z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+y(this.x)+", "+y(this.y)+")"}};function Z(t,r,o){return t instanceof te?t:z(t)?new te(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new te(t.x,t.y):new te(t,r,o)}function O(t,r){if(t)for(var o=r?[t,r]:t,c=0,d=o.length;c=this.min.x&&o.x<=this.max.x&&r.y>=this.min.y&&o.y<=this.max.y},intersects:function(t){t=F(t);var r=this.min,o=this.max,c=t.min,d=t.max,g=d.x>=r.x&&c.x<=o.x,E=d.y>=r.y&&c.y<=o.y;return g&&E},overlaps:function(t){t=F(t);var r=this.min,o=this.max,c=t.min,d=t.max,g=d.x>r.x&&c.xr.y&&c.y=r.lat&&d.lat<=o.lat&&c.lng>=r.lng&&d.lng<=o.lng},intersects:function(t){t=v(t);var r=this._southWest,o=this._northEast,c=t.getSouthWest(),d=t.getNorthEast(),g=d.lat>=r.lat&&c.lat<=o.lat,E=d.lng>=r.lng&&c.lng<=o.lng;return g&&E},overlaps:function(t){t=v(t);var r=this._southWest,o=this._northEast,c=t.getSouthWest(),d=t.getNorthEast(),g=d.lat>r.lat&&c.latr.lng&&c.lng1,ap=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",_,r),window.removeEventListener("testPassiveEventSupport",_,r)}catch{}return t}(),lp=function(){return!!document.createElement("canvas").getContext}(),vo=!!(document.createElementNS&&N("svg").createSVGRect),cp=!!vo&&function(){var t=document.createElement("div");return t.innerHTML="",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),up=!vo&&function(){try{var t=document.createElement("div");t.innerHTML='';var r=t.firstChild;return r.style.behavior="url(#default#VML)",r&&typeof r.adj=="object"}catch{return!1}}(),fp=navigator.platform.indexOf("Mac")===0,hp=navigator.platform.indexOf("Linux")===0;function on(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var ce={ie:W,ielt9:ee,edge:X,webkit:Y,android:K,android23:le,androidStock:se,opera:ue,chrome:$e,gecko:ze,safari:Ae,phantom:ht,opera12:at,win:Dt,ie3d:bt,webkit3d:wn,gecko3d:tr,any3d:xt,mobile:Pt,mobileWebkit:Jr,mobileWebkit3d:np,msPointer:ec,pointer:tc,touch:ip,touchNative:nc,mobileOpera:rp,mobileGecko:sp,retina:op,passiveEvents:ap,canvas:lp,svg:vo,vml:up,inlineSvg:cp,mac:fp,linux:hp},ic=ce.msPointer?"MSPointerDown":"pointerdown",rc=ce.msPointer?"MSPointerMove":"pointermove",sc=ce.msPointer?"MSPointerUp":"pointerup",oc=ce.msPointer?"MSPointerCancel":"pointercancel",yo={touchstart:ic,touchmove:rc,touchend:sc,touchcancel:oc},ac={touchstart:vp,touchmove:Yr,touchend:Yr,touchcancel:Yr},$i={},lc=!1;function dp(t,r,o){return r==="touchstart"&&gp(),ac[r]?(o=ac[r].bind(this,o),t.addEventListener(yo[r],o,!1),o):(console.warn("wrong event specified:",r),_)}function pp(t,r,o){if(!yo[r]){console.warn("wrong event specified:",r);return}t.removeEventListener(yo[r],o,!1)}function mp(t){$i[t.pointerId]=t}function _p(t){$i[t.pointerId]&&($i[t.pointerId]=t)}function cc(t){delete $i[t.pointerId]}function gp(){lc||(document.addEventListener(ic,mp,!0),document.addEventListener(rc,_p,!0),document.addEventListener(sc,cc,!0),document.addEventListener(oc,cc,!0),lc=!0)}function Yr(t,r){if(r.pointerType!==(r.MSPOINTER_TYPE_MOUSE||"mouse")){r.touches=[];for(var o in $i)r.touches.push($i[o]);r.changedTouches=[r],t(r)}}function vp(t,r){r.MSPOINTER_TYPE_TOUCH&&r.pointerType===r.MSPOINTER_TYPE_TOUCH&&_t(r),Yr(t,r)}function yp(t){var r={},o,c;for(c in t)o=t[c],r[c]=o&&o.bind?o.bind(t):o;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var wp=200;function bp(t,r){t.addEventListener("dblclick",r);var o=0,c;function d(g){if(g.detail!==1){c=g.detail;return}if(!(g.pointerType==="mouse"||g.sourceCapabilities&&!g.sourceCapabilities.firesTouchEvents)){var E=pc(g);if(!(E.some(function(D){return D instanceof HTMLLabelElement&&D.attributes.for})&&!E.some(function(D){return D instanceof HTMLInputElement||D instanceof HTMLSelectElement}))){var I=Date.now();I-o<=wp?(c++,c===2&&r(yp(g))):c=1,o=I}}}return t.addEventListener("click",d),{dblclick:r,simDblclick:d}}function Pp(t,r){t.removeEventListener("dblclick",r.dblclick),t.removeEventListener("click",r.simDblclick)}var wo=es(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nr=es(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),uc=nr==="webkitTransition"||nr==="OTransition"?nr+"End":"transitionend";function fc(t){return typeof t=="string"?document.getElementById(t):t}function ir(t,r){var o=t.style[r]||t.currentStyle&&t.currentStyle[r];if((!o||o==="auto")&&document.defaultView){var c=document.defaultView.getComputedStyle(t,null);o=c?c[r]:null}return o==="auto"?null:o}function De(t,r,o){var c=document.createElement(t);return c.className=r||"",o&&o.appendChild(c),c}function Je(t){var r=t.parentNode;r&&r.removeChild(t)}function Xr(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Si(t){var r=t.parentNode;r&&r.lastChild!==t&&r.appendChild(t)}function Ei(t){var r=t.parentNode;r&&r.firstChild!==t&&r.insertBefore(t,r.firstChild)}function bo(t,r){if(t.classList!==void 0)return t.classList.contains(r);var o=Qr(t);return o.length>0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(o)}function Te(t,r){if(t.classList!==void 0)for(var o=x(r),c=0,d=o.length;c0?2*window.devicePixelRatio:1;function _c(t){return ce.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ep: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 Mo(t,r){var o=r.relatedTarget;if(!o)return!0;try{for(;o&&o!==t;)o=o.parentNode}catch{return!1}return o!==t}var Tp={__proto__:null,on:Pe,off:We,stopPropagation:ii,disableScrollPropagation:Ro,disableClickPropagation:ar,preventDefault:_t,stop:ri,getPropagationPath:pc,getMousePosition:mc,getWheelDelta:_c,isExternalTarget:Mo,addListener:Pe,removeListener:We},gc=Ce.extend({run:function(t,r,o,c){this.stop(),this._el=t,this._inProgress=!0,this._duration=o||.25,this._easeOutPower=1/Math.max(c||.5,.2),this._startPos=ni(t),this._offset=r.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=ve(this._animate,this),this._step()},_step:function(t){var r=+new Date-this._startTime,o=this._duration*1e3;rthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,r){this._enforcingBounds=!0;var o=this.getCenter(),c=this._limitCenter(o,this._zoom,v(t));return o.equals(c)||this.panTo(c,r),this._enforcingBounds=!1,this},panInside:function(t,r){r=r||{};var o=Z(r.paddingTopLeft||r.padding||[0,0]),c=Z(r.paddingBottomRight||r.padding||[0,0]),d=this.project(this.getCenter()),g=this.project(t),E=this.getPixelBounds(),I=F([E.min.add(o),E.max.subtract(c)]),D=I.getSize();if(!I.contains(g)){this._enforcingBounds=!0;var q=g.subtract(I.getCenter()),ie=I.extend(g).getSize().subtract(D);d.x+=q.x<0?-ie.x:ie.x,d.y+=q.y<0?-ie.y:ie.y,this.panTo(this.unproject(d),r),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=a({animate:!1,pan:!0},t===!0?{animate:!0}:t);var r=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),c=r.divideBy(2).round(),d=o.divideBy(2).round(),g=c.subtract(d);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:r,newSize:o}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=a({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var r=u(this._handleGeolocationResponse,this),o=u(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(r,o,t):navigator.geolocation.getCurrentPosition(r,o,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 r=t.code,o=t.message||(r===1?"permission denied":r===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:r,message:"Geolocation error: "+o+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var r=t.coords.latitude,o=t.coords.longitude,c=new $(r,o),d=c.toBounds(t.coords.accuracy*2),g=this._locateOptions;if(g.setView){var E=this.getBoundsZoom(d);this.setView(c,g.maxZoom?Math.min(E,g.maxZoom):E)}var I={latlng:c,bounds:d,timestamp:t.timestamp};for(var D in t.coords)typeof t.coords[D]=="number"&&(I[D]=t.coords[D]);this.fire("locationfound",I)}},addHandler:function(t,r){if(!r)return this;var o=this[t]=new r(this);return this._handlers.push(o),this.options[t]&&o.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(),Je(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Q(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)Je(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,r){var o="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),c=De("div",o,r||this._mapPane);return t&&(this._panes[t]=c),c},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(),r=this.unproject(t.getBottomLeft()),o=this.unproject(t.getTopRight());return new A(r,o)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,r,o){t=v(t),o=Z(o||[0,0]);var c=this.getZoom()||0,d=this.getMinZoom(),g=this.getMaxZoom(),E=t.getNorthWest(),I=t.getSouthEast(),D=this.getSize().subtract(o),q=F(this.project(I,c),this.project(E,c)).getSize(),ie=ce.any3d?this.options.zoomSnap:1,me=D.x/q.x,Le=D.y/q.y,Ct=r?Math.max(me,Le):Math.min(me,Le);return c=this.getScaleZoom(Ct,c),ie&&(c=Math.round(c/(ie/100))*(ie/100),c=r?Math.ceil(c/ie)*ie:Math.floor(c/ie)*ie),Math.max(d,Math.min(g,c))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new te(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,r){var o=this._getTopLeftPoint(t,r);return new O(o,o.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,r){var o=this.options.crs;return r=r===void 0?this._zoom:r,o.scale(t)/o.scale(r)},getScaleZoom:function(t,r){var o=this.options.crs;r=r===void 0?this._zoom:r;var c=o.zoom(t*o.scale(r));return isNaN(c)?1/0:c},project:function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.latLngToPoint(M(t),r)},unproject:function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.pointToLatLng(Z(t),r)},layerPointToLatLng:function(t){var r=Z(t).add(this.getPixelOrigin());return this.unproject(r)},latLngToLayerPoint:function(t){var r=this.project(M(t))._round();return r._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(M(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(v(t))},distance:function(t,r){return this.options.crs.distance(M(t),M(r))},containerPointToLayerPoint:function(t){return Z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return Z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var r=this.containerPointToLayerPoint(Z(t));return this.layerPointToLatLng(r)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(M(t)))},mouseEventToContainerPoint:function(t){return mc(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 r=this._container=fc(t);if(r){if(r._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Pe(r,"scroll",this._onScroll,this),this._containerId=h(r)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ce.any3d,Te(t,"leaflet-container"+(ce.touch?" leaflet-touch":"")+(ce.retina?" leaflet-retina":"")+(ce.ielt9?" leaflet-oldie":"")+(ce.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var r=ir(t,"position");r!=="absolute"&&r!=="relative"&&r!=="fixed"&&r!=="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),tt(this._mapPane,new te(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Te(t.markerPane,"leaflet-zoom-hide"),Te(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,r,o){tt(this._mapPane,new te(0,0));var c=!this._loaded;this._loaded=!0,r=this._limitZoom(r),this.fire("viewprereset");var d=this._zoom!==r;this._moveStart(d,o)._move(t,r)._moveEnd(d),this.fire("viewreset"),c&&this.fire("load")},_moveStart:function(t,r){return t&&this.fire("zoomstart"),r||this.fire("movestart"),this},_move:function(t,r,o,c){r===void 0&&(r=this._zoom);var d=this._zoom!==r;return this._zoom=r,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),c?o&&o.pinch&&this.fire("zoom",o):((d||o&&o.pinch)&&this.fire("zoom",o),this.fire("move",o)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Q(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){tt(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[h(this._container)]=this;var r=t?We:Pe;r(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&r(window,"resize",this._onResize,this),ce.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Q(this._resizeRequest),this._resizeRequest=ve(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,r){for(var o=[],c,d=r==="mouseout"||r==="mouseover",g=t.target||t.srcElement,E=!1;g;){if(c=this._targets[h(g)],c&&(r==="click"||r==="preclick")&&this._draggableMoved(c)){E=!0;break}if(c&&c.listens(r,!0)&&(d&&!Mo(g,t)||(o.push(c),d))||g===this._container)break;g=g.parentNode}return!o.length&&!E&&!d&&this.listens(r,!0)&&(o=[this]),o},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var r=t.target||t.srcElement;if(!(!this._loaded||r._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(r))){var o=t.type;o==="mousedown"&&xo(r),this._fireDOMEvent(t,o)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,r,o){if(t.type==="click"){var c=a({},t);c.type="preclick",this._fireDOMEvent(c,c.type,o)}var d=this._findEventTargets(t,r);if(o){for(var g=[],E=0;E0?Math.round(t-r)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(r))},_limitZoom:function(t){var r=this.getMinZoom(),o=this.getMaxZoom(),c=ce.any3d?this.options.zoomSnap:1;return c&&(t=Math.round(t/c)*c),Math.max(r,Math.min(o,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Qe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,r){var o=this._getCenterOffset(t)._trunc();return(r&&r.animate)!==!0&&!this.getSize().contains(o)?!1:(this.panBy(o,r),!0)},_createAnimProxy:function(){var t=this._proxy=De("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(r){var o=wo,c=this._proxy.style[o];ti(this._proxy,this.project(r.center,r.zoom),this.getZoomScale(r.zoom,1)),c===this._proxy.style[o]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Je(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),r=this.getZoom();ti(this._proxy,this.project(t,r),this.getZoomScale(r,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,r,o){if(this._animatingZoom)return!0;if(o=o||{},!this._zoomAnimated||o.animate===!1||this._nothingToAnimate()||Math.abs(r-this._zoom)>this.options.zoomAnimationThreshold)return!1;var c=this.getZoomScale(r),d=this._getCenterOffset(t)._divideBy(1-1/c);return o.animate!==!0&&!this.getSize().contains(d)?!1:(ve(function(){this._moveStart(!0,o.noMoveStart||!1)._animateZoom(t,r,!0)},this),!0)},_animateZoom:function(t,r,o,c){this._mapPane&&(o&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=r,Te(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:r,noUpdate:c}),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&&Qe(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 xp(t,r){return new Ne(t,r)}var Kt=Me.extend({options:{position:"topright"},initialize:function(t){T(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var r=this._map;return r&&r.removeControl(this),this.options.position=t,r&&r.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var r=this._container=this.onAdd(t),o=this.getPosition(),c=t._controlCorners[o];return Te(r,"leaflet-control"),o.indexOf("bottom")!==-1?c.insertBefore(r,c.firstChild):c.appendChild(r),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Je(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()}}),lr=function(t){return new Kt(t)};Ne.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},r="leaflet-",o=this._controlContainer=De("div",r+"control-container",this._container);function c(d,g){var E=r+d+" "+r+g;t[d+g]=De("div",E,o)}c("top","left"),c("top","right"),c("bottom","left"),c("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)Je(this._controlCorners[t]);Je(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var vc=Kt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,r,o,c){return o1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=r&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var r=this._getLayer(h(t.target)),o=r.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;o&&this._map.fire(o,r)},_createRadioElement:function(t,r){var o='",c=document.createElement("div");return c.innerHTML=o,c.firstChild},_addItem:function(t){var r=document.createElement("label"),o=this._map.hasLayer(t.layer),c;t.overlay?(c=document.createElement("input"),c.type="checkbox",c.className="leaflet-control-layers-selector",c.defaultChecked=o):c=this._createRadioElement("leaflet-base-layers_"+h(this),o),this._layerControlInputs.push(c),c.layerId=h(t.layer),Pe(c,"click",this._onInputClick,this);var d=document.createElement("span");d.innerHTML=" "+t.name;var g=document.createElement("span");r.appendChild(g),g.appendChild(c),g.appendChild(d);var E=t.overlay?this._overlaysList:this._baseLayersList;return E.appendChild(r),this._checkDisabledLayers(),r},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,r,o,c=[],d=[];this._handlingClick=!0;for(var g=t.length-1;g>=0;g--)r=t[g],o=this._getLayer(r.layerId).layer,r.checked?c.push(o):r.checked||d.push(o);for(g=0;g=0;d--)r=t[d],o=this._getLayer(r.layerId).layer,r.disabled=o.options.minZoom!==void 0&&co.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Pe(t,"click",_t),this.expand();var r=this;setTimeout(function(){We(t,"click",_t),r._preventClick=!1})}}),Cp=function(t,r,o){return new vc(t,r,o)},Io=Kt.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var r="leaflet-control-zoom",o=De("div",r+" leaflet-bar"),c=this.options;return this._zoomInButton=this._createButton(c.zoomInText,c.zoomInTitle,r+"-in",o,this._zoomIn),this._zoomOutButton=this._createButton(c.zoomOutText,c.zoomOutTitle,r+"-out",o,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),o},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._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,r,o,c,d){var g=De("a",o,c);return g.innerHTML=t,g.href="#",g.title=r,g.setAttribute("role","button"),g.setAttribute("aria-label",r),ar(g),Pe(g,"click",ri),Pe(g,"click",d,this),Pe(g,"click",this._refocusOnMap,this),g},_updateDisabled:function(){var t=this._map,r="leaflet-disabled";Qe(this._zoomInButton,r),Qe(this._zoomOutButton,r),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(Te(this._zoomOutButton,r),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(Te(this._zoomInButton,r),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ne.mergeOptions({zoomControl:!0}),Ne.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Io,this.addControl(this.zoomControl))});var Lp=function(t){return new Io(t)},yc=Kt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var r="leaflet-control-scale",o=De("div",r),c=this.options;return this._addScales(c,r+"-line",o),t.on(c.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),o},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,r,o){t.metric&&(this._mScale=De("div",r,o)),t.imperial&&(this._iScale=De("div",r,o))},_update:function(){var t=this._map,r=t.getSize().y/2,o=t.distance(t.containerPointToLatLng([0,r]),t.containerPointToLatLng([this.options.maxWidth,r]));this._updateScales(o)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var r=this._getRoundNum(t),o=r<1e3?r+" m":r/1e3+" km";this._updateScale(this._mScale,o,r/t)},_updateImperial:function(t){var r=t*3.2808399,o,c,d;r>5280?(o=r/5280,c=this._getRoundNum(o),this._updateScale(this._iScale,c+" mi",c/o)):(d=this._getRoundNum(r),this._updateScale(this._iScale,d+" ft",d/r))},_updateScale:function(t,r,o){t.style.width=Math.round(this.options.maxWidth*o)+"px",t.innerHTML=r},_getRoundNum:function(t){var r=Math.pow(10,(Math.floor(t)+"").length-1),o=t/r;return o=o>=10?10:o>=5?5:o>=3?3:o>=2?2:1,r*o}}),kp=function(t){return new yc(t)},Op='',Ao=Kt.extend({options:{position:"bottomright",prefix:''+(ce.inlineSvg?Op+" ":"")+"Leaflet"},initialize:function(t){T(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=De("div","leaflet-control-attribution"),ar(this._container);for(var r in t._layers)t._layers[r].getAttribution&&this.addAttribution(t._layers[r].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 r in this._attributions)this._attributions[r]&&t.push(r);var o=[];this.options.prefix&&o.push(this.options.prefix),t.length&&o.push(t.join(", ")),this._container.innerHTML=o.join(' ')}}});Ne.mergeOptions({attributionControl:!0}),Ne.addInitHook(function(){this.options.attributionControl&&new Ao().addTo(this)});var Rp=function(t){return new Ao(t)};Kt.Layers=vc,Kt.Zoom=Io,Kt.Scale=yc,Kt.Attribution=Ao,lr.layers=Cp,lr.zoom=Lp,lr.scale=kp,lr.attribution=Rp;var ln=Me.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}});ln.addTo=function(t,r){return t.addHandler(r,this),this};var Mp={Events:Ee},wc=ce.touch?"touchstart mousedown":"mousedown",Nn=Ce.extend({options:{clickTolerance:3},initialize:function(t,r,o,c){T(this,c),this._element=t,this._dragStartTarget=r||t,this._preventOutline=o},enable:function(){this._enabled||(Pe(this._dragStartTarget,wc,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Nn._dragging===this&&this.finishDrag(!0),We(this._dragStartTarget,wc,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!bo(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Nn._dragging===this&&this.finishDrag();return}if(!(Nn._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Nn._dragging=this,this._preventOutline&&xo(this._element),So(),rr(),!this._moving)){this.fire("down");var r=t.touches?t.touches[0]:t,o=hc(this._element);this._startPoint=new te(r.clientX,r.clientY),this._startPos=ni(this._element),this._parentScale=Co(o);var c=t.type==="mousedown";Pe(document,c?"mousemove":"touchmove",this._onMove,this),Pe(document,c?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var r=t.touches&&t.touches.length===1?t.touches[0]:t,o=new te(r.clientX,r.clientY)._subtract(this._startPoint);!o.x&&!o.y||Math.abs(o.x)+Math.abs(o.y)g&&(E=I,g=D);g>o&&(r[E]=1,zo(t,r,o,c,E),zo(t,r,o,E,d))}function zp(t,r){for(var o=[t[0]],c=1,d=0,g=t.length;cr&&(o.push(t[c]),d=c);return dr.max.x&&(o|=2),t.yr.max.y&&(o|=8),o}function Dp(t,r){var o=r.x-t.x,c=r.y-t.y;return o*o+c*c}function cr(t,r,o,c){var d=r.x,g=r.y,E=o.x-d,I=o.y-g,D=E*E+I*I,q;return D>0&&(q=((t.x-d)*E+(t.y-g)*I)/D,q>1?(d=o.x,g=o.y):q>0&&(d+=E*q,g+=I*q)),E=t.x-d,I=t.y-g,c?E*E+I*I:new te(d,g)}function Vt(t){return!z(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function xc(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Vt(t)}function Cc(t,r){var o,c,d,g,E,I,D,q;if(!t||t.length===0)throw new Error("latlngs not passed");Vt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var ie=M([0,0]),me=v(t),Le=me.getNorthWest().distanceTo(me.getSouthWest())*me.getNorthEast().distanceTo(me.getNorthWest());Le<1700&&(ie=No(t));var Ct=t.length,dt=[];for(o=0;oc){D=(g-c)/d,q=[I.x-D*(I.x-E.x),I.y-D*(I.y-E.y)];break}var At=r.unproject(Z(q));return M([At.lat+ie.lat,At.lng+ie.lng])}var jp={__proto__:null,simplify:$c,pointToSegmentDistance:Sc,closestPointOnSegment:Ap,clipSegment:Tc,_getEdgeIntersection:is,_getBitCode:si,_sqClosestPointOnSegment:cr,isFlat:Vt,_flat:xc,polylineCenter:Cc},Do={project:function(t){return new te(t.lng,t.lat)},unproject:function(t){return new $(t.y,t.x)},bounds:new O([-180,-90],[180,90])},jo={R:6378137,R_MINOR:6356752314245179e-9,bounds:new O([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var r=Math.PI/180,o=this.R,c=t.lat*r,d=this.R_MINOR/o,g=Math.sqrt(1-d*d),E=g*Math.sin(c),I=Math.tan(Math.PI/4-c/2)/Math.pow((1-E)/(1+E),g/2);return c=-o*Math.log(Math.max(I,1e-10)),new te(t.lng*r*o,c)},unproject:function(t){for(var r=180/Math.PI,o=this.R,c=this.R_MINOR/o,d=Math.sqrt(1-c*c),g=Math.exp(-t.y/o),E=Math.PI/2-2*Math.atan(g),I=0,D=.1,q;I<15&&Math.abs(D)>1e-7;I++)q=d*Math.sin(E),q=Math.pow((1-q)/(1+q),d/2),D=Math.PI/2-2*Math.atan(g*q)-E,E+=D;return new $(E*r,t.x*r/o)}},Bp={__proto__:null,LonLat:Do,Mercator:jo,SphericalMercator:J},Zp=a({},j,{code:"EPSG:3395",projection:jo,transformation:function(){var t=.5/(Math.PI*jo.R);return Ie(t,.5,-t,.5)}()}),Lc=a({},j,{code:"EPSG:4326",projection:Do,transformation:Ie(1/180,1,-1/180,.5)}),Fp=a({},R,{projection:Do,transformation:Ie(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,r){var o=r.lng-t.lng,c=r.lat-t.lat;return Math.sqrt(o*o+c*c)},infinite:!0});R.Earth=j,R.EPSG3395=Zp,R.EPSG3857=w,R.EPSG900913=S,R.EPSG4326=Lc,R.Simple=Fp;var Gt=Ce.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[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var r=t.target;if(r.hasLayer(this)){if(this._map=r,this._zoomAnimated=r._zoomAnimated,this.getEvents){var o=this.getEvents();r.on(o,this),this.once("remove",function(){r.off(o,this)},this)}this.onAdd(r),this.fire("add"),r.fire("layeradd",{layer:this})}}});Ne.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var r=h(t);return this._layers[r]?this:(this._layers[r]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var r=h(t);return this._layers[r]?(this._loaded&&t.onRemove(this),delete this._layers[r],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,r){for(var o in this._layers)t.call(r,this._layers[o]);return this},_addLayers:function(t){t=t?z(t)?t:[t]:[];for(var r=0,o=t.length;rthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&r[0]instanceof $&&r[0].equals(r[o-1])&&r.pop(),r},_setLatLngs:function(t){Pn.prototype._setLatLngs.call(this,t),Vt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Vt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,r=this.options.weight,o=new te(r,r);if(t=new O(t.min.subtract(o),t.max.add(o)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var c=0,d=this._rings.length,g;ct.y!=d.y>t.y&&t.x<(d.x-c.x)*(t.y-c.y)/(d.y-c.y)+c.x&&(r=!r);return r||Pn.prototype._containsPoint.call(this,t,!0)}});function Jp(t,r){return new Ci(t,r)}var $n=bn.extend({initialize:function(t,r){T(this,r),this._layers={},t&&this.addData(t)},addData:function(t){var r=z(t)?t:t.features,o,c,d;if(r){for(o=0,c=r.length;o0&&d.push(d[0].slice()),d}function Li(t,r){return t.feature?a({},t.feature,{geometry:r}):cs(r)}function cs(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Vo={toGeoJSON:function(t){return Li(this,{type:"Point",coordinates:Fo(this.getLatLng(),t)})}};rs.include(Vo),Bo.include(Vo),ss.include(Vo),Pn.include({toGeoJSON:function(t){var r=!Vt(this._latlngs),o=ls(this._latlngs,r?1:0,!1,t);return Li(this,{type:(r?"Multi":"")+"LineString",coordinates:o})}}),Ci.include({toGeoJSON:function(t){var r=!Vt(this._latlngs),o=r&&!Vt(this._latlngs[0]),c=ls(this._latlngs,o?2:r?1:0,!0,t);return r||(c=[c]),Li(this,{type:(o?"Multi":"")+"Polygon",coordinates:c})}}),Ti.include({toMultiPoint:function(t){var r=[];return this.eachLayer(function(o){r.push(o.toGeoJSON(t).geometry.coordinates)}),Li(this,{type:"MultiPoint",coordinates:r})},toGeoJSON:function(t){var r=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(r==="MultiPoint")return this.toMultiPoint(t);var o=r==="GeometryCollection",c=[];return this.eachLayer(function(d){if(d.toGeoJSON){var g=d.toGeoJSON(t);if(o)c.push(g.geometry);else{var E=cs(g);E.type==="FeatureCollection"?c.push.apply(c,E.features):c.push(E)}}}),o?Li(this,{geometries:c,type:"GeometryCollection"}):{type:"FeatureCollection",features:c}}});function Rc(t,r){return new $n(t,r)}var Yp=Rc,us=Gt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,r,o){this._url=t,this._bounds=v(r),T(this,o)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Te(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Je(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&&Si(this._image),this},bringToBack:function(){return this._map&&Ei(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=v(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",r=this._image=t?this._url:De("img");if(Te(r,"leaflet-image-layer"),this._zoomAnimated&&Te(r,"leaflet-zoom-animated"),this.options.className&&Te(r,this.options.className),r.onselectstart=_,r.onmousemove=_,r.onload=u(this.fire,this,"load"),r.onerror=u(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(r.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=r.src;return}r.src=this._url,r.alt=this.options.alt},_animateZoom:function(t){var r=this._map.getZoomScale(t.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ti(this._image,o,r)},_reset:function(){var t=this._image,r=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),o=r.getSize();tt(t,r.min),t.style.width=o.x+"px",t.style.height=o.y+"px"},_updateOpacity:function(){Ft(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()}}),Xp=function(t,r,o){return new us(t,r,o)},Mc=us.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",r=this._image=t?this._url:De("video");if(Te(r,"leaflet-image-layer"),this._zoomAnimated&&Te(r,"leaflet-zoom-animated"),this.options.className&&Te(r,this.options.className),r.onselectstart=_,r.onmousemove=_,r.onloadeddata=u(this.fire,this,"load"),t){for(var o=r.getElementsByTagName("source"),c=[],d=0;d0?c:[r.src];return}z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(r.style,"objectFit")&&(r.style.objectFit="fill"),r.autoplay=!!this.options.autoplay,r.loop=!!this.options.loop,r.muted=!!this.options.muted,r.playsInline=!!this.options.playsInline;for(var g=0;gd?(r.height=d+"px",Te(t,g)):Qe(t,g),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),o=this._getAnchor();tt(this._container,r.add(o))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,r=parseInt(ir(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+r,c=this._containerWidth,d=new te(this._containerLeft,-o-this._containerBottom);d._add(ni(this._container));var g=t.layerPointToContainerPoint(d),E=Z(this.options.autoPanPadding),I=Z(this.options.autoPanPaddingTopLeft||E),D=Z(this.options.autoPanPaddingBottomRight||E),q=t.getSize(),ie=0,me=0;g.x+c+D.x>q.x&&(ie=g.x+c-q.x+D.x),g.x-ie-I.x<0&&(ie=g.x-I.x),g.y+o+D.y>q.y&&(me=g.y+o-q.y+D.y),g.y-me-I.y<0&&(me=g.y-I.y),(ie||me)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([ie,me]))}},_getAnchor:function(){return Z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),tm=function(t,r){return new fs(t,r)};Ne.mergeOptions({closePopupOnClick:!0}),Ne.include({openPopup:function(t,r,o){return this._initOverlay(fs,t,r,o).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Gt.include({bindPopup:function(t,r){return this._popup=this._initOverlay(fs,this._popup,t,r),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 bn||(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)){ri(t);var r=t.layer||t.target;if(this._popup._source===r&&!(r instanceof zn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=r,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var hs=cn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){cn.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){cn.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=cn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",r=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=De("div",r),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var r,o,c=this._map,d=this._container,g=c.latLngToContainerPoint(c.getCenter()),E=c.layerPointToContainerPoint(t),I=this.options.direction,D=d.offsetWidth,q=d.offsetHeight,ie=Z(this.options.offset),me=this._getAnchor();I==="top"?(r=D/2,o=q):I==="bottom"?(r=D/2,o=0):I==="center"?(r=D/2,o=q/2):I==="right"?(r=0,o=q/2):I==="left"?(r=D,o=q/2):E.xthis.options.maxZoom||oc?this._retainParent(d,g,E,c):!1)},_retainChildren:function(t,r,o,c){for(var d=2*t;d<2*t+2;d++)for(var g=2*r;g<2*r+2;g++){var E=new te(d,g);E.z=o+1;var I=this._tileCoordsToKey(E),D=this._tiles[I];if(D&&D.active){D.retain=!0;continue}else D&&D.loaded&&(D.retain=!0);o+1this.options.maxZoom||this.options.minZoom!==void 0&&d1){this._setView(t,o);return}for(var me=d.min.y;me<=d.max.y;me++)for(var Le=d.min.x;Le<=d.max.x;Le++){var Ct=new te(Le,me);if(Ct.z=this._tileZoom,!!this._isValidTile(Ct)){var dt=this._tiles[this._tileCoordsToKey(Ct)];dt?dt.current=!0:E.push(Ct)}}if(E.sort(function(At,Oi){return At.distanceTo(g)-Oi.distanceTo(g)}),E.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ht=document.createDocumentFragment();for(Le=0;Leo.max.x)||!r.wrapLat&&(t.yo.max.y))return!1}if(!this.options.bounds)return!0;var c=this._tileCoordsToBounds(t);return v(this.options.bounds).overlaps(c)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var r=this._map,o=this.getTileSize(),c=t.scaleBy(o),d=c.add(o),g=r.unproject(c,t.z),E=r.unproject(d,t.z);return[g,E]},_tileCoordsToBounds:function(t){var r=this._tileCoordsToNwSe(t),o=new A(r[0],r[1]);return this.options.noWrap||(o=this._map.wrapLatLngBounds(o)),o},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var r=t.split(":"),o=new te(+r[0],+r[1]);return o.z=+r[2],o},_removeTile:function(t){var r=this._tiles[t];r&&(Je(r.el),delete this._tiles[t],this.fire("tileunload",{tile:r.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Te(t,"leaflet-tile");var r=this.getTileSize();t.style.width=r.x+"px",t.style.height=r.y+"px",t.onselectstart=_,t.onmousemove=_,ce.ielt9&&this.options.opacity<1&&Ft(t,this.options.opacity)},_addTile:function(t,r){var o=this._getTilePos(t),c=this._tileCoordsToKey(t),d=this.createTile(this._wrapCoords(t),u(this._tileReady,this,t));this._initTile(d),this.createTile.length<2&&ve(u(this._tileReady,this,t,null,d)),tt(d,o),this._tiles[c]={el:d,coords:t,current:!0},r.appendChild(d),this.fire("tileloadstart",{tile:d,coords:t})},_tileReady:function(t,r,o){r&&this.fire("tileerror",{error:r,tile:o,coords:t});var c=this._tileCoordsToKey(t);o=this._tiles[c],o&&(o.loaded=+new Date,this._map._fadeAnimated?(Ft(o.el,0),Q(this._fadeFrame),this._fadeFrame=ve(this._updateOpacity,this)):(o.active=!0,this._pruneTiles()),r||(Te(o.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:o.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ce.ielt9||!this._map._fadeAnimated?ve(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 r=new te(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return r.z=t.z,r},_pxBoundsToTileRange:function(t){var r=this.getTileSize();return new O(t.min.unscaleBy(r).floor(),t.max.unscaleBy(r).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function rm(t){return new fr(t)}var ki=fr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,r){this._url=t,r=T(this,r),r.detectRetina&&ce.retina&&r.maxZoom>0?(r.tileSize=Math.floor(r.tileSize/2),r.zoomReverse?(r.zoomOffset--,r.minZoom=Math.min(r.maxZoom,r.minZoom+1)):(r.zoomOffset++,r.maxZoom=Math.max(r.minZoom,r.maxZoom-1)),r.minZoom=Math.max(0,r.minZoom)):r.zoomReverse?r.minZoom=Math.min(r.maxZoom,r.minZoom):r.maxZoom=Math.max(r.minZoom,r.maxZoom),typeof r.subdomains=="string"&&(r.subdomains=r.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,r){return this._url===t&&r===void 0&&(r=!0),this._url=t,r||this.redraw(),this},createTile:function(t,r){var o=document.createElement("img");return Pe(o,"load",u(this._tileOnLoad,this,r,o)),Pe(o,"error",u(this._tileOnError,this,r,o)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(o.referrerPolicy=this.options.referrerPolicy),o.alt="",o.src=this.getTileUrl(t),o},getTileUrl:function(t){var r={r:ce.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-t.y;this.options.tms&&(r.y=o),r["-y"]=o}return k(this._url,a(r,this.options))},_tileOnLoad:function(t,r){ce.ielt9?setTimeout(u(t,this,null,r),0):t(null,r)},_tileOnError:function(t,r,o){var c=this.options.errorTileUrl;c&&r.getAttribute("src")!==c&&(r.src=c),t(o,r)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,r=this.options.maxZoom,o=this.options.zoomReverse,c=this.options.zoomOffset;return o&&(t=r-t),t+c},_getSubdomain:function(t){var r=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[r]},_abortLoading:function(){var t,r;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(r=this._tiles[t].el,r.onload=_,r.onerror=_,!r.complete)){r.src=G;var o=this._tiles[t].coords;Je(r),delete this._tiles[t],this.fire("tileabort",{tile:r,coords:o})}},_removeTile:function(t){var r=this._tiles[t];if(r)return r.el.setAttribute("src",G),fr.prototype._removeTile.call(this,t)},_tileReady:function(t,r,o){if(!(!this._map||o&&o.getAttribute("src")===G))return fr.prototype._tileReady.call(this,t,r,o)}});function Nc(t,r){return new ki(t,r)}var zc=ki.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,r){this._url=t;var o=a({},this.defaultWmsParams);for(var c in r)c in this.options||(o[c]=r[c]);r=T(this,r);var d=r.detectRetina&&ce.retina?2:1,g=this.getTileSize();o.width=g.x*d,o.height=g.y*d,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var r=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,ki.prototype.onAdd.call(this,t)},getTileUrl:function(t){var r=this._tileCoordsToNwSe(t),o=this._crs,c=F(o.project(r[0]),o.project(r[1])),d=c.min,g=c.max,E=(this._wmsVersion>=1.3&&this._crs===Lc?[d.y,d.x,g.y,g.x]:[d.x,d.y,g.x,g.y]).join(","),I=ki.prototype.getTileUrl.call(this,t);return I+C(this.wmsParams,I,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+E},setParams:function(t,r){return a(this.wmsParams,t),r||this.redraw(),this}});function sm(t,r){return new zc(t,r)}ki.WMS=zc,Nc.wms=sm;var Sn=Gt.extend({options:{padding:.1},initialize:function(t){T(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Te(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,r){var o=this._map.getZoomScale(r,this._zoom),c=this._map.getSize().multiplyBy(.5+this.options.padding),d=this._map.project(this._center,r),g=c.multiplyBy(-o).add(d).subtract(this._map._getNewPixelOrigin(t,r));ce.any3d?ti(this._container,g,o):tt(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,r=this._map.getSize(),o=this._map.containerPointToLayerPoint(r.multiplyBy(-t)).round();this._bounds=new O(o,o.add(r.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Dc=Sn.extend({options:{tolerance:0},getEvents:function(){var t=Sn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Sn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Pe(t,"mousemove",this._onMouseMove,this),Pe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Pe(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){Q(this._redrawRequest),delete this._ctx,Je(this._container),We(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var r in this._layers)t=this._layers[r],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Sn.prototype._update.call(this);var t=this._bounds,r=this._container,o=t.getSize(),c=ce.retina?2:1;tt(r,t.min),r.width=c*o.x,r.height=c*o.y,r.style.width=o.x+"px",r.style.height=o.y+"px",ce.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Sn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var r=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=r),this._drawLast=r,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var r=t._order,o=r.next,c=r.prev;o?o.prev=c:this._drawLast=c,c?c.next=o:this._drawFirst=o,delete t._order,delete this._layers[h(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 r=t.options.dashArray.split(/[, ]+/),o=[],c,d;for(d=0;d')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),om={_initContainer:function(){this._container=De("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Sn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var r=t._container=hr("shape");Te(r,"leaflet-vml-shape "+(this.options.className||"")),r.coordsize="1 1",t._path=hr("path"),r.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var r=t._container;this._container.appendChild(r),t.options.interactive&&t.addInteractiveTarget(r)},_removePath:function(t){var r=t._container;Je(r),t.removeInteractiveTarget(r),delete this._layers[h(t)]},_updateStyle:function(t){var r=t._stroke,o=t._fill,c=t.options,d=t._container;d.stroked=!!c.stroke,d.filled=!!c.fill,c.stroke?(r||(r=t._stroke=hr("stroke")),d.appendChild(r),r.weight=c.weight+"px",r.color=c.color,r.opacity=c.opacity,c.dashArray?r.dashStyle=z(c.dashArray)?c.dashArray.join(" "):c.dashArray.replace(/( *, *)/g," "):r.dashStyle="",r.endcap=c.lineCap.replace("butt","flat"),r.joinstyle=c.lineJoin):r&&(d.removeChild(r),t._stroke=null),c.fill?(o||(o=t._fill=hr("fill")),d.appendChild(o),o.color=c.fillColor||c.color,o.opacity=c.fillOpacity):o&&(d.removeChild(o),t._fill=null)},_updateCircle:function(t){var r=t._point.round(),o=Math.round(t._radius),c=Math.round(t._radiusY||o);this._setPath(t,t._empty()?"M0 0":"AL "+r.x+","+r.y+" "+o+","+c+" 0,"+65535*360)},_setPath:function(t,r){t._path.v=r},_bringToFront:function(t){Si(t._container)},_bringToBack:function(t){Ei(t._container)}},ds=ce.vml?hr:N,dr=Sn.extend({_initContainer:function(){this._container=ds("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ds("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Je(this._container),We(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Sn.prototype._update.call(this);var t=this._bounds,r=t.getSize(),o=this._container;(!this._svgSize||!this._svgSize.equals(r))&&(this._svgSize=r,o.setAttribute("width",r.x),o.setAttribute("height",r.y)),tt(o,t.min),o.setAttribute("viewBox",[t.min.x,t.min.y,r.x,r.y].join(" ")),this.fire("update")}},_initPath:function(t){var r=t._path=ds("path");t.options.className&&Te(r,t.options.className),t.options.interactive&&Te(r,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){Je(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var r=t._path,o=t.options;r&&(o.stroke?(r.setAttribute("stroke",o.color),r.setAttribute("stroke-opacity",o.opacity),r.setAttribute("stroke-width",o.weight),r.setAttribute("stroke-linecap",o.lineCap),r.setAttribute("stroke-linejoin",o.lineJoin),o.dashArray?r.setAttribute("stroke-dasharray",o.dashArray):r.removeAttribute("stroke-dasharray"),o.dashOffset?r.setAttribute("stroke-dashoffset",o.dashOffset):r.removeAttribute("stroke-dashoffset")):r.setAttribute("stroke","none"),o.fill?(r.setAttribute("fill",o.fillColor||o.color),r.setAttribute("fill-opacity",o.fillOpacity),r.setAttribute("fill-rule",o.fillRule||"evenodd")):r.setAttribute("fill","none"))},_updatePoly:function(t,r){this._setPath(t,U(t._parts,r))},_updateCircle:function(t){var r=t._point,o=Math.max(Math.round(t._radius),1),c=Math.max(Math.round(t._radiusY),1)||o,d="a"+o+","+c+" 0 1,0 ",g=t._empty()?"M0 0":"M"+(r.x-o)+","+r.y+d+o*2+",0 "+d+-o*2+",0 ";this._setPath(t,g)},_setPath:function(t,r){t._path.setAttribute("d",r)},_bringToFront:function(t){Si(t._path)},_bringToBack:function(t){Ei(t._path)}});ce.vml&&dr.include(om);function Bc(t){return ce.svg||ce.vml?new dr(t):null}Ne.include({getRenderer:function(t){var r=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return r||(r=this._renderer=this._createRenderer()),this.hasLayer(r)||this.addLayer(r),r},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var r=this._paneRenderers[t];return r===void 0&&(r=this._createRenderer({pane:t}),this._paneRenderers[t]=r),r},_createRenderer:function(t){return this.options.preferCanvas&&jc(t)||Bc(t)}});var Zc=Ci.extend({initialize:function(t,r){Ci.prototype.initialize.call(this,this._boundsToLatLngs(t),r)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=v(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function am(t,r){return new Zc(t,r)}dr.create=ds,dr.pointsToPath=U,$n.geometryToLayer=os,$n.coordsToLatLng=Zo,$n.coordsToLatLngs=as,$n.latLngToCoords=Fo,$n.latLngsToCoords=ls,$n.getFeature=Li,$n.asFeature=cs,Ne.mergeOptions({boxZoom:!0});var Fc=ln.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Pe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){We(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Je(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(),rr(),So(),this._startPoint=this._map.mouseEventToContainerPoint(t),Pe(document,{contextmenu:ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=De("div","leaflet-zoom-box",this._container),Te(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var r=new O(this._point,this._startPoint),o=r.getSize();tt(this._box,r.min),this._box.style.width=o.x+"px",this._box.style.height=o.y+"px"},_finish:function(){this._moved&&(Je(this._box),Qe(this._container,"leaflet-crosshair")),sr(),Eo(),We(document,{contextmenu:ri,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 r=new A(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(r).fire("boxzoomend",{boxZoomBounds:r})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ne.addInitHook("addHandler","boxZoom",Fc),Ne.mergeOptions({doubleClickZoom:!0});var Vc=ln.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var r=this._map,o=r.getZoom(),c=r.options.zoomDelta,d=t.originalEvent.shiftKey?o-c:o+c;r.options.doubleClickZoom==="center"?r.setZoom(d):r.setZoomAround(t.containerPoint,d)}});Ne.addInitHook("addHandler","doubleClickZoom",Vc),Ne.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Hc=ln.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Nn(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))}Te(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Qe(this._map._container,"leaflet-grab"),Qe(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 r=v(this._map.options.maxBounds);this._offsetLimit=F(this._map.latLngToContainerPoint(r.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(r.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 r=this._lastTime=+new Date,o=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(o),this._times.push(r),this._prunePositions(r)}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),r=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=r.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,r){return t-(t-r)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),r=this._offsetLimit;t.xr.max.x&&(t.x=this._viscousLimit(t.x,r.max.x)),t.y>r.max.y&&(t.y=this._viscousLimit(t.y,r.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,r=Math.round(t/2),o=this._initialWorldOffset,c=this._draggable._newPos.x,d=(c-r+o)%t+r-o,g=(c+r+o)%t-r-o,E=Math.abs(d+o)0?g:-g))-r;this._delta=0,this._startTime=null,E&&(t.options.scrollWheelZoom==="center"?t.setZoom(r+E):t.setZoomAround(this._lastMousePos,r+E))}});Ne.addInitHook("addHandler","scrollWheelZoom",qc);var lm=600;Ne.mergeOptions({tapHold:ce.touchNative&&ce.safari&&ce.mobile,tapTolerance:15});var Wc=ln.extend({addHooks:function(){Pe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){We(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var r=t.touches[0];this._startPos=this._newPos=new te(r.clientX,r.clientY),this._holdTimeout=setTimeout(u(function(){this._cancel(),this._isTapValid()&&(Pe(document,"touchend",_t),Pe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",r))},this),lm),Pe(document,"touchend touchcancel contextmenu",this._cancel,this),Pe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){We(document,"touchend",_t),We(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),We(document,"touchend touchcancel contextmenu",this._cancel,this),We(document,"touchmove",this._onMove,this)},_onMove:function(t){var r=t.touches[0];this._newPos=new te(r.clientX,r.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,r){var o=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY});o._simulated=!0,r.target.dispatchEvent(o)}});Ne.addInitHook("addHandler","tapHold",Wc),Ne.mergeOptions({touchZoom:ce.touch,bounceAtZoomLimits:!0});var Kc=ln.extend({addHooks:function(){Te(this._map._container,"leaflet-touch-zoom"),Pe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Qe(this._map._container,"leaflet-touch-zoom"),We(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var r=this._map;if(!(!t.touches||t.touches.length!==2||r._animatingZoom||this._zooming)){var o=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=r.getSize()._divideBy(2),this._startLatLng=r.containerPointToLatLng(this._centerPoint),r.options.touchZoom!=="center"&&(this._pinchStartLatLng=r.containerPointToLatLng(o.add(c)._divideBy(2))),this._startDist=o.distanceTo(c),this._startZoom=r.getZoom(),this._moved=!1,this._zooming=!0,r._stop(),Pe(document,"touchmove",this._onTouchMove,this),Pe(document,"touchend touchcancel",this._onTouchEnd,this),_t(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var r=this._map,o=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]),d=o.distanceTo(c)/this._startDist;if(this._zoom=r.getScaleZoom(d,this._startZoom),!r.options.bounceAtZoomLimits&&(this._zoomr.getMaxZoom()&&d>1)&&(this._zoom=r._limitZoom(this._zoom)),r.options.touchZoom==="center"){if(this._center=this._startLatLng,d===1)return}else{var g=o._add(c)._divideBy(2)._subtract(this._centerPoint);if(d===1&&g.x===0&&g.y===0)return;this._center=r.unproject(r.project(this._pinchStartLatLng,this._zoom).subtract(g),this._zoom)}this._moved||(r._moveStart(!0,!1),this._moved=!0),Q(this._animRequest);var E=u(r._move,r,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=ve(E,this,!0),_t(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Q(this._animRequest),We(document,"touchmove",this._onTouchMove,this),We(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))}});Ne.addInitHook("addHandler","touchZoom",Kc),Ne.BoxZoom=Fc,Ne.DoubleClickZoom=Vc,Ne.Drag=Hc,Ne.Keyboard=Uc,Ne.ScrollWheelZoom=qc,Ne.TapHold=Wc,Ne.TouchZoom=Kc,i.Bounds=O,i.Browser=ce,i.CRS=R,i.Canvas=Dc,i.Circle=Bo,i.CircleMarker=ss,i.Class=Me,i.Control=Kt,i.DivIcon=Ac,i.DivOverlay=cn,i.DomEvent=Tp,i.DomUtil=Sp,i.Draggable=Nn,i.Evented=Ce,i.FeatureGroup=bn,i.GeoJSON=$n,i.GridLayer=fr,i.Handler=ln,i.Icon=xi,i.ImageOverlay=us,i.LatLng=$,i.LatLngBounds=A,i.Layer=Gt,i.LayerGroup=Ti,i.LineUtil=jp,i.Map=Ne,i.Marker=rs,i.Mixin=Mp,i.Path=zn,i.Point=te,i.PolyUtil=Ip,i.Polygon=Ci,i.Polyline=Pn,i.Popup=fs,i.PosAnimation=gc,i.Projection=Bp,i.Rectangle=Zc,i.Renderer=Sn,i.SVG=dr,i.SVGOverlay=Ic,i.TileLayer=ki,i.Tooltip=hs,i.Transformation=he,i.Util=xe,i.VideoOverlay=Mc,i.bind=u,i.bounds=F,i.canvas=jc,i.circle=Kp,i.circleMarker=Wp,i.control=lr,i.divIcon=im,i.extend=a,i.featureGroup=Hp,i.geoJSON=Rc,i.geoJson=Yp,i.gridLayer=rm,i.icon=Up,i.imageOverlay=Xp,i.latLng=M,i.latLngBounds=v,i.layerGroup=Vp,i.map=xp,i.marker=qp,i.point=Z,i.polygon=Jp,i.polyline=Gp,i.popup=tm,i.rectangle=am,i.setOptions=T,i.stamp=h,i.svg=Bc,i.svgOverlay=em,i.tileLayer=Nc,i.tooltip=nm,i.transformation=Ie,i.version=s,i.videoOverlay=Qp;var cm=window.L;i.noConflict=function(){return window.L=cm,this},window.L=i})})(ja,ja.exports);var X$=ja.exports;const Cs=td(X$),Q$={class:"toggle-map-container"},eS={class:"map-wrapper"},tS=It({__name:"LeafletMap",props:{resourcesPrefetch:{},locationsPrefetch:{},idReferences:{}},setup(e){const n=Jv(),i=uo(),s=it(!1),a=e,l=it([]);l.value=a.resourcesPrefetch.map(m=>{var _;return{resource:m,coordinates:((_=a.locationsPrefetch.find(y=>y.resourceinstance_id===m.resourceinstanceid))==null?void 0:_.data[a.idReferences.coordinatesNodeId])??void 0}});const u=it(null);let f;const h=new Map,p=m=>{const _=Cs.map(m).setView([41.87213786,-87.62576558],14);f=_,Cs.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:20,attribution:'© OpenStreetMap'}).addTo(_);const y=Cs.icon({iconUrl:"https://arches-app-demo.opentechstrategies.com/archesdataviewer/marker-icon-2x.png",iconSize:[16,30],popupAnchor:[0,-32]});return l.value.forEach(b=>{var x;if(b.coordinates){const T=((x=b.coordinates)==null?void 0:x.features[0].geometry.coordinates)??void 0;if(T){const C=Cs.marker([T[1],T[0]],{icon:y});C.bindPopup(`${b.resource.descriptors.en.name}`),C.on("click",()=>{n.push(`/archesdataviewer/home/resource/${b.resource.resourceinstanceid}`)}),h.set(b.resource.resourceinstanceid,C),C.addTo(_)}}}),f};return nl(()=>{u.value&&(f=p(u.value))}),gi(()=>i.params.id,m=>{if(m){const _=h.get(m);_?_.openPopup():f==null||f.closePopup()}else f==null||f.closePopup()},{immediate:!0}),(m,_)=>(_e(),Ve("div",{class:vi(s.value?"map-container expanded":"map-container collapsed")},[pe("div",Q$,[pe("button",{type:"button",class:"toggle-map",onClick:_[0]||(_[0]=y=>s.value=!s.value)},[_[2]||(_[2]=pe("span",null,"Explore the artwork geographically",-1)),Ye(ke(d$),{class:"button-icon"})])]),pe("div",{onClick:_[1]||(_[1]=y=>s.value=!0)},[pe("div",eS,[pe("div",{id:"map",ref_key:"mapElement",ref:u},null,512)])])],2))}}),nS=An(tS,[["__scopeId","data-v-d460b876"]]),iS={class:"home"},rS={id:"map-container"},sS={key:1,class:"map-placeholder"},oS=It({__name:"App",setup(e){const n=it(void 0),i=it(void 0),s=it(void 0),a=it(void 0),l=it(void 0),u=it(null);async function f(){try{const h=new URL("https://arches-app-demo.opentechstrategies.com/archesdataviewer/prefetch/"),m=await(await fetch(h.toString())).json();n.value=m.idReferences,i.value=m.images,s.value=m.locations,a.value=m.resourceRelations,l.value=m.resources}catch{n.value=void 0,i.value=void 0,s.value=void 0,a.value=void 0,l.value=void 0}}return f(),(h,p)=>{const m=Yi("RouterView");return _e(),Ve("div",iS,[p[0]||(p[0]=pe("header",{class:"welcome"},[pe("h1",null,"Explore Chicago’s Wabash Arts Corridor"),pe("p",null," In 2013, Columbia College Chicago launched the Wabash Arts Corridor to immerse students in the creative spirit by using urban spaces and reclaimable resources to revitalize and transform the South Loop business district into one of the city’s major cultural assets. The heart of WAC is Wabash Avenue from Van Buren to Roosevelt and is framed to the east by Michigan Avenue and to the west by State Street. The corridor is regarded as an “living urban canvas” due to its ever-growing number of large-scale mural installations and collaborative projects. ")],-1)),pe("main",null,[pe("div",rS,[l.value&&n.value&&s.value?(_e(),st(nS,{key:0,"resources-prefetch":l.value,"id-references":n.value,"locations-prefetch":s.value},null,8,["resources-prefetch","id-references","locations-prefetch"])):(_e(),Ve("div",sS,"Loading map…"))]),pe("div",{id:"search-list-container",ref_key:"searchListContainer",ref:u},[Ye(m,null,{default:rt(({Component:_})=>[l.value&&a.value&&n.value&&i.value?(_e(),st(Fh,{key:0},{default:rt(()=>[(_e(),st(S_(_),{"resources-prefetch":l.value,"resource-relations-prefetch":a.value,"id-references":n.value,"images-prefetch":i.value},null,8,["resources-prefetch","resource-relations-prefetch","id-references","images-prefetch"]))]),_:2},1024)):wt("",!0)]),_:1})],512)]),p[1]||(p[1]=pe("footer",{class:"footer"},[pe("div",{class:"footer-blurb"},[pe("h2",null,"About / Credit"),pe("p",null," This site is a project of XYZ and ABC in association with DEF. All artwork is courtesy of the respective artist. You can email contact@example.org to suggest changes or pat our collective back. ")])],-1))])}}}),aS=An(oS,[["__scopeId","data-v-597eb7c6"]]),tp=Hg(aS);tp.use(Y$);tp.mount("#app"); diff --git a/archesdataviewer/static/vite_build/assets/index-DfABYeLy.css b/archesdataviewer/static/vite_build/assets/index-Dd1Lzziq.css similarity index 98% rename from archesdataviewer/static/vite_build/assets/index-DfABYeLy.css rename to archesdataviewer/static/vite_build/assets/index-Dd1Lzziq.css index 6c55e6f..657f0cb 100644 --- a/archesdataviewer/static/vite_build/assets/index-DfABYeLy.css +++ b/archesdataviewer/static/vite_build/assets/index-Dd1Lzziq.css @@ -1 +1 @@ -@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-CMZtQduZ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-CGAr0uHJ.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CaVNZxsx.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-CFHvXkgd.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-C2S99t-D.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--wac--font-size: 16px;--wac--font-size--sm: calc(var(--wac--font-size) * .75);--wac--font-size--lg: calc(var(--wac--font-size) * 1.25);--wac--font-size--xl: calc(var(--wac--font-size) * 1.5);--wac--font-size--xxl: calc(var(--wac--font-size) * 2);--wac--font-size--xxxl: calc(var(--wac--font-size) * 3);--wac--font-size--xxxxl: calc(var(--wac--font-size) * 4);--wac--line-height: 1.4;--wac--line-height--tight: 1.2;--wac--font-weight--normal: 400;--wac--font-weight--bold: 700;--wac--font-weight--xbold: 900;--wac--color--gray: #999;--wac--color--gray--dark: #363636;--wac--color--highlight: #ffe16a;--wac--fixed-spacing--1x: 10px;--wac--fixed-spacing--2x: calc(2 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--3x: calc(3 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--4x: calc(4 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--6x: calc(6 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--8x: calc(8 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--10x: calc(10 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--halfx: calc(var(--wac--fixed-spacing--1x) / 2);--wac--accessible-spacing--1x: .625rem;--wac--accessible-spacing--2x: calc(2 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--3x: calc(3 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--4x: calc(4 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--6x: calc(6 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--8x: calc(8 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--10x: calc(10 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--15x: calc(15 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--halfx: calc(var(--wac--accessible-spacing--1x) / 2);--wac--semantic-spacing--primary: var(--wac--accessible-spacing--8x);--wac--semantic-spacing--secondary: var(--wac--accessible-spacing--4x);--wac--semantic-spacing--tertiary: var(--wac--accessible-spacing--2x);--wac--semantic-spacing--quartary: var(--wac--accessible-spacing--1x);--wac--semantic-spacing--quintary: var(--wac--accessible-spacing--halfx);--wac--text--sensible-max-width: 60ch;--wac--image--thumbnail-size: var(--wac--accessible-spacing--15x);--wac--outline--color: blue;--wac--outline--width: 2px;--wac--outline: var(--wac--outline--width) solid var(--wac--outline--color)}*,*:before,*:after{box-sizing:border-box}body{font-family:Inter Variable,sans-serif;font-size:var(--wac--font-size);line-height:var(--wac--line-height);background-color:#fff;color:#000;padding:var(--wac--semantic-spacing--tertiary);transition:padding .2s}h1,h2,h3,h4,h5,h6{margin:0;padding:0;font-weight:var(--wac--font-weight--bold);font-size:inherit}h1{font-weight:var(--wac--font-weight--xbold)}p,figure{margin:0;padding:0}a{text-decoration:underline;color:inherit}a:hover{text-decoration:none}a:focus-visible{outline:var(--wac--outline)}button,.button{--wac--button--padding: var(--wac--accessible-spacing--1x);all:unset;font-weight:var(--wac--font-weight--bold);padding:var(--wac--button--padding);border:2px solid black;transition-property:background-color,border-color,outline;transition-duration:.1s;transition-timing-function:ease;cursor:pointer}button:has(.button-icon),.button:has(.button-icon){display:inline-flex;justify-content:flex-start;align-items:center;gap:.4ch}button:focus-visible,.button:focus-visible{outline:var(--wac--outline);border-color:var(--wac--outline--color)}.button-icon{width:calc(var(--wac--line-height) * 1em);height:calc(var(--wac--line-height) * 1em);transition:transform .1s ease}.expanded .button-icon{transform:rotate(90deg)}@media screen and (min-width: 940px){body{padding:var(--wac--semantic-spacing--primary)}}.v-enter-active,.v-leave-active{transition:opacity .5s ease}.v-enter-from,.v-leave-to{opacity:0}.search-result-container[data-v-92222f0d]{text-decoration:none}.search-result[data-v-92222f0d]{display:flex;justify-content:flex-end;flex-direction:row-reverse;gap:var(--wac--semantic-spacing--tertiary);cursor:pointer}.metadata[data-v-92222f0d]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--wac--accessible-spacing--halfx);line-height:var(--wac--line-height--tight)}.title[data-v-92222f0d]{font-size:var(--wac--font-size--lg);font-weight:var(--wac--font-weight--xbold);text-decoration:underline}.description[data-v-92222f0d]{font-size:var(--wac--font-size--sm);margin-top:var(--wac--accessible-spacing--1x);-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}.image[data-v-92222f0d]{width:var(--wac--image--thumbnail-size);height:var(--wac--image--thumbnail-size);object-fit:cover;flex-shrink:0}@media screen and (min-width: 940px){.title[data-v-92222f0d]{font-size:var(--wac--font-size--xl)}.description[data-v-92222f0d]{font-size:var(--wac--font-size)}}.search-list-container[data-v-d280a100]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--secondary)}.search-header[data-v-d280a100]{--wac--search-header--internal-spacing: var(--wac--semantic-spacing--tertiary);position:sticky;top:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--wac--search-header--internal-spacing);padding-block:var(--wac--search-header--internal-spacing);background:linear-gradient(180deg,#fff calc(100% - var(--wac--search-header--internal-spacing)),#fff0)}.resource-selection-menu[data-v-d280a100]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;align-content:space-between;gap:var(--wac--accessible-spacing--halfx)}.resource-selection-menu button[data-v-d280a100]{--wac--button--padding: var(--wac--accessible-spacing--halfx)}.resource-selection-menu button.active[data-v-d280a100]{background:var(--wac--color--highlight)}.search-input[data-v-d280a100]{width:100%;padding:var(--wac--accessible-spacing--1x);border:2px solid black;border-radius:var(--wac--fixed-spacing--halfx);font-size:inherit}.search-input[data-v-d280a100]:focus{outline:var(--wac--outline);border-color:#00f}.search-results[data-v-d280a100]{display:flex;flex-direction:column;align-items:stretch;gap:var(--wac--semantic-spacing--tertiary)}@media screen and (min-width: 940px){.search-list-container[data-v-d280a100]{gap:var(--wac--semantic-spacing--primary)}.search-input[data-v-d280a100]{padding:var(--wac--accessible-spacing--2x)}}.resource-detail-header[data-v-ac051309]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quintary)}.resource-detail-type[data-v-ac051309]{font-size:var(--wac--font-size--lg);line-height:var(--wac--line-height--tight)}.resource-detail-title[data-v-ac051309]{font-weight:var(--wac--font-weight--xbold);font-size:var(--wac--font-size--xxl);line-height:var(--wac--line-height--tight)}.resource-detail-more-by-artist[data-v-ac051309]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:16px}.resource-detail-metadata[data-v-ac051309]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quartary);color:var(--wac--color--gray)}.resource-detail-metadata-title[data-v-ac051309]{font-weight:var(--wac--font-weight--bold)}.resource-detail-item[data-v-34d6af25]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--tertiary)}.resource-detail-item-header[data-v-34d6af25]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quartary);line-height:var(--wac--line-height--tight)}.resource-detail-item-title[data-v-34d6af25]{font-weight:var(--wac--font-weight--xbold);font-size:var(--wac--font-size--lg);text-decoration-line:underline}.resource-detail-item-byline[data-v-34d6af25]{font-weight:var(--wac--font-weight--bold)}.resource-detail-item-image[data-v-34d6af25]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quartary)}.resource-detail-item-image>img[data-v-34d6af25]{width:100%;height:100%}.resource-detail-item-credit[data-v-34d6af25]{color:var(--wac--color--gray)}.resource-detail-item-description[data-v-34d6af25]{font-size:var(--wac--font-size--lg)}.more-artwork-image[data-v-f9a8b566]{width:150px;height:150px;object-fit:cover;flex-shrink:0;cursor:pointer;transition:opacity .3s ease,filter .3s ease}.more-artwork-image[data-v-f9a8b566]:hover{opacity:.5}.blocked[data-v-f9a8b566]{filter:brightness(50%);pointer-events:none}.more-artworks-by-artist-title[data-v-0665300e]{font-style:normal;font-weight:700;font-size:var(--wac--font-size);line-height:100%;color:#000}.more-artworks-by-artist-gallery[data-v-0665300e]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;padding:0;gap:16px;isolation:isolate}.resource-detail[data-v-a5da39c2]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--secondary)}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.map-container[data-v-d460b876]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--tertiary)}#map[data-v-d460b876]{width:100%;height:100%}.map-wrapper[data-v-d460b876]{--wac--map-collapsed-height: 90px;--wac--map-expanded-height: 600px;height:var(--wac--map-expanded-height);transition:height .5s ease}.collapsed .map-wrapper[data-v-d460b876]{height:var(--wac--map-collapsed-height);pointer-events:none}@media screen and (min-width: 940px){.toggle-map-container[data-v-d460b876]{display:none}.map-container[data-v-d460b876]{position:sticky;top:0;padding-top:var(--wac--semantic-spacing--tertiary);gap:var(--wac--semantic-spacing--tertiary)}.map-container.collapsed .map-wrapper[data-v-d460b876]{height:var(--wac--map-expanded-height);pointer-events:all}}.home[data-v-bf722eb2]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--primary)}.welcome[data-v-bf722eb2]{display:flex;flex-direction:column;gap:var(--wac--accessible-spacing--halfx);font-size:var(--wac--font-size);line-height:var(--wac--line-height--tight);font-size:var(--wac--font-size--lg);max-width:var(--wac--text--sensible-max-width);text-wrap:balance}.footer[data-v-bf722eb2]{display:flex;flex-direction:column;gap:var(--wac--accessible-spacing--2x);max-width:calc(var(--wac--text--sensible-max-width) * 1.5);text-wrap:balance}.footer-blurb[data-v-bf722eb2]{display:flex;flex-direction:column;gap:var(--wac--accessible-spacing--1x)}main[data-v-bf722eb2]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--primary)}#map-container[data-v-bf722eb2],#search-list-container[data-v-bf722eb2]{flex-basis:50%}@media screen and (min-width: 940px){.welcome[data-v-bf722eb2]{font-size:var(--wac--font-size--xxl)}main[data-v-bf722eb2]{flex-direction:row-reverse}} +@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-CMZtQduZ.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-CGAr0uHJ.woff2) format("woff2-variations");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CaVNZxsx.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-CFHvXkgd.woff2) format("woff2-variations");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-C2S99t-D.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--wac--font-size: 16px;--wac--font-size--sm: calc(var(--wac--font-size) * .75);--wac--font-size--lg: calc(var(--wac--font-size) * 1.25);--wac--font-size--xl: calc(var(--wac--font-size) * 1.5);--wac--font-size--xxl: calc(var(--wac--font-size) * 2);--wac--font-size--xxxl: calc(var(--wac--font-size) * 3);--wac--font-size--xxxxl: calc(var(--wac--font-size) * 4);--wac--line-height: 1.4;--wac--line-height--tight: 1.2;--wac--font-weight--normal: 400;--wac--font-weight--bold: 700;--wac--font-weight--xbold: 900;--wac--color--gray: #999;--wac--color--gray--dark: #363636;--wac--color--highlight: #ffe16a;--wac--fixed-spacing--1x: 10px;--wac--fixed-spacing--2x: calc(2 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--3x: calc(3 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--4x: calc(4 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--6x: calc(6 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--8x: calc(8 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--10x: calc(10 * var(--wac--fixed-spacing--1x));--wac--fixed-spacing--halfx: calc(var(--wac--fixed-spacing--1x) / 2);--wac--accessible-spacing--1x: .625rem;--wac--accessible-spacing--2x: calc(2 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--3x: calc(3 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--4x: calc(4 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--6x: calc(6 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--8x: calc(8 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--10x: calc(10 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--15x: calc(15 * var(--wac--accessible-spacing--1x));--wac--accessible-spacing--halfx: calc(var(--wac--accessible-spacing--1x) / 2);--wac--semantic-spacing--primary: var(--wac--accessible-spacing--8x);--wac--semantic-spacing--secondary: var(--wac--accessible-spacing--4x);--wac--semantic-spacing--tertiary: var(--wac--accessible-spacing--2x);--wac--semantic-spacing--quartary: var(--wac--accessible-spacing--1x);--wac--semantic-spacing--quintary: var(--wac--accessible-spacing--halfx);--wac--text--sensible-max-width: 60ch;--wac--image--thumbnail-size: var(--wac--accessible-spacing--15x);--wac--outline--color: blue;--wac--outline--width: 2px;--wac--outline: var(--wac--outline--width) solid var(--wac--outline--color)}*,*:before,*:after{box-sizing:border-box}body{font-family:Inter Variable,sans-serif;font-size:var(--wac--font-size);line-height:var(--wac--line-height);background-color:#fff;color:#000;padding:var(--wac--semantic-spacing--tertiary);transition:padding .2s}h1,h2,h3,h4,h5,h6{margin:0;padding:0;font-weight:var(--wac--font-weight--bold);font-size:inherit}h1{font-weight:var(--wac--font-weight--xbold)}p,figure{margin:0;padding:0}a{text-decoration:underline;color:inherit}a:hover{text-decoration:none}a:focus-visible{outline:var(--wac--outline)}button,.button{--wac--button--padding: var(--wac--accessible-spacing--1x);all:unset;font-weight:var(--wac--font-weight--bold);padding:var(--wac--button--padding);border:2px solid black;transition-property:background-color,border-color,outline;transition-duration:.1s;transition-timing-function:ease;cursor:pointer}button:has(.button-icon),.button:has(.button-icon){display:inline-flex;justify-content:flex-start;align-items:center;gap:.4ch}button:focus-visible,.button:focus-visible{outline:var(--wac--outline);border-color:var(--wac--outline--color)}.button-icon{width:calc(var(--wac--line-height) * 1em);height:calc(var(--wac--line-height) * 1em);transition:transform .1s ease}.expanded .button-icon{transform:rotate(90deg)}@media screen and (min-width: 940px){body{padding:var(--wac--semantic-spacing--primary)}}.v-enter-active,.v-leave-active{transition:opacity .5s ease}.v-enter-from,.v-leave-to{opacity:0}.search-result-container[data-v-92222f0d]{text-decoration:none}.search-result[data-v-92222f0d]{display:flex;justify-content:flex-end;flex-direction:row-reverse;gap:var(--wac--semantic-spacing--tertiary);cursor:pointer}.metadata[data-v-92222f0d]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--wac--accessible-spacing--halfx);line-height:var(--wac--line-height--tight)}.title[data-v-92222f0d]{font-size:var(--wac--font-size--lg);font-weight:var(--wac--font-weight--xbold);text-decoration:underline}.description[data-v-92222f0d]{font-size:var(--wac--font-size--sm);margin-top:var(--wac--accessible-spacing--1x);-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;display:-webkit-box;text-overflow:ellipsis;overflow:hidden}.image[data-v-92222f0d]{width:var(--wac--image--thumbnail-size);height:var(--wac--image--thumbnail-size);object-fit:cover;flex-shrink:0}@media screen and (min-width: 940px){.title[data-v-92222f0d]{font-size:var(--wac--font-size--xl)}.description[data-v-92222f0d]{font-size:var(--wac--font-size)}}.search-list-container[data-v-d280a100]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--secondary)}.search-header[data-v-d280a100]{--wac--search-header--internal-spacing: var(--wac--semantic-spacing--tertiary);position:sticky;top:0;display:flex;flex-direction:column;align-items:flex-start;gap:var(--wac--search-header--internal-spacing);padding-block:var(--wac--search-header--internal-spacing);background:linear-gradient(180deg,#fff calc(100% - var(--wac--search-header--internal-spacing)),#fff0)}.resource-selection-menu[data-v-d280a100]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;align-content:space-between;gap:var(--wac--accessible-spacing--halfx)}.resource-selection-menu button[data-v-d280a100]{--wac--button--padding: var(--wac--accessible-spacing--halfx)}.resource-selection-menu button.active[data-v-d280a100]{background:var(--wac--color--highlight)}.search-input[data-v-d280a100]{width:100%;padding:var(--wac--accessible-spacing--1x);border:2px solid black;border-radius:var(--wac--fixed-spacing--halfx);font-size:inherit}.search-input[data-v-d280a100]:focus{outline:var(--wac--outline);border-color:#00f}.search-results[data-v-d280a100]{display:flex;flex-direction:column;align-items:stretch;gap:var(--wac--semantic-spacing--tertiary)}@media screen and (min-width: 940px){.search-list-container[data-v-d280a100]{gap:var(--wac--semantic-spacing--primary)}.search-input[data-v-d280a100]{padding:var(--wac--accessible-spacing--2x)}}.resource-detail-header[data-v-ac051309]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quintary)}.resource-detail-type[data-v-ac051309]{font-size:var(--wac--font-size--lg);line-height:var(--wac--line-height--tight)}.resource-detail-title[data-v-ac051309]{font-weight:var(--wac--font-weight--xbold);font-size:var(--wac--font-size--xxl);line-height:var(--wac--line-height--tight)}.resource-detail-more-by-artist[data-v-ac051309]{display:flex;flex-direction:column;align-items:flex-start;padding:0;gap:16px}.resource-detail-metadata[data-v-ac051309]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quartary);color:var(--wac--color--gray)}.resource-detail-metadata-title[data-v-ac051309]{font-weight:var(--wac--font-weight--bold)}.resource-detail-item[data-v-34d6af25]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--tertiary)}.resource-detail-item-header[data-v-34d6af25]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quartary);line-height:var(--wac--line-height--tight)}.resource-detail-item-title[data-v-34d6af25]{font-weight:var(--wac--font-weight--xbold);font-size:var(--wac--font-size--lg);text-decoration-line:underline}.resource-detail-item-byline[data-v-34d6af25]{font-weight:var(--wac--font-weight--bold)}.resource-detail-item-image[data-v-34d6af25]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--quartary)}.resource-detail-item-image>img[data-v-34d6af25]{width:100%;height:100%}.resource-detail-item-credit[data-v-34d6af25]{color:var(--wac--color--gray)}.resource-detail-item-description[data-v-34d6af25]{font-size:var(--wac--font-size--lg)}.more-artwork-image[data-v-f9a8b566]{width:150px;height:150px;object-fit:cover;flex-shrink:0;cursor:pointer;transition:opacity .3s ease,filter .3s ease}.more-artwork-image[data-v-f9a8b566]:hover{opacity:.5}.blocked[data-v-f9a8b566]{filter:brightness(50%);pointer-events:none}.more-artworks-by-artist-title[data-v-0665300e]{font-style:normal;font-weight:700;font-size:var(--wac--font-size);line-height:100%;color:#000}.more-artworks-by-artist-gallery[data-v-0665300e]{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;padding:0;gap:16px;isolation:isolate}.resource-detail[data-v-a5da39c2]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--secondary)}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.map-container[data-v-d460b876]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--tertiary)}#map[data-v-d460b876]{width:100%;height:100%}.map-wrapper[data-v-d460b876]{--wac--map-collapsed-height: 90px;--wac--map-expanded-height: 600px;height:var(--wac--map-expanded-height);transition:height .5s ease}.collapsed .map-wrapper[data-v-d460b876]{height:var(--wac--map-collapsed-height);pointer-events:none}@media screen and (min-width: 940px){.toggle-map-container[data-v-d460b876]{display:none}.map-container[data-v-d460b876]{position:sticky;top:0;padding-top:var(--wac--semantic-spacing--tertiary);gap:var(--wac--semantic-spacing--tertiary)}.map-container.collapsed .map-wrapper[data-v-d460b876]{height:var(--wac--map-expanded-height);pointer-events:all}}.home[data-v-597eb7c6]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--primary)}.welcome[data-v-597eb7c6]{display:flex;flex-direction:column;gap:var(--wac--accessible-spacing--halfx);font-size:var(--wac--font-size);line-height:var(--wac--line-height--tight);font-size:var(--wac--font-size--lg);max-width:var(--wac--text--sensible-max-width);text-wrap:balance}.footer[data-v-597eb7c6]{display:flex;flex-direction:column;gap:var(--wac--accessible-spacing--2x);max-width:calc(var(--wac--text--sensible-max-width) * 1.5);text-wrap:balance}.footer-blurb[data-v-597eb7c6]{display:flex;flex-direction:column;gap:var(--wac--accessible-spacing--1x)}main[data-v-597eb7c6]{display:flex;flex-direction:column;gap:var(--wac--semantic-spacing--primary)}#map-container[data-v-597eb7c6],#search-list-container[data-v-597eb7c6]{flex-basis:50%}@media screen and (min-width: 940px){.welcome[data-v-597eb7c6]{font-size:var(--wac--font-size--xxl)}main[data-v-597eb7c6]{flex-direction:row-reverse}} diff --git a/archesdataviewer/static/vite_build/index.html b/archesdataviewer/static/vite_build/index.html index 78be130..3e5c8fd 100644 --- a/archesdataviewer/static/vite_build/index.html +++ b/archesdataviewer/static/vite_build/index.html @@ -4,8 +4,8 @@ Arches Data Viewer - - + +