@mappedin/maplibre-overlay 6.6.0-beta.0 → 6.8.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- import{$ as tl,$a as Ta,A as m4,Aa as _4,B as p4,Ba as L4,C as f4,Ca as ts,D as _o,Da as Ro,E as h4,Ea as R4,F as g4,Fa as Zr,G as oe,Ga as N4,H as Fa,Ha as U4,I as Xu,Ia as j4,J as y4,Ja as Gp,K as gi,Ka as z4,L as b4,La as Zp,M as yi,Ma as Vp,N as Rp,Na as ol,O as Qi,Oa as $4,P as at,Pa as G4,Q as Qc,Qa as Wp,R as Yu,Ra as Z4,S as Jt,Sa as V4,T as Np,Ta as Hp,U as bi,Ua as W4,V as v4,Va as eo,W as Lo,Wa as al,X as x4,Xa as Kp,Y as Qu,Ya as H4,Za as qp,_ as el,_a as K4,a as Fp,aa as E4,ab as Jp,b as Op,ba as I4,bb as ul,c as Bp,ca as C4,cb as q4,d as Mp,da as Up,db as Xp,e as Kc,ea as D4,eb as J4,f as qc,fa as jp,fb as X4,g as ko,ga as S4,gb as Y4,h as u4,ha as w4,hb as Q4,i as s4,ia as Oa,ib as eb,j as Tp,ja as A4,jb as tb,k as Yi,ka as F4,kb as rb,l as kp,la as rl,lb as Hn,m as Jc,ma as zp,mb as nb,n as Se,na as O4,nb as Nt,o as _p,oa as $p,ob as ib,p as Wn,pa as es,pb as sl,q as c4,qa as Pa,qb as Kn,r as l4,ra as nl,rb as ob,s as Xc,sa as Ba,sb as Lt,t as d4,ta as Ma,tb as qn,u as Yc,ua as P4,ub as nr,v as Sa,va as B4,w as wa,wa as il,x as Lp,xa as M4,y as Aa,ya as T4,z as Le,za as k4}from"./chunk-4CJRT3KG.js";import{a as en}from"./chunk-R5LD6KYN.js";import{$ as Ot,B as Rc,D as $n,E as Gn,Ea as e4,F as Nc,Fa as Ia,G as Uc,Ga as t4,H as Zy,Ha as Ca,I as va,Ia as Da,J as xa,Ja as Cn,Ka as Vc,L as Vy,La as r4,M as Te,Ma as qu,N as Ae,Oa as Ju,R as Wy,S as Hy,T as Ky,U as jc,V as ne,W as rr,X as qy,Y as Gr,Ya as Wc,Z as Ea,_ as Mo,a as l,aa as Jy,ab as Hc,b as y,ba as fr,bb as n4,ca as Ar,d as Lc,da as zc,e as Bo,ea as Pe,f as Hu,fa as qi,fb as i4,g as hi,h as zy,ha as Ji,hb as Vn,i as Ku,ia as Xy,ja as Pp,jb as o4,ka as $c,la as Xi,lb as a4,r as $y,t as Gy,ta as Zn,ua as Yy,va as Gc,wa as Zc,xa as Qy,za as To}from"./chunk-OJT7FRHD.js";import{a as R,b as De,c as o,d as kc,e as Po,g as zn,h as Ki,i as _c,j as h,k as c,l as L,m as K,n as pt,o as jy,p as X}from"./chunk-LUJQR5EH.js";var of=zn((F8,pl)=>{l();(function(){"use strict";function e(u,s){var d=u.x-s.x,m=u.y-s.y;return d*d+m*m}o(e,"getSqDist");function t(u,s,d){var m=s.x,f=s.y,g=d.x-m,b=d.y-f;if(g!==0||b!==0){var v=((u.x-m)*g+(u.y-f)*b)/(g*g+b*b);v>1?(m=d.x,f=d.y):v>0&&(m+=g*v,f+=b*v)}return g=u.x-m,b=u.y-f,g*g+b*b}o(t,"getSqSegDist");function r(u,s){for(var d=u[0],m=[d],f,g=1,b=u.length;g<b;g++)f=u[g],e(f,d)>s&&(m.push(f),d=f);return d!==f&&m.push(f),m}o(r,"simplifyRadialDist");function n(u,s,d,m,f){for(var g=m,b,v=s+1;v<d;v++){var C=t(u[v],u[s],u[d]);C>g&&(b=v,g=C)}g>m&&(b-s>1&&n(u,s,b,m,f),f.push(u[b]),d-b>1&&n(u,b,d,m,f))}o(n,"simplifyDPStep");function i(u,s){var d=u.length-1,m=[u[0]];return n(u,0,d,s,m),m.push(u[d]),m}o(i,"simplifyDouglasPeucker");function a(u,s,d){if(u.length<=2)return u;var m=s!==void 0?s*s:1;return u=d?u:r(u,m),u=i(u,m),u}o(a,"simplify"),typeof define=="function"&&define.amd?define(function(){return a}):typeof pl<"u"?(pl.exports=a,pl.exports.default=a):typeof self<"u"?self.simplify=a:window.simplify=a})()});var HE=zn((Hh,Kh)=>{l();(function(e,t){typeof Hh=="object"&&typeof Kh<"u"?Kh.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.TinyQueue=t())})(Hh,function(){"use strict";var e=o(function(n,i){if(n===void 0&&(n=[]),i===void 0&&(i=t),this.data=n,this.length=this.data.length,this.compare=i,this.length>0)for(var a=(this.length>>1)-1;a>=0;a--)this._down(a)},"TinyQueue");e.prototype.push=o(function(n){this.data.push(n),this.length++,this._up(this.length-1)},"push"),e.prototype.pop=o(function(){if(this.length!==0){var n=this.data[0],i=this.data.pop();return this.length--,this.length>0&&(this.data[0]=i,this._down(0)),n}},"pop"),e.prototype.peek=o(function(){return this.data[0]},"peek"),e.prototype._up=o(function(n){for(var i=this,a=i.data,u=i.compare,s=a[n];n>0;){var d=n-1>>1,m=a[d];if(u(s,m)>=0)break;a[n]=m,n=d}a[n]=s},"_up"),e.prototype._down=o(function(n){for(var i=this,a=i.data,u=i.compare,s=this.length>>1,d=a[n];n<s;){var m=(n<<1)+1,f=a[m],g=m+1;if(g<this.length&&u(a[g],f)<0&&(m=g,f=a[g]),u(f,d)>=0)break;a[n]=f,n=m}a[n]=d},"_down");function t(r,n){return r<n?-1:r>n?1:0}return o(t,"defaultCompare"),e})});var qE=zn((Qde,qh)=>{"use strict";l();var Qd=HE();Qd.default&&(Qd=Qd.default);qh.exports=KE;qh.exports.default=KE;function KE(e,t,r){t=t||1;for(var n,i,a,u,s=0;s<e[0].length;s++){var d=e[0][s];(!s||d[0]<n)&&(n=d[0]),(!s||d[1]<i)&&(i=d[1]),(!s||d[0]>a)&&(a=d[0]),(!s||d[1]>u)&&(u=d[1])}var m=a-n,f=u-i,g=Math.min(m,f),b=g/2;if(g===0){var v=[n,i];return v.distance=0,v}for(var C=new Qd(void 0,L7),A=n;A<a;A+=g)for(var x=i;x<u;x+=g)C.push(new ho(A+b,x+b,b,e));var E=N7(e),S=new ho(n+m/2,i+f/2,0,e);S.d>E.d&&(E=S);for(var D=C.length;C.length;){var I=C.pop();I.d>E.d&&(E=I,r&&console.log("found best %d after %d probes",Math.round(1e4*I.d)/1e4,D)),!(I.max-E.d<=t)&&(b=I.h/2,C.push(new ho(I.x-b,I.y-b,b,e)),C.push(new ho(I.x+b,I.y-b,b,e)),C.push(new ho(I.x-b,I.y+b,b,e)),C.push(new ho(I.x+b,I.y+b,b,e)),D+=4)}r&&(console.log("num probes: "+D),console.log("best distance: "+E.d));var k=[E.x,E.y];return k.distance=E.d,k}o(KE,"polylabel");function L7(e,t){return t.max-e.max}o(L7,"compareMax");function ho(e,t,r,n){this.x=e,this.y=t,this.h=r,this.d=R7(e,t,n),this.max=this.d+this.h*Math.SQRT2}o(ho,"Cell");function R7(e,t,r){for(var n=!1,i=1/0,a=0;a<r.length;a++)for(var u=r[a],s=0,d=u.length,m=d-1;s<d;m=s++){var f=u[s],g=u[m];f[1]>t!=g[1]>t&&e<(g[0]-f[0])*(t-f[1])/(g[1]-f[1])+f[0]&&(n=!n),i=Math.min(i,U7(e,t,f,g))}return i===0?0:(n?1:-1)*Math.sqrt(i)}o(R7,"pointToPolygonDist");function N7(e){for(var t=0,r=0,n=0,i=e[0],a=0,u=i.length,s=u-1;a<u;s=a++){var d=i[a],m=i[s],f=d[0]*m[1]-m[0]*d[1];r+=(d[0]+m[0])*f,n+=(d[1]+m[1])*f,t+=f*3}return t===0?new ho(i[0][0],i[0][1],0,e):new ho(r/t,n/t,0,e)}o(N7,"getCentroidCell");function U7(e,t,r,n){var i=r[0],a=r[1],u=n[0]-i,s=n[1]-a;if(u!==0||s!==0){var d=((e-i)*u+(t-a)*s)/(u*u+s*s);d>1?(i=n[0],a=n[1]):d>0&&(i+=u*d,a+=s*d)}return u=e-i,s=t-a,u*u+s*s}o(U7,"getSegDistSq")});var N6=zn((ey,ty)=>{l();(function(e,t){typeof ey=="object"&&typeof ty<"u"?ty.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self).RBush=t()})(ey,function(){"use strict";function e(x,E,S,D,I){o(function k(V,z,M,T,Z){for(;T>M;){if(T-M>600){var j=T-M+1,W=z-M+1,$=Math.log(j),q=.5*Math.exp(2*$/3),J=.5*Math.sqrt($*q*(j-q)/j)*(W-j/2<0?-1:1),G=Math.max(M,Math.floor(z-W*q/j+J)),ae=Math.min(T,Math.floor(z+(j-W)*q/j+J));k(V,z,G,ae,Z)}var te=V[z],ee=M,le=T;for(t(V,M,z),Z(V[T],te)>0&&t(V,M,T);ee<le;){for(t(V,ee,le),ee++,le--;Z(V[ee],te)<0;)ee++;for(;Z(V[le],te)>0;)le--}Z(V[M],te)===0?t(V,M,le):t(V,++le,T),le<=z&&(M=le+1),z<=le&&(T=le-1)}},"t")(x,E,S||0,D||x.length-1,I||r)}o(e,"t");function t(x,E,S){var D=x[E];x[E]=x[S],x[S]=D}o(t,"i");function r(x,E){return x<E?-1:x>E?1:0}o(r,"n");var n=o(function(x){x===void 0&&(x=9),this._maxEntries=Math.max(4,x),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()},"r");function i(x,E,S){if(!S)return E.indexOf(x);for(var D=0;D<E.length;D++)if(S(x,E[D]))return D;return-1}o(i,"e");function a(x,E){u(x,0,x.children.length,E,x)}o(a,"a");function u(x,E,S,D,I){I||(I=C(null)),I.minX=1/0,I.minY=1/0,I.maxX=-1/0,I.maxY=-1/0;for(var k=E;k<S;k++){var V=x.children[k];s(I,x.leaf?D(V):V)}return I}o(u,"h");function s(x,E){return x.minX=Math.min(x.minX,E.minX),x.minY=Math.min(x.minY,E.minY),x.maxX=Math.max(x.maxX,E.maxX),x.maxY=Math.max(x.maxY,E.maxY),x}o(s,"o");function d(x,E){return x.minX-E.minX}o(d,"s");function m(x,E){return x.minY-E.minY}o(m,"l");function f(x){return(x.maxX-x.minX)*(x.maxY-x.minY)}o(f,"f");function g(x){return x.maxX-x.minX+(x.maxY-x.minY)}o(g,"u");function b(x,E){return x.minX<=E.minX&&x.minY<=E.minY&&E.maxX<=x.maxX&&E.maxY<=x.maxY}o(b,"m");function v(x,E){return E.minX<=x.maxX&&E.minY<=x.maxY&&E.maxX>=x.minX&&E.maxY>=x.minY}o(v,"c");function C(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}o(C,"p");function A(x,E,S,D,I){for(var k=[E,S];k.length;)if(!((S=k.pop())-(E=k.pop())<=D)){var V=E+Math.ceil((S-E)/D/2)*D;e(x,V,E,S,I),k.push(E,V,V,S)}}return o(A,"d"),n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(x){var E=this.data,S=[];if(!v(x,E))return S;for(var D=this.toBBox,I=[];E;){for(var k=0;k<E.children.length;k++){var V=E.children[k],z=E.leaf?D(V):V;v(x,z)&&(E.leaf?S.push(V):b(x,z)?this._all(V,S):I.push(V))}E=I.pop()}return S},n.prototype.collides=function(x){var E=this.data;if(!v(x,E))return!1;for(var S=[];E;){for(var D=0;D<E.children.length;D++){var I=E.children[D],k=E.leaf?this.toBBox(I):I;if(v(x,k)){if(E.leaf||b(x,k))return!0;S.push(I)}}E=S.pop()}return!1},n.prototype.load=function(x){if(!x||!x.length)return this;if(x.length<this._minEntries){for(var E=0;E<x.length;E++)this.insert(x[E]);return this}var S=this._build(x.slice(),0,x.length-1,0);if(this.data.children.length)if(this.data.height===S.height)this._splitRoot(this.data,S);else{if(this.data.height<S.height){var D=this.data;this.data=S,S=D}this._insert(S,this.data.height-S.height-1,!0)}else this.data=S;return this},n.prototype.insert=function(x){return x&&this._insert(x,this.data.height-1),this},n.prototype.clear=function(){return this.data=C([]),this},n.prototype.remove=function(x,E){if(!x)return this;for(var S,D,I,k=this.data,V=this.toBBox(x),z=[],M=[];k||z.length;){if(k||(k=z.pop(),D=z[z.length-1],S=M.pop(),I=!0),k.leaf){var T=i(x,k.children,E);if(T!==-1)return k.children.splice(T,1),z.push(k),this._condense(z),this}I||k.leaf||!b(k,V)?D?(S++,k=D.children[S],I=!1):k=null:(z.push(k),M.push(S),S=0,D=k,k=k.children[0])}return this},n.prototype.toBBox=function(x){return x},n.prototype.compareMinX=function(x,E){return x.minX-E.minX},n.prototype.compareMinY=function(x,E){return x.minY-E.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(x){return this.data=x,this},n.prototype._all=function(x,E){for(var S=[];x;)x.leaf?E.push.apply(E,x.children):S.push.apply(S,x.children),x=S.pop();return E},n.prototype._build=function(x,E,S,D){var I,k=S-E+1,V=this._maxEntries;if(k<=V)return a(I=C(x.slice(E,S+1)),this.toBBox),I;D||(D=Math.ceil(Math.log(k)/Math.log(V)),V=Math.ceil(k/Math.pow(V,D-1))),(I=C([])).leaf=!1,I.height=D;var z=Math.ceil(k/V),M=z*Math.ceil(Math.sqrt(V));A(x,E,S,M,this.compareMinX);for(var T=E;T<=S;T+=M){var Z=Math.min(T+M-1,S);A(x,T,Z,z,this.compareMinY);for(var j=T;j<=Z;j+=z){var W=Math.min(j+z-1,Z);I.children.push(this._build(x,j,W,D-1))}}return a(I,this.toBBox),I},n.prototype._chooseSubtree=function(x,E,S,D){for(;D.push(E),!E.leaf&&D.length-1!==S;){for(var I=1/0,k=1/0,V=void 0,z=0;z<E.children.length;z++){var M=E.children[z],T=f(M),Z=(j=x,W=M,(Math.max(W.maxX,j.maxX)-Math.min(W.minX,j.minX))*(Math.max(W.maxY,j.maxY)-Math.min(W.minY,j.minY))-T);Z<k?(k=Z,I=T<I?T:I,V=M):Z===k&&T<I&&(I=T,V=M)}E=V||E.children[0]}var j,W;return E},n.prototype._insert=function(x,E,S){var D=S?x:this.toBBox(x),I=[],k=this._chooseSubtree(D,this.data,E,I);for(k.children.push(x),s(k,D);E>=0&&I[E].children.length>this._maxEntries;)this._split(I,E),E--;this._adjustParentBBoxes(D,I,E)},n.prototype._split=function(x,E){var S=x[E],D=S.children.length,I=this._minEntries;this._chooseSplitAxis(S,I,D);var k=this._chooseSplitIndex(S,I,D),V=C(S.children.splice(k,S.children.length-k));V.height=S.height,V.leaf=S.leaf,a(S,this.toBBox),a(V,this.toBBox),E?x[E-1].children.push(V):this._splitRoot(S,V)},n.prototype._splitRoot=function(x,E){this.data=C([x,E]),this.data.height=x.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(x,E,S){for(var D,I,k,V,z,M,T,Z=1/0,j=1/0,W=E;W<=S-E;W++){var $=u(x,0,W,this.toBBox),q=u(x,W,S,this.toBBox),J=(I=$,k=q,V=void 0,z=void 0,M=void 0,T=void 0,V=Math.max(I.minX,k.minX),z=Math.max(I.minY,k.minY),M=Math.min(I.maxX,k.maxX),T=Math.min(I.maxY,k.maxY),Math.max(0,M-V)*Math.max(0,T-z)),G=f($)+f(q);J<Z?(Z=J,D=W,j=G<j?G:j):J===Z&&G<j&&(j=G,D=W)}return D||S-E},n.prototype._chooseSplitAxis=function(x,E,S){var D=x.leaf?this.compareMinX:d,I=x.leaf?this.compareMinY:m;this._allDistMargin(x,E,S,D)<this._allDistMargin(x,E,S,I)&&x.children.sort(D)},n.prototype._allDistMargin=function(x,E,S,D){x.children.sort(D);for(var I=this.toBBox,k=u(x,0,E,I),V=u(x,S-E,S,I),z=g(k)+g(V),M=E;M<S-E;M++){var T=x.children[M];s(k,x.leaf?I(T):T),z+=g(k)}for(var Z=S-E-1;Z>=E;Z--){var j=x.children[Z];s(V,x.leaf?I(j):j),z+=g(V)}return z},n.prototype._adjustParentBBoxes=function(x,E,S){for(var D=S;D>=0;D--)s(E[D],x)},n.prototype._condense=function(x){for(var E=x.length-1,S=void 0;E>=0;E--)x[E].children.length===0?E>0?(S=x[E-1].children).splice(S.indexOf(x[E]),1):this.clear():a(x[E],this.toBBox)},n})});var ay=zn(ge=>{"use strict";l();Object.defineProperty(ge,"__esModule",{value:!0});ge.earthRadius=63710088e-1;ge.factors={centimeters:ge.earthRadius*100,centimetres:ge.earthRadius*100,degrees:ge.earthRadius/111325,feet:ge.earthRadius*3.28084,inches:ge.earthRadius*39.37,kilometers:ge.earthRadius/1e3,kilometres:ge.earthRadius/1e3,meters:ge.earthRadius,metres:ge.earthRadius,miles:ge.earthRadius/1609.344,millimeters:ge.earthRadius*1e3,millimetres:ge.earthRadius*1e3,nauticalmiles:ge.earthRadius/1852,radians:1,yards:ge.earthRadius*1.0936};ge.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/ge.earthRadius,yards:1.0936133};ge.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function So(e,t,r){r===void 0&&(r={});var n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}o(So,"feature");ge.feature=So;function mM(e,t,r){switch(r===void 0&&(r={}),e){case"Point":return ry(t).geometry;case"LineString":return iy(t).geometry;case"Polygon":return ny(t).geometry;case"MultiPoint":return j6(t).geometry;case"MultiLineString":return U6(t).geometry;case"MultiPolygon":return z6(t).geometry;default:throw new Error(e+" is invalid")}}o(mM,"geometry");ge.geometry=mM;function ry(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Hm(e[0])||!Hm(e[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:e};return So(n,t,r)}o(ry,"point");ge.point=ry;function pM(e,t,r){return r===void 0&&(r={}),Km(e.map(function(n){return ry(n,t)}),r)}o(pM,"points");ge.points=pM;function ny(e,t,r){r===void 0&&(r={});for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var u=0;u<a[a.length-1].length;u++)if(a[a.length-1][u]!==a[0][u])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:e};return So(s,t,r)}o(ny,"polygon");ge.polygon=ny;function fM(e,t,r){return r===void 0&&(r={}),Km(e.map(function(n){return ny(n,t)}),r)}o(fM,"polygons");ge.polygons=fM;function iy(e,t,r){if(r===void 0&&(r={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:e};return So(n,t,r)}o(iy,"lineString");ge.lineString=iy;function hM(e,t,r){return r===void 0&&(r={}),Km(e.map(function(n){return iy(n,t)}),r)}o(hM,"lineStrings");ge.lineStrings=hM;function Km(e,t){t===void 0&&(t={});var r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}o(Km,"featureCollection");ge.featureCollection=Km;function U6(e,t,r){r===void 0&&(r={});var n={type:"MultiLineString",coordinates:e};return So(n,t,r)}o(U6,"multiLineString");ge.multiLineString=U6;function j6(e,t,r){r===void 0&&(r={});var n={type:"MultiPoint",coordinates:e};return So(n,t,r)}o(j6,"multiPoint");ge.multiPoint=j6;function z6(e,t,r){r===void 0&&(r={});var n={type:"MultiPolygon",coordinates:e};return So(n,t,r)}o(z6,"multiPolygon");ge.multiPolygon=z6;function gM(e,t,r){r===void 0&&(r={});var n={type:"GeometryCollection",geometries:e};return So(n,t,r)}o(gM,"geometryCollection");ge.geometryCollection=gM;function yM(e,t){if(t===void 0&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,t||0);return Math.round(e*r)/r}o(yM,"round");ge.round=yM;function $6(e,t){t===void 0&&(t="kilometers");var r=ge.factors[t];if(!r)throw new Error(t+" units is invalid");return e*r}o($6,"radiansToLength");ge.radiansToLength=$6;function oy(e,t){t===void 0&&(t="kilometers");var r=ge.factors[t];if(!r)throw new Error(t+" units is invalid");return e/r}o(oy,"lengthToRadians");ge.lengthToRadians=oy;function bM(e,t){return G6(oy(e,t))}o(bM,"lengthToDegrees");ge.lengthToDegrees=bM;function vM(e){var t=e%360;return t<0&&(t+=360),t}o(vM,"bearingToAzimuth");ge.bearingToAzimuth=vM;function G6(e){var t=e%(2*Math.PI);return t*180/Math.PI}o(G6,"radiansToDegrees");ge.radiansToDegrees=G6;function xM(e){var t=e%360;return t*Math.PI/180}o(xM,"degreesToRadians");ge.degreesToRadians=xM;function EM(e,t,r){if(t===void 0&&(t="kilometers"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("length must be a positive number");return $6(oy(e,t),r)}o(EM,"convertLength");ge.convertLength=EM;function IM(e,t,r){if(t===void 0&&(t="meters"),r===void 0&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=ge.areaFactors[t];if(!n)throw new Error("invalid original units");var i=ge.areaFactors[r];if(!i)throw new Error("invalid final units");return e/n*i}o(IM,"convertArea");ge.convertArea=IM;function Hm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}o(Hm,"isNumber");ge.isNumber=Hm;function CM(e){return!!e&&e.constructor===Object}o(CM,"isObject");ge.isObject=CM;function DM(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(t){if(!Hm(t))throw new Error("bbox must only contain numbers")})}o(DM,"validateBBox");ge.validateBBox=DM;function SM(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}o(SM,"validateId");ge.validateId=SM});var K6=zn(Wt=>{"use strict";l();Object.defineProperty(Wt,"__esModule",{value:!0});var Cr=ay();function mc(e,t,r){if(e!==null)for(var n,i,a,u,s,d,m,f=0,g=0,b,v=e.type,C=v==="FeatureCollection",A=v==="Feature",x=C?e.features.length:1,E=0;E<x;E++){m=C?e.features[E].geometry:A?e.geometry:e,b=m?m.type==="GeometryCollection":!1,s=b?m.geometries.length:1;for(var S=0;S<s;S++){var D=0,I=0;if(u=b?m.geometries[S]:m,u!==null){d=u.coordinates;var k=u.type;switch(f=r&&(k==="Polygon"||k==="MultiPolygon")?1:0,k){case null:break;case"Point":if(t(d,g,E,D,I)===!1)return!1;g++,D++;break;case"LineString":case"MultiPoint":for(n=0;n<d.length;n++){if(t(d[n],g,E,D,I)===!1)return!1;g++,k==="MultiPoint"&&D++}k==="LineString"&&D++;break;case"Polygon":case"MultiLineString":for(n=0;n<d.length;n++){for(i=0;i<d[n].length-f;i++){if(t(d[n][i],g,E,D,I)===!1)return!1;g++}k==="MultiLineString"&&D++,k==="Polygon"&&I++}k==="Polygon"&&D++;break;case"MultiPolygon":for(n=0;n<d.length;n++){for(I=0,i=0;i<d[n].length;i++){for(a=0;a<d[n][i].length-f;a++){if(t(d[n][i][a],g,E,D,I)===!1)return!1;g++}I++}D++}break;case"GeometryCollection":for(n=0;n<u.geometries.length;n++)if(mc(u.geometries[n],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}o(mc,"coordEach");function wM(e,t,r,n){var i=r;return mc(e,function(a,u,s,d,m){u===0&&r===void 0?i=a:i=t(i,a,u,s,d,m)},n),i}o(wM,"coordReduce");function Z6(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&t(e.features[r].properties,r)!==!1;r++);break;case"Feature":t(e.properties,0);break}}o(Z6,"propEach");function AM(e,t,r){var n=r;return Z6(e,function(i,a){a===0&&r===void 0?n=i:n=t(n,i,a)}),n}o(AM,"propReduce");function V6(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var r=0;r<e.features.length&&t(e.features[r],r)!==!1;r++);}o(V6,"featureEach");function FM(e,t,r){var n=r;return V6(e,function(i,a){a===0&&r===void 0?n=i:n=t(n,i,a)}),n}o(FM,"featureReduce");function OM(e){var t=[];return mc(e,function(r){t.push(r)}),t}o(OM,"coordAll");function uy(e,t){var r,n,i,a,u,s,d,m,f,g,b=0,v=e.type==="FeatureCollection",C=e.type==="Feature",A=v?e.features.length:1;for(r=0;r<A;r++){for(s=v?e.features[r].geometry:C?e.geometry:e,m=v?e.features[r].properties:C?e.properties:{},f=v?e.features[r].bbox:C?e.bbox:void 0,g=v?e.features[r].id:C?e.id:void 0,d=s?s.type==="GeometryCollection":!1,u=d?s.geometries.length:1,i=0;i<u;i++){if(a=d?s.geometries[i]:s,a===null){if(t(null,b,m,f,g)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(a,b,m,f,g)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(t(a.geometries[n],b,m,f,g)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}b++}}o(uy,"geomEach");function PM(e,t,r){var n=r;return uy(e,function(i,a,u,s,d){a===0&&r===void 0?n=i:n=t(n,i,a,u,s,d)}),n}o(PM,"geomReduce");function qm(e,t){uy(e,function(r,n,i,a,u){var s=r===null?null:r.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return t(Cr.feature(r,i,{bbox:a,id:u}),n,0)===!1?!1:void 0}var d;switch(s){case"MultiPoint":d="Point";break;case"MultiLineString":d="LineString";break;case"MultiPolygon":d="Polygon";break}for(var m=0;m<r.coordinates.length;m++){var f=r.coordinates[m],g={type:d,coordinates:f};if(t(Cr.feature(g,i),n,m)===!1)return!1}})}o(qm,"flattenEach");function BM(e,t,r){var n=r;return qm(e,function(i,a,u){a===0&&u===0&&r===void 0?n=i:n=t(n,i,a,u)}),n}o(BM,"flattenReduce");function W6(e,t){qm(e,function(r,n,i){var a=0;if(r.geometry){var u=r.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var s,d=0,m=0,f=0;if(mc(r,function(g,b,v,C,A){if(s===void 0||n>d||C>m||A>f){s=g,d=n,m=C,f=A,a=0;return}var x=Cr.lineString([s,g],r.properties);if(t(x,n,i,A,a)===!1)return!1;a++,s=g})===!1)return!1}}})}o(W6,"segmentEach");function MM(e,t,r){var n=r,i=!1;return W6(e,function(a,u,s,d,m){i===!1&&r===void 0?n=a:n=t(n,a,u,s,d,m),i=!0}),n}o(MM,"segmentReduce");function H6(e,t){if(!e)throw new Error("geojson is required");qm(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,u=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<u.length;s++)if(t(Cr.lineString(u[s],r.properties),n,i,s)===!1)return!1;break}}})}o(H6,"lineEach");function TM(e,t,r){var n=r;return H6(e,function(i,a,u,s){a===0&&r===void 0?n=i:n=t(n,i,a,u,s)}),n}o(TM,"lineReduce");function kM(e,t){if(t=t||{},!Cr.isObject(t))throw new Error("options is invalid");var r=t.featureIndex||0,n=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.segmentIndex||0,u=t.properties,s;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),u=u||e.features[r].properties,s=e.features[r].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=d.length+a-1),Cr.lineString([d[a],d[a+1]],u,t);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a-1),Cr.lineString([d[i][a],d[i][a+1]],u,t);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a-1),Cr.lineString([d[n][a],d[n][a+1]],u,t);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a-1),Cr.lineString([d[n][i][a],d[n][i][a+1]],u,t)}throw new Error("geojson is invalid")}o(kM,"findSegment");function _M(e,t){if(t=t||{},!Cr.isObject(t))throw new Error("options is invalid");var r=t.featureIndex||0,n=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.coordIndex||0,u=t.properties,s;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),u=u||e.features[r].properties,s=e.features[r].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":return Cr.point(d,u,t);case"MultiPoint":return n<0&&(n=d.length+n),Cr.point(d[n],u,t);case"LineString":return a<0&&(a=d.length+a),Cr.point(d[a],u,t);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a),Cr.point(d[i][a],u,t);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a),Cr.point(d[n][a],u,t);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a),Cr.point(d[n][i][a],u,t)}throw new Error("geojson is invalid")}o(_M,"findPoint");Wt.coordAll=OM;Wt.coordEach=mc;Wt.coordReduce=wM;Wt.featureEach=V6;Wt.featureReduce=FM;Wt.findPoint=_M;Wt.findSegment=kM;Wt.flattenEach=qm;Wt.flattenReduce=BM;Wt.geomEach=uy;Wt.geomReduce=PM;Wt.lineEach=H6;Wt.lineReduce=TM;Wt.propEach=Z6;Wt.propReduce=AM;Wt.segmentEach=W6;Wt.segmentReduce=MM});var eI=zn(qe=>{"use strict";l();Object.defineProperty(qe,"__esModule",{value:!0});var $r=63710088e-1,cy={centimeters:$r*100,centimetres:$r*100,degrees:360/(2*Math.PI),feet:$r*3.28084,inches:$r*39.37,kilometers:$r/1e3,kilometres:$r/1e3,meters:$r,metres:$r,miles:$r/1609.344,millimeters:$r*1e3,millimetres:$r*1e3,nauticalmiles:$r/1852,radians:1,yards:$r*1.0936},sy={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function wo(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}o(wo,"feature");function LM(e,t,r={}){switch(e){case"Point":return ly(t).geometry;case"LineString":return my(t).geometry;case"Polygon":return dy(t).geometry;case"MultiPoint":return J6(t).geometry;case"MultiLineString":return q6(t).geometry;case"MultiPolygon":return X6(t).geometry;default:throw new Error(e+" is invalid")}}o(LM,"geometry");function ly(e,t,r={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Jm(e[0])||!Jm(e[1]))throw new Error("coordinates must contain numbers");return wo({type:"Point",coordinates:e},t,r)}o(ly,"point");function RM(e,t,r={}){return Xm(e.map(n=>ly(n,t)),r)}o(RM,"points");function dy(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;a<i[i.length-1].length;a++)if(i[i.length-1][a]!==i[0][a])throw new Error("First and last Position are not equivalent.")}return wo({type:"Polygon",coordinates:e},t,r)}o(dy,"polygon");function NM(e,t,r={}){return Xm(e.map(n=>dy(n,t)),r)}o(NM,"polygons");function my(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return wo({type:"LineString",coordinates:e},t,r)}o(my,"lineString");function UM(e,t,r={}){return Xm(e.map(n=>my(n,t)),r)}o(UM,"lineStrings");function Xm(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}o(Xm,"featureCollection");function q6(e,t,r={}){return wo({type:"MultiLineString",coordinates:e},t,r)}o(q6,"multiLineString");function J6(e,t,r={}){return wo({type:"MultiPoint",coordinates:e},t,r)}o(J6,"multiPoint");function X6(e,t,r={}){return wo({type:"MultiPolygon",coordinates:e},t,r)}o(X6,"multiPolygon");function jM(e,t,r={}){return wo({type:"GeometryCollection",geometries:e},t,r)}o(jM,"geometryCollection");function zM(e,t=0){if(t&&!(t>=0))throw new Error("precision must be a positive number");let r=Math.pow(10,t||0);return Math.round(e*r)/r}o(zM,"round");function Y6(e,t="kilometers"){let r=cy[t];if(!r)throw new Error(t+" units is invalid");return e*r}o(Y6,"radiansToLength");function py(e,t="kilometers"){let r=cy[t];if(!r)throw new Error(t+" units is invalid");return e/r}o(py,"lengthToRadians");function $M(e,t){return Q6(py(e,t))}o($M,"lengthToDegrees");function GM(e){let t=e%360;return t<0&&(t+=360),t}o(GM,"bearingToAzimuth");function ZM(e){return e=e%360,e>180?e-360:e<-180?e+360:e}o(ZM,"azimuthToBearing");function Q6(e){return e%(2*Math.PI)*180/Math.PI}o(Q6,"radiansToDegrees");function VM(e){return e%360*Math.PI/180}o(VM,"degreesToRadians");function WM(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return Y6(py(e,t),r)}o(WM,"convertLength");function HM(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=sy[t];if(!n)throw new Error("invalid original units");let i=sy[r];if(!i)throw new Error("invalid final units");return e/n*i}o(HM,"convertArea");function Jm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}o(Jm,"isNumber");function KM(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}o(KM,"isObject");function qM(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(t=>{if(!Jm(t))throw new Error("bbox must only contain numbers")})}o(qM,"validateBBox");function JM(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}o(JM,"validateId");qe.areaFactors=sy;qe.azimuthToBearing=ZM;qe.bearingToAzimuth=GM;qe.convertArea=HM;qe.convertLength=WM;qe.degreesToRadians=VM;qe.earthRadius=$r;qe.factors=cy;qe.feature=wo;qe.featureCollection=Xm;qe.geometry=LM;qe.geometryCollection=jM;qe.isNumber=Jm;qe.isObject=KM;qe.lengthToDegrees=$M;qe.lengthToRadians=py;qe.lineString=my;qe.lineStrings=UM;qe.multiLineString=q6;qe.multiPoint=J6;qe.multiPolygon=X6;qe.point=ly;qe.points=RM;qe.polygon=dy;qe.polygons=NM;qe.radiansToDegrees=Q6;qe.radiansToLength=Y6;qe.round=zM;qe.validateBBox=qM;qe.validateId=JM});var oI=zn(Ht=>{"use strict";l();Object.defineProperty(Ht,"__esModule",{value:!0});var Dr=eI();function pc(e,t,r){if(e!==null)for(var n,i,a,u,s,d,m,f=0,g=0,b,v=e.type,C=v==="FeatureCollection",A=v==="Feature",x=C?e.features.length:1,E=0;E<x;E++){m=C?e.features[E].geometry:A?e.geometry:e,b=m?m.type==="GeometryCollection":!1,s=b?m.geometries.length:1;for(var S=0;S<s;S++){var D=0,I=0;if(u=b?m.geometries[S]:m,u!==null){d=u.coordinates;var k=u.type;switch(f=r&&(k==="Polygon"||k==="MultiPolygon")?1:0,k){case null:break;case"Point":if(t(d,g,E,D,I)===!1)return!1;g++,D++;break;case"LineString":case"MultiPoint":for(n=0;n<d.length;n++){if(t(d[n],g,E,D,I)===!1)return!1;g++,k==="MultiPoint"&&D++}k==="LineString"&&D++;break;case"Polygon":case"MultiLineString":for(n=0;n<d.length;n++){for(i=0;i<d[n].length-f;i++){if(t(d[n][i],g,E,D,I)===!1)return!1;g++}k==="MultiLineString"&&D++,k==="Polygon"&&I++}k==="Polygon"&&D++;break;case"MultiPolygon":for(n=0;n<d.length;n++){for(I=0,i=0;i<d[n].length;i++){for(a=0;a<d[n][i].length-f;a++){if(t(d[n][i][a],g,E,D,I)===!1)return!1;g++}I++}D++}break;case"GeometryCollection":for(n=0;n<u.geometries.length;n++)if(pc(u.geometries[n],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}o(pc,"coordEach");function XM(e,t,r,n){var i=r;return pc(e,function(a,u,s,d,m){u===0&&r===void 0?i=a:i=t(i,a,u,s,d,m)},n),i}o(XM,"coordReduce");function tI(e,t){var r;switch(e.type){case"FeatureCollection":for(r=0;r<e.features.length&&t(e.features[r].properties,r)!==!1;r++);break;case"Feature":t(e.properties,0);break}}o(tI,"propEach");function YM(e,t,r){var n=r;return tI(e,function(i,a){a===0&&r===void 0?n=i:n=t(n,i,a)}),n}o(YM,"propReduce");function rI(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var r=0;r<e.features.length&&t(e.features[r],r)!==!1;r++);}o(rI,"featureEach");function QM(e,t,r){var n=r;return rI(e,function(i,a){a===0&&r===void 0?n=i:n=t(n,i,a)}),n}o(QM,"featureReduce");function eT(e){var t=[];return pc(e,function(r){t.push(r)}),t}o(eT,"coordAll");function fy(e,t){var r,n,i,a,u,s,d,m,f,g,b=0,v=e.type==="FeatureCollection",C=e.type==="Feature",A=v?e.features.length:1;for(r=0;r<A;r++){for(s=v?e.features[r].geometry:C?e.geometry:e,m=v?e.features[r].properties:C?e.properties:{},f=v?e.features[r].bbox:C?e.bbox:void 0,g=v?e.features[r].id:C?e.id:void 0,d=s?s.type==="GeometryCollection":!1,u=d?s.geometries.length:1,i=0;i<u;i++){if(a=d?s.geometries[i]:s,a===null){if(t(null,b,m,f,g)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(a,b,m,f,g)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(t(a.geometries[n],b,m,f,g)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}b++}}o(fy,"geomEach");function tT(e,t,r){var n=r;return fy(e,function(i,a,u,s,d){a===0&&r===void 0?n=i:n=t(n,i,a,u,s,d)}),n}o(tT,"geomReduce");function Ym(e,t){fy(e,function(r,n,i,a,u){var s=r===null?null:r.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return t(Dr.feature.call(void 0,r,i,{bbox:a,id:u}),n,0)===!1?!1:void 0}var d;switch(s){case"MultiPoint":d="Point";break;case"MultiLineString":d="LineString";break;case"MultiPolygon":d="Polygon";break}for(var m=0;m<r.coordinates.length;m++){var f=r.coordinates[m],g={type:d,coordinates:f};if(t(Dr.feature.call(void 0,g,i),n,m)===!1)return!1}})}o(Ym,"flattenEach");function rT(e,t,r){var n=r;return Ym(e,function(i,a,u){a===0&&u===0&&r===void 0?n=i:n=t(n,i,a,u)}),n}o(rT,"flattenReduce");function nI(e,t){Ym(e,function(r,n,i){var a=0;if(r.geometry){var u=r.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var s,d=0,m=0,f=0;if(pc(r,function(g,b,v,C,A){if(s===void 0||n>d||C>m||A>f){s=g,d=n,m=C,f=A,a=0;return}var x=Dr.lineString.call(void 0,[s,g],r.properties);if(t(x,n,i,A,a)===!1)return!1;a++,s=g})===!1)return!1}}})}o(nI,"segmentEach");function nT(e,t,r){var n=r,i=!1;return nI(e,function(a,u,s,d,m){i===!1&&r===void 0?n=a:n=t(n,a,u,s,d,m),i=!0}),n}o(nT,"segmentReduce");function iI(e,t){if(!e)throw new Error("geojson is required");Ym(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,u=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<u.length;s++)if(t(Dr.lineString.call(void 0,u[s],r.properties),n,i,s)===!1)return!1;break}}})}o(iI,"lineEach");function iT(e,t,r){var n=r;return iI(e,function(i,a,u,s){a===0&&r===void 0?n=i:n=t(n,i,a,u,s)}),n}o(iT,"lineReduce");function oT(e,t){if(t=t||{},!Dr.isObject.call(void 0,t))throw new Error("options is invalid");var r=t.featureIndex||0,n=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.segmentIndex||0,u=t.properties,s;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),u=u||e.features[r].properties,s=e.features[r].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=d.length+a-1),Dr.lineString.call(void 0,[d[a],d[a+1]],u,t);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a-1),Dr.lineString.call(void 0,[d[i][a],d[i][a+1]],u,t);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a-1),Dr.lineString.call(void 0,[d[n][a],d[n][a+1]],u,t);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a-1),Dr.lineString.call(void 0,[d[n][i][a],d[n][i][a+1]],u,t)}throw new Error("geojson is invalid")}o(oT,"findSegment");function aT(e,t){if(t=t||{},!Dr.isObject.call(void 0,t))throw new Error("options is invalid");var r=t.featureIndex||0,n=t.multiFeatureIndex||0,i=t.geometryIndex||0,a=t.coordIndex||0,u=t.properties,s;switch(e.type){case"FeatureCollection":r<0&&(r=e.features.length+r),u=u||e.features[r].properties,s=e.features[r].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":return Dr.point.call(void 0,d,u,t);case"MultiPoint":return n<0&&(n=d.length+n),Dr.point.call(void 0,d[n],u,t);case"LineString":return a<0&&(a=d.length+a),Dr.point.call(void 0,d[a],u,t);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a),Dr.point.call(void 0,d[i][a],u,t);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a),Dr.point.call(void 0,d[n][a],u,t);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a),Dr.point.call(void 0,d[n][i][a],u,t)}throw new Error("geojson is invalid")}o(aT,"findPoint");Ht.coordAll=eT;Ht.coordEach=pc;Ht.coordReduce=XM;Ht.featureEach=rI;Ht.featureReduce=QM;Ht.findPoint=aT;Ht.findSegment=oT;Ht.flattenEach=Ym;Ht.flattenReduce=rT;Ht.geomEach=fy;Ht.geomReduce=tT;Ht.lineEach=iI;Ht.lineReduce=iT;Ht.propEach=tI;Ht.propReduce=YM;Ht.segmentEach=nI;Ht.segmentReduce=nT});var uI=zn(Qm=>{"use strict";l();Object.defineProperty(Qm,"__esModule",{value:!0});var uT=oI();function aI(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return uT.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}o(aI,"bbox");var sT=aI;Qm.bbox=aI;Qm.default=sT});var mI=zn((N1e,hy)=>{l();var mi=N6(),cI=ay(),lI=K6(),ku=uI().default,cT=lI.featureEach,L1e=lI.coordEach,R1e=cI.polygon,sI=cI.featureCollection;function dI(e){var t=new mi(e);return t.insert=function(r){if(r.type!=="Feature")throw new Error("invalid feature");return r.bbox=r.bbox?r.bbox:ku(r),mi.prototype.insert.call(this,r)},t.load=function(r){var n=[];return Array.isArray(r)?r.forEach(function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:ku(i),n.push(i)}):cT(r,function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:ku(i),n.push(i)}),mi.prototype.load.call(this,n)},t.remove=function(r,n){if(r.type!=="Feature")throw new Error("invalid feature");return r.bbox=r.bbox?r.bbox:ku(r),mi.prototype.remove.call(this,r,n)},t.clear=function(){return mi.prototype.clear.call(this)},t.search=function(r){var n=mi.prototype.search.call(this,this.toBBox(r));return sI(n)},t.collides=function(r){return mi.prototype.collides.call(this,this.toBBox(r))},t.all=function(){var r=mi.prototype.all.call(this);return sI(r)},t.toJSON=function(){return mi.prototype.toJSON.call(this)},t.fromJSON=function(r){return mi.prototype.fromJSON.call(this,r)},t.toBBox=function(r){var n;if(r.bbox)n=r.bbox;else if(Array.isArray(r)&&r.length===4)n=r;else if(Array.isArray(r)&&r.length===6)n=[r[0],r[1],r[3],r[4]];else if(r.type==="Feature")n=ku(r);else if(r.type==="FeatureCollection")n=ku(r);else throw new Error("invalid geojson");return{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}},t}o(dI,"geojsonRbush");hy.exports=dI;hy.exports.default=dI});l();import{MapView as UT}from"@mappedin/mappedin-js";l();l();l();(function(){typeof globalThis!="object"&&(Object.defineProperty(Object.prototype,"__magic__",{get:o(function(){return this},"get"),configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var ab="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkICAgKCgkLDhcPDg0NDhwUFREXIh4jIyEeICAlKjUtJScyKCAgLj8vMjc5PDw8JC1CRkE6RjU7PDn/2wBDAQoKCg4MDhsPDxs5JiAmOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTn/wgARCAIABAADAREAAhEBAxEB/8QAGwABAAMBAQEBAAAAAAAAAAAAAAECAwQFBgf/xAAWAQEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAP3EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAIAAAJAFAAAAAAAAAAAAAAAAAAAAAAAAABAgAAEgCgAAAAAAAAAAAAAAAAAAAABERLSM1zM4zXMzjMoUIqCCSSS8XNC9mpoaVomharWTQAAAAAAAAAAAAAAAAEREtIoZrnGZkucUKFStQQSTFixdNDStF0TWrmiWqbJoAAAAAAAAAAAAAIgiWkZy4HNLzHLXKcxzpzmFYmRkUKFSCCSSxcuampsbR0HSdK9R1R1HTZvWll0mlAAAAAAAAAAAIiKLnLjHNLynLXKcycxzmNYmJmUKFSCAWLFy5qamxvHQvSdJ0nVHUdFm1aparWKAjNWSKAAAAARBEtYzlyXnjmOSuM4U4q4jjOM5a5k5zAyMjOqFCCCCSSS5c0jU1NzoOk6pew7TtjuO1e0646jezWr2WSaUAAAAAECIqtZco55eY464zhTirhOI5Dks5jAwMTIzqhUqQASWLFzSNTY3Og6V646zsO2O47V7DrjqNzWy9nlZ1c0LlrLEk0EQQVipRczIyMU5q5F4U8+vOPOrgThOOuU5jAxMjMzKpUggigJiSSxY0XQ1Njc6TqjtO49CX0D0T0Y7l7E6JdzU1NEvViSalBAWIqVKLSMjIxOauM4U86vPPOrz04TjrkOYwMTIzKJQqQQCKmBJJYutzQ1Njc6TrOyO475fRPRPQjuXsToXWPn6kkkEkhCkEAgggqVMjlrzzzDy7PMPPrhOQ5jBMqoVIIIAAIAJAAJJJLFzWN16TsO49CPTPUl9Q9A6o1LFiSSSSQpCwQQCCCpVMjlrzzyzy7PMPPrhOM5kwM6zKlQQAAQASAASCxY0NI3XpOw7j0I9M9SX0z0DqjU+UqpQqVIBFgEyixJYuWLFDkrzE8o8yvOONOasipBAAAAAAAAAAABJJY2OiO1fQPUj1T0pewuVKlCCqQsBIUSSSSWLlyTM5K808pPLrzziTnrEqQQAAAAAAAAAAASSWNjojtX0D1I9VfSOuND4uzMzqhQqVIALEli5c1jUuQc1vnp5pwJzVmQQAAAAAAAAAAAAAASSaHTHevpHoHTFjMyM6zKlSpABJJcsaGkamhU5q88804E5qzIIAAAAAAAAAAAAAAJJNDpjvX0j0Dqix8dVDMolSpAqCYElixc0XU0IMjlTlrIqAAAAAAAAAAAAAAAAAWNTqjqXYGZkZpUoQQRSFIsSXLroaGhBkcqctZFQAAAAAAAAAAAAAAAACxqdUdS7EngWQCAAQASACSSSwKlSCAAAAAAAAAAAAAAAAAACSSxYFSCCAACCQACSSSwKlSCAAAAAAAAAAAAAAAAAACSSxYGIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAJAJAJBAAIAIABAAAAAAAAAAAAAAAAAAAABIAJAJAJBAAIAIABAAAAJABAAAAAAAAAJBILEli5Y0LlzQ0Lly5csWLAkgFSChUoUMyhmUMyhQqVKkEEAEAAAAAAAAAkEgsSWLljQuXNDQuXLlyxYsCSAVIKFShQzKGZQzKFCpUqQe+ZmZkUKFCpUEEAAkksWLFzQ0NTU2NzY3Og3NzoNzc2NjU1NS5csSAQVKmZmZGRiYmBgYHOYGBgYGBiZGRkUMypUqQCAASSWLFi5oaGpqbG5sbnQbm50G5ubGxqampcuWJAIIKGZmZGRiYmBgYHOYGBgYGR+jmBzmBzmJiZGZQoQQSSWLmhqbGxudB0nSdJ1HSdR1HSdJ0G5qamhcsWJJJBIIIBUqVKFDIyMDA5jmOU5TlOY5TmOc5znMTEyMyhQggFixc0NTY2NzoOk6TpOo6TqOo6TpOg3NTU0LlixJJIJBAIKkFChQyMjAwOY5jlOU5jnP00yMTnOc5zAwMjMoVIJJLmhqbmx0HQdBubmxqXLkkgAAAAAAAAAAAAAEEFTMzMTEwOc5znMDAyMyhUgkkuaGpsbnQdB0G5ubGpcuSSAAAAAAAAAAAAAAQQVKGZ1gAEEEEFSCACSSxJJJIAAAAAAAAAAAAAAAAAAAAAAABBBBBUggAkkksSSSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQCCpBUqQVIKggAkFiSSxYksSSSSAAAAAAAAAAAAAAAAAAQCCpBUqQVIKggAkFiSSxYksSWBIAAKFiQAAAAAAAAACCpUoUMzIyMzMzMyhQoVKkEEAgkEkklixYuXNDQ0NTQ1NC5cuWJAAAAAAAAAAIKlShQzMjIzMzMzKFChUqQQQCCQSSSWLFyxoXNDQ1NDU0LljUkkAAAAAAAAAAggggEEAgAAAAAAAAAAAAAEkgkkkkkAAAAAAAAAAgggggEAgAAAAAEgEAAAAAAEkgkkuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADyyCCCCCCCCAQASCSQWJJJJLEkkkkkgkkEgkAEgAAEAAgEAggEEEEEEEFSCCCCCCAQASCSQWJJJJLEkkkkkgkkEgEgEgAAEAAgEAggEEEEEH5AQQQQVBBAIAAJBIJJJLEkkkkliSSSSSQSSCQSAAAQAQQCCCCCCCCCpBBBBBUEEEAgAAkEgkkksSSSSSWJJJJJJBJIJBIAABABBAIIIIIIIIKg/LCAQCACAAAACQCQSCQSASSASCQCQAAAAAAQCAQAQCAQAQQCACAAAACQCQSCQSASSASCQCQAAAAAAQCAQAQCAQfPgAAAAAAAAAAAAAAkAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAgAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/xAApEAAABQUBAQACAwACAwAAAAABAgQFFQMGERQWEhNAUAAgMGCAkKCw/9oACAEBAAECAP8AwTZznOf3mc5/YZE41xVivFyM6i7C8C8C8zMzMzMyDyDyDyDwV4K7ldSuZV5VgVwqZ/SCca4qxXmcjOouwvAvEzMzMzMzMyDyDyDwV4K7ldSuRVwKgrgf88TDWMrO4VHOo61Hao7ndzvB3k7yZ5M8i8i8zMzMzMyDyDyDyV5K8keSPJHmm8U3em70nam603Mi8qotUDfk5GqZUdfUc6jrUdqjvUeDvB3kzyZ5M8i8i8zMzMzMzMg8g8leSvJHkjyR5pvFN4pu9N2pOtNzIvKqLWA39PX+/saplJlh1tRfVcKrlVdKrrVdqrvVdzu53Y7sZ2M6mdRdRdBdJSUk5SUB0B0B1K6kdSOxHam7Unek70nei7UXWi6UXKk40l9NaRWWuB8/75E41zKjraq+q41nOq6VXas7VXeq71Hc7ud2O7GdRdRdZQXSUlJSUlAdCugOpXUjqR2I7U3em70nek70nai60XSk5UnGkvItIrKoCsC0FwLgXAuBbube3ubm7uiuFcZcZaZYdZUWVl1dwruVdzrulZ0qulVzqOR3EzgZeZcZcK0Vm3t7W1tbW1tgrBYC0q0q4q8jgRxpuVJzoulB0oOlBzoOVBworqa0iwi0i0q4FwLQWAr2trZ2trb3RWiuFcZaZadbUW1l1ZwruVd0rulZ0qulVzqOR3E7gZeZeK4VorNzb29ra2tsFe2CwFpVxVxV5HAjjTcqTnRdKDpQdKDnQcqDhRXU1pFhVm/ISUnKSkrLSsrKyspJyUhvitOtrLq69Q4qHGu41nGqvqLjrDKhUDW+nv1nP+Oc+vYVArFUEVEWUl1FfQcU7imckzinX0VxFoLgXyMlJykrLS0tLS0rKSclI74rjraq6uvUuKhxruNdxqr6i46wysVA1vp79Zz/AI5z6A4VArFUEVkWUl1FfQcU7imcUzinX0VxFoLZKTlJWVlpaXl5eWlpWUB0BzBxkDr669SvUr666stqqz1xqes/j5AxahFFJXRWp1yZemX0F5HCQkpOUlZaWlpeXl5aWB2lQdAcwcZE7hWcFLgpXqF1ZbVVnUDU9Z/HyBi1CV6SuitTrky9MvoLyL5AXEXEXIXIXKSkpKSkpIHIHIHIrkVxK4yJnCsvrra6uqpPVE354GJVpKaCtOtoryuEiZxM5C5C5C5SUnJSclJSQOQORXIrkVxBxM4VV9dbXV1VJ6om/PAxKtFTQVp1tFeRwkRWitFYKvb2tra2draBUCsFgLCrSrQWitOsqqT1RN+jAxKtJTTWFWitMtMtFYKzb29ra2tnaBUCsFZVhVpVoLRWnWVFJ6om/RgYlWkpprAW73v36zn++c+gOFQKv1GoJv04GCp9Rq/T36zn++c+gOFT7fUagm/TgYKn1+3/AKEeMefHjx8/n8vl8vn8/Hjx5xj9bjHnx48fP5/L5fL5/Px48ecY/wAvOPxceQIFIKIJgSAiBAVuK2FaitINAM4MwMwMsJCQkJCQkJCwosws4tAtItQtgtot4oRSCm+Hy8ecfi48gQKQUQTAkBECArcVsK1FaQaAZwZgZgZYSEhISEhISFhRZhZxaBaRahbBbRbxQikFN8BpfMWgWozWLaLcKAUWpq62vr/DX19YEoJARAhBvK2laytRGgjORlIyEYiMJLfJbxLdJbhLbJbRLaJbJbZLbAWxzHMcxzHMcxzHMDbBrYNbJraNbRrbPbh7dPbx7fOwHYjsZ2UzMZoM0maxbRbhQCi1NXW19fX19fW1QSAiBCDeVtK1laiNBGYjKRkIxEYSW+S3iW6S3CW2S2iW0S2S2yW2AtgLY5jmOY5jmOY5gbYNbJrZNbRraPbZ7cPbp7ePb52A7EdjOymZjW4e3D26e3j2+ZgMwmYhYxY4SEhISEBjKxlYiMJGAjAS3iW9TtynblO26dtUrap2zTtmnbNO2SW2S3isRWYGkG0EAItTW1/h8Phr6+rp6AtwtQs5mI9vntw9tHtk9s1LZqWzUto9tnts9uHt09vHt8zAZhMxCxixwkJCQkIDGVjKxEYSMBGAlvEt6nblO3Kdt0rap21TtmnbNO2SWyS2yW8ViKzA1A2ggBFqa2v8Ph8NfW1dPRFuFqMzGYjW+e3D20e2T2zUtk9tHto1tCzHYj2+e3T24e3D24a3DW4Nuc5znOc4FuBbhbcLbhLcJblO3CW4S3iMRGcrYVECcKYB+cJBoCjM2maDsZ7fPbp7cPbh7cNbhrcG3Oc5znOcC3C24W3C24S3CW5TtwluEt4jERnK2FRAnCmAfnCQaAoxb/7ePl8NbU09PT1NYKHy8Y/ZePl8NbU09PT1NYKHy8Y/4Z6+g1tjb3d+Rk5SVlZWVlZSTkd8Fu3s/b6es/pvX0Gtsbe7vyMnKSkrKysrKSciC8Fu3s/YKnrP9gqAb8X0NQawqBVCrMrMqMoGuNUTiYf4ICT5/L4/H4fD4fH4hSCmBAAP4AgctUtYqgqoqsqsqoFIVwqAb8X0NQawqBVCrMrMqMoGuNUTiYf4ICT5/L4/H4fD4fH4hSCmBAAP4AgctUtYqgqkqsqsqsFIV/Hn8XHj5/H4a+traurq6mpqampqampqampqampqampqampqamrq62tr/D4/Lx5/Fx4+fx+Gvra2rq6upqampqampqamrq6upqampqampqamrq6utra/w+Py/wCgEzNTc5OTs7PT09PT8/Pz09PT07Ozk3Ng9TMxLy0rKSclJSMhIb+9vbu9u7u7u7u7u729vb2/vyEjJSUnKSstLzEzNTc5OTs7Oz09PT8/Pz09PT07Ozk5NzUzMS8tKyknJSUjISG/v727vbu7u7u7u7u9u729v78hIyUlJykrLS8x0nR9H0fR9H0XRdF0XRdD0PQ9F0XRdF0XRdF0fR9H0nSdJ0vS9L0vTdN03TdP0/T9P0/T9P0/T9P0/T9R0/T9P0/T9P0/TdN03S9L0vS9J0nSdJ0fR9H0XRdF0PRdD0PQ9D0PRdF0XRdF0XR9H0fSdJ0nS9L0vS9N03TdN0/T9P0/T9P0/T9P0/T9P1HT9P0/T9P0/T9N03TdL0vS9L0vSS8tLy0tLS0rKysrKysrKysrKystLS0vLS8vLy8vMTExMTExMzMzMTMzMzM1NTUzMzMzMzMzMzExMTExMS8vLy8vLy8tKy0tKysrKysrKysrKysrLS0tLy0vLy8vLzExMTExMTMzMzEzMzMzNTU1MzMzMzMzMzMxMTExMTEvLy8vnOc5znOc5znOc5znOc5znOc59ZznPr169evXr169evXr169evXr16znOfWc5znOc5znOc5znOc5znOc5znOc59ZznPr169evXr169evXr169evXr16znOfWc5z/9YD//xAArEAEAAgIDAQABBAICAQUAAAAAAVICYgNRYQRBEEBQUzFCIDARYICQoLD/2gAIAQEAAz8A/wDgmhCEI/nYQj+RhjH5ccflxw44YMe0dtmzZs2bNmzZs2bIsjtiwlxy45/Ljn8se0fwuPbjj8uOPy44YQxR2izZs2bNmzZs2bNkWR2xYS45cc/lhP5Y9/wEQwj8sIRD1s2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNmyLMZYZMZ/KJ/dRDCPywhjCI/LZs2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNkWYywlhP5RP/ABj9hDGGMIh69bNmzZs2bNmzZsmybJsmybJsmybJsmybJsmybJs2bNmzZs2bNmzZ7+mMsZYyj9hDGGMIj9NmzZs2bNmzZs2bJsmybJsmybJs2TZNk2TZNk2bJs2bNmzZs2bNmzZ6iWMsXr16hiwYMGDBgwYo/T169/T162bNmzZs2TZNk2T2ntPae09pSlKUpSlPae09p7T2mybJsmzZs2bNmz17+nr16hiwYOPtx9uPtx9sO2DBih69evXr1s2bNmzZsmybJsmye09p7T2lKUpSlKU9p7T2ntNk2TZNmzZs2bNmz17+vr1s2bNmzZs2bNmzZs2evXr169bNmye09p7SlKUp/wC6UpSlKe09p7etmzZs9evWzZs2bNmzZs2bNmzZs2bPXr1s9bNmye09p7SlKUp/7pSlKUp7T29bPWz169evWzZs2bNmzZs2bNmzZs2bNmzZs2evU9plM/vJhMJ7T29bNnrZ62bNmzZs2bNmzZs2bNmzZs2bNnr39J7TKZ/eTCYT3+nr162bNnrZs2bJsntNk2TZPabNmzZs2etnr39JlM/wUwmP09etmzZs2bNk2TZNk2TZNk2bNmzZs2bNnv6TKZ/gphMfp69etk9p7T2ntKUpSlKUp7T2nt69e/pMpn+GmH/j9PXr1Pae09pSySlklKU9p7T29evf0mUz/DTCY/T16lP/AHSlKU/xUpSlP/dKUpT/ABUpT/8AQllKWTJl0y6ZdMumXTLpl0y6ZJSn+QlKWTJl0y6ZdMumXTLpl0y6ZJSn/sn9xKWXTLpn0z6Z9M+mXTLplVlVlVlVlVlVlVlVlVlVlRlVlVlRlVlVlVlVlVlVlVl0z6Z9M4/DPpn0z6ZdMkp/byll0y6Z9M+mfTPpn0y6ZVZVZVZVZVZVZVZVZUZVZUZVZVZVZVZVZVZVZVZVZVZdM+mfTOPwz6Z9M+mTJlVlVlVl0yZ9M2fTPpn0z6Z9M+mbPpn0z6Z9M2fTPpl0yqyqyqyqyqyomiaJomiaJomiaJomjRo0aNGjRo0aNGjRNE0TRNE0TRNE0TRNE0ZVZVZVZVZVZVZM+mbPpn0z6Z9M+mfTNn0z6Z9M+mfTPpl0y6ZVZVZVTVlVlRNE0TRlRNE0TRNE0TRo0aNGjRo0aNGjRomiaJomiaJomiaJomqaJqyq0TRNE0TRNE0TVNE1TVNU1TRNE1TVNU0TRNE0TRNGjRo0aNGjRhWHFHTgh88Pmj8Pnj/V89HBRwf1w4f64cNMXFSHFTFxUxcVIcP9cOGkOCkPno+ej55/D55cEuKemHUIo0aNGjRo0TRNE0TRNE0TVNE0TVNE1TVNE1TRNU0TRNE0TRNGjRo0aNGjRhWHFHThh88Pnj8Pnq+ejgo4P64cP9cOKkOKkOKmLipi4aYuH+uHBSHBSHz0fPR88/h88uCXFNWHUIo0aNGjRo4ZcU9MOoRRFGjRo0aNGjRo0aNGjRo0RRhVxR04IcGP4cGP+jij/GEMI/xjCP3+M/5xhxT/AJwhwT/o4Mv9XBk4p6YdQiiKNGjRo0aNGjRo0aNGjRoijGsOKOnBi4Mfw4I/0cUf4whhH+MYR+/xn/OMOKf84Q4J/wBHBP8Ar/zxrDCsOKkOKjhq4auGrhq4auGjipDjpDGsI/k8awwrDipDio4aOGrhq4auGrho4qQ46QxrCP8A0bHcMLQ47w4rw4buCzgs4O3A4HA4XA4HA4HA4O3BZwWcN3Fdx3hhaGNoR/Dx3DC0OO8OK8OG7gs4LODtwOBwOFwOBwOBwODtwWcFnDdxXcd4YWhjaEf88UftoQh4y6ZuRyuVzOZzeudz+uf1z+uf1z+uf1z+uf1zuf1z+uf1z+uf1z+udzR25nM5o7c3rlcrlZsniOkSj9tCEPGXTNyuVy+uZzOb1z+uf1z+uf1z+uf1z+uf1z+udz+uf1z+uf1z+uf1z+ueO3O5nM5vXK5XKzZPEdMUftoYsemHTDpx9OPpxVcVXDVw1cNXDVw0cNHDRw0cNHDRw0cNHDRw0cNHDRw0cNHDRw0cNHDVw1cNXFVxVcVXFVx9OPph0w6Yo/bQxY9MOnH04+nH04quKrhq4auGrhq4aOGjho4aOGjho4aOGkOGkOGkOGjho4aOGjho4aOGjhq4auGriq4quKriq4+nH0w6Ydf+wHgcLhcLicTjYdww7hh3DDuGPcMe4Y9ww7hh3DDuGHcONxuJxOFwuBwOB8753z2fPZ89nz3fNd893zXfPd893z3fP/Y+e757uC75/wCyHz/2Q+f+yHBd893z3fPd893z3fPd893zXfNd893z2fPZ8/b5+3zvncDgcLhcLicTjYdww7hh3DDuGHcMe4Ydww7hh3DDuGHcONxuJxOFwuBwPnfO+d89nz2fPZ893zXfPd813z3fPd893z/2Pnu+e7gu+f8Ash8/9kPn/shwXcF3z3fPd893z3fPd893zXfNd893z2fPZ8/b5+3zvncDdu3bt03bt26bpum6bpum6bt27du3bt26bt26bpum6bpum6bpum6bt03TdN26bpum6bpum7dN03TdN03TdN03TdN03Tdum7dum7dN27dum6bpum6bpum6bpum7du3bt03bpu3bpum6bpum6bpum6bpu3TdN03bpum6bpum6bt03TdN03TdN03TdN03TdN03TduysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysmzKzKzKybMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrJT+2lKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSn9tKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpT/wDrA//EAB0RAAMBAAMBAQEAAAAAAAAAAAABERIwQFAgkMD/2gAIAQIBAT8A/COlKioqKioqKi+zSoqKioqL59Ro0aKyvpVlZWaNFXiVGkaNFZWV9CsrNGjRpFXepo0V8c69Zo0u1pGilfVnJWaNF+NFXNUaNFfmU0aReamkaNPzNM19VlZWaKysrK/XrKzTNGjRWaKyv+u0/8QAHREBAQACAQUAAAAAAAAAAAAAEQBAUCAQITCQwP/aAAgBAwEBPwD1NkRER07eYiIiNMRERGARERGgIiNAREZRERoCIjiYBERqiIwiI1REcCIiIiIjbkREREREfXZ//9k=";l();l();var qI=!1;function ub(){return qI}o(ub,"isTestMode");var Yp=class Yp{constructor(t){h(this,"backgroundAlpha",1);h(this,"backgroundColor",new Ot);h(this,"width",0);h(this,"height",0);h(this,"options",{});h(this,"renderer");h(this,"enabledLayers",new Set([0,1]));h(this,"matricesUpdatedThisFrame",!1);h(this,"handleWebGLContextCreationError",o(t=>{var r,n;(n=(r=this.options).onWebGLContextCreationError)==null||n.call(r,t)},"handleWebGLContextCreationError"));h(this,"handleWebGLContextLost",o(t=>{var r,n;(n=(r=this.options).onWebGLContextLost)==null||n.call(r,t)},"handleWebGLContextLost"));h(this,"handleWebGLContextRestored",o(t=>{var r,n;(n=(r=this.options).onWebGLContextRestored)==null||n.call(r,t)},"handleWebGLContextRestored"));var r,n,i,a,u;try{this.options=t,ub()?(this.renderer={setSize:o(()=>{},"setSize"),state:{reset:o(()=>{},"reset")},properties:{get:o(()=>{},"get")},getSize:o(()=>({width:window.innerWidth,height:innerHeight}),"getSize"),getDrawingBufferSize:o(()=>({width:window.innerWidth,height:innerHeight}),"getDrawingBufferSize"),getClearAlpha:o(()=>1,"getClearAlpha"),getClearColor:o(()=>new Ot,"getClearColor"),autoUpdate:!0,shadowMap:{autoUpdate:!0},getContext:o(()=>({getContextAttributes(){return{alpha:!0,antialias:!1,depth:!0,stencil:!1}}}),"getContext"),readRenderTargetPixelsAsync:o(()=>Promise.resolve([]),"readRenderTargetPixelsAsync"),setRenderTarget:o(()=>{},"setRenderTarget"),setClearColor:o(()=>{},"setClearColor"),clear:o(()=>{},"clear"),render:o(()=>{},"render"),clearStencil:o(()=>{},"clearStencil"),clearDepth:o(()=>{},"clearDepth"),domElement:document.createElement("canvas"),capabilities:{isWebGL2:!0}},this.renderer.domElement.style.width="1920px",Object.defineProperty(this.renderer.domElement,"clientWidth",{value:1920}),this.renderer.domElement.style.height="1080px",Object.defineProperty(this.renderer.domElement,"clientHeight",{value:1080})):(this.renderer=new a4({canvas:t.canvas,alpha:t.alpha||!1,stencil:!0,antialias:typeof t.antialias=="boolean"?t.antialias:!0,powerPreference:"high-performance",preserveDrawingBuffer:!0}),this.renderer.localClippingEnabled=!0),this.backgroundColor=new Ot((r=t.backgroundColor)!=null?r:"#ffffff"),this.backgroundAlpha=(n=t.backgroundAlpha)!=null?n:1}catch(s){Se.error(s),t.onWebGLRendererError&&t.onWebGLRendererError(s)}(i=this.domElement())==null||i.addEventListener("webglcontextlost",this.handleWebGLContextLost),(a=this.domElement())==null||a.addEventListener("webglcontextrestored",this.handleWebGLContextRestored),(u=this.domElement())==null||u.addEventListener("webglcontextcreationerror",this.handleWebGLContextCreationError)}destroy(){var t,r,n,i,a;this.renderer&&((r=(t=this.renderer).dispose)==null||r.call(t)),(n=this.domElement())==null||n.removeEventListener("webglcontextlost",this.handleWebGLContextLost),(i=this.domElement())==null||i.removeEventListener("webglcontextrestored",this.handleWebGLContextRestored),(a=this.domElement())==null||a.removeEventListener("webglcontextcreationerror",this.handleWebGLContextCreationError)}startFrame(){this.matricesUpdatedThisFrame=!1}updateMatricesIfNeeded(t){this.matricesUpdatedThisFrame||(t.updateMatrixWorld(),this.matricesUpdatedThisFrame=!0)}renderScene(t,r){this.renderer&&(this.updateMatricesIfNeeded(t),this.renderer.render(t,r))}renderFullScene(t,r){if(this.renderer){this.renderer.state.reset(),this.updateMatricesIfNeeded(t),this.renderer.clearStencil(),this.renderer.setRenderTarget(null),r.layers.disableAll(),this.renderer.autoClear=!1,r.layers.enable(Jt.MASKS),this.renderer.render(t,r),r.layers.disableAll();for(let n of this.enabledLayers.values())r.layers.enable(n);this.renderer.render(t,r),this.renderer.clearDepth(),r.layers.disableAll(),r.layers.enable(Jt.ALWAYS_ON_TOP_PATHS),this.renderer.render(t,r),this.renderer.clearStencil(),this.renderer.state.reset()}}clear(){this.renderer&&(this.renderer.setClearColor(this.backgroundColor,this.backgroundAlpha),this.renderer.clear())}setBufferSize(t,r){y.env.NODE_ENV==="test"||!this.renderer||(this.width=t,this.height=r,this.renderer.setSize(t,r,!1))}setBackgroundColor(t,r){this.backgroundColor=t,this.backgroundAlpha=r}domElement(){var t;return(t=this.renderer)==null?void 0:t.domElement}};o(Yp,"Renderer");var cl=Yp;l();l();var sb='"use strict";(()=>{var Ya=Object.defineProperty,fs=Object.defineProperties;var ps=Object.getOwnPropertyDescriptors;var qa=Object.getOwnPropertySymbols;var gs=Object.prototype.hasOwnProperty,vs=Object.prototype.propertyIsEnumerable;var Mr=(e,r,n)=>r in e?Ya(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,m=(e,r)=>{for(var n in r||(r={}))gs.call(r,n)&&Mr(e,n,r[n]);if(qa)for(var n of qa(r))vs.call(r,n)&&Mr(e,n,r[n]);return e},z=(e,r)=>fs(e,ps(r));var _e=(e,r)=>{for(var n in r)Ya(e,n,{get:r[n],enumerable:!0})};var M=(e,r,n)=>Mr(e,typeof r!="symbol"?r+"":r,n);function Qa(e,r){return r.x+r.w<e.x+e.w&&r.x>e.x&&r.y>e.y&&r.y+r.h<e.y+e.h}function Ha(e,r){let[n,i]=r;return n>=e.x&&n<=e.x+e.w&&i>=e.y&&i<=e.y+e.h}function eu(e,r){let n=r.x,i=r.y,t=r.x+r.w,o=r.y+r.h,u=e.x,s=e.y,c=e.x+e.w,a=e.y+e.h;return n<c&&u<t&&i<a&&s<o}function ue(e,r){for(let n=0;n<r.length;n++)e.push(r[n])}var E=class{constructor(r,n,i,t,o){M(this,"x");M(this,"y");M(this,"w");M(this,"h");M(this,"userData");this.userData=typeof o>"u"?null:o,this.x=r,this.y=n,this.w=i,this.h=t}contains(r){return r===this?!1:Qa(this,r)}intersects(r){return eu(this,r)}intersectsPoint(r){return Ha(this,r)}draw(r){r.fillStyle="rgba(123,222,26, 0.8)",r.fillRect(this.x,this.y,this.w,this.h)}};var Me=class e{constructor(r,n){M(this,"topLeft");M(this,"topRight");M(this,"bottomLeft");M(this,"bottomRight");M(this,"divided",!1);M(this,"boundary");M(this,"capacity",16);M(this,"objects",[]);M(this,"parent");this.parent=n,this.boundary=r}getSize(){return this.divided?this.objects.length+this.topLeft.getSize()+this.topRight.getSize()+this.bottomLeft.getSize()+this.bottomRight.getSize():this.objects.length}subdivide(){let{x:r,y:n,w:i,h:t}=this.boundary;this.topLeft=new e(new E(r,n,i/2,t/2),this),this.topRight=new e(new E(r+i/2,n,i/2,t/2),this),this.bottomLeft=new e(new E(r,n+t/2,i/2,t/2),this),this.bottomRight=new e(new E(r+i/2,n+t/2,i/2,t/2),this),this.divided=!0}queryRect(r){let n=[];if(this.boundary.intersects(r))n.push(...this.objects);else return[];return this.divided&&(ue(n,this.topLeft.queryRect(r)),ue(n,this.topRight.queryRect(r)),ue(n,this.bottomLeft.queryRect(r)),ue(n,this.bottomRight.queryRect(r))),n}queryPoint(r){let n=[];if(this.boundary.intersectsPoint(r))n.push(...this.objects);else return[];return this.divided&&(ue(n,this.topLeft.queryPoint(r)),ue(n,this.topRight.queryPoint(r)),ue(n,this.bottomLeft.queryPoint(r)),ue(n,this.bottomRight.queryPoint(r))),n}insert(r){return(this.parent?!this.boundary.contains(r):!this.boundary.intersects(r))?!1:this.objects.length<this.capacity?(this.objects.push(r),!0):(this.divided||this.subdivide(),(this.topLeft.insert(r)||this.topRight.insert(r)||this.bottomLeft.insert(r)||this.bottomRight.insert(r))===!1&&this.objects.push(r),!0)}drawObjects(r){this.objects.forEach(n=>n.draw(r)),this.divided&&(this.topLeft.drawObjects(r),this.topRight.drawObjects(r),this.bottomLeft.drawObjects(r),this.bottomRight.drawObjects(r))}draw(r){r.rect(this.boundary.x,this.boundary.y,this.boundary.w,this.boundary.h),this.divided&&(this.topLeft.draw(r),this.topRight.draw(r),this.bottomLeft.draw(r),this.bottomRight.draw(r)),r.strokeStyle="black",r.lineWidth=4,r.stroke()}};var Fe={};_e(Fe,{$brand:()=>Pt,$input:()=>so,$output:()=>co,NEVER:()=>Br,TimePrecision:()=>fo,ZodAny:()=>Oc,ZodArray:()=>Zc,ZodBase64:()=>Ua,ZodBase64URL:()=>Na,ZodBigInt:()=>Ot,ZodBigIntFormat:()=>Ta,ZodBoolean:()=>jt,ZodCIDRv4:()=>Oa,ZodCIDRv6:()=>Pa,ZodCUID:()=>xa,ZodCUID2:()=>ka,ZodCatch:()=>Qc,ZodCodec:()=>Ba,ZodCustom:()=>Ar,ZodCustomStringFormat:()=>wt,ZodDate:()=>Dr,ZodDefault:()=>Kc,ZodDiscriminatedUnion:()=>Dc,ZodE164:()=>Za,ZodEmail:()=>ba,ZodEmoji:()=>_a,ZodEnum:()=>zt,ZodError:()=>Bd,ZodFile:()=>Jc,ZodFirstPartyTypeKind:()=>Ka,ZodFunction:()=>us,ZodGUID:()=>Or,ZodIPv4:()=>Sa,ZodIPv6:()=>ja,ZodISODate:()=>wr,ZodISODateTime:()=>Ir,ZodISODuration:()=>jr,ZodISOTime:()=>Sr,ZodIntersection:()=>Tc,ZodIssueCode:()=>rf,ZodJWT:()=>Da,ZodKSUID:()=>wa,ZodLazy:()=>is,ZodLiteral:()=>Fc,ZodMap:()=>Cc,ZodNaN:()=>es,ZodNanoID:()=>ya,ZodNever:()=>Uc,ZodNonOptional:()=>Ja,ZodNull:()=>Sc,ZodNullable:()=>Bc,ZodNumber:()=>St,ZodNumberFormat:()=>Ve,ZodObject:()=>Er,ZodOptional:()=>Fa,ZodPipe:()=>Ma,ZodPrefault:()=>Wc,ZodPromise:()=>as,ZodReadonly:()=>ts,ZodRealError:()=>X,ZodRecord:()=>La,ZodSet:()=>Vc,ZodString:()=>It,ZodStringFormat:()=>A,ZodSuccess:()=>Yc,ZodSymbol:()=>Ic,ZodTemplateLiteral:()=>ns,ZodTransform:()=>Mc,ZodTuple:()=>Ac,ZodType:()=>U,ZodULID:()=>za,ZodURL:()=>Zr,ZodUUID:()=>de,ZodUndefined:()=>wc,ZodUnion:()=>Aa,ZodUnknown:()=>Pc,ZodVoid:()=>Nc,ZodXID:()=>Ia,_ZodString:()=>$a,_default:()=>Gc,_function:()=>Xm,any:()=>Om,array:()=>Tr,base64:()=>mm,base64url:()=>fm,bigint:()=>zm,boolean:()=>zc,catch:()=>Hc,check:()=>qm,cidrv4:()=>lm,cidrv6:()=>dm,clone:()=>K,codec:()=>Km,coerce:()=>Rr,config:()=>L,core:()=>ae,cuid:()=>nm,cuid2:()=>im,custom:()=>Ym,date:()=>Um,decode:()=>sa,decodeAsync:()=>da,discriminatedUnion:()=>Em,e164:()=>pm,email:()=>Gd,emoji:()=>tm,encode:()=>ca,encodeAsync:()=>la,endsWith:()=>vt,enum:()=>Ca,file:()=>Fm,flattenError:()=>He,float32:()=>_m,float64:()=>ym,formatError:()=>et,function:()=>Xm,getErrorMap:()=>of,globalRegistry:()=>oe,gt:()=>se,gte:()=>W,guid:()=>Wd,hash:()=>bm,hex:()=>$m,hostname:()=>hm,httpUrl:()=>em,includes:()=>pt,instanceof:()=>Qm,int:()=>ha,int32:()=>xm,int64:()=>Im,intersection:()=>Ec,ipv4:()=>cm,ipv6:()=>sm,iso:()=>kt,json:()=>ef,jwt:()=>gm,keyof:()=>Nm,ksuid:()=>um,lazy:()=>os,length:()=>Re,literal:()=>Vm,locales:()=>ze,looseObject:()=>Tm,lowercase:()=>mt,lt:()=>ce,lte:()=>H,map:()=>Rm,maxLength:()=>Ae,maxSize:()=>Ee,mime:()=>ht,minLength:()=>$e,minSize:()=>we,multipleOf:()=>Ie,nan:()=>Bm,nanoid:()=>rm,nativeEnum:()=>Cm,negative:()=>Fo,never:()=>Ea,nonnegative:()=>Mo,nonoptional:()=>qc,nonpositive:()=>Jo,normalize:()=>$t,null:()=>jc,nullable:()=>Ur,nullish:()=>Jm,number:()=>kc,object:()=>Zm,optional:()=>Pr,overwrite:()=>le,parse:()=>ia,parseAsync:()=>oa,partialRecord:()=>Am,pipe:()=>Nr,positive:()=>Vo,prefault:()=>Xc,preprocess:()=>tf,prettifyError:()=>rn,promise:()=>Wm,property:()=>Bo,readonly:()=>rs,record:()=>Lc,refine:()=>cs,regex:()=>dt,regexes:()=>Q,registry:()=>ir,safeDecode:()=>fa,safeDecodeAsync:()=>ga,safeEncode:()=>ma,safeEncodeAsync:()=>pa,safeParse:()=>aa,safeParseAsync:()=>ua,set:()=>Lm,setErrorMap:()=>nf,size:()=>lt,startsWith:()=>gt,strictObject:()=>Dm,string:()=>va,stringFormat:()=>vm,stringbool:()=>Hm,success:()=>Mm,superRefine:()=>ss,symbol:()=>Sm,templateLiteral:()=>Gm,toJSONSchema:()=>Qo,toLowerCase:()=>_t,toUpperCase:()=>yt,transform:()=>Va,treeifyError:()=>tn,trim:()=>bt,tuple:()=>Rc,uint32:()=>km,uint64:()=>wm,ulid:()=>om,undefined:()=>jm,union:()=>Ra,unknown:()=>Ce,uppercase:()=>ft,url:()=>Hd,util:()=>_,uuid:()=>Xd,uuidv4:()=>qd,uuidv6:()=>Yd,uuidv7:()=>Qd,void:()=>Pm,xid:()=>am});var ae={};_e(ae,{$ZodAny:()=>Ui,$ZodArray:()=>Ei,$ZodAsyncError:()=>te,$ZodBase64:()=>yi,$ZodBase64URL:()=>xi,$ZodBigInt:()=>Qt,$ZodBigIntFormat:()=>Si,$ZodBoolean:()=>it,$ZodCIDRv4:()=>$i,$ZodCIDRv6:()=>bi,$ZodCUID:()=>ui,$ZodCUID2:()=>ci,$ZodCatch:()=>Hi,$ZodCheck:()=>R,$ZodCheckBigIntFormat:()=>An,$ZodCheckEndsWith:()=>Xn,$ZodCheckGreaterThan:()=>Bt,$ZodCheckIncludes:()=>Gn,$ZodCheckLengthEquals:()=>Jn,$ZodCheckLessThan:()=>Mt,$ZodCheckLowerCase:()=>Bn,$ZodCheckMaxLength:()=>Vn,$ZodCheckMaxSize:()=>Rn,$ZodCheckMimeType:()=>Yn,$ZodCheckMinLength:()=>Fn,$ZodCheckMinSize:()=>Ln,$ZodCheckMultipleOf:()=>Tn,$ZodCheckNumberFormat:()=>En,$ZodCheckOverwrite:()=>Qn,$ZodCheckProperty:()=>qn,$ZodCheckRegex:()=>Mn,$ZodCheckSizeEquals:()=>Cn,$ZodCheckStartsWith:()=>Wn,$ZodCheckStringFormat:()=>De,$ZodCheckUpperCase:()=>Kn,$ZodCodec:()=>ot,$ZodCustom:()=>uo,$ZodCustomStringFormat:()=>Ii,$ZodDate:()=>Ti,$ZodDefault:()=>Xi,$ZodDiscriminatedUnion:()=>Ri,$ZodE164:()=>ki,$ZodEmail:()=>ni,$ZodEmoji:()=>oi,$ZodEncodeError:()=>me,$ZodEnum:()=>Ji,$ZodError:()=>Qe,$ZodFile:()=>Bi,$ZodFunction:()=>io,$ZodGUID:()=>ti,$ZodIPv4:()=>vi,$ZodIPv6:()=>hi,$ZodISODate:()=>fi,$ZodISODateTime:()=>mi,$ZodISODuration:()=>gi,$ZodISOTime:()=>pi,$ZodIntersection:()=>Li,$ZodJWT:()=>zi,$ZodKSUID:()=>di,$ZodLazy:()=>ao,$ZodLiteral:()=>Mi,$ZodMap:()=>Vi,$ZodNaN:()=>eo,$ZodNanoID:()=>ai,$ZodNever:()=>Zi,$ZodNonOptional:()=>Yi,$ZodNull:()=>Pi,$ZodNullable:()=>Wi,$ZodNumber:()=>Yt,$ZodNumberFormat:()=>wi,$ZodObject:()=>wu,$ZodObjectJIT:()=>Ai,$ZodOptional:()=>Gi,$ZodPipe:()=>to,$ZodPrefault:()=>qi,$ZodPromise:()=>oo,$ZodReadonly:()=>ro,$ZodRealError:()=>G,$ZodRecord:()=>Ci,$ZodRegistry:()=>Te,$ZodSet:()=>Fi,$ZodString:()=>ke,$ZodStringFormat:()=>T,$ZodSuccess:()=>Qi,$ZodSymbol:()=>ji,$ZodTemplateLiteral:()=>no,$ZodTransform:()=>Ki,$ZodTuple:()=>er,$ZodType:()=>O,$ZodULID:()=>si,$ZodURL:()=>ii,$ZodUUID:()=>ri,$ZodUndefined:()=>Oi,$ZodUnion:()=>Ht,$ZodUnknown:()=>Ni,$ZodVoid:()=>Di,$ZodXID:()=>li,$brand:()=>Pt,$constructor:()=>d,$input:()=>so,$output:()=>co,Doc:()=>nt,JSONSchema:()=>Ho,JSONSchemaGenerator:()=>xt,NEVER:()=>Br,TimePrecision:()=>fo,_any:()=>Do,_array:()=>Ko,_base64:()=>yr,_base64url:()=>xr,_bigint:()=>So,_boolean:()=>Io,_catch:()=>Rd,_check:()=>_c,_cidrv4:()=>br,_cidrv6:()=>_r,_coercedBigint:()=>jo,_coercedBoolean:()=>wo,_coercedDate:()=>Lo,_coercedNumber:()=>bo,_coercedString:()=>mo,_cuid:()=>mr,_cuid2:()=>fr,_custom:()=>Wo,_date:()=>Ro,_decode:()=>Et,_decodeAsync:()=>Rt,_default:()=>Td,_discriminatedUnion:()=>kd,_e164:()=>kr,_email:()=>or,_emoji:()=>lr,_encode:()=>Tt,_encodeAsync:()=>At,_endsWith:()=>vt,_enum:()=>Od,_file:()=>Go,_float32:()=>yo,_float64:()=>xo,_gt:()=>se,_gte:()=>W,_guid:()=>ct,_includes:()=>pt,_int:()=>_o,_int32:()=>ko,_int64:()=>Oo,_intersection:()=>zd,_ipv4:()=>hr,_ipv6:()=>$r,_isoDate:()=>go,_isoDateTime:()=>po,_isoDuration:()=>ho,_isoTime:()=>vo,_jwt:()=>zr,_ksuid:()=>vr,_lazy:()=>Fd,_length:()=>Re,_literal:()=>Ud,_lowercase:()=>mt,_lt:()=>ce,_lte:()=>H,_map:()=>Sd,_max:()=>H,_maxLength:()=>Ae,_maxSize:()=>Ee,_mime:()=>ht,_min:()=>W,_minLength:()=>$e,_minSize:()=>we,_multipleOf:()=>Ie,_nan:()=>Co,_nanoid:()=>dr,_nativeEnum:()=>Pd,_negative:()=>Fo,_never:()=>Eo,_nonnegative:()=>Mo,_nonoptional:()=>Ed,_nonpositive:()=>Jo,_normalize:()=>$t,_null:()=>Zo,_nullable:()=>Dd,_number:()=>$o,_optional:()=>Zd,_overwrite:()=>le,_parse:()=>Pe,_parseAsync:()=>Ue,_pipe:()=>Ld,_positive:()=>Vo,_promise:()=>Jd,_property:()=>Bo,_readonly:()=>Cd,_record:()=>wd,_refine:()=>Xo,_regex:()=>dt,_safeDecode:()=>Ct,_safeDecodeAsync:()=>Ft,_safeEncode:()=>Lt,_safeEncodeAsync:()=>Vt,_safeParse:()=>Ne,_safeParseAsync:()=>Ze,_set:()=>jd,_size:()=>lt,_startsWith:()=>gt,_string:()=>lo,_stringFormat:()=>Le,_stringbool:()=>Yo,_success:()=>Ad,_superRefine:()=>qo,_symbol:()=>Uo,_templateLiteral:()=>Vd,_toLowerCase:()=>_t,_toUpperCase:()=>yt,_transform:()=>Nd,_trim:()=>bt,_tuple:()=>Id,_uint32:()=>zo,_uint64:()=>Po,_ulid:()=>pr,_undefined:()=>No,_union:()=>xd,_unknown:()=>To,_uppercase:()=>ft,_url:()=>st,_uuid:()=>ar,_uuidv4:()=>ur,_uuidv6:()=>cr,_uuidv7:()=>sr,_void:()=>Ao,_xid:()=>gr,clone:()=>K,config:()=>L,decode:()=>Ms,decodeAsync:()=>Ks,encode:()=>Js,encodeAsync:()=>Bs,flattenError:()=>He,formatError:()=>et,globalConfig:()=>Be,globalRegistry:()=>oe,isValidBase64:()=>_i,isValidBase64URL:()=>xu,isValidJWT:()=>ku,locales:()=>ze,parse:()=>Zt,parseAsync:()=>Dt,prettifyError:()=>rn,regexes:()=>Q,registry:()=>ir,safeDecode:()=>Ws,safeDecodeAsync:()=>qs,safeEncode:()=>Gs,safeEncodeAsync:()=>Xs,safeParse:()=>nn,safeParseAsync:()=>on,toDotPath:()=>ou,toJSONSchema:()=>Qo,treeifyError:()=>tn,util:()=>_,version:()=>Hn});var Br=Object.freeze({status:"aborted"});function d(e,r,n){var s;function i(c,a){var v,f;var l;Object.defineProperty(c,"_zod",{value:(v=c._zod)!=null?v:{},enumerable:!1}),(f=(l=c._zod).traits)!=null||(l.traits=new Set),c._zod.traits.add(e),r(c,a);for(let h in u.prototype)h in c||Object.defineProperty(c,h,{value:u.prototype[h].bind(c)});c._zod.constr=u,c._zod.def=a}let t=(s=n==null?void 0:n.Parent)!=null?s:Object;class o extends t{}Object.defineProperty(o,"name",{value:e});function u(c){var v;var a;let l=n!=null&&n.Parent?new o:this;i(l,c),(v=(a=l._zod).deferred)!=null||(a.deferred=[]);for(let f of l._zod.deferred)f();return l}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:c=>{var a,l;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(l=(a=c==null?void 0:c._zod)==null?void 0:a.traits)==null?void 0:l.has(e)}}),Object.defineProperty(u,"name",{value:e}),u}var Pt=Symbol("zod_brand"),te=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},me=class extends Error{constructor(r){super("Encountered unidirectional transform during encode: ".concat(r)),this.name="ZodEncodeError"}},Be={};function L(e){return e&&Object.assign(Be,e),Be}var _={};_e(_,{BIGINT_FORMAT_RANGES:()=>en,Class:()=>Gr,NUMBER_FORMAT_RANGES:()=>Hr,aborted:()=>he,allowsEval:()=>Xr,assert:()=>ys,assertEqual:()=>hs,assertIs:()=>bs,assertNever:()=>_s,assertNotEqual:()=>$s,assignProp:()=>pe,base64ToUint8Array:()=>ru,base64urlToUint8Array:()=>Rs,cached:()=>je,captureStackTrace:()=>Nt,cleanEnum:()=>As,cleanRegex:()=>We,clone:()=>K,cloneDef:()=>ks,createTransparentProxy:()=>Os,defineLazy:()=>Z,esc:()=>Ut,escapeRegex:()=>ie,extend:()=>Ns,finalizeIssue:()=>Y,floatSafeRemainder:()=>Wr,getElementAtPath:()=>zs,getEnumValues:()=>Ge,getLengthableOrigin:()=>Ye,getParsedType:()=>js,getSizableOrigin:()=>qe,hexToUint8Array:()=>Cs,isObject:()=>ye,isPlainObject:()=>ve,issue:()=>Oe,joinValues:()=>p,jsonStringifyReplacer:()=>Se,merge:()=>Ds,mergeDefs:()=>ge,normalizeParams:()=>y,nullish:()=>fe,numKeys:()=>Ss,objectClone:()=>xs,omit:()=>Us,optionalKeys:()=>Qr,partial:()=>Ts,pick:()=>Ps,prefixIssues:()=>q,primitiveTypes:()=>Yr,promiseAllObject:()=>Is,propertyKeyTypes:()=>Xe,randomString:()=>ws,required:()=>Es,safeExtend:()=>Zs,shallowClone:()=>qr,stringifyPrimitive:()=>b,uint8ArrayToBase64:()=>nu,uint8ArrayToBase64url:()=>Ls,uint8ArrayToHex:()=>Vs,unwrapMessage:()=>Ke});function hs(e){return e}function $s(e){return e}function bs(e){}function _s(e){throw new Error}function ys(e){}function Ge(e){let r=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>r.indexOf(+i)===-1).map(([i,t])=>t)}function p(e,r="|"){return e.map(n=>b(n)).join(r)}function Se(e,r){return typeof r=="bigint"?r.toString():r}function je(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function fe(e){return e==null}function We(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Wr(e,r){let n=(e.toString().split(".")[1]||"").length,i=r.toString(),t=(i.split(".")[1]||"").length;if(t===0&&/\\d?e-\\d?/.test(i)){let c=i.match(/\\d?e-(\\d?)/);c!=null&&c[1]&&(t=Number.parseInt(c[1]))}let o=n>t?n:t,u=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(r.toFixed(o).replace(".",""));return u%s/10**o}var tu=Symbol("evaluating");function Z(e,r,n){let i;Object.defineProperty(e,r,{get(){if(i!==tu)return i===void 0&&(i=tu,i=n()),i},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function xs(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function pe(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ge(...e){let r={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(r,i)}return Object.defineProperties({},r)}function ks(e){return ge(e._zod.def)}function zs(e,r){return r?r.reduce((n,i)=>n==null?void 0:n[i],e):e}function Is(e){let r=Object.keys(e),n=r.map(i=>e[i]);return Promise.all(n).then(i=>{let t={};for(let o=0;o<r.length;o++)t[r[o]]=i[o];return t})}function ws(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=r[Math.floor(Math.random()*r.length)];return n}function Ut(e){return JSON.stringify(e)}var Nt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ye(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xr=je(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let r=Function;return new r(""),!0}catch(r){return!1}});function ve(e){if(ye(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;let n=r.prototype;return!(ye(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function qr(e){return ve(e)?m({},e):Array.isArray(e)?[...e]:e}function Ss(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var js=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error("Unknown data type: ".concat(r))}},Xe=new Set(["string","number","symbol"]),Yr=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ie(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function K(e,r,n){let i=new e._zod.constr(r!=null?r:e._zod.def);return(!r||n!=null&&n.parent)&&(i._zod.parent=e),i}function y(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if((r==null?void 0:r.message)!==void 0){if((r==null?void 0:r.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?z(m({},r),{error:()=>r.error}):r}function Os(e){let r;return new Proxy({},{get(n,i,t){return r!=null||(r=e()),Reflect.get(r,i,t)},set(n,i,t,o){return r!=null||(r=e()),Reflect.set(r,i,t,o)},has(n,i){return r!=null||(r=e()),Reflect.has(r,i)},deleteProperty(n,i){return r!=null||(r=e()),Reflect.deleteProperty(r,i)},ownKeys(n){return r!=null||(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,i){return r!=null||(r=e()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(n,i,t){return r!=null||(r=e()),Reflect.defineProperty(r,i,t)}})}function b(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?\'"\'.concat(e,\'"\'):"".concat(e)}function Qr(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Hr={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},en={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ps(e,r){let n=e._zod.def,i=ge(e._zod.def,{get shape(){let t={};for(let o in r){if(!(o in n.shape))throw new Error(\'Unrecognized key: "\'.concat(o,\'"\'));r[o]&&(t[o]=n.shape[o])}return pe(this,"shape",t),t},checks:[]});return K(e,i)}function Us(e,r){let n=e._zod.def,i=ge(e._zod.def,{get shape(){let t=m({},e._zod.def.shape);for(let o in r){if(!(o in n.shape))throw new Error(\'Unrecognized key: "\'.concat(o,\'"\'));r[o]&&delete t[o]}return pe(this,"shape",t),t},checks:[]});return K(e,i)}function Ns(e,r){if(!ve(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let t=ge(e._zod.def,{get shape(){let o=m(m({},e._zod.def.shape),r);return pe(this,"shape",o),o},checks:[]});return K(e,t)}function Zs(e,r){if(!ve(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=z(m({},e._zod.def),{get shape(){let i=m(m({},e._zod.def.shape),r);return pe(this,"shape",i),i},checks:e._zod.def.checks});return K(e,n)}function Ds(e,r){let n=ge(e._zod.def,{get shape(){let i=m(m({},e._zod.def.shape),r._zod.def.shape);return pe(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:[]});return K(e,n)}function Ts(e,r,n){let i=ge(r._zod.def,{get shape(){let t=r._zod.def.shape,o=m({},t);if(n)for(let u in n){if(!(u in t))throw new Error(\'Unrecognized key: "\'.concat(u,\'"\'));n[u]&&(o[u]=e?new e({type:"optional",innerType:t[u]}):t[u])}else for(let u in t)o[u]=e?new e({type:"optional",innerType:t[u]}):t[u];return pe(this,"shape",o),o},checks:[]});return K(r,i)}function Es(e,r,n){let i=ge(r._zod.def,{get shape(){let t=r._zod.def.shape,o=m({},t);if(n)for(let u in n){if(!(u in o))throw new Error(\'Unrecognized key: "\'.concat(u,\'"\'));n[u]&&(o[u]=new e({type:"nonoptional",innerType:t[u]}))}else for(let u in t)o[u]=new e({type:"nonoptional",innerType:t[u]});return pe(this,"shape",o),o},checks:[]});return K(r,i)}function he(e,r=0){var n;if(e.aborted===!0)return!0;for(let i=r;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function q(e,r){return r.map(n=>{var t;var i;return(t=(i=n).path)!=null||(i.path=[]),n.path.unshift(e),n})}function Ke(e){return typeof e=="string"?e:e==null?void 0:e.message}function Y(e,r,n){var t,o,u,s,c,a,l,v,f,h,x;let i=z(m({},e),{path:(t=e.path)!=null?t:[]});if(!e.message){let S=(x=(h=(v=(a=Ke((s=(u=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:u.error)==null?void 0:s.call(u,e)))!=null?a:Ke((c=r==null?void 0:r.error)==null?void 0:c.call(r,e)))!=null?v:Ke((l=n.customError)==null?void 0:l.call(n,e)))!=null?h:Ke((f=n.localeError)==null?void 0:f.call(n,e)))!=null?x:"Invalid input";i.message=S}return delete i.inst,delete i.continue,r!=null&&r.reportInput||delete i.input,i}function qe(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ye(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Oe(...e){let[r,n,i]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:i}:m({},r)}function As(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function ru(e){let r=atob(e),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n}function nu(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function Rs(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return ru(r+n)}function Ls(e){return nu(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function Cs(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let i=0;i<r.length;i+=2)n[i/2]=Number.parseInt(r.slice(i,i+2),16);return n}function Vs(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Gr=class{constructor(...r){}};var iu=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Se,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Qe=d("$ZodError",iu),G=d("$ZodError",iu,{Parent:Error});function He(e,r=n=>n.message){let n={},i=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):i.push(r(t));return{formErrors:i,fieldErrors:n}}function et(e,r=n=>n.message){let n={_errors:[]},i=t=>{for(let o of t.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(u=>i({issues:u}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else{let u=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(r(o))):u[c]=u[c]||{_errors:[]},u=u[c],s++}}};return i(e),n}function tn(e,r=n=>n.message){let n={errors:[]},i=(t,o=[])=>{var c,a,l,v;var u,s;for(let f of t.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(h=>i({issues:h},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{let h=[...o,...f.path];if(h.length===0){n.errors.push(r(f));continue}let x=n,S=0;for(;S<h.length;){let I=h[S],C=S===h.length-1;typeof I=="string"?((c=x.properties)!=null||(x.properties={}),(a=(u=x.properties)[I])!=null||(u[I]={errors:[]}),x=x.properties[I]):((l=x.items)!=null||(x.items=[]),(v=(s=x.items)[I])!=null||(s[I]={errors:[]}),x=x.items[I]),C&&x.errors.push(r(f)),S++}}};return i(e),n}function ou(e){let r=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?r.push("[".concat(i,"]")):typeof i=="symbol"?r.push("[".concat(JSON.stringify(String(i)),"]")):/[^\\w$]/.test(i)?r.push("[".concat(JSON.stringify(i),"]")):(r.length&&r.push("."),r.push(i));return r.join("")}function rn(e){var i;let r=[],n=[...e.issues].sort((t,o)=>{var u,s;return((u=t.path)!=null?u:[]).length-((s=o.path)!=null?s:[]).length});for(let t of n)r.push("\\u2716 ".concat(t.message)),(i=t.path)!=null&&i.length&&r.push(" \\u2192 at ".concat(ou(t.path)));return r.join("\\n")}var Pe=e=>(r,n,i,t)=>{var s;let o=i?Object.assign(i,{async:!1}):{async:!1},u=r._zod.run({value:n,issues:[]},o);if(u instanceof Promise)throw new te;if(u.issues.length){let c=new((s=t==null?void 0:t.Err)!=null?s:e)(u.issues.map(a=>Y(a,o,L())));throw Nt(c,t==null?void 0:t.callee),c}return u.value},Zt=Pe(G),Ue=e=>async(r,n,i,t)=>{var s;let o=i?Object.assign(i,{async:!0}):{async:!0},u=r._zod.run({value:n,issues:[]},o);if(u instanceof Promise&&(u=await u),u.issues.length){let c=new((s=t==null?void 0:t.Err)!=null?s:e)(u.issues.map(a=>Y(a,o,L())));throw Nt(c,t==null?void 0:t.callee),c}return u.value},Dt=Ue(G),Ne=e=>(r,n,i)=>{let t=i?z(m({},i),{async:!1}):{async:!1},o=r._zod.run({value:n,issues:[]},t);if(o instanceof Promise)throw new te;return o.issues.length?{success:!1,error:new(e!=null?e:Qe)(o.issues.map(u=>Y(u,t,L())))}:{success:!0,data:o.value}},nn=Ne(G),Ze=e=>async(r,n,i)=>{let t=i?Object.assign(i,{async:!0}):{async:!0},o=r._zod.run({value:n,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(u=>Y(u,t,L())))}:{success:!0,data:o.value}},on=Ze(G),Tt=e=>(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Pe(e)(r,n,t)},Js=Tt(G),Et=e=>(r,n,i)=>Pe(e)(r,n,i),Ms=Et(G),At=e=>async(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ue(e)(r,n,t)},Bs=At(G),Rt=e=>async(r,n,i)=>Ue(e)(r,n,i),Ks=Rt(G),Lt=e=>(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ne(e)(r,n,t)},Gs=Lt(G),Ct=e=>(r,n,i)=>Ne(e)(r,n,i),Ws=Ct(G),Vt=e=>async(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ze(e)(r,n,t)},Xs=Vt(G),Ft=e=>async(r,n,i)=>Ze(e)(r,n,i),qs=Ft(G);var Q={};_e(Q,{base64:()=>_n,base64url:()=>Jt,bigint:()=>Sn,boolean:()=>Pn,browserEmail:()=>il,cidrv4:()=>$n,cidrv6:()=>bn,cuid:()=>an,cuid2:()=>un,date:()=>kn,datetime:()=>In,domain:()=>al,duration:()=>mn,e164:()=>xn,email:()=>pn,emoji:()=>gn,extendedDuration:()=>Ys,guid:()=>fn,hex:()=>ul,hostname:()=>yn,html5Email:()=>tl,idnEmail:()=>nl,integer:()=>jn,ipv4:()=>vn,ipv6:()=>hn,ksuid:()=>ln,lowercase:()=>Zn,md5_base64:()=>sl,md5_base64url:()=>ll,md5_hex:()=>cl,nanoid:()=>dn,null:()=>Un,number:()=>On,rfc5322Email:()=>rl,sha1_base64:()=>ml,sha1_base64url:()=>fl,sha1_hex:()=>dl,sha256_base64:()=>gl,sha256_base64url:()=>vl,sha256_hex:()=>pl,sha384_base64:()=>$l,sha384_base64url:()=>bl,sha384_hex:()=>hl,sha512_base64:()=>yl,sha512_base64url:()=>xl,sha512_hex:()=>_l,string:()=>wn,time:()=>zn,ulid:()=>cn,undefined:()=>Nn,unicodeEmail:()=>au,uppercase:()=>Dn,uuid:()=>xe,uuid4:()=>Qs,uuid6:()=>Hs,uuid7:()=>el,xid:()=>sn});var an=/^[cC][^\\s-]{8,}$/,un=/^[0-9a-z]+$/,cn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sn=/^[0-9a-vA-V]{20}$/,ln=/^[A-Za-z0-9]{27}$/,dn=/^[a-zA-Z0-9_-]{21}$/,mn=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Ys=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,fn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,xe=e=>e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(e,"[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$")):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Qs=xe(4),Hs=xe(6),el=xe(7),pn=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,tl=/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rl=/^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,au=new RegExp(\'^[^\\\\s@"]{1,64}@[^\\\\s@]{1,255}$\',"u"),nl=au,il=/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ol="^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$";function gn(){return new RegExp(ol,"u")}var vn=/^(?:(?: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])$/,hn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$n=/^((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])\\/([0-9]|[1-2][0-9]|3[0-2])$/,bn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_n=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jt=/^[A-Za-z0-9_-]*$/,yn=/^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/,al=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,xn=/^\\+(?:[0-9]){6,14}[0-9]$/,uu="(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))",kn=new RegExp("^".concat(uu,"$"));function cu(e){let r="(?:[01]\\\\d|2[0-3]):[0-5]\\\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(r):e.precision===0?"".concat(r,":[0-5]\\\\d"):"".concat(r,":[0-5]\\\\d\\\\.\\\\d{").concat(e.precision,"}"):"".concat(r,"(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?")}function zn(e){return new RegExp("^".concat(cu(e),"$"))}function In(e){let r=cu({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");let i="".concat(r,"(?:").concat(n.join("|"),")");return new RegExp("^".concat(uu,"T(?:").concat(i,")$"))}var wn=e=>{var n,i;let r=e?"[\\\\s\\\\S]{".concat((n=e==null?void 0:e.minimum)!=null?n:0,",").concat((i=e==null?void 0:e.maximum)!=null?i:"","}"):"[\\\\s\\\\S]*";return new RegExp("^".concat(r,"$"))},Sn=/^-?\\d+n?$/,jn=/^-?\\d+$/,On=/^-?\\d+(?:\\.\\d+)?/,Pn=/^(?:true|false)$/i,Un=/^null$/i;var Nn=/^undefined$/i;var Zn=/^[^A-Z]*$/,Dn=/^[^a-z]*$/,ul=/^[0-9a-fA-F]*$/;function tt(e,r){return new RegExp("^[A-Za-z0-9+/]{".concat(e,"}").concat(r,"$"))}function rt(e){return new RegExp("^[A-Za-z0-9_-]{".concat(e,"}$"))}var cl=/^[0-9a-fA-F]{32}$/,sl=tt(22,"=="),ll=rt(22),dl=/^[0-9a-fA-F]{40}$/,ml=tt(27,"="),fl=rt(27),pl=/^[0-9a-fA-F]{64}$/,gl=tt(43,"="),vl=rt(43),hl=/^[0-9a-fA-F]{96}$/,$l=tt(64,""),bl=rt(64),_l=/^[0-9a-fA-F]{128}$/,yl=tt(86,"=="),xl=rt(86);var R=d("$ZodCheck",(e,r)=>{var i,t;var n;(i=e._zod)!=null||(e._zod={}),e._zod.def=r,(t=(n=e._zod).onattach)!=null||(n.onattach=[])}),lu={number:"number",bigint:"bigint",object:"date"},Mt=d("$ZodCheckLessThan",(e,r)=>{R.init(e,r);let n=lu[typeof r.value];e._zod.onattach.push(i=>{var u;let t=i._zod.bag,o=(u=r.inclusive?t.maximum:t.exclusiveMaximum)!=null?u:Number.POSITIVE_INFINITY;r.value<o&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:n,code:"too_big",maximum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Bt=d("$ZodCheckGreaterThan",(e,r)=>{R.init(e,r);let n=lu[typeof r.value];e._zod.onattach.push(i=>{var u;let t=i._zod.bag,o=(u=r.inclusive?t.minimum:t.exclusiveMinimum)!=null?u:Number.NEGATIVE_INFINITY;r.value>o&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:n,code:"too_small",minimum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Tn=d("$ZodCheckMultipleOf",(e,r)=>{R.init(e,r),e._zod.onattach.push(n=>{var t;var i;(t=(i=n._zod.bag).multipleOf)!=null||(i.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Wr(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),En=d("$ZodCheckNumberFormat",(e,r)=>{var u;R.init(e,r),r.format=r.format||"float64";let n=(u=r.format)==null?void 0:u.includes("int"),i=n?"int":"number",[t,o]=Hr[r.format];e._zod.onattach.push(s=>{let c=s._zod.bag;c.format=r.format,c.minimum=t,c.maximum=o,n&&(c.pattern=jn)}),e._zod.check=s=>{let c=s.value;if(n){if(!Number.isInteger(c)){s.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort});return}}c<t&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),c>o&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:o,inst:e})}}),An=d("$ZodCheckBigIntFormat",(e,r)=>{R.init(e,r);let[n,i]=en[r.format];e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,o.minimum=n,o.maximum=i}),e._zod.check=t=>{let o=t.value;o<n&&t.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),o>i&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),Rn=d("$ZodCheckMaxSize",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.size!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.maximum)!=null?u:Number.POSITIVE_INFINITY;r.maximum<o&&(t._zod.bag.maximum=r.maximum)}),e._zod.check=t=>{let o=t.value;o.size<=r.maximum||t.issues.push({origin:qe(o),code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Ln=d("$ZodCheckMinSize",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.size!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.minimum)!=null?u:Number.NEGATIVE_INFINITY;r.minimum>o&&(t._zod.bag.minimum=r.minimum)}),e._zod.check=t=>{let o=t.value;o.size>=r.minimum||t.issues.push({origin:qe(o),code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Cn=d("$ZodCheckSizeEquals",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.size!==void 0}),e._zod.onattach.push(t=>{let o=t._zod.bag;o.minimum=r.size,o.maximum=r.size,o.size=r.size}),e._zod.check=t=>{let o=t.value,u=o.size;if(u===r.size)return;let s=u>r.size;t.issues.push(z(m({origin:qe(o)},s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size}),{inclusive:!0,exact:!0,input:t.value,inst:e,continue:!r.abort}))}}),Vn=d("$ZodCheckMaxLength",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.length!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.maximum)!=null?u:Number.POSITIVE_INFINITY;r.maximum<o&&(t._zod.bag.maximum=r.maximum)}),e._zod.check=t=>{let o=t.value;if(o.length<=r.maximum)return;let s=Ye(o);t.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Fn=d("$ZodCheckMinLength",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.length!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.minimum)!=null?u:Number.NEGATIVE_INFINITY;r.minimum>o&&(t._zod.bag.minimum=r.minimum)}),e._zod.check=t=>{let o=t.value;if(o.length>=r.minimum)return;let s=Ye(o);t.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Jn=d("$ZodCheckLengthEquals",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.length!==void 0}),e._zod.onattach.push(t=>{let o=t._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length}),e._zod.check=t=>{let o=t.value,u=o.length;if(u===r.length)return;let s=Ye(o),c=u>r.length;t.issues.push(z(m({origin:s},c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}),{inclusive:!0,exact:!0,input:t.value,inst:e,continue:!r.abort}))}}),De=d("$ZodCheckStringFormat",(e,r)=>{var t,o;var n,i;R.init(e,r),e._zod.onattach.push(u=>{var c;let s=u._zod.bag;s.format=r.format,r.pattern&&((c=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(r.pattern))}),r.pattern?(t=(n=e._zod).check)!=null||(n.check=u=>{r.pattern.lastIndex=0,!r.pattern.test(u.value)&&u.issues.push(z(m({origin:"string",code:"invalid_format",format:r.format,input:u.value},r.pattern?{pattern:r.pattern.toString()}:{}),{inst:e,continue:!r.abort}))}):(o=(i=e._zod).check)!=null||(i.check=()=>{})}),Mn=d("$ZodCheckRegex",(e,r)=>{De.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Bn=d("$ZodCheckLowerCase",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=Zn),De.init(e,r)}),Kn=d("$ZodCheckUpperCase",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=Dn),De.init(e,r)}),Gn=d("$ZodCheckIncludes",(e,r)=>{R.init(e,r);let n=ie(r.includes),i=new RegExp(typeof r.position=="number"?"^.{".concat(r.position,"}").concat(n):n);r.pattern=i,e._zod.onattach.push(t=>{var u;let o=t._zod.bag;(u=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Wn=d("$ZodCheckStartsWith",(e,r)=>{var i;R.init(e,r);let n=new RegExp("^".concat(ie(r.prefix),".*"));(i=r.pattern)!=null||(r.pattern=n),e._zod.onattach.push(t=>{var u;let o=t._zod.bag;(u=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=t=>{t.value.startsWith(r.prefix)||t.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:t.value,inst:e,continue:!r.abort})}}),Xn=d("$ZodCheckEndsWith",(e,r)=>{var i;R.init(e,r);let n=new RegExp(".*".concat(ie(r.suffix),"$"));(i=r.pattern)!=null||(r.pattern=n),e._zod.onattach.push(t=>{var u;let o=t._zod.bag;(u=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=t=>{t.value.endsWith(r.suffix)||t.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:t.value,inst:e,continue:!r.abort})}});function su(e,r,n){e.issues.length&&r.issues.push(...q(n,e.issues))}var qn=d("$ZodCheckProperty",(e,r)=>{R.init(e,r),e._zod.check=n=>{let i=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>su(t,n,r.property));su(i,n,r.property)}}),Yn=d("$ZodCheckMimeType",(e,r)=>{R.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:e,continue:!r.abort})}}),Qn=d("$ZodCheckOverwrite",(e,r)=>{R.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var nt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split("\\n").filter(u=>u),t=Math.min(...i.map(u=>u.length-u.trimStart().length)),o=i.map(u=>u.slice(t)).map(u=>" ".repeat(this.indent*2)+u);for(let u of o)this.content.push(u)}compile(){var o;let r=Function,n=this==null?void 0:this.args,t=[...((o=this==null?void 0:this.content)!=null?o:[""]).map(u=>" ".concat(u))];return new r(...n,t.join("\\n"))}};var Hn={major:4,minor:1,patch:12};var O=d("$ZodType",(e,r)=>{var t,o,u;var n;e!=null||(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Hn;let i=[...(t=e._zod.def.checks)!=null?t:[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let s of i)for(let c of s._zod.onattach)c(e);if(i.length===0)(o=(n=e._zod).deferred)!=null||(n.deferred=[]),(u=e._zod.deferred)==null||u.push(()=>{e._zod.run=e._zod.parse});else{let s=(a,l,v)=>{let f=he(a),h;for(let x of l){if(x._zod.def.when){if(!x._zod.def.when(a))continue}else if(f)continue;let S=a.issues.length,I=x._zod.check(a);if(I instanceof Promise&&(v==null?void 0:v.async)===!1)throw new te;if(h||I instanceof Promise)h=(h!=null?h:Promise.resolve()).then(async()=>{await I,a.issues.length!==S&&(f||(f=he(a,S)))});else{if(a.issues.length===S)continue;f||(f=he(a,S))}}return h?h.then(()=>a):a},c=(a,l,v)=>{if(he(a))return a.aborted=!0,a;let f=s(l,i,v);if(f instanceof Promise){if(v.async===!1)throw new te;return f.then(h=>e._zod.parse(h,v))}return e._zod.parse(f,v)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let f=e._zod.parse({value:a.value,issues:[]},z(m({},l),{skipChecks:!0}));return f instanceof Promise?f.then(h=>c(h,a,l)):c(f,a,l)}let v=e._zod.parse(a,l);if(v instanceof Promise){if(l.async===!1)throw new te;return v.then(f=>s(f,i,l))}return s(v,i,l)}}e["~standard"]={validate:s=>{var c;try{let a=nn(e,s);return a.success?{value:a.data}:{issues:(c=a.error)==null?void 0:c.issues}}catch(a){return on(e,s).then(l=>{var v;return l.success?{value:l.data}:{issues:(v=l.error)==null?void 0:v.issues}})}},vendor:"zod",version:1}}),ke=d("$ZodString",(e,r)=>{var n,i,t;O.init(e,r),e._zod.pattern=(t=[...(i=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?i:[]].pop())!=null?t:wn(e._zod.bag),e._zod.parse=(o,u)=>{if(r.coerce)try{o.value=String(o.value)}catch(s){}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),T=d("$ZodStringFormat",(e,r)=>{De.init(e,r),ke.init(e,r)}),ti=d("$ZodGUID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=fn),T.init(e,r)}),ri=d("$ZodUUID",(e,r)=>{var n,i;if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(\'Invalid UUID version: "\'.concat(r.version,\'"\'));(n=r.pattern)!=null||(r.pattern=xe(o))}else(i=r.pattern)!=null||(r.pattern=xe());T.init(e,r)}),ni=d("$ZodEmail",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=pn),T.init(e,r)}),ii=d("$ZodURL",(e,r)=>{T.init(e,r),e._zod.check=n=>{try{let i=n.value.trim(),t=new URL(i);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:yn.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=i;return}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),oi=d("$ZodEmoji",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=gn()),T.init(e,r)}),ai=d("$ZodNanoID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=dn),T.init(e,r)}),ui=d("$ZodCUID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=an),T.init(e,r)}),ci=d("$ZodCUID2",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=un),T.init(e,r)}),si=d("$ZodULID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=cn),T.init(e,r)}),li=d("$ZodXID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=sn),T.init(e,r)}),di=d("$ZodKSUID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=ln),T.init(e,r)}),mi=d("$ZodISODateTime",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=In(r)),T.init(e,r)}),fi=d("$ZodISODate",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=kn),T.init(e,r)}),pi=d("$ZodISOTime",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=zn(r)),T.init(e,r)}),gi=d("$ZodISODuration",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=mn),T.init(e,r)}),vi=d("$ZodIPv4",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=vn),T.init(e,r),e._zod.onattach.push(i=>{let t=i._zod.bag;t.format="ipv4"})}),hi=d("$ZodIPv6",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=hn),T.init(e,r),e._zod.onattach.push(i=>{let t=i._zod.bag;t.format="ipv6"}),e._zod.check=i=>{try{new URL("http://[".concat(i.value,"]"))}catch(t){i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!r.abort})}}}),$i=d("$ZodCIDRv4",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=$n),T.init(e,r)}),bi=d("$ZodCIDRv6",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=bn),T.init(e,r),e._zod.check=i=>{let t=i.value.split("/");try{if(t.length!==2)throw new Error;let[o,u]=t;if(!u)throw new Error;let s=Number(u);if("".concat(s)!==u)throw new Error;if(s<0||s>128)throw new Error;new URL("http://[".concat(o,"]"))}catch(o){i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!r.abort})}}});function _i(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(r){return!1}}var yi=d("$ZodBase64",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=_n),T.init(e,r),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64"}),e._zod.check=i=>{_i(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!r.abort})}});function xu(e){if(!Jt.test(e))return!1;let r=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return _i(n)}var xi=d("$ZodBase64URL",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=Jt),T.init(e,r),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64url"}),e._zod.check=i=>{xu(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!r.abort})}}),ki=d("$ZodE164",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=xn),T.init(e,r)});function ku(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let t=JSON.parse(atob(i));return!("typ"in t&&(t==null?void 0:t.typ)!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch(n){return!1}}var zi=d("$ZodJWT",(e,r)=>{T.init(e,r),e._zod.check=n=>{ku(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),Ii=d("$ZodCustomStringFormat",(e,r)=>{T.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),Yt=d("$ZodNumber",(e,r)=>{var n;O.init(e,r),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:On,e._zod.parse=(i,t)=>{if(r.coerce)try{i.value=Number(i.value)}catch(s){}let o=i.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return i;let u=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return i.issues.push(m({expected:"number",code:"invalid_type",input:o,inst:e},u?{received:u}:{})),i}}),wi=d("$ZodNumber",(e,r)=>{En.init(e,r),Yt.init(e,r)}),it=d("$ZodBoolean",(e,r)=>{O.init(e,r),e._zod.pattern=Pn,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=!!n.value}catch(o){}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),Qt=d("$ZodBigInt",(e,r)=>{O.init(e,r),e._zod.pattern=Sn,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch(t){}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Si=d("$ZodBigInt",(e,r)=>{An.init(e,r),Qt.init(e,r)}),ji=d("$ZodSymbol",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),Oi=d("$ZodUndefined",(e,r)=>{O.init(e,r),e._zod.pattern=Nn,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),Pi=d("$ZodNull",(e,r)=>{O.init(e,r),e._zod.pattern=Un,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),Ui=d("$ZodAny",(e,r)=>{O.init(e,r),e._zod.parse=n=>n}),Ni=d("$ZodUnknown",(e,r)=>{O.init(e,r),e._zod.parse=n=>n}),Zi=d("$ZodNever",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Di=d("$ZodVoid",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),Ti=d("$ZodDate",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=new Date(n.value)}catch(s){}let t=n.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||n.issues.push(z(m({expected:"date",code:"invalid_type",input:t},o?{received:"Invalid Date"}:{}),{inst:e})),n}});function mu(e,r,n){e.issues.length&&r.issues.push(...q(n,e.issues)),r.value[n]=e.value}var Ei=d("$ZodArray",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let o=[];for(let u=0;u<t.length;u++){let s=t[u],c=r.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(a=>mu(a,n,u))):mu(c,n,u)}return o.length?Promise.all(o).then(()=>n):n}});function qt(e,r,n,i){e.issues.length&&r.issues.push(...q(n,e.issues)),e.value===void 0?n in i&&(r.value[n]=void 0):r.value[n]=e.value}function zu(e){var i,t,o,u;let r=Object.keys(e.shape);for(let s of r)if(!((u=(o=(t=(i=e.shape)==null?void 0:i[s])==null?void 0:t._zod)==null?void 0:o.traits)!=null&&u.has("$ZodType")))throw new Error(\'Invalid element at key "\'.concat(s,\'": expected a Zod schema\'));let n=Qr(e.shape);return z(m({},e),{keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)})}function Iu(e,r,n,i,t,o){let u=[],s=t.keySet,c=t.catchall._zod,a=c.def.type;for(let l of Object.keys(r)){if(s.has(l))continue;if(a==="never"){u.push(l);continue}let v=c.run({value:r[l],issues:[]},i);v instanceof Promise?e.push(v.then(f=>qt(f,n,l,r))):qt(v,n,l,r)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:r,inst:o}),e.length?Promise.all(e).then(()=>n):n}var wu=d("$ZodObject",(e,r)=>{O.init(e,r);let n=Object.getOwnPropertyDescriptor(r,"shape");if(!(n!=null&&n.get)){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let c=m({},s);return Object.defineProperty(r,"shape",{value:c}),c}})}let i=je(()=>zu(r));Z(e._zod,"propValues",()=>{var a;let s=r.shape,c={};for(let l in s){let v=s[l]._zod;if(v.values){(a=c[l])!=null||(c[l]=new Set);for(let f of v.values)c[l].add(f)}}return c});let t=ye,o=r.catchall,u;e._zod.parse=(s,c)=>{u!=null||(u=i.value);let a=s.value;if(!t(a))return s.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),s;s.value={};let l=[],v=u.shape;for(let f of u.keys){let x=v[f]._zod.run({value:a[f],issues:[]},c);x instanceof Promise?l.push(x.then(S=>qt(S,s,f,a))):qt(x,s,f,a)}return o?Iu(l,a,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Ai=d("$ZodObjectJIT",(e,r)=>{wu.init(e,r);let n=e._zod.parse,i=je(()=>zu(r)),t=f=>{let h=new nt(["shape","payload","ctx"]),x=i.value,S=g=>{let $=Ut(g);return"shape[".concat($,"]._zod.run({ value: input[").concat($,"], issues: [] }, ctx)")};h.write("const input = payload.value;");let I=Object.create(null),C=0;for(let g of x.keys)I[g]="key_".concat(C++);h.write("const newResult = {};");for(let g of x.keys){let $=I[g],k=Ut(g);h.write("const ".concat($," = ").concat(S(g),";")),h.write("\\n if (".concat($,".issues.length) {\\n payload.issues = payload.issues.concat(").concat($,".issues.map(iss => ({\\n ...iss,\\n path: iss.path ? [").concat(k,", ...iss.path] : [").concat(k,"]\\n })));\\n }\\n \\n \\n if (").concat($,".value === undefined) {\\n if (").concat(k," in input) {\\n newResult[").concat(k,"] = undefined;\\n }\\n } else {\\n newResult[").concat(k,"] = ").concat($,".value;\\n }\\n \\n "))}h.write("payload.value = newResult;"),h.write("return payload;");let j=h.compile();return(g,$)=>j(f,g,$)},o,u=ye,s=!Be.jitless,a=s&&Xr.value,l=r.catchall,v;e._zod.parse=(f,h)=>{v!=null||(v=i.value);let x=f.value;return u(x)?s&&a&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(o||(o=t(r.shape)),f=o(f,h),l?Iu([],x,f,h,v,e):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function fu(e,r,n,i){for(let o of e)if(o.issues.length===0)return r.value=o.value,r;let t=e.filter(o=>!he(o));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(o=>o.issues.map(u=>Y(u,i,L())))}),r)}var Ht=d("$ZodUnion",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),Z(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){let t=r.options.map(o=>o._zod.pattern);return new RegExp("^(".concat(t.map(o=>We(o.source)).join("|"),")$"))}});let n=r.options.length===1,i=r.options[0]._zod.run;e._zod.parse=(t,o)=>{if(n)return i(t,o);let u=!1,s=[];for(let c of r.options){let a=c._zod.run({value:t.value,issues:[]},o);if(a instanceof Promise)s.push(a),u=!0;else{if(a.issues.length===0)return a;s.push(a)}}return u?Promise.all(s).then(c=>fu(c,t,e,o)):fu(s,t,e,o)}}),Ri=d("$ZodDiscriminatedUnion",(e,r)=>{Ht.init(e,r);let n=e._zod.parse;Z(e._zod,"propValues",()=>{let t={};for(let o of r.options){let u=o._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(\'Invalid discriminated union option at index "\'.concat(r.options.indexOf(o),\'"\'));for(let[s,c]of Object.entries(u)){t[s]||(t[s]=new Set);for(let a of c)t[s].add(a)}}return t});let i=je(()=>{var u;let t=r.options,o=new Map;for(let s of t){let c=(u=s._zod.propValues)==null?void 0:u[r.discriminator];if(!c||c.size===0)throw new Error(\'Invalid discriminated union option at index "\'.concat(r.options.indexOf(s),\'"\'));for(let a of c){if(o.has(a))throw new Error(\'Duplicate discriminator value "\'.concat(String(a),\'"\'));o.set(a,s)}}return o});e._zod.parse=(t,o)=>{let u=t.value;if(!ye(u))return t.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),t;let s=i.value.get(u==null?void 0:u[r.discriminator]);return s?s._zod.run(t,o):r.unionFallback?n(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:u,path:[r.discriminator],inst:e}),t)}}),Li=d("$ZodIntersection",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value,o=r.left._zod.run({value:t,issues:[]},i),u=r.right._zod.run({value:t,issues:[]},i);return o instanceof Promise||u instanceof Promise?Promise.all([o,u]).then(([c,a])=>pu(n,c,a)):pu(n,o,u)}});function ei(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(ve(e)&&ve(r)){let n=Object.keys(r),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),t=m(m({},e),r);for(let o of i){let u=ei(e[o],r[o]);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};t[o]=u.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let t=e[i],o=r[i],u=ei(t,o);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function pu(e,r,n){if(r.issues.length&&e.issues.push(...r.issues),n.issues.length&&e.issues.push(...n.issues),he(e))return e;let i=ei(r.value,n.value);if(!i.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(i.mergeErrorPath)));return e.value=i.data,e}var er=d("$ZodTuple",(e,r)=>{O.init(e,r);let n=r.items,i=n.length-[...n].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,o)=>{let u=t.value;if(!Array.isArray(u))return t.issues.push({input:u,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];let s=[];if(!r.rest){let a=u.length>n.length,l=u.length<i-1;if(a||l)return t.issues.push(z(m({},a?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}),{input:u,inst:e,origin:"array"})),t}let c=-1;for(let a of n){if(c++,c>=u.length&&c>=i)continue;let l=a._zod.run({value:u[c],issues:[]},o);l instanceof Promise?s.push(l.then(v=>Kt(v,t,c))):Kt(l,t,c)}if(r.rest){let a=u.slice(n.length);for(let l of a){c++;let v=r.rest._zod.run({value:l,issues:[]},o);v instanceof Promise?s.push(v.then(f=>Kt(f,t,c))):Kt(v,t,c)}}return s.length?Promise.all(s).then(()=>t):t}});function Kt(e,r,n){e.issues.length&&r.issues.push(...q(n,e.issues)),r.value[n]=e.value}var Ci=d("$ZodRecord",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!ve(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let o=[];if(r.keyType._zod.values){let u=r.keyType._zod.values;n.value={};for(let c of u)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let a=r.valueType._zod.run({value:t[c],issues:[]},i);a instanceof Promise?o.push(a.then(l=>{l.issues.length&&n.issues.push(...q(c,l.issues)),n.value[c]=l.value})):(a.issues.length&&n.issues.push(...q(c,a.issues)),n.value[c]=a.value)}let s;for(let c in t)u.has(c)||(s=s!=null?s:[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:s})}else{n.value={};for(let u of Reflect.ownKeys(t)){if(u==="__proto__")continue;let s=r.keyType._zod.run({value:u,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(a=>Y(a,i,L())),input:u,path:[u],inst:e}),n.value[s.value]=s.value;continue}let c=r.valueType._zod.run({value:t[u],issues:[]},i);c instanceof Promise?o.push(c.then(a=>{a.issues.length&&n.issues.push(...q(u,a.issues)),n.value[s.value]=a.value})):(c.issues.length&&n.issues.push(...q(u,c.issues)),n.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Vi=d("$ZodMap",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let o=[];n.value=new Map;for(let[u,s]of t){let c=r.keyType._zod.run({value:u,issues:[]},i),a=r.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||a instanceof Promise?o.push(Promise.all([c,a]).then(([l,v])=>{gu(l,v,n,u,t,e,i)})):gu(c,a,n,u,t,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function gu(e,r,n,i,t,o,u){e.issues.length&&(Xe.has(typeof i)?n.issues.push(...q(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(s=>Y(s,u,L()))})),r.issues.length&&(Xe.has(typeof i)?n.issues.push(...q(i,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:i,issues:r.issues.map(s=>Y(s,u,L()))})),n.value.set(e.value,r.value)}var Fi=d("$ZodSet",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let u of t){let s=r.valueType._zod.run({value:u,issues:[]},i);s instanceof Promise?o.push(s.then(c=>vu(c,n))):vu(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function vu(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var Ji=d("$ZodEnum",(e,r)=>{O.init(e,r);let n=Ge(r.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp("^(".concat(n.filter(t=>Xe.has(typeof t)).map(t=>typeof t=="string"?ie(t):t.toString()).join("|"),")$")),e._zod.parse=(t,o)=>{let u=t.value;return i.has(u)||t.issues.push({code:"invalid_value",values:n,input:u,inst:e}),t}}),Mi=d("$ZodLiteral",(e,r)=>{if(O.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp("^(".concat(r.values.map(n=>typeof n=="string"?ie(n):n?ie(n.toString()):String(n)).join("|"),")$")),e._zod.parse=(n,i)=>{let t=n.value;return e._zod.values.has(t)||n.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),n}}),Bi=d("$ZodFile",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Ki=d("$ZodTransform",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new me(e.constructor.name);let t=r.transform(n.value,n);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(u=>(n.value=u,n));if(t instanceof Promise)throw new te;return n.value=t,n}});function hu(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var Gi=d("$ZodOptional",(e,r)=>{O.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp("^(".concat(We(n.source),")?$")):void 0}),e._zod.parse=(n,i)=>{if(r.innerType._zod.optin==="optional"){let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>hu(o,n.value)):hu(t,n.value)}return n.value===void 0?n:r.innerType._zod.run(n,i)}}),Wi=d("$ZodNullable",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),Z(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp("^(".concat(We(n.source),"|null)$")):void 0}),Z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:r.innerType._zod.run(n,i)}),Xi=d("$ZodDefault",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>$u(o,r)):$u(t,r)}});function $u(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var qi=d("$ZodPrefault",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,i))}),Yi=d("$ZodNonOptional",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>bu(o,e)):bu(t,e)}});function bu(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var Qi=d("$ZodSuccess",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new me("ZodSuccess");let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),Hi=d("$ZodCatch",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.value,o.issues.length&&(n.value=r.catchValue(z(m({},n),{error:{issues:o.issues.map(u=>Y(u,i,L()))},input:n.value})),n.issues=[]),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue(z(m({},n),{error:{issues:t.issues.map(o=>Y(o,i,L()))},input:n.value})),n.issues=[]),n)}}),eo=d("$ZodNaN",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),to=d("$ZodPipe",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>r.in._zod.values),Z(e._zod,"optin",()=>r.in._zod.optin),Z(e._zod,"optout",()=>r.out._zod.optout),Z(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=r.out._zod.run(n,i);return o instanceof Promise?o.then(u=>Gt(u,r.in,i)):Gt(o,r.in,i)}let t=r.in._zod.run(n,i);return t instanceof Promise?t.then(o=>Gt(o,r.out,i)):Gt(t,r.out,i)}});function Gt(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},n)}var ot=d("$ZodCodec",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>r.in._zod.values),Z(e._zod,"optin",()=>r.in._zod.optin),Z(e._zod,"optout",()=>r.out._zod.optout),Z(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=r.in._zod.run(n,i);return o instanceof Promise?o.then(u=>Wt(u,r,i)):Wt(o,r,i)}else{let o=r.out._zod.run(n,i);return o instanceof Promise?o.then(u=>Wt(u,r,i)):Wt(o,r,i)}}});function Wt(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(o=>Xt(e,o,r.out,n)):Xt(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>Xt(e,o,r.in,n)):Xt(e,t,r.in,n)}}function Xt(e,r,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},i)}var ro=d("$ZodReadonly",(e,r)=>{O.init(e,r),Z(e._zod,"propValues",()=>r.innerType._zod.propValues),Z(e._zod,"values",()=>r.innerType._zod.values),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(_u):_u(t)}});function _u(e){return e.value=Object.freeze(e.value),e}var no=d("$ZodTemplateLiteral",(e,r)=>{O.init(e,r);let n=[];for(let i of r.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error("Invalid template literal part, no pattern found: ".concat([...i._zod.traits].shift()));let t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error("Invalid template literal part: ".concat(i._zod.traits));let o=t.startsWith("^")?1:0,u=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(o,u))}else if(i===null||Yr.has(typeof i))n.push(ie("".concat(i)));else throw new Error("Invalid template literal part: ".concat(i));e._zod.pattern=new RegExp("^".concat(n.join(""),"$")),e._zod.parse=(i,t)=>{var o;return typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:(o=r.format)!=null?o:"template_literal",pattern:e._zod.pattern.source}),i)}}),io=d("$ZodFunction",(e,r)=>(O.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let t=e._def.input?Zt(e._def.input,i):i,o=Reflect.apply(n,this,t);return e._def.output?Zt(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let t=e._def.input?await Dt(e._def.input,i):i,o=await Reflect.apply(n,this,t);return e._def.output?await Dt(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new er({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),oo=d("$ZodPromise",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},i))}),ao=d("$ZodLazy",(e,r)=>{O.init(e,r),Z(e._zod,"innerType",()=>r.getter()),Z(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Z(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Z(e._zod,"optin",()=>{var n;return(n=e._zod.innerType._zod.optin)!=null?n:void 0}),Z(e._zod,"optout",()=>{var n;return(n=e._zod.innerType._zod.optout)!=null?n:void 0}),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),uo=d("$ZodCustom",(e,r)=>{R.init(e,r),O.init(e,r),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,t=r.fn(i);if(t instanceof Promise)return t.then(o=>yu(o,n,i,e));yu(t,n,i,e)}});function yu(e,r,n,i){var t;if(!e){let o={code:"custom",input:n,inst:i,path:[...(t=i._zod.def.path)!=null?t:[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),r.issues.push(Oe(o))}}var ze={};_e(ze,{ar:()=>Su,az:()=>ju,be:()=>Pu,bg:()=>Uu,ca:()=>Nu,cs:()=>Zu,da:()=>Du,de:()=>Tu,en:()=>tr,eo:()=>Eu,es:()=>Au,fa:()=>Ru,fi:()=>Lu,fr:()=>Cu,frCA:()=>Vu,he:()=>Fu,hu:()=>Ju,id:()=>Mu,is:()=>Bu,it:()=>Ku,ja:()=>Gu,ka:()=>Wu,kh:()=>Xu,km:()=>rr,ko:()=>qu,lt:()=>Qu,mk:()=>Hu,ms:()=>ec,nl:()=>tc,no:()=>rc,ota:()=>nc,pl:()=>oc,ps:()=>ic,pt:()=>ac,ru:()=>cc,sl:()=>sc,sv:()=>lc,ta:()=>dc,th:()=>mc,tr:()=>fc,ua:()=>pc,uk:()=>nr,ur:()=>gc,vi:()=>vc,yo:()=>bc,zhCN:()=>hc,zhTW:()=>$c});var zl=()=>{let e={string:{unit:"\\u062D\\u0631\\u0641",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},file:{unit:"\\u0628\\u0627\\u064A\\u062A",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},array:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},set:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0645\\u062F\\u062E\\u0644",email:"\\u0628\\u0631\\u064A\\u062F \\u0625\\u0644\\u0643\\u062A\\u0631\\u0648\\u0646\\u064A",url:"\\u0631\\u0627\\u0628\\u0637",emoji:"\\u0625\\u064A\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0648\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",date:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",time:"\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",duration:"\\u0645\\u062F\\u0629 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",ipv4:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv4",ipv6:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv6",cidrv4:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv4",cidrv6:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv6",base64:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64-encoded",base64url:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64url-encoded",json_string:"\\u0646\\u064E\\u0635 \\u0639\\u0644\\u0649 \\u0647\\u064A\\u0626\\u0629 JSON",e164:"\\u0631\\u0642\\u0645 \\u0647\\u0627\\u062A\\u0641 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 E.164",jwt:"JWT",template_literal:"\\u0645\\u062F\\u062E\\u0644"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ".concat(t.expected,"\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ".concat(b(t.values[0])):"\\u0627\\u062E\\u062A\\u064A\\u0627\\u0631 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062A\\u0648\\u0642\\u0639 \\u0627\\u0646\\u062A\\u0642\\u0627\\u0621 \\u0623\\u062D\\u062F \\u0647\\u0630\\u0647 \\u0627\\u0644\\u062E\\u064A\\u0627\\u0631\\u0627\\u062A: ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?" \\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ".concat((o=t.origin)!=null?o:"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"," ").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0635\\u0631"):"\\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ".concat((s=t.origin)!=null?s:"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"," ").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ".concat(t.origin," \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ".concat(t.origin," \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0628\\u062F\\u0623 \\u0628\\u0640 "\'.concat(t.prefix,\'"\'):a.format==="ends_with"?\'\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0646\\u062A\\u0647\\u064A \\u0628\\u0640 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u062A\\u0636\\u0645\\u0651\\u064E\\u0646 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0637\\u0627\\u0628\\u0642 \\u0627\\u0644\\u0646\\u0645\\u0637 ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644")}case"not_multiple_of":return"\\u0631\\u0642\\u0645 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 \\u0645\\u0646 \\u0645\\u0636\\u0627\\u0639\\u0641\\u0627\\u062A ".concat(t.divisor);case"unrecognized_keys":return"\\u0645\\u0639\\u0631\\u0641".concat(t.keys.length>1?"\\u0627\\u062A":""," \\u063A\\u0631\\u064A\\u0628").concat(t.keys.length>1?"\\u0629":"",": ").concat(p(t.keys,"\\u060C "));case"invalid_key":return"\\u0645\\u0639\\u0631\\u0641 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ".concat(t.origin);case"invalid_union":return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644";case"invalid_element":return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ".concat(t.origin);default:return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644"}}};function Su(){return{localeError:zl()}}var Il=()=>{let e={string:{unit:"simvol",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"element",verb:"olmal\\u0131d\\u0131r"},set:{unit:"element",verb:"olmal\\u0131d\\u0131r"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ".concat(t.expected,", daxil olan ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ".concat(b(t.values[0])):"Yanl\\u0131\\u015F se\\xE7im: a\\u015Fa\\u011F\\u0131dak\\u0131lardan biri olmal\\u0131d\\u0131r: ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ".concat((o=t.origin)!=null?o:"d\\u0259y\\u0259r"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"element"):"\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ".concat((s=t.origin)!=null?s:"d\\u0259y\\u0259r"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Yanl\\u0131\\u015F m\\u0259tn: "\'.concat(a.prefix,\'" il\\u0259 ba\\u015Flamal\\u0131d\\u0131r\'):a.format==="ends_with"?\'Yanl\\u0131\\u015F m\\u0259tn: "\'.concat(a.suffix,\'" il\\u0259 bitm\\u0259lidir\'):a.format==="includes"?\'Yanl\\u0131\\u015F m\\u0259tn: "\'.concat(a.includes,\'" daxil olmal\\u0131d\\u0131r\'):a.format==="regex"?"Yanl\\u0131\\u015F m\\u0259tn: ".concat(a.pattern," \\u015Fablonuna uy\\u011Fun olmal\\u0131d\\u0131r"):"Yanl\\u0131\\u015F ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Yanl\\u0131\\u015F \\u0259d\\u0259d: ".concat(t.divisor," il\\u0259 b\\xF6l\\xFCn\\u0259 bil\\u0259n olmal\\u0131d\\u0131r");case"unrecognized_keys":return"Tan\\u0131nmayan a\\xE7ar".concat(t.keys.length>1?"lar":"",": ").concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," daxilind\\u0259 yanl\\u0131\\u015F a\\xE7ar");case"invalid_union":return"Yanl\\u0131\\u015F d\\u0259y\\u0259r";case"invalid_element":return"".concat(t.origin," daxilind\\u0259 yanl\\u0131\\u015F d\\u0259y\\u0259r");default:return"Yanl\\u0131\\u015F d\\u0259y\\u0259r"}}};function ju(){return{localeError:Il()}}function Ou(e,r,n,i){let t=Math.abs(e),o=t%10,u=t%100;return u>=11&&u<=19?i:o===1?r:o>=2&&o<=4?n:i}var wl=()=>{let e={string:{unit:{one:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B",few:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u044B",many:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u044B",many:"\\u0431\\u0430\\u0439\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u043B\\u0456\\u043A";case"object":{if(Array.isArray(t))return"\\u043C\\u0430\\u0441\\u0456\\u045E";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0443\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0430\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0456 \\u0447\\u0430\\u0441",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0447\\u0430\\u0441",duration:"ISO \\u043F\\u0440\\u0430\\u0446\\u044F\\u0433\\u043B\\u0430\\u0441\\u0446\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0430\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0430\\u0441",cidrv4:"IPv4 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64",base64url:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64url",json_string:"JSON \\u0440\\u0430\\u0434\\u043E\\u043A",e164:"\\u043D\\u0443\\u043C\\u0430\\u0440 E.164",jwt:"JWT",template_literal:"\\u0443\\u0432\\u043E\\u0434"};return t=>{var o,u,s;switch(t.code){case"invalid_type":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F ".concat(t.expected,", \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F ".concat(b(t.values[0])):"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0432\\u0430\\u0440\\u044B\\u044F\\u043D\\u0442: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F \\u0430\\u0434\\u0437\\u0456\\u043D \\u0437 ".concat(p(t.values,"|"));case"too_big":{let c=t.inclusive?"<=":"<",a=r(t.origin);if(a){let l=Number(t.maximum),v=Ou(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat((o=t.origin)!=null?o:"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ").concat(a.verb," ").concat(c).concat(t.maximum.toString()," ").concat(v)}return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat((u=t.origin)!=null?u:"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ").concat(c).concat(t.maximum.toString())}case"too_small":{let c=t.inclusive?">=":">",a=r(t.origin);if(a){let l=Number(t.minimum),v=Ou(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat(t.origin," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ").concat(a.verb," ").concat(c).concat(t.minimum.toString()," ").concat(v)}return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat(t.origin," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ").concat(c).concat(t.minimum.toString())}case"invalid_format":{let c=t;return c.format==="starts_with"?\'\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u043F\\u0430\\u0447\\u044B\\u043D\\u0430\\u0446\\u0446\\u0430 \\u0437 "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0432\\u0430\\u0446\\u0446\\u0430 \\u043D\\u0430 "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u043C\\u044F\\u0448\\u0447\\u0430\\u0446\\u044C "\'.concat(c.includes,\'"\'):c.format==="regex"?"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0430\\u0434\\u043F\\u0430\\u0432\\u044F\\u0434\\u0430\\u0446\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ".concat(c.pattern):"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B ".concat((s=i[c.format])!=null?s:t.format)}case"not_multiple_of":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043B\\u0456\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0431\\u044B\\u0446\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ".concat(t.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u0430\\u0437\\u043D\\u0430\\u043D\\u044B ".concat(t.keys.length>1?"\\u043A\\u043B\\u044E\\u0447\\u044B":"\\u043A\\u043B\\u044E\\u0447",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043A\\u043B\\u044E\\u0447 \\u0443 ".concat(t.origin);case"invalid_union":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434";case"invalid_element":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u0430\\u0435 \\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435 \\u045E ".concat(t.origin);default:return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434"}}};function Pu(){return{localeError:wl()}}var Sl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\\u0447\\u0438\\u0441\\u043B\\u043E";case"object":{if(Array.isArray(e))return"\\u043C\\u0430\\u0441\\u0438\\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},jl=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"\\u0432\\u0445\\u043E\\u0434",email:"\\u0438\\u043C\\u0435\\u0439\\u043B \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0436\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u043F\\u0440\\u043E\\u0434\\u044A\\u043B\\u0436\\u0438\\u0442\\u0435\\u043B\\u043D\\u043E\\u0441\\u0442",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"base64-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",base64url:"base64url-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",json_string:"JSON \\u043D\\u0438\\u0437",e164:"E.164 \\u043D\\u043E\\u043C\\u0435\\u0440",jwt:"JWT",template_literal:"\\u0432\\u0445\\u043E\\u0434"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ".concat(i.expected,", \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ").concat(Sl(i.input));case"invalid_value":return i.values.length===1?"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ".concat(b(i.values[0])):"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u044F: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D\\u043E \\u0435\\u0434\\u043D\\u043E \\u043E\\u0442 ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat((t=i.origin)!=null?t:"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"," \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430"):"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat((u=i.origin)!=null?u:"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"," \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat(i.origin," \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat(i.origin," \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;if(c.format==="starts_with")return\'\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u0432\\u0430 \\u0441 "\'.concat(c.prefix,\'"\');if(c.format==="ends_with")return\'\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u044A\\u0440\\u0448\\u0432\\u0430 \\u0441 "\'.concat(c.suffix,\'"\');if(c.format==="includes")return\'\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u044E\\u0447\\u0432\\u0430 "\'.concat(c.includes,\'"\');if(c.format==="regex")return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0441\\u044A\\u0432\\u043F\\u0430\\u0434\\u0430 \\u0441 ".concat(c.pattern);let a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D";return c.format==="emoji"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),c.format==="datetime"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),c.format==="date"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),c.format==="time"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),c.format==="duration"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),"".concat(a," ").concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 \\u043A\\u0440\\u0430\\u0442\\u043D\\u043E \\u043D\\u0430 ".concat(i.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u0430\\u0437\\u043F\\u043E\\u0437\\u043D\\u0430\\u0442".concat(i.keys.length>1?"\\u0438":""," \\u043A\\u043B\\u044E\\u0447").concat(i.keys.length>1?"\\u043E\\u0432\\u0435":"",": ").concat(p(i.keys,", "));case"invalid_key":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043A\\u043B\\u044E\\u0447 \\u0432 ".concat(i.origin);case"invalid_union":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434";case"invalid_element":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442 \\u0432 ".concat(i.origin);default:return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434"}}};function Uu(){return{localeError:jl()}}var Ol=()=>{let e={string:{unit:"car\\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entrada",email:"adre\\xE7a electr\\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\\xE7a IPv4",ipv6:"adre\\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Tipus inv\\xE0lid: s\'esperava ".concat(t.expected,", s\'ha rebut ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Valor inv\\xE0lid: s\'esperava ".concat(b(t.values[0])):"Opci\\xF3 inv\\xE0lida: s\'esperava una de ".concat(p(t.values," o "));case"too_big":{let a=t.inclusive?"com a m\\xE0xim":"menys de",l=r(t.origin);return l?"Massa gran: s\'esperava que ".concat((o=t.origin)!=null?o:"el valor"," contingu\\xE9s ").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elements"):"Massa gran: s\'esperava que ".concat((s=t.origin)!=null?s:"el valor"," fos ").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?"com a m\\xEDnim":"m\\xE9s de",l=r(t.origin);return l?"Massa petit: s\'esperava que ".concat(t.origin," contingu\\xE9s ").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"Massa petit: s\'esperava que ".concat(t.origin," fos ").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Format inv\\xE0lid: ha de comen\\xE7ar amb "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?"Format inv\\xE0lid: ha d\'acabar amb \\"".concat(a.suffix,\'"\'):a.format==="includes"?"Format inv\\xE0lid: ha d\'incloure \\"".concat(a.includes,\'"\'):a.format==="regex"?"Format inv\\xE0lid: ha de coincidir amb el patr\\xF3 ".concat(a.pattern):"Format inv\\xE0lid per a ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"N\\xFAmero inv\\xE0lid: ha de ser m\\xFAltiple de ".concat(t.divisor);case"unrecognized_keys":return"Clau".concat(t.keys.length>1?"s":""," no reconeguda").concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Clau inv\\xE0lida a ".concat(t.origin);case"invalid_union":return"Entrada inv\\xE0lida";case"invalid_element":return"Element inv\\xE0lid a ".concat(t.origin);default:return"Entrada inv\\xE0lida"}}};function Nu(){return{localeError:Ol()}}var Pl=()=>{let e={string:{unit:"znak\\u016F",verb:"m\\xEDt"},file:{unit:"bajt\\u016F",verb:"m\\xEDt"},array:{unit:"prvk\\u016F",verb:"m\\xEDt"},set:{unit:"prvk\\u016F",verb:"m\\xEDt"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u010D\\xEDslo";case"string":return"\\u0159et\\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"regul\\xE1rn\\xED v\\xFDraz",email:"e-mailov\\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \\u010Das ve form\\xE1tu ISO",date:"datum ve form\\xE1tu ISO",time:"\\u010Das ve form\\xE1tu ISO",duration:"doba trv\\xE1n\\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64",base64url:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64url",json_string:"\\u0159et\\u011Bzec ve form\\xE1tu JSON",e164:"\\u010D\\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{var o,u,s,c,a,l,v;switch(t.code){case"invalid_type":return"Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ".concat(t.expected,", obdr\\u017Eeno ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ".concat(b(t.values[0])):"Neplatn\\xE1 mo\\u017Enost: o\\u010Dek\\xE1v\\xE1na jedna z hodnot ".concat(p(t.values,"|"));case"too_big":{let f=t.inclusive?"<=":"<",h=r(t.origin);return h?"Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ".concat((o=t.origin)!=null?o:"hodnota"," mus\\xED m\\xEDt ").concat(f).concat(t.maximum.toString()," ").concat((u=h.unit)!=null?u:"prvk\\u016F"):"Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ".concat((s=t.origin)!=null?s:"hodnota"," mus\\xED b\\xFDt ").concat(f).concat(t.maximum.toString())}case"too_small":{let f=t.inclusive?">=":">",h=r(t.origin);return h?"Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ".concat((c=t.origin)!=null?c:"hodnota"," mus\\xED m\\xEDt ").concat(f).concat(t.minimum.toString()," ").concat((a=h.unit)!=null?a:"prvk\\u016F"):"Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ".concat((l=t.origin)!=null?l:"hodnota"," mus\\xED b\\xFDt ").concat(f).concat(t.minimum.toString())}case"invalid_format":{let f=t;return f.format==="starts_with"?\'Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED za\\u010D\\xEDnat na "\'.concat(f.prefix,\'"\'):f.format==="ends_with"?\'Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED kon\\u010Dit na "\'.concat(f.suffix,\'"\'):f.format==="includes"?\'Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED obsahovat "\'.concat(f.includes,\'"\'):f.format==="regex"?"Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED odpov\\xEDdat vzoru ".concat(f.pattern):"Neplatn\\xFD form\\xE1t ".concat((v=i[f.format])!=null?v:t.format)}case"not_multiple_of":return"Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED b\\xFDt n\\xE1sobkem ".concat(t.divisor);case"unrecognized_keys":return"Nezn\\xE1m\\xE9 kl\\xED\\u010De: ".concat(p(t.keys,", "));case"invalid_key":return"Neplatn\\xFD kl\\xED\\u010D v ".concat(t.origin);case"invalid_union":return"Neplatn\\xFD vstup";case"invalid_element":return"Neplatn\\xE1 hodnota v ".concat(t.origin);default:return"Neplatn\\xFD vstup"}}};function Zu(){return{localeError:Pl()}}var Ul=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\\xE6t",file:"fil"};function n(u){var s;return(s=e[u])!=null?s:null}function i(u){var s;return(s=r[u])!=null?s:u}let t=u=>{let s=typeof u;switch(s){case"number":return Number.isNaN(u)?"NaN":"tal";case"object":return Array.isArray(u)?"liste":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype&&u.constructor?u.constructor.name:"objekt"}return s},o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\\xE6t",date:"ISO-dato",time:"ISO-klokkesl\\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\\xE5de",ipv6:"IPv6-omr\\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return u=>{var s,c;switch(u.code){case"invalid_type":return"Ugyldigt input: forventede ".concat(i(u.expected),", fik ").concat(i(t(u.input)));case"invalid_value":return u.values.length===1?"Ugyldig v\\xE6rdi: forventede ".concat(b(u.values[0])):"Ugyldigt valg: forventede en af f\\xF8lgende ".concat(p(u.values,"|"));case"too_big":{let a=u.inclusive?"<=":"<",l=n(u.origin),v=i(u.origin);return l?"For stor: forventede ".concat(v!=null?v:"value"," ").concat(l.verb," ").concat(a," ").concat(u.maximum.toString()," ").concat((s=l.unit)!=null?s:"elementer"):"For stor: forventede ".concat(v!=null?v:"value"," havde ").concat(a," ").concat(u.maximum.toString())}case"too_small":{let a=u.inclusive?">=":">",l=n(u.origin),v=i(u.origin);return l?"For lille: forventede ".concat(v," ").concat(l.verb," ").concat(a," ").concat(u.minimum.toString()," ").concat(l.unit):"For lille: forventede ".concat(v," havde ").concat(a," ").concat(u.minimum.toString())}case"invalid_format":{let a=u;return a.format==="starts_with"?\'Ugyldig streng: skal starte med "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Ugyldig streng: skal ende med "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Ugyldig streng: skal indeholde "\'.concat(a.includes,\'"\'):a.format==="regex"?"Ugyldig streng: skal matche m\\xF8nsteret ".concat(a.pattern):"Ugyldig ".concat((c=o[a.format])!=null?c:u.format)}case"not_multiple_of":return"Ugyldigt tal: skal v\\xE6re deleligt med ".concat(u.divisor);case"unrecognized_keys":return"".concat(u.keys.length>1?"Ukendte n\\xF8gler":"Ukendt n\\xF8gle",": ").concat(p(u.keys,", "));case"invalid_key":return"Ugyldig n\\xF8gle i ".concat(u.origin);case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return"Ugyldig v\\xE6rdi i ".concat(u.origin);default:return"Ugyldigt input"}}};function Du(){return{localeError:Ul()}}var Nl=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Ung\\xFCltige Eingabe: erwartet ".concat(t.expected,", erhalten ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ung\\xFCltige Eingabe: erwartet ".concat(b(t.values[0])):"Ung\\xFCltige Option: erwartet eine von ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Zu gro\\xDF: erwartet, dass ".concat((o=t.origin)!=null?o:"Wert"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"Elemente"," hat"):"Zu gro\\xDF: erwartet, dass ".concat((s=t.origin)!=null?s:"Wert"," ").concat(a).concat(t.maximum.toString()," ist")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Zu klein: erwartet, dass ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," hat"):"Zu klein: erwartet, dass ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ist")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Ung\\xFCltiger String: muss mit "\'.concat(a.prefix,\'" beginnen\'):a.format==="ends_with"?\'Ung\\xFCltiger String: muss mit "\'.concat(a.suffix,\'" enden\'):a.format==="includes"?\'Ung\\xFCltiger String: muss "\'.concat(a.includes,\'" enthalten\'):a.format==="regex"?"Ung\\xFCltiger String: muss dem Muster ".concat(a.pattern," entsprechen"):"Ung\\xFCltig: ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Ung\\xFCltige Zahl: muss ein Vielfaches von ".concat(t.divisor," sein");case"unrecognized_keys":return"".concat(t.keys.length>1?"Unbekannte Schl\\xFCssel":"Unbekannter Schl\\xFCssel",": ").concat(p(t.keys,", "));case"invalid_key":return"Ung\\xFCltiger Schl\\xFCssel in ".concat(t.origin);case"invalid_union":return"Ung\\xFCltige Eingabe";case"invalid_element":return"Ung\\xFCltiger Wert in ".concat(t.origin);default:return"Ung\\xFCltige Eingabe"}}};function Tu(){return{localeError:Nl()}}var Zl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Dl=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Invalid input: expected ".concat(i.expected,", received ").concat(Zl(i.input));case"invalid_value":return i.values.length===1?"Invalid input: expected ".concat(b(i.values[0])):"Invalid option: expected one of ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"Too big: expected ".concat((t=i.origin)!=null?t:"value"," to have ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"elements"):"Too big: expected ".concat((u=i.origin)!=null?u:"value"," to be ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"Too small: expected ".concat(i.origin," to have ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"Too small: expected ".concat(i.origin," to be ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'Invalid string: must start with "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'Invalid string: must end with "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'Invalid string: must include "\'.concat(c.includes,\'"\'):c.format==="regex"?"Invalid string: must match pattern ".concat(c.pattern):"Invalid ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"Invalid number: must be a multiple of ".concat(i.divisor);case"unrecognized_keys":return"Unrecognized key".concat(i.keys.length>1?"s":"",": ").concat(p(i.keys,", "));case"invalid_key":return"Invalid key in ".concat(i.origin);case"invalid_union":return"Invalid input";case"invalid_element":return"Invalid value in ".concat(i.origin);default:return"Invalid input"}}};function tr(){return{localeError:Dl()}}var Tl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},El=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Nevalida enigo: atendi\\u011Dis ".concat(i.expected,", ricevi\\u011Dis ").concat(Tl(i.input));case"invalid_value":return i.values.length===1?"Nevalida enigo: atendi\\u011Dis ".concat(b(i.values[0])):"Nevalida opcio: atendi\\u011Dis unu el ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"Tro granda: atendi\\u011Dis ke ".concat((t=i.origin)!=null?t:"valoro"," havu ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"elementojn"):"Tro granda: atendi\\u011Dis ke ".concat((u=i.origin)!=null?u:"valoro"," havu ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"Tro malgranda: atendi\\u011Dis ke ".concat(i.origin," havu ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"Tro malgranda: atendi\\u011Dis ke ".concat(i.origin," estu ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'Nevalida karaktraro: devas komenci\\u011Di per "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'Nevalida karaktraro: devas fini\\u011Di per "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'Nevalida karaktraro: devas inkluzivi "\'.concat(c.includes,\'"\'):c.format==="regex"?"Nevalida karaktraro: devas kongrui kun la modelo ".concat(c.pattern):"Nevalida ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"Nevalida nombro: devas esti oblo de ".concat(i.divisor);case"unrecognized_keys":return"Nekonata".concat(i.keys.length>1?"j":""," \\u015Dlosilo").concat(i.keys.length>1?"j":"",": ").concat(p(i.keys,", "));case"invalid_key":return"Nevalida \\u015Dlosilo en ".concat(i.origin);case"invalid_union":return"Nevalida enigo";case"invalid_element":return"Nevalida valoro en ".concat(i.origin);default:return"Nevalida enigo"}}};function Eu(){return{localeError:El()}}var Al=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"n\\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\\xFAmero grande",symbol:"s\\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\\xF3n",union:"uni\\xF3n",literal:"literal",promise:"promesa",void:"vac\\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};function n(u){var s;return(s=e[u])!=null?s:null}function i(u){var s;return(s=r[u])!=null?s:u}let t=u=>{let s=typeof u;switch(s){case"number":return Number.isNaN(u)?"NaN":"number";case"object":return Array.isArray(u)?"array":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype?u.constructor.name:"object"}return s},o={regex:"entrada",email:"direcci\\xF3n de correo electr\\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\\xF3n ISO",ipv4:"direcci\\xF3n IPv4",ipv6:"direcci\\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{var s,c;switch(u.code){case"invalid_type":return"Entrada inv\\xE1lida: se esperaba ".concat(i(u.expected),", recibido ").concat(i(t(u.input)));case"invalid_value":return u.values.length===1?"Entrada inv\\xE1lida: se esperaba ".concat(b(u.values[0])):"Opci\\xF3n inv\\xE1lida: se esperaba una de ".concat(p(u.values,"|"));case"too_big":{let a=u.inclusive?"<=":"<",l=n(u.origin),v=i(u.origin);return l?"Demasiado grande: se esperaba que ".concat(v!=null?v:"valor"," tuviera ").concat(a).concat(u.maximum.toString()," ").concat((s=l.unit)!=null?s:"elementos"):"Demasiado grande: se esperaba que ".concat(v!=null?v:"valor"," fuera ").concat(a).concat(u.maximum.toString())}case"too_small":{let a=u.inclusive?">=":">",l=n(u.origin),v=i(u.origin);return l?"Demasiado peque\\xF1o: se esperaba que ".concat(v," tuviera ").concat(a).concat(u.minimum.toString()," ").concat(l.unit):"Demasiado peque\\xF1o: se esperaba que ".concat(v," fuera ").concat(a).concat(u.minimum.toString())}case"invalid_format":{let a=u;return a.format==="starts_with"?\'Cadena inv\\xE1lida: debe comenzar con "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Cadena inv\\xE1lida: debe terminar en "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Cadena inv\\xE1lida: debe incluir "\'.concat(a.includes,\'"\'):a.format==="regex"?"Cadena inv\\xE1lida: debe coincidir con el patr\\xF3n ".concat(a.pattern):"Inv\\xE1lido ".concat((c=o[a.format])!=null?c:u.format)}case"not_multiple_of":return"N\\xFAmero inv\\xE1lido: debe ser m\\xFAltiplo de ".concat(u.divisor);case"unrecognized_keys":return"Llave".concat(u.keys.length>1?"s":""," desconocida").concat(u.keys.length>1?"s":"",": ").concat(p(u.keys,", "));case"invalid_key":return"Llave inv\\xE1lida en ".concat(i(u.origin));case"invalid_union":return"Entrada inv\\xE1lida";case"invalid_element":return"Valor inv\\xE1lido en ".concat(i(u.origin));default:return"Entrada inv\\xE1lida"}}};function Au(){return{localeError:Al()}}var Rl=()=>{let e={string:{unit:"\\u06A9\\u0627\\u0631\\u0627\\u06A9\\u062A\\u0631",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},array:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},set:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0639\\u062F\\u062F";case"object":{if(Array.isArray(t))return"\\u0622\\u0631\\u0627\\u06CC\\u0647";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0648\\u0631\\u0648\\u062F\\u06CC",email:"\\u0622\\u062F\\u0631\\u0633 \\u0627\\u06CC\\u0645\\u06CC\\u0644",url:"URL",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648 \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",date:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0627\\u06CC\\u0632\\u0648",time:"\\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",duration:"\\u0645\\u062F\\u062A \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",ipv4:"IPv4 \\u0622\\u062F\\u0631\\u0633",ipv6:"IPv6 \\u0622\\u062F\\u0631\\u0633",cidrv4:"IPv4 \\u062F\\u0627\\u0645\\u0646\\u0647",cidrv6:"IPv6 \\u062F\\u0627\\u0645\\u0646\\u0647",base64:"base64-encoded \\u0631\\u0634\\u062A\\u0647",base64url:"base64url-encoded \\u0631\\u0634\\u062A\\u0647",json_string:"JSON \\u0631\\u0634\\u062A\\u0647",e164:"E.164 \\u0639\\u062F\\u062F",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u06CC"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ".concat(t.expected," \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ").concat(n(t.input)," \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F");case"invalid_value":return t.values.length===1?"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ".concat(b(t.values[0])," \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F"):"\\u06AF\\u0632\\u06CC\\u0646\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A \\u06CC\\u06A9\\u06CC \\u0627\\u0632 ".concat(p(t.values,"|")," \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ".concat((o=t.origin)!=null?o:"\\u0645\\u0642\\u062F\\u0627\\u0631"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0635\\u0631"," \\u0628\\u0627\\u0634\\u062F"):"\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ".concat((s=t.origin)!=null?s:"\\u0645\\u0642\\u062F\\u0627\\u0631"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," \\u0628\\u0627\\u0634\\u062F")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u0628\\u0627\\u0634\\u062F"):"\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," \\u0628\\u0627\\u0634\\u062F")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "\'.concat(a.prefix,\'" \\u0634\\u0631\\u0648\\u0639 \\u0634\\u0648\\u062F\'):a.format==="ends_with"?\'\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "\'.concat(a.suffix,\'" \\u062A\\u0645\\u0627\\u0645 \\u0634\\u0648\\u062F\'):a.format==="includes"?\'\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0634\\u0627\\u0645\\u0644 "\'.concat(a.includes,\'" \\u0628\\u0627\\u0634\\u062F\'):a.format==="regex"?"\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \\u0627\\u0644\\u06AF\\u0648\\u06CC ".concat(a.pattern," \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"):"".concat((c=i[a.format])!=null?c:t.format," \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631")}case"not_multiple_of":return"\\u0639\\u062F\\u062F \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0645\\u0636\\u0631\\u0628 ".concat(t.divisor," \\u0628\\u0627\\u0634\\u062F");case"unrecognized_keys":return"\\u06A9\\u0644\\u06CC\\u062F".concat(t.keys.length>1?"\\u0647\\u0627\\u06CC":""," \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633: ").concat(p(t.keys,", "));case"invalid_key":return"\\u06A9\\u0644\\u06CC\\u062F \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633 \\u062F\\u0631 ".concat(t.origin);case"invalid_union":return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631";case"invalid_element":return"\\u0645\\u0642\\u062F\\u0627\\u0631 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631 \\u062F\\u0631 ".concat(t.origin);default:return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631"}}};function Ru(){return{localeError:Rl()}}var Ll=()=>{let e={string:{unit:"merkki\\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4n"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"s\\xE4\\xE4nn\\xF6llinen lauseke",email:"s\\xE4hk\\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{var o;switch(t.code){case"invalid_type":return"Virheellinen tyyppi: odotettiin ".concat(t.expected,", oli ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Virheellinen sy\\xF6te: t\\xE4ytyy olla ".concat(b(t.values[0])):"Virheellinen valinta: t\\xE4ytyy olla yksi seuraavista: ".concat(p(t.values,"|"));case"too_big":{let u=t.inclusive?"<=":"<",s=r(t.origin);return s?"Liian suuri: ".concat(s.subject," t\\xE4ytyy olla ").concat(u).concat(t.maximum.toString()," ").concat(s.unit).trim():"Liian suuri: arvon t\\xE4ytyy olla ".concat(u).concat(t.maximum.toString())}case"too_small":{let u=t.inclusive?">=":">",s=r(t.origin);return s?"Liian pieni: ".concat(s.subject," t\\xE4ytyy olla ").concat(u).concat(t.minimum.toString()," ").concat(s.unit).trim():"Liian pieni: arvon t\\xE4ytyy olla ".concat(u).concat(t.minimum.toString())}case"invalid_format":{let u=t;return u.format==="starts_with"?\'Virheellinen sy\\xF6te: t\\xE4ytyy alkaa "\'.concat(u.prefix,\'"\'):u.format==="ends_with"?\'Virheellinen sy\\xF6te: t\\xE4ytyy loppua "\'.concat(u.suffix,\'"\'):u.format==="includes"?\'Virheellinen sy\\xF6te: t\\xE4ytyy sis\\xE4lt\\xE4\\xE4 "\'.concat(u.includes,\'"\'):u.format==="regex"?"Virheellinen sy\\xF6te: t\\xE4ytyy vastata s\\xE4\\xE4nn\\xF6llist\\xE4 lauseketta ".concat(u.pattern):"Virheellinen ".concat((o=i[u.format])!=null?o:t.format)}case"not_multiple_of":return"Virheellinen luku: t\\xE4ytyy olla luvun ".concat(t.divisor," monikerta");case"unrecognized_keys":return"".concat(t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain",": ").concat(p(t.keys,", "));case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\\xF6te"}}};function Lu(){return{localeError:Ll()}}var Cl=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entr\\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne encod\\xE9e en base64",base64url:"cha\\xEEne encod\\xE9e en base64url",json_string:"cha\\xEEne JSON",e164:"num\\xE9ro E.164",jwt:"JWT",template_literal:"entr\\xE9e"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Entr\\xE9e invalide : ".concat(t.expected," attendu, ").concat(n(t.input)," re\\xE7u");case"invalid_value":return t.values.length===1?"Entr\\xE9e invalide : ".concat(b(t.values[0])," attendu"):"Option invalide : une valeur parmi ".concat(p(t.values,"|")," attendue");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Trop grand : ".concat((o=t.origin)!=null?o:"valeur"," doit ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\xE9l\\xE9ment(s)"):"Trop grand : ".concat((s=t.origin)!=null?s:"valeur"," doit \\xEAtre ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Trop petit : ".concat(t.origin," doit ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Trop petit : ".concat(t.origin," doit \\xEAtre ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Cha\\xEEne invalide : doit commencer par "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Cha\\xEEne invalide : doit se terminer par "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Cha\\xEEne invalide : doit inclure "\'.concat(a.includes,\'"\'):a.format==="regex"?"Cha\\xEEne invalide : doit correspondre au mod\\xE8le ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \\xEAtre un multiple de ".concat(t.divisor);case"unrecognized_keys":return"Cl\\xE9".concat(t.keys.length>1?"s":""," non reconnue").concat(t.keys.length>1?"s":""," : ").concat(p(t.keys,", "));case"invalid_key":return"Cl\\xE9 invalide dans ".concat(t.origin);case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(t.origin);default:return"Entr\\xE9e invalide"}}};function Cu(){return{localeError:Cl()}}var Vl=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entr\\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne encod\\xE9e en base64",base64url:"cha\\xEEne encod\\xE9e en base64url",json_string:"cha\\xEEne JSON",e164:"num\\xE9ro E.164",jwt:"JWT",template_literal:"entr\\xE9e"};return t=>{var o,u,s;switch(t.code){case"invalid_type":return"Entr\\xE9e invalide : attendu ".concat(t.expected,", re\\xE7u ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Entr\\xE9e invalide : attendu ".concat(b(t.values[0])):"Option invalide : attendu l\'une des valeurs suivantes ".concat(p(t.values,"|"));case"too_big":{let c=t.inclusive?"\\u2264":"<",a=r(t.origin);return a?"Trop grand : attendu que ".concat((o=t.origin)!=null?o:"la valeur"," ait ").concat(c).concat(t.maximum.toString()," ").concat(a.unit):"Trop grand : attendu que ".concat((u=t.origin)!=null?u:"la valeur"," soit ").concat(c).concat(t.maximum.toString())}case"too_small":{let c=t.inclusive?"\\u2265":">",a=r(t.origin);return a?"Trop petit : attendu que ".concat(t.origin," ait ").concat(c).concat(t.minimum.toString()," ").concat(a.unit):"Trop petit : attendu que ".concat(t.origin," soit ").concat(c).concat(t.minimum.toString())}case"invalid_format":{let c=t;return c.format==="starts_with"?\'Cha\\xEEne invalide : doit commencer par "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'Cha\\xEEne invalide : doit se terminer par "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'Cha\\xEEne invalide : doit inclure "\'.concat(c.includes,\'"\'):c.format==="regex"?"Cha\\xEEne invalide : doit correspondre au motif ".concat(c.pattern):"".concat((s=i[c.format])!=null?s:t.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \\xEAtre un multiple de ".concat(t.divisor);case"unrecognized_keys":return"Cl\\xE9".concat(t.keys.length>1?"s":""," non reconnue").concat(t.keys.length>1?"s":""," : ").concat(p(t.keys,", "));case"invalid_key":return"Cl\\xE9 invalide dans ".concat(t.origin);case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(t.origin);default:return"Entr\\xE9e invalide"}}};function Vu(){return{localeError:Vl()}}var Fl=()=>{let e={string:{unit:"\\u05D0\\u05D5\\u05EA\\u05D9\\u05D5\\u05EA",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"},file:{unit:"\\u05D1\\u05D9\\u05D9\\u05D8\\u05D9\\u05DD",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"},array:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"},set:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u05E7\\u05DC\\u05D8",email:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05D0\\u05D9\\u05DE\\u05D9\\u05D9\\u05DC",url:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05E8\\u05E9\\u05EA",emoji:"\\u05D0\\u05D9\\u05DE\\u05D5\\u05D2\'\\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA \\u05D5\\u05D6\\u05DE\\u05DF ISO",date:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA ISO",time:"\\u05D6\\u05DE\\u05DF ISO",duration:"\\u05DE\\u05E9\\u05DA \\u05D6\\u05DE\\u05DF ISO",ipv4:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv4",ipv6:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv6",cidrv4:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv4",cidrv6:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv6",base64:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64",base64url:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64 \\u05DC\\u05DB\\u05EA\\u05D5\\u05D1\\u05D5\\u05EA \\u05E8\\u05E9\\u05EA",json_string:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA JSON",e164:"\\u05DE\\u05E1\\u05E4\\u05E8 E.164",jwt:"JWT",template_literal:"\\u05E7\\u05DC\\u05D8"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA ".concat(t.expected,", \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA ".concat(b(t.values[0])):"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05D0\\u05D7\\u05EA \\u05DE\\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ".concat((o=t.origin)!=null?o:"value"," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elements"):"\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ".concat((s=t.origin)!=null?s:"value"," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ".concat(t.origin," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ".concat(t.origin," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1"\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D0\\u05D9\\u05DD \\u05DC\\u05EA\\u05D1\\u05E0\\u05D9\\u05EA ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF")}case"not_multiple_of":return"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA \\u05DE\\u05DB\\u05E4\\u05DC\\u05D4 \\u05E9\\u05DC ".concat(t.divisor);case"unrecognized_keys":return"\\u05DE\\u05E4\\u05EA\\u05D7".concat(t.keys.length>1?"\\u05D5\\u05EA":""," \\u05DC\\u05D0 \\u05DE\\u05D6\\u05D5\\u05D4").concat(t.keys.length>1?"\\u05D9\\u05DD":"\\u05D4",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u05DE\\u05E4\\u05EA\\u05D7 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1".concat(t.origin);case"invalid_union":return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF";case"invalid_element":return"\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1".concat(t.origin);default:return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF"}}};function Fu(){return{localeError:Fl()}}var Jl=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"sz\\xE1m";case"object":{if(Array.isArray(t))return"t\\xF6mb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"bemenet",email:"email c\\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\\u0151b\\xE9lyeg",date:"ISO d\\xE1tum",time:"ISO id\\u0151",duration:"ISO id\\u0151intervallum",ipv4:"IPv4 c\\xEDm",ipv6:"IPv6 c\\xEDm",cidrv4:"IPv4 tartom\\xE1ny",cidrv6:"IPv6 tartom\\xE1ny",base64:"base64-k\\xF3dolt string",base64url:"base64url-k\\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\\xE1m",jwt:"JWT",template_literal:"bemenet"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ".concat(t.expected,", a kapott \\xE9rt\\xE9k ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ".concat(b(t.values[0])):"\\xC9rv\\xE9nytelen opci\\xF3: valamelyik \\xE9rt\\xE9k v\\xE1rt ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"T\\xFAl nagy: ".concat((o=t.origin)!=null?o:"\\xE9rt\\xE9k"," m\\xE9rete t\\xFAl nagy ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elem"):"T\\xFAl nagy: a bemeneti \\xE9rt\\xE9k ".concat((s=t.origin)!=null?s:"\\xE9rt\\xE9k"," t\\xFAl nagy: ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ".concat(t.origin," m\\xE9rete t\\xFAl kicsi ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ".concat(t.origin," t\\xFAl kicsi ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\xC9rv\\xE9nytelen string: "\'.concat(a.prefix,\'" \\xE9rt\\xE9kkel kell kezd\\u0151dnie\'):a.format==="ends_with"?\'\\xC9rv\\xE9nytelen string: "\'.concat(a.suffix,\'" \\xE9rt\\xE9kkel kell v\\xE9gz\\u0151dnie\'):a.format==="includes"?\'\\xC9rv\\xE9nytelen string: "\'.concat(a.includes,\'" \\xE9rt\\xE9ket kell tartalmaznia\'):a.format==="regex"?"\\xC9rv\\xE9nytelen string: ".concat(a.pattern," mint\\xE1nak kell megfelelnie"):"\\xC9rv\\xE9nytelen ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\xC9rv\\xE9nytelen sz\\xE1m: ".concat(t.divisor," t\\xF6bbsz\\xF6r\\xF6s\\xE9nek kell lennie");case"unrecognized_keys":return"Ismeretlen kulcs".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"\\xC9rv\\xE9nytelen kulcs ".concat(t.origin);case"invalid_union":return"\\xC9rv\\xE9nytelen bemenet";case"invalid_element":return"\\xC9rv\\xE9nytelen \\xE9rt\\xE9k: ".concat(t.origin);default:return"\\xC9rv\\xE9nytelen bemenet"}}};function Ju(){return{localeError:Jl()}}var Ml=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Input tidak valid: diharapkan ".concat(t.expected,", diterima ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Input tidak valid: diharapkan ".concat(b(t.values[0])):"Pilihan tidak valid: diharapkan salah satu dari ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Terlalu besar: diharapkan ".concat((o=t.origin)!=null?o:"value"," memiliki ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elemen"):"Terlalu besar: diharapkan ".concat((s=t.origin)!=null?s:"value"," menjadi ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Terlalu kecil: diharapkan ".concat(t.origin," memiliki ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Terlalu kecil: diharapkan ".concat(t.origin," menjadi ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'String tidak valid: harus dimulai dengan "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'String tidak valid: harus berakhir dengan "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'String tidak valid: harus menyertakan "\'.concat(a.includes,\'"\'):a.format==="regex"?"String tidak valid: harus sesuai pola ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," tidak valid")}case"not_multiple_of":return"Angka tidak valid: harus kelipatan dari ".concat(t.divisor);case"unrecognized_keys":return"Kunci tidak dikenali ".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Kunci tidak valid di ".concat(t.origin);case"invalid_union":return"Input tidak valid";case"invalid_element":return"Nilai tidak valid di ".concat(t.origin);default:return"Input tidak valid"}}};function Mu(){return{localeError:Ml()}}var Bl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"n\\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Kl=()=>{let e={string:{unit:"stafi",verb:"a\\xF0 hafa"},file:{unit:"b\\xE6ti",verb:"a\\xF0 hafa"},array:{unit:"hluti",verb:"a\\xF0 hafa"},set:{unit:"hluti",verb:"a\\xF0 hafa"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"gildi",email:"netfang",url:"vefsl\\xF3\\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\\xEDmi",date:"ISO dagsetning",time:"ISO t\\xEDmi",duration:"ISO t\\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Rangt gildi: \\xDE\\xFA sl\\xF3st inn ".concat(Bl(i.input)," \\xFEar sem \\xE1 a\\xF0 vera ").concat(i.expected);case"invalid_value":return i.values.length===1?"Rangt gildi: gert r\\xE1\\xF0 fyrir ".concat(b(i.values[0])):"\\xD3gilt val: m\\xE1 vera eitt af eftirfarandi ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat((t=i.origin)!=null?t:"gildi"," hafi ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"hluti"):"Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat((u=i.origin)!=null?u:"gildi"," s\\xE9 ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat(i.origin," hafi ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat(i.origin," s\\xE9 ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'\\xD3gildur strengur: ver\\xF0ur a\\xF0 byrja \\xE1 "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'\\xD3gildur strengur: ver\\xF0ur a\\xF0 enda \\xE1 "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'\\xD3gildur strengur: ver\\xF0ur a\\xF0 innihalda "\'.concat(c.includes,\'"\'):c.format==="regex"?"\\xD3gildur strengur: ver\\xF0ur a\\xF0 fylgja mynstri ".concat(c.pattern):"Rangt ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"R\\xF6ng tala: ver\\xF0ur a\\xF0 vera margfeldi af ".concat(i.divisor);case"unrecognized_keys":return"\\xD3\\xFEekkt ".concat(i.keys.length>1?"ir lyklar":"ur lykill",": ").concat(p(i.keys,", "));case"invalid_key":return"Rangur lykill \\xED ".concat(i.origin);case"invalid_union":return"Rangt gildi";case"invalid_element":return"Rangt gildi \\xED ".concat(i.origin);default:return"Rangt gildi"}}};function Bu(){return{localeError:Kl()}}var Gl=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Input non valido: atteso ".concat(t.expected,", ricevuto ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Input non valido: atteso ".concat(b(t.values[0])):"Opzione non valida: atteso uno tra ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Troppo grande: ".concat((o=t.origin)!=null?o:"valore"," deve avere ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementi"):"Troppo grande: ".concat((s=t.origin)!=null?s:"valore"," deve essere ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Troppo piccolo: ".concat(t.origin," deve avere ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Troppo piccolo: ".concat(t.origin," deve essere ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Stringa non valida: deve iniziare con "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Stringa non valida: deve terminare con "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Stringa non valida: deve includere "\'.concat(a.includes,\'"\'):a.format==="regex"?"Stringa non valida: deve corrispondere al pattern ".concat(a.pattern):"Invalid ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Numero non valido: deve essere un multiplo di ".concat(t.divisor);case"unrecognized_keys":return"Chiav".concat(t.keys.length>1?"i":"e"," non riconosciut").concat(t.keys.length>1?"e":"a",": ").concat(p(t.keys,", "));case"invalid_key":return"Chiave non valida in ".concat(t.origin);case"invalid_union":return"Input non valido";case"invalid_element":return"Valore non valido in ".concat(t.origin);default:return"Input non valido"}}};function Ku(){return{localeError:Gl()}}var Wl=()=>{let e={string:{unit:"\\u6587\\u5B57",verb:"\\u3067\\u3042\\u308B"},file:{unit:"\\u30D0\\u30A4\\u30C8",verb:"\\u3067\\u3042\\u308B"},array:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"},set:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u6570\\u5024";case"object":{if(Array.isArray(t))return"\\u914D\\u5217";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u5165\\u529B\\u5024",email:"\\u30E1\\u30FC\\u30EB\\u30A2\\u30C9\\u30EC\\u30B9",url:"URL",emoji:"\\u7D75\\u6587\\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u6642",date:"ISO\\u65E5\\u4ED8",time:"ISO\\u6642\\u523B",duration:"ISO\\u671F\\u9593",ipv4:"IPv4\\u30A2\\u30C9\\u30EC\\u30B9",ipv6:"IPv6\\u30A2\\u30C9\\u30EC\\u30B9",cidrv4:"IPv4\\u7BC4\\u56F2",cidrv6:"IPv6\\u7BC4\\u56F2",base64:"base64\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",base64url:"base64url\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",json_string:"JSON\\u6587\\u5B57\\u5217",e164:"E.164\\u756A\\u53F7",jwt:"JWT",template_literal:"\\u5165\\u529B\\u5024"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u7121\\u52B9\\u306A\\u5165\\u529B: ".concat(t.expected,"\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001").concat(n(t.input),"\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F");case"invalid_value":return t.values.length===1?"\\u7121\\u52B9\\u306A\\u5165\\u529B: ".concat(b(t.values[0]),"\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F"):"\\u7121\\u52B9\\u306A\\u9078\\u629E: ".concat(p(t.values,"\\u3001"),"\\u306E\\u3044\\u305A\\u308C\\u304B\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059");case"too_big":{let a=t.inclusive?"\\u4EE5\\u4E0B\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5C0F\\u3055\\u3044",l=r(t.origin);return l?"\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ".concat((o=t.origin)!=null?o:"\\u5024","\\u306F").concat(t.maximum.toString()).concat((u=l.unit)!=null?u:"\\u8981\\u7D20").concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059"):"\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ".concat((s=t.origin)!=null?s:"\\u5024","\\u306F").concat(t.maximum.toString()).concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059")}case"too_small":{let a=t.inclusive?"\\u4EE5\\u4E0A\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5927\\u304D\\u3044",l=r(t.origin);return l?"\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ".concat(t.origin,"\\u306F").concat(t.minimum.toString()).concat(l.unit).concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059"):"\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ".concat(t.origin,"\\u306F").concat(t.minimum.toString()).concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "\'.concat(a.prefix,\'"\\u3067\\u59CB\\u307E\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059\'):a.format==="ends_with"?\'\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "\'.concat(a.suffix,\'"\\u3067\\u7D42\\u308F\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059\'):a.format==="includes"?\'\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "\'.concat(a.includes,\'"\\u3092\\u542B\\u3080\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059\'):a.format==="regex"?"\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \\u30D1\\u30BF\\u30FC\\u30F3".concat(a.pattern,"\\u306B\\u4E00\\u81F4\\u3059\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059"):"\\u7121\\u52B9\\u306A".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u7121\\u52B9\\u306A\\u6570\\u5024: ".concat(t.divisor,"\\u306E\\u500D\\u6570\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059");case"unrecognized_keys":return"\\u8A8D\\u8B58\\u3055\\u308C\\u3066\\u3044\\u306A\\u3044\\u30AD\\u30FC".concat(t.keys.length>1?"\\u7FA4":"",": ").concat(p(t.keys,"\\u3001"));case"invalid_key":return"".concat(t.origin,"\\u5185\\u306E\\u7121\\u52B9\\u306A\\u30AD\\u30FC");case"invalid_union":return"\\u7121\\u52B9\\u306A\\u5165\\u529B";case"invalid_element":return"".concat(t.origin,"\\u5185\\u306E\\u7121\\u52B9\\u306A\\u5024");default:return"\\u7121\\u52B9\\u306A\\u5165\\u529B"}}};function Gu(){return{localeError:Wl()}}var Xl=e=>{var i;let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8";case"object":{if(Array.isArray(e))return"\\u10DB\\u10D0\\u10E1\\u10D8\\u10D5\\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return(i={string:"\\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",boolean:"\\u10D1\\u10E3\\u10DA\\u10D4\\u10D0\\u10DC\\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\\u10E4\\u10E3\\u10DC\\u10E5\\u10EA\\u10D8\\u10D0"}[r])!=null?i:r},ql=()=>{let e={string:{unit:"\\u10E1\\u10D8\\u10DB\\u10D1\\u10DD\\u10DA\\u10DD",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},file:{unit:"\\u10D1\\u10D0\\u10D8\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},array:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},set:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0",email:"\\u10D4\\u10DA-\\u10E4\\u10DD\\u10E1\\u10E2\\u10D8\\u10E1 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",url:"URL",emoji:"\\u10D4\\u10DB\\u10DD\\u10EF\\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8-\\u10D3\\u10E0\\u10DD",date:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8",time:"\\u10D3\\u10E0\\u10DD",duration:"\\u10EE\\u10D0\\u10DC\\u10D2\\u10E0\\u10EB\\u10DA\\u10D8\\u10D5\\u10DD\\u10D1\\u10D0",ipv4:"IPv4 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",ipv6:"IPv6 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",cidrv4:"IPv4 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",cidrv6:"IPv6 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",base64:"base64-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",base64url:"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",json_string:"JSON \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",e164:"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",jwt:"JWT",template_literal:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"};return i=>{var t,o,u;switch(i.code){case"invalid_type":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(i.expected,", \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ").concat(Xl(i.input));case"invalid_value":return i.values.length===1?"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(b(i.values[0])):"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D0\\u10E0\\u10D8\\u10D0\\u10DC\\u10E2\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8\\u10D0 \\u10D4\\u10E0\\u10D7-\\u10D4\\u10E0\\u10D7\\u10D8 ".concat(p(i.values,"|"),"-\\u10D3\\u10D0\\u10DC");case"too_big":{let s=i.inclusive?"<=":"<",c=r(i.origin);return c?"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat((t=i.origin)!=null?t:"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"," ").concat(c.verb," ").concat(s).concat(i.maximum.toString()," ").concat(c.unit):"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat((o=i.origin)!=null?o:"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"," \\u10D8\\u10E7\\u10DD\\u10E1 ").concat(s).concat(i.maximum.toString())}case"too_small":{let s=i.inclusive?">=":">",c=r(i.origin);return c?"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(i.origin," ").concat(c.verb," ").concat(s).concat(i.minimum.toString()," ").concat(c.unit):"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(i.origin," \\u10D8\\u10E7\\u10DD\\u10E1 ").concat(s).concat(i.minimum.toString())}case"invalid_format":{let s=i;return s.format==="starts_with"?\'\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10EC\\u10E7\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "\'.concat(s.prefix,\'"-\\u10D8\\u10D7\'):s.format==="ends_with"?\'\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10DB\\u10D7\\u10D0\\u10D5\\u10E0\\u10D3\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "\'.concat(s.suffix,\'"-\\u10D8\\u10D7\'):s.format==="includes"?\'\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1 "\'.concat(s.includes,\'"-\\u10E1\'):s.format==="regex"?"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D4\\u10E1\\u10D0\\u10D1\\u10D0\\u10DB\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \\u10E8\\u10D0\\u10D1\\u10DA\\u10DD\\u10DC\\u10E1 ".concat(s.pattern):"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 ".concat((u=n[s.format])!=null?u:i.format)}case"not_multiple_of":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10E7\\u10DD\\u10E1 ".concat(i.divisor,"-\\u10D8\\u10E1 \\u10EF\\u10D4\\u10E0\\u10D0\\u10D3\\u10D8");case"unrecognized_keys":return"\\u10E3\\u10EA\\u10DC\\u10DD\\u10D1\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1".concat(i.keys.length>1?"\\u10D4\\u10D1\\u10D8":"\\u10D8",": ").concat(p(i.keys,", "));case"invalid_key":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1\\u10D8 ".concat(i.origin,"-\\u10E8\\u10D8");case"invalid_union":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0";case"invalid_element":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0 ".concat(i.origin,"-\\u10E8\\u10D8");default:return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"}}};function Wu(){return{localeError:ql()}}var Yl=()=>{let e={string:{unit:"\\u178F\\u17BD\\u17A2\\u1780\\u17D2\\u179F\\u179A",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},file:{unit:"\\u1794\\u17C3",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},array:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},set:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u1798\\u17B7\\u1793\\u1798\\u17C2\\u1793\\u1787\\u17B6\\u179B\\u17C1\\u1781 (NaN)":"\\u179B\\u17C1\\u1781";case"object":{if(Array.isArray(t))return"\\u17A2\\u17B6\\u179A\\u17C1 (Array)";if(t===null)return"\\u1782\\u17D2\\u1798\\u17B6\\u1793\\u178F\\u1798\\u17D2\\u179B\\u17C3 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B",email:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793\\u17A2\\u17CA\\u17B8\\u1798\\u17C2\\u179B",url:"URL",emoji:"\\u179F\\u1789\\u17D2\\u1789\\u17B6\\u17A2\\u17B6\\u179A\\u1798\\u17D2\\u1798\\u178E\\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 \\u1793\\u17B7\\u1784\\u1798\\u17C9\\u17C4\\u1784 ISO",date:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 ISO",time:"\\u1798\\u17C9\\u17C4\\u1784 ISO",duration:"\\u179A\\u1799\\u17C8\\u1796\\u17C1\\u179B ISO",ipv4:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",ipv6:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",cidrv4:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",cidrv6:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",base64:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64",base64url:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64url",json_string:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A JSON",e164:"\\u179B\\u17C1\\u1781 E.164",jwt:"JWT",template_literal:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(t.expected," \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(b(t.values[0])):"\\u1787\\u1798\\u17D2\\u179A\\u17BE\\u179F\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1787\\u17B6\\u1798\\u17BD\\u1799\\u1780\\u17D2\\u1793\\u17BB\\u1784\\u1785\\u17C6\\u178E\\u17C4\\u1798 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat((o=t.origin)!=null?o:"\\u178F\\u1798\\u17D2\\u179B\\u17C3"," ").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u1792\\u17B6\\u178F\\u17BB"):"\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat((s=t.origin)!=null?s:"\\u178F\\u1798\\u17D2\\u179B\\u17C3"," ").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(t.origin," ").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(t.origin," ").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1785\\u17B6\\u1794\\u17CB\\u1795\\u17D2\\u178F\\u17BE\\u1798\\u178A\\u17C4\\u1799 "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1794\\u1789\\u17D2\\u1785\\u1794\\u17CB\\u178A\\u17C4\\u1799 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1798\\u17B6\\u1793 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1795\\u17D2\\u1782\\u17BC\\u1795\\u17D2\\u1782\\u1784\\u1793\\u17B9\\u1784\\u1791\\u1798\\u17D2\\u179A\\u1784\\u17CB\\u178A\\u17C2\\u179B\\u1794\\u17B6\\u1793\\u1780\\u17C6\\u178E\\u178F\\u17CB ".concat(a.pattern):"\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u179B\\u17C1\\u1781\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1787\\u17B6\\u1796\\u17A0\\u17BB\\u1782\\u17BB\\u178E\\u1793\\u17C3 ".concat(t.divisor);case"unrecognized_keys":return"\\u179A\\u1780\\u1783\\u17BE\\u1789\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u179F\\u17D2\\u1782\\u17B6\\u179B\\u17CB\\u17D6 ".concat(p(t.keys,", "));case"invalid_key":return"\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ".concat(t.origin);case"invalid_union":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C";case"invalid_element":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ".concat(t.origin);default:return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C"}}};function rr(){return{localeError:Yl()}}function Xu(){return rr()}var Ql=()=>{let e={string:{unit:"\\uBB38\\uC790",verb:"to have"},file:{unit:"\\uBC14\\uC774\\uD2B8",verb:"to have"},array:{unit:"\\uAC1C",verb:"to have"},set:{unit:"\\uAC1C",verb:"to have"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\uC785\\uB825",email:"\\uC774\\uBA54\\uC77C \\uC8FC\\uC18C",url:"URL",emoji:"\\uC774\\uBAA8\\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\uB0A0\\uC9DC\\uC2DC\\uAC04",date:"ISO \\uB0A0\\uC9DC",time:"ISO \\uC2DC\\uAC04",duration:"ISO \\uAE30\\uAC04",ipv4:"IPv4 \\uC8FC\\uC18C",ipv6:"IPv6 \\uC8FC\\uC18C",cidrv4:"IPv4 \\uBC94\\uC704",cidrv6:"IPv6 \\uBC94\\uC704",base64:"base64 \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",base64url:"base64url \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",json_string:"JSON \\uBB38\\uC790\\uC5F4",e164:"E.164 \\uBC88\\uD638",jwt:"JWT",template_literal:"\\uC785\\uB825"};return t=>{var o,u,s,c,a,l,v;switch(t.code){case"invalid_type":return"\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 ".concat(t.expected,", \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ").concat(n(t.input),"\\uC785\\uB2C8\\uB2E4");case"invalid_value":return t.values.length===1?"\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ".concat(b(t.values[0])," \\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4"):"\\uC798\\uBABB\\uB41C \\uC635\\uC158: ".concat(p(t.values,"\\uB610\\uB294 ")," \\uC911 \\uD558\\uB098\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4");case"too_big":{let f=t.inclusive?"\\uC774\\uD558":"\\uBBF8\\uB9CC",h=f==="\\uBBF8\\uB9CC"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",x=r(t.origin),S=(o=x==null?void 0:x.unit)!=null?o:"\\uC694\\uC18C";return x?"".concat((u=t.origin)!=null?u:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ").concat(t.maximum.toString()).concat(S," ").concat(f).concat(h):"".concat((s=t.origin)!=null?s:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ").concat(t.maximum.toString()," ").concat(f).concat(h)}case"too_small":{let f=t.inclusive?"\\uC774\\uC0C1":"\\uCD08\\uACFC",h=f==="\\uC774\\uC0C1"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",x=r(t.origin),S=(c=x==null?void 0:x.unit)!=null?c:"\\uC694\\uC18C";return x?"".concat((a=t.origin)!=null?a:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ").concat(t.minimum.toString()).concat(S," ").concat(f).concat(h):"".concat((l=t.origin)!=null?l:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ").concat(t.minimum.toString()," ").concat(f).concat(h)}case"invalid_format":{let f=t;return f.format==="starts_with"?\'\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "\'.concat(f.prefix,\'"(\\uC73C)\\uB85C \\uC2DC\\uC791\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4\'):f.format==="ends_with"?\'\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "\'.concat(f.suffix,\'"(\\uC73C)\\uB85C \\uB05D\\uB098\\uC57C \\uD569\\uB2C8\\uB2E4\'):f.format==="includes"?\'\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "\'.concat(f.includes,\'"\\uC744(\\uB97C) \\uD3EC\\uD568\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4\'):f.format==="regex"?"\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \\uC815\\uADDC\\uC2DD ".concat(f.pattern," \\uD328\\uD134\\uACFC \\uC77C\\uCE58\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4"):"\\uC798\\uBABB\\uB41C ".concat((v=i[f.format])!=null?v:t.format)}case"not_multiple_of":return"\\uC798\\uBABB\\uB41C \\uC22B\\uC790: ".concat(t.divisor,"\\uC758 \\uBC30\\uC218\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4");case"unrecognized_keys":return"\\uC778\\uC2DD\\uD560 \\uC218 \\uC5C6\\uB294 \\uD0A4: ".concat(p(t.keys,", "));case"invalid_key":return"\\uC798\\uBABB\\uB41C \\uD0A4: ".concat(t.origin);case"invalid_union":return"\\uC798\\uBABB\\uB41C \\uC785\\uB825";case"invalid_element":return"\\uC798\\uBABB\\uB41C \\uAC12: ".concat(t.origin);default:return"\\uC798\\uBABB\\uB41C \\uC785\\uB825"}}};function qu(){return{localeError:Ql()}}var Hl=e=>ut(typeof e,e),ut=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skai\\u010Dius";case"bigint":return"sveikasis skai\\u010Dius";case"string":return"eilut\\u0117";case"boolean":return"login\\u0117 reik\\u0161m\\u0117";case"undefined":case"void":return"neapibr\\u0117\\u017Eta reik\\u0161m\\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"ne\\u017Einomas objektas":r===null?"nulin\\u0117 reik\\u0161m\\u0117":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulin\\u0117 reik\\u0161m\\u0117"}return e},at=e=>e.charAt(0).toUpperCase()+e.slice(1);function Yu(e){let r=Math.abs(e),n=r%10,i=r%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var ed=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne ilgesn\\u0117 kaip",notInclusive:"turi b\\u016Bti trumpesn\\u0117 kaip"},bigger:{inclusive:"turi b\\u016Bti ne trumpesn\\u0117 kaip",notInclusive:"turi b\\u016Bti ilgesn\\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne didesnis kaip",notInclusive:"turi b\\u016Bti ma\\u017Eesnis kaip"},bigger:{inclusive:"turi b\\u016Bti ne ma\\u017Eesnis kaip",notInclusive:"turi b\\u016Bti didesnis kaip"}}},array:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}},set:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}}};function r(i,t,o,u){var c;let s=(c=e[i])!=null?c:null;return s===null?s:{unit:s.unit[t],verb:s.verb[u][o?"inclusive":"notInclusive"]}}let n={regex:"\\u012Fvestis",email:"el. pa\\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\\u017Ekoduota eilut\\u0117",base64url:"base64url u\\u017Ekoduota eilut\\u0117",json_string:"JSON eilut\\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\\u012Fvestis"};return i=>{var t,o,u,s,c,a,l,v,f,h;switch(i.code){case"invalid_type":return"Gautas tipas ".concat(Hl(i.input),", o tik\\u0117tasi - ").concat(ut(i.expected));case"invalid_value":return i.values.length===1?"Privalo b\\u016Bti ".concat(b(i.values[0])):"Privalo b\\u016Bti vienas i\\u0161 ".concat(p(i.values,"|")," pasirinkim\\u0173");case"too_big":{let x=ut(i.origin),S=r(i.origin,Yu(Number(i.maximum)),(t=i.inclusive)!=null?t:!1,"smaller");if(S!=null&&S.verb)return"".concat(at((o=x!=null?x:i.origin)!=null?o:"reik\\u0161m\\u0117")," ").concat(S.verb," ").concat(i.maximum.toString()," ").concat((u=S.unit)!=null?u:"element\\u0173");let I=i.inclusive?"ne didesnis kaip":"ma\\u017Eesnis kaip";return"".concat(at((s=x!=null?x:i.origin)!=null?s:"reik\\u0161m\\u0117")," turi b\\u016Bti ").concat(I," ").concat(i.maximum.toString()," ").concat(S==null?void 0:S.unit)}case"too_small":{let x=ut(i.origin),S=r(i.origin,Yu(Number(i.minimum)),(c=i.inclusive)!=null?c:!1,"bigger");if(S!=null&&S.verb)return"".concat(at((a=x!=null?x:i.origin)!=null?a:"reik\\u0161m\\u0117")," ").concat(S.verb," ").concat(i.minimum.toString()," ").concat((l=S.unit)!=null?l:"element\\u0173");let I=i.inclusive?"ne ma\\u017Eesnis kaip":"didesnis kaip";return"".concat(at((v=x!=null?x:i.origin)!=null?v:"reik\\u0161m\\u0117")," turi b\\u016Bti ").concat(I," ").concat(i.minimum.toString()," ").concat(S==null?void 0:S.unit)}case"invalid_format":{let x=i;return x.format==="starts_with"?\'Eilut\\u0117 privalo prasid\\u0117ti "\'.concat(x.prefix,\'"\'):x.format==="ends_with"?\'Eilut\\u0117 privalo pasibaigti "\'.concat(x.suffix,\'"\'):x.format==="includes"?\'Eilut\\u0117 privalo \\u012Ftraukti "\'.concat(x.includes,\'"\'):x.format==="regex"?"Eilut\\u0117 privalo atitikti ".concat(x.pattern):"Neteisingas ".concat((f=n[x.format])!=null?f:i.format)}case"not_multiple_of":return"Skai\\u010Dius privalo b\\u016Bti ".concat(i.divisor," kartotinis.");case"unrecognized_keys":return"Neatpa\\u017Eint".concat(i.keys.length>1?"i":"as"," rakt").concat(i.keys.length>1?"ai":"as",": ").concat(p(i.keys,", "));case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \\u012Fvestis";case"invalid_element":{let x=ut(i.origin);return"".concat(at((h=x!=null?x:i.origin)!=null?h:"reik\\u0161m\\u0117")," turi klaiding\\u0105 \\u012Fvest\\u012F")}default:return"Klaidinga \\u012Fvestis"}}};function Qu(){return{localeError:ed()}}var td=()=>{let e={string:{unit:"\\u0437\\u043D\\u0430\\u0446\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},file:{unit:"\\u0431\\u0430\\u0458\\u0442\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},array:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},set:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0431\\u0440\\u043E\\u0458";case"object":{if(Array.isArray(t))return"\\u043D\\u0438\\u0437\\u0430";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0432\\u043D\\u0435\\u0441",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u043D\\u0430 \\u0435-\\u043F\\u043E\\u0448\\u0442\\u0430",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u045F\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C \\u0438 \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\\u0442\\u0440\\u0430\\u0435\\u045A\\u0435",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",cidrv4:"IPv4 \\u043E\\u043F\\u0441\\u0435\\u0433",cidrv6:"IPv6 \\u043E\\u043F\\u0441\\u0435\\u0433",base64:"base64-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",base64url:"base64url-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",json_string:"JSON \\u043D\\u0438\\u0437\\u0430",e164:"E.164 \\u0431\\u0440\\u043E\\u0458",jwt:"JWT",template_literal:"\\u0432\\u043D\\u0435\\u0441"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat(t.expected,", \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Invalid input: expected ".concat(b(t.values[0])):"\\u0413\\u0440\\u0435\\u0448\\u0430\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u0458\\u0430: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 \\u0435\\u0434\\u043D\\u0430 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat((o=t.origin)!=null?o:"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"," \\u0434\\u0430 \\u0438\\u043C\\u0430 ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0438"):"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat((s=t.origin)!=null?s:"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"," \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat(t.origin," \\u0434\\u0430 \\u0438\\u043C\\u0430 ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat(t.origin," \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u043D\\u0443\\u0432\\u0430 \\u0441\\u043E "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u0440\\u0448\\u0443\\u0432\\u0430 \\u0441\\u043E "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u0443\\u0447\\u0443\\u0432\\u0430 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u043E\\u0434\\u0433\\u043E\\u0430\\u0440\\u0430 \\u043D\\u0430 \\u043F\\u0430\\u0442\\u0435\\u0440\\u043D\\u043E\\u0442 ".concat(a.pattern):"Invalid ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0431\\u0440\\u043E\\u0458: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 \\u0434\\u0435\\u043B\\u0438\\u0432 \\u0441\\u043E ".concat(t.divisor);case"unrecognized_keys":return"".concat(t.keys.length>1?"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D\\u0438 \\u043A\\u043B\\u0443\\u0447\\u0435\\u0432\\u0438":"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447 \\u0432\\u043E ".concat(t.origin);case"invalid_union":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441";case"invalid_element":return"\\u0413\\u0440\\u0435\\u0448\\u043D\\u0430 \\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442 \\u0432\\u043E ".concat(t.origin);default:return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441"}}};function Hu(){return{localeError:td()}}var rd=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Input tidak sah: dijangka ".concat(t.expected,", diterima ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Input tidak sah: dijangka ".concat(b(t.values[0])):"Pilihan tidak sah: dijangka salah satu daripada ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Terlalu besar: dijangka ".concat((o=t.origin)!=null?o:"nilai"," ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elemen"):"Terlalu besar: dijangka ".concat((s=t.origin)!=null?s:"nilai"," adalah ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Terlalu kecil: dijangka ".concat(t.origin," ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Terlalu kecil: dijangka ".concat(t.origin," adalah ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'String tidak sah: mesti bermula dengan "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'String tidak sah: mesti berakhir dengan "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'String tidak sah: mesti mengandungi "\'.concat(a.includes,\'"\'):a.format==="regex"?"String tidak sah: mesti sepadan dengan corak ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," tidak sah")}case"not_multiple_of":return"Nombor tidak sah: perlu gandaan ".concat(t.divisor);case"unrecognized_keys":return"Kunci tidak dikenali: ".concat(p(t.keys,", "));case"invalid_key":return"Kunci tidak sah dalam ".concat(t.origin);case"invalid_union":return"Input tidak sah";case"invalid_element":return"Nilai tidak sah dalam ".concat(t.origin);default:return"Input tidak sah"}}};function ec(){return{localeError:rd()}}var nd=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Ongeldige invoer: verwacht ".concat(t.expected,", ontving ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ongeldige invoer: verwacht ".concat(b(t.values[0])):"Ongeldige optie: verwacht \\xE9\\xE9n van ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Te lang: verwacht dat ".concat((o=t.origin)!=null?o:"waarde"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementen"," bevat"):"Te lang: verwacht dat ".concat((s=t.origin)!=null?s:"waarde"," ").concat(a).concat(t.maximum.toString()," is")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Te kort: verwacht dat ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," bevat"):"Te kort: verwacht dat ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," is")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Ongeldige tekst: moet met "\'.concat(a.prefix,\'" beginnen\'):a.format==="ends_with"?\'Ongeldige tekst: moet op "\'.concat(a.suffix,\'" eindigen\'):a.format==="includes"?\'Ongeldige tekst: moet "\'.concat(a.includes,\'" bevatten\'):a.format==="regex"?"Ongeldige tekst: moet overeenkomen met patroon ".concat(a.pattern):"Ongeldig: ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Ongeldig getal: moet een veelvoud van ".concat(t.divisor," zijn");case"unrecognized_keys":return"Onbekende key".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Ongeldige key in ".concat(t.origin);case"invalid_union":return"Ongeldige invoer";case"invalid_element":return"Ongeldige waarde in ".concat(t.origin);default:return"Ongeldige invoer"}}};function tc(){return{localeError:nd()}}var id=()=>{let e={string:{unit:"tegn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"elementer",verb:"\\xE5 inneholde"},set:{unit:"elementer",verb:"\\xE5 inneholde"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\\xE5de",ipv6:"IPv6-omr\\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Ugyldig input: forventet ".concat(t.expected,", fikk ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ugyldig verdi: forventet ".concat(b(t.values[0])):"Ugyldig valg: forventet en av ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"For stor(t): forventet ".concat((o=t.origin)!=null?o:"value"," til \\xE5 ha ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementer"):"For stor(t): forventet ".concat((s=t.origin)!=null?s:"value"," til \\xE5 ha ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"For lite(n): forventet ".concat(t.origin," til \\xE5 ha ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"For lite(n): forventet ".concat(t.origin," til \\xE5 ha ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Ugyldig streng: m\\xE5 starte med "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Ugyldig streng: m\\xE5 ende med "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Ugyldig streng: m\\xE5 inneholde "\'.concat(a.includes,\'"\'):a.format==="regex"?"Ugyldig streng: m\\xE5 matche m\\xF8nsteret ".concat(a.pattern):"Ugyldig ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Ugyldig tall: m\\xE5 v\\xE6re et multiplum av ".concat(t.divisor);case"unrecognized_keys":return"".concat(t.keys.length>1?"Ukjente n\\xF8kler":"Ukjent n\\xF8kkel",": ").concat(p(t.keys,", "));case"invalid_key":return"Ugyldig n\\xF8kkel i ".concat(t.origin);case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i ".concat(t.origin);default:return"Ugyldig input"}}};function rc(){return{localeError:id()}}var od=()=>{let e={string:{unit:"harf",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"},set:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"giren",email:"epostag\\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\\xE2m\\u0131",date:"ISO tarihi",time:"ISO zaman\\u0131",duration:"ISO m\\xFCddeti",ipv4:"IPv4 ni\\u015F\\xE2n\\u0131",ipv6:"IPv6 ni\\u015F\\xE2n\\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\\u015Fifreli metin",base64url:"base64url-\\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\\u0131s\\u0131",jwt:"JWT",template_literal:"giren"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"F\\xE2sit giren: umulan ".concat(t.expected,", al\\u0131nan ").concat(n(t.input));case"invalid_value":return t.values.length===1?"F\\xE2sit giren: umulan ".concat(b(t.values[0])):"F\\xE2sit tercih: m\\xFBteberler ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Fazla b\\xFCy\\xFCk: ".concat((o=t.origin)!=null?o:"value",", ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elements"," sahip olmal\\u0131yd\\u0131."):"Fazla b\\xFCy\\xFCk: ".concat((s=t.origin)!=null?s:"value",", ").concat(a).concat(t.maximum.toString()," olmal\\u0131yd\\u0131.")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Fazla k\\xFC\\xE7\\xFCk: ".concat(t.origin,", ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," sahip olmal\\u0131yd\\u0131."):"Fazla k\\xFC\\xE7\\xFCk: ".concat(t.origin,", ").concat(a).concat(t.minimum.toString()," olmal\\u0131yd\\u0131.")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'F\\xE2sit metin: "\'.concat(a.prefix,\'" ile ba\\u015Flamal\\u0131.\'):a.format==="ends_with"?\'F\\xE2sit metin: "\'.concat(a.suffix,\'" ile bitmeli.\'):a.format==="includes"?\'F\\xE2sit metin: "\'.concat(a.includes,\'" ihtiv\\xE2 etmeli.\'):a.format==="regex"?"F\\xE2sit metin: ".concat(a.pattern," nak\\u015F\\u0131na uymal\\u0131."):"F\\xE2sit ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"F\\xE2sit say\\u0131: ".concat(t.divisor," kat\\u0131 olmal\\u0131yd\\u0131.");case"unrecognized_keys":return"Tan\\u0131nmayan anahtar ".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," i\\xE7in tan\\u0131nmayan anahtar var.");case"invalid_union":return"Giren tan\\u0131namad\\u0131.";case"invalid_element":return"".concat(t.origin," i\\xE7in tan\\u0131nmayan k\\u0131ymet var.");default:return"K\\u0131ymet tan\\u0131namad\\u0131."}}};function nc(){return{localeError:od()}}var ad=()=>{let e={string:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},file:{unit:"\\u0628\\u0627\\u06CC\\u067C\\u0633",verb:"\\u0648\\u0644\\u0631\\u064A"},array:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},set:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0639\\u062F\\u062F";case"object":{if(Array.isArray(t))return"\\u0627\\u0631\\u06D0";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0648\\u0631\\u0648\\u062F\\u064A",email:"\\u0628\\u0631\\u06CC\\u069A\\u0646\\u0627\\u0644\\u06CC\\u06A9",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0646\\u06CC\\u067C\\u0647 \\u0627\\u0648 \\u0648\\u062E\\u062A",date:"\\u0646\\u06D0\\u067C\\u0647",time:"\\u0648\\u062E\\u062A",duration:"\\u0645\\u0648\\u062F\\u0647",ipv4:"\\u062F IPv4 \\u067E\\u062A\\u0647",ipv6:"\\u062F IPv6 \\u067E\\u062A\\u0647",cidrv4:"\\u062F IPv4 \\u0633\\u0627\\u062D\\u0647",cidrv6:"\\u062F IPv6 \\u0633\\u0627\\u062D\\u0647",base64:"base64-encoded \\u0645\\u062A\\u0646",base64url:"base64url-encoded \\u0645\\u062A\\u0646",json_string:"JSON \\u0645\\u062A\\u0646",e164:"\\u062F E.164 \\u0634\\u0645\\u06D0\\u0631\\u0647",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u064A"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ".concat(t.expected," \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ").concat(n(t.input)," \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648");case"invalid_value":return t.values.length===1?"\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ".concat(b(t.values[0])," \\u0648\\u0627\\u06CC"):"\\u0646\\u0627\\u0633\\u0645 \\u0627\\u0646\\u062A\\u062E\\u0627\\u0628: \\u0628\\u0627\\u06CC\\u062F \\u06CC\\u0648 \\u0644\\u0647 ".concat(p(t.values,"|")," \\u0685\\u062E\\u0647 \\u0648\\u0627\\u06CC");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ".concat((o=t.origin)!=null?o:"\\u0627\\u0631\\u0632\\u069A\\u062A"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0635\\u0631\\u0648\\u0646\\u0647"," \\u0648\\u0644\\u0631\\u064A"):"\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ".concat((s=t.origin)!=null?s:"\\u0627\\u0631\\u0632\\u069A\\u062A"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," \\u0648\\u064A")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u0648\\u0644\\u0631\\u064A"):"\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," \\u0648\\u064A")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "\'.concat(a.prefix,\'" \\u0633\\u0631\\u0647 \\u067E\\u06CC\\u0644 \\u0634\\u064A\'):a.format==="ends_with"?\'\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "\'.concat(a.suffix,\'" \\u0633\\u0631\\u0647 \\u067E\\u0627\\u06CC \\u062A\\u0647 \\u0648\\u0631\\u0633\\u064A\\u0696\\u064A\'):a.format==="includes"?\'\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F "\'.concat(a.includes,\'" \\u0648\\u0644\\u0631\\u064A\'):a.format==="regex"?"\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F ".concat(a.pattern," \\u0633\\u0631\\u0647 \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u0648\\u0644\\u0631\\u064A"):"".concat((c=i[a.format])!=null?c:t.format," \\u0646\\u0627\\u0633\\u0645 \\u062F\\u06CC")}case"not_multiple_of":return"\\u0646\\u0627\\u0633\\u0645 \\u0639\\u062F\\u062F: \\u0628\\u0627\\u06CC\\u062F \\u062F ".concat(t.divisor," \\u0645\\u0636\\u0631\\u0628 \\u0648\\u064A");case"unrecognized_keys":return"\\u0646\\u0627\\u0633\\u0645 ".concat(t.keys.length>1?"\\u06A9\\u0644\\u06CC\\u0689\\u0648\\u0646\\u0647":"\\u06A9\\u0644\\u06CC\\u0689",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u0646\\u0627\\u0633\\u0645 \\u06A9\\u0644\\u06CC\\u0689 \\u067E\\u0647 ".concat(t.origin," \\u06A9\\u06D0");case"invalid_union":return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A";case"invalid_element":return"\\u0646\\u0627\\u0633\\u0645 \\u0639\\u0646\\u0635\\u0631 \\u067E\\u0647 ".concat(t.origin," \\u06A9\\u06D0");default:return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A"}}};function ic(){return{localeError:ad()}}var ud=()=>{let e={string:{unit:"znak\\xF3w",verb:"mie\\u0107"},file:{unit:"bajt\\xF3w",verb:"mie\\u0107"},array:{unit:"element\\xF3w",verb:"mie\\u0107"},set:{unit:"element\\xF3w",verb:"mie\\u0107"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"wyra\\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\\u0105g znak\\xF3w zakodowany w formacie base64",base64url:"ci\\u0105g znak\\xF3w zakodowany w formacie base64url",json_string:"ci\\u0105g znak\\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\\u015Bcie"};return t=>{var o,u,s,c,a,l,v;switch(t.code){case"invalid_type":return"Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ".concat(t.expected,", otrzymano ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ".concat(b(t.values[0])):"Nieprawid\\u0142owa opcja: oczekiwano jednej z warto\\u015Bci ".concat(p(t.values,"|"));case"too_big":{let f=t.inclusive?"<=":"<",h=r(t.origin);return h?"Za du\\u017Ca warto\\u015B\\u0107: oczekiwano, \\u017Ce ".concat((o=t.origin)!=null?o:"warto\\u015B\\u0107"," b\\u0119dzie mie\\u0107 ").concat(f).concat(t.maximum.toString()," ").concat((u=h.unit)!=null?u:"element\\xF3w"):"Zbyt du\\u017C(y/a/e): oczekiwano, \\u017Ce ".concat((s=t.origin)!=null?s:"warto\\u015B\\u0107"," b\\u0119dzie wynosi\\u0107 ").concat(f).concat(t.maximum.toString())}case"too_small":{let f=t.inclusive?">=":">",h=r(t.origin);return h?"Za ma\\u0142a warto\\u015B\\u0107: oczekiwano, \\u017Ce ".concat((c=t.origin)!=null?c:"warto\\u015B\\u0107"," b\\u0119dzie mie\\u0107 ").concat(f).concat(t.minimum.toString()," ").concat((a=h.unit)!=null?a:"element\\xF3w"):"Zbyt ma\\u0142(y/a/e): oczekiwano, \\u017Ce ".concat((l=t.origin)!=null?l:"warto\\u015B\\u0107"," b\\u0119dzie wynosi\\u0107 ").concat(f).concat(t.minimum.toString())}case"invalid_format":{let f=t;return f.format==="starts_with"?\'Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zaczyna\\u0107 si\\u0119 od "\'.concat(f.prefix,\'"\'):f.format==="ends_with"?\'Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi ko\\u0144czy\\u0107 si\\u0119 na "\'.concat(f.suffix,\'"\'):f.format==="includes"?\'Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zawiera\\u0107 "\'.concat(f.includes,\'"\'):f.format==="regex"?"Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi odpowiada\\u0107 wzorcowi ".concat(f.pattern):"Nieprawid\\u0142ow(y/a/e) ".concat((v=i[f.format])!=null?v:t.format)}case"not_multiple_of":return"Nieprawid\\u0142owa liczba: musi by\\u0107 wielokrotno\\u015Bci\\u0105 ".concat(t.divisor);case"unrecognized_keys":return"Nierozpoznane klucze".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Nieprawid\\u0142owy klucz w ".concat(t.origin);case"invalid_union":return"Nieprawid\\u0142owe dane wej\\u015Bciowe";case"invalid_element":return"Nieprawid\\u0142owa warto\\u015B\\u0107 w ".concat(t.origin);default:return"Nieprawid\\u0142owe dane wej\\u015Bciowe"}}};function oc(){return{localeError:ud()}}var cd=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\\xFAmero";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"padr\\xE3o",email:"endere\\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\\xE7\\xE3o ISO",ipv4:"endere\\xE7o IPv4",ipv6:"endere\\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Tipo inv\\xE1lido: esperado ".concat(t.expected,", recebido ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Entrada inv\\xE1lida: esperado ".concat(b(t.values[0])):"Op\\xE7\\xE3o inv\\xE1lida: esperada uma das ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Muito grande: esperado que ".concat((o=t.origin)!=null?o:"valor"," tivesse ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementos"):"Muito grande: esperado que ".concat((s=t.origin)!=null?s:"valor"," fosse ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Muito pequeno: esperado que ".concat(t.origin," tivesse ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Muito pequeno: esperado que ".concat(t.origin," fosse ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Texto inv\\xE1lido: deve come\\xE7ar com "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Texto inv\\xE1lido: deve terminar com "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Texto inv\\xE1lido: deve incluir "\'.concat(a.includes,\'"\'):a.format==="regex"?"Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," inv\\xE1lido")}case"not_multiple_of":return"N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ".concat(t.divisor);case"unrecognized_keys":return"Chave".concat(t.keys.length>1?"s":""," desconhecida").concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Chave inv\\xE1lida em ".concat(t.origin);case"invalid_union":return"Entrada inv\\xE1lida";case"invalid_element":return"Valor inv\\xE1lido em ".concat(t.origin);default:return"Campo inv\\xE1lido"}}};function ac(){return{localeError:cd()}}function uc(e,r,n,i){let t=Math.abs(e),o=t%10,u=t%100;return u>=11&&u<=19?i:o===1?r:o>=2&&o<=4?n:i}var sd=()=>{let e={string:{unit:{one:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B",few:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",many:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u0430",many:"\\u0431\\u0430\\u0439\\u0442"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0447\\u0438\\u0441\\u043B\\u043E";case"object":{if(Array.isArray(t))return"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0432\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0438 \\u0432\\u0440\\u0435\\u043C\\u044F",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u044F",duration:"ISO \\u0434\\u043B\\u0438\\u0442\\u0435\\u043B\\u044C\\u043D\\u043E\\u0441\\u0442\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64",base64url:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64url",json_string:"JSON \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",jwt:"JWT",template_literal:"\\u0432\\u0432\\u043E\\u0434"};return t=>{var o,u,s;switch(t.code){case"invalid_type":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ".concat(t.expected,", \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ".concat(b(t.values[0])):"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0430\\u0440\\u0438\\u0430\\u043D\\u0442: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C \\u043E\\u0434\\u043D\\u043E \\u0438\\u0437 ".concat(p(t.values,"|"));case"too_big":{let c=t.inclusive?"<=":"<",a=r(t.origin);if(a){let l=Number(t.maximum),v=uc(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat((o=t.origin)!=null?o:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"," \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ").concat(c).concat(t.maximum.toString()," ").concat(v)}return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat((u=t.origin)!=null?u:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"," \\u0431\\u0443\\u0434\\u0435\\u0442 ").concat(c).concat(t.maximum.toString())}case"too_small":{let c=t.inclusive?">=":">",a=r(t.origin);if(a){let l=Number(t.minimum),v=uc(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat(t.origin," \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ").concat(c).concat(t.minimum.toString()," ").concat(v)}return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat(t.origin," \\u0431\\u0443\\u0434\\u0435\\u0442 ").concat(c).concat(t.minimum.toString())}case"invalid_format":{let c=t;return c.format==="starts_with"?\'\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u043D\\u0430\\u0447\\u0438\\u043D\\u0430\\u0442\\u044C\\u0441\\u044F \\u0441 "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0438\\u0432\\u0430\\u0442\\u044C\\u0441\\u044F \\u043D\\u0430 "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u0434\\u0435\\u0440\\u0436\\u0430\\u0442\\u044C "\'.concat(c.includes,\'"\'):c.format==="regex"?"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u043E\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u043E\\u0432\\u0430\\u0442\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ".concat(c.pattern):"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 ".concat((s=i[c.format])!=null?s:t.format)}case"not_multiple_of":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0434\\u043E\\u043B\\u0436\\u043D\\u043E \\u0431\\u044B\\u0442\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ".concat(t.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u043E\\u0437\\u043D\\u0430\\u043D\\u043D".concat(t.keys.length>1?"\\u044B\\u0435":"\\u044B\\u0439"," \\u043A\\u043B\\u044E\\u0447").concat(t.keys.length>1?"\\u0438":"",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0432 ".concat(t.origin);case"invalid_union":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435";case"invalid_element":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435 \\u0432 ".concat(t.origin);default:return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435"}}};function cc(){return{localeError:sd()}}var ld=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0161tevilo";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"vnos",email:"e-po\\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \\u010Das",date:"ISO datum",time:"ISO \\u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \\u0161tevilka",jwt:"JWT",template_literal:"vnos"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Neveljaven vnos: pri\\u010Dakovano ".concat(t.expected,", prejeto ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Neveljaven vnos: pri\\u010Dakovano ".concat(b(t.values[0])):"Neveljavna mo\\u017Enost: pri\\u010Dakovano eno izmed ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Preveliko: pri\\u010Dakovano, da bo ".concat((o=t.origin)!=null?o:"vrednost"," imelo ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementov"):"Preveliko: pri\\u010Dakovano, da bo ".concat((s=t.origin)!=null?s:"vrednost"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Premajhno: pri\\u010Dakovano, da bo ".concat(t.origin," imelo ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Premajhno: pri\\u010Dakovano, da bo ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Neveljaven niz: mora se za\\u010Deti z "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Neveljaven niz: mora se kon\\u010Dati z "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Neveljaven niz: mora vsebovati "\'.concat(a.includes,\'"\'):a.format==="regex"?"Neveljaven niz: mora ustrezati vzorcu ".concat(a.pattern):"Neveljaven ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Neveljavno \\u0161tevilo: mora biti ve\\u010Dkratnik ".concat(t.divisor);case"unrecognized_keys":return"Neprepoznan".concat(t.keys.length>1?"i klju\\u010Di":" klju\\u010D",": ").concat(p(t.keys,", "));case"invalid_key":return"Neveljaven klju\\u010D v ".concat(t.origin);case"invalid_union":return"Neveljaven vnos";case"invalid_element":return"Neveljavna vrednost v ".concat(t.origin);default:return"Neveljaven vnos"}}};function sc(){return{localeError:ld()}}var dd=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\\xE5lla"},set:{unit:"objekt",verb:"att inneh\\xE5lla"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"regulj\\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\\xE4ng",base64url:"base64url-kodad str\\xE4ng",json_string:"JSON-str\\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{var o,u,s,c,a,l,v,f;switch(t.code){case"invalid_type":return"Ogiltig inmatning: f\\xF6rv\\xE4ntat ".concat(t.expected,", fick ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ogiltig inmatning: f\\xF6rv\\xE4ntat ".concat(b(t.values[0])):"Ogiltigt val: f\\xF6rv\\xE4ntade en av ".concat(p(t.values,"|"));case"too_big":{let h=t.inclusive?"<=":"<",x=r(t.origin);return x?"F\\xF6r stor(t): f\\xF6rv\\xE4ntade ".concat((o=t.origin)!=null?o:"v\\xE4rdet"," att ha ").concat(h).concat(t.maximum.toString()," ").concat((u=x.unit)!=null?u:"element"):"F\\xF6r stor(t): f\\xF6rv\\xE4ntat ".concat((s=t.origin)!=null?s:"v\\xE4rdet"," att ha ").concat(h).concat(t.maximum.toString())}case"too_small":{let h=t.inclusive?">=":">",x=r(t.origin);return x?"F\\xF6r lite(t): f\\xF6rv\\xE4ntade ".concat((c=t.origin)!=null?c:"v\\xE4rdet"," att ha ").concat(h).concat(t.minimum.toString()," ").concat(x.unit):"F\\xF6r lite(t): f\\xF6rv\\xE4ntade ".concat((a=t.origin)!=null?a:"v\\xE4rdet"," att ha ").concat(h).concat(t.minimum.toString())}case"invalid_format":{let h=t;return h.format==="starts_with"?\'Ogiltig str\\xE4ng: m\\xE5ste b\\xF6rja med "\'.concat(h.prefix,\'"\'):h.format==="ends_with"?\'Ogiltig str\\xE4ng: m\\xE5ste sluta med "\'.concat(h.suffix,\'"\'):h.format==="includes"?\'Ogiltig str\\xE4ng: m\\xE5ste inneh\\xE5lla "\'.concat(h.includes,\'"\'):h.format==="regex"?\'Ogiltig str\\xE4ng: m\\xE5ste matcha m\\xF6nstret "\'.concat(h.pattern,\'"\'):"Ogiltig(t) ".concat((l=i[h.format])!=null?l:t.format)}case"not_multiple_of":return"Ogiltigt tal: m\\xE5ste vara en multipel av ".concat(t.divisor);case"unrecognized_keys":return"".concat(t.keys.length>1?"Ok\\xE4nda nycklar":"Ok\\xE4nd nyckel",": ").concat(p(t.keys,", "));case"invalid_key":return"Ogiltig nyckel i ".concat((v=t.origin)!=null?v:"v\\xE4rdet");case"invalid_union":return"Ogiltig input";case"invalid_element":return"Ogiltigt v\\xE4rde i ".concat((f=t.origin)!=null?f:"v\\xE4rdet");default:return"Ogiltig input"}}};function lc(){return{localeError:dd()}}var md=()=>{let e={string:{unit:"\\u0B8E\\u0BB4\\u0BC1\\u0BA4\\u0BCD\\u0BA4\\u0BC1\\u0B95\\u0BCD\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},file:{unit:"\\u0BAA\\u0BC8\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},array:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},set:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u0B8E\\u0BA3\\u0BCD \\u0B85\\u0BB2\\u0BCD\\u0BB2\\u0BBE\\u0BA4\\u0BA4\\u0BC1":"\\u0B8E\\u0BA3\\u0BCD";case"object":{if(Array.isArray(t))return"\\u0B85\\u0BA3\\u0BBF";if(t===null)return"\\u0BB5\\u0BC6\\u0BB1\\u0BC1\\u0BAE\\u0BC8";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1",email:"\\u0BAE\\u0BBF\\u0BA9\\u0BCD\\u0BA9\\u0B9E\\u0BCD\\u0B9A\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",date:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF",time:"ISO \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",duration:"ISO \\u0B95\\u0BBE\\u0BB2 \\u0B85\\u0BB3\\u0BB5\\u0BC1",ipv4:"IPv4 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",ipv6:"IPv6 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",cidrv4:"IPv4 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",cidrv6:"IPv6 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",base64:"base64-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",base64url:"base64url-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",json_string:"JSON \\u0B9A\\u0BB0\\u0BAE\\u0BCD",e164:"E.164 \\u0B8E\\u0BA3\\u0BCD",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(t.expected,", \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(b(t.values[0])):"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0BB0\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BAE\\u0BCD: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(p(t.values,"|")," \\u0B87\\u0BB2\\u0BCD \\u0B92\\u0BA9\\u0BCD\\u0BB1\\u0BC1");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat((o=t.origin)!=null?o:"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD"," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"):"\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat((s=t.origin)!=null?s:"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"," ").concat(a).concat(t.maximum.toString()," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"):"\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "\'.concat(a.prefix,\'" \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BCA\\u0B9F\\u0B99\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD\'):a.format==="ends_with"?\'\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "\'.concat(a.suffix,\'" \\u0B87\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B9F\\u0BBF\\u0BB5\\u0B9F\\u0BC8\\u0BAF \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD\'):a.format==="includes"?\'\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "\'.concat(a.includes,\'" \\u0B90 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0B9F\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD\'):a.format==="regex"?"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: ".concat(a.pattern," \\u0BAE\\u0BC1\\u0BB1\\u0BC8\\u0BAA\\u0BBE\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B9F\\u0BA9\\u0BCD \\u0BAA\\u0BCA\\u0BB0\\u0BC1\\u0BA8\\u0BCD\\u0BA4 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"):"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B8E\\u0BA3\\u0BCD: ".concat(t.divisor," \\u0B87\\u0BA9\\u0BCD \\u0BAA\\u0BB2\\u0BAE\\u0BBE\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD");case"unrecognized_keys":return"\\u0B85\\u0B9F\\u0BC8\\u0BAF\\u0BBE\\u0BB3\\u0BAE\\u0BCD \\u0BA4\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BBE\\u0BA4 \\u0BB5\\u0BBF\\u0B9A\\u0BC8".concat(t.keys.length>1?"\\u0B95\\u0BB3\\u0BCD":"",": ").concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0B9A\\u0BC8");case"invalid_union":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1";case"invalid_element":return"".concat(t.origin," \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1");default:return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1"}}};function dc(){return{localeError:md()}}var fd=()=>{let e={string:{unit:"\\u0E15\\u0E31\\u0E27\\u0E2D\\u0E31\\u0E01\\u0E29\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},file:{unit:"\\u0E44\\u0E1A\\u0E15\\u0E4C",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},array:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},set:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u0E44\\u0E21\\u0E48\\u0E43\\u0E0A\\u0E48\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02 (NaN)":"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02";case"object":{if(Array.isArray(t))return"\\u0E2D\\u0E32\\u0E23\\u0E4C\\u0E40\\u0E23\\u0E22\\u0E4C (Array)";if(t===null)return"\\u0E44\\u0E21\\u0E48\\u0E21\\u0E35\\u0E04\\u0E48\\u0E32 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19",email:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48\\u0E2D\\u0E35\\u0E40\\u0E21\\u0E25",url:"URL",emoji:"\\u0E2D\\u0E34\\u0E42\\u0E21\\u0E08\\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",date:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E41\\u0E1A\\u0E1A ISO",time:"\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",duration:"\\u0E0A\\u0E48\\u0E27\\u0E07\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",ipv4:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv4",ipv6:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv6",cidrv4:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv4",cidrv6:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv6",base64:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64",base64url:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64 \\u0E2A\\u0E33\\u0E2B\\u0E23\\u0E31\\u0E1A URL",json_string:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A JSON",e164:"\\u0E40\\u0E1A\\u0E2D\\u0E23\\u0E4C\\u0E42\\u0E17\\u0E23\\u0E28\\u0E31\\u0E1E\\u0E17\\u0E4C\\u0E23\\u0E30\\u0E2B\\u0E27\\u0E48\\u0E32\\u0E07\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E17\\u0E28 (E.164)",jwt:"\\u0E42\\u0E17\\u0E40\\u0E04\\u0E19 JWT",template_literal:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ".concat(t.expected," \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ".concat(b(t.values[0])):"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E37\\u0E2D\\u0E01\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E2B\\u0E19\\u0E36\\u0E48\\u0E07\\u0E43\\u0E19 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"\\u0E44\\u0E21\\u0E48\\u0E40\\u0E01\\u0E34\\u0E19":"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32",l=r(t.origin);return l?"\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat((o=t.origin)!=null?o:"\\u0E04\\u0E48\\u0E32"," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23"):"\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat((s=t.origin)!=null?s:"\\u0E04\\u0E48\\u0E32"," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?"\\u0E2D\\u0E22\\u0E48\\u0E32\\u0E07\\u0E19\\u0E49\\u0E2D\\u0E22":"\\u0E21\\u0E32\\u0E01\\u0E01\\u0E27\\u0E48\\u0E32",l=r(t.origin);return l?"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat(t.origin," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat(t.origin," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E02\\u0E36\\u0E49\\u0E19\\u0E15\\u0E49\\u0E19\\u0E14\\u0E49\\u0E27\\u0E22 "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E25\\u0E07\\u0E17\\u0E49\\u0E32\\u0E22\\u0E14\\u0E49\\u0E27\\u0E22 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E21\\u0E35 "\'.concat(a.includes,\'" \\u0E2D\\u0E22\\u0E39\\u0E48\\u0E43\\u0E19\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\'):a.format==="regex"?"\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14 ".concat(a.pattern):"\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E08\\u0E33\\u0E19\\u0E27\\u0E19\\u0E17\\u0E35\\u0E48\\u0E2B\\u0E32\\u0E23\\u0E14\\u0E49\\u0E27\\u0E22 ".concat(t.divisor," \\u0E44\\u0E14\\u0E49\\u0E25\\u0E07\\u0E15\\u0E31\\u0E27");case"unrecognized_keys":return"\\u0E1E\\u0E1A\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E17\\u0E35\\u0E48\\u0E44\\u0E21\\u0E48\\u0E23\\u0E39\\u0E49\\u0E08\\u0E31\\u0E01: ".concat(p(t.keys,", "));case"invalid_key":return"\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ".concat(t.origin);case"invalid_union":return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E44\\u0E21\\u0E48\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E22\\u0E39\\u0E40\\u0E19\\u0E35\\u0E22\\u0E19\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14\\u0E44\\u0E27\\u0E49";case"invalid_element":return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ".concat(t.origin);default:return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07"}}};function mc(){return{localeError:fd()}}var pd=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},gd=()=>{let e={string:{unit:"karakter",verb:"olmal\\u0131"},file:{unit:"bayt",verb:"olmal\\u0131"},array:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"},set:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\\u0131\\u011F\\u0131",cidrv6:"IPv6 aral\\u0131\\u011F\\u0131",base64:"base64 ile \\u015Fifrelenmi\\u015F metin",base64url:"base64url ile \\u015Fifrelenmi\\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\\u0131s\\u0131",jwt:"JWT",template_literal:"\\u015Eablon dizesi"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Ge\\xE7ersiz de\\u011Fer: beklenen ".concat(i.expected,", al\\u0131nan ").concat(pd(i.input));case"invalid_value":return i.values.length===1?"Ge\\xE7ersiz de\\u011Fer: beklenen ".concat(b(i.values[0])):"Ge\\xE7ersiz se\\xE7enek: a\\u015Fa\\u011F\\u0131dakilerden biri olmal\\u0131: ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"\\xC7ok b\\xFCy\\xFCk: beklenen ".concat((t=i.origin)!=null?t:"de\\u011Fer"," ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"\\xF6\\u011Fe"):"\\xC7ok b\\xFCy\\xFCk: beklenen ".concat((u=i.origin)!=null?u:"de\\u011Fer"," ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ".concat(i.origin," ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ".concat(i.origin," ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'Ge\\xE7ersiz metin: "\'.concat(c.prefix,\'" ile ba\\u015Flamal\\u0131\'):c.format==="ends_with"?\'Ge\\xE7ersiz metin: "\'.concat(c.suffix,\'" ile bitmeli\'):c.format==="includes"?\'Ge\\xE7ersiz metin: "\'.concat(c.includes,\'" i\\xE7ermeli\'):c.format==="regex"?"Ge\\xE7ersiz metin: ".concat(c.pattern," desenine uymal\\u0131"):"Ge\\xE7ersiz ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"Ge\\xE7ersiz say\\u0131: ".concat(i.divisor," ile tam b\\xF6l\\xFCnebilmeli");case"unrecognized_keys":return"Tan\\u0131nmayan anahtar".concat(i.keys.length>1?"lar":"",": ").concat(p(i.keys,", "));case"invalid_key":return"".concat(i.origin," i\\xE7inde ge\\xE7ersiz anahtar");case"invalid_union":return"Ge\\xE7ersiz de\\u011Fer";case"invalid_element":return"".concat(i.origin," i\\xE7inde ge\\xE7ersiz de\\u011Fer");default:return"Ge\\xE7ersiz de\\u011Fer"}}};function fc(){return{localeError:gd()}}var vd=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0447\\u0438\\u0441\\u043B\\u043E";case"object":{if(Array.isArray(t))return"\\u043C\\u0430\\u0441\\u0438\\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u0435\\u043B\\u0435\\u043A\\u0442\\u0440\\u043E\\u043D\\u043D\\u043E\\u0457 \\u043F\\u043E\\u0448\\u0442\\u0438",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0434\\u0430\\u0442\\u0430 \\u0442\\u0430 \\u0447\\u0430\\u0441 ISO",date:"\\u0434\\u0430\\u0442\\u0430 ISO",time:"\\u0447\\u0430\\u0441 ISO",duration:"\\u0442\\u0440\\u0438\\u0432\\u0430\\u043B\\u0456\\u0441\\u0442\\u044C ISO",ipv4:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv4",ipv6:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv6",cidrv4:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv4",cidrv6:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv6",base64:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64",base64url:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64url",json_string:"\\u0440\\u044F\\u0434\\u043E\\u043A JSON",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",jwt:"JWT",template_literal:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ".concat(t.expected,", \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ".concat(b(t.values[0])):"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0456\\u044F: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F \\u043E\\u0434\\u043D\\u0435 \\u0437 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat((o=t.origin)!=null?o:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"," ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432"):"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat((s=t.origin)!=null?s:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"," \\u0431\\u0443\\u0434\\u0435 ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat(t.origin," ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat(t.origin," \\u0431\\u0443\\u0434\\u0435 ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043F\\u043E\\u0447\\u0438\\u043D\\u0430\\u0442\\u0438\\u0441\\u044F \\u0437 "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0456\\u043D\\u0447\\u0443\\u0432\\u0430\\u0442\\u0438\\u0441\\u044F \\u043D\\u0430 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043C\\u0456\\u0441\\u0442\\u0438\\u0442\\u0438 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0432\\u0456\\u0434\\u043F\\u043E\\u0432\\u0456\\u0434\\u0430\\u0442\\u0438 \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ".concat(a.pattern):"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u043F\\u043E\\u0432\\u0438\\u043D\\u043D\\u043E \\u0431\\u0443\\u0442\\u0438 \\u043A\\u0440\\u0430\\u0442\\u043D\\u0438\\u043C ".concat(t.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u043E\\u0437\\u043F\\u0456\\u0437\\u043D\\u0430\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447".concat(t.keys.length>1?"\\u0456":"",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0443 ".concat(t.origin);case"invalid_union":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456";case"invalid_element":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F \\u0443 ".concat(t.origin);default:return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"}}};function nr(){return{localeError:vd()}}function pc(){return nr()}var hd=()=>{let e={string:{unit:"\\u062D\\u0631\\u0648\\u0641",verb:"\\u06C1\\u0648\\u0646\\u0627"},file:{unit:"\\u0628\\u0627\\u0626\\u0679\\u0633",verb:"\\u06C1\\u0648\\u0646\\u0627"},array:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"},set:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0646\\u0645\\u0628\\u0631";case"object":{if(Array.isArray(t))return"\\u0622\\u0631\\u06D2";if(t===null)return"\\u0646\\u0644";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0627\\u0646 \\u067E\\u0679",email:"\\u0627\\u06CC \\u0645\\u06CC\\u0644 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",uuidv4:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 4",uuidv6:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 6",nanoid:"\\u0646\\u06CC\\u0646\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",guid:"\\u062C\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid2:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC 2",ulid:"\\u06CC\\u0648 \\u0627\\u06CC\\u0644 \\u0622\\u0626\\u06CC \\u0688\\u06CC",xid:"\\u0627\\u06CC\\u06A9\\u0633 \\u0622\\u0626\\u06CC \\u0688\\u06CC",ksuid:"\\u06A9\\u06D2 \\u0627\\u06CC\\u0633 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",datetime:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0688\\u06CC\\u0679 \\u0679\\u0627\\u0626\\u0645",date:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u062A\\u0627\\u0631\\u06CC\\u062E",time:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0648\\u0642\\u062A",duration:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0645\\u062F\\u062A",ipv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",ipv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",cidrv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0631\\u06CC\\u0646\\u062C",cidrv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0631\\u06CC\\u0646\\u062C",base64:"\\u0628\\u06CC\\u0633 64 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",base64url:"\\u0628\\u06CC\\u0633 64 \\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",json_string:"\\u062C\\u06D2 \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0627\\u06CC\\u0646 \\u0633\\u0679\\u0631\\u0646\\u06AF",e164:"\\u0627\\u06CC 164 \\u0646\\u0645\\u0628\\u0631",jwt:"\\u062C\\u06D2 \\u0688\\u0628\\u0644\\u06CC\\u0648 \\u0679\\u06CC",template_literal:"\\u0627\\u0646 \\u067E\\u0679"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ".concat(t.expected," \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ").concat(n(t.input)," \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627");case"invalid_value":return t.values.length===1?"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ".concat(b(t.values[0])," \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627"):"\\u063A\\u0644\\u0637 \\u0622\\u067E\\u0634\\u0646: ".concat(p(t.values,"|")," \\u0645\\u06CC\\u06BA \\u0633\\u06D2 \\u0627\\u06CC\\u06A9 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ".concat((o=t.origin)!=null?o:"\\u0648\\u06CC\\u0644\\u06CC\\u0648"," \\u06A9\\u06D2 ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0627\\u0635\\u0631"," \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2"):"\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ".concat((s=t.origin)!=null?s:"\\u0648\\u06CC\\u0644\\u06CC\\u0648"," \\u06A9\\u0627 ").concat(a).concat(t.maximum.toString()," \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ".concat(t.origin," \\u06A9\\u06D2 ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2"):"\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ".concat(t.origin," \\u06A9\\u0627 ").concat(a).concat(t.minimum.toString()," \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "\'.concat(a.prefix,\'" \\u0633\\u06D2 \\u0634\\u0631\\u0648\\u0639 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2\'):a.format==="ends_with"?\'\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "\'.concat(a.suffix,\'" \\u067E\\u0631 \\u062E\\u062A\\u0645 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2\'):a.format==="includes"?\'\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "\'.concat(a.includes,\'" \\u0634\\u0627\\u0645\\u0644 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2\'):a.format==="regex"?"\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \\u067E\\u06CC\\u0679\\u0631\\u0646 ".concat(a.pattern," \\u0633\\u06D2 \\u0645\\u06CC\\u0686 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2"):"\\u063A\\u0644\\u0637 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u063A\\u0644\\u0637 \\u0646\\u0645\\u0628\\u0631: ".concat(t.divisor," \\u06A9\\u0627 \\u0645\\u0636\\u0627\\u0639\\u0641 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2");case"unrecognized_keys":return"\\u063A\\u06CC\\u0631 \\u062A\\u0633\\u0644\\u06CC\\u0645 \\u0634\\u062F\\u06C1 \\u06A9\\u06CC".concat(t.keys.length>1?"\\u0632":"",": ").concat(p(t.keys,"\\u060C "));case"invalid_key":return"".concat(t.origin," \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u06A9\\u06CC");case"invalid_union":return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679";case"invalid_element":return"".concat(t.origin," \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u0648\\u06CC\\u0644\\u06CC\\u0648");default:return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679"}}};function gc(){return{localeError:hd()}}var $d=()=>{let e={string:{unit:"k\\xFD t\\u1EF1",verb:"c\\xF3"},file:{unit:"byte",verb:"c\\xF3"},array:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"},set:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"s\\u1ED1";case"object":{if(Array.isArray(t))return"m\\u1EA3ng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0111\\u1EA7u v\\xE0o",email:"\\u0111\\u1ECBa ch\\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\\xE0y gi\\u1EDD ISO",date:"ng\\xE0y ISO",time:"gi\\u1EDD ISO",duration:"kho\\u1EA3ng th\\u1EDDi gian ISO",ipv4:"\\u0111\\u1ECBa ch\\u1EC9 IPv4",ipv6:"\\u0111\\u1ECBa ch\\u1EC9 IPv6",cidrv4:"d\\u1EA3i IPv4",cidrv6:"d\\u1EA3i IPv6",base64:"chu\\u1ED7i m\\xE3 h\\xF3a base64",base64url:"chu\\u1ED7i m\\xE3 h\\xF3a base64url",json_string:"chu\\u1ED7i JSON",e164:"s\\u1ED1 E.164",jwt:"JWT",template_literal:"\\u0111\\u1EA7u v\\xE0o"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ".concat(t.expected,", nh\\u1EADn \\u0111\\u01B0\\u1EE3c ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ".concat(b(t.values[0])):"T\\xF9y ch\\u1ECDn kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i m\\u1ED9t trong c\\xE1c gi\\xE1 tr\\u1ECB ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ".concat((o=t.origin)!=null?o:"gi\\xE1 tr\\u1ECB"," ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"ph\\u1EA7n t\\u1EED"):"Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ".concat((s=t.origin)!=null?s:"gi\\xE1 tr\\u1ECB"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ".concat(t.origin," ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i b\\u1EAFt \\u0111\\u1EA7u b\\u1EB1ng "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i k\\u1EBFt th\\xFAc b\\u1EB1ng "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i bao g\\u1ED3m "\'.concat(a.includes,\'"\'):a.format==="regex"?"Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i kh\\u1EDBp v\\u1EDBi m\\u1EABu ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," kh\\xF4ng h\\u1EE3p l\\u1EC7")}case"not_multiple_of":return"S\\u1ED1 kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i l\\xE0 b\\u1ED9i s\\u1ED1 c\\u1EE7a ".concat(t.divisor);case"unrecognized_keys":return"Kh\\xF3a kh\\xF4ng \\u0111\\u01B0\\u1EE3c nh\\u1EADn d\\u1EA1ng: ".concat(p(t.keys,", "));case"invalid_key":return"Kh\\xF3a kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ".concat(t.origin);case"invalid_union":return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7";case"invalid_element":return"Gi\\xE1 tr\\u1ECB kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ".concat(t.origin);default:return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7"}}};function vc(){return{localeError:$d()}}var bd=()=>{let e={string:{unit:"\\u5B57\\u7B26",verb:"\\u5305\\u542B"},file:{unit:"\\u5B57\\u8282",verb:"\\u5305\\u542B"},array:{unit:"\\u9879",verb:"\\u5305\\u542B"},set:{unit:"\\u9879",verb:"\\u5305\\u542B"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u975E\\u6570\\u5B57(NaN)":"\\u6570\\u5B57";case"object":{if(Array.isArray(t))return"\\u6570\\u7EC4";if(t===null)return"\\u7A7A\\u503C(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u8F93\\u5165",email:"\\u7535\\u5B50\\u90AE\\u4EF6",url:"URL",emoji:"\\u8868\\u60C5\\u7B26\\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u671F\\u65F6\\u95F4",date:"ISO\\u65E5\\u671F",time:"ISO\\u65F6\\u95F4",duration:"ISO\\u65F6\\u957F",ipv4:"IPv4\\u5730\\u5740",ipv6:"IPv6\\u5730\\u5740",cidrv4:"IPv4\\u7F51\\u6BB5",cidrv6:"IPv6\\u7F51\\u6BB5",base64:"base64\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",base64url:"base64url\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",json_string:"JSON\\u5B57\\u7B26\\u4E32",e164:"E.164\\u53F7\\u7801",jwt:"JWT",template_literal:"\\u8F93\\u5165"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ".concat(t.expected,"\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ".concat(b(t.values[0])):"\\u65E0\\u6548\\u9009\\u9879\\uFF1A\\u671F\\u671B\\u4EE5\\u4E0B\\u4E4B\\u4E00 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ".concat((o=t.origin)!=null?o:"\\u503C"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u4E2A\\u5143\\u7D20"):"\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ".concat((s=t.origin)!=null?s:"\\u503C"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "\'.concat(a.prefix,\'" \\u5F00\\u5934\'):a.format==="ends_with"?\'\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "\'.concat(a.suffix,\'" \\u7ED3\\u5C3E\'):a.format==="includes"?\'\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u5305\\u542B "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u6EE1\\u8DB3\\u6B63\\u5219\\u8868\\u8FBE\\u5F0F ".concat(a.pattern):"\\u65E0\\u6548".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u65E0\\u6548\\u6570\\u5B57\\uFF1A\\u5FC5\\u987B\\u662F ".concat(t.divisor," \\u7684\\u500D\\u6570");case"unrecognized_keys":return"\\u51FA\\u73B0\\u672A\\u77E5\\u7684\\u952E(key): ".concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," \\u4E2D\\u7684\\u952E(key)\\u65E0\\u6548");case"invalid_union":return"\\u65E0\\u6548\\u8F93\\u5165";case"invalid_element":return"".concat(t.origin," \\u4E2D\\u5305\\u542B\\u65E0\\u6548\\u503C(value)");default:return"\\u65E0\\u6548\\u8F93\\u5165"}}};function hc(){return{localeError:bd()}}var _d=()=>{let e={string:{unit:"\\u5B57\\u5143",verb:"\\u64C1\\u6709"},file:{unit:"\\u4F4D\\u5143\\u7D44",verb:"\\u64C1\\u6709"},array:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"},set:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u8F38\\u5165",email:"\\u90F5\\u4EF6\\u5730\\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u65E5\\u671F\\u6642\\u9593",date:"ISO \\u65E5\\u671F",time:"ISO \\u6642\\u9593",duration:"ISO \\u671F\\u9593",ipv4:"IPv4 \\u4F4D\\u5740",ipv6:"IPv6 \\u4F4D\\u5740",cidrv4:"IPv4 \\u7BC4\\u570D",cidrv6:"IPv6 \\u7BC4\\u570D",base64:"base64 \\u7DE8\\u78BC\\u5B57\\u4E32",base64url:"base64url \\u7DE8\\u78BC\\u5B57\\u4E32",json_string:"JSON \\u5B57\\u4E32",e164:"E.164 \\u6578\\u503C",jwt:"JWT",template_literal:"\\u8F38\\u5165"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ".concat(t.expected,"\\uFF0C\\u4F46\\u6536\\u5230 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ".concat(b(t.values[0])):"\\u7121\\u6548\\u7684\\u9078\\u9805\\uFF1A\\u9810\\u671F\\u70BA\\u4EE5\\u4E0B\\u5176\\u4E2D\\u4E4B\\u4E00 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ".concat((o=t.origin)!=null?o:"\\u503C"," \\u61C9\\u70BA ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u500B\\u5143\\u7D20"):"\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ".concat((s=t.origin)!=null?s:"\\u503C"," \\u61C9\\u70BA ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ".concat(t.origin," \\u61C9\\u70BA ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ".concat(t.origin," \\u61C9\\u70BA ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "\'.concat(a.prefix,\'" \\u958B\\u982D\'):a.format==="ends_with"?\'\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "\'.concat(a.suffix,\'" \\u7D50\\u5C3E\'):a.format==="includes"?\'\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u5305\\u542B "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u7B26\\u5408\\u683C\\u5F0F ".concat(a.pattern):"\\u7121\\u6548\\u7684 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u7121\\u6548\\u7684\\u6578\\u5B57\\uFF1A\\u5FC5\\u9808\\u70BA ".concat(t.divisor," \\u7684\\u500D\\u6578");case"unrecognized_keys":return"\\u7121\\u6CD5\\u8B58\\u5225\\u7684\\u9375\\u503C".concat(t.keys.length>1?"\\u5011":"","\\uFF1A").concat(p(t.keys,"\\u3001"));case"invalid_key":return"".concat(t.origin," \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u9375\\u503C");case"invalid_union":return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C";case"invalid_element":return"".concat(t.origin," \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u503C");default:return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C"}}};function $c(){return{localeError:_d()}}var yd=()=>{let e={string:{unit:"\\xE0mi",verb:"n\\xED"},file:{unit:"bytes",verb:"n\\xED"},array:{unit:"nkan",verb:"n\\xED"},set:{unit:"nkan",verb:"n\\xED"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\\u1ECD\\u0301mb\\xE0";case"object":{if(Array.isArray(t))return"akop\\u1ECD";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9",email:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC \\xECm\\u1EB9\\u0301l\\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\xE0k\\xF3k\\xF2 ISO",date:"\\u1ECDj\\u1ECD\\u0301 ISO",time:"\\xE0k\\xF3k\\xF2 ISO",duration:"\\xE0k\\xF3k\\xF2 t\\xF3 p\\xE9 ISO",ipv4:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv4",ipv6:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv6",cidrv4:"\\xE0gb\\xE8gb\\xE8 IPv4",cidrv6:"\\xE0gb\\xE8gb\\xE8 IPv6",base64:"\\u1ECD\\u0300r\\u1ECD\\u0300 t\\xED a k\\u1ECD\\u0301 n\\xED base64",base64url:"\\u1ECD\\u0300r\\u1ECD\\u0300 base64url",json_string:"\\u1ECD\\u0300r\\u1ECD\\u0300 JSON",e164:"n\\u1ECD\\u0301mb\\xE0 E.164",jwt:"JWT",template_literal:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9"};return t=>{var o,u;switch(t.code){case"invalid_type":return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ".concat(t.expected,", \\xE0m\\u1ECD\\u0300 a r\\xED ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ".concat(b(t.values[0])):"\\xC0\\u1E63\\xE0y\\xE0n a\\u1E63\\xEC\\u1E63e: yan \\u1ECD\\u0300kan l\\xE1ra ".concat(p(t.values,"|"));case"too_big":{let s=t.inclusive?"<=":"<",c=r(t.origin);return c?"T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ".concat((o=t.origin)!=null?o:"iye"," ").concat(c.verb," ").concat(s).concat(t.maximum," ").concat(c.unit):"T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ".concat(s).concat(t.maximum)}case"too_small":{let s=t.inclusive?">=":">",c=r(t.origin);return c?"K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ".concat(t.origin," ").concat(c.verb," ").concat(s).concat(t.minimum," ").concat(c.unit):"K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ".concat(s).concat(t.minimum)}case"invalid_format":{let s=t;return s.format==="starts_with"?\'\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\u1EB9\\u0300r\\u1EB9\\u0300 p\\u1EB9\\u0300l\\xFA "\'.concat(s.prefix,\'"\'):s.format==="ends_with"?\'\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 par\\xED p\\u1EB9\\u0300l\\xFA "\'.concat(s.suffix,\'"\'):s.format==="includes"?\'\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 n\\xED "\'.concat(s.includes,\'"\'):s.format==="regex"?"\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\xE1 \\xE0p\\u1EB9\\u1EB9r\\u1EB9 mu ".concat(s.pattern):"A\\u1E63\\xEC\\u1E63e: ".concat((u=i[s.format])!=null?u:t.format)}case"not_multiple_of":return"N\\u1ECD\\u0301mb\\xE0 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 j\\u1EB9\\u0301 \\xE8y\\xE0 p\\xEDp\\xEDn ti ".concat(t.divisor);case"unrecognized_keys":return"B\\u1ECDt\\xECn\\xEC \\xE0\\xECm\\u1ECD\\u0300: ".concat(p(t.keys,", "));case"invalid_key":return"B\\u1ECDt\\xECn\\xEC a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ".concat(t.origin);case"invalid_union":return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e";case"invalid_element":return"Iye a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ".concat(t.origin);default:return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e"}}};function bc(){return{localeError:yd()}}var co=Symbol("ZodOutput"),so=Symbol("ZodInput"),Te=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let i=n[0];if(this._map.set(r,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error("ID ".concat(i.id," already exists in the registry"));this._idmap.set(i.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){var i;let n=r._zod.parent;if(n){let t=m({},(i=this.get(n))!=null?i:{});delete t.id;let o=m(m({},t),this._map.get(r));return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function ir(){return new Te}var oe=ir();function lo(e,r){return new e(m({type:"string"},y(r)))}function mo(e,r){return new e(m({type:"string",coerce:!0},y(r)))}function or(e,r){return new e(m({type:"string",format:"email",check:"string_format",abort:!1},y(r)))}function ct(e,r){return new e(m({type:"string",format:"guid",check:"string_format",abort:!1},y(r)))}function ar(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1},y(r)))}function ur(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},y(r)))}function cr(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},y(r)))}function sr(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},y(r)))}function st(e,r){return new e(m({type:"string",format:"url",check:"string_format",abort:!1},y(r)))}function lr(e,r){return new e(m({type:"string",format:"emoji",check:"string_format",abort:!1},y(r)))}function dr(e,r){return new e(m({type:"string",format:"nanoid",check:"string_format",abort:!1},y(r)))}function mr(e,r){return new e(m({type:"string",format:"cuid",check:"string_format",abort:!1},y(r)))}function fr(e,r){return new e(m({type:"string",format:"cuid2",check:"string_format",abort:!1},y(r)))}function pr(e,r){return new e(m({type:"string",format:"ulid",check:"string_format",abort:!1},y(r)))}function gr(e,r){return new e(m({type:"string",format:"xid",check:"string_format",abort:!1},y(r)))}function vr(e,r){return new e(m({type:"string",format:"ksuid",check:"string_format",abort:!1},y(r)))}function hr(e,r){return new e(m({type:"string",format:"ipv4",check:"string_format",abort:!1},y(r)))}function $r(e,r){return new e(m({type:"string",format:"ipv6",check:"string_format",abort:!1},y(r)))}function br(e,r){return new e(m({type:"string",format:"cidrv4",check:"string_format",abort:!1},y(r)))}function _r(e,r){return new e(m({type:"string",format:"cidrv6",check:"string_format",abort:!1},y(r)))}function yr(e,r){return new e(m({type:"string",format:"base64",check:"string_format",abort:!1},y(r)))}function xr(e,r){return new e(m({type:"string",format:"base64url",check:"string_format",abort:!1},y(r)))}function kr(e,r){return new e(m({type:"string",format:"e164",check:"string_format",abort:!1},y(r)))}function zr(e,r){return new e(m({type:"string",format:"jwt",check:"string_format",abort:!1},y(r)))}var fo={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function po(e,r){return new e(m({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},y(r)))}function go(e,r){return new e(m({type:"string",format:"date",check:"string_format"},y(r)))}function vo(e,r){return new e(m({type:"string",format:"time",check:"string_format",precision:null},y(r)))}function ho(e,r){return new e(m({type:"string",format:"duration",check:"string_format"},y(r)))}function $o(e,r){return new e(m({type:"number",checks:[]},y(r)))}function bo(e,r){return new e(m({type:"number",coerce:!0,checks:[]},y(r)))}function _o(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"safeint"},y(r)))}function yo(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"float32"},y(r)))}function xo(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"float64"},y(r)))}function ko(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"int32"},y(r)))}function zo(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"uint32"},y(r)))}function Io(e,r){return new e(m({type:"boolean"},y(r)))}function wo(e,r){return new e(m({type:"boolean",coerce:!0},y(r)))}function So(e,r){return new e(m({type:"bigint"},y(r)))}function jo(e,r){return new e(m({type:"bigint",coerce:!0},y(r)))}function Oo(e,r){return new e(m({type:"bigint",check:"bigint_format",abort:!1,format:"int64"},y(r)))}function Po(e,r){return new e(m({type:"bigint",check:"bigint_format",abort:!1,format:"uint64"},y(r)))}function Uo(e,r){return new e(m({type:"symbol"},y(r)))}function No(e,r){return new e(m({type:"undefined"},y(r)))}function Zo(e,r){return new e(m({type:"null"},y(r)))}function Do(e){return new e({type:"any"})}function To(e){return new e({type:"unknown"})}function Eo(e,r){return new e(m({type:"never"},y(r)))}function Ao(e,r){return new e(m({type:"void"},y(r)))}function Ro(e,r){return new e(m({type:"date"},y(r)))}function Lo(e,r){return new e(m({type:"date",coerce:!0},y(r)))}function Co(e,r){return new e(m({type:"nan"},y(r)))}function ce(e,r){return new Mt(z(m({check:"less_than"},y(r)),{value:e,inclusive:!1}))}function H(e,r){return new Mt(z(m({check:"less_than"},y(r)),{value:e,inclusive:!0}))}function se(e,r){return new Bt(z(m({check:"greater_than"},y(r)),{value:e,inclusive:!1}))}function W(e,r){return new Bt(z(m({check:"greater_than"},y(r)),{value:e,inclusive:!0}))}function Vo(e){return se(0,e)}function Fo(e){return ce(0,e)}function Jo(e){return H(0,e)}function Mo(e){return W(0,e)}function Ie(e,r){return new Tn(z(m({check:"multiple_of"},y(r)),{value:e}))}function Ee(e,r){return new Rn(z(m({check:"max_size"},y(r)),{maximum:e}))}function we(e,r){return new Ln(z(m({check:"min_size"},y(r)),{minimum:e}))}function lt(e,r){return new Cn(z(m({check:"size_equals"},y(r)),{size:e}))}function Ae(e,r){return new Vn(z(m({check:"max_length"},y(r)),{maximum:e}))}function $e(e,r){return new Fn(z(m({check:"min_length"},y(r)),{minimum:e}))}function Re(e,r){return new Jn(z(m({check:"length_equals"},y(r)),{length:e}))}function dt(e,r){return new Mn(z(m({check:"string_format",format:"regex"},y(r)),{pattern:e}))}function mt(e){return new Bn(m({check:"string_format",format:"lowercase"},y(e)))}function ft(e){return new Kn(m({check:"string_format",format:"uppercase"},y(e)))}function pt(e,r){return new Gn(z(m({check:"string_format",format:"includes"},y(r)),{includes:e}))}function gt(e,r){return new Wn(z(m({check:"string_format",format:"starts_with"},y(r)),{prefix:e}))}function vt(e,r){return new Xn(z(m({check:"string_format",format:"ends_with"},y(r)),{suffix:e}))}function Bo(e,r,n){return new qn(m({check:"property",property:e,schema:r},y(n)))}function ht(e,r){return new Yn(m({check:"mime_type",mime:e},y(r)))}function le(e){return new Qn({check:"overwrite",tx:e})}function $t(e){return le(r=>r.normalize(e))}function bt(){return le(e=>e.trim())}function _t(){return le(e=>e.toLowerCase())}function yt(){return le(e=>e.toUpperCase())}function Ko(e,r,n){return new e(m({type:"array",element:r},y(n)))}function xd(e,r,n){return new e(m({type:"union",options:r},y(n)))}function kd(e,r,n,i){return new e(m({type:"union",options:n,discriminator:r},y(i)))}function zd(e,r,n){return new e({type:"intersection",left:r,right:n})}function Id(e,r,n,i){let t=n instanceof O,o=t?i:n,u=t?n:null;return new e(m({type:"tuple",items:r,rest:u},y(o)))}function wd(e,r,n,i){return new e(m({type:"record",keyType:r,valueType:n},y(i)))}function Sd(e,r,n,i){return new e(m({type:"map",keyType:r,valueType:n},y(i)))}function jd(e,r,n){return new e(m({type:"set",valueType:r},y(n)))}function Od(e,r,n){let i=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e(m({type:"enum",entries:i},y(n)))}function Pd(e,r,n){return new e(m({type:"enum",entries:r},y(n)))}function Ud(e,r,n){return new e(m({type:"literal",values:Array.isArray(r)?r:[r]},y(n)))}function Go(e,r){return new e(m({type:"file"},y(r)))}function Nd(e,r){return new e({type:"transform",transform:r})}function Zd(e,r){return new e({type:"optional",innerType:r})}function Dd(e,r){return new e({type:"nullable",innerType:r})}function Td(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():qr(n)}})}function Ed(e,r,n){return new e(m({type:"nonoptional",innerType:r},y(n)))}function Ad(e,r){return new e({type:"success",innerType:r})}function Rd(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function Ld(e,r,n){return new e({type:"pipe",in:r,out:n})}function Cd(e,r){return new e({type:"readonly",innerType:r})}function Vd(e,r,n){return new e(m({type:"template_literal",parts:r},y(n)))}function Fd(e,r){return new e({type:"lazy",getter:r})}function Jd(e,r){return new e({type:"promise",innerType:r})}function Wo(e,r,n){var o;let i=y(n);return(o=i.abort)!=null||(i.abort=!0),new e(m({type:"custom",check:"custom",fn:r},i))}function Xo(e,r,n){return new e(m({type:"custom",check:"custom",fn:r},y(n)))}function qo(e){let r=_c(n=>(n.addIssue=i=>{var t,o,u,s;if(typeof i=="string")n.issues.push(Oe(i,n.value,r._zod.def));else{let c=i;c.fatal&&(c.continue=!1),(t=c.code)!=null||(c.code="custom"),(o=c.input)!=null||(c.input=n.value),(u=c.inst)!=null||(c.inst=r),(s=c.continue)!=null||(c.continue=!r._zod.def.abort),n.issues.push(Oe(c))}},e(n.value,n)));return r}function _c(e,r){let n=new R(m({check:"custom"},y(r)));return n._zod.check=e,n}function Yo(e,r){var h,x,S,I,C;let n=y(r),i=(h=n.truthy)!=null?h:["true","1","yes","on","y","enabled"],t=(x=n.falsy)!=null?x:["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(j=>typeof j=="string"?j.toLowerCase():j),t=t.map(j=>typeof j=="string"?j.toLowerCase():j));let o=new Set(i),u=new Set(t),s=(S=e.Codec)!=null?S:ot,c=(I=e.Boolean)!=null?I:it,a=(C=e.String)!=null?C:ke,l=new a({type:"string",error:n.error}),v=new c({type:"boolean",error:n.error}),f=new s({type:"pipe",in:l,out:v,transform:(j,g)=>{let $=j;return n.case!=="sensitive"&&($=$.toLowerCase()),o.has($)?!0:u.has($)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...u],input:g.value,inst:f,continue:!1}),{})},reverseTransform:(j,g)=>j===!0?i[0]||"true":t[0]||"false",error:n.error});return f}function Le(e,r,n,i={}){let t=y(i),o=m(z(m({},y(i)),{check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:s=>n.test(s)}),t);return n instanceof RegExp&&(o.pattern=n),new e(o)}var xt=class{constructor(r){var n,i,t,o,u;this.counter=0,this.metadataRegistry=(n=r==null?void 0:r.metadata)!=null?n:oe,this.target=(i=r==null?void 0:r.target)!=null?i:"draft-2020-12",this.unrepresentable=(t=r==null?void 0:r.unrepresentable)!=null?t:"throw",this.override=(o=r==null?void 0:r.override)!=null?o:()=>{},this.io=(u=r==null?void 0:r.io)!=null?u:"output",this.seen=new Map}process(r,n={path:[],schemaPath:[]}){var v,f,h,x,S;var i;let t=r._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(r);if(u)return u.count++,n.schemaPath.includes(r)&&(u.cycle=n.path),u.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(r,s);let c=(f=(v=r._zod).toJSONSchema)==null?void 0:f.call(v);if(c)s.schema=c;else{let I=z(m({},n),{schemaPath:[...n.schemaPath,r],path:n.path}),C=r._zod.parent;if(C)s.ref=C,this.process(C,I),this.seen.get(C).isParent=!0;else{let j=s.schema;switch(t.type){case"string":{let g=j;g.type="string";let{minimum:$,maximum:k,format:N,patterns:P,contentEncoding:w}=r._zod.bag;if(typeof $=="number"&&(g.minLength=$),typeof k=="number"&&(g.maxLength=k),N&&(g.format=(h=o[N])!=null?h:N,g.format===""&&delete g.format),w&&(g.contentEncoding=w),P&&P.size>0){let D=[...P];D.length===1?g.pattern=D[0].source:D.length>1&&(s.schema.allOf=[...D.map(B=>z(m({},this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{}),{pattern:B.source}))])}break}case"number":{let g=j,{minimum:$,maximum:k,format:N,multipleOf:P,exclusiveMaximum:w,exclusiveMinimum:D}=r._zod.bag;typeof N=="string"&&N.includes("int")?g.type="integer":g.type="number",typeof D=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(g.minimum=D,g.exclusiveMinimum=!0):g.exclusiveMinimum=D),typeof $=="number"&&(g.minimum=$,typeof D=="number"&&this.target!=="draft-4"&&(D>=$?delete g.minimum:delete g.exclusiveMinimum)),typeof w=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(g.maximum=w,g.exclusiveMaximum=!0):g.exclusiveMaximum=w),typeof k=="number"&&(g.maximum=k,typeof w=="number"&&this.target!=="draft-4"&&(w<=k?delete g.maximum:delete g.exclusiveMaximum)),typeof P=="number"&&(g.multipleOf=P);break}case"boolean":{let g=j;g.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(j.type="string",j.nullable=!0,j.enum=[null]):j.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{j.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let g=j,{minimum:$,maximum:k}=r._zod.bag;typeof $=="number"&&(g.minItems=$),typeof k=="number"&&(g.maxItems=k),g.type="array",g.items=this.process(t.element,z(m({},I),{path:[...I.path,"items"]}));break}case"object":{let g=j;g.type="object",g.properties={};let $=t.shape;for(let P in $)g.properties[P]=this.process($[P],z(m({},I),{path:[...I.path,"properties",P]}));let k=new Set(Object.keys($)),N=new Set([...k].filter(P=>{let w=t.shape[P]._zod;return this.io==="input"?w.optin===void 0:w.optout===void 0}));N.size>0&&(g.required=Array.from(N)),((x=t.catchall)==null?void 0:x._zod.def.type)==="never"?g.additionalProperties=!1:t.catchall?t.catchall&&(g.additionalProperties=this.process(t.catchall,z(m({},I),{path:[...I.path,"additionalProperties"]}))):this.io==="output"&&(g.additionalProperties=!1);break}case"union":{let g=j,$=t.options.map((k,N)=>this.process(k,z(m({},I),{path:[...I.path,"anyOf",N]})));g.anyOf=$;break}case"intersection":{let g=j,$=this.process(t.left,z(m({},I),{path:[...I.path,"allOf",0]})),k=this.process(t.right,z(m({},I),{path:[...I.path,"allOf",1]})),N=w=>"allOf"in w&&Object.keys(w).length===1,P=[...N($)?$.allOf:[$],...N(k)?k.allOf:[k]];g.allOf=P;break}case"tuple":{let g=j;g.type="array";let $=this.target==="draft-2020-12"?"prefixItems":"items",k=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",N=t.items.map((B,V)=>this.process(B,z(m({},I),{path:[...I.path,$,V]}))),P=t.rest?this.process(t.rest,z(m({},I),{path:[...I.path,k,...this.target==="openapi-3.0"?[t.items.length]:[]]})):null;this.target==="draft-2020-12"?(g.prefixItems=N,P&&(g.items=P)):this.target==="openapi-3.0"?(g.items={anyOf:N},P&&g.items.anyOf.push(P),g.minItems=N.length,P||(g.maxItems=N.length)):(g.items=N,P&&(g.additionalItems=P));let{minimum:w,maximum:D}=r._zod.bag;typeof w=="number"&&(g.minItems=w),typeof D=="number"&&(g.maxItems=D);break}case"record":{let g=j;g.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(g.propertyNames=this.process(t.keyType,z(m({},I),{path:[...I.path,"propertyNames"]}))),g.additionalProperties=this.process(t.valueType,z(m({},I),{path:[...I.path,"additionalProperties"]}));break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let g=j,$=Ge(t.entries);$.every(k=>typeof k=="number")&&(g.type="number"),$.every(k=>typeof k=="string")&&(g.type="string"),g.enum=$;break}case"literal":{let g=j,$=[];for(let k of t.values)if(k===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof k=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");$.push(Number(k))}else $.push(k);if($.length!==0)if($.length===1){let k=$[0];g.type=k===null?"null":typeof k,this.target==="draft-4"||this.target==="openapi-3.0"?g.enum=[k]:g.const=k}else $.every(k=>typeof k=="number")&&(g.type="number"),$.every(k=>typeof k=="string")&&(g.type="string"),$.every(k=>typeof k=="boolean")&&(g.type="string"),$.every(k=>k===null)&&(g.type="null"),g.enum=$;break}case"file":{let g=j,$={type:"string",format:"binary",contentEncoding:"binary"},{minimum:k,maximum:N,mime:P}=r._zod.bag;k!==void 0&&($.minLength=k),N!==void 0&&($.maxLength=N),P?P.length===1?($.contentMediaType=P[0],Object.assign(g,$)):g.anyOf=P.map(w=>z(m({},$),{contentMediaType:w})):Object.assign(g,$);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let g=this.process(t.innerType,I);this.target==="openapi-3.0"?(s.ref=t.innerType,j.nullable=!0):j.anyOf=[g,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,I),s.ref=t.innerType;break}case"success":{let g=j;g.type="boolean";break}case"default":{this.process(t.innerType,I),s.ref=t.innerType,j.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,I),s.ref=t.innerType,this.io==="input"&&(j._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,I),s.ref=t.innerType;let g;try{g=t.catchValue(void 0)}catch($){throw new Error("Dynamic catch values are not supported in JSON Schema")}j.default=g;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let g=j,$=r._zod.pattern;if(!$)throw new Error("Pattern not found in template literal");g.type="string",g.pattern=$.source;break}case"pipe":{let g=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(g,I),s.ref=g;break}case"readonly":{this.process(t.innerType,I),s.ref=t.innerType,j.readOnly=!0;break}case"promise":{this.process(t.innerType,I),s.ref=t.innerType;break}case"optional":{this.process(t.innerType,I),s.ref=t.innerType;break}case"lazy":{let g=r._zod.innerType;this.process(g,I),s.ref=g;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}default:}}}let a=this.metadataRegistry.get(r);return a&&Object.assign(s.schema,a),this.io==="input"&&J(r)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((S=(i=s.schema).default)!=null||(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(r).schema}emit(r,n){var l,v,f,h,x,S,I,C,j,g;let i={cycles:(l=n==null?void 0:n.cycles)!=null?l:"ref",reused:(v=n==null?void 0:n.reused)!=null?v:"inline",external:(f=n==null?void 0:n.external)!=null?f:void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=$=>{var D,B,V,re,F;let k=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let ne=(D=i.external.registry.get($[0]))==null?void 0:D.id,Je=(B=i.external.uri)!=null?B:Vr=>Vr;if(ne)return{ref:Je(ne)};let ee=(re=(V=$[1].defId)!=null?V:$[1].schema.id)!=null?re:"schema".concat(this.counter++);return $[1].defId=ee,{defId:ee,ref:"".concat(Je("__shared"),"#/").concat(k,"/").concat(ee)}}if($[1]===t)return{ref:"#"};let P="".concat("#","/").concat(k,"/"),w=(F=$[1].schema.id)!=null?F:"__schema".concat(this.counter++);return{defId:w,ref:P+w}},u=$=>{if($[1].schema.$ref)return;let k=$[1],{ref:N,defId:P}=o($);k.def=m({},k.schema),P&&(k.defId=P);let w=k.schema;for(let D in w)delete w[D];w.$ref=N};if(i.cycles==="throw")for(let $ of this.seen.entries()){let k=$[1];if(k.cycle)throw new Error("Cycle detected: "+"#/".concat((h=k.cycle)==null?void 0:h.join("/"),"/<root>")+\'\\n\\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.\')}for(let $ of this.seen.entries()){let k=$[1];if(r===$[0]){u($);continue}if(i.external){let P=(x=i.external.registry.get($[0]))==null?void 0:x.id;if(r!==$[0]&&P){u($);continue}}if((S=this.metadataRegistry.get($[0]))==null?void 0:S.id){u($);continue}if(k.cycle){u($);continue}if(k.count>1&&i.reused==="ref"){u($);continue}}let s=($,k)=>{var B,V,re;let N=this.seen.get($),P=(B=N.def)!=null?B:N.schema,w=m({},P);if(N.ref===null)return;let D=N.ref;if(N.ref=null,D){s(D,k);let F=this.seen.get(D).schema;F.$ref&&(k.target==="draft-7"||k.target==="draft-4"||k.target==="openapi-3.0")?(P.allOf=(V=P.allOf)!=null?V:[],P.allOf.push(F)):(Object.assign(P,F),Object.assign(P,w))}N.isParent||this.override({zodSchema:$,jsonSchema:P,path:(re=N.path)!=null?re:[]})};for(let $ of[...this.seen.entries()].reverse())s($[0],{target:this.target});let c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?c.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(I=i.external)!=null&&I.uri){let $=(C=i.external.registry.get(r))==null?void 0:C.id;if(!$)throw new Error("Schema is missing an `id` property");c.$id=i.external.uri($)}Object.assign(c,t.def);let a=(g=(j=i.external)==null?void 0:j.defs)!=null?g:{};for(let $ of this.seen.entries()){let k=$[1];k.def&&k.defId&&(a[k.defId]=k.def)}i.external||Object.keys(a).length>0&&(this.target==="draft-2020-12"?c.$defs=a:c.definitions=a);try{return JSON.parse(JSON.stringify(c))}catch($){throw new Error("Error converting schema to JSON.")}}};function Qo(e,r){if(e instanceof Te){let i=new xt(r),t={};for(let s of e._idmap.entries()){let[c,a]=s;i.process(a)}let o={},u={registry:e,uri:r==null?void 0:r.uri,defs:t};for(let s of e._idmap.entries()){let[c,a]=s;o[c]=i.emit(a,z(m({},r),{external:u}))}if(Object.keys(t).length>0){let s=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:t}}return{schemas:o}}let n=new xt(r);return n.process(e),n.emit(e,r)}function J(e,r){let n=r!=null?r:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return J(t.element,n);case"object":{for(let o in t.shape)if(J(t.shape[o],n))return!0;return!1}case"union":{for(let o of t.options)if(J(o,n))return!0;return!1}case"intersection":return J(t.left,n)||J(t.right,n);case"tuple":{for(let o of t.items)if(J(o,n))return!0;return!!(t.rest&&J(t.rest,n))}case"record":return J(t.keyType,n)||J(t.valueType,n);case"map":return J(t.keyType,n)||J(t.valueType,n);case"set":return J(t.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return J(t.innerType,n);case"lazy":return J(t.getter(),n);case"default":return J(t.innerType,n);case"prefault":return J(t.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return J(t.in,n)||J(t.out,n);case"success":return!1;case"catch":return!1;case"function":return!1;default:}throw new Error("Unknown schema type: ".concat(t.type))}var Ho={};var kt={};_e(kt,{ZodISODate:()=>wr,ZodISODateTime:()=>Ir,ZodISODuration:()=>jr,ZodISOTime:()=>Sr,date:()=>ta,datetime:()=>ea,duration:()=>na,time:()=>ra});var Ir=d("ZodISODateTime",(e,r)=>{mi.init(e,r),A.init(e,r)});function ea(e){return po(Ir,e)}var wr=d("ZodISODate",(e,r)=>{fi.init(e,r),A.init(e,r)});function ta(e){return go(wr,e)}var Sr=d("ZodISOTime",(e,r)=>{pi.init(e,r),A.init(e,r)});function ra(e){return vo(Sr,e)}var jr=d("ZodISODuration",(e,r)=>{gi.init(e,r),A.init(e,r)});function na(e){return ho(jr,e)}var xc=(e,r)=>{Qe.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>et(e,n)},flatten:{value:n=>He(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Se,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Se,2)}},isEmpty:{get(){return e.issues.length===0}}})},Bd=d("ZodError",xc),X=d("ZodError",xc,{Parent:Error});var ia=Pe(X),oa=Ue(X),aa=Ne(X),ua=Ze(X),ca=Tt(X),sa=Et(X),la=At(X),da=Rt(X),ma=Lt(X),fa=Ct(X),pa=Vt(X),ga=Ft(X);var U=d("ZodType",(e,r)=>(O.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...n)=>{var i;return e.clone(_.mergeDefs(r,{checks:[...(i=r.checks)!=null?i:[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}))},e.clone=(n,i)=>K(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>ia(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>aa(e,n,i),e.parseAsync=async(n,i)=>oa(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>ua(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>ca(e,n,i),e.decode=(n,i)=>sa(e,n,i),e.encodeAsync=async(n,i)=>la(e,n,i),e.decodeAsync=async(n,i)=>da(e,n,i),e.safeEncode=(n,i)=>ma(e,n,i),e.safeDecode=(n,i)=>fa(e,n,i),e.safeEncodeAsync=async(n,i)=>pa(e,n,i),e.safeDecodeAsync=async(n,i)=>ga(e,n,i),e.refine=(n,i)=>e.check(cs(n,i)),e.superRefine=n=>e.check(ss(n)),e.overwrite=n=>e.check(le(n)),e.optional=()=>Pr(e),e.nullable=()=>Ur(e),e.nullish=()=>Pr(Ur(e)),e.nonoptional=n=>qc(e,n),e.array=()=>Tr(e),e.or=n=>Ra([e,n]),e.and=n=>Ec(e,n),e.transform=n=>Nr(e,Va(n)),e.default=n=>Gc(e,n),e.prefault=n=>Xc(e,n),e.catch=n=>Hc(e,n),e.pipe=n=>Nr(e,n),e.readonly=()=>rs(e),e.describe=n=>{let i=e.clone();return oe.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=oe.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return oe.get(e);let i=e.clone();return oe.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),$a=d("_ZodString",(e,r)=>{var i,t,o;ke.init(e,r),U.init(e,r);let n=e._zod.bag;e.format=(i=n.format)!=null?i:null,e.minLength=(t=n.minimum)!=null?t:null,e.maxLength=(o=n.maximum)!=null?o:null,e.regex=(...u)=>e.check(dt(...u)),e.includes=(...u)=>e.check(pt(...u)),e.startsWith=(...u)=>e.check(gt(...u)),e.endsWith=(...u)=>e.check(vt(...u)),e.min=(...u)=>e.check($e(...u)),e.max=(...u)=>e.check(Ae(...u)),e.length=(...u)=>e.check(Re(...u)),e.nonempty=(...u)=>e.check($e(1,...u)),e.lowercase=u=>e.check(mt(u)),e.uppercase=u=>e.check(ft(u)),e.trim=()=>e.check(bt()),e.normalize=(...u)=>e.check($t(...u)),e.toLowerCase=()=>e.check(_t()),e.toUpperCase=()=>e.check(yt())}),It=d("ZodString",(e,r)=>{ke.init(e,r),$a.init(e,r),e.email=n=>e.check(or(ba,n)),e.url=n=>e.check(st(Zr,n)),e.jwt=n=>e.check(zr(Da,n)),e.emoji=n=>e.check(lr(_a,n)),e.guid=n=>e.check(ct(Or,n)),e.uuid=n=>e.check(ar(de,n)),e.uuidv4=n=>e.check(ur(de,n)),e.uuidv6=n=>e.check(cr(de,n)),e.uuidv7=n=>e.check(sr(de,n)),e.nanoid=n=>e.check(dr(ya,n)),e.guid=n=>e.check(ct(Or,n)),e.cuid=n=>e.check(mr(xa,n)),e.cuid2=n=>e.check(fr(ka,n)),e.ulid=n=>e.check(pr(za,n)),e.base64=n=>e.check(yr(Ua,n)),e.base64url=n=>e.check(xr(Na,n)),e.xid=n=>e.check(gr(Ia,n)),e.ksuid=n=>e.check(vr(wa,n)),e.ipv4=n=>e.check(hr(Sa,n)),e.ipv6=n=>e.check($r(ja,n)),e.cidrv4=n=>e.check(br(Oa,n)),e.cidrv6=n=>e.check(_r(Pa,n)),e.e164=n=>e.check(kr(Za,n)),e.datetime=n=>e.check(ea(n)),e.date=n=>e.check(ta(n)),e.time=n=>e.check(ra(n)),e.duration=n=>e.check(na(n))});function va(e){return lo(It,e)}var A=d("ZodStringFormat",(e,r)=>{T.init(e,r),$a.init(e,r)}),ba=d("ZodEmail",(e,r)=>{ni.init(e,r),A.init(e,r)});function Gd(e){return or(ba,e)}var Or=d("ZodGUID",(e,r)=>{ti.init(e,r),A.init(e,r)});function Wd(e){return ct(Or,e)}var de=d("ZodUUID",(e,r)=>{ri.init(e,r),A.init(e,r)});function Xd(e){return ar(de,e)}function qd(e){return ur(de,e)}function Yd(e){return cr(de,e)}function Qd(e){return sr(de,e)}var Zr=d("ZodURL",(e,r)=>{ii.init(e,r),A.init(e,r)});function Hd(e){return st(Zr,e)}function em(e){return st(Zr,m({protocol:/^https?$/,hostname:Q.domain},_.normalizeParams(e)))}var _a=d("ZodEmoji",(e,r)=>{oi.init(e,r),A.init(e,r)});function tm(e){return lr(_a,e)}var ya=d("ZodNanoID",(e,r)=>{ai.init(e,r),A.init(e,r)});function rm(e){return dr(ya,e)}var xa=d("ZodCUID",(e,r)=>{ui.init(e,r),A.init(e,r)});function nm(e){return mr(xa,e)}var ka=d("ZodCUID2",(e,r)=>{ci.init(e,r),A.init(e,r)});function im(e){return fr(ka,e)}var za=d("ZodULID",(e,r)=>{si.init(e,r),A.init(e,r)});function om(e){return pr(za,e)}var Ia=d("ZodXID",(e,r)=>{li.init(e,r),A.init(e,r)});function am(e){return gr(Ia,e)}var wa=d("ZodKSUID",(e,r)=>{di.init(e,r),A.init(e,r)});function um(e){return vr(wa,e)}var Sa=d("ZodIPv4",(e,r)=>{vi.init(e,r),A.init(e,r)});function cm(e){return hr(Sa,e)}var ja=d("ZodIPv6",(e,r)=>{hi.init(e,r),A.init(e,r)});function sm(e){return $r(ja,e)}var Oa=d("ZodCIDRv4",(e,r)=>{$i.init(e,r),A.init(e,r)});function lm(e){return br(Oa,e)}var Pa=d("ZodCIDRv6",(e,r)=>{bi.init(e,r),A.init(e,r)});function dm(e){return _r(Pa,e)}var Ua=d("ZodBase64",(e,r)=>{yi.init(e,r),A.init(e,r)});function mm(e){return yr(Ua,e)}var Na=d("ZodBase64URL",(e,r)=>{xi.init(e,r),A.init(e,r)});function fm(e){return xr(Na,e)}var Za=d("ZodE164",(e,r)=>{ki.init(e,r),A.init(e,r)});function pm(e){return kr(Za,e)}var Da=d("ZodJWT",(e,r)=>{zi.init(e,r),A.init(e,r)});function gm(e){return zr(Da,e)}var wt=d("ZodCustomStringFormat",(e,r)=>{Ii.init(e,r),A.init(e,r)});function vm(e,r,n={}){return Le(wt,e,r,n)}function hm(e){return Le(wt,"hostname",Q.hostname,e)}function $m(e){return Le(wt,"hex",Q.hex,e)}function bm(e,r){var o;let n=(o=r==null?void 0:r.enc)!=null?o:"hex",i="".concat(e,"_").concat(n),t=Q[i];if(!t)throw new Error("Unrecognized hash format: ".concat(i));return Le(wt,i,t,r)}var St=d("ZodNumber",(e,r)=>{var i,t,o,u,s,c,a,l,v;Yt.init(e,r),U.init(e,r),e.gt=(f,h)=>e.check(se(f,h)),e.gte=(f,h)=>e.check(W(f,h)),e.min=(f,h)=>e.check(W(f,h)),e.lt=(f,h)=>e.check(ce(f,h)),e.lte=(f,h)=>e.check(H(f,h)),e.max=(f,h)=>e.check(H(f,h)),e.int=f=>e.check(ha(f)),e.safe=f=>e.check(ha(f)),e.positive=f=>e.check(se(0,f)),e.nonnegative=f=>e.check(W(0,f)),e.negative=f=>e.check(ce(0,f)),e.nonpositive=f=>e.check(H(0,f)),e.multipleOf=(f,h)=>e.check(Ie(f,h)),e.step=(f,h)=>e.check(Ie(f,h)),e.finite=()=>e;let n=e._zod.bag;e.minValue=(o=Math.max((i=n.minimum)!=null?i:Number.NEGATIVE_INFINITY,(t=n.exclusiveMinimum)!=null?t:Number.NEGATIVE_INFINITY))!=null?o:null,e.maxValue=(c=Math.min((u=n.maximum)!=null?u:Number.POSITIVE_INFINITY,(s=n.exclusiveMaximum)!=null?s:Number.POSITIVE_INFINITY))!=null?c:null,e.isInt=((a=n.format)!=null?a:"").includes("int")||Number.isSafeInteger((l=n.multipleOf)!=null?l:.5),e.isFinite=!0,e.format=(v=n.format)!=null?v:null});function kc(e){return $o(St,e)}var Ve=d("ZodNumberFormat",(e,r)=>{wi.init(e,r),St.init(e,r)});function ha(e){return _o(Ve,e)}function _m(e){return yo(Ve,e)}function ym(e){return xo(Ve,e)}function xm(e){return ko(Ve,e)}function km(e){return zo(Ve,e)}var jt=d("ZodBoolean",(e,r)=>{it.init(e,r),U.init(e,r)});function zc(e){return Io(jt,e)}var Ot=d("ZodBigInt",(e,r)=>{var i,t,o;Qt.init(e,r),U.init(e,r),e.gte=(u,s)=>e.check(W(u,s)),e.min=(u,s)=>e.check(W(u,s)),e.gt=(u,s)=>e.check(se(u,s)),e.gte=(u,s)=>e.check(W(u,s)),e.min=(u,s)=>e.check(W(u,s)),e.lt=(u,s)=>e.check(ce(u,s)),e.lte=(u,s)=>e.check(H(u,s)),e.max=(u,s)=>e.check(H(u,s)),e.positive=u=>e.check(se(BigInt(0),u)),e.negative=u=>e.check(ce(BigInt(0),u)),e.nonpositive=u=>e.check(H(BigInt(0),u)),e.nonnegative=u=>e.check(W(BigInt(0),u)),e.multipleOf=(u,s)=>e.check(Ie(u,s));let n=e._zod.bag;e.minValue=(i=n.minimum)!=null?i:null,e.maxValue=(t=n.maximum)!=null?t:null,e.format=(o=n.format)!=null?o:null});function zm(e){return So(Ot,e)}var Ta=d("ZodBigIntFormat",(e,r)=>{Si.init(e,r),Ot.init(e,r)});function Im(e){return Oo(Ta,e)}function wm(e){return Po(Ta,e)}var Ic=d("ZodSymbol",(e,r)=>{ji.init(e,r),U.init(e,r)});function Sm(e){return Uo(Ic,e)}var wc=d("ZodUndefined",(e,r)=>{Oi.init(e,r),U.init(e,r)});function jm(e){return No(wc,e)}var Sc=d("ZodNull",(e,r)=>{Pi.init(e,r),U.init(e,r)});function jc(e){return Zo(Sc,e)}var Oc=d("ZodAny",(e,r)=>{Ui.init(e,r),U.init(e,r)});function Om(){return Do(Oc)}var Pc=d("ZodUnknown",(e,r)=>{Ni.init(e,r),U.init(e,r)});function Ce(){return To(Pc)}var Uc=d("ZodNever",(e,r)=>{Zi.init(e,r),U.init(e,r)});function Ea(e){return Eo(Uc,e)}var Nc=d("ZodVoid",(e,r)=>{Di.init(e,r),U.init(e,r)});function Pm(e){return Ao(Nc,e)}var Dr=d("ZodDate",(e,r)=>{Ti.init(e,r),U.init(e,r),e.min=(i,t)=>e.check(W(i,t)),e.max=(i,t)=>e.check(H(i,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Um(e){return Ro(Dr,e)}var Zc=d("ZodArray",(e,r)=>{Ei.init(e,r),U.init(e,r),e.element=r.element,e.min=(n,i)=>e.check($e(n,i)),e.nonempty=n=>e.check($e(1,n)),e.max=(n,i)=>e.check(Ae(n,i)),e.length=(n,i)=>e.check(Re(n,i)),e.unwrap=()=>e.element});function Tr(e,r){return Ko(Zc,e,r)}function Nm(e){let r=e._zod.def.shape;return Ca(Object.keys(r))}var Er=d("ZodObject",(e,r)=>{Ai.init(e,r),U.init(e,r),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>Ca(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone(z(m({},e._zod.def),{catchall:n})),e.passthrough=()=>e.clone(z(m({},e._zod.def),{catchall:Ce()})),e.loose=()=>e.clone(z(m({},e._zod.def),{catchall:Ce()})),e.strict=()=>e.clone(z(m({},e._zod.def),{catchall:Ea()})),e.strip=()=>e.clone(z(m({},e._zod.def),{catchall:void 0})),e.extend=n=>_.extend(e,n),e.safeExtend=n=>_.safeExtend(e,n),e.merge=n=>_.merge(e,n),e.pick=n=>_.pick(e,n),e.omit=n=>_.omit(e,n),e.partial=(...n)=>_.partial(Fa,e,n[0]),e.required=(...n)=>_.required(Ja,e,n[0])});function Zm(e,r){let n=m({type:"object",shape:e!=null?e:{}},_.normalizeParams(r));return new Er(n)}function Dm(e,r){return new Er(m({type:"object",shape:e,catchall:Ea()},_.normalizeParams(r)))}function Tm(e,r){return new Er(m({type:"object",shape:e,catchall:Ce()},_.normalizeParams(r)))}var Aa=d("ZodUnion",(e,r)=>{Ht.init(e,r),U.init(e,r),e.options=r.options});function Ra(e,r){return new Aa(m({type:"union",options:e},_.normalizeParams(r)))}var Dc=d("ZodDiscriminatedUnion",(e,r)=>{Aa.init(e,r),Ri.init(e,r)});function Em(e,r,n){return new Dc(m({type:"union",options:r,discriminator:e},_.normalizeParams(n)))}var Tc=d("ZodIntersection",(e,r)=>{Li.init(e,r),U.init(e,r)});function Ec(e,r){return new Tc({type:"intersection",left:e,right:r})}var Ac=d("ZodTuple",(e,r)=>{er.init(e,r),U.init(e,r),e.rest=n=>e.clone(z(m({},e._zod.def),{rest:n}))});function Rc(e,r,n){let i=r instanceof O,t=i?n:r,o=i?r:null;return new Ac(m({type:"tuple",items:e,rest:o},_.normalizeParams(t)))}var La=d("ZodRecord",(e,r)=>{Ci.init(e,r),U.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Lc(e,r,n){return new La(m({type:"record",keyType:e,valueType:r},_.normalizeParams(n)))}function Am(e,r,n){let i=K(e);return i._zod.values=void 0,new La(m({type:"record",keyType:i,valueType:r},_.normalizeParams(n)))}var Cc=d("ZodMap",(e,r)=>{Vi.init(e,r),U.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Rm(e,r,n){return new Cc(m({type:"map",keyType:e,valueType:r},_.normalizeParams(n)))}var Vc=d("ZodSet",(e,r)=>{Fi.init(e,r),U.init(e,r),e.min=(...n)=>e.check(we(...n)),e.nonempty=n=>e.check(we(1,n)),e.max=(...n)=>e.check(Ee(...n)),e.size=(...n)=>e.check(lt(...n))});function Lm(e,r){return new Vc(m({type:"set",valueType:e},_.normalizeParams(r)))}var zt=d("ZodEnum",(e,r)=>{Ji.init(e,r),U.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(i,t)=>{let o={};for(let u of i)if(n.has(u))o[u]=r.entries[u];else throw new Error("Key ".concat(u," not found in enum"));return new zt(z(m(z(m({},r),{checks:[]}),_.normalizeParams(t)),{entries:o}))},e.exclude=(i,t)=>{let o=m({},r.entries);for(let u of i)if(n.has(u))delete o[u];else throw new Error("Key ".concat(u," not found in enum"));return new zt(z(m(z(m({},r),{checks:[]}),_.normalizeParams(t)),{entries:o}))}});function Ca(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zt(m({type:"enum",entries:n},_.normalizeParams(r)))}function Cm(e,r){return new zt(m({type:"enum",entries:e},_.normalizeParams(r)))}var Fc=d("ZodLiteral",(e,r)=>{Mi.init(e,r),U.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Vm(e,r){return new Fc(m({type:"literal",values:Array.isArray(e)?e:[e]},_.normalizeParams(r)))}var Jc=d("ZodFile",(e,r)=>{Bi.init(e,r),U.init(e,r),e.min=(n,i)=>e.check(we(n,i)),e.max=(n,i)=>e.check(Ee(n,i)),e.mime=(n,i)=>e.check(ht(Array.isArray(n)?n:[n],i))});function Fm(e){return Go(Jc,e)}var Mc=d("ZodTransform",(e,r)=>{Ki.init(e,r),U.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new me(e.constructor.name);n.addIssue=o=>{var u,s,c;if(typeof o=="string")n.issues.push(_.issue(o,n.value,r));else{let a=o;a.fatal&&(a.continue=!1),(u=a.code)!=null||(a.code="custom"),(s=a.input)!=null||(a.input=n.value),(c=a.inst)!=null||(a.inst=e),n.issues.push(_.issue(a))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(o=>(n.value=o,n)):(n.value=t,n)}});function Va(e){return new Mc({type:"transform",transform:e})}var Fa=d("ZodOptional",(e,r)=>{Gi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Pr(e){return new Fa({type:"optional",innerType:e})}var Bc=d("ZodNullable",(e,r)=>{Wi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Ur(e){return new Bc({type:"nullable",innerType:e})}function Jm(e){return Pr(Ur(e))}var Kc=d("ZodDefault",(e,r)=>{Xi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gc(e,r){return new Kc({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Wc=d("ZodPrefault",(e,r)=>{qi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Xc(e,r){return new Wc({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Ja=d("ZodNonOptional",(e,r)=>{Yi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qc(e,r){return new Ja(m({type:"nonoptional",innerType:e},_.normalizeParams(r)))}var Yc=d("ZodSuccess",(e,r)=>{Qi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Mm(e){return new Yc({type:"success",innerType:e})}var Qc=d("ZodCatch",(e,r)=>{Hi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Hc(e,r){return new Qc({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var es=d("ZodNaN",(e,r)=>{eo.init(e,r),U.init(e,r)});function Bm(e){return Co(es,e)}var Ma=d("ZodPipe",(e,r)=>{to.init(e,r),U.init(e,r),e.in=r.in,e.out=r.out});function Nr(e,r){return new Ma({type:"pipe",in:e,out:r})}var Ba=d("ZodCodec",(e,r)=>{Ma.init(e,r),ot.init(e,r)});function Km(e,r,n){return new Ba({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}var ts=d("ZodReadonly",(e,r)=>{ro.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function rs(e){return new ts({type:"readonly",innerType:e})}var ns=d("ZodTemplateLiteral",(e,r)=>{no.init(e,r),U.init(e,r)});function Gm(e,r){return new ns(m({type:"template_literal",parts:e},_.normalizeParams(r)))}var is=d("ZodLazy",(e,r)=>{ao.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.getter()});function os(e){return new is({type:"lazy",getter:e})}var as=d("ZodPromise",(e,r)=>{oo.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Wm(e){return new as({type:"promise",innerType:e})}var us=d("ZodFunction",(e,r)=>{io.init(e,r),U.init(e,r)});function Xm(e){var r,n;return new us({type:"function",input:Array.isArray(e==null?void 0:e.input)?Rc(e==null?void 0:e.input):(r=e==null?void 0:e.input)!=null?r:Tr(Ce()),output:(n=e==null?void 0:e.output)!=null?n:Ce()})}var Ar=d("ZodCustom",(e,r)=>{uo.init(e,r),U.init(e,r)});function qm(e){let r=new R({check:"custom"});return r._zod.check=e,r}function Ym(e,r){return Wo(Ar,e!=null?e:()=>!0,r)}function cs(e,r={}){return Xo(Ar,e,r)}function ss(e){return qo(e)}function Qm(e,r={error:"Input not instance of ".concat(e.name)}){let n=new Ar(m({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0},_.normalizeParams(r)));return n._zod.bag.Class=e,n}var Hm=(...e)=>Yo({Codec:Ba,Boolean:jt,String:It},...e);function ef(e){let r=os(()=>Ra([va(e),kc(),zc(),jc(),Tr(r),Lc(va(),r)]));return r}function tf(e,r){return Nr(Va(e),r)}var rf={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function nf(e){L({customError:e})}function of(){return L().customError}var Ka;Ka||(Ka={});var Rr={};_e(Rr,{bigint:()=>sf,boolean:()=>cf,date:()=>lf,number:()=>uf,string:()=>af});function af(e){return mo(It,e)}function uf(e){return bo(St,e)}function cf(e){return wo(jt,e)}function sf(e){return jo(Ot,e)}function lf(e){return Lo(Dr,e)}L(tr());var bv=Fe.union([Fe.enum(["low","medium","high","always-visible"]),Fe.number()]);var Lr=5;var df=9,be=200,Cr=10;function ls(e,r,n,i,t,o,u="-1"){var N,P;let s=1/0,c=1/0,a=-1/0,l=-1/0,v=new E(-Cr,0,5,n),f=new E(-Cr,0,r,5),h=new E(r-5,0,r+Cr,n),x=new E(0,n-5,r,n+Cr),S=mf(r,n,i,t,o),I=[v,f,h,x],C=new E(-be,-be,r+be*2,n+be*2);for(let w of e){let D,B;for(let V=0;V<w.bboxes.length;V++){if(w.bboxes[V]==null||(D=w.bboxes[V].boundingBox,B=w.bboxes[V].index,w.lockedToStrategyIndex!==-1&&B!==w.lockedToStrategyIndex))continue;let[re,F,ne,Je]=D,[ee,Vr,Ga,ms]=[w.y-re,w.y+F,w.x-ne,w.x+Je],Fr=Ga,Jr=ee,Wa=ms-Ga,Xa=Vr-ee;s=Math.min(s,Fr)-be,c=Math.min(c,Jr)-be,a=Math.max(a,Fr+Wa)+be,l=Math.max(l,Jr+Xa)+be,w.bboxes[V].boundingRect=new E(Fr,Jr,Wa,Xa)}}let j=new Me(new E(s,c,a-s,l-c)),g={msgId:u,colliders:new Array(e.length),staticColliders:[],debug:[]},$=0;for(let w=0;w<e.length;w++){let D=e[w];((P=(N=D.bboxes)==null?void 0:N[0])==null?void 0:P.index)===df&&(g.staticColliders.push(D.bboxes[0].boundingRect),j.insert(D.bboxes[0].boundingRect),$++)}e=e.slice($,e.length);let k;for(let w=0;w<e.length;w++)if(k=e[w],g.colliders[w]=[-1,0],k.enabledAndVisible){let[D,B,V]=[1/0,-1,void 0];for(let{index:re,boundingRect:F}of k.bboxes){if(F==null)continue;let ne=[];if(ne=j.queryRect(F).filter(ee=>F.intersects(ee)),k.shouldCollideWithScreenEdges&&I.forEach(ee=>{F.intersects(ee)&&ne.push(ee)}),F.intersects(S)){g.colliders[w]=[-1,0,F];break}if(ne.length<=D&&(V=F,B=re,D=ne.length),ne.length===0){j.insert(F),g.colliders[w]=[re,C.contains(F)?0:1,F];break}}k.rank===Lr&&V!=null&&(j.insert(V),g.colliders[w]=[B,C.contains(V)?0:1,V])}else g.colliders[w]=[-1,0];return g}function mf(e,r,n,i,t){switch(t){case"top-left":return new E(0,0,n,i);case"top-right":return new E(e-n,0,n,i);case"bottom-left":return new E(0,r-i,n,i);case"bottom-right":return new E(e-n,r-i,n,i);case"center":return new E((e-n)/2,(r-i)/2,n,i);case"top":return new E((e-n)/2,0,n,i);case"bottom":return new E((e-n)/2,r-i,n,i);case"left":return new E(0,(r-i)/2,n,i);case"right":return new E(e-n,(r-i)/2,n,i);default:return new E(0,r-i,n,i)}}function ds(e){let r=e[0].map(n=>{let i=n[0].map(t=>({index:t[4],boundingBox:[t[0],t[1],t[2],t[3]]}));return{enabledAndVisible:n[1]===1,rank:n[2]===1?Lr:0,x:n[3],y:n[4],shouldCollideWithScreenEdges:n[5]===1,bboxes:i,lockedToStrategyIndex:n[6]}});return{msgId:"-1",totalWidth:e[3],totalHeight:e[2],watermarkWidth:e[4],watermarkHeight:e[5],watermarkPosition:e[6],colliders:r,devicePixelRatio:e[1]}}self.onmessage=e=>{let r=ds(e.data);self.postMessage(ls(r.colliders,r.totalWidth,r.totalHeight,r.watermarkWidth,r.watermarkHeight,r.watermarkPosition,r.msgId))};})();\n';l();l();l();l();l();function cb(e,t){return t.x+t.w<e.x+e.w&&t.x>e.x&&t.y>e.y&&t.y+t.h<e.y+e.h}o(cb,"contains");l();function lb(e,t){let[r,n]=t;return r>=e.x&&r<=e.x+e.w&&n>=e.y&&n<=e.y+e.h}o(lb,"intersectPoint");l();function db(e,t){let r=t.x,n=t.y,i=t.x+t.w,a=t.y+t.h,u=e.x,s=e.y,d=e.x+e.w,m=e.y+e.h;return r<d&&u<i&&n<m&&s<a}o(db,"intersects");l();function vi(e,t){for(let r=0;r<t.length;r++)e.push(t[r])}o(vi,"appendItems");l();var Qp=class Qp{constructor(t,r,n,i,a){h(this,"x");h(this,"y");h(this,"w");h(this,"h");h(this,"userData");this.userData=typeof a>"u"?null:a,this.x=t,this.y=r,this.w=n,this.h=i}contains(t){return t===this?!1:cb(this,t)}intersects(t){return db(this,t)}intersectsPoint(t){return lb(this,t)}draw(t){t.fillStyle="rgba(123,222,26, 0.8)",t.fillRect(this.x,this.y,this.w,this.h)}};o(Qp,"Rectangle");var Fe=Qp;var No=class No{constructor(t,r){h(this,"topLeft");h(this,"topRight");h(this,"bottomLeft");h(this,"bottomRight");h(this,"divided",!1);h(this,"boundary");h(this,"capacity",16);h(this,"objects",[]);h(this,"parent");this.parent=r,this.boundary=t}getSize(){return this.divided?this.objects.length+this.topLeft.getSize()+this.topRight.getSize()+this.bottomLeft.getSize()+this.bottomRight.getSize():this.objects.length}subdivide(){let{x:t,y:r,w:n,h:i}=this.boundary;this.topLeft=new No(new Fe(t,r,n/2,i/2),this),this.topRight=new No(new Fe(t+n/2,r,n/2,i/2),this),this.bottomLeft=new No(new Fe(t,r+i/2,n/2,i/2),this),this.bottomRight=new No(new Fe(t+n/2,r+i/2,n/2,i/2),this),this.divided=!0}queryRect(t){let r=[];if(this.boundary.intersects(t))r.push(...this.objects);else return[];return this.divided&&(vi(r,this.topLeft.queryRect(t)),vi(r,this.topRight.queryRect(t)),vi(r,this.bottomLeft.queryRect(t)),vi(r,this.bottomRight.queryRect(t))),r}queryPoint(t){let r=[];if(this.boundary.intersectsPoint(t))r.push(...this.objects);else return[];return this.divided&&(vi(r,this.topLeft.queryPoint(t)),vi(r,this.topRight.queryPoint(t)),vi(r,this.bottomLeft.queryPoint(t)),vi(r,this.bottomRight.queryPoint(t))),r}insert(t){return(this.parent?!this.boundary.contains(t):!this.boundary.intersects(t))?!1:this.objects.length<this.capacity?(this.objects.push(t),!0):(this.divided||this.subdivide(),(this.topLeft.insert(t)||this.topRight.insert(t)||this.bottomLeft.insert(t)||this.bottomRight.insert(t))===!1&&this.objects.push(t),!0)}drawObjects(t){this.objects.forEach(r=>r.draw(t)),this.divided&&(this.topLeft.drawObjects(t),this.topRight.drawObjects(t),this.bottomLeft.drawObjects(t),this.bottomRight.drawObjects(t))}draw(t){t.rect(this.boundary.x,this.boundary.y,this.boundary.w,this.boundary.h),this.divided&&(this.topLeft.draw(t),this.topRight.draw(t),this.bottomLeft.draw(t),this.bottomRight.draw(t)),t.strokeStyle="black",t.lineWidth=4,t.stroke()}};o(No,"QuadTree");var tn=No;l();var ef=9,to=200,ll=10;function mb(e,t,r,n,i,a,u="-1"){var V,z;let s=1/0,d=1/0,m=-1/0,f=-1/0,g=new Fe(-ll,0,5,r),b=new Fe(-ll,0,t,5),v=new Fe(t-5,0,t+ll,r),C=new Fe(0,r-5,t,r+ll),A=JI(t,r,n,i,a),x=[g,b,v,C],E=new Fe(-to,-to,t+to*2,r+to*2);for(let M of e){let T,Z;for(let j=0;j<M.bboxes.length;j++){if(M.bboxes[j]==null||(T=M.bboxes[j].boundingBox,Z=M.bboxes[j].index,M.lockedToStrategyIndex!==-1&&Z!==M.lockedToStrategyIndex))continue;let[W,$,q,J]=T,[G,ae,te,ee]=[M.y-W,M.y+$,M.x-q,M.x+J],le=te,fe=G,xe=ee-te,be=ae-G;s=Math.min(s,le)-to,d=Math.min(d,fe)-to,m=Math.max(m,le+xe)+to,f=Math.max(f,fe+be)+to,M.bboxes[j].boundingRect=new Fe(le,fe,xe,be)}}let S=new tn(new Fe(s,d,m-s,f-d)),D={msgId:u,colliders:new Array(e.length),staticColliders:[],debug:[]},I=0;for(let M=0;M<e.length;M++){let T=e[M];((z=(V=T.bboxes)==null?void 0:V[0])==null?void 0:z.index)===ef&&(D.staticColliders.push(T.bboxes[0].boundingRect),S.insert(T.bboxes[0].boundingRect),I++)}e=e.slice(I,e.length);let k;for(let M=0;M<e.length;M++)if(k=e[M],D.colliders[M]=[-1,0],k.enabledAndVisible){let[T,Z,j]=[1/0,-1,void 0];for(let{index:W,boundingRect:$}of k.bboxes){if($==null)continue;let q=[];if(q=S.queryRect($).filter(G=>$.intersects(G)),k.shouldCollideWithScreenEdges&&x.forEach(G=>{$.intersects(G)&&q.push(G)}),$.intersects(A)){D.colliders[M]=[-1,0,$];break}if(q.length<=T&&(j=$,Z=W,T=q.length),q.length===0){S.insert($),D.colliders[M]=[W,E.contains($)?0:1,$];break}}k.rank===Fa&&j!=null&&(S.insert(j),D.colliders[M]=[Z,E.contains(j)?0:1,j])}else D.colliders[M]=[-1,0];return D}o(mb,"processColliders");function JI(e,t,r,n,i){switch(i){case"top-left":return new Fe(0,0,r,n);case"top-right":return new Fe(e-r,0,r,n);case"bottom-left":return new Fe(0,t-n,r,n);case"bottom-right":return new Fe(e-r,t-n,r,n);case"center":return new Fe((e-r)/2,(t-n)/2,r,n);case"top":return new Fe((e-r)/2,0,r,n);case"bottom":return new Fe((e-r)/2,t-n,r,n);case"left":return new Fe(0,(t-n)/2,r,n);case"right":return new Fe(e-r,(t-n)/2,r,n);default:return new Fe(0,t-n,r,n)}}o(JI,"getWatermarkBoundary");l();l();function pb(e){let t=e[0].map(r=>{let n=r[0].map(i=>({index:i[4],boundingBox:[i[0],i[1],i[2],i[3]]}));return{enabledAndVisible:r[1]===1,rank:r[2]===1?Fa:0,x:r[3],y:r[4],shouldCollideWithScreenEdges:r[5]===1,bboxes:n,lockedToStrategyIndex:r[6]}});return{msgId:"-1",totalWidth:e[3],totalHeight:e[2],watermarkWidth:e[4],watermarkHeight:e[5],watermarkPosition:e[6],colliders:t,devicePixelRatio:e[1]}}o(pb,"unpackMessage");var tf=class tf{constructor(){h(this,"onerror",o(()=>{},"onerror"));h(this,"onmessage",o(()=>{},"onmessage"));h(this,"postMessage",o(t=>{let r=pb(t);this.onmessage({data:mb(r.colliders,r.totalWidth,r.totalHeight,r.watermarkWidth,r.watermarkHeight,r.watermarkPosition,r.msgId)})},"postMessage"));h(this,"terminate",o(()=>{},"terminate"))}};o(tf,"SyncWorker");var rs=tf;l();l();globalThis.MappedinDebug||(globalThis.MappedinDebug={});globalThis.MappedinDebug.__idleCallbackInteractionState={isInteracting:!1,interactionCheckers:[],pendingCallbacks:[],registerInteractionChecker:o(function(e){this.interactionCheckers.push(e)},"registerInteractionChecker"),unregisterInteractionChecker:o(function(e){let t;for(let r=this.interactionCheckers.length-1;r>=0;r--)if(t=this.interactionCheckers[r],t===e){this.interactionCheckers.splice(r,1);break}},"unregisterInteractionChecker"),checkInteraction:o(function(){let e=!1;for(let t=0;t<this.interactionCheckers.length;t++)if(e=this.interactionCheckers[t](),e)return!0;return!1},"checkInteraction"),addPendingCallback:o(function(e,t){this.pendingCallbacks.push({callback:e,timeoutId:t}),this.scheduleDeferredCheck()},"addPendingCallback"),scheduleDeferredCheck:o(function(){var e=this;this.checkTimeoutId||(this.checkTimeoutId=setTimeout(o(function t(){if(e.checkInteraction())e.checkTimeoutId=setTimeout(t,16);else{e.checkTimeoutId=null;var r=e.pendingCallbacks.slice();e.pendingCallbacks=[];let n;for(let i=0;i<r.length;i++)if(n=r[i],n&&n.callback)try{n.callback()}catch(a){}}},"checkAndExecute"),16))},"scheduleDeferredCheck"),removePendingCallback:o(function(e){let t;for(let r=this.pendingCallbacks.length-1;r>=0;r--)if(t=this.pendingCallbacks[r],t.timeoutId===e){this.pendingCallbacks.splice(r,1);break}},"removePendingCallback")};globalThis.requestIdleCallback=globalThis.requestIdleCallback||function(e){var a,u;var t=performance.now(),r,n=!1,i=o(function(){if(!n){n=!0;try{e({didTimeout:!1,timeRemaining:o(function(){return Math.max(0,50-(performance.now()-t))},"timeRemaining")})}catch(s){}}},"wrappedCallback");return(u=(a=globalThis.MappedinDebug)==null?void 0:a.__idleCallbackInteractionState)!=null&&u.checkInteraction()?(r=Date.now()+Math.random(),globalThis.MappedinDebug.__idleCallbackInteractionState.addPendingCallback(i,r),r):(r=setTimeout(i,0),r)};globalThis.cancelIdleCallback=globalThis.cancelIdleCallback||function(e){var t,r;clearTimeout(e),(r=(t=globalThis.MappedinDebug)==null?void 0:t.__idleCallbackInteractionState)==null||r.removePendingCallback(e)};l();l();l();l();l();l();l();l();l();l();l();function rf(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}o(rf,"getCoord");function Uo(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}o(Uo,"getCoords");function ka(e){return e.type==="Feature"?e.geometry:e}o(ka,"getGeom");function ro(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var n=rf(e),i=ka(t),a=i.type,u=t.bbox,s=i.coordinates;if(u&&XI(n,u)===!1)return!1;a==="Polygon"&&(s=[s]);for(var d=!1,m=0;m<s.length&&!d;m++)if(fb(n,s[m][0],r.ignoreBoundary)){for(var f=!1,g=1;g<s[m].length&&!f;)fb(n,s[m][g],!r.ignoreBoundary)&&(f=!0),g++;f||(d=!0)}return d}o(ro,"booleanPointInPolygon");function fb(e,t,r){var n=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var i=0,a=t.length-1;i<t.length;a=i++){var u=t[i][0],s=t[i][1],d=t[a][0],m=t[a][1],f=e[1]*(u-d)+s*(d-e[0])+m*(e[0]-u)===0&&(u-e[0])*(d-e[0])<=0&&(s-e[1])*(m-e[1])<=0;if(f)return!r;var g=s>e[1]!=m>e[1]&&e[0]<(d-u)*(e[1]-s)/(m-s)+u;g&&(n=!n)}return n}o(fb,"inRing");function XI(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}o(XI,"inBBox");l();l();l();l();l();l();l();l();l();l();var eC=_c(of());l();var YI=Jc("Navigator");l();l();l();var rC=_c(of());l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Ne={};Ki(Ne,{HasPropertyKey:()=>nC,IsArray:()=>hr,IsAsyncIterator:()=>af,IsBigInt:()=>is,IsBoolean:()=>no,IsDate:()=>jo,IsFunction:()=>uf,IsIterator:()=>sf,IsNull:()=>cf,IsNumber:()=>Dn,IsObject:()=>ut,IsRegExp:()=>os,IsString:()=>ft,IsSymbol:()=>lf,IsUint8Array:()=>xi,IsUndefined:()=>It});l();function nC(e,t){return t in e}o(nC,"HasPropertyKey");function af(e){return ut(e)&&!hr(e)&&!xi(e)&&Symbol.asyncIterator in e}o(af,"IsAsyncIterator");function hr(e){return Array.isArray(e)}o(hr,"IsArray");function is(e){return typeof e=="bigint"}o(is,"IsBigInt");function no(e){return typeof e=="boolean"}o(no,"IsBoolean");function jo(e){return e instanceof globalThis.Date}o(jo,"IsDate");function uf(e){return typeof e=="function"}o(uf,"IsFunction");function sf(e){return ut(e)&&!hr(e)&&!xi(e)&&Symbol.iterator in e}o(sf,"IsIterator");function cf(e){return e===null}o(cf,"IsNull");function Dn(e){return typeof e=="number"}o(Dn,"IsNumber");function ut(e){return typeof e=="object"&&e!==null}o(ut,"IsObject");function os(e){return e instanceof globalThis.RegExp}o(os,"IsRegExp");function ft(e){return typeof e=="string"}o(ft,"IsString");function lf(e){return typeof e=="symbol"}o(lf,"IsSymbol");function xi(e){return e instanceof globalThis.Uint8Array}o(xi,"IsUint8Array");function It(e){return e===void 0}o(It,"IsUndefined");function iC(e){return e.map(t=>fl(t))}o(iC,"ArrayType");function oC(e){return new Date(e.getTime())}o(oC,"DateType");function aC(e){return new Uint8Array(e)}o(aC,"Uint8ArrayType");function uC(e){return new RegExp(e.source,e.flags)}o(uC,"RegExpType");function sC(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=fl(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=fl(e[r]);return t}o(sC,"ObjectType");function fl(e){return hr(e)?iC(e):jo(e)?oC(e):xi(e)?aC(e):os(e)?uC(e):ut(e)?sC(e):e}o(fl,"Visit");function gt(e){return fl(e)}o(gt,"Clone");function hb(e){return e.map(t=>as(t))}o(hb,"CloneRest");function as(e,t){return t===void 0?gt(e):gt(R(R({},t),e))}o(as,"CloneType");l();l();l();function hl(e){return we(e)&&Symbol.asyncIterator in e}o(hl,"IsAsyncIterator");function gl(e){return we(e)&&Symbol.iterator in e}o(gl,"IsIterator");function df(e){return we(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}o(df,"IsStandardObject");function yl(e){return e instanceof Promise}o(yl,"IsPromise");function Fr(e){return e instanceof Date&&Number.isFinite(e.getTime())}o(Fr,"IsDate");function gb(e){return e instanceof globalThis.Map}o(gb,"IsMap");function yb(e){return e instanceof globalThis.Set}o(yb,"IsSet");function rn(e){return ArrayBuffer.isView(e)}o(rn,"IsTypedArray");function _a(e){return e instanceof globalThis.Uint8Array}o(_a,"IsUint8Array");function ye(e,t){return t in e}o(ye,"HasPropertyKey");function we(e){return e!==null&&typeof e=="object"}o(we,"IsObject");function Ie(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}o(Ie,"IsArray");function Ct(e){return e===void 0}o(Ct,"IsUndefined");function Ei(e){return e===null}o(Ei,"IsNull");function Jn(e){return typeof e=="boolean"}o(Jn,"IsBoolean");function me(e){return typeof e=="number"}o(me,"IsNumber");function bl(e){return Number.isInteger(e)}o(bl,"IsInteger");function ir(e){return typeof e=="bigint"}o(ir,"IsBigInt");function Ue(e){return typeof e=="string"}o(Ue,"IsString");function io(e){return typeof e=="function"}o(io,"IsFunction");function Ii(e){return typeof e=="symbol"}o(Ii,"IsSymbol");function or(e){return ir(e)||Jn(e)||Ei(e)||me(e)||Ue(e)||Ii(e)||Ct(e)}o(or,"IsValueType");var Qe;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(u,s){return e.ExactOptionalPropertyTypes?s in u:u[s]!==void 0}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function r(u){let s=we(u);return e.AllowArrayObject?s:s&&!Ie(u)}o(r,"IsObjectLike"),e.IsObjectLike=r;function n(u){return r(u)&&!(u instanceof Date)&&!(u instanceof Uint8Array)}o(n,"IsRecordLike"),e.IsRecordLike=n;function i(u){return e.AllowNaN?me(u):Number.isFinite(u)}o(i,"IsNumberLike"),e.IsNumberLike=i;function a(u){let s=Ct(u);return e.AllowNullVoid?s||u===null:s}o(a,"IsVoidLike"),e.IsVoidLike=a})(Qe||(Qe={}));l();function cC(e){return globalThis.Object.freeze(e).map(t=>us(t))}o(cC,"ImmutableArray");function lC(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=us(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=us(e[r]);return globalThis.Object.freeze(t)}o(lC,"ImmutableObject");function us(e){return hr(e)?cC(e):jo(e)?e:xi(e)?e:os(e)?e:ut(e)?lC(e):e}o(us,"Immutable");function H(e,t){let r=t!==void 0?R(R({},t),e):e;switch(Qe.InstanceMode){case"freeze":return us(r);case"clone":return gt(r);default:return r}}o(H,"CreateType");l();var mf=class mf extends Error{constructor(t){super(t)}};o(mf,"TypeBoxError");var he=mf;l();l();l();var yt=Symbol.for("TypeBox.Transform"),Ci=Symbol.for("TypeBox.Readonly"),Or=Symbol.for("TypeBox.Optional"),nn=Symbol.for("TypeBox.Hint"),_=Symbol.for("TypeBox.Kind");function bb(e){return ut(e)&&e[Ci]==="Readonly"}o(bb,"IsReadonly");function Xn(e){return ut(e)&&e[Or]==="Optional"}o(Xn,"IsOptional");function pf(e){return $e(e,"Any")}o(pf,"IsAny");function Di(e){return $e(e,"Array")}o(Di,"IsArray");function ss(e){return $e(e,"AsyncIterator")}o(ss,"IsAsyncIterator");function ff(e){return $e(e,"BigInt")}o(ff,"IsBigInt");function hf(e){return $e(e,"Boolean")}o(hf,"IsBoolean");function cs(e){return $e(e,"Constructor")}o(cs,"IsConstructor");function dC(e){return $e(e,"Date")}o(dC,"IsDate");function ls(e){return $e(e,"Function")}o(ls,"IsFunction");function zo(e){return $e(e,"Integer")}o(zo,"IsInteger");function Rt(e){return $e(e,"Intersect")}o(Rt,"IsIntersect");function ds(e){return $e(e,"Iterator")}o(ds,"IsIterator");function $e(e,t){return ut(e)&&_ in e&&e[_]===t}o($e,"IsKindOf");function Si(e){return $e(e,"Literal")}o(Si,"IsLiteral");function Vr(e){return $e(e,"MappedKey")}o(Vr,"IsMappedKey");function bt(e){return $e(e,"MappedResult")}o(bt,"IsMappedResult");function oo(e){return $e(e,"Never")}o(oo,"IsNever");function mC(e){return $e(e,"Not")}o(mC,"IsNot");function pC(e){return $e(e,"Null")}o(pC,"IsNull");function $o(e){return $e(e,"Number")}o($o,"IsNumber");function $t(e){return $e(e,"Object")}o($t,"IsObject");function Go(e){return $e(e,"Promise")}o(Go,"IsPromise");function gf(e){return $e(e,"Record")}o(gf,"IsRecord");function yf(e){return $e(e,"Ref")}o(yf,"IsRef");function bf(e){return $e(e,"RegExp")}o(bf,"IsRegExp");function ms(e){return $e(e,"String")}o(ms,"IsString");function fC(e){return $e(e,"Symbol")}o(fC,"IsSymbol");function Wr(e){return $e(e,"TemplateLiteral")}o(Wr,"IsTemplateLiteral");function hC(e){return $e(e,"This")}o(hC,"IsThis");function La(e){return ut(e)&&yt in e}o(La,"IsTransform");function Sn(e){return $e(e,"Tuple")}o(Sn,"IsTuple");function gC(e){return $e(e,"Undefined")}o(gC,"IsUndefined");function He(e){return $e(e,"Union")}o(He,"IsUnion");function yC(e){return $e(e,"Uint8Array")}o(yC,"IsUint8Array");function bC(e){return $e(e,"Unknown")}o(bC,"IsUnknown");function vC(e){return $e(e,"Unsafe")}o(vC,"IsUnsafe");function xC(e){return $e(e,"Void")}o(xC,"IsVoid");function ao(e){return ut(e)&&_ in e&&ft(e[_])}o(ao,"IsKind");function wn(e){return pf(e)||Di(e)||hf(e)||ff(e)||ss(e)||cs(e)||dC(e)||ls(e)||zo(e)||Rt(e)||ds(e)||Si(e)||Vr(e)||bt(e)||oo(e)||mC(e)||pC(e)||$o(e)||$t(e)||Go(e)||gf(e)||yf(e)||bf(e)||ms(e)||fC(e)||Wr(e)||hC(e)||Sn(e)||gC(e)||He(e)||yC(e)||bC(e)||vC(e)||xC(e)||ao(e)}o(wn,"IsSchema");var w={};Ki(w,{IsAny:()=>Ib,IsArray:()=>Cb,IsAsyncIterator:()=>Db,IsBigInt:()=>Sb,IsBoolean:()=>wb,IsConstructor:()=>Ab,IsDate:()=>Fb,IsFunction:()=>Ob,IsInteger:()=>Pb,IsIntersect:()=>Bb,IsIterator:()=>Mb,IsKind:()=>r1,IsKindOf:()=>ze,IsLiteral:()=>fs,IsLiteralBoolean:()=>wC,IsLiteralNumber:()=>kb,IsLiteralString:()=>Tb,IsLiteralValue:()=>_b,IsMappedKey:()=>Lb,IsMappedResult:()=>Rb,IsNever:()=>Nb,IsNot:()=>Ub,IsNull:()=>jb,IsNumber:()=>zb,IsObject:()=>$b,IsOptional:()=>SC,IsPromise:()=>Gb,IsProperties:()=>If,IsReadonly:()=>DC,IsRecord:()=>Zb,IsRecursive:()=>AC,IsRef:()=>Vb,IsRegExp:()=>Wb,IsSchema:()=>je,IsString:()=>Hb,IsSymbol:()=>Kb,IsTemplateLiteral:()=>qb,IsThis:()=>Jb,IsTransform:()=>ht,IsTuple:()=>Xb,IsUint8Array:()=>Yb,IsUndefined:()=>Ra,IsUnion:()=>Cf,IsUnionLiteral:()=>FC,IsUnknown:()=>Qb,IsUnsafe:()=>e1,IsVoid:()=>t1,TypeGuardUnknownTypeError:()=>vf});l();var Df=class Df extends he{};o(Df,"TypeGuardUnknownTypeError");var vf=Df,EC=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function vb(e){try{return new RegExp(e),!0}catch(t){return!1}}o(vb,"IsPattern");function xf(e){if(!ft(e))return!1;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}o(xf,"IsControlCharacterFree");function xb(e){return Ef(e)||je(e)}o(xb,"IsAdditionalProperties");function ps(e){return It(e)||is(e)}o(ps,"IsOptionalBigInt");function mt(e){return It(e)||Dn(e)}o(mt,"IsOptionalNumber");function Ef(e){return It(e)||no(e)}o(Ef,"IsOptionalBoolean");function tt(e){return It(e)||ft(e)}o(tt,"IsOptionalString");function IC(e){return It(e)||ft(e)&&xf(e)&&vb(e)}o(IC,"IsOptionalPattern");function CC(e){return It(e)||ft(e)&&xf(e)}o(CC,"IsOptionalFormat");function Eb(e){return It(e)||je(e)}o(Eb,"IsOptionalSchema");function DC(e){return ut(e)&&e[Ci]==="Readonly"}o(DC,"IsReadonly");function SC(e){return ut(e)&&e[Or]==="Optional"}o(SC,"IsOptional");function Ib(e){return ze(e,"Any")&&tt(e.$id)}o(Ib,"IsAny");function Cb(e){return ze(e,"Array")&&e.type==="array"&&tt(e.$id)&&je(e.items)&&mt(e.minItems)&&mt(e.maxItems)&&Ef(e.uniqueItems)&&Eb(e.contains)&&mt(e.minContains)&&mt(e.maxContains)}o(Cb,"IsArray");function Db(e){return ze(e,"AsyncIterator")&&e.type==="AsyncIterator"&&tt(e.$id)&&je(e.items)}o(Db,"IsAsyncIterator");function Sb(e){return ze(e,"BigInt")&&e.type==="bigint"&&tt(e.$id)&&ps(e.exclusiveMaximum)&&ps(e.exclusiveMinimum)&&ps(e.maximum)&&ps(e.minimum)&&ps(e.multipleOf)}o(Sb,"IsBigInt");function wb(e){return ze(e,"Boolean")&&e.type==="boolean"&&tt(e.$id)}o(wb,"IsBoolean");function Ab(e){return ze(e,"Constructor")&&e.type==="Constructor"&&tt(e.$id)&&hr(e.parameters)&&e.parameters.every(t=>je(t))&&je(e.returns)}o(Ab,"IsConstructor");function Fb(e){return ze(e,"Date")&&e.type==="Date"&&tt(e.$id)&&mt(e.exclusiveMaximumTimestamp)&&mt(e.exclusiveMinimumTimestamp)&&mt(e.maximumTimestamp)&&mt(e.minimumTimestamp)&&mt(e.multipleOfTimestamp)}o(Fb,"IsDate");function Ob(e){return ze(e,"Function")&&e.type==="Function"&&tt(e.$id)&&hr(e.parameters)&&e.parameters.every(t=>je(t))&&je(e.returns)}o(Ob,"IsFunction");function Pb(e){return ze(e,"Integer")&&e.type==="integer"&&tt(e.$id)&&mt(e.exclusiveMaximum)&&mt(e.exclusiveMinimum)&&mt(e.maximum)&&mt(e.minimum)&&mt(e.multipleOf)}o(Pb,"IsInteger");function If(e){return ut(e)&&Object.entries(e).every(([t,r])=>xf(t)&&je(r))}o(If,"IsProperties");function Bb(e){return ze(e,"Intersect")&&!(ft(e.type)&&e.type!=="object")&&hr(e.allOf)&&e.allOf.every(t=>je(t)&&!ht(t))&&tt(e.type)&&(Ef(e.unevaluatedProperties)||Eb(e.unevaluatedProperties))&&tt(e.$id)}o(Bb,"IsIntersect");function Mb(e){return ze(e,"Iterator")&&e.type==="Iterator"&&tt(e.$id)&&je(e.items)}o(Mb,"IsIterator");function ze(e,t){return ut(e)&&_ in e&&e[_]===t}o(ze,"IsKindOf");function Tb(e){return fs(e)&&ft(e.const)}o(Tb,"IsLiteralString");function kb(e){return fs(e)&&Dn(e.const)}o(kb,"IsLiteralNumber");function wC(e){return fs(e)&&no(e.const)}o(wC,"IsLiteralBoolean");function fs(e){return ze(e,"Literal")&&tt(e.$id)&&_b(e.const)}o(fs,"IsLiteral");function _b(e){return no(e)||Dn(e)||ft(e)}o(_b,"IsLiteralValue");function Lb(e){return ze(e,"MappedKey")&&hr(e.keys)&&e.keys.every(t=>Dn(t)||ft(t))}o(Lb,"IsMappedKey");function Rb(e){return ze(e,"MappedResult")&&If(e.properties)}o(Rb,"IsMappedResult");function Nb(e){return ze(e,"Never")&&ut(e.not)&&Object.getOwnPropertyNames(e.not).length===0}o(Nb,"IsNever");function Ub(e){return ze(e,"Not")&&je(e.not)}o(Ub,"IsNot");function jb(e){return ze(e,"Null")&&e.type==="null"&&tt(e.$id)}o(jb,"IsNull");function zb(e){return ze(e,"Number")&&e.type==="number"&&tt(e.$id)&&mt(e.exclusiveMaximum)&&mt(e.exclusiveMinimum)&&mt(e.maximum)&&mt(e.minimum)&&mt(e.multipleOf)}o(zb,"IsNumber");function $b(e){return ze(e,"Object")&&e.type==="object"&&tt(e.$id)&&If(e.properties)&&xb(e.additionalProperties)&&mt(e.minProperties)&&mt(e.maxProperties)}o($b,"IsObject");function Gb(e){return ze(e,"Promise")&&e.type==="Promise"&&tt(e.$id)&&je(e.item)}o(Gb,"IsPromise");function Zb(e){return ze(e,"Record")&&e.type==="object"&&tt(e.$id)&&xb(e.additionalProperties)&&ut(e.patternProperties)&&(t=>{let r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&vb(r[0])&&ut(t.patternProperties)&&je(t.patternProperties[r[0]])})(e)}o(Zb,"IsRecord");function AC(e){return ut(e)&&nn in e&&e[nn]==="Recursive"}o(AC,"IsRecursive");function Vb(e){return ze(e,"Ref")&&tt(e.$id)&&ft(e.$ref)}o(Vb,"IsRef");function Wb(e){return ze(e,"RegExp")&&tt(e.$id)&&ft(e.source)&&ft(e.flags)&&mt(e.maxLength)&&mt(e.minLength)}o(Wb,"IsRegExp");function Hb(e){return ze(e,"String")&&e.type==="string"&&tt(e.$id)&&mt(e.minLength)&&mt(e.maxLength)&&IC(e.pattern)&&CC(e.format)}o(Hb,"IsString");function Kb(e){return ze(e,"Symbol")&&e.type==="symbol"&&tt(e.$id)}o(Kb,"IsSymbol");function qb(e){return ze(e,"TemplateLiteral")&&e.type==="string"&&ft(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}o(qb,"IsTemplateLiteral");function Jb(e){return ze(e,"This")&&tt(e.$id)&&ft(e.$ref)}o(Jb,"IsThis");function ht(e){return ut(e)&&yt in e}o(ht,"IsTransform");function Xb(e){return ze(e,"Tuple")&&e.type==="array"&&tt(e.$id)&&Dn(e.minItems)&&Dn(e.maxItems)&&e.minItems===e.maxItems&&(It(e.items)&&It(e.additionalItems)&&e.minItems===0||hr(e.items)&&e.items.every(t=>je(t)))}o(Xb,"IsTuple");function Ra(e){return ze(e,"Undefined")&&e.type==="undefined"&&tt(e.$id)}o(Ra,"IsUndefined");function FC(e){return Cf(e)&&e.anyOf.every(t=>Tb(t)||kb(t))}o(FC,"IsUnionLiteral");function Cf(e){return ze(e,"Union")&&tt(e.$id)&&ut(e)&&hr(e.anyOf)&&e.anyOf.every(t=>je(t))}o(Cf,"IsUnion");function Yb(e){return ze(e,"Uint8Array")&&e.type==="Uint8Array"&&tt(e.$id)&&mt(e.minByteLength)&&mt(e.maxByteLength)}o(Yb,"IsUint8Array");function Qb(e){return ze(e,"Unknown")&&tt(e.$id)}o(Qb,"IsUnknown");function e1(e){return ze(e,"Unsafe")}o(e1,"IsUnsafe");function t1(e){return ze(e,"Void")&&e.type==="void"&&tt(e.$id)}o(t1,"IsVoid");function r1(e){return ut(e)&&_ in e&&ft(e[_])&&!EC.includes(e[_])}o(r1,"IsKind");function je(e){return ut(e)&&(Ib(e)||Cb(e)||wb(e)||Sb(e)||Db(e)||Ab(e)||Fb(e)||Ob(e)||Pb(e)||Bb(e)||Mb(e)||fs(e)||Lb(e)||Rb(e)||Nb(e)||Ub(e)||jb(e)||zb(e)||$b(e)||Gb(e)||Zb(e)||Vb(e)||Wb(e)||Hb(e)||Kb(e)||qb(e)||Jb(e)||Xb(e)||Ra(e)||Cf(e)||Yb(e)||Qb(e)||e1(e)||t1(e)||r1(e))}o(je,"IsSchema");l();var Sf="(true|false)",hs="(0|[1-9][0-9]*)",wf="(.*)",OC="(?!.*)",PL="^".concat(Sf,"$"),wi="^".concat(hs,"$"),Ai="^".concat(wf,"$"),n1="^".concat(OC,"$");l();var Pr={};Ki(Pr,{Clear:()=>BC,Delete:()=>MC,Entries:()=>PC,Get:()=>_C,Has:()=>TC,Set:()=>kC});l();var Na=new Map;function PC(){return new Map(Na)}o(PC,"Entries");function BC(){return Na.clear()}o(BC,"Clear");function MC(e){return Na.delete(e)}o(MC,"Delete");function TC(e){return Na.has(e)}o(TC,"Has");function kC(e,t){Na.set(e,t)}o(kC,"Set");function _C(e){return Na.get(e)}o(_C,"Get");var Gt={};Ki(Gt,{Clear:()=>RC,Delete:()=>NC,Entries:()=>LC,Get:()=>zC,Has:()=>UC,Set:()=>jC});l();var Ua=new Map;function LC(){return new Map(Ua)}o(LC,"Entries");function RC(){return Ua.clear()}o(RC,"Clear");function NC(e){return Ua.delete(e)}o(NC,"Delete");function UC(e){return Ua.has(e)}o(UC,"Has");function jC(e,t){Ua.set(e,t)}o(jC,"Set");function zC(e){return Ua.get(e)}o(zC,"Get");l();function i1(e,t){return e.includes(t)}o(i1,"SetIncludes");function o1(e){return[...new Set(e)]}o(o1,"SetDistinct");function $C(e,t){return e.filter(r=>t.includes(r))}o($C,"SetIntersect");function GC(e,t){return e.reduce((r,n)=>$C(r,n),t)}o(GC,"SetIntersectManyResolve");function a1(e){return e.length===1?e[0]:e.length>1?GC(e.slice(1),e[0]):[]}o(a1,"SetIntersectMany");function u1(e){let t=[];for(let r of e)t.push(...r);return t}o(u1,"SetUnionMany");l();function uo(e){return H({[_]:"Any"},e)}o(uo,"Any");l();function vl(e,t){return H({[_]:"Array",type:"array",items:e},t)}o(vl,"Array");l();function xl(e,t){return H({[_]:"AsyncIterator",type:"AsyncIterator",items:e},t)}o(xl,"AsyncIterator");l();l();l();function ZC(e,t){let i=e,{[t]:r}=i;return Po(i,[kc(t)])}o(ZC,"DiscardKey");function Pt(e,t){return t.reduce((r,n)=>ZC(r,n),e)}o(Pt,"Discard");l();function rt(e){return H({[_]:"Never",not:{}},e)}o(rt,"Never");l();l();function Ge(e){return H({[_]:"MappedResult",properties:e})}o(Ge,"MappedResult");l();l();function El(e,t,r){return H({[_]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}o(El,"Constructor");l();function so(e,t,r){return H({[_]:"Function",type:"Function",parameters:e,returns:t},r)}o(so,"Function");l();l();l();l();function gs(e,t){return H({[_]:"Union",anyOf:e},t)}o(gs,"UnionCreate");function VC(e){return e.some(t=>Xn(t))}o(VC,"IsUnionOptional");function s1(e){return e.map(t=>Xn(t)?WC(t):t)}o(s1,"RemoveOptionalFromRest");function WC(e){return Pt(e,[Or])}o(WC,"RemoveOptionalFromType");function HC(e,t){return VC(e)?Rr(gs(s1(e),t)):gs(s1(e),t)}o(HC,"ResolveUnion");function Yn(e,t){return e.length===0?rt(t):e.length===1?H(e[0],t):HC(e,t)}o(Yn,"UnionEvaluated");l();function nt(e,t){return e.length===0?rt(t):e.length===1?H(e[0],t):gs(e,t)}o(nt,"Union");l();l();l();var Ff=class Ff extends he{};o(Ff,"TemplateLiteralParserError");var Il=Ff;function KC(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}o(KC,"Unescape");function Af(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}o(Af,"IsNonEscaped");function Fi(e,t){return Af(e,t,"(")}o(Fi,"IsOpenParen");function ys(e,t){return Af(e,t,")")}o(ys,"IsCloseParen");function c1(e,t){return Af(e,t,"|")}o(c1,"IsSeparator");function qC(e){if(!(Fi(e,0)&&ys(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(Fi(e,r)&&(t+=1),ys(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}o(qC,"IsGroup");function JC(e){return e.slice(1,e.length-1)}o(JC,"InGroup");function XC(e){let t=0;for(let r=0;r<e.length;r++)if(Fi(e,r)&&(t+=1),ys(e,r)&&(t-=1),c1(e,r)&&t===0)return!0;return!1}o(XC,"IsPrecedenceOr");function YC(e){for(let t=0;t<e.length;t++)if(Fi(e,t))return!0;return!1}o(YC,"IsPrecedenceAnd");function QC(e){let[t,r]=[0,0],n=[];for(let a=0;a<e.length;a++)if(Fi(e,a)&&(t+=1),ys(e,a)&&(t-=1),c1(e,a)&&t===0){let u=e.slice(r,a);u.length>0&&n.push(ja(u)),r=a+1}let i=e.slice(r);return i.length>0&&n.push(ja(i)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}o(QC,"Or");function e2(e){function t(i,a){if(!Fi(i,a))throw new Il("TemplateLiteralParser: Index must point to open parens");let u=0;for(let s=a;s<i.length;s++)if(Fi(i,s)&&(u+=1),ys(i,s)&&(u-=1),u===0)return[a,s];throw new Il("TemplateLiteralParser: Unclosed group parens in expression")}o(t,"Group");function r(i,a){for(let u=a;u<i.length;u++)if(Fi(i,u))return[a,u];return[a,i.length]}o(r,"Range");let n=[];for(let i=0;i<e.length;i++)if(Fi(e,i)){let[a,u]=t(e,i),s=e.slice(a,u+1);n.push(ja(s)),i=u}else{let[a,u]=r(e,i),s=e.slice(a,u);s.length>0&&n.push(ja(s)),i=u-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}o(e2,"And");function ja(e){return qC(e)?ja(JC(e)):XC(e)?QC(e):YC(e)?e2(e):{type:"const",const:KC(e)}}o(ja,"TemplateLiteralParse");function za(e){return ja(e.slice(1,e.length-1))}o(za,"TemplateLiteralParseExact");var Pf=class Pf extends he{};o(Pf,"TemplateLiteralFiniteError");var Of=Pf;function t2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}o(t2,"IsNumberExpression");function r2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}o(r2,"IsBooleanExpression");function n2(e){return e.type==="const"&&e.const===".*"}o(n2,"IsStringExpression");function Zo(e){return t2(e)||n2(e)?!1:r2(e)?!0:e.type==="and"?e.expr.every(t=>Zo(t)):e.type==="or"?e.expr.every(t=>Zo(t)):e.type==="const"?!0:(()=>{throw new Of("Unknown expression type")})()}o(Zo,"IsTemplateLiteralExpressionFinite");function Cl(e){let t=za(e.pattern);return Zo(t)}o(Cl,"IsTemplateLiteralFinite");l();var Mf=class Mf extends he{};o(Mf,"TemplateLiteralGenerateError");var Bf=Mf;function*l1(e){if(e.length===1)return yield*X(e[0]);for(let t of e[0])for(let r of l1(e.slice(1)))yield"".concat(t).concat(r)}o(l1,"GenerateReduce");function*i2(e){return yield*X(l1(e.expr.map(t=>[...bs(t)])))}o(i2,"GenerateAnd");function*o2(e){for(let t of e.expr)yield*X(bs(t))}o(o2,"GenerateOr");function*a2(e){return yield e.const}o(a2,"GenerateConst");function*bs(e){return e.type==="and"?yield*X(i2(e)):e.type==="or"?yield*X(o2(e)):e.type==="const"?yield*X(a2(e)):(()=>{throw new Bf("Unknown expression")})()}o(bs,"TemplateLiteralExpressionGenerate");function $a(e){let t=za(e.pattern);return Zo(t)?[...bs(t)]:[]}o($a,"TemplateLiteralGenerate");l();l();function Ke(e,t){return H({[_]:"Literal",const:e,type:typeof e},t)}o(Ke,"Literal");l();function Dl(e){return H({[_]:"Boolean",type:"boolean"},e)}o(Dl,"Boolean");l();function Ga(e){return H({[_]:"BigInt",type:"bigint"},e)}o(Ga,"BigInt");l();function Qn(e){return H({[_]:"Number",type:"number"},e)}o(Qn,"Number");l();function on(e){return H({[_]:"String",type:"string"},e)}o(on,"String");function*u2(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield Dl():t==="number"?yield Qn():t==="bigint"?yield Ga():t==="string"?yield on():yield(()=>{let r=t.split("|").map(n=>Ke(n.trim()));return r.length===0?rt():r.length===1?r[0]:Yn(r)})()}o(u2,"FromUnion");function*s2(e){if(e[1]!=="{"){let t=Ke("$"),r=Tf(e.slice(1));return yield*X([t,...r])}for(let t=2;t<e.length;t++)if(e[t]==="}"){let r=u2(e.slice(2,t)),n=Tf(e.slice(t+1));return yield*X([...r,...n])}yield Ke(e)}o(s2,"FromTerminal");function*Tf(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let r=Ke(e.slice(0,t)),n=s2(e.slice(t));return yield*X([r,...n])}yield Ke(e)}o(Tf,"FromSyntax");function d1(e){return[...Tf(e)]}o(d1,"TemplateLiteralSyntax");l();var Lf=class Lf extends he{};o(Lf,"TemplateLiteralPatternError");var kf=Lf;function c2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(c2,"Escape");function m1(e,t){return Wr(e)?e.pattern.slice(1,e.pattern.length-1):He(e)?"(".concat(e.anyOf.map(r=>m1(r,t)).join("|"),")"):$o(e)?"".concat(t).concat(hs):zo(e)?"".concat(t).concat(hs):ff(e)?"".concat(t).concat(hs):ms(e)?"".concat(t).concat(wf):Si(e)?"".concat(t).concat(c2(e.const.toString())):hf(e)?"".concat(t).concat(Sf):(()=>{throw new kf("Unexpected Kind '".concat(e[_],"'"))})()}o(m1,"Visit");function _f(e){return"^".concat(e.map(t=>m1(t,"")).join(""),"$")}o(_f,"TemplateLiteralPattern");l();function Vo(e){let r=$a(e).map(n=>Ke(n));return Yn(r)}o(Vo,"TemplateLiteralToUnion");l();function Sl(e,t){let r=ft(e)?_f(d1(e)):_f(e);return H({[_]:"TemplateLiteral",type:"string",pattern:r},t)}o(Sl,"TemplateLiteral");function l2(e){return $a(e).map(r=>r.toString())}o(l2,"FromTemplateLiteral");function d2(e){let t=[];for(let r of e)t.push(...Nr(r));return t}o(d2,"FromUnion");function m2(e){return[e.toString()]}o(m2,"FromLiteral");function Nr(e){return[...new Set(Wr(e)?l2(e):He(e)?d2(e.anyOf):Si(e)?m2(e.const):$o(e)?["[number]"]:zo(e)?["[number]"]:[])]}o(Nr,"IndexPropertyKeys");l();function p2(e,t,r){let n={};for(let i of Object.getOwnPropertyNames(t))n[i]=Za(e,Nr(t[i]),r);return n}o(p2,"FromProperties");function f2(e,t,r){return p2(e,t.properties,r)}o(f2,"FromMappedResult");function p1(e,t,r){let n=f2(e,t,r);return Ge(n)}o(p1,"IndexFromMappedResult");function h1(e,t){return e.map(r=>g1(r,t))}o(h1,"FromRest");function h2(e){return e.filter(t=>!oo(t))}o(h2,"FromIntersectRest");function g2(e,t){return wl(h2(h1(e,t)))}o(g2,"FromIntersect");function y2(e){return e.some(t=>oo(t))?[]:e}o(y2,"FromUnionRest");function b2(e,t){return Yn(y2(h1(e,t)))}o(b2,"FromUnion");function v2(e,t){return t in e?e[t]:t==="[number]"?Yn(e):rt()}o(v2,"FromTuple");function x2(e,t){return t==="[number]"?e:rt()}o(x2,"FromArray");function E2(e,t){return t in e?e[t]:rt()}o(E2,"FromProperty");function g1(e,t){var r;return Rt(e)?g2(e.allOf,t):He(e)?b2(e.anyOf,t):Sn(e)?v2((r=e.items)!=null?r:[],t):Di(e)?x2(e.items,t):$t(e)?E2(e.properties,t):rt()}o(g1,"IndexFromPropertyKey");function vs(e,t){return t.map(r=>g1(e,r))}o(vs,"IndexFromPropertyKeys");function f1(e,t){return Yn(vs(e,t))}o(f1,"FromSchema");function Za(e,t,r){return bt(t)?p1(e,t,r):Vr(t)?y1(e,t,r):H(wn(t)?f1(e,Nr(t)):f1(e,t),r)}o(Za,"Index");function I2(e,t,r){return{[t]:Za(e,[t],gt(r))}}o(I2,"MappedIndexPropertyKey");function C2(e,t,r){return t.reduce((n,i)=>R(R({},n),I2(e,i,r)),{})}o(C2,"MappedIndexPropertyKeys");function D2(e,t,r){return C2(e,t.keys,r)}o(D2,"MappedIndexProperties");function y1(e,t,r){let n=D2(e,t,r);return Ge(n)}o(y1,"IndexFromMappedKey");l();function Al(e,t){return H({[_]:"Iterator",type:"Iterator",items:e},t)}o(Al,"Iterator");l();function S2(e){let t=[];for(let r in e)Xn(e[r])||t.push(r);return t}o(S2,"RequiredKeys");function w2(e,t){let r=S2(e),n=r.length>0?{[_]:"Object",type:"object",properties:e,required:r}:{[_]:"Object",type:"object",properties:e};return H(n,t)}o(w2,"_Object");var st=w2;l();function Fl(e,t){return H({[_]:"Promise",type:"Promise",item:e},t)}o(Fl,"Promise");l();l();function A2(e){return H(Pt(e,[Ci]))}o(A2,"RemoveReadonly");function F2(e){return H(De(R({},e),{[Ci]:"Readonly"}))}o(F2,"AddReadonly");function O2(e,t){return t===!1?A2(e):F2(e)}o(O2,"ReadonlyWithFlag");function an(e,t){let r=t!=null?t:!0;return bt(e)?b1(e,r):O2(e,r)}o(an,"Readonly");function P2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=an(e[n],t);return r}o(P2,"FromProperties");function B2(e,t){return P2(e.properties,t)}o(B2,"FromMappedResult");function b1(e,t){let r=B2(e,t);return Ge(r)}o(b1,"ReadonlyFromMappedResult");l();function ei(e,t){return H(e.length>0?{[_]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[_]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}o(ei,"Tuple");function v1(e,t){return e in t?un(e,t[e]):Ge(t)}o(v1,"FromMappedResult");function M2(e){return{[e]:Ke(e)}}o(M2,"MappedKeyToKnownMappedResultProperties");function T2(e){let t={};for(let r of e)t[r]=Ke(r);return t}o(T2,"MappedKeyToUnknownMappedResultProperties");function k2(e,t){return i1(t,e)?M2(e):T2(t)}o(k2,"MappedKeyToMappedResultProperties");function _2(e,t){let r=k2(e,t);return v1(e,r)}o(_2,"FromMappedKey");function xs(e,t){return t.map(r=>un(e,r))}o(xs,"FromRest");function L2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(t))r[n]=un(e,t[n]);return r}o(L2,"FromProperties");function un(e,t){var n;let r=R({},t);return Xn(t)?Rr(un(e,Pt(t,[Or]))):bb(t)?an(un(e,Pt(t,[Ci]))):bt(t)?v1(e,t.properties):Vr(t)?_2(e,t.keys):cs(t)?El(xs(e,t.parameters),un(e,t.returns),r):ls(t)?so(xs(e,t.parameters),un(e,t.returns),r):ss(t)?xl(un(e,t.items),r):ds(t)?Al(un(e,t.items),r):Rt(t)?Ur(xs(e,t.allOf),r):He(t)?nt(xs(e,t.anyOf),r):Sn(t)?ei(xs(e,(n=t.items)!=null?n:[]),r):$t(t)?st(L2(e,t.properties),r):Di(t)?vl(un(e,t.items),r):Go(t)?Fl(un(e,t.item),r):t}o(un,"FromSchemaType");function R2(e,t){let r={};for(let n of e)r[n]=un(n,t);return r}o(R2,"MappedFunctionReturnType");function x1(e,t,r){let n=wn(e)?Nr(e):e,i=t({[_]:"MappedKey",keys:n}),a=R2(n,i);return st(a,r)}o(x1,"Mapped");l();function N2(e){return H(Pt(e,[Or]))}o(N2,"RemoveOptional");function U2(e){return H(De(R({},e),{[Or]:"Optional"}))}o(U2,"AddOptional");function j2(e,t){return t===!1?N2(e):U2(e)}o(j2,"OptionalWithFlag");function Rr(e,t){let r=t!=null?t:!0;return bt(e)?E1(e,r):j2(e,r)}o(Rr,"Optional");function z2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Rr(e[n],t);return r}o(z2,"FromProperties");function $2(e,t){return z2(e.properties,t)}o($2,"FromMappedResult");function E1(e,t){let r=$2(e,t);return Ge(r)}o(E1,"OptionalFromMappedResult");l();function Es(e,t={}){let r=e.every(i=>$t(i)),n=wn(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return H(t.unevaluatedProperties===!1||wn(t.unevaluatedProperties)||r?De(R({},n),{[_]:"Intersect",type:"object",allOf:e}):De(R({},n),{[_]:"Intersect",allOf:e}),t)}o(Es,"IntersectCreate");function G2(e){return e.every(t=>Xn(t))}o(G2,"IsIntersectOptional");function Z2(e){return Pt(e,[Or])}o(Z2,"RemoveOptionalFromType");function I1(e){return e.map(t=>Xn(t)?Z2(t):t)}o(I1,"RemoveOptionalFromRest");function V2(e,t){return G2(e)?Rr(Es(I1(e),t)):Es(I1(e),t)}o(V2,"ResolveIntersect");function wl(e,t={}){if(e.length===0)return rt(t);if(e.length===1)return H(e[0],t);if(e.some(r=>La(r)))throw new Error("Cannot intersect transform types");return V2(e,t)}o(wl,"IntersectEvaluated");l();function Ur(e,t){if(e.length===0)return rt(t);if(e.length===1)return H(e[0],t);if(e.some(r=>La(r)))throw new Error("Cannot intersect transform types");return Es(e,t)}o(Ur,"Intersect");function C1(e){return e.map(t=>Rf(t))}o(C1,"FromRest");function W2(e){return Ur(C1(e))}o(W2,"FromIntersect");function H2(e){return nt(C1(e))}o(H2,"FromUnion");function K2(e){return Rf(e)}o(K2,"FromPromise");function Rf(e){return Rt(e)?W2(e.allOf):He(e)?H2(e.anyOf):Go(e)?K2(e.item):e}o(Rf,"AwaitedResolve");function D1(e,t){return H(Rf(e),t)}o(D1,"Awaited");l();l();l();l();function S1(e){let t=[];for(let r of e)t.push(Xt(r));return t}o(S1,"FromRest");function q2(e){let t=S1(e);return u1(t)}o(q2,"FromIntersect");function J2(e){let t=S1(e);return a1(t)}o(J2,"FromUnion");function X2(e){return e.map((t,r)=>r.toString())}o(X2,"FromTuple");function Y2(e){return["[number]"]}o(Y2,"FromArray");function Q2(e){return globalThis.Object.getOwnPropertyNames(e)}o(Q2,"FromProperties");function eD(e){return Nf?globalThis.Object.getOwnPropertyNames(e).map(r=>r[0]==="^"&&r[r.length-1]==="$"?r.slice(1,r.length-1):r):[]}o(eD,"FromPatternProperties");function Xt(e){var t;return Rt(e)?q2(e.allOf):He(e)?J2(e.anyOf):Sn(e)?X2((t=e.items)!=null?t:[]):Di(e)?Y2(e.items):$t(e)?Q2(e.properties):gf(e)?eD(e.patternProperties):[]}o(Xt,"KeyOfPropertyKeys");var Nf=!1;function Oi(e){Nf=!0;let t=Xt(e);Nf=!1;let r=t.map(n=>"(".concat(n,")"));return"^(".concat(r.join("|"),")$")}o(Oi,"KeyOfPattern");function tD(e){return e.map(t=>t==="[number]"?Qn():Ke(t))}o(tD,"KeyOfPropertyKeysToRest");function Ol(e,t){if(bt(e))return w1(e,t);{let r=Xt(e),n=tD(r),i=Yn(n);return H(i,t)}}o(Ol,"KeyOf");function rD(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ol(e[n],gt(t));return r}o(rD,"FromProperties");function nD(e,t){return rD(e.properties,t)}o(nD,"FromMappedResult");function w1(e,t){let r=nD(e,t);return Ge(r)}o(w1,"KeyOfFromMappedResult");l();function co(e){let t=Xt(e),r=vs(e,t);return t.map((n,i)=>[t[i],r[i]])}o(co,"KeyOfPropertyEntries");function iD(e){let t=[];for(let r of e)t.push(...Xt(r));return o1(t)}o(iD,"CompositeKeys");function oD(e){return e.filter(t=>!oo(t))}o(oD,"FilterNever");function aD(e,t){let r=[];for(let n of e)r.push(...vs(n,[t]));return oD(r)}o(aD,"CompositeProperty");function uD(e,t){let r={};for(let n of t)r[n]=wl(aD(e,n));return r}o(uD,"CompositeProperties");function A1(e,t){let r=iD(e),n=uD(e,r);return st(n,t)}o(A1,"Composite");l();l();function Pl(e){return H({[_]:"Date",type:"Date"},e)}o(Pl,"Date");l();function Bl(e){return H({[_]:"Null",type:"null"},e)}o(Bl,"Null");l();function Ml(e){return H({[_]:"Symbol",type:"symbol"},e)}o(Ml,"Symbol");l();function Tl(e){return H({[_]:"Undefined",type:"undefined"},e)}o(Tl,"Undefined");l();function kl(e){return H({[_]:"Uint8Array",type:"Uint8Array"},e)}o(kl,"Uint8Array");l();function Pi(e){return H({[_]:"Unknown"},e)}o(Pi,"Unknown");function sD(e){return e.map(t=>Uf(t,!1))}o(sD,"FromArray");function cD(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=an(Uf(e[r],!1));return t}o(cD,"FromProperties");function _l(e,t){return t===!0?e:an(e)}o(_l,"ConditionalReadonly");function Uf(e,t){return af(e)?_l(uo(),t):sf(e)?_l(uo(),t):hr(e)?an(ei(sD(e))):xi(e)?kl():jo(e)?Pl():ut(e)?_l(st(cD(e)),t):uf(e)?_l(so([],Pi()),t):It(e)?Tl():cf(e)?Bl():lf(e)?Ml():is(e)?Ga():Dn(e)?Ke(e):no(e)?Ke(e):ft(e)?Ke(e):st({})}o(Uf,"FromValue");function F1(e,t){return H(Uf(e,!0),t)}o(F1,"Const");l();function O1(e,t){return ei(e.parameters,t)}o(O1,"ConstructorParameters");l();function Is(e,t){return e.map(r=>An(r,t))}o(Is,"FromRest");function lD(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=An(e[n],t);return r}o(lD,"FromProperties");function dD(e,t){return e.parameters=Is(e.parameters,t),e.returns=An(e.returns,t),e}o(dD,"FromConstructor");function mD(e,t){return e.parameters=Is(e.parameters,t),e.returns=An(e.returns,t),e}o(mD,"FromFunction");function pD(e,t){return e.allOf=Is(e.allOf,t),e}o(pD,"FromIntersect");function fD(e,t){return e.anyOf=Is(e.anyOf,t),e}o(fD,"FromUnion");function hD(e,t){return It(e.items)||(e.items=Is(e.items,t)),e}o(hD,"FromTuple");function gD(e,t){return e.items=An(e.items,t),e}o(gD,"FromArray");function yD(e,t){return e.properties=lD(e.properties,t),e}o(yD,"FromObject");function bD(e,t){return e.item=An(e.item,t),e}o(bD,"FromPromise");function vD(e,t){return e.items=An(e.items,t),e}o(vD,"FromAsyncIterator");function xD(e,t){return e.items=An(e.items,t),e}o(xD,"FromIterator");function ED(e,t){let r=t.find(i=>i.$id===e.$ref);if(r===void 0)throw Error("Unable to dereference schema with $id ".concat(e.$ref));let n=Pt(r,["$id"]);return An(n,t)}o(ED,"FromRef");function ID(e,t){return cs(e)?dD(e,t):ls(e)?mD(e,t):Rt(e)?pD(e,t):He(e)?fD(e,t):Sn(e)?hD(e,t):Di(e)?gD(e,t):$t(e)?yD(e,t):Go(e)?bD(e,t):ss(e)?vD(e,t):ds(e)?xD(e,t):yf(e)?ED(e,t):e}o(ID,"DerefResolve");function An(e,t){return ID(as(e),hb(t))}o(An,"Deref");l();function P1(e,t){if(It(e))throw new Error("Enum undefined or empty");let r=globalThis.Object.getOwnPropertyNames(e).filter(a=>isNaN(a)).map(a=>e[a]),i=[...new Set(r)].map(a=>Ke(a));return nt(i,De(R({},t),{[nn]:"Enum"}))}o(P1,"Enum");l();l();l();var Wf=class Wf extends he{};o(Wf,"ExtendsResolverError");var zf=Wf,U;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(U||(U={}));function sn(e){return e===U.False?e:U.True}o(sn,"IntoBooleanResult");function Va(e){throw new zf(e)}o(Va,"Throw");function Ut(e){return w.IsNever(e)||w.IsIntersect(e)||w.IsUnion(e)||w.IsUnknown(e)||w.IsAny(e)}o(Ut,"IsStructuralRight");function jt(e,t){return w.IsNever(t)?R1(e,t):w.IsIntersect(t)?Ll(e,t):w.IsUnion(t)?Vf(e,t):w.IsUnknown(t)?z1(e,t):w.IsAny(t)?Zf(e,t):Va("StructuralRight")}o(jt,"StructuralRight");function Zf(e,t){return U.True}o(Zf,"FromAnyRight");function CD(e,t){return w.IsIntersect(t)?Ll(e,t):w.IsUnion(t)&&t.anyOf.some(r=>w.IsAny(r)||w.IsUnknown(r))?U.True:w.IsUnion(t)?U.Union:w.IsUnknown(t)||w.IsAny(t)?U.True:U.Union}o(CD,"FromAny");function DD(e,t){return w.IsUnknown(e)?U.False:w.IsAny(e)?U.Union:w.IsNever(e)?U.True:U.False}o(DD,"FromArrayRight");function SD(e,t){return w.IsObject(t)&&Rl(t)?U.True:Ut(t)?jt(e,t):w.IsArray(t)?sn(it(e.items,t.items)):U.False}o(SD,"FromArray");function wD(e,t){return Ut(t)?jt(e,t):w.IsAsyncIterator(t)?sn(it(e.items,t.items)):U.False}o(wD,"FromAsyncIterator");function AD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsBigInt(t)?U.True:U.False}o(AD,"FromBigInt");function _1(e,t){return w.IsLiteralBoolean(e)||w.IsBoolean(e)?U.True:U.False}o(_1,"FromBooleanRight");function FD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsBoolean(t)?U.True:U.False}o(FD,"FromBoolean");function OD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsConstructor(t)?e.parameters.length>t.parameters.length?U.False:e.parameters.every((r,n)=>sn(it(t.parameters[n],r))===U.True)?sn(it(e.returns,t.returns)):U.False:U.False}o(OD,"FromConstructor");function PD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsDate(t)?U.True:U.False}o(PD,"FromDate");function BD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsFunction(t)?e.parameters.length>t.parameters.length?U.False:e.parameters.every((r,n)=>sn(it(t.parameters[n],r))===U.True)?sn(it(e.returns,t.returns)):U.False:U.False}o(BD,"FromFunction");function L1(e,t){return w.IsLiteral(e)&&Ne.IsNumber(e.const)||w.IsNumber(e)||w.IsInteger(e)?U.True:U.False}o(L1,"FromIntegerRight");function MD(e,t){return w.IsInteger(t)||w.IsNumber(t)?U.True:Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):U.False}o(MD,"FromInteger");function Ll(e,t){return t.allOf.every(r=>it(e,r)===U.True)?U.True:U.False}o(Ll,"FromIntersectRight");function TD(e,t){return e.allOf.some(r=>it(r,t)===U.True)?U.True:U.False}o(TD,"FromIntersect");function kD(e,t){return Ut(t)?jt(e,t):w.IsIterator(t)?sn(it(e.items,t.items)):U.False}o(kD,"FromIterator");function _D(e,t){return w.IsLiteral(t)&&t.const===e.const?U.True:Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsString(t)?j1(e,t):w.IsNumber(t)?N1(e,t):w.IsInteger(t)?L1(e,t):w.IsBoolean(t)?_1(e,t):U.False}o(_D,"FromLiteral");function R1(e,t){return U.False}o(R1,"FromNeverRight");function LD(e,t){return U.True}o(LD,"FromNever");function B1(e){let[t,r]=[e,0];for(;w.IsNot(t);)t=t.not,r+=1;return r%2===0?t:Pi()}o(B1,"UnwrapTNot");function RD(e,t){return w.IsNot(e)?it(B1(e),t):w.IsNot(t)?it(e,B1(t)):Va("Invalid fallthrough for Not")}o(RD,"FromNot");function ND(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsNull(t)?U.True:U.False}o(ND,"FromNull");function N1(e,t){return w.IsLiteralNumber(e)||w.IsNumber(e)||w.IsInteger(e)?U.True:U.False}o(N1,"FromNumberRight");function UD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsInteger(t)||w.IsNumber(t)?U.True:U.False}o(UD,"FromNumber");function jr(e,t){return Object.getOwnPropertyNames(e.properties).length===t}o(jr,"IsObjectPropertyCount");function M1(e){return Rl(e)}o(M1,"IsObjectStringLike");function T1(e){return jr(e,0)||jr(e,1)&&"description"in e.properties&&w.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(w.IsString(e.properties.description.anyOf[0])&&w.IsUndefined(e.properties.description.anyOf[1])||w.IsString(e.properties.description.anyOf[1])&&w.IsUndefined(e.properties.description.anyOf[0]))}o(T1,"IsObjectSymbolLike");function jf(e){return jr(e,0)}o(jf,"IsObjectNumberLike");function k1(e){return jr(e,0)}o(k1,"IsObjectBooleanLike");function jD(e){return jr(e,0)}o(jD,"IsObjectBigIntLike");function zD(e){return jr(e,0)}o(zD,"IsObjectDateLike");function $D(e){return Rl(e)}o($D,"IsObjectUint8ArrayLike");function GD(e){let t=Qn();return jr(e,0)||jr(e,1)&&"length"in e.properties&&sn(it(e.properties.length,t))===U.True}o(GD,"IsObjectFunctionLike");function ZD(e){return jr(e,0)}o(ZD,"IsObjectConstructorLike");function Rl(e){let t=Qn();return jr(e,0)||jr(e,1)&&"length"in e.properties&&sn(it(e.properties.length,t))===U.True}o(Rl,"IsObjectArrayLike");function VD(e){let t=so([uo()],uo());return jr(e,0)||jr(e,1)&&"then"in e.properties&&sn(it(e.properties.then,t))===U.True}o(VD,"IsObjectPromiseLike");function U1(e,t){return it(e,t)===U.False||w.IsOptional(e)&&!w.IsOptional(t)?U.False:U.True}o(U1,"Property");function gr(e,t){return w.IsUnknown(e)?U.False:w.IsAny(e)?U.Union:w.IsNever(e)||w.IsLiteralString(e)&&M1(t)||w.IsLiteralNumber(e)&&jf(t)||w.IsLiteralBoolean(e)&&k1(t)||w.IsSymbol(e)&&T1(t)||w.IsBigInt(e)&&jD(t)||w.IsString(e)&&M1(t)||w.IsSymbol(e)&&T1(t)||w.IsNumber(e)&&jf(t)||w.IsInteger(e)&&jf(t)||w.IsBoolean(e)&&k1(t)||w.IsUint8Array(e)&&$D(t)||w.IsDate(e)&&zD(t)||w.IsConstructor(e)&&ZD(t)||w.IsFunction(e)&&GD(t)?U.True:w.IsRecord(e)&&w.IsString($f(e))?t[nn]==="Record"?U.True:U.False:w.IsRecord(e)&&w.IsNumber($f(e))?jr(t,0)?U.True:U.False:U.False}o(gr,"FromObjectRight");function WD(e,t){return Ut(t)?jt(e,t):w.IsRecord(t)?cn(e,t):w.IsObject(t)?(()=>{for(let r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!w.IsOptional(t.properties[r]))return U.False;if(w.IsOptional(t.properties[r]))return U.True;if(U1(e.properties[r],t.properties[r])===U.False)return U.False}return U.True})():U.False}o(WD,"FromObject");function HD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)&&VD(t)?U.True:w.IsPromise(t)?sn(it(e.item,t.item)):U.False}o(HD,"FromPromise");function $f(e){return wi in e.patternProperties?Qn():Ai in e.patternProperties?on():Va("Unknown record key pattern")}o($f,"RecordKey");function Gf(e){return wi in e.patternProperties?e.patternProperties[wi]:Ai in e.patternProperties?e.patternProperties[Ai]:Va("Unable to get record value schema")}o(Gf,"RecordValue");function cn(e,t){let[r,n]=[$f(t),Gf(t)];return w.IsLiteralString(e)&&w.IsNumber(r)&&sn(it(e,n))===U.True?U.True:w.IsUint8Array(e)&&w.IsNumber(r)||w.IsString(e)&&w.IsNumber(r)||w.IsArray(e)&&w.IsNumber(r)?it(e,n):w.IsObject(e)?(()=>{for(let i of Object.getOwnPropertyNames(e.properties))if(U1(n,e.properties[i])===U.False)return U.False;return U.True})():U.False}o(cn,"FromRecordRight");function KD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?it(Gf(e),Gf(t)):U.False}o(KD,"FromRecord");function qD(e,t){let r=w.IsRegExp(e)?on():e,n=w.IsRegExp(t)?on():t;return it(r,n)}o(qD,"FromRegExp");function j1(e,t){return w.IsLiteral(e)&&Ne.IsString(e.const)||w.IsString(e)?U.True:U.False}o(j1,"FromStringRight");function JD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsString(t)?U.True:U.False}o(JD,"FromString");function XD(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsSymbol(t)?U.True:U.False}o(XD,"FromSymbol");function YD(e,t){return w.IsTemplateLiteral(e)?it(Vo(e),t):w.IsTemplateLiteral(t)?it(e,Vo(t)):Va("Invalid fallthrough for TemplateLiteral")}o(YD,"FromTemplateLiteral");function QD(e,t){return w.IsArray(t)&&e.items!==void 0&&e.items.every(r=>it(r,t.items)===U.True)}o(QD,"IsArrayOfTuple");function eS(e,t){return w.IsNever(e)?U.True:w.IsUnknown(e)?U.False:w.IsAny(e)?U.Union:U.False}o(eS,"FromTupleRight");function tS(e,t){return Ut(t)?jt(e,t):w.IsObject(t)&&Rl(t)||w.IsArray(t)&&QD(e,t)?U.True:w.IsTuple(t)?Ne.IsUndefined(e.items)&&!Ne.IsUndefined(t.items)||!Ne.IsUndefined(e.items)&&Ne.IsUndefined(t.items)?U.False:Ne.IsUndefined(e.items)&&!Ne.IsUndefined(t.items)||e.items.every((r,n)=>it(r,t.items[n])===U.True)?U.True:U.False:U.False}o(tS,"FromTuple");function rS(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsUint8Array(t)?U.True:U.False}o(rS,"FromUint8Array");function nS(e,t){return Ut(t)?jt(e,t):w.IsObject(t)?gr(e,t):w.IsRecord(t)?cn(e,t):w.IsVoid(t)?aS(e,t):w.IsUndefined(t)?U.True:U.False}o(nS,"FromUndefined");function Vf(e,t){return t.anyOf.some(r=>it(e,r)===U.True)?U.True:U.False}o(Vf,"FromUnionRight");function iS(e,t){return e.anyOf.every(r=>it(r,t)===U.True)?U.True:U.False}o(iS,"FromUnion");function z1(e,t){return U.True}o(z1,"FromUnknownRight");function oS(e,t){return w.IsNever(t)?R1(e,t):w.IsIntersect(t)?Ll(e,t):w.IsUnion(t)?Vf(e,t):w.IsAny(t)?Zf(e,t):w.IsString(t)?j1(e,t):w.IsNumber(t)?N1(e,t):w.IsInteger(t)?L1(e,t):w.IsBoolean(t)?_1(e,t):w.IsArray(t)?DD(e,t):w.IsTuple(t)?eS(e,t):w.IsObject(t)?gr(e,t):w.IsUnknown(t)?U.True:U.False}o(oS,"FromUnknown");function aS(e,t){return w.IsUndefined(e)||w.IsUndefined(e)?U.True:U.False}o(aS,"FromVoidRight");function uS(e,t){return w.IsIntersect(t)?Ll(e,t):w.IsUnion(t)?Vf(e,t):w.IsUnknown(t)?z1(e,t):w.IsAny(t)?Zf(e,t):w.IsObject(t)?gr(e,t):w.IsVoid(t)?U.True:U.False}o(uS,"FromVoid");function it(e,t){return w.IsTemplateLiteral(e)||w.IsTemplateLiteral(t)?YD(e,t):w.IsRegExp(e)||w.IsRegExp(t)?qD(e,t):w.IsNot(e)||w.IsNot(t)?RD(e,t):w.IsAny(e)?CD(e,t):w.IsArray(e)?SD(e,t):w.IsBigInt(e)?AD(e,t):w.IsBoolean(e)?FD(e,t):w.IsAsyncIterator(e)?wD(e,t):w.IsConstructor(e)?OD(e,t):w.IsDate(e)?PD(e,t):w.IsFunction(e)?BD(e,t):w.IsInteger(e)?MD(e,t):w.IsIntersect(e)?TD(e,t):w.IsIterator(e)?kD(e,t):w.IsLiteral(e)?_D(e,t):w.IsNever(e)?LD(e,t):w.IsNull(e)?ND(e,t):w.IsNumber(e)?UD(e,t):w.IsObject(e)?WD(e,t):w.IsRecord(e)?KD(e,t):w.IsString(e)?JD(e,t):w.IsSymbol(e)?XD(e,t):w.IsTuple(e)?tS(e,t):w.IsPromise(e)?HD(e,t):w.IsUint8Array(e)?rS(e,t):w.IsUndefined(e)?nS(e,t):w.IsUnion(e)?iS(e,t):w.IsUnknown(e)?oS(e,t):w.IsVoid(e)?uS(e,t):Va("Unknown left type operand '".concat(e[_],"'"))}o(it,"Visit");function lo(e,t){return it(e,t)}o(lo,"ExtendsCheck");l();l();l();function sS(e,t,r,n,i){let a={};for(let u of globalThis.Object.getOwnPropertyNames(e))a[u]=Wa(e[u],t,r,n,gt(i));return a}o(sS,"FromProperties");function cS(e,t,r,n,i){return sS(e.properties,t,r,n,i)}o(cS,"FromMappedResult");function $1(e,t,r,n,i){let a=cS(e,t,r,n,i);return Ge(a)}o($1,"ExtendsFromMappedResult");function lS(e,t,r,n){let i=lo(e,t);return i===U.Union?nt([r,n]):i===U.True?r:n}o(lS,"ExtendsResolve");function Wa(e,t,r,n,i){return bt(e)?$1(e,t,r,n,i):Vr(e)?H(G1(e,t,r,n,i)):H(lS(e,t,r,n),i)}o(Wa,"Extends");function dS(e,t,r,n,i){return{[e]:Wa(Ke(e),t,r,n,gt(i))}}o(dS,"FromPropertyKey");function mS(e,t,r,n,i){return e.reduce((a,u)=>R(R({},a),dS(u,t,r,n,i)),{})}o(mS,"FromPropertyKeys");function pS(e,t,r,n,i){return mS(e.keys,t,r,n,i)}o(pS,"FromMappedKey");function G1(e,t,r,n,i){let a=pS(e,t,r,n,i);return Ge(a)}o(G1,"ExtendsFromMappedKey");l();function fS(e){return e.allOf.every(t=>Bi(t))}o(fS,"Intersect");function hS(e){return e.anyOf.some(t=>Bi(t))}o(hS,"Union");function gS(e){return!Bi(e.not)}o(gS,"Not");function Bi(e){return e[_]==="Intersect"?fS(e):e[_]==="Union"?hS(e):e[_]==="Not"?gS(e):e[_]==="Undefined"}o(Bi,"ExtendsUndefinedCheck");l();function Z1(e,t){return Ha(Vo(e),t)}o(Z1,"ExcludeFromTemplateLiteral");function yS(e,t){let r=e.filter(n=>lo(n,t)===U.False);return r.length===1?r[0]:nt(r)}o(yS,"ExcludeRest");function Ha(e,t,r={}){return Wr(e)?H(Z1(e,t),r):bt(e)?H(V1(e,t),r):H(He(e)?yS(e.anyOf,t):lo(e,t)!==U.False?rt():e,r)}o(Ha,"Exclude");function bS(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ha(e[n],t);return r}o(bS,"FromProperties");function vS(e,t){return bS(e.properties,t)}o(vS,"FromMappedResult");function V1(e,t){let r=vS(e,t);return Ge(r)}o(V1,"ExcludeFromMappedResult");l();l();l();function W1(e,t){return Ka(Vo(e),t)}o(W1,"ExtractFromTemplateLiteral");function xS(e,t){let r=e.filter(n=>lo(n,t)!==U.False);return r.length===1?r[0]:nt(r)}o(xS,"ExtractRest");function Ka(e,t,r){return Wr(e)?H(W1(e,t),r):bt(e)?H(H1(e,t),r):H(He(e)?xS(e.anyOf,t):lo(e,t)!==U.False?e:rt(),r)}o(Ka,"Extract");function ES(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ka(e[n],t);return r}o(ES,"FromProperties");function IS(e,t){return ES(e.properties,t)}o(IS,"FromMappedResult");function H1(e,t){let r=IS(e,t);return Ge(r)}o(H1,"ExtractFromMappedResult");l();function K1(e,t){return H(e.returns,t)}o(K1,"InstanceType");l();function q1(e){return H({[_]:"Integer",type:"integer"},e)}o(q1,"Integer");l();l();l();function CS(e,t,r){return{[e]:Fn(Ke(e),t,gt(r))}}o(CS,"MappedIntrinsicPropertyKey");function DS(e,t,r){return e.reduce((i,a)=>R(R({},i),CS(a,t,r)),{})}o(DS,"MappedIntrinsicPropertyKeys");function SS(e,t,r){return DS(e.keys,t,r)}o(SS,"MappedIntrinsicProperties");function J1(e,t,r){let n=SS(e,t,r);return Ge(n)}o(J1,"IntrinsicFromMappedKey");function wS(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}o(wS,"ApplyUncapitalize");function AS(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}o(AS,"ApplyCapitalize");function FS(e){return e.toUpperCase()}o(FS,"ApplyUppercase");function OS(e){return e.toLowerCase()}o(OS,"ApplyLowercase");function PS(e,t,r){let n=za(e.pattern);if(!Zo(n))return De(R({},e),{pattern:X1(e.pattern,t)});let u=[...bs(n)].map(m=>Ke(m)),s=Y1(u,t),d=nt(s);return Sl([d],r)}o(PS,"FromTemplateLiteral");function X1(e,t){return typeof e=="string"?t==="Uncapitalize"?wS(e):t==="Capitalize"?AS(e):t==="Uppercase"?FS(e):t==="Lowercase"?OS(e):e:e.toString()}o(X1,"FromLiteralValue");function Y1(e,t){return e.map(r=>Fn(r,t))}o(Y1,"FromRest");function Fn(e,t,r={}){return Vr(e)?J1(e,t,r):Wr(e)?PS(e,t,r):He(e)?nt(Y1(e.anyOf,t),r):Si(e)?Ke(X1(e.const,t),r):H(e,r)}o(Fn,"Intrinsic");function Q1(e,t={}){return Fn(e,"Capitalize",t)}o(Q1,"Capitalize");l();function ev(e,t={}){return Fn(e,"Lowercase",t)}o(ev,"Lowercase");l();function tv(e,t={}){return Fn(e,"Uncapitalize",t)}o(tv,"Uncapitalize");l();function rv(e,t={}){return Fn(e,"Uppercase",t)}o(rv,"Uppercase");l();function nv(e,t){return H({[_]:"Not",not:e},t)}o(nv,"Not");l();l();l();function BS(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=qa(e[i],t,gt(r));return n}o(BS,"FromProperties");function MS(e,t,r){return BS(e.properties,t,r)}o(MS,"FromMappedResult");function iv(e,t,r){let n=MS(e,t,r);return Ge(n)}o(iv,"OmitFromMappedResult");function TS(e,t){return e.map(r=>Hf(r,t))}o(TS,"FromIntersect");function kS(e,t){return e.map(r=>Hf(r,t))}o(kS,"FromUnion");function _S(e,t){let i=e,{[t]:r}=i;return Po(i,[kc(t)])}o(_S,"FromProperty");function LS(e,t){return t.reduce((r,n)=>_S(r,n),e)}o(LS,"FromProperties");function RS(e,t){let r=Pt(e,[yt,"$id","required","properties"]),n=LS(e.properties,t);return st(n,r)}o(RS,"FromObject");function Hf(e,t){return Rt(e)?Ur(TS(e.allOf,t)):He(e)?nt(kS(e.anyOf,t)):$t(e)?RS(e,t):st({})}o(Hf,"OmitResolve");function qa(e,t,r){if(Vr(t))return ov(e,t,r);if(bt(e))return iv(e,t,r);let n=wn(t)?Nr(t):t;return H(R(R({},Hf(e,n)),r))}o(qa,"Omit");function NS(e,t,r){return{[t]:qa(e,[t],gt(r))}}o(NS,"FromPropertyKey");function US(e,t,r){return t.reduce((n,i)=>R(R({},n),NS(e,i,r)),{})}o(US,"FromPropertyKeys");function jS(e,t,r){return US(e,t.keys,r)}o(jS,"FromMappedKey");function ov(e,t,r){let n=jS(e,t,r);return Ge(n)}o(ov,"OmitFromMappedKey");l();function av(e,t){return ei(e.parameters,t)}o(av,"Parameters");l();l();function uv(e){return e.map(t=>sv(t))}o(uv,"FromRest");function zS(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Rr(e[r]);return t}o(zS,"FromProperties");function $S(e){let t=Pt(e,[yt,"$id","required","properties"]),r=zS(e.properties);return st(r,t)}o($S,"FromObject");function sv(e){return Rt(e)?Ur(uv(e.allOf)):He(e)?nt(uv(e.anyOf)):$t(e)?$S(e):st({})}o(sv,"PartialResolve");function Nl(e,t){return bt(e)?cv(e,t):H(R(R({},sv(e)),t))}o(Nl,"Partial");function GS(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Nl(e[n],gt(t));return r}o(GS,"FromProperties");function ZS(e,t){return GS(e.properties,t)}o(ZS,"FromMappedResult");function cv(e,t){let r=ZS(e,t);return Ge(r)}o(cv,"PartialFromMappedResult");l();l();l();function VS(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Ja(e[i],t,gt(r));return n}o(VS,"FromProperties");function WS(e,t,r){return VS(e.properties,t,r)}o(WS,"FromMappedResult");function lv(e,t,r){let n=WS(e,t,r);return Ge(n)}o(lv,"PickFromMappedResult");function HS(e,t){return e.map(r=>Kf(r,t))}o(HS,"FromIntersect");function KS(e,t){return e.map(r=>Kf(r,t))}o(KS,"FromUnion");function qS(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}o(qS,"FromProperties");function JS(e,t){let r=Pt(e,[yt,"$id","required","properties"]),n=qS(e.properties,t);return st(n,r)}o(JS,"FromObject");function Kf(e,t){return Rt(e)?Ur(HS(e.allOf,t)):He(e)?nt(KS(e.anyOf,t)):$t(e)?JS(e,t):st({})}o(Kf,"PickResolve");function Ja(e,t,r){if(Vr(t))return dv(e,t,r);if(bt(e))return lv(e,t,r);let n=wn(t)?Nr(t):t;return H(R(R({},Kf(e,n)),r))}o(Ja,"Pick");function XS(e,t,r){return{[t]:Ja(e,[t],gt(r))}}o(XS,"FromPropertyKey");function YS(e,t,r){return t.reduce((n,i)=>R(R({},n),XS(e,i,r)),{})}o(YS,"FromPropertyKeys");function QS(e,t,r){return YS(e,t.keys,r)}o(QS,"FromMappedKey");function dv(e,t,r){let n=QS(e,t,r);return Ge(n)}o(dv,"PickFromMappedKey");l();function mv(e){return an(Rr(e))}o(mv,"ReadonlyOptional");l();function Wo(e,t,r){return H({[_]:"Record",type:"object",patternProperties:{[e]:t}},r)}o(Wo,"RecordCreateFromPattern");function qf(e,t,r){let n={};for(let i of e)n[i]=t;return st(n,De(R({},r),{[nn]:"Record"}))}o(qf,"RecordCreateFromKeys");function ew(e,t,r){return Cl(e)?qf(Nr(e),t,r):Wo(e.pattern,t,r)}o(ew,"FromTemplateLiteralKey");function tw(e,t,r){return qf(Nr(nt(e)),t,r)}o(tw,"FromUnionKey");function rw(e,t,r){return qf([e.toString()],t,r)}o(rw,"FromLiteralKey");function nw(e,t,r){return Wo(e.source,t,r)}o(nw,"FromRegExpKey");function iw(e,t,r){let n=It(e.pattern)?Ai:e.pattern;return Wo(n,t,r)}o(iw,"FromStringKey");function ow(e,t,r){return Wo(Ai,t,r)}o(ow,"FromAnyKey");function aw(e,t,r){return Wo(n1,t,r)}o(aw,"FromNeverKey");function uw(e,t,r){return Wo(wi,t,r)}o(uw,"FromIntegerKey");function sw(e,t,r){return Wo(wi,t,r)}o(sw,"FromNumberKey");function pv(e,t,r={}){return He(e)?tw(e.anyOf,t,r):Wr(e)?ew(e,t,r):Si(e)?rw(e.const,t,r):zo(e)?uw(e,t,r):$o(e)?sw(e,t,r):bf(e)?nw(e,t,r):ms(e)?iw(e,t,r):pf(e)?ow(e,t,r):oo(e)?aw(e,t,r):rt(r)}o(pv,"Record");l();var cw=0;function fv(e,t={}){It(t.$id)&&(t.$id="T".concat(cw++));let r=as(e({[_]:"This",$ref:"".concat(t.$id)}));return r.$id=t.$id,H(R({[nn]:"Recursive"},r),t)}o(fv,"Recursive");l();function hv(e,t){if(ft(e))return H({[_]:"Ref",$ref:e},t);if(It(e.$id))throw new Error("Reference target type must specify an $id");return H({[_]:"Ref",$ref:e.$id},t)}o(hv,"Ref");l();function gv(e,t){let r=ft(e)?new globalThis.RegExp(e):e;return H({[_]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)}o(gv,"RegExp");l();l();function yv(e){return e.map(t=>bv(t))}o(yv,"FromRest");function lw(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Pt(e[r],[Or]);return t}o(lw,"FromProperties");function dw(e){let t=Pt(e,[yt,"$id","required","properties"]),r=lw(e.properties);return st(r,t)}o(dw,"FromObject");function bv(e){return Rt(e)?Ur(yv(e.allOf)):He(e)?nt(yv(e.anyOf)):$t(e)?dw(e):st({})}o(bv,"RequiredResolve");function Ul(e,t){return bt(e)?vv(e,t):H(R(R({},bv(e)),t))}o(Ul,"Required");function mw(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ul(e[n],t);return r}o(mw,"FromProperties");function pw(e,t){return mw(e.properties,t)}o(pw,"FromMappedResult");function vv(e,t){let r=pw(e,t);return Ge(r)}o(vv,"RequiredFromMappedResult");l();function fw(e){var t;return Rt(e)?e.allOf:He(e)?e.anyOf:Sn(e)?(t=e.items)!=null?t:[]:[]}o(fw,"RestResolve");function xv(e){return fw(e)}o(xv,"Rest");l();function Ev(e,t){return H(e.returns,t)}o(Ev,"ReturnType");l();function Iv(e){return JSON.parse(JSON.stringify(e))}o(Iv,"Strict");l();var Yf=class Yf{constructor(t){this.schema=t}Decode(t){return new Xf(this.schema,t)}};o(Yf,"TransformDecodeBuilder");var Jf=Yf,Qf=class Qf{constructor(t,r){this.schema=t,this.decode=r}EncodeTransform(t,r){let a={Encode:o(u=>r[yt].Encode(t(u)),"Encode"),Decode:o(u=>this.decode(r[yt].Decode(u)),"Decode")};return De(R({},r),{[yt]:a})}EncodeSchema(t,r){let n={Decode:this.decode,Encode:t};return De(R({},r),{[yt]:n})}Encode(t){return La(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};o(Qf,"TransformEncodeBuilder");var Xf=Qf;function Cv(e){return new Jf(e)}o(Cv,"Transform");l();function jl(e={}){var t;return H({[_]:(t=e[_])!=null?t:"Unsafe"},e)}o(jl,"Unsafe");l();function Dv(e){return H({[_]:"Void",type:"void"},e)}o(Dv,"Void");l();var e0={};Ki(e0,{Any:()=>uo,Array:()=>vl,AsyncIterator:()=>xl,Awaited:()=>D1,BigInt:()=>Ga,Boolean:()=>Dl,Capitalize:()=>Q1,Composite:()=>A1,Const:()=>F1,Constructor:()=>El,ConstructorParameters:()=>O1,Date:()=>Pl,Deref:()=>An,Enum:()=>P1,Exclude:()=>Ha,Extends:()=>Wa,Extract:()=>Ka,Function:()=>so,Index:()=>Za,InstanceType:()=>K1,Integer:()=>q1,Intersect:()=>Ur,Iterator:()=>Al,KeyOf:()=>Ol,Literal:()=>Ke,Lowercase:()=>ev,Mapped:()=>x1,Never:()=>rt,Not:()=>nv,Null:()=>Bl,Number:()=>Qn,Object:()=>st,Omit:()=>qa,Optional:()=>Rr,Parameters:()=>av,Partial:()=>Nl,Pick:()=>Ja,Promise:()=>Fl,Readonly:()=>an,ReadonlyOptional:()=>mv,Record:()=>pv,Recursive:()=>fv,Ref:()=>hv,RegExp:()=>gv,Required:()=>Ul,Rest:()=>xv,ReturnType:()=>Ev,Strict:()=>Iv,String:()=>on,Symbol:()=>Ml,TemplateLiteral:()=>Sl,Transform:()=>Cv,Tuple:()=>ei,Uint8Array:()=>kl,Uncapitalize:()=>tv,Undefined:()=>Tl,Union:()=>nt,Unknown:()=>Pi,Unsafe:()=>jl,Uppercase:()=>rv,Void:()=>Dv});l();var p=e0;l();var Cs=p.Object({externalId:p.String({description:"An identifier that can be used to link this entity to data outside of the MVF."}),name:p.String({description:"The name of the entity."}),shortName:p.String({description:"A short name for the entity."}),description:p.String({description:"A description of the entity."}),icon:p.String({format:"uri",description:"A URL to an icon for the entity."})},{$id:"BaseDetails",description:"Additional information about a given entity."}),t0=p.Partial(Cs,{$id:"Details",description:"Additional information about a given entity."}),Hr=p.Object({details:p.Optional(p.Ref(t0))},{$id:"WithDetails"}),Ho=o(e=>{let t=[...e].sort(),r=p.Pick(Cs,e),n=p.Omit(Cs,e);return p.Object({details:p.Intersect([r,p.Partial(n)])},{$id:"WithRequiredDetails_".concat(t.join("_"))})},"WithRequiredDetails"),r0=[Cs,t0];l();var Xa=p.Number({$id:"Longitude",minimum:-180,maximum:180,description:"A WGS 84-compatible longitude coordinate value."}),Ya=p.Number({$id:"Latitude",minimum:-90,maximum:90,description:"A WGS 84-compatible latitude coordinate value."}),Ko=p.Tuple([p.Ref(Xa),p.Ref(Ya)],{$id:"Position",minItems:2,maxItems:2,description:"A valid WGS 84 position consisting of a longitude value, followed by a latitude value."}),yr=p.Object({type:p.Literal("Point"),coordinates:p.Ref(Ko)},{$id:"Point",description:"An RFC-7946 compatible GeoJSON Point geometry."}),zl=p.Object({type:p.Literal("MultiPoint"),coordinates:p.Array(p.Ref(Ko))},{$id:"MultiPoint",description:"An RFC-7946 compatible GeoJSON MultiPoint geometry."}),$l=p.Object({type:p.Literal("LineString"),coordinates:p.Array(p.Ref(Ko),{minItems:2,description:"At least two positions are required."})},{$id:"LineString",description:"An RFC-7946 compatible GeoJSON LineString geometry."}),Gl=p.Object({type:p.Literal("MultiLineString"),coordinates:p.Array(p.Array(p.Ref(Ko),{minItems:2}))},{$id:"MultiLineString",description:"An RFC-7946 compatible GeoJSON MultiLineString geometry."}),Sv=p.Array(p.Ref(Ko),{$id:"LinearRing",minItems:4,description:"A linear ring is a building block of a polygon or multi-polygon."}),n0=p.Array(p.Ref(Sv),{$id:"LinearRings",minItems:1,description:"A collection of linear rings, at least one of which is the exterior ring of a polygon."}),Qa=p.Object({type:p.Literal("Polygon"),coordinates:p.Ref(n0)},{$id:"Polygon",description:"An RFC-7946 compatible GeoJSON Polygon geometry."}),eu=p.Object({type:p.Literal("MultiPolygon"),coordinates:p.Array(p.Ref(n0))},{$id:"MultiPolygon",description:"An RFC-7946 compatible GeoJSON MultiPolygon geometry."}),ar=o((e,t,r)=>p.Object({type:p.Literal("Feature"),geometry:e,properties:t},r),"Feature"),Br=o((e,t,r)=>p.Object({type:p.Literal("FeatureCollection"),features:p.Array(e,r)},t),"FeatureCollection"),i0=[Xa,Ya,Ko,yr,zl,$l,Gl,Sv,n0,Qa,eu];l();var Bt=o((e,t)=>p.Unsafe(p.String({$id:t,pattern:"^".concat(e,"_[A-Za-z0-9-]+$")})),"Ident"),br=Bt("g","GeometryId"),Re=Bt("f","FloorId"),o0=[br,Re];l();l();l();var a0=class a0{constructor(t){h(this,"_value");this._value=t}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let t=this._value;return this._value=null,{done:!1,value:t}}};o(a0,"OptionIterator");var Zl=a0,u0=class u0{constructor(t){h(this,"_tag","Some");h(this,"_value");this._value=t}get value(){return this._value}isSome(){return!0}isSomeAnd(t){return t(this.value)}isNone(){return!1}equals(t){return t.isSome()&&t.value===this.value}expect(t){return this.value}unwrap(){return this.value}unwrapOr(t){return this.value}unwrapOrElse(t){return this.value}inspect(t){return t(this.value),this}inspectNone(t){return this}map(t){return wv(t(this.value))}mapAsync(t){return t(this.value).then(r=>wv(r))}mapOr(t,r){return this.map(t).unwrapOr(r)}mapOrAsync(t,r){return this.mapAsync(t).then(n=>n.unwrapOr(r))}mapOrElse(t,r){return this.map(t).unwrapOrElse(r)}mapOrElseAsync(t,r){return this.mapAsync(t).then(n=>n.unwrapOrElse(r))}and(t){return t}andThen(t){return t(this.value)}andThenAsync(t){return t(this.value)}filter(t){return t(this.value)?this:mo()}or(t){return this}orElse(t){return this}xor(t){return t.isSome()?mo():this}toString(){return"Some(".concat(this.value,")")}okOr(t){return ue(this.value)}okOrElse(t){return ue(this.value)}iter(){return new Zl(this.value)}[Symbol.iterator](){return this.iter()}zip(t){return t.isSome()?tu([this.value,t.value]):mo()}zipWith(t,r){return t.isSome()?tu(r(this.value,t.value)):mo()}get[Symbol.toStringTag](){return"Some"}};o(u0,"Some");var Vl=u0,s0=class s0{constructor(){h(this,"_tag","None")}get value(){return null}isSome(){return!1}isSomeAnd(t){return!1}isNone(){return!0}equals(t){return t.isNone()}expect(t){throw new Error(t)}unwrap(){throw new Error("Tried to unwrap a None value!")}unwrapOr(t){return t}unwrapOrElse(t){return t()}inspect(t){return this}inspectNone(t){return t(),this}map(t){return this}mapAsync(t){return Promise.resolve(this)}mapOr(t,r){return r}mapOrAsync(t,r){return Promise.resolve(r)}mapOrElse(t,r){return r()}mapOrElseAsync(t,r){return r()}and(t){return this}andThen(t){return this}andThenAsync(t){return Promise.resolve(this)}filter(t){return this}or(t){return t}orElse(t){return t()}xor(t){return t}toString(){return"None"}okOr(t){return se(t)}okOrElse(t){return se(t())}iter(){return new Zl(null)}[Symbol.iterator](){return this.iter()}zip(t){return this}zipWith(t,r){return this}get[Symbol.toStringTag](){return"None"}};o(s0,"None");var Wl=s0,tu=o(e=>new Vl(e),"some"),mo=o(()=>new Wl,"none"),wv=o(e=>e instanceof Vl||e instanceof Wl?e:e==null?mo():tu(e),"option");var d0=class d0{constructor(t){h(this,"_value");this._value=t}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let t=this._value;return this._value=null,{done:!1,value:t}}};o(d0,"ResultIterator");var Hl=d0,m0=class m0{constructor(t){h(this,"_tag","Ok");h(this,"_value");this._value=t}get value(){return this._value}get error(){return null}isOk(){return!0}isOkAnd(t){return t(this.value)}isErr(){return!1}isErrAnd(t){return!1}ok(){return tu(this.value)}err(){return mo()}expect(t){return this.value}expectErr(t){throw new Error(t)}unwrap(){return this.value}unwrapOr(t){return this.value}unwrapOrElse(t){return this.value}inspect(t){return t(this.value),this}inspectErr(){return this}map(t){return ue(t(this.value))}async mapAsync(t){return t(this.value).then(ue)}mapOr(t,r){return t(this.value)}async mapOrAsync(t,r){return t(this.value)}mapOrElse(t,r){return t(this.value)}async mapOrElseAsync(t,r){return t(this.value)}mapErr(t){return this}iter(){return new Hl(this.value)}[Symbol.iterator](){return this.iter()}and(t){return t}andThen(t){return t(this.value)}or(t){return this}orElse(t){return this}async andThenAsync(t){return t(this.value)}toString(){return"Ok(".concat(this.value,")")}get[Symbol.toStringTag](){return"Ok"}};o(m0,"Ok");var c0=m0,Kl=class Kl{constructor(t){h(this,"_tag","Err");h(this,"_error");this._error=t}get value(){return null}get error(){return this._error}isOk(){return!1}isOkAnd(t){return!1}isErr(){return!0}isErrAnd(t){return t(this.error)}ok(){return mo()}err(){return tu(this.error)}expect(t){throw new Error(t)}expectErr(t){return this.error}unwrap(){throw this.error}unwrapOr(t){return t}unwrapOrElse(t){return t()}inspect(){return this}inspectErr(t){return t(this.error),this}map(t){return this}iter(){return new Hl(null)}[Symbol.iterator](){return this.iter()}async mapAsync(t){return this}mapOr(t,r){return r}async mapOrAsync(t,r){return r}mapOrElse(t,r){return r()}async mapOrElseAsync(t,r){return r()}mapErr(t){return new Kl(t(this.error))}and(t){return this}andThen(t){return this}async andThenAsync(t){return this}or(t){return t}orElse(t){return t(this.error)}toString(){return"Err(".concat(this.error,")")}get[Symbol.toStringTag](){return"Err"}};o(Kl,"Err");var l0=Kl,ue=o(e=>new c0(e),"ok"),se=o(e=>new l0(e),"err");l();var zr;(function(e){e.GeometryMissingError="GeometryMissingError",e.FloorMissingError="FloorMissingError",e.UnknownFloorError="UnknownFloorError",e.UnknownGeometryError="UnknownGeometryError",e.DuplicateIdError="DuplicateIdError"})(zr||(zr={}));l();l();l();l();var f0=class f0 extends he{constructor(t){super("Duplicate type kind '".concat(t,"' detected"))}};o(f0,"TypeSystemDuplicateTypeKind");var p0=f0,h0=class h0 extends he{constructor(t){super("Duplicate string format '".concat(t,"' detected"))}};o(h0,"TypeSystemDuplicateFormat");var Ds=h0,ql;(function(e){function t(n,i){if(Gt.Has(n))throw new p0(n);return Gt.Set(n,i),(a={})=>jl(De(R({},a),{[_]:n}))}o(t,"Type"),e.Type=t;function r(n,i){if(Pr.Has(n))throw new Ds(n);return Pr.Set(n,i),n}o(r,"Format"),e.Format=r})(ql||(ql={}));l();function hw(e){switch(e.errorType){case N.ArrayContains:return"Expected array to contain at least one matching value";case N.ArrayMaxContains:return"Expected array to contain no more than ".concat(e.schema.maxContains," matching values");case N.ArrayMinContains:return"Expected array to contain at least ".concat(e.schema.minContains," matching values");case N.ArrayMaxItems:return"Expected array length to be less or equal to ".concat(e.schema.maxItems);case N.ArrayMinItems:return"Expected array length to be greater or equal to ".concat(e.schema.minItems);case N.ArrayUniqueItems:return"Expected array elements to be unique";case N.Array:return"Expected array";case N.AsyncIterator:return"Expected AsyncIterator";case N.BigIntExclusiveMaximum:return"Expected bigint to be less than ".concat(e.schema.exclusiveMaximum);case N.BigIntExclusiveMinimum:return"Expected bigint to be greater than ".concat(e.schema.exclusiveMinimum);case N.BigIntMaximum:return"Expected bigint to be less or equal to ".concat(e.schema.maximum);case N.BigIntMinimum:return"Expected bigint to be greater or equal to ".concat(e.schema.minimum);case N.BigIntMultipleOf:return"Expected bigint to be a multiple of ".concat(e.schema.multipleOf);case N.BigInt:return"Expected bigint";case N.Boolean:return"Expected boolean";case N.DateExclusiveMinimumTimestamp:return"Expected Date timestamp to be greater than ".concat(e.schema.exclusiveMinimumTimestamp);case N.DateExclusiveMaximumTimestamp:return"Expected Date timestamp to be less than ".concat(e.schema.exclusiveMaximumTimestamp);case N.DateMinimumTimestamp:return"Expected Date timestamp to be greater or equal to ".concat(e.schema.minimumTimestamp);case N.DateMaximumTimestamp:return"Expected Date timestamp to be less or equal to ".concat(e.schema.maximumTimestamp);case N.DateMultipleOfTimestamp:return"Expected Date timestamp to be a multiple of ".concat(e.schema.multipleOfTimestamp);case N.Date:return"Expected Date";case N.Function:return"Expected function";case N.IntegerExclusiveMaximum:return"Expected integer to be less than ".concat(e.schema.exclusiveMaximum);case N.IntegerExclusiveMinimum:return"Expected integer to be greater than ".concat(e.schema.exclusiveMinimum);case N.IntegerMaximum:return"Expected integer to be less or equal to ".concat(e.schema.maximum);case N.IntegerMinimum:return"Expected integer to be greater or equal to ".concat(e.schema.minimum);case N.IntegerMultipleOf:return"Expected integer to be a multiple of ".concat(e.schema.multipleOf);case N.Integer:return"Expected integer";case N.IntersectUnevaluatedProperties:return"Unexpected property";case N.Intersect:return"Expected all values to match";case N.Iterator:return"Expected Iterator";case N.Literal:return"Expected ".concat(typeof e.schema.const=="string"?"'".concat(e.schema.const,"'"):e.schema.const);case N.Never:return"Never";case N.Not:return"Value should not match";case N.Null:return"Expected null";case N.NumberExclusiveMaximum:return"Expected number to be less than ".concat(e.schema.exclusiveMaximum);case N.NumberExclusiveMinimum:return"Expected number to be greater than ".concat(e.schema.exclusiveMinimum);case N.NumberMaximum:return"Expected number to be less or equal to ".concat(e.schema.maximum);case N.NumberMinimum:return"Expected number to be greater or equal to ".concat(e.schema.minimum);case N.NumberMultipleOf:return"Expected number to be a multiple of ".concat(e.schema.multipleOf);case N.Number:return"Expected number";case N.Object:return"Expected object";case N.ObjectAdditionalProperties:return"Unexpected property";case N.ObjectMaxProperties:return"Expected object to have no more than ".concat(e.schema.maxProperties," properties");case N.ObjectMinProperties:return"Expected object to have at least ".concat(e.schema.minProperties," properties");case N.ObjectRequiredProperty:return"Expected required property";case N.Promise:return"Expected Promise";case N.RegExp:return"Expected string to match regular expression";case N.StringFormatUnknown:return"Unknown format '".concat(e.schema.format,"'");case N.StringFormat:return"Expected string to match '".concat(e.schema.format,"' format");case N.StringMaxLength:return"Expected string length less or equal to ".concat(e.schema.maxLength);case N.StringMinLength:return"Expected string length greater or equal to ".concat(e.schema.minLength);case N.StringPattern:return"Expected string to match '".concat(e.schema.pattern,"'");case N.String:return"Expected string";case N.Symbol:return"Expected symbol";case N.TupleLength:return"Expected tuple to have ".concat(e.schema.maxItems||0," elements");case N.Tuple:return"Expected tuple";case N.Uint8ArrayMaxByteLength:return"Expected byte length less or equal to ".concat(e.schema.maxByteLength);case N.Uint8ArrayMinByteLength:return"Expected byte length greater or equal to ".concat(e.schema.minByteLength);case N.Uint8Array:return"Expected Uint8Array";case N.Undefined:return"Expected undefined";case N.Union:return"Expected union value";case N.Void:return"Expected void";case N.Kind:return"Expected kind '".concat(e.schema[_],"'");default:return"Unknown error type"}}o(hw,"DefaultErrorFunction");var gw=hw;function Av(){return gw}o(Av,"GetErrorFunction");l();var y0=class y0 extends he{constructor(t){super("Unable to dereference schema with $id '".concat(t.$ref,"'")),this.schema=t}};o(y0,"TypeDereferenceError");var g0=y0;function yw(e,t){let r=t.find(n=>n.$id===e.$ref);if(r===void 0)throw new g0(e);return Ze(r,t)}o(yw,"Resolve");function ln(e,t){return!Ue(e.$id)||t.some(r=>r.$id===e.$id)||t.push(e),t}o(ln,"Pushref");function Ze(e,t){return e[_]==="This"||e[_]==="Ref"?yw(e,t):e}o(Ze,"Deref");l();var v0=class v0 extends he{constructor(t){super("Unable to hash value"),this.value=t}};o(v0,"ValueHashError");var b0=v0,Kr;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(Kr||(Kr={}));var ru=BigInt("14695981039346656037"),[bw,vw]=[BigInt("1099511628211"),BigInt("18446744073709551616")],xw=Array.from({length:256}).map((e,t)=>BigInt(t)),Fv=new Float64Array(1),Ov=new DataView(Fv.buffer),Pv=new Uint8Array(Fv.buffer);function*Ew(e){let t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let r=0;r<t;r++)yield e>>8*(t-1-r)&255}o(Ew,"NumberToBytes");function Iw(e){vr(Kr.Array);for(let t of e)nu(t)}o(Iw,"ArrayType");function Cw(e){vr(Kr.Boolean),vr(e?1:0)}o(Cw,"BooleanType");function Dw(e){vr(Kr.BigInt),Ov.setBigInt64(0,e);for(let t of Pv)vr(t)}o(Dw,"BigIntType");function Sw(e){vr(Kr.Date),nu(e.getTime())}o(Sw,"DateType");function ww(e){vr(Kr.Null)}o(ww,"NullType");function Aw(e){vr(Kr.Number),Ov.setFloat64(0,e);for(let t of Pv)vr(t)}o(Aw,"NumberType");function Fw(e){vr(Kr.Object);for(let t of globalThis.Object.getOwnPropertyNames(e).sort())nu(t),nu(e[t])}o(Fw,"ObjectType");function Ow(e){vr(Kr.String);for(let t=0;t<e.length;t++)for(let r of Ew(e.charCodeAt(t)))vr(r)}o(Ow,"StringType");function Pw(e){vr(Kr.Symbol),nu(e.description)}o(Pw,"SymbolType");function Bw(e){vr(Kr.Uint8Array);for(let t=0;t<e.length;t++)vr(e[t])}o(Bw,"Uint8ArrayType");function Mw(e){return vr(Kr.Undefined)}o(Mw,"UndefinedType");function nu(e){if(Ie(e))return Iw(e);if(Jn(e))return Cw(e);if(ir(e))return Dw(e);if(Fr(e))return Sw(e);if(Ei(e))return ww(e);if(me(e))return Aw(e);if(we(e))return Fw(e);if(Ue(e))return Ow(e);if(Ii(e))return Pw(e);if(_a(e))return Bw(e);if(Ct(e))return Mw(e);throw new b0(e)}o(nu,"Visit");function vr(e){ru=ru^xw[e],ru=ru*bw%vw}o(vr,"FNV1A64");function po(e){return ru=BigInt("14695981039346656037"),nu(e),ru}o(po,"Hash");l();var E0=class E0 extends he{constructor(t){super("Unknown type"),this.schema=t}};o(E0,"ValueCheckUnknownTypeError");var x0=E0;function Tw(e){return e[_]==="Any"||e[_]==="Unknown"}o(Tw,"IsAnyOrUnknown");function ke(e){return e!==void 0}o(ke,"IsDefined");function kw(e,t,r){return!0}o(kw,"FromAny");function _w(e,t,r){if(!Ie(r)||ke(e.minItems)&&!(r.length>=e.minItems)||ke(e.maxItems)&&!(r.length<=e.maxItems)||!r.every(a=>ur(e.items,t,a))||e.uniqueItems===!0&&!function(){let a=new Set;for(let u of r){let s=po(u);if(a.has(s))return!1;a.add(s)}return!0}())return!1;if(!(ke(e.contains)||me(e.minContains)||me(e.maxContains)))return!0;let n=ke(e.contains)?e.contains:rt(),i=r.reduce((a,u)=>ur(n,t,u)?a+1:a,0);return!(i===0||me(e.minContains)&&i<e.minContains||me(e.maxContains)&&i>e.maxContains)}o(_w,"FromArray");function Lw(e,t,r){return hl(r)}o(Lw,"FromAsyncIterator");function Rw(e,t,r){return!(!ir(r)||ke(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||ke(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||ke(e.maximum)&&!(r<=e.maximum)||ke(e.minimum)&&!(r>=e.minimum)||ke(e.multipleOf)&&r%e.multipleOf!==BigInt(0))}o(Rw,"FromBigInt");function Nw(e,t,r){return Jn(r)}o(Nw,"FromBoolean");function Uw(e,t,r){return ur(e.returns,t,r.prototype)}o(Uw,"FromConstructor");function jw(e,t,r){return!(!Fr(r)||ke(e.exclusiveMaximumTimestamp)&&!(r.getTime()<e.exclusiveMaximumTimestamp)||ke(e.exclusiveMinimumTimestamp)&&!(r.getTime()>e.exclusiveMinimumTimestamp)||ke(e.maximumTimestamp)&&!(r.getTime()<=e.maximumTimestamp)||ke(e.minimumTimestamp)&&!(r.getTime()>=e.minimumTimestamp)||ke(e.multipleOfTimestamp)&&r.getTime()%e.multipleOfTimestamp!==0)}o(jw,"FromDate");function zw(e,t,r){return io(r)}o(zw,"FromFunction");function $w(e,t,r){return!(!bl(r)||ke(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||ke(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||ke(e.maximum)&&!(r<=e.maximum)||ke(e.minimum)&&!(r>=e.minimum)||ke(e.multipleOf)&&r%e.multipleOf!==0)}o($w,"FromInteger");function Gw(e,t,r){let n=e.allOf.every(i=>ur(i,t,r));if(e.unevaluatedProperties===!1){let i=new RegExp(Oi(e)),a=Object.getOwnPropertyNames(r).every(u=>i.test(u));return n&&a}else if(je(e.unevaluatedProperties)){let i=new RegExp(Oi(e)),a=Object.getOwnPropertyNames(r).every(u=>i.test(u)||ur(e.unevaluatedProperties,t,r[u]));return n&&a}else return n}o(Gw,"FromIntersect");function Zw(e,t,r){return gl(r)}o(Zw,"FromIterator");function Vw(e,t,r){return r===e.const}o(Vw,"FromLiteral");function Ww(e,t,r){return!1}o(Ww,"FromNever");function Hw(e,t,r){return!ur(e.not,t,r)}o(Hw,"FromNot");function Kw(e,t,r){return Ei(r)}o(Kw,"FromNull");function qw(e,t,r){return!(!Qe.IsNumberLike(r)||ke(e.exclusiveMaximum)&&!(r<e.exclusiveMaximum)||ke(e.exclusiveMinimum)&&!(r>e.exclusiveMinimum)||ke(e.minimum)&&!(r>=e.minimum)||ke(e.maximum)&&!(r<=e.maximum)||ke(e.multipleOf)&&r%e.multipleOf!==0)}o(qw,"FromNumber");function Jw(e,t,r){if(!Qe.IsObjectLike(r)||ke(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)||ke(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;let n=Object.getOwnPropertyNames(e.properties);for(let i of n){let a=e.properties[i];if(e.required&&e.required.includes(i)){if(!ur(a,t,r[i])||(Bi(a)||Tw(a))&&!(i in r))return!1}else if(Qe.IsExactOptionalProperty(r,i)&&!ur(a,t,r[i]))return!1}if(e.additionalProperties===!1){let i=Object.getOwnPropertyNames(r);return e.required&&e.required.length===n.length&&i.length===n.length?!0:i.every(a=>n.includes(a))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(r).every(a=>n.includes(a)||ur(e.additionalProperties,t,r[a])):!0}o(Jw,"FromObject");function Xw(e,t,r){return yl(r)}o(Xw,"FromPromise");function Yw(e,t,r){if(!Qe.IsRecordLike(r)||ke(e.minProperties)&&!(Object.getOwnPropertyNames(r).length>=e.minProperties)||ke(e.maxProperties)&&!(Object.getOwnPropertyNames(r).length<=e.maxProperties))return!1;let[n,i]=Object.entries(e.patternProperties)[0],a=new RegExp(n),u=Object.entries(r).every(([m,f])=>a.test(m)?ur(i,t,f):!0),s=typeof e.additionalProperties=="object"?Object.entries(r).every(([m,f])=>a.test(m)?!0:ur(e.additionalProperties,t,f)):!0,d=e.additionalProperties===!1?Object.getOwnPropertyNames(r).every(m=>a.test(m)):!0;return u&&s&&d}o(Yw,"FromRecord");function Qw(e,t,r){return ur(Ze(e,t),t,r)}o(Qw,"FromRef");function eA(e,t,r){let n=new RegExp(e.source,e.flags);return ke(e.minLength)&&!(r.length>=e.minLength)||ke(e.maxLength)&&!(r.length<=e.maxLength)?!1:n.test(r)}o(eA,"FromRegExp");function tA(e,t,r){return!Ue(r)||ke(e.minLength)&&!(r.length>=e.minLength)||ke(e.maxLength)&&!(r.length<=e.maxLength)||ke(e.pattern)&&!new RegExp(e.pattern).test(r)?!1:ke(e.format)?Pr.Has(e.format)?Pr.Get(e.format)(r):!1:!0}o(tA,"FromString");function rA(e,t,r){return Ii(r)}o(rA,"FromSymbol");function nA(e,t,r){return Ue(r)&&new RegExp(e.pattern).test(r)}o(nA,"FromTemplateLiteral");function iA(e,t,r){return ur(Ze(e,t),t,r)}o(iA,"FromThis");function oA(e,t,r){if(!Ie(r)||e.items===void 0&&r.length!==0||r.length!==e.maxItems)return!1;if(!e.items)return!0;for(let n=0;n<e.items.length;n++)if(!ur(e.items[n],t,r[n]))return!1;return!0}o(oA,"FromTuple");function aA(e,t,r){return Ct(r)}o(aA,"FromUndefined");function uA(e,t,r){return e.anyOf.some(n=>ur(n,t,r))}o(uA,"FromUnion");function sA(e,t,r){return!(!_a(r)||ke(e.maxByteLength)&&!(r.length<=e.maxByteLength)||ke(e.minByteLength)&&!(r.length>=e.minByteLength))}o(sA,"FromUint8Array");function cA(e,t,r){return!0}o(cA,"FromUnknown");function lA(e,t,r){return Qe.IsVoidLike(r)}o(lA,"FromVoid");function dA(e,t,r){return Gt.Has(e[_])?Gt.Get(e[_])(e,r):!1}o(dA,"FromKind");function ur(e,t,r){let n=ke(e.$id)?[...t,e]:t,i=e;switch(i[_]){case"Any":return kw(i,n,r);case"Array":return _w(i,n,r);case"AsyncIterator":return Lw(i,n,r);case"BigInt":return Rw(i,n,r);case"Boolean":return Nw(i,n,r);case"Constructor":return Uw(i,n,r);case"Date":return jw(i,n,r);case"Function":return zw(i,n,r);case"Integer":return $w(i,n,r);case"Intersect":return Gw(i,n,r);case"Iterator":return Zw(i,n,r);case"Literal":return Vw(i,n,r);case"Never":return Ww(i,n,r);case"Not":return Hw(i,n,r);case"Null":return Kw(i,n,r);case"Number":return qw(i,n,r);case"Object":return Jw(i,n,r);case"Promise":return Xw(i,n,r);case"Record":return Yw(i,n,r);case"Ref":return Qw(i,n,r);case"RegExp":return eA(i,n,r);case"String":return tA(i,n,r);case"Symbol":return rA(i,n,r);case"TemplateLiteral":return nA(i,n,r);case"This":return iA(i,n,r);case"Tuple":return oA(i,n,r);case"Undefined":return aA(i,n,r);case"Union":return uA(i,n,r);case"Uint8Array":return sA(i,n,r);case"Unknown":return cA(i,n,r);case"Void":return lA(i,n,r);default:if(!Gt.Has(i[_]))throw new x0(i);return dA(i,n,r)}}o(ur,"Visit");function Be(...e){return e.length===3?ur(e[0],e[1],e[2]):ur(e[0],[],e[1])}o(Be,"Check");var N;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(N||(N={}));var C0=class C0 extends he{constructor(t){super("Unknown type"),this.schema=t}};o(C0,"ValueErrorsUnknownTypeError");var I0=C0;function Mi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Mi,"EscapeKey");function _e(e){return e!==void 0}o(_e,"IsDefined");var D0=class D0{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){let t=this.iterator.next();return t.done?void 0:t.value}};o(D0,"ValueErrorIterator");var dn=D0;function ie(e,t,r,n,i=[]){return{type:e,schema:t,path:r,value:n,message:Av()({errorType:e,path:r,schema:t,value:n,errors:i}),errors:i}}o(ie,"Create");function*mA(e,t,r,n){}o(mA,"FromAny");function*pA(e,t,r,n){if(!Ie(n))return yield ie(N.Array,e,r,n);_e(e.minItems)&&!(n.length>=e.minItems)&&(yield ie(N.ArrayMinItems,e,r,n)),_e(e.maxItems)&&!(n.length<=e.maxItems)&&(yield ie(N.ArrayMaxItems,e,r,n));for(let u=0;u<n.length;u++)yield*X(sr(e.items,t,"".concat(r,"/").concat(u),n[u]));if(e.uniqueItems===!0&&!function(){let u=new Set;for(let s of n){let d=po(s);if(u.has(d))return!1;u.add(d)}return!0}()&&(yield ie(N.ArrayUniqueItems,e,r,n)),!(_e(e.contains)||_e(e.minContains)||_e(e.maxContains)))return;let i=_e(e.contains)?e.contains:rt(),a=n.reduce((u,s,d)=>sr(i,t,"".concat(r).concat(d),s).next().done===!0?u+1:u,0);a===0&&(yield ie(N.ArrayContains,e,r,n)),me(e.minContains)&&a<e.minContains&&(yield ie(N.ArrayMinContains,e,r,n)),me(e.maxContains)&&a>e.maxContains&&(yield ie(N.ArrayMaxContains,e,r,n))}o(pA,"FromArray");function*fA(e,t,r,n){hl(n)||(yield ie(N.AsyncIterator,e,r,n))}o(fA,"FromAsyncIterator");function*hA(e,t,r,n){if(!ir(n))return yield ie(N.BigInt,e,r,n);_e(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield ie(N.BigIntExclusiveMaximum,e,r,n)),_e(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield ie(N.BigIntExclusiveMinimum,e,r,n)),_e(e.maximum)&&!(n<=e.maximum)&&(yield ie(N.BigIntMaximum,e,r,n)),_e(e.minimum)&&!(n>=e.minimum)&&(yield ie(N.BigIntMinimum,e,r,n)),_e(e.multipleOf)&&n%e.multipleOf!==BigInt(0)&&(yield ie(N.BigIntMultipleOf,e,r,n))}o(hA,"FromBigInt");function*gA(e,t,r,n){Jn(n)||(yield ie(N.Boolean,e,r,n))}o(gA,"FromBoolean");function*yA(e,t,r,n){yield*X(sr(e.returns,t,r,n.prototype))}o(yA,"FromConstructor");function*bA(e,t,r,n){if(!Fr(n))return yield ie(N.Date,e,r,n);_e(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)&&(yield ie(N.DateExclusiveMaximumTimestamp,e,r,n)),_e(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)&&(yield ie(N.DateExclusiveMinimumTimestamp,e,r,n)),_e(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)&&(yield ie(N.DateMaximumTimestamp,e,r,n)),_e(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)&&(yield ie(N.DateMinimumTimestamp,e,r,n)),_e(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0&&(yield ie(N.DateMultipleOfTimestamp,e,r,n))}o(bA,"FromDate");function*vA(e,t,r,n){io(n)||(yield ie(N.Function,e,r,n))}o(vA,"FromFunction");function*xA(e,t,r,n){if(!bl(n))return yield ie(N.Integer,e,r,n);_e(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield ie(N.IntegerExclusiveMaximum,e,r,n)),_e(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield ie(N.IntegerExclusiveMinimum,e,r,n)),_e(e.maximum)&&!(n<=e.maximum)&&(yield ie(N.IntegerMaximum,e,r,n)),_e(e.minimum)&&!(n>=e.minimum)&&(yield ie(N.IntegerMinimum,e,r,n)),_e(e.multipleOf)&&n%e.multipleOf!==0&&(yield ie(N.IntegerMultipleOf,e,r,n))}o(xA,"FromInteger");function*EA(e,t,r,n){let i=!1;for(let a of e.allOf)for(let u of sr(a,t,r,n))i=!0,yield u;if(i)return yield ie(N.Intersect,e,r,n);if(e.unevaluatedProperties===!1){let a=new RegExp(Oi(e));for(let u of Object.getOwnPropertyNames(n))a.test(u)||(yield ie(N.IntersectUnevaluatedProperties,e,"".concat(r,"/").concat(u),n))}if(typeof e.unevaluatedProperties=="object"){let a=new RegExp(Oi(e));for(let u of Object.getOwnPropertyNames(n))if(!a.test(u)){let s=sr(e.unevaluatedProperties,t,"".concat(r,"/").concat(u),n[u]).next();s.done||(yield s.value)}}}o(EA,"FromIntersect");function*IA(e,t,r,n){gl(n)||(yield ie(N.Iterator,e,r,n))}o(IA,"FromIterator");function*CA(e,t,r,n){n!==e.const&&(yield ie(N.Literal,e,r,n))}o(CA,"FromLiteral");function*DA(e,t,r,n){yield ie(N.Never,e,r,n)}o(DA,"FromNever");function*SA(e,t,r,n){sr(e.not,t,r,n).next().done===!0&&(yield ie(N.Not,e,r,n))}o(SA,"FromNot");function*wA(e,t,r,n){Ei(n)||(yield ie(N.Null,e,r,n))}o(wA,"FromNull");function*AA(e,t,r,n){if(!Qe.IsNumberLike(n))return yield ie(N.Number,e,r,n);_e(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield ie(N.NumberExclusiveMaximum,e,r,n)),_e(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield ie(N.NumberExclusiveMinimum,e,r,n)),_e(e.maximum)&&!(n<=e.maximum)&&(yield ie(N.NumberMaximum,e,r,n)),_e(e.minimum)&&!(n>=e.minimum)&&(yield ie(N.NumberMinimum,e,r,n)),_e(e.multipleOf)&&n%e.multipleOf!==0&&(yield ie(N.NumberMultipleOf,e,r,n))}o(AA,"FromNumber");function*FA(e,t,r,n){if(!Qe.IsObjectLike(n))return yield ie(N.Object,e,r,n);_e(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)&&(yield ie(N.ObjectMinProperties,e,r,n)),_e(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)&&(yield ie(N.ObjectMaxProperties,e,r,n));let i=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),u=Object.getOwnPropertyNames(n);for(let s of i)u.includes(s)||(yield ie(N.ObjectRequiredProperty,e.properties[s],"".concat(r,"/").concat(Mi(s)),void 0));if(e.additionalProperties===!1)for(let s of u)a.includes(s)||(yield ie(N.ObjectAdditionalProperties,e,"".concat(r,"/").concat(Mi(s)),n[s]));if(typeof e.additionalProperties=="object")for(let s of u)a.includes(s)||(yield*X(sr(e.additionalProperties,t,"".concat(r,"/").concat(Mi(s)),n[s])));for(let s of a){let d=e.properties[s];e.required&&e.required.includes(s)?(yield*X(sr(d,t,"".concat(r,"/").concat(Mi(s)),n[s])),Bi(e)&&!(s in n)&&(yield ie(N.ObjectRequiredProperty,d,"".concat(r,"/").concat(Mi(s)),void 0))):Qe.IsExactOptionalProperty(n,s)&&(yield*X(sr(d,t,"".concat(r,"/").concat(Mi(s)),n[s])))}}o(FA,"FromObject");function*OA(e,t,r,n){yl(n)||(yield ie(N.Promise,e,r,n))}o(OA,"FromPromise");function*PA(e,t,r,n){if(!Qe.IsRecordLike(n))return yield ie(N.Object,e,r,n);_e(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)&&(yield ie(N.ObjectMinProperties,e,r,n)),_e(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)&&(yield ie(N.ObjectMaxProperties,e,r,n));let[i,a]=Object.entries(e.patternProperties)[0],u=new RegExp(i);for(let[s,d]of Object.entries(n))u.test(s)&&(yield*X(sr(a,t,"".concat(r,"/").concat(Mi(s)),d)));if(typeof e.additionalProperties=="object")for(let[s,d]of Object.entries(n))u.test(s)||(yield*X(sr(e.additionalProperties,t,"".concat(r,"/").concat(Mi(s)),d)));if(e.additionalProperties===!1){for(let[s,d]of Object.entries(n))if(!u.test(s))return yield ie(N.ObjectAdditionalProperties,e,"".concat(r,"/").concat(Mi(s)),d)}}o(PA,"FromRecord");function*BA(e,t,r,n){yield*X(sr(Ze(e,t),t,r,n))}o(BA,"FromRef");function*MA(e,t,r,n){if(!Ue(n))return yield ie(N.String,e,r,n);if(_e(e.minLength)&&!(n.length>=e.minLength)&&(yield ie(N.StringMinLength,e,r,n)),_e(e.maxLength)&&!(n.length<=e.maxLength)&&(yield ie(N.StringMaxLength,e,r,n)),!new RegExp(e.source,e.flags).test(n))return yield ie(N.RegExp,e,r,n)}o(MA,"FromRegExp");function*TA(e,t,r,n){if(!Ue(n))return yield ie(N.String,e,r,n);_e(e.minLength)&&!(n.length>=e.minLength)&&(yield ie(N.StringMinLength,e,r,n)),_e(e.maxLength)&&!(n.length<=e.maxLength)&&(yield ie(N.StringMaxLength,e,r,n)),Ue(e.pattern)&&(new RegExp(e.pattern).test(n)||(yield ie(N.StringPattern,e,r,n))),Ue(e.format)&&(Pr.Has(e.format)?Pr.Get(e.format)(n)||(yield ie(N.StringFormat,e,r,n)):yield ie(N.StringFormatUnknown,e,r,n))}o(TA,"FromString");function*kA(e,t,r,n){Ii(n)||(yield ie(N.Symbol,e,r,n))}o(kA,"FromSymbol");function*_A(e,t,r,n){if(!Ue(n))return yield ie(N.String,e,r,n);new RegExp(e.pattern).test(n)||(yield ie(N.StringPattern,e,r,n))}o(_A,"FromTemplateLiteral");function*LA(e,t,r,n){yield*X(sr(Ze(e,t),t,r,n))}o(LA,"FromThis");function*RA(e,t,r,n){if(!Ie(n))return yield ie(N.Tuple,e,r,n);if(e.items===void 0&&n.length!==0)return yield ie(N.TupleLength,e,r,n);if(n.length!==e.maxItems)return yield ie(N.TupleLength,e,r,n);if(e.items)for(let i=0;i<e.items.length;i++)yield*X(sr(e.items[i],t,"".concat(r,"/").concat(i),n[i]))}o(RA,"FromTuple");function*NA(e,t,r,n){Ct(n)||(yield ie(N.Undefined,e,r,n))}o(NA,"FromUndefined");function*UA(e,t,r,n){if(Be(e,t,n))return;let i=e.anyOf.map(a=>new dn(sr(a,t,r,n)));yield ie(N.Union,e,r,n,i)}o(UA,"FromUnion");function*jA(e,t,r,n){if(!_a(n))return yield ie(N.Uint8Array,e,r,n);_e(e.maxByteLength)&&!(n.length<=e.maxByteLength)&&(yield ie(N.Uint8ArrayMaxByteLength,e,r,n)),_e(e.minByteLength)&&!(n.length>=e.minByteLength)&&(yield ie(N.Uint8ArrayMinByteLength,e,r,n))}o(jA,"FromUint8Array");function*zA(e,t,r,n){}o(zA,"FromUnknown");function*$A(e,t,r,n){Qe.IsVoidLike(n)||(yield ie(N.Void,e,r,n))}o($A,"FromVoid");function*GA(e,t,r,n){Gt.Get(e[_])(e,n)||(yield ie(N.Kind,e,r,n))}o(GA,"FromKind");function*sr(e,t,r,n){let i=_e(e.$id)?[...t,e]:t,a=e;switch(a[_]){case"Any":return yield*X(mA(a,i,r,n));case"Array":return yield*X(pA(a,i,r,n));case"AsyncIterator":return yield*X(fA(a,i,r,n));case"BigInt":return yield*X(hA(a,i,r,n));case"Boolean":return yield*X(gA(a,i,r,n));case"Constructor":return yield*X(yA(a,i,r,n));case"Date":return yield*X(bA(a,i,r,n));case"Function":return yield*X(vA(a,i,r,n));case"Integer":return yield*X(xA(a,i,r,n));case"Intersect":return yield*X(EA(a,i,r,n));case"Iterator":return yield*X(IA(a,i,r,n));case"Literal":return yield*X(CA(a,i,r,n));case"Never":return yield*X(DA(a,i,r,n));case"Not":return yield*X(SA(a,i,r,n));case"Null":return yield*X(wA(a,i,r,n));case"Number":return yield*X(AA(a,i,r,n));case"Object":return yield*X(FA(a,i,r,n));case"Promise":return yield*X(OA(a,i,r,n));case"Record":return yield*X(PA(a,i,r,n));case"Ref":return yield*X(BA(a,i,r,n));case"RegExp":return yield*X(MA(a,i,r,n));case"String":return yield*X(TA(a,i,r,n));case"Symbol":return yield*X(kA(a,i,r,n));case"TemplateLiteral":return yield*X(_A(a,i,r,n));case"This":return yield*X(LA(a,i,r,n));case"Tuple":return yield*X(RA(a,i,r,n));case"Undefined":return yield*X(NA(a,i,r,n));case"Union":return yield*X(UA(a,i,r,n));case"Uint8Array":return yield*X(jA(a,i,r,n));case"Unknown":return yield*X(zA(a,i,r,n));case"Void":return yield*X($A(a,i,r,n));default:if(!Gt.Has(a[_]))throw new I0(e);return yield*X(GA(a,i,r,n))}}o(sr,"Visit");function ti(...e){let t=e.length===3?sr(e[0],e[1],"",e[2]):sr(e[0],[],"",e[1]);return new dn(t)}o(ti,"Errors");l();l();var ZA=function(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r},Mv=function(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)},S0,Jl,Tv,A0=class A0 extends he{constructor(t){let r=t.First();super(r===void 0?"Invalid Value":r.message),S0.add(this),Jl.set(this,void 0),ZA(this,Jl,t,"f"),this.error=r}Errors(){return new dn(Mv(this,S0,"m",Tv).call(this))}};o(A0,"AssertError");var w0=A0;Jl=new WeakMap,S0=new WeakSet,Tv=o(function*(){this.error&&(yield this.error),yield*X(Mv(this,Jl,"f"))},"_AssertError_Iterator");function Bv(e,t,r){if(!Be(e,t,r))throw new w0(ti(e,t,r))}o(Bv,"AssertValue");function Xl(...e){return e.length===3?Bv(e[0],e[1],e[2]):Bv(e[0],[],e[1])}o(Xl,"Assert");l();l();l();function VA(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=Ve(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=Ve(e[r]);return t}o(VA,"FromObject");function WA(e){return e.map(t=>Ve(t))}o(WA,"FromArray");function HA(e){return e.slice()}o(HA,"FromTypedArray");function KA(e){return new Map(Ve([...e.entries()]))}o(KA,"FromMap");function qA(e){return new Set(Ve([...e.entries()]))}o(qA,"FromSet");function JA(e){return new Date(e.toISOString())}o(JA,"FromDate");function Ve(e){if(Ie(e))return WA(e);if(Fr(e))return JA(e);if(rn(e))return HA(e);if(gb(e))return KA(e);if(yb(e))return qA(e);if(we(e))return VA(e);if(or(e))return e;throw new Error("ValueClone: Unable to clone value")}o(Ve,"Clone");var F0=class F0 extends he{constructor(t,r){super(r),this.schema=t}};o(F0,"ValueCreateError");var qr=F0;function We(e){return io(e)?e():Ve(e)}o(We,"FromDefault");function XA(e,t){return ye(e,"default")?We(e.default):{}}o(XA,"FromAny");function YA(e,t){if(e.uniqueItems===!0&&!ye(e,"default"))throw new qr(e,"Array with the uniqueItems constraint requires a default value");if("contains"in e&&!ye(e,"default"))throw new qr(e,"Array with the contains constraint requires a default value");return"default"in e?We(e.default):e.minItems!==void 0?Array.from({length:e.minItems}).map(r=>Jr(e.items,t)):[]}o(YA,"FromArray");function QA(e,t){return ye(e,"default")?We(e.default):function(){return jy(this,null,function*(){})}()}o(QA,"FromAsyncIterator");function e5(e,t){return ye(e,"default")?We(e.default):BigInt(0)}o(e5,"FromBigInt");function t5(e,t){return ye(e,"default")?We(e.default):!1}o(t5,"FromBoolean");function r5(e,t){if(ye(e,"default"))return We(e.default);{let r=Jr(e.returns,t);return typeof r=="object"&&!Array.isArray(r)?class{constructor(){for(let[n,i]of Object.entries(r)){let a=this;a[n]=i}}}:class{}}}o(r5,"FromConstructor");function n5(e,t){return ye(e,"default")?We(e.default):e.minimumTimestamp!==void 0?new Date(e.minimumTimestamp):new Date}o(n5,"FromDate");function i5(e,t){return ye(e,"default")?We(e.default):()=>Jr(e.returns,t)}o(i5,"FromFunction");function o5(e,t){return ye(e,"default")?We(e.default):e.minimum!==void 0?e.minimum:0}o(o5,"FromInteger");function a5(e,t){if(ye(e,"default"))return We(e.default);{let r=e.allOf.reduce((n,i)=>{let a=Jr(i,t);return typeof a=="object"?R(R({},n),a):a},{});if(!Be(e,t,r))throw new qr(e,"Intersect produced invalid value. Consider using a default value.");return r}}o(a5,"FromIntersect");function u5(e,t){return ye(e,"default")?We(e.default):function*(){}()}o(u5,"FromIterator");function s5(e,t){return ye(e,"default")?We(e.default):e.const}o(s5,"FromLiteral");function c5(e,t){if(ye(e,"default"))return We(e.default);throw new qr(e,"Never types cannot be created. Consider using a default value.")}o(c5,"FromNever");function l5(e,t){if(ye(e,"default"))return We(e.default);throw new qr(e,"Not types must have a default value")}o(l5,"FromNot");function d5(e,t){return ye(e,"default")?We(e.default):null}o(d5,"FromNull");function m5(e,t){return ye(e,"default")?We(e.default):e.minimum!==void 0?e.minimum:0}o(m5,"FromNumber");function p5(e,t){if(ye(e,"default"))return We(e.default);{let r=new Set(e.required),n={};for(let[i,a]of Object.entries(e.properties))r.has(i)&&(n[i]=Jr(a,t));return n}}o(p5,"FromObject");function f5(e,t){return ye(e,"default")?We(e.default):Promise.resolve(Jr(e.item,t))}o(f5,"FromPromise");function h5(e,t){let[r,n]=Object.entries(e.patternProperties)[0];if(ye(e,"default"))return We(e.default);if(r===Ai||r===wi)return{};{let i=r.slice(1,r.length-1).split("|"),a={};for(let u of i)a[u]=Jr(n,t);return a}}o(h5,"FromRecord");function g5(e,t){return ye(e,"default")?We(e.default):Jr(Ze(e,t),t)}o(g5,"FromRef");function y5(e,t){if(ye(e,"default"))return We(e.default);throw new qr(e,"RegExp types cannot be created. Consider using a default value.")}o(y5,"FromRegExp");function b5(e,t){if(e.pattern!==void 0){if(ye(e,"default"))return We(e.default);throw new qr(e,"String types with patterns must specify a default value")}else if(e.format!==void 0){if(ye(e,"default"))return We(e.default);throw new qr(e,"String types with formats must specify a default value")}else return ye(e,"default")?We(e.default):e.minLength!==void 0?Array.from({length:e.minLength}).map(()=>" ").join(""):""}o(b5,"FromString");function v5(e,t){return ye(e,"default")?We(e.default):"value"in e?Symbol.for(e.value):Symbol()}o(v5,"FromSymbol");function x5(e,t){if(ye(e,"default"))return We(e.default);if(!Cl(e))throw new qr(e,"Can only create template literals that produce a finite variants. Consider using a default value.");return $a(e)[0]}o(x5,"FromTemplateLiteral");function E5(e,t){if(kv++>O5)throw new qr(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");return ye(e,"default")?We(e.default):Jr(Ze(e,t),t)}o(E5,"FromThis");function I5(e,t){return ye(e,"default")?We(e.default):e.items===void 0?[]:Array.from({length:e.minItems}).map((r,n)=>Jr(e.items[n],t))}o(I5,"FromTuple");function C5(e,t){if(ye(e,"default"))return We(e.default)}o(C5,"FromUndefined");function D5(e,t){if(ye(e,"default"))return We(e.default);if(e.anyOf.length===0)throw new Error("ValueCreate.Union: Cannot create Union with zero variants");return Jr(e.anyOf[0],t)}o(D5,"FromUnion");function S5(e,t){return ye(e,"default")?We(e.default):e.minByteLength!==void 0?new Uint8Array(e.minByteLength):new Uint8Array(0)}o(S5,"FromUint8Array");function w5(e,t){return ye(e,"default")?We(e.default):{}}o(w5,"FromUnknown");function A5(e,t){if(ye(e,"default"))return We(e.default)}o(A5,"FromVoid");function F5(e,t){if(ye(e,"default"))return We(e.default);throw new Error("User defined types must specify a default value")}o(F5,"FromKind");function Jr(e,t){let r=ln(e,t),n=e;switch(n[_]){case"Any":return XA(n,r);case"Array":return YA(n,r);case"AsyncIterator":return QA(n,r);case"BigInt":return e5(n,r);case"Boolean":return t5(n,r);case"Constructor":return r5(n,r);case"Date":return n5(n,r);case"Function":return i5(n,r);case"Integer":return o5(n,r);case"Intersect":return a5(n,r);case"Iterator":return u5(n,r);case"Literal":return s5(n,r);case"Never":return c5(n,r);case"Not":return l5(n,r);case"Null":return d5(n,r);case"Number":return m5(n,r);case"Object":return p5(n,r);case"Promise":return f5(n,r);case"Record":return h5(n,r);case"Ref":return g5(n,r);case"RegExp":return y5(n,r);case"String":return b5(n,r);case"Symbol":return v5(n,r);case"TemplateLiteral":return x5(n,r);case"This":return E5(n,r);case"Tuple":return I5(n,r);case"Undefined":return C5(n,r);case"Union":return D5(n,r);case"Uint8Array":return S5(n,r);case"Unknown":return w5(n,r);case"Void":return A5(n,r);default:if(!Gt.Has(n[_]))throw new qr(n,"Unknown type");return F5(n,r)}}o(Jr,"Visit");var O5=512,kv=0;function mn(...e){return kv=0,e.length===2?Jr(e[0],e[1]):Jr(e[0],[])}o(mn,"Create");var P0=class P0 extends he{constructor(t,r){super(r),this.schema=t}};o(P0,"ValueCastError");var Yl=P0;function P5(e,t,r){if(e[_]==="Object"&&typeof r=="object"&&!Ei(r)){let n=e,i=Object.getOwnPropertyNames(r),a=Object.entries(n.properties),[u,s]=[1/a.length,a.length];return a.reduce((d,[m,f])=>{let g=f[_]==="Literal"&&f.const===r[m]?s:0,b=Be(f,t,r[m])?u:0,v=i.includes(m)?u:0;return d+(g+b+v)},0)}else return Be(e,t,r)?1:0}o(P5,"ScoreUnion");function B5(e,t,r){let n=e.anyOf.map(u=>Ze(u,t)),[i,a]=[n[0],0];for(let u of n){let s=P5(u,t,r);s>a&&(i=u,a=s)}return i}o(B5,"SelectUnion");function M5(e,t,r){if("default"in e)return typeof r=="function"?e.default:Ve(e.default);{let n=B5(e,t,r);return O0(n,t,r)}}o(M5,"CastUnion");function T5(e,t,r){return Be(e,t,r)?Ve(r):mn(e,t)}o(T5,"DefaultClone");function k5(e,t,r){return Be(e,t,r)?r:mn(e,t)}o(k5,"Default");function _5(e,t,r){if(Be(e,t,r))return Ve(r);let n=Ie(r)?Ve(r):mn(e,t),i=me(e.minItems)&&n.length<e.minItems?[...n,...Array.from({length:e.minItems-n.length},()=>null)]:n,u=(me(e.maxItems)&&i.length>e.maxItems?i.slice(0,e.maxItems):i).map(d=>ri(e.items,t,d));if(e.uniqueItems!==!0)return u;let s=[...new Set(u)];if(!Be(e,t,s))throw new Yl(e,"Array cast produced invalid data due to uniqueItems constraint");return s}o(_5,"FromArray");function L5(e,t,r){if(Be(e,t,r))return mn(e,t);let n=new Set(e.returns.required||[]),i=o(function(){},"result");for(let[a,u]of Object.entries(e.returns.properties))!n.has(a)&&r.prototype[a]===void 0||(i.prototype[a]=ri(u,t,r.prototype[a]));return i}o(L5,"FromConstructor");function R5(e,t,r){let n=mn(e,t),i=we(n)&&we(r)?R(R({},n),r):r;return Be(e,t,i)?i:mn(e,t)}o(R5,"FromIntersect");function N5(e,t,r){throw new Yl(e,"Never types cannot be cast")}o(N5,"FromNever");function U5(e,t,r){if(Be(e,t,r))return r;if(r===null||typeof r!="object")return mn(e,t);let n=new Set(e.required||[]),i={};for(let[a,u]of Object.entries(e.properties))!n.has(a)&&r[a]===void 0||(i[a]=ri(u,t,r[a]));if(typeof e.additionalProperties=="object"){let a=Object.getOwnPropertyNames(e.properties);for(let u of Object.getOwnPropertyNames(r))a.includes(u)||(i[u]=ri(e.additionalProperties,t,r[u]))}return i}o(U5,"FromObject");function j5(e,t,r){if(Be(e,t,r))return Ve(r);if(r===null||typeof r!="object"||Array.isArray(r)||r instanceof Date)return mn(e,t);let n=Object.getOwnPropertyNames(e.patternProperties)[0],i=e.patternProperties[n],a={};for(let[u,s]of Object.entries(r))a[u]=ri(i,t,s);return a}o(j5,"FromRecord");function z5(e,t,r){return ri(Ze(e,t),t,r)}o(z5,"FromRef");function $5(e,t,r){return ri(Ze(e,t),t,r)}o($5,"FromThis");function G5(e,t,r){return Be(e,t,r)?Ve(r):Ie(r)?e.items===void 0?[]:e.items.map((n,i)=>ri(n,t,r[i])):mn(e,t)}o(G5,"FromTuple");function Z5(e,t,r){return Be(e,t,r)?Ve(r):M5(e,t,r)}o(Z5,"FromUnion");function ri(e,t,r){let n=Ue(e.$id)?[...t,e]:t,i=e;switch(e[_]){case"Array":return _5(i,n,r);case"Constructor":return L5(i,n,r);case"Intersect":return R5(i,n,r);case"Never":return N5(i,n,r);case"Object":return U5(i,n,r);case"Record":return j5(i,n,r);case"Ref":return z5(i,n,r);case"This":return $5(i,n,r);case"Tuple":return G5(i,n,r);case"Union":return Z5(i,n,r);case"Date":case"Symbol":case"Uint8Array":return T5(e,t,r);default:return k5(i,n,r)}}o(ri,"Visit");function O0(...e){return e.length===3?ri(e[0],e[1],e[2]):ri(e[0],[],e[1])}o(O0,"Cast");l();function V5(e){return ao(e)&&e[_]!=="Unsafe"}o(V5,"IsCheckable");function W5(e,t,r){return Ie(r)?r.map(n=>Xr(e.items,t,n)):r}o(W5,"FromArray");function H5(e,t,r){let n=e.unevaluatedProperties,a=e.allOf.map(s=>Xr(s,t,Ve(r))).reduce((s,d)=>we(d)?R(R({},s),d):d,{});if(!we(r)||!we(a)||!ao(n))return a;let u=Xt(e);for(let s of Object.getOwnPropertyNames(r))u.includes(s)||Be(n,t,r[s])&&(a[s]=Xr(n,t,r[s]));return a}o(H5,"FromIntersect");function K5(e,t,r){if(!we(r)||Ie(r))return r;let n=e.additionalProperties;for(let i of Object.getOwnPropertyNames(r)){if(ye(e.properties,i)){r[i]=Xr(e.properties[i],t,r[i]);continue}if(ao(n)&&Be(n,t,r[i])){r[i]=Xr(n,t,r[i]);continue}delete r[i]}return r}o(K5,"FromObject");function q5(e,t,r){if(!we(r))return r;let n=e.additionalProperties,i=Object.getOwnPropertyNames(r),[a,u]=Object.entries(e.patternProperties)[0],s=new RegExp(a);for(let d of i){if(s.test(d)){r[d]=Xr(u,t,r[d]);continue}if(ao(n)&&Be(n,t,r[d])){r[d]=Xr(n,t,r[d]);continue}delete r[d]}return r}o(q5,"FromRecord");function J5(e,t,r){return Xr(Ze(e,t),t,r)}o(J5,"FromRef");function X5(e,t,r){return Xr(Ze(e,t),t,r)}o(X5,"FromThis");function Y5(e,t,r){if(!Ie(r))return r;if(Ct(e.items))return[];let n=Math.min(r.length,e.items.length);for(let i=0;i<n;i++)r[i]=Xr(e.items[i],t,r[i]);return r.length>n?r.slice(0,n):r}o(Y5,"FromTuple");function Q5(e,t,r){for(let n of e.anyOf)if(V5(n)&&Be(n,t,r))return Xr(n,t,r);return r}o(Q5,"FromUnion");function Xr(e,t,r){let n=Ue(e.$id)?[...t,e]:t,i=e;switch(i[_]){case"Array":return W5(i,n,r);case"Intersect":return H5(i,n,r);case"Object":return K5(i,n,r);case"Record":return q5(i,n,r);case"Ref":return J5(i,n,r);case"This":return X5(i,n,r);case"Tuple":return Y5(i,n,r);case"Union":return Q5(i,n,r);default:return r}}o(Xr,"Visit");function Ql(...e){return e.length===3?Xr(e[0],e[1],e[2]):Xr(e[0],[],e[1])}o(Ql,"Clean");l();function ed(e){return Ue(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}o(ed,"IsStringNumeric");function eF(e){return ir(e)||Jn(e)||me(e)}o(eF,"IsValueToString");function Ss(e){return e===!0||me(e)&&e===1||ir(e)&&e===BigInt("1")||Ue(e)&&(e.toLowerCase()==="true"||e==="1")}o(Ss,"IsValueTrue");function ws(e){return e===!1||me(e)&&(e===0||Object.is(e,-0))||ir(e)&&e===BigInt("0")||Ue(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}o(ws,"IsValueFalse");function tF(e){return Ue(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(tF,"IsTimeStringWithTimeZone");function rF(e){return Ue(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(rF,"IsTimeStringWithoutTimeZone");function nF(e){return Ue(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(nF,"IsDateTimeStringWithTimeZone");function iF(e){return Ue(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(iF,"IsDateTimeStringWithoutTimeZone");function oF(e){return Ue(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}o(oF,"IsDateString");function aF(e,t){let r=Lv(e);return r===t?r:e}o(aF,"TryConvertLiteralString");function uF(e,t){let r=Rv(e);return r===t?r:e}o(uF,"TryConvertLiteralNumber");function sF(e,t){let r=_v(e);return r===t?r:e}o(sF,"TryConvertLiteralBoolean");function cF(e,t){return Ue(e.const)?aF(t,e.const):me(e.const)?uF(t,e.const):Jn(e.const)?sF(t,e.const):t}o(cF,"TryConvertLiteral");function _v(e){return Ss(e)?!0:ws(e)?!1:e}o(_v,"TryConvertBoolean");function lF(e){let t=o(r=>r.split(".")[0],"truncateInteger");return ed(e)?BigInt(t(e)):me(e)?BigInt(Math.trunc(e)):ws(e)?BigInt(0):Ss(e)?BigInt(1):e}o(lF,"TryConvertBigInt");function Lv(e){return eF(e)?e.toString():Ii(e)&&e.description!==void 0?e.description.toString():e}o(Lv,"TryConvertString");function Rv(e){return ed(e)?parseFloat(e):Ss(e)?1:ws(e)?0:e}o(Rv,"TryConvertNumber");function dF(e){return ed(e)?parseInt(e):me(e)?e|0:Ss(e)?1:ws(e)?0:e}o(dF,"TryConvertInteger");function mF(e){return Ue(e)&&e.toLowerCase()==="null"?null:e}o(mF,"TryConvertNull");function pF(e){return Ue(e)&&e==="undefined"?void 0:e}o(pF,"TryConvertUndefined");function fF(e){return Fr(e)?e:me(e)?new Date(e):Ss(e)?new Date(1):ws(e)?new Date(0):ed(e)?new Date(parseInt(e)):rF(e)?new Date("1970-01-01T".concat(e,".000Z")):tF(e)?new Date("1970-01-01T".concat(e)):iF(e)?new Date("".concat(e,".000Z")):nF(e)?new Date(e):oF(e)?new Date("".concat(e,"T00:00:00.000Z")):e}o(fF,"TryConvertDate");function hF(e,t,r){return(Ie(r)?r:[r]).map(i=>ni(e.items,t,i))}o(hF,"FromArray");function gF(e,t,r){return lF(r)}o(gF,"FromBigInt");function yF(e,t,r){return _v(r)}o(yF,"FromBoolean");function bF(e,t,r){return fF(r)}o(bF,"FromDate");function vF(e,t,r){return dF(r)}o(vF,"FromInteger");function xF(e,t,r){return e.allOf.reduce((n,i)=>ni(i,t,n),r)}o(xF,"FromIntersect");function EF(e,t,r){return cF(e,r)}o(EF,"FromLiteral");function IF(e,t,r){return mF(r)}o(IF,"FromNull");function CF(e,t,r){return Rv(r)}o(CF,"FromNumber");function DF(e,t,r){if(!we(r))return r;for(let n of Object.getOwnPropertyNames(e.properties))ye(r,n)&&(r[n]=ni(e.properties[n],t,r[n]));return r}o(DF,"FromObject");function SF(e,t,r){if(!we(r))return r;let i=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[i];for(let[u,s]of Object.entries(r))r[u]=ni(a,t,s);return r}o(SF,"FromRecord");function wF(e,t,r){return ni(Ze(e,t),t,r)}o(wF,"FromRef");function AF(e,t,r){return Lv(r)}o(AF,"FromString");function FF(e,t,r){return Ue(r)||me(r)?Symbol(r):r}o(FF,"FromSymbol");function OF(e,t,r){return ni(Ze(e,t),t,r)}o(OF,"FromThis");function PF(e,t,r){return Ie(r)&&!Ct(e.items)?r.map((i,a)=>a<e.items.length?ni(e.items[a],t,i):i):r}o(PF,"FromTuple");function BF(e,t,r){return pF(r)}o(BF,"FromUndefined");function MF(e,t,r){for(let n of e.anyOf){let i=ni(n,t,Ve(r));if(Be(n,t,i))return i}return r}o(MF,"FromUnion");function ni(e,t,r){let n=ln(e,t),i=e;switch(e[_]){case"Array":return hF(i,n,r);case"BigInt":return gF(i,n,r);case"Boolean":return yF(i,n,r);case"Date":return bF(i,n,r);case"Integer":return vF(i,n,r);case"Intersect":return xF(i,n,r);case"Literal":return EF(i,n,r);case"Null":return IF(i,n,r);case"Number":return CF(i,n,r);case"Object":return DF(i,n,r);case"Record":return SF(i,n,r);case"Ref":return wF(i,n,r);case"String":return AF(i,n,r);case"Symbol":return FF(i,n,r);case"This":return OF(i,n,r);case"Tuple":return PF(i,n,r);case"Undefined":return BF(i,n,r);case"Union":return MF(i,n,r);default:return r}}o(ni,"Visit");function td(...e){return e.length===3?ni(e[0],e[1],e[2]):ni(e[0],[],e[1])}o(td,"Convert");l();l();var B0=class B0 extends he{constructor(t,r,n){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=r,this.error=n}};o(B0,"TransformDecodeCheckError");var iu=B0,M0=class M0 extends he{constructor(t,r,n,i){super(i instanceof Error?i.message:"Unknown error"),this.schema=t,this.path=r,this.value=n,this.error=i}};o(M0,"TransformDecodeError");var qo=M0;function Dt(e,t,r){try{return ht(e)?e[yt].Decode(r):r}catch(n){throw new qo(e,t,r,n)}}o(Dt,"Default");function TF(e,t,r,n){return Ie(n)?Dt(e,r,n.map((i,a)=>ii(e.items,t,"".concat(r,"/").concat(a),i))):Dt(e,r,n)}o(TF,"FromArray");function kF(e,t,r,n){if(!we(n)||or(n))return Dt(e,r,n);let i=co(e),a=i.map(f=>f[0]),u=R({},n);for(let[f,g]of i)f in u&&(u[f]=ii(g,t,"".concat(r,"/").concat(f),u[f]));if(!ht(e.unevaluatedProperties))return Dt(e,r,u);let s=Object.getOwnPropertyNames(u),d=e.unevaluatedProperties,m=R({},u);for(let f of s)a.includes(f)||(m[f]=Dt(d,"".concat(r,"/").concat(f),m[f]));return Dt(e,r,m)}o(kF,"FromIntersect");function _F(e,t,r,n){return Dt(e,r,ii(e.not,t,r,n))}o(_F,"FromNot");function LF(e,t,r,n){if(!we(n))return Dt(e,r,n);let i=Xt(e),a=R({},n);for(let m of i)ye(a,m)&&(Ct(a[m])&&(!Ra(e.properties[m])||Qe.IsExactOptionalProperty(a,m))||(a[m]=ii(e.properties[m],t,"".concat(r,"/").concat(m),a[m])));if(!je(e.additionalProperties))return Dt(e,r,a);let u=Object.getOwnPropertyNames(a),s=e.additionalProperties,d=R({},a);for(let m of u)i.includes(m)||(d[m]=Dt(s,"".concat(r,"/").concat(m),d[m]));return Dt(e,r,d)}o(LF,"FromObject");function RF(e,t,r,n){if(!we(n))return Dt(e,r,n);let i=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(i),u=R({},n);for(let f of Object.getOwnPropertyNames(n))a.test(f)&&(u[f]=ii(e.patternProperties[i],t,"".concat(r,"/").concat(f),u[f]));if(!je(e.additionalProperties))return Dt(e,r,u);let s=Object.getOwnPropertyNames(u),d=e.additionalProperties,m=R({},u);for(let f of s)a.test(f)||(m[f]=Dt(d,"".concat(r,"/").concat(f),m[f]));return Dt(e,r,m)}o(RF,"FromRecord");function NF(e,t,r,n){let i=Ze(e,t);return Dt(e,r,ii(i,t,r,n))}o(NF,"FromRef");function UF(e,t,r,n){let i=Ze(e,t);return Dt(e,r,ii(i,t,r,n))}o(UF,"FromThis");function jF(e,t,r,n){return Ie(n)&&Ie(e.items)?Dt(e,r,e.items.map((i,a)=>ii(i,t,"".concat(r,"/").concat(a),n[a]))):Dt(e,r,n)}o(jF,"FromTuple");function zF(e,t,r,n){for(let i of e.anyOf){if(!Be(i,t,n))continue;let a=ii(i,t,r,n);return Dt(e,r,a)}return Dt(e,r,n)}o(zF,"FromUnion");function ii(e,t,r,n){let i=ln(e,t),a=e;switch(e[_]){case"Array":return TF(a,i,r,n);case"Intersect":return kF(a,i,r,n);case"Not":return _F(a,i,r,n);case"Object":return LF(a,i,r,n);case"Record":return RF(a,i,r,n);case"Ref":return NF(a,i,r,n);case"Symbol":return Dt(a,r,n);case"This":return UF(a,i,r,n);case"Tuple":return jF(a,i,r,n);case"Union":return zF(a,i,r,n);default:return Dt(a,r,n)}}o(ii,"Visit");function ou(e,t,r){return ii(e,t,"",r)}o(ou,"TransformDecode");l();var T0=class T0 extends he{constructor(t,r,n){super("The encoded value does not match the expected schema"),this.schema=t,this.value=r,this.error=n}};o(T0,"TransformEncodeCheckError");var au=T0,k0=class k0 extends he{constructor(t,r,n,i){super("".concat(i instanceof Error?i.message:"Unknown error")),this.schema=t,this.path=r,this.value=n,this.error=i}};o(k0,"TransformEncodeError");var Jo=k0;function xr(e,t,r){try{return ht(e)?e[yt].Encode(r):r}catch(n){throw new Jo(e,t,r,n)}}o(xr,"Default");function $F(e,t,r,n){let i=xr(e,r,n);return Ie(i)?i.map((a,u)=>oi(e.items,t,"".concat(r,"/").concat(u),a)):i}o($F,"FromArray");function GF(e,t,r,n){let i=xr(e,r,n);if(!we(n)||or(n))return i;let a=co(e),u=a.map(g=>g[0]),s=R({},i);for(let[g,b]of a)g in s&&(s[g]=oi(b,t,"".concat(r,"/").concat(g),s[g]));if(!ht(e.unevaluatedProperties))return s;let d=Object.getOwnPropertyNames(s),m=e.unevaluatedProperties,f=R({},s);for(let g of d)u.includes(g)||(f[g]=xr(m,"".concat(r,"/").concat(g),f[g]));return f}o(GF,"FromIntersect");function ZF(e,t,r,n){return xr(e.not,r,xr(e,r,n))}o(ZF,"FromNot");function VF(e,t,r,n){let i=xr(e,r,n);if(!we(i))return i;let a=Xt(e),u=R({},i);for(let f of a)ye(u,f)&&(Ct(u[f])&&(!Ra(e.properties[f])||Qe.IsExactOptionalProperty(u,f))||(u[f]=oi(e.properties[f],t,"".concat(r,"/").concat(f),u[f])));if(!je(e.additionalProperties))return u;let s=Object.getOwnPropertyNames(u),d=e.additionalProperties,m=R({},u);for(let f of s)a.includes(f)||(m[f]=xr(d,"".concat(r,"/").concat(f),m[f]));return m}o(VF,"FromObject");function WF(e,t,r,n){let i=xr(e,r,n);if(!we(n))return i;let a=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(a),s=R({},i);for(let g of Object.getOwnPropertyNames(n))u.test(g)&&(s[g]=oi(e.patternProperties[a],t,"".concat(r,"/").concat(g),s[g]));if(!je(e.additionalProperties))return s;let d=Object.getOwnPropertyNames(s),m=e.additionalProperties,f=R({},s);for(let g of d)u.test(g)||(f[g]=xr(m,"".concat(r,"/").concat(g),f[g]));return f}o(WF,"FromRecord");function HF(e,t,r,n){let i=Ze(e,t),a=oi(i,t,r,n);return xr(e,r,a)}o(HF,"FromRef");function KF(e,t,r,n){let i=Ze(e,t),a=oi(i,t,r,n);return xr(e,r,a)}o(KF,"FromThis");function qF(e,t,r,n){let i=xr(e,r,n);return Ie(e.items)?e.items.map((a,u)=>oi(a,t,"".concat(r,"/").concat(u),i[u])):[]}o(qF,"FromTuple");function JF(e,t,r,n){for(let i of e.anyOf){if(!Be(i,t,n))continue;let a=oi(i,t,r,n);return xr(e,r,a)}for(let i of e.anyOf){let a=oi(i,t,r,n);if(Be(e,t,a))return xr(e,r,a)}return xr(e,r,n)}o(JF,"FromUnion");function oi(e,t,r,n){let i=ln(e,t),a=e;switch(e[_]){case"Array":return $F(a,i,r,n);case"Intersect":return GF(a,i,r,n);case"Not":return ZF(a,i,r,n);case"Object":return VF(a,i,r,n);case"Record":return WF(a,i,r,n);case"Ref":return HF(a,i,r,n);case"This":return KF(a,i,r,n);case"Tuple":return qF(a,i,r,n);case"Union":return JF(a,i,r,n);default:return xr(a,r,n)}}o(oi,"Visit");function rd(e,t,r){return oi(e,t,"",r)}o(rd,"TransformEncode");l();function XF(e,t){return ht(e)||Yt(e.items,t)}o(XF,"FromArray");function YF(e,t){return ht(e)||Yt(e.items,t)}o(YF,"FromAsyncIterator");function QF(e,t){return ht(e)||Yt(e.returns,t)||e.parameters.some(r=>Yt(r,t))}o(QF,"FromConstructor");function eO(e,t){return ht(e)||Yt(e.returns,t)||e.parameters.some(r=>Yt(r,t))}o(eO,"FromFunction");function tO(e,t){return ht(e)||ht(e.unevaluatedProperties)||e.allOf.some(r=>Yt(r,t))}o(tO,"FromIntersect");function rO(e,t){return ht(e)||Yt(e.items,t)}o(rO,"FromIterator");function nO(e,t){return ht(e)||Yt(e.not,t)}o(nO,"FromNot");function iO(e,t){return ht(e)||Object.values(e.properties).some(r=>Yt(r,t))||je(e.additionalProperties)&&Yt(e.additionalProperties,t)}o(iO,"FromObject");function oO(e,t){return ht(e)||Yt(e.item,t)}o(oO,"FromPromise");function aO(e,t){let r=Object.getOwnPropertyNames(e.patternProperties)[0],n=e.patternProperties[r];return ht(e)||Yt(n,t)||je(e.additionalProperties)&&ht(e.additionalProperties)}o(aO,"FromRecord");function uO(e,t){return ht(e)?!0:Yt(Ze(e,t),t)}o(uO,"FromRef");function sO(e,t){return ht(e)?!0:Yt(Ze(e,t),t)}o(sO,"FromThis");function cO(e,t){return ht(e)||!Ct(e.items)&&e.items.some(r=>Yt(r,t))}o(cO,"FromTuple");function lO(e,t){return ht(e)||e.anyOf.some(r=>Yt(r,t))}o(lO,"FromUnion");function Yt(e,t){let r=ln(e,t),n=e;if(e.$id&&_0.has(e.$id))return!1;switch(e.$id&&_0.add(e.$id),e[_]){case"Array":return XF(n,r);case"AsyncIterator":return YF(n,r);case"Constructor":return QF(n,r);case"Function":return eO(n,r);case"Intersect":return tO(n,r);case"Iterator":return rO(n,r);case"Not":return nO(n,r);case"Object":return iO(n,r);case"Promise":return oO(n,r);case"Record":return aO(n,r);case"Ref":return uO(n,r);case"This":return sO(n,r);case"Tuple":return cO(n,r);case"Union":return lO(n,r);default:return ht(e)}}o(Yt,"Visit");var _0=new Set;function ai(e,t){return _0.clear(),Yt(e,t)}o(ai,"HasTransform");function Nv(...e){let[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Be(t,r,n))throw new iu(t,n,ti(t,r,n).First());return ai(t,r)?ou(t,r,n):n}o(Nv,"Decode");l();function Ti(e,t){let r=ye(e,"default")?e.default:void 0,n=io(r)?r():Ve(r);return Ct(t)?n:we(t)&&we(n)?Object.assign(n,t):t}o(Ti,"ValueOrDefault");function L0(e){return ao(e)&&"default"in e}o(L0,"HasDefaultProperty");function dO(e,t,r){let n=Ti(e,r);if(!Ie(n))return n;for(let i=0;i<n.length;i++)n[i]=Yr(e.items,t,n[i]);return n}o(dO,"FromArray");function mO(e,t,r){return Fr(r)?r:Ti(e,r)}o(mO,"FromDate");function pO(e,t,r){let n=Ti(e,r);return e.allOf.reduce((i,a)=>{let u=Yr(a,t,n);return we(u)?R(R({},i),u):u},{})}o(pO,"FromIntersect");function fO(e,t,r){let n=Ti(e,r);if(!we(n))return n;let i=Object.getOwnPropertyNames(e.properties);for(let a of i){let u=Yr(e.properties[a],t,n[a]);Ct(u)||(n[a]=Yr(e.properties[a],t,n[a]))}if(!L0(e.additionalProperties))return n;for(let a of Object.getOwnPropertyNames(n))i.includes(a)||(n[a]=Yr(e.additionalProperties,t,n[a]));return n}o(fO,"FromObject");function hO(e,t,r){let n=Ti(e,r);if(!we(n))return n;let i=e.additionalProperties,[a,u]=Object.entries(e.patternProperties)[0],s=new RegExp(a);for(let d of Object.getOwnPropertyNames(n))s.test(d)&&L0(u)&&(n[d]=Yr(u,t,n[d]));if(!L0(i))return n;for(let d of Object.getOwnPropertyNames(n))s.test(d)||(n[d]=Yr(i,t,n[d]));return n}o(hO,"FromRecord");function gO(e,t,r){return Yr(Ze(e,t),t,Ti(e,r))}o(gO,"FromRef");function yO(e,t,r){return Yr(Ze(e,t),t,r)}o(yO,"FromThis");function bO(e,t,r){let n=Ti(e,r);if(!Ie(n)||Ct(e.items))return n;let[i,a]=[e.items,Math.max(e.items.length,n.length)];for(let u=0;u<a;u++)u<i.length&&(n[u]=Yr(i[u],t,n[u]));return n}o(bO,"FromTuple");function vO(e,t,r){let n=Ti(e,r);for(let i of e.anyOf){let a=Yr(i,t,Ve(n));if(Be(i,t,a))return a}return n}o(vO,"FromUnion");function Yr(e,t,r){let n=ln(e,t),i=e;switch(i[_]){case"Array":return dO(i,n,r);case"Date":return mO(i,n,r);case"Intersect":return pO(i,n,r);case"Object":return fO(i,n,r);case"Record":return hO(i,n,r);case"Ref":return gO(i,n,r);case"This":return yO(i,n,r);case"Tuple":return bO(i,n,r);case"Union":return vO(i,n,r);default:return Ti(i,r)}}o(Yr,"Visit");function nd(...e){return e.length===3?Yr(e[0],e[1],e[2]):Yr(e[0],[],e[1])}o(nd,"Default");l();l();var pn={};Ki(pn,{Delete:()=>EO,Format:()=>As,Get:()=>CO,Has:()=>IO,Set:()=>xO,ValuePointerRootDeleteError:()=>od,ValuePointerRootSetError:()=>id});l();var R0=class R0 extends he{constructor(t,r,n){super("Cannot set root value"),this.value=t,this.path=r,this.update=n}};o(R0,"ValuePointerRootSetError");var id=R0,N0=class N0 extends he{constructor(t,r){super("Cannot delete root value"),this.value=t,this.path=r}};o(N0,"ValuePointerRootDeleteError");var od=N0;function Uv(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Uv,"Escape");function*As(e){if(e==="")return;let[t,r]=[0,0];for(let n=0;n<e.length;n++)e.charAt(n)==="/"?(n===0||(r=n,yield Uv(e.slice(t,r))),t=n+1):r=n;yield Uv(e.slice(t))}o(As,"Format");function xO(e,t,r){if(t==="")throw new id(e,t,r);let[n,i,a]=[null,e,""];for(let u of As(t))i[u]===void 0&&(i[u]={}),n=i,i=i[u],a=u;n[a]=r}o(xO,"Set");function EO(e,t){if(t==="")throw new od(e,t);let[r,n,i]=[null,e,""];for(let a of As(t)){if(n[a]===void 0||n[a]===null)return;r=n,n=n[a],i=a}if(Array.isArray(r)){let a=parseInt(i);r.splice(a,1)}else delete r[i]}o(EO,"Delete");function IO(e,t){if(t==="")return!0;let[r,n,i]=[null,e,""];for(let a of As(t)){if(n[a]===void 0)return!1;r=n,n=n[a],i=a}return Object.getOwnPropertyNames(r).includes(i)}o(IO,"Has");function CO(e,t){if(t==="")return e;let r=e;for(let n of As(t)){if(r[n]===void 0)return;r=r[n]}return r}o(CO,"Get");l();function DO(e,t){if(!we(t))return!1;let r=[...Object.keys(e),...Object.getOwnPropertySymbols(e)],n=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];return r.length!==n.length?!1:r.every(i=>Xo(e[i],t[i]))}o(DO,"ObjectType");function SO(e,t){return Fr(t)&&e.getTime()===t.getTime()}o(SO,"DateType");function wO(e,t){return!Ie(t)||e.length!==t.length?!1:e.every((r,n)=>Xo(r,t[n]))}o(wO,"ArrayType");function AO(e,t){return!rn(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name?!1:e.every((r,n)=>Xo(r,t[n]))}o(AO,"TypedArrayType");function FO(e,t){return e===t}o(FO,"ValueType");function Xo(e,t){if(Fr(e))return SO(e,t);if(rn(e))return AO(e,t);if(Ie(e))return wO(e,t);if(we(e))return DO(e,t);if(or(e))return FO(e,t);throw new Error("ValueEquals: Unable to compare value")}o(Xo,"Equal");var OO=st({type:Ke("insert"),path:on(),value:Pi()}),PO=st({type:Ke("update"),path:on(),value:Pi()}),BO=st({type:Ke("delete"),path:on()}),zv=nt([OO,PO,BO]),U0=class U0 extends he{constructor(t,r){super(r),this.value=t}};o(U0,"ValueDiffError");var ad=U0;function ud(e,t){return{type:"update",path:e,value:t}}o(ud,"CreateUpdate");function $v(e,t){return{type:"insert",path:e,value:t}}o($v,"CreateInsert");function Gv(e){return{type:"delete",path:e}}o(Gv,"CreateDelete");function jv(e){if(globalThis.Object.getOwnPropertySymbols(e).length>0)throw new ad(e,"Cannot diff objects with symbols")}o(jv,"AssertDiffable");function*MO(e,t,r){if(jv(t),jv(r),!df(r))return yield ud(e,r);let n=globalThis.Object.getOwnPropertyNames(t),i=globalThis.Object.getOwnPropertyNames(r);for(let a of i)ye(t,a)||(yield $v("".concat(e,"/").concat(a),r[a]));for(let a of n)ye(r,a)&&(Xo(t,r)||(yield*X(sd("".concat(e,"/").concat(a),t[a],r[a]))));for(let a of n)ye(r,a)||(yield Gv("".concat(e,"/").concat(a)))}o(MO,"ObjectType");function*TO(e,t,r){if(!Ie(r))return yield ud(e,r);for(let n=0;n<Math.min(t.length,r.length);n++)yield*X(sd("".concat(e,"/").concat(n),t[n],r[n]));for(let n=0;n<r.length;n++)n<t.length||(yield $v("".concat(e,"/").concat(n),r[n]));for(let n=t.length-1;n>=0;n--)n<r.length||(yield Gv("".concat(e,"/").concat(n)))}o(TO,"ArrayType");function*kO(e,t,r){if(!rn(r)||t.length!==r.length||globalThis.Object.getPrototypeOf(t).constructor.name!==globalThis.Object.getPrototypeOf(r).constructor.name)return yield ud(e,r);for(let n=0;n<Math.min(t.length,r.length);n++)yield*X(sd("".concat(e,"/").concat(n),t[n],r[n]))}o(kO,"TypedArrayType");function*_O(e,t,r){t!==r&&(yield ud(e,r))}o(_O,"ValueType");function*sd(e,t,r){if(df(t))return yield*X(MO(e,t,r));if(Ie(t))return yield*X(TO(e,t,r));if(rn(t))return yield*X(kO(e,t,r));if(or(t))return yield*X(_O(e,t,r));throw new ad(t,"Unable to diff value")}o(sd,"Visit");function Zv(e,t){return[...sd("",e,t)]}o(Zv,"Diff");function LO(e){return e.length>0&&e[0].path===""&&e[0].type==="update"}o(LO,"IsRootUpdate");function RO(e){return e.length===0}o(RO,"IsIdentity");function Vv(e,t){if(LO(t))return Ve(t[0].value);if(RO(t))return Ve(e);let r=Ve(e);for(let n of t)switch(n.type){case"insert":{pn.Set(r,n.path,n.value);break}case"update":{pn.Set(r,n.path,n.value);break}case"delete":{pn.Delete(r,n.path);break}}return r}o(Vv,"Patch");l();function Wv(...e){let[t,r,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]],i=ai(t,r)?rd(t,r,n):n;if(!Be(t,r,i))throw new au(t,i,ti(t,r,i).First());return i}o(Wv,"Encode");l();var z0=class z0 extends he{constructor(t){super(t)}};o(z0,"ValueMutateError");var cd=z0;function NO(e,t,r,n){if(!we(r))pn.Set(e,t,Ve(n));else{let i=Object.getOwnPropertyNames(r),a=Object.getOwnPropertyNames(n);for(let u of i)a.includes(u)||delete r[u];for(let u of a)i.includes(u)||(r[u]=null);for(let u of a)j0(e,"".concat(t,"/").concat(u),r[u],n[u])}}o(NO,"ObjectType");function UO(e,t,r,n){if(!Ie(r))pn.Set(e,t,Ve(n));else{for(let i=0;i<n.length;i++)j0(e,"".concat(t,"/").concat(i),r[i],n[i]);r.splice(n.length)}}o(UO,"ArrayType");function jO(e,t,r,n){if(rn(r)&&r.length===n.length)for(let i=0;i<r.length;i++)r[i]=n[i];else pn.Set(e,t,Ve(n))}o(jO,"TypedArrayType");function zO(e,t,r,n){r!==n&&pn.Set(e,t,n)}o(zO,"ValueType");function j0(e,t,r,n){if(Ie(n))return UO(e,t,r,n);if(rn(n))return jO(e,t,r,n);if(we(n))return NO(e,t,r,n);if(or(n))return zO(e,t,r,n)}o(j0,"Visit");function Hv(e){return rn(e)||or(e)}o(Hv,"IsNonMutableValue");function $O(e,t){return we(e)&&Ie(t)||Ie(e)&&we(t)}o($O,"IsMismatchedValue");function Kv(e,t){if(Hv(e)||Hv(t))throw new cd("Only object and array types can be mutated at the root level");if($O(e,t))throw new cd("Cannot assign due type mismatch of assignable values");j0(e,"",e,t)}o(Kv,"Mutate");l();var GO=[(e,t,r)=>Ve(r),(e,t,r)=>nd(e,t,r),(e,t,r)=>Ql(e,t,r),(e,t,r)=>td(e,t,r),(e,t,r)=>(Xl(e,t,r),r),(e,t,r)=>ai(e,t)?ou(e,t,r):r];function qv(e,t,r){return GO.reduce((n,i)=>i(e,t,n),r)}o(qv,"ParseValue");function Jv(...e){return e.length===3?qv(e[0],e[1],e[2]):qv(e[0],[],e[1])}o(Jv,"Parse");l();var fn={};Ki(fn,{Assert:()=>Xl,Cast:()=>O0,Check:()=>Be,Clean:()=>Ql,Clone:()=>Ve,Convert:()=>td,Create:()=>mn,Decode:()=>Nv,Default:()=>nd,Diff:()=>Zv,Edit:()=>zv,Encode:()=>Wv,Equal:()=>Xo,Errors:()=>ti,Hash:()=>po,Mutate:()=>Kv,Parse:()=>Jv,Patch:()=>Vv,ValueErrorIterator:()=>dn});l();l();var Xv={},ZO=o(function(e,t,r,n,i){var a=new Worker(Xv[t]||(Xv[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(u){var s=u.data,d=s.$e$;if(d){var m=new Error(d[0]);m.code=d[1],m.stack=d[2],i(m,null)}else i(null,s)},a.postMessage(r,n),a},"wk"),ct=Uint8Array,Mr=Uint16Array,Bs=Int32Array,du=new ct([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mu=new ct([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Fs=new ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ex=o(function(e,t){for(var r=new Mr(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new Bs(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},"freb"),tx=ex(du,2),H0=tx.b,fd=tx.r;H0[28]=258,fd[258]=28;var rx=ex(mu,0),nx=rx.b,G0=rx.r,Os=new Mr(32768);for(Xe=0;Xe<32768;++Xe)ki=(Xe&43690)>>1|(Xe&21845)<<1,ki=(ki&52428)>>2|(ki&13107)<<2,ki=(ki&61680)>>4|(ki&3855)<<4,Os[Xe]=((ki&65280)>>8|(ki&255)<<8)>>1;var ki,Xe,gn=o(function(e,t,r){for(var n=e.length,i=0,a=new Mr(t);i<n;++i)e[i]&&++a[e[i]-1];var u=new Mr(t);for(i=1;i<t;++i)u[i]=u[i-1]+a[i-1]<<1;var s;if(r){s=new Mr(1<<t);var d=15-t;for(i=0;i<n;++i)if(e[i])for(var m=i<<4|e[i],f=t-e[i],g=u[e[i]-1]++<<f,b=g|(1<<f)-1;g<=b;++g)s[Os[g]>>d]=m}else for(s=new Mr(n),i=0;i<n;++i)e[i]&&(s[i]=Os[u[e[i]-1]++]>>15-e[i]);return s},"hMap"),_i=new ct(288);for(Xe=0;Xe<144;++Xe)_i[Xe]=8;var Xe;for(Xe=144;Xe<256;++Xe)_i[Xe]=9;var Xe;for(Xe=256;Xe<280;++Xe)_i[Xe]=7;var Xe;for(Xe=280;Xe<288;++Xe)_i[Xe]=8;var Xe,cu=new ct(32);for(Xe=0;Xe<32;++Xe)cu[Xe]=5;var Xe,ix=gn(_i,9,0),ox=gn(_i,9,1),ax=gn(cu,5,0),ux=gn(cu,5,1),dd=o(function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},"max"),hn=o(function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},"bits"),md=o(function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},"bits16"),Ms=o(function(e){return(e+7)/8|0},"shft"),fo=o(function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new ct(e.subarray(t,r))},"slc"),bd={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},sx=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],St=o(function(e,t,r){var n=new Error(t||sx[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,St),!r)throw n;return n},"err"),cx=o(function(e,t,r,n){var i=e.length,a=n?n.length:0;if(!i||t.f&&!t.l)return r||new ct(0);var u=!r,s=u||t.i!=2,d=t.i;u&&(r=new ct(i*3));var m=o(function(P){var ce=r.length;if(P>ce){var Q=new ct(Math.max(ce*2,P));Q.set(r),r=Q}},"cbuf"),f=t.f||0,g=t.p||0,b=t.b||0,v=t.l,C=t.d,A=t.m,x=t.n,E=i*8;do{if(!v){f=hn(e,g,1);var S=hn(e,g+1,3);if(g+=3,S)if(S==1)v=ox,C=ux,A=9,x=5;else if(S==2){var V=hn(e,g,31)+257,z=hn(e,g+10,15)+4,M=V+hn(e,g+5,31)+1;g+=14;for(var T=new ct(M),Z=new ct(19),j=0;j<z;++j)Z[Fs[j]]=hn(e,g+j*3,7);g+=z*3;for(var W=dd(Z),$=(1<<W)-1,q=gn(Z,W,1),j=0;j<M;){var J=q[hn(e,g,$)];g+=J&15;var D=J>>4;if(D<16)T[j++]=D;else{var G=0,ae=0;for(D==16?(ae=3+hn(e,g,3),g+=2,G=T[j-1]):D==17?(ae=3+hn(e,g,7),g+=3):D==18&&(ae=11+hn(e,g,127),g+=7);ae--;)T[j++]=G}}var te=T.subarray(0,V),ee=T.subarray(V);A=dd(te),x=dd(ee),v=gn(te,A,1),C=gn(ee,x,1)}else St(1);else{var D=Ms(g)+4,I=e[D-4]|e[D-3]<<8,k=D+I;if(k>i){d&&St(0);break}s&&m(b+I),r.set(e.subarray(D,k),b),t.b=b+=I,t.p=g=k*8,t.f=f;continue}if(g>E){d&&St(0);break}}s&&m(b+131072);for(var le=(1<<A)-1,fe=(1<<x)-1,xe=g;;xe=g){var G=v[md(e,g)&le],be=G>>4;if(g+=G&15,g>E){d&&St(0);break}if(G||St(2),be<256)r[b++]=be;else if(be==256){xe=g,v=null;break}else{var Oe=be-254;if(be>264){var j=be-257,Ce=du[j];Oe=hn(e,g,(1<<Ce)-1)+H0[j],g+=Ce}var ot=C[md(e,g)&fe],Sr=ot>>4;ot||St(3),g+=ot&15;var ee=nx[Sr];if(Sr>3){var Ce=mu[Sr];ee+=md(e,g)&(1<<Ce)-1,g+=Ce}if(g>E){d&&St(0);break}s&&m(b+131072);var wr=b+Oe;if(b<ee){var F=a-ee,Y=Math.min(ee,wr);for(F+b<0&&St(3);b<Y;++b)r[b]=n[F+b]}for(;b<wr;++b)r[b]=r[b-ee]}}t.l=v,t.p=xe,t.b=b,t.f=f,v&&(f=1,t.m=A,t.d=C,t.n=x)}while(!f);return b!=r.length&&u?fo(r,0,b):r.subarray(0,b)},"inflt"),ui=o(function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},"wbits"),uu=o(function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},"wbits16"),pd=o(function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:q0,l:0};if(i==1){var u=new ct(r[0].s+1);return u[r[0].s]=1,{t:u,l:1}}r.sort(function(k,V){return k.f-V.f}),r.push({s:-1,f:25001});var s=r[0],d=r[1],m=0,f=1,g=2;for(r[0]={s:-1,f:s.f+d.f,l:s,r:d};f!=i-1;)s=r[r[m].f<r[g].f?m++:g++],d=r[m!=f&&r[m].f<r[g].f?m++:g++],r[f++]={s:-1,f:s.f+d.f,l:s,r:d};for(var b=a[0].s,n=1;n<i;++n)a[n].s>b&&(b=a[n].s);var v=new Mr(b+1),C=hd(r[f-1],v,0);if(C>t){var n=0,A=0,x=C-t,E=1<<x;for(a.sort(function(V,z){return v[z.s]-v[V.s]||V.f-z.f});n<i;++n){var S=a[n].s;if(v[S]>t)A+=E-(1<<C-v[S]),v[S]=t;else break}for(A>>=x;A>0;){var D=a[n].s;v[D]<t?A-=1<<t-v[D]++-1:++n}for(;n>=0&&A;--n){var I=a[n].s;v[I]==t&&(--v[I],++A)}C=t}return{t:new ct(v),l:C}},"hTree"),hd=o(function(e,t,r){return e.s==-1?Math.max(hd(e.l,t,r+1),hd(e.r,t,r+1)):t[e.s]=r},"ln"),Z0=o(function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Mr(++t),n=0,i=e[0],a=1,u=o(function(d){r[n++]=d},"w"),s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)u(32754);a>2&&(u(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(u(i),--a;a>6;a-=6)u(8304);a>2&&(u(a-3<<5|8208),a=0)}for(;a--;)u(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},"lc"),su=o(function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},"clen"),K0=o(function(e,t,r){var n=r.length,i=Ms(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},"wfblk"),V0=o(function(e,t,r,n,i,a,u,s,d,m,f){ui(t,f++,r),++i[256];for(var g=pd(i,15),b=g.t,v=g.l,C=pd(a,15),A=C.t,x=C.l,E=Z0(b),S=E.c,D=E.n,I=Z0(A),k=I.c,V=I.n,z=new Mr(19),M=0;M<S.length;++M)++z[S[M]&31];for(var M=0;M<k.length;++M)++z[k[M]&31];for(var T=pd(z,7),Z=T.t,j=T.l,W=19;W>4&&!Z[Fs[W-1]];--W);var $=m+5<<3,q=su(i,_i)+su(a,cu)+u,J=su(i,b)+su(a,A)+u+14+3*W+su(z,Z)+2*z[16]+3*z[17]+7*z[18];if(d>=0&&$<=q&&$<=J)return K0(t,f,e.subarray(d,d+m));var G,ae,te,ee;if(ui(t,f,1+(J<q)),f+=2,J<q){G=gn(b,v,0),ae=b,te=gn(A,x,0),ee=A;var le=gn(Z,j,0);ui(t,f,D-257),ui(t,f+5,V-1),ui(t,f+10,W-4),f+=14;for(var M=0;M<W;++M)ui(t,f+3*M,Z[Fs[M]]);f+=3*W;for(var fe=[S,k],xe=0;xe<2;++xe)for(var be=fe[xe],M=0;M<be.length;++M){var Oe=be[M]&31;ui(t,f,le[Oe]),f+=Z[Oe],Oe>15&&(ui(t,f,be[M]>>5&127),f+=be[M]>>12)}}else G=ix,ae=_i,te=ax,ee=cu;for(var M=0;M<s;++M){var Ce=n[M];if(Ce>255){var Oe=Ce>>18&31;uu(t,f,G[Oe+257]),f+=ae[Oe+257],Oe>7&&(ui(t,f,Ce>>23&31),f+=du[Oe]);var ot=Ce&31;uu(t,f,te[ot]),f+=ee[ot],ot>3&&(uu(t,f,Ce>>5&8191),f+=mu[ot])}else uu(t,f,G[Ce]),f+=ae[Ce]}return uu(t,f,G[256]),f+ae[256]},"wblk"),lx=new Bs([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q0=new ct(0),dx=o(function(e,t,r,n,i,a){var u=a.z||e.length,s=new ct(n+u+5*(1+Math.ceil(u/7e3))+i),d=s.subarray(n,s.length-i),m=a.l,f=(a.r||0)&7;if(t){f&&(d[0]=a.r>>3);for(var g=lx[t-1],b=g>>13,v=g&8191,C=(1<<r)-1,A=a.p||new Mr(32768),x=a.h||new Mr(C+1),E=Math.ceil(r/3),S=2*E,D=o(function(re){return(e[re]^e[re+1]<<E^e[re+2]<<S)&C},"hsh"),I=new Bs(25e3),k=new Mr(288),V=new Mr(32),z=0,M=0,T=a.i||0,Z=0,j=a.w||0,W=0;T+2<u;++T){var $=D(T),q=T&32767,J=x[$];if(A[q]=J,x[$]=q,j<=T){var G=u-T;if((z>7e3||Z>24576)&&(G>423||!m)){f=V0(e,d,0,I,k,V,M,Z,W,T-W,f),Z=z=M=0,W=T;for(var ae=0;ae<286;++ae)k[ae]=0;for(var ae=0;ae<30;++ae)V[ae]=0}var te=2,ee=0,le=v,fe=q-J&32767;if(G>2&&$==D(T-fe))for(var xe=Math.min(b,G)-1,be=Math.min(32767,T),Oe=Math.min(258,G);fe<=be&&--le&&q!=J;){if(e[T+te]==e[T+te-fe]){for(var Ce=0;Ce<Oe&&e[T+Ce]==e[T+Ce-fe];++Ce);if(Ce>te){if(te=Ce,ee=fe,Ce>xe)break;for(var ot=Math.min(fe,Ce-2),Sr=0,ae=0;ae<ot;++ae){var wr=T-fe+ae&32767,F=A[wr],Y=wr-F&32767;Y>Sr&&(Sr=Y,J=wr)}}}q=J,J=A[q],fe+=q-J&32767}if(ee){I[Z++]=268435456|fd[te]<<18|G0[ee];var P=fd[te]&31,ce=G0[ee]&31;M+=du[P]+mu[ce],++k[257+P],++V[ce],j=T+te,++z}else I[Z++]=e[T],++k[e[T]]}}for(T=Math.max(T,j);T<u;++T)I[Z++]=e[T],++k[e[T]];f=V0(e,d,m,I,k,V,M,Z,W,T-W,f),m||(a.r=f&7|d[f/8|0]<<3,f-=7,a.h=x,a.p=A,a.i=T,a.w=j)}else{for(var T=a.w||0;T<u+m;T+=65535){var Q=T+65535;Q>=u&&(d[f/8|0]=m,Q=u),f=K0(d,f+1,e.subarray(T,Q))}a.i=u}return fo(s,0,n+Ms(f)+i)},"dflt"),VO=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(r&1&&-306674912)^r>>>1;e[t]=r}return e}(),mx=o(function(){var e=-1;return{p:o(function(t){for(var r=e,n=0;n<t.length;++n)r=VO[r&255^t[n]]^r>>>8;e=r},"p"),d:o(function(){return~e},"d")}},"crc");var px=o(function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),u=new ct(a.length+e.length);u.set(a),u.set(e,a.length),e=u,i.w=a.length}return dx(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},"dopt"),vd=o(function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},"mrg"),Yv=o(function(e,t,r){for(var n=e(),i=e.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),u=0;u<n.length;++u){var s=n[u],d=a[u];if(typeof s=="function"){t+=";"+d+"=";var m=s.toString();if(s.prototype)if(m.indexOf("[native code]")!=-1){var f=m.indexOf(" ",8)+1;t+=m.slice(f,m.indexOf("(",f))}else{t+=m;for(var g in s.prototype)t+=";"+d+".prototype."+g+"="+s.prototype[g].toString()}else t+=m}else r[d]=s}return t},"wcln"),ld=[],WO=o(function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t},"cbfs"),HO=o(function(e,t,r,n){if(!ld[r]){for(var i="",a={},u=e.length-1,s=0;s<u;++s)i=Yv(e[s],i,a);ld[r]={c:Yv(e[u],i,a),e:a}}var d=vd({},ld[r].e);return ZO(ld[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,d,WO(d),n)},"wrkr"),KO=o(function(){return[ct,Mr,Bs,du,mu,Fs,H0,nx,ox,ux,Os,sx,gn,dd,hn,md,Ms,fo,St,cx,Id,xd,fx]},"bInflt"),qO=o(function(){return[ct,Mr,Bs,du,mu,Fs,fd,G0,ix,_i,ax,cu,Os,lx,q0,gn,ui,uu,pd,hd,Z0,su,K0,V0,Ms,fo,dx,px,Ed,xd]},"bDflt");var xd=o(function(e){return postMessage(e,[e.buffer])},"pbf"),fx=o(function(e){return e&&{out:e.size&&new ct(e.size),dictionary:e.dictionary}},"gopt"),hx=o(function(e,t,r,n,i,a){var u=HO(r,n,i,function(s,d){u.terminate(),a(s,d)});return u.postMessage([e,t],t.consume?[e.buffer]:[]),function(){u.terminate()}},"cbify");var On=o(function(e,t){return e[t]|e[t+1]<<8},"b2"),lr=o(function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},"b4"),$0=o(function(e,t){return lr(e,t)+lr(e,t+4)*4294967296},"b8"),cr=o(function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},"wbytes");function JO(e,t,r){return r||(r=t,t={}),typeof r!="function"&&St(7),hx(e,t,[qO],function(n){return xd(Ed(n.data[0],n.data[1]))},0,r)}o(JO,"deflate");function Ed(e,t){return px(e,t||{},0,0)}o(Ed,"deflateSync");function XO(e,t,r){return r||(r=t,t={}),typeof r!="function"&&St(7),hx(e,t,[KO],function(n){return xd(Id(n.data[0],fx(n.data[1])))},1,r)}o(XO,"inflate");function Id(e,t){return cx(e,{i:2},t&&t.out,t&&t.dictionary)}o(Id,"inflateSync");var J0=o(function(e,t,r,n){for(var i in e){var a=e[i],u=t+i,s=n;Array.isArray(a)&&(s=vd(n,a[1]),a=a[0]),a instanceof ct?r[u]=[a,s]:(r[u+="/"]=[new ct(0),s],J0(a,u,r,n))}},"fltn"),Qv=typeof TextEncoder<"u"&&new TextEncoder,W0=typeof TextDecoder<"u"&&new TextDecoder,YO=0;try{W0.decode(q0,{stream:!0}),YO=1}catch(e){}var QO=o(function(e){for(var t="",r=0;;){var n=e[r++],i=(n>127)+(n>223)+(n>239);if(r+i>e.length)return{s:t,r:fo(e,r-1)};i?i==3?(n=((n&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?t+=String.fromCharCode((n&31)<<6|e[r++]&63):t+=String.fromCharCode((n&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(n)}},"dutf8");function lu(e,t){if(t){for(var r=new ct(e.length),n=0;n<e.length;++n)r[n]=e.charCodeAt(n);return r}if(Qv)return Qv.encode(e);for(var i=e.length,a=new ct(e.length+(e.length>>1)),u=0,s=o(function(f){a[u++]=f},"w"),n=0;n<i;++n){if(u+5>a.length){var d=new ct(u+8+(i-n<<1));d.set(a),a=d}var m=e.charCodeAt(n);m<128||t?s(m):m<2048?(s(192|m>>6),s(128|m&63)):m>55295&&m<57344?(m=65536+(m&1047552)|e.charCodeAt(++n)&1023,s(240|m>>18),s(128|m>>12&63),s(128|m>>6&63),s(128|m&63)):(s(224|m>>12),s(128|m>>6&63),s(128|m&63))}return fo(a,0,u)}o(lu,"strToU8");function X0(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}else{if(W0)return W0.decode(e);var i=QO(e),a=i.s,r=i.r;return r.length&&St(8),a}}o(X0,"strFromU8");var gx=o(function(e,t){return t+30+On(e,t+26)+On(e,t+28)},"slzh"),yx=o(function(e,t,r){var n=On(e,t+28),i=X0(e.subarray(t+46,t+46+n),!(On(e,t+8)&2048)),a=t+46+n,u=lr(e,t+20),s=r&&u==4294967295?eP(e,a):[u,lr(e,t+24),lr(e,t+42)],d=s[0],m=s[1],f=s[2];return[On(e,t+10),d,m,i,a+On(e,t+30)+On(e,t+32),f]},"zh"),eP=o(function(e,t){for(;On(e,t)!=1;t+=4+On(e,t+2));return[$0(e,t+12),$0(e,t+4),$0(e,t+20)]},"z64e"),Ps=o(function(e){var t=0;if(e)for(var r in e){var n=e[r].length;n>65535&&St(9),t+=n+4}return t},"exfl"),gd=o(function(e,t,r,n,i,a,u,s){var d=n.length,m=r.extra,f=s&&s.length,g=Ps(m);cr(e,t,u!=null?33639248:67324752),t+=4,u!=null&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(a<0&&8),e[t++]=i&&8,e[t++]=r.compression&255,e[t++]=r.compression>>8;var b=new Date(r.mtime==null?Date.now():r.mtime),v=b.getFullYear()-1980;if((v<0||v>119)&&St(10),cr(e,t,v<<25|b.getMonth()+1<<21|b.getDate()<<16|b.getHours()<<11|b.getMinutes()<<5|b.getSeconds()>>1),t+=4,a!=-1&&(cr(e,t,r.crc),cr(e,t+4,a<0?-a-2:a),cr(e,t+8,r.size)),cr(e,t+12,d),cr(e,t+14,g),t+=16,u!=null&&(cr(e,t,f),cr(e,t+6,r.attrs),cr(e,t+10,u),t+=14),e.set(n,t),t+=d,g)for(var C in m){var A=m[C],x=A.length;cr(e,t,+C),cr(e,t+2,x),e.set(A,t+4),t+=4+x}return f&&(e.set(s,t),t+=f),t},"wzh"),bx=o(function(e,t,r,n,i){cr(e,t,101010256),cr(e,t+8,r),cr(e,t+10,r),cr(e,t+12,n),cr(e,t+16,i)},"wzf");function vx(e,t,r){r||(r=t,t={}),typeof r!="function"&&St(7);var n={};J0(e,"",n,t);var i=Object.keys(n),a=i.length,u=0,s=0,d=a,m=new Array(a),f=[],g=o(function(){for(var x=0;x<f.length;++x)f[x]()},"tAll"),b=o(function(x,E){yd(function(){r(x,E)})},"cbd");yd(function(){b=r});var v=o(function(){var x=new ct(s+22),E=u,S=s-u;s=0;for(var D=0;D<d;++D){var I=m[D];try{var k=I.c.length;gd(x,s,I,I.f,I.u,k);var V=30+I.f.length+Ps(I.extra),z=s+V;x.set(I.c,z),gd(x,u,I,I.f,I.u,k,s,I.m),u+=16+V+(I.m?I.m.length:0),s=z+k}catch(M){return b(M,null)}}bx(x,u,m.length,S,E),b(null,x)},"cbf");a||v();for(var C=o(function(x){var E=i[x],S=n[E],D=S[0],I=S[1],k=mx(),V=D.length;k.p(D);var z=lu(E),M=z.length,T=I.comment,Z=T&&lu(T),j=Z&&Z.length,W=Ps(I.extra),$=I.level==0?0:8,q=o(function(J,G){if(J)g(),b(J,null);else{var ae=G.length;m[x]=vd(I,{size:V,crc:k.d(),c:G,f:z,m:Z,u:M!=E.length||Z&&T.length!=j,compression:$}),u+=30+M+W+ae,s+=76+2*(M+W)+(j||0)+ae,--a||v()}},"cbl");if(M>65535&&q(St(11,0,1),null),!$)q(null,D);else if(V<16e4)try{q(null,Ed(D,I))}catch(J){q(J,null)}else f.push(JO(D,I,q))},"_loop_1"),A=0;A<d;++A)C(A);return g}o(vx,"zip");function xx(e,t){t||(t={});var r={},n=[];J0(e,"",r,t);var i=0,a=0;for(var u in r){var s=r[u],d=s[0],m=s[1],f=m.level==0?0:8,g=lu(u),b=g.length,v=m.comment,C=v&&lu(v),A=C&&C.length,x=Ps(m.extra);b>65535&&St(11);var E=f?Ed(d,m):d,S=E.length,D=mx();D.p(d),n.push(vd(m,{size:d.length,crc:D.d(),c:E,f:g,m:C,u:b!=u.length||C&&v.length!=A,o:i,compression:f})),i+=30+b+x+S,a+=76+2*(b+x)+(A||0)+S}for(var I=new ct(a+22),k=i,V=a-i,z=0;z<n.length;++z){var g=n[z];gd(I,g.o,g,g.f,g.u,g.c.length);var M=30+g.f.length+Ps(g.extra);I.set(g.c,g.o+M),gd(I,i,g,g.f,g.u,g.c.length,g.o,g.m),i+=16+M+(g.m?g.m.length:0)}return bx(I,i,n.length,V,k),I}o(xx,"zipSync");var yd=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function Ex(e,t,r){r||(r=t,t={}),typeof r!="function"&&St(7);var n=[],i=o(function(){for(var x=0;x<n.length;++x)n[x]()},"tAll"),a={},u=o(function(x,E){yd(function(){r(x,E)})},"cbd");yd(function(){u=r});for(var s=e.length-22;lr(e,s)!=101010256;--s)if(!s||e.length-s>65558)return u(St(13,0,1),null),i;var d=On(e,s+8);if(d){var m=d,f=lr(e,s+16),g=f==4294967295||m==65535;if(g){var b=lr(e,s-12);g=lr(e,b)==101075792,g&&(m=d=lr(e,b+32),f=lr(e,b+48))}for(var v=t&&t.filter,C=o(function(x){var E=yx(e,f,g),S=E[0],D=E[1],I=E[2],k=E[3],V=E[4],z=E[5],M=gx(e,z);f=V;var T=o(function(j,W){j?(i(),u(j,null)):(W&&(a[k]=W),--d||u(null,a))},"cbl");if(!v||v({name:k,size:D,originalSize:I,compression:S}))if(!S)T(null,fo(e,M,M+D));else if(S==8){var Z=e.subarray(M,M+D);if(I<524288||D>.8*I)try{T(null,Id(Z,{out:new ct(I)}))}catch(j){T(j,null)}else n.push(XO(Z,{size:I},T))}else T(St(14,"unknown compression type "+S,1),null);else T(null,null)},"_loop_3"),A=0;A<m;++A)C(A)}else u(null,{});return i}o(Ex,"unzip");function Ix(e,t){for(var r={},n=e.length-22;lr(e,n)!=101010256;--n)(!n||e.length-n>65558)&&St(13);var i=On(e,n+8);if(!i)return{};var a=lr(e,n+16),u=a==4294967295||i==65535;if(u){var s=lr(e,n-12);u=lr(e,s)==101075792,u&&(i=lr(e,s+32),a=lr(e,s+48))}for(var d=t&&t.filter,m=0;m<i;++m){var f=yx(e,a,u),g=f[0],b=f[1],v=f[2],C=f[3],A=f[4],x=f[5],E=gx(e,x);a=A,(!d||d({name:C,size:b,originalSize:v,compression:g}))&&(g?g==8?r[C]=Id(e.subarray(E,E+b),{out:new ct(v)}):St(14,"unknown compression type "+g):r[C]=fo(e,E,E+b))}return r}o(Ix,"unzipSync");l();var tP=o(e=>{if(e!=null)return e.trim()===""?void 0:e},"maybePath"),rP=o(e=>e!=null,"notNull"),Cd=o((e,t,r=0)=>{var n;if(w.IsNull(e))return"null";if(w.IsUndefined(e))return"undefined";if(w.IsString(e))return"<string>";if(w.IsNumber(e))return"<number>";if(w.IsBoolean(e))return"<boolean>";if(w.IsLiteral(e))return typeof e.const=="string"?"'".concat(e.const,"'"):"".concat(e.const);if(w.IsRef(e)){let i=t.find(a=>a.$id===e.$ref);return i==null?e.$ref:Cd(i,t,r)}if(w.IsArray(e))return"".concat(Cd(e.items,t,r+1),"[]");if(w.IsUnion(e)&&(!(e.anyOf.length>5)||e.$id==null)){let a="".concat(e.anyOf.map(u=>Cd(u,t,r+1)).filter(rP).join(" | "));return r>0?"(".concat(a,")"):a}return(n=e.$id)!=null?n:""},"resolveSchemaIdent"),nP=o((e,t,r)=>{var a;let n=t.message;w.IsUnion(t.schema)&&(n="Expected one of: ".concat(Cd(t.schema,r)));let i="#/definitions/".concat(e).concat((a=tP(t.path))!=null?a:"");return"".concat(i,": ").concat(n)},"errorHandler"),Dd=o((e,t,r)=>{let n=t.First();if(n!=null)return nP(e,n,r)},"shortError");var pu;(function(e){e.Archive="Archive",e.Validate="Validate",e.Encode="Encode",e.Unknown="Unknown"})(pu||(pu={}));var Y0=class Y0 extends Error{constructor(r,n){super(n);h(this,"name");h(this,"kind");this.name="CompressError",this.kind=r}};o(Y0,"CompressError");var fu=Y0,iP=o(e=>new fu(pu.Archive,e.message),"flateErrorIntoCompressError"),oP=o(e=>{let t=Object.values(bd);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},"isFlateError"),aP=o((e,t,r)=>{var n;return new fu(pu.Validate,(n=Dd(e,t,r))!=null?n:"Unknown validate error")},"checkErrorIntoCompressError"),uP=o(e=>new fu(pu.Encode,e.message),"encodeErrorIntoCompressError"),sP=o(e=>new fu(pu.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoCompressError"),Ts=o((e,t,r)=>t instanceof Jo?uP(t):t instanceof dn?aP(e,t,r):oP(t)?iP(t):sP(t),"intoCompressError");l();var hu;(function(e){e.Unarchive="Unarchive",e.Validate="Validate",e.Decode="Decode",e.Unknown="Unknown"})(hu||(hu={}));var Q0=class Q0 extends Error{constructor(r,n){super(n);h(this,"name");h(this,"kind");this.name="DecompressError",this.kind=r}};o(Q0,"DecompressError");var gu=Q0,cP=o(e=>new gu(hu.Unarchive,e.message),"flateErrorIntoDecompressError"),lP=o(e=>{let t=Object.values(bd);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},"isFlateError"),dP=o((e,t,r)=>{var n;return new gu(hu.Validate,(n=Dd(e,t,r))!=null?n:"Unknown validate error")},"checkErrorIntoDecompressError"),mP=o(e=>new gu(hu.Decode,e.message),"decodeErrorIntoDecompressError"),pP=o(e=>new gu(hu.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoDecompressError"),ks=o((e,t,r)=>t instanceof qo?mP(t):t instanceof dn?dP(e,t,r):lP(t)?cP(t):pP(t),"intoDecompressError");var Cx=o(function*(e,t=""){if(e!=null){if(Array.isArray(e)){for(let r=0;r<e.length;r++)yield[t+"[".concat(r,"]"),e[r]];return}if("features"in e){for(let r=0;r<e.features.length;r++)yield[t===""?"features[".concat(r,"]"):"".concat(t,".features[").concat(r,"]"),e.features[r]];return}for(let[r,n]of Object.entries(e)){let i=t===""?r:"".concat(t,".").concat(r);yield*X(Cx(n,i))}}},"iterRecord"),fP=o((e,t)=>e===""?t:t.startsWith("[")?"".concat(e).concat(t):"".concat(e,".").concat(t),"getPath"),Mt=o((e,t,r)=>{let n=new Set;for(let[i,a]of Cx(e)){let u=t(a);if(n.has(u))return se({kind:zr.DuplicateIdError,properties:{id:u,path:fP(r,i)}});n.add(u)}return ue(!0)},"ensureUniqueIds");var Dx=o(e=>e.floors==null?se({kind:zr.FloorMissingError,properties:null}):Mt(e.floors.features,t=>t.properties.id,"floors"),"validateFloors");var Sx=p.Intersect([p.Object({id:p.Ref(Re),elevation:p.Integer({description:"An ordinal representing the elevation of this map relative to other maps in the stack."}),subtitle:p.Optional(p.String({description:"The subtitle of the floor."})),maxHeight:p.Optional(p.Number({description:"The maximum height of the floor in meters. This includes the thickness of the floor itself, up to the tallest point on any wall. If the floor does not have a consistent height (eg, one room on the floor has a vaulted ceiling, the rest do not), this value represents the highest point anywhere on the floor. Must be a positive number, or undefined.",minimum:0}))}),Hr],{$id:"FloorProperties"}),wx=ar(p.Union([p.Ref(Qa),p.Ref(eu),p.Null()]),p.Ref(Sx),{$id:"FloorFeature"}),Ax=Br(p.Ref(wx),{$id:"FloorCollection"}),hP=p.Object({floors:p.Ref(Ax)}),Fx={name:"core:floors",intoBundle:o(function*(e){e.floors!=null&&(yield{path:"floors.geojson",contents:e.floors})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e==="floors.geojson")return{floors:r(t)}},"fromBundle"),integrityCheck:Dx,schema:hP,references:[Sx,wx,Ax]};l();l();var Tt=o(e=>p.Unsafe(e),"PartialRecord");l();var et=o(e=>Object.keys(e),"typedKeys");l();l();var gP=o(e=>{var t,r;return new Map((r=(t=e.floors)==null?void 0:t.features.map(n=>[n.properties.id,n]))!=null?r:[])},"createFloorMap"),Pn=o(e=>{let t=gP(e);return o(n=>{let i=t.get(n);return i==null?se({kind:zr.UnknownFloorError,properties:{floorId:n}}):ue(i)},"floorLookup")},"createFloorLookup");var Ox=o(e=>{if(e.floors==null)return se({kind:zr.FloorMissingError,properties:null});if(e.geometry==null)return se({kind:zr.GeometryMissingError,properties:null});let t=Mt(e.geometry,n=>n.properties.id,"geometry");if(t.isErr())return t;let r=Pn(e);for(let n of et(e.geometry)){let i=r(n);if(i.isErr())return i}return ue(!0)},"validateGeometry");var Px=p.Intersect([p.Object({id:p.Ref(br)}),Hr],{$id:"GeometryProperties"}),Bx=ar(p.Union([p.Ref(yr),p.Ref(zl),p.Ref($l),p.Ref(Gl),p.Ref(Qa),p.Ref(eu)]),p.Ref(Px),{$id:"GeometryFeature"}),Mx=Br(p.Ref(Bx),{$id:"GeometryCollection"}),yP=p.Object({geometry:Tt(p.Record(Re,p.Ref(Mx),{additionalProperties:!1}))},{$id:"GeometrySchema"}),bP=/^geometry\/(.*)\.geojson$/,Tx={name:"core:geometry",schema:yP,intoBundle:o(function*(e){if(e.geometry!=null)for(let t of et(e.geometry))yield{path:"geometry/".concat(t,".geojson"),contents:e.geometry[t]}},"intoBundle"),fromBundle:o((e,t,r)=>{var i;let n=(i=e.match(bP))==null?void 0:i[1];if(n)return{geometry:{[n]:r(t)}}},"fromBundle"),references:[Px,Bx,Mx],integrityCheck:Ox};l();var eh=p.Object({type:p.Literal("file"),name:p.String({description:"The name of the file."})},{$id:"ManifestFile"}),kx=p.Recursive(e=>p.Object({type:p.Literal("folder"),name:p.String({description:"The name of the folder."}),children:p.Array(p.Union([e,p.Ref(eh)]),{minItems:1,description:"The children of the folder."})}),{$id:"ManifestFolder"}),_x=p.Object({name:p.String({description:"The name of the map."}),version:p.Literal("3.0.0",{description:"The version of the manifest."}),orgId:p.Optional(p.String({description:"The identifier of the organization that the map this MVF is for belongs to."})),mapId:p.Optional(p.String({description:"The identifier of the map that this MVF is for."})),contents:p.Array(p.Union([p.Ref(kx),p.Ref(eh)]),{minItems:1,description:"The contents of the MVF bundle."}),time:p.String({format:"date-time",description:"An ISO 8601 date-time string, including timezone offset."}),tzid:p.Optional(p.Unsafe(p.String({description:"A valid IANA timezone identifier.",pattern:"^[A-Za-z0-9_-]+/[A-Za-z0-9_-]+$"}))),naturalBearing:p.Optional(p.Number({minimum:0,maximum:360,description:'The angle, in degrees, the map is considered to be "naturally oriented" as, rather than facing directly north. 90 degrees means East is "up"'})),defaultFloor:p.Optional(p.Ref(Re,{description:"The default floor ID of the map."})),language:p.Optional(p.String({description:"The language code of the map."}))},{$id:"ManifestProperties"}),Lx=Br(ar(yr,p.Ref(_x)),{$id:"ManifestCollection"},{minItems:1,maxItems:1}),vP=p.Object({manifest:p.Ref(Lx)}),Rx={name:"core:manifest",intoBundle:o(function*(e){e.manifest!=null&&(yield{path:"manifest.geojson",contents:e.manifest})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e==="manifest.geojson")return{manifest:r(t)}},"fromBundle"),schema:vP,references:[eh,kx,_x,Lx]};l();l();l();l();var rh=class rh extends he{constructor(r){super("Unable to dereference schema with $id '".concat(r.$ref,"'"));h(this,"schema");this.schema=r}};o(rh,"TypeDereferenceError");var th=rh;function xP(e,t){let r=t.find(n=>n.$id===e.$ref);if(r===void 0)throw new th(e);return Yo(r,t)}o(xP,"Resolve");function Sd(e,t){return!Ne.IsString(e.$id)||t.some(r=>r.$id===e.$id)||t.push(e),t}o(Sd,"Pushref");function Yo(e,t){return e[_]==="This"||e[_]==="Ref"?xP(e,t):e}o(Yo,"Deref");l();function EP(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=ai(t,r);return e.set(t,i),i}o(EP,"HasTransformCached");function wd(){let e=new WeakMap;return{HasTransform:o((t,r)=>EP(e,t,r),"HasTransform")}}o(wd,"CreateTransformCache");function wt(e,t,r){try{return w.IsTransform(e)?e[yt].Decode(r):r}catch(n){throw new qo(e,t,r,n)}}o(wt,"Default");function IP(e,t,r,n,i){return Ne.IsArray(n)?wt(e,r,n.map((a,u)=>si(e.items,t,"".concat(r,"/").concat(u),a,i))):wt(e,r,n)}o(IP,"FromArray");function CP(e,t,r,n,i){if(!Ne.IsObject(n)||or(n))return wt(e,r,n);let a=co(e),u=a.map(g=>g[0]),s=R({},n);for(let[g,b]of a)g in s&&(s[g]=si(b,t,"".concat(r,"/").concat(g),s[g],i));if(!w.IsTransform(e.unevaluatedProperties))return wt(e,r,s);let d=Object.getOwnPropertyNames(s),m=e.unevaluatedProperties,f=R({},s);for(let g of d)u.includes(g)||(f[g]=wt(m,"".concat(r,"/").concat(g),f[g]));return wt(e,r,f)}o(CP,"FromIntersect");function DP(e,t,r,n,i){return wt(e,r,si(e.not,t,r,n,i))}o(DP,"FromNot");function SP(e,t,r,n,i){if(!Ne.IsObject(n))return wt(e,r,n);let a=Xt(e),u=R({},n);for(let f of a)Ne.HasPropertyKey(u,f)&&(Ne.IsUndefined(u[f])&&(!w.IsUndefined(e.properties[f])||Qe.IsExactOptionalProperty(u,f))||(u[f]=si(e.properties[f],t,"".concat(r,"/").concat(f),u[f],i)));if(!w.IsSchema(e.additionalProperties))return wt(e,r,u);let s=Object.getOwnPropertyNames(u),d=e.additionalProperties,m=R({},u);for(let f of s)a.includes(f)||(m[f]=wt(d,"".concat(r,"/").concat(f),m[f]));return wt(e,r,m)}o(SP,"FromObject");function wP(e,t,r,n,i){if(!Ne.IsObject(n))return wt(e,r,n);let a=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(a),s=R({},n);for(let g of Object.getOwnPropertyNames(n))u.test(g)&&(s[g]=si(e.patternProperties[a],t,"".concat(r,"/").concat(g),s[g],i));if(!w.IsSchema(e.additionalProperties))return wt(e,r,s);let d=Object.getOwnPropertyNames(s),m=e.additionalProperties,f=R({},s);for(let g of d)u.test(g)||(f[g]=wt(m,"".concat(r,"/").concat(g),f[g]));return wt(e,r,f)}o(wP,"FromRecord");function AP(e,t,r,n,i){let a=Yo(e,t);return wt(e,r,si(a,t,r,n,i))}o(AP,"FromRef");function FP(e,t,r,n,i){let a=Yo(e,t);return wt(e,r,si(a,t,r,n,i))}o(FP,"FromThis");function OP(e,t,r,n,i){return Ne.IsArray(n)&&Ne.IsArray(e.items)?wt(e,r,e.items.map((a,u)=>si(a,t,"".concat(r,"/").concat(u),n[u],i))):wt(e,r,n)}o(OP,"FromTuple");function PP(e,t,r,n,i){for(let a of e.anyOf){if(!fn.Check(a,t,n))continue;let u=si(a,t,r,n,i);return wt(e,r,u)}return wt(e,r,n)}o(PP,"FromUnion");function si(e,t,r,n,i){if(!i.HasTransform(e,t))return n;let a=Sd(e,t),u=e;switch(e[_]){case"Array":return IP(u,a,r,n,i);case"Intersect":return CP(u,a,r,n,i);case"Not":return DP(u,a,r,n,i);case"Object":return SP(u,a,r,n,i);case"Record":return wP(u,a,r,n,i);case"Ref":return AP(u,a,r,n,i);case"Symbol":return wt(u,r,n);case"This":return FP(u,a,r,n,i);case"Tuple":return OP(u,a,r,n,i);case"Union":return PP(u,a,r,n,i);default:return wt(u,r,n)}}o(si,"Visit");function Nx(e,t,r){let n=wd();return si(e,t,"",r,n)}o(Nx,"FastTransformDecode");l();function Er(e,t,r){try{return w.IsTransform(e)?e[yt].Encode(r):r}catch(n){throw new Jo(e,t,r,n)}}o(Er,"Default");function BP(e,t,r,n,i){let a=Er(e,r,n);return Ne.IsArray(a)?a.map((u,s)=>ci(e.items,t,"".concat(r,"/").concat(s),u,i)):a}o(BP,"FromArray");function MP(e,t,r,n,i){let a=Er(e,r,n);if(!Ne.IsObject(n)||or(n))return a;let u=co(e),s=u.map(b=>b[0]),d=R({},a);for(let[b,v]of u)b in d&&(d[b]=ci(v,t,"".concat(r,"/").concat(b),d[b],i));if(!w.IsTransform(e.unevaluatedProperties))return d;let m=Object.getOwnPropertyNames(d),f=e.unevaluatedProperties,g=R({},d);for(let b of m)s.includes(b)||(g[b]=Er(f,"".concat(r,"/").concat(b),g[b]));return g}o(MP,"FromIntersect");function TP(e,t,r,n){return Er(e.not,r,Er(e,r,n))}o(TP,"FromNot");function kP(e,t,r,n,i){let a=Er(e,r,n);if(!Ne.IsObject(a))return a;let u=Xt(e),s=R({},a);for(let g of u)Ne.HasPropertyKey(s,g)&&(Ne.IsUndefined(s[g])&&(!w.IsUndefined(e.properties[g])||Qe.IsExactOptionalProperty(s,g))||(s[g]=ci(e.properties[g],t,"".concat(r,"/").concat(g),s[g],i)));if(!w.IsSchema(e.additionalProperties))return s;let d=Object.getOwnPropertyNames(s),m=e.additionalProperties,f=R({},s);for(let g of d)u.includes(g)||(f[g]=Er(m,"".concat(r,"/").concat(g),f[g]));return f}o(kP,"FromObject");function _P(e,t,r,n,i){let a=Er(e,r,n);if(!Ne.IsObject(n))return a;let u=Object.getOwnPropertyNames(e.patternProperties)[0],s=new RegExp(u),d=R({},a);for(let b of Object.getOwnPropertyNames(n))s.test(b)&&(d[b]=ci(e.patternProperties[u],t,"".concat(r,"/").concat(b),d[b],i));if(!w.IsSchema(e.additionalProperties))return d;let m=Object.getOwnPropertyNames(d),f=e.additionalProperties,g=R({},d);for(let b of m)s.test(b)||(g[b]=Er(f,"".concat(r,"/").concat(b),g[b]));return g}o(_P,"FromRecord");function LP(e,t,r,n,i){let a=Yo(e,t),u=ci(a,t,r,n,i);return Er(e,r,u)}o(LP,"FromRef");function RP(e,t,r,n,i){let a=Yo(e,t),u=ci(a,t,r,n,i);return Er(e,r,u)}o(RP,"FromThis");function NP(e,t,r,n,i){let a=Er(e,r,n);return Ne.IsArray(e.items)?e.items.map((u,s)=>ci(u,t,"".concat(r,"/").concat(s),a[s],i)):[]}o(NP,"FromTuple");function UP(e,t,r,n,i){for(let a of e.anyOf){if(!fn.Check(a,t,n))continue;let u=ci(a,t,r,n,i);return Er(e,r,u)}for(let a of e.anyOf){let u=ci(a,t,r,n,i);if(fn.Check(e,t,u))return Er(e,r,u)}return Er(e,r,n)}o(UP,"FromUnion");function ci(e,t,r,n,i){if(!i.HasTransform(e,t))return n;let a=Sd(e,t),u=e;switch(e[_]){case"Array":return BP(u,a,r,n,i);case"Intersect":return MP(u,a,r,n,i);case"Not":return TP(u,a,r,n);case"Object":return kP(u,a,r,n,i);case"Record":return _P(u,a,r,n,i);case"Ref":return LP(u,a,r,n,i);case"This":return RP(u,a,r,n,i);case"Tuple":return NP(u,a,r,n,i);case"Union":return UP(u,a,r,n,i);default:return Er(u,r,n)}}o(ci,"Visit");function Ux(e,t,r){let n=wd();return ci(e,t,"",r,n)}o(Ux,"FastTransformEncode");l();var uh=class uh{constructor(t,r,n,i){this.schema=t,this.references=r,this.checkFunc=n,this.code=i,this.hasTransform=ai(t,r)}Code(){return this.code}Errors(t){return ti(this.schema,this.references,t)}Check(t){return this.checkFunc(t)}Decode(t){if(!this.checkFunc(t))throw new iu(this.schema,t,this.Errors(t).First());return this.hasTransform?ou(this.schema,this.references,t):t}Encode(t){let r=this.hasTransform?rd(this.schema,this.references,t):t;if(!this.checkFunc(r))throw new au(this.schema,t,this.Errors(t).First());return r}};o(uh,"TypeCheck");var nh=uh,Li;(function(e){function t(a){return a===36}o(t,"DollarSign"),e.DollarSign=t;function r(a){return a===95}o(r,"IsUnderscore"),e.IsUnderscore=r;function n(a){return a>=65&&a<=90||a>=97&&a<=122}o(n,"IsAlpha"),e.IsAlpha=n;function i(a){return a>=48&&a<=57}o(i,"IsNumeric"),e.IsNumeric=i})(Li||(Li={}));var Ad;(function(e){function t(a){return a.length===0?!1:Li.IsNumeric(a.charCodeAt(0))}o(t,"IsFirstCharacterNumeric");function r(a){if(t(a))return!1;for(let u=0;u<a.length;u++){let s=a.charCodeAt(u);if(!(Li.IsAlpha(s)||Li.IsNumeric(s)||Li.DollarSign(s)||Li.IsUnderscore(s)))return!1}return!0}o(r,"IsAccessor");function n(a){return a.replace(/'/g,"\\'")}o(n,"EscapeHyphen");function i(a,u){return r(u)?"".concat(a,".").concat(u):"".concat(a,"['").concat(n(u),"']")}o(i,"Encode"),e.Encode=i})(Ad||(Ad={}));var ih;(function(e){function t(r){let n=[];for(let i=0;i<r.length;i++){let a=r.charCodeAt(i);Li.IsNumeric(a)||Li.IsAlpha(a)?n.push(r.charAt(i)):n.push("_".concat(a,"_"))}return n.join("").replace(/__/g,"_")}o(t,"Encode"),e.Encode=t})(ih||(ih={}));var oh;(function(e){function t(r){return r.replace(/'/g,"\\'")}o(t,"Escape"),e.Escape=t})(oh||(oh={}));var sh=class sh extends he{constructor(t){super("Unknown type"),this.schema=t}};o(sh,"TypeCompilerUnknownTypeError");var ah=sh,ch=class ch extends he{constructor(t){super("Preflight validation check failed to guard for the given schema"),this.schema=t}};o(ch,"TypeCompilerTypeGuardError");var Fd=ch,Qo;(function(e){function t(u,s,d){return Qe.ExactOptionalPropertyTypes?"('".concat(s,"' in ").concat(u," ? ").concat(d," : true)"):"(".concat(Ad.Encode(u,s)," !== undefined ? ").concat(d," : true)")}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function r(u){return Qe.AllowArrayObject?"(typeof ".concat(u," === 'object' && ").concat(u," !== null)"):"(typeof ".concat(u," === 'object' && ").concat(u," !== null && !Array.isArray(").concat(u,"))")}o(r,"IsObjectLike"),e.IsObjectLike=r;function n(u){return Qe.AllowArrayObject?"(typeof ".concat(u," === 'object' && ").concat(u," !== null && !(").concat(u," instanceof Date) && !(").concat(u," instanceof Uint8Array))"):"(typeof ".concat(u," === 'object' && ").concat(u," !== null && !Array.isArray(").concat(u,") && !(").concat(u," instanceof Date) && !(").concat(u," instanceof Uint8Array))")}o(n,"IsRecordLike"),e.IsRecordLike=n;function i(u){return Qe.AllowNaN?"typeof ".concat(u," === 'number'"):"Number.isFinite(".concat(u,")")}o(i,"IsNumberLike"),e.IsNumberLike=i;function a(u){return Qe.AllowNullVoid?"(".concat(u," === undefined || ").concat(u," === null)"):"".concat(u," === undefined")}o(a,"IsVoidLike"),e.IsVoidLike=a})(Qo||(Qo={}));var Od;(function(e){function t(F){return F[_]==="Any"||F[_]==="Unknown"}o(t,"IsAnyOrUnknown");function*r(F,Y,P){yield"true"}o(r,"FromAny");function*n(F,Y,P){yield"Array.isArray(".concat(P,")");let[ce,Q]=[Oe("value","any"),Oe("acc","number")];me(F.maxItems)&&(yield"".concat(P,".length <= ").concat(F.maxItems)),me(F.minItems)&&(yield"".concat(P,".length >= ").concat(F.minItems));let re=le(F.items,Y,"value");if(yield"".concat(P,".every((").concat(ce,") => ").concat(re,")"),je(F.contains)||me(F.minContains)||me(F.maxContains)){let pe=je(F.contains)?F.contains:rt(),Je=le(pe,Y,"value"),Ft=me(F.minContains)?["(count >= ".concat(F.minContains,")")]:[],_t=me(F.maxContains)?["(count <= ".concat(F.maxContains,")")]:[],tr="const count = value.reduce((".concat(Q,", ").concat(ce,") => ").concat(Je," ? acc + 1 : acc, 0)"),jn=["(count > 0)",...Ft,..._t].join(" && ");yield"((".concat(ce,") => { ").concat(tr,"; return ").concat(jn,"})(").concat(P,")")}if(F.uniqueItems===!0){let Je="const set = new Set(); for(const element of value) { ".concat("const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true"," }");yield"((".concat(ce,") => { ").concat(Je," )(").concat(P,")")}}o(n,"FromArray");function*i(F,Y,P){yield"(typeof value === 'object' && Symbol.asyncIterator in ".concat(P,")")}o(i,"FromAsyncIterator");function*a(F,Y,P){yield"(typeof ".concat(P," === 'bigint')"),ir(F.exclusiveMaximum)&&(yield"".concat(P," < BigInt(").concat(F.exclusiveMaximum,")")),ir(F.exclusiveMinimum)&&(yield"".concat(P," > BigInt(").concat(F.exclusiveMinimum,")")),ir(F.maximum)&&(yield"".concat(P," <= BigInt(").concat(F.maximum,")")),ir(F.minimum)&&(yield"".concat(P," >= BigInt(").concat(F.minimum,")")),ir(F.multipleOf)&&(yield"(".concat(P," % BigInt(").concat(F.multipleOf,")) === 0"))}o(a,"FromBigInt");function*u(F,Y,P){yield"(typeof ".concat(P," === 'boolean')")}o(u,"FromBoolean");function*s(F,Y,P){yield*X(te(F.returns,Y,"".concat(P,".prototype")))}o(s,"FromConstructor");function*d(F,Y,P){yield"(".concat(P," instanceof Date) && Number.isFinite(").concat(P,".getTime())"),me(F.exclusiveMaximumTimestamp)&&(yield"".concat(P,".getTime() < ").concat(F.exclusiveMaximumTimestamp)),me(F.exclusiveMinimumTimestamp)&&(yield"".concat(P,".getTime() > ").concat(F.exclusiveMinimumTimestamp)),me(F.maximumTimestamp)&&(yield"".concat(P,".getTime() <= ").concat(F.maximumTimestamp)),me(F.minimumTimestamp)&&(yield"".concat(P,".getTime() >= ").concat(F.minimumTimestamp)),me(F.multipleOfTimestamp)&&(yield"(".concat(P,".getTime() % ").concat(F.multipleOfTimestamp,") === 0"))}o(d,"FromDate");function*m(F,Y,P){yield"(typeof ".concat(P," === 'function')")}o(m,"FromFunction");function*f(F,Y,P){yield"Number.isInteger(".concat(P,")"),me(F.exclusiveMaximum)&&(yield"".concat(P," < ").concat(F.exclusiveMaximum)),me(F.exclusiveMinimum)&&(yield"".concat(P," > ").concat(F.exclusiveMinimum)),me(F.maximum)&&(yield"".concat(P," <= ").concat(F.maximum)),me(F.minimum)&&(yield"".concat(P," >= ").concat(F.minimum)),me(F.multipleOf)&&(yield"(".concat(P," % ").concat(F.multipleOf,") === 0"))}o(f,"FromInteger");function*g(F,Y,P){let ce=F.allOf.map(Q=>le(Q,Y,P)).join(" && ");if(F.unevaluatedProperties===!1){let Q=xe("".concat(new RegExp(Oi(F)),";")),re="Object.getOwnPropertyNames(".concat(P,").every(key => ").concat(Q,".test(key))");yield"(".concat(ce," && ").concat(re,")")}else if(je(F.unevaluatedProperties)){let Q=xe("".concat(new RegExp(Oi(F)),";")),re="Object.getOwnPropertyNames(".concat(P,").every(key => ").concat(Q,".test(key) || ").concat(le(F.unevaluatedProperties,Y,"".concat(P,"[key]")),")");yield"(".concat(ce," && ").concat(re,")")}else yield"(".concat(ce,")")}o(g,"FromIntersect");function*b(F,Y,P){yield"(typeof value === 'object' && Symbol.iterator in ".concat(P,")")}o(b,"FromIterator");function*v(F,Y,P){typeof F.const=="number"||typeof F.const=="boolean"?yield"(".concat(P," === ").concat(F.const,")"):yield"(".concat(P," === '").concat(oh.Escape(F.const),"')")}o(v,"FromLiteral");function*C(F,Y,P){yield"false"}o(C,"FromNever");function*A(F,Y,P){let ce=le(F.not,Y,P);yield"(!".concat(ce,")")}o(A,"FromNot");function*x(F,Y,P){yield"(".concat(P," === null)")}o(x,"FromNull");function*E(F,Y,P){yield Qo.IsNumberLike(P),me(F.exclusiveMaximum)&&(yield"".concat(P," < ").concat(F.exclusiveMaximum)),me(F.exclusiveMinimum)&&(yield"".concat(P," > ").concat(F.exclusiveMinimum)),me(F.maximum)&&(yield"".concat(P," <= ").concat(F.maximum)),me(F.minimum)&&(yield"".concat(P," >= ").concat(F.minimum)),me(F.multipleOf)&&(yield"(".concat(P," % ").concat(F.multipleOf,") === 0"))}o(E,"FromNumber");function*S(F,Y,P){yield Qo.IsObjectLike(P),me(F.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(P,").length >= ").concat(F.minProperties)),me(F.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(P,").length <= ").concat(F.maxProperties));let ce=Object.getOwnPropertyNames(F.properties);for(let Q of ce){let re=Ad.Encode(P,Q),pe=F.properties[Q];if(F.required&&F.required.includes(Q))yield*X(te(pe,Y,re)),(Bi(pe)||t(pe))&&(yield"('".concat(Q,"' in ").concat(P,")"));else{let Je=le(pe,Y,re);yield Qo.IsExactOptionalProperty(P,Q,Je)}}if(F.additionalProperties===!1)if(F.required&&F.required.length===ce.length)yield"Object.getOwnPropertyNames(".concat(P,").length === ").concat(ce.length);else{let Q="[".concat(ce.map(re=>"'".concat(re,"'")).join(", "),"]");yield"Object.getOwnPropertyNames(".concat(P,").every(key => ").concat(Q,".includes(key))")}if(typeof F.additionalProperties=="object"){let Q=le(F.additionalProperties,Y,"".concat(P,"[key]")),re="[".concat(ce.map(pe=>"'".concat(pe,"'")).join(", "),"]");yield"(Object.getOwnPropertyNames(".concat(P,").every(key => ").concat(re,".includes(key) || ").concat(Q,"))")}}o(S,"FromObject");function*D(F,Y,P){yield"(typeof value === 'object' && typeof ".concat(P,".then === 'function')")}o(D,"FromPromise");function*I(F,Y,P){yield Qo.IsRecordLike(P),me(F.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(P,").length >= ").concat(F.minProperties)),me(F.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(P,").length <= ").concat(F.maxProperties));let[ce,Q]=Object.entries(F.patternProperties)[0],re=xe("".concat(new RegExp(ce))),pe=le(Q,Y,"value"),Je=je(F.additionalProperties)?le(F.additionalProperties,Y,P):F.additionalProperties===!1?"false":"true",Ft="(".concat(re,".test(key) ? ").concat(pe," : ").concat(Je,")");yield"(Object.entries(".concat(P,").every(([key, value]) => ").concat(Ft,"))")}o(I,"FromRecord");function*k(F,Y,P){let ce=Ze(F,Y);if(ee.functions.has(F.$ref))return yield"".concat(fe(F.$ref),"(").concat(P,")");yield*X(te(ce,Y,P))}o(k,"FromRef");function*V(F,Y,P){let ce=xe("".concat(new RegExp(F.source,F.flags),";"));yield"(typeof ".concat(P," === 'string')"),me(F.maxLength)&&(yield"".concat(P,".length <= ").concat(F.maxLength)),me(F.minLength)&&(yield"".concat(P,".length >= ").concat(F.minLength)),yield"".concat(ce,".test(").concat(P,")")}o(V,"FromRegExp");function*z(F,Y,P){if(yield"(typeof ".concat(P," === 'string')"),me(F.maxLength)&&(yield"".concat(P,".length <= ").concat(F.maxLength)),me(F.minLength)&&(yield"".concat(P,".length >= ").concat(F.minLength)),F.pattern!==void 0){let ce=xe("".concat(new RegExp(F.pattern),";"));yield"".concat(ce,".test(").concat(P,")")}F.format!==void 0&&(yield"format('".concat(F.format,"', ").concat(P,")"))}o(z,"FromString");function*M(F,Y,P){yield"(typeof ".concat(P," === 'symbol')")}o(M,"FromSymbol");function*T(F,Y,P){yield"(typeof ".concat(P," === 'string')");let ce=xe("".concat(new RegExp(F.pattern),";"));yield"".concat(ce,".test(").concat(P,")")}o(T,"FromTemplateLiteral");function*Z(F,Y,P){yield"".concat(fe(F.$ref),"(").concat(P,")")}o(Z,"FromThis");function*j(F,Y,P){if(yield"Array.isArray(".concat(P,")"),F.items===void 0)return yield"".concat(P,".length === 0");yield"(".concat(P,".length === ").concat(F.maxItems,")");for(let ce=0;ce<F.items.length;ce++){let Q=le(F.items[ce],Y,"".concat(P,"[").concat(ce,"]"));yield"".concat(Q)}}o(j,"FromTuple");function*W(F,Y,P){yield"".concat(P," === undefined")}o(W,"FromUndefined");function*$(F,Y,P){let ce=F.anyOf.map(Q=>le(Q,Y,P));yield"(".concat(ce.join(" || "),")")}o($,"FromUnion");function*q(F,Y,P){yield"".concat(P," instanceof Uint8Array"),me(F.maxByteLength)&&(yield"(".concat(P,".length <= ").concat(F.maxByteLength,")")),me(F.minByteLength)&&(yield"(".concat(P,".length >= ").concat(F.minByteLength,")"))}o(q,"FromUint8Array");function*J(F,Y,P){yield"true"}o(J,"FromUnknown");function*G(F,Y,P){yield Qo.IsVoidLike(P)}o(G,"FromVoid");function*ae(F,Y,P){let ce=ee.instances.size;ee.instances.set(ce,F),yield"kind('".concat(F[_],"', ").concat(ce,", ").concat(P,")")}o(ae,"FromKind");function*te(F,Y,P,ce=!0){let Q=Ue(F.$id)?[...Y,F]:Y,re=F;if(ce&&Ue(F.$id)){let pe=fe(F.$id);if(ee.functions.has(pe))return yield"".concat(pe,"(").concat(P,")");{let Je=be(pe,F,Y,"value",!1);return ee.functions.set(pe,Je),yield"".concat(pe,"(").concat(P,")")}}switch(re[_]){case"Any":return yield*X(r(re,Q,P));case"Array":return yield*X(n(re,Q,P));case"AsyncIterator":return yield*X(i(re,Q,P));case"BigInt":return yield*X(a(re,Q,P));case"Boolean":return yield*X(u(re,Q,P));case"Constructor":return yield*X(s(re,Q,P));case"Date":return yield*X(d(re,Q,P));case"Function":return yield*X(m(re,Q,P));case"Integer":return yield*X(f(re,Q,P));case"Intersect":return yield*X(g(re,Q,P));case"Iterator":return yield*X(b(re,Q,P));case"Literal":return yield*X(v(re,Q,P));case"Never":return yield*X(C(re,Q,P));case"Not":return yield*X(A(re,Q,P));case"Null":return yield*X(x(re,Q,P));case"Number":return yield*X(E(re,Q,P));case"Object":return yield*X(S(re,Q,P));case"Promise":return yield*X(D(re,Q,P));case"Record":return yield*X(I(re,Q,P));case"Ref":return yield*X(k(re,Q,P));case"RegExp":return yield*X(V(re,Q,P));case"String":return yield*X(z(re,Q,P));case"Symbol":return yield*X(M(re,Q,P));case"TemplateLiteral":return yield*X(T(re,Q,P));case"This":return yield*X(Z(re,Q,P));case"Tuple":return yield*X(j(re,Q,P));case"Undefined":return yield*X(W(re,Q,P));case"Union":return yield*X($(re,Q,P));case"Uint8Array":return yield*X(q(re,Q,P));case"Unknown":return yield*X(J(re,Q,P));case"Void":return yield*X(G(re,Q,P));default:if(!Gt.Has(re[_]))throw new ah(F);return yield*X(ae(re,Q,P))}}o(te,"Visit");let ee={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function le(F,Y,P,ce=!0){return"(".concat([...te(F,Y,P,ce)].join(" && "),")")}o(le,"CreateExpression");function fe(F){return"check_".concat(ih.Encode(F))}o(fe,"CreateFunctionName");function xe(F){let Y="local_".concat(ee.variables.size);return ee.variables.set(Y,"const ".concat(Y," = ").concat(F)),Y}o(xe,"CreateVariable");function be(F,Y,P,ce,Q=!0){let[re,pe]=["\n",tr=>"".padStart(tr," ")],Je=Oe("value","any"),Ft=Ce("boolean"),_t=[...te(Y,P,ce,Q)].map(tr=>"".concat(pe(4)).concat(tr)).join(" &&".concat(re));return"function ".concat(F,"(").concat(Je,")").concat(Ft," {").concat(re).concat(pe(2),"return (").concat(re).concat(_t).concat(re).concat(pe(2),")\n}")}o(be,"CreateFunction");function Oe(F,Y){let P=ee.language==="typescript"?": ".concat(Y):"";return"".concat(F).concat(P)}o(Oe,"CreateParameter");function Ce(F){return ee.language==="typescript"?": ".concat(F):""}o(Ce,"CreateReturns");function ot(F,Y,P){let ce=be("check",F,Y,"value"),Q=Oe("value","any"),re=Ce("boolean"),pe=[...ee.functions.values()],Je=[...ee.variables.values()],Ft=Ue(F.$id)?"return function check(".concat(Q,")").concat(re," {\n return ").concat(fe(F.$id),"(value)\n}"):"return ".concat(ce);return[...Je,...pe,Ft].join("\n")}o(ot,"Build");function Sr(...F){let Y={language:"javascript"},[P,ce,Q]=F.length===2&&Ie(F[1])?[F[0],F[1],Y]:F.length===2&&!Ie(F[1])?[F[0],[],F[1]]:F.length===3?[F[0],F[1],F[2]]:F.length===1?[F[0],[],Y]:[null,[],Y];if(ee.language=Q.language,ee.variables.clear(),ee.functions.clear(),ee.instances.clear(),!je(P))throw new Fd(P);for(let re of ce)if(!je(re))throw new Fd(re);return ot(P,ce,Q)}o(Sr,"Code"),e.Code=Sr;function wr(F,Y=[]){let P=Sr(F,Y,{language:"javascript"}),ce=globalThis.Function("kind","format","hash",P),Q=new Map(ee.instances);function re(_t,tr,jn){if(!Gt.Has(_t)||!Q.has(tr))return!1;let ga=Gt.Get(_t),ya=Q.get(tr);return ga(ya,jn)}o(re,"typeRegistryFunction");function pe(_t,tr){return Pr.Has(_t)?Pr.Get(_t)(tr):!1}o(pe,"formatRegistryFunction");function Je(_t){return po(_t)}o(Je,"hashFunction");let Ft=ce(re,pe,Je);return new nh(F,Y,Ft,P)}o(wr,"Compile"),e.Compile=wr})(Od||(Od={}));l();l();l();var jP=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,zP=[0,31,28,31,30,31,30,31,31,30,31,30,31],$P=o(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Pd=o(e=>{let t=jP.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&$P(r)?29:zP[n])},"isDate");l();var GP=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i,Bd=o(e=>{let t=GP.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3],a=t[4],u=t[5]==="-"?-1:1,s=+(t[6]||0),d=+(t[7]||0);if(s>23||d>59||!a)return!1;if(r<=23&&n<=59&&i<60)return!0;let m=n-d*u,f=r-s*u-(m<0?1:0);return(f===23||f===-1)&&(m===59||m===-1)&&i<61},"isTime");var ZP=/t|\s/i,jx=o(e=>{let t=e.split(ZP);return t.length===2&&Pd(t[0])&&Bd(t[1])},"isDateTime");l();var VP=/\/|:/,WP=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,zx=o(e=>VP.test(e)&&WP.test(e),"isUri");var HP=[["date",Pd],["time",Bd],["date-time",jx],["uri",zx]],$x=o(()=>{for(let[e,t]of HP)try{ql.Format(e,t)}catch(r){if(r instanceof Ds)continue;throw r}},"registerFormats");l();var lh=p.Record(p.String(),p.Unknown(),{$id:"Extra"}),Bn=p.Object({extra:p.Optional(p.Ref(lh))}),dh=[lh];l();l();l();l();l();l();var Ir=o(e=>Object.entries(e),"typedEntries");var KP=o(e=>{var r;let t=new Map;for(let[n,i]of Ir((r=e.geometry)!=null?r:{}))t.set(n,new Map(i==null?void 0:i.features.map(a=>[a.properties.id,a])));return t},"createLookupMap"),Zt=o(e=>{let t=KP(e);return o((n,i)=>{let a=t.get(n);if(a==null)return se({kind:zr.UnknownFloorError,properties:{floorId:n}});let u=a.get(i);return u==null?se({kind:zr.UnknownGeometryError,properties:{floorId:n,geometryId:i}}):ue(u)},"geometryLookup")},"createGeometryLookup");l();var yn=p.Object({geometryId:p.Ref(br)},{$id:"WithGeometryId"}),yu=p.Object({geometryIds:p.Array(p.Ref(br))},{$id:"WithGeometryIds"}),mh=[yn,yu];l();l();l();var Gx=o(e=>e instanceof Error?e:new Error(String(e)),"asError");var bu=o(e=>(...t)=>{try{return ue(e(...t))}catch(r){return se(Gx(r))}},"safeFn");var Zx=bu((e,t)=>{let r={};for(let n of t)for(let i of n.intoBundle(e))r[i.path]=lu(JSON.stringify(i.contents));return r}),ph=o(async(e,t,r)=>Zx(e,t).andThenAsync(n=>new Promise(i=>{vx(n,De(R({},r),{consume:!0}),(a,u)=>{i(a?se(a):ue(u))})})),"compress"),qP=bu(xx),fh=o((e,t,r)=>Zx(e,t).andThen(n=>qP(n,r)),"compressSync");l();l();function Md(e,t,r=[]){let n=R({},e);for(let[i,a]of Object.entries(t))if(a!==void 0)if(i in n){let u=i;if(Array.isArray(a)&&a.length>0){let s=JP(a[0],r);if(s){let d=n[u];if(!Array.isArray(d))throw new Error("Expected array at ".concat(i,", got ").concat(typeof d));let m=new Map(a.map(b=>[Vx(b,s),b])),g=d.map(b=>{let v=m.get(Vx(b,s));return v?Md(b,v,r):b});n[u]=g}else n[u]=a}else{let s=n[u];typeof s=="object"&&s!==null&&typeof a=="object"&&a!==null?Object.keys(a).length===0?n[u]=a:n[u]=Md(s,a,r):n[i]=a}}else n[i]=a;return n}o(Md,"deepMergeOn");function JP(e,t){function r(n){if(typeof n!="object"||n===null)return null;for(let i of t)if(i in n&&typeof n[i]<"u")return[i];if(Array.isArray(n))return null;for(let[i,a]of Object.entries(n)){let u=r(a);if(u)return[i,...u]}return null}return o(r,"search"),r(e)}o(JP,"findIdentifierKey");function Vx(e,t){return t.reduce((r,n)=>{if(r&&typeof r=="object")return r[n]},e)}o(Vx,"getValueByKeyPath");var XP=o(e=>e,"identity"),YP=o(e=>JSON.parse(X0(e)),"jsonDecode"),Wx=o((e,t)=>t.some(r=>r.fromBundle(e.name,new Uint8Array,XP)!==void 0),"isFileExpected"),Hx=bu((e,t)=>{let r={};for(let n of Object.keys(e)){let i=e[n];for(let a of t){let u=a.fromBundle(n,i,YP);if(u){r=Md(r,u,[]);break}}}return r}),hh=o(async(e,t)=>new Promise(r=>Ex(e,{filter:o(n=>Wx(n,t),"filter")},(n,i)=>{r(n?se(n):ue(i))})).then(r=>r.andThen(n=>Hx(n,t))),"decompress"),QP=bu(Ix),gh=o((e,t)=>QP(e,{filter:o(r=>Wx(r,t),"filter")}).andThen(r=>Hx(r,t)),"decompressSync");l();var e7=o(e=>typeof e=="object"&&e!=null&&"$ref"in e&&typeof e.$ref=="string","isRef"),t7=o(e=>{if(e.length<2)return!1;let t=e.filter(e7);if(t.length!==e.length)return!1;let r=t[0].$ref;return t.slice(1).every(n=>n.$ref===r)},"isDuplicateRef"),Td=o(e=>typeof e=="object"&&e!=null&&"allOf"in e&&Array.isArray(e.allOf)&&t7(e.allOf)?e.allOf[0]:typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Td(r)])):Array.isArray(e)?e.map(Td):e,"fixDuplicateAllOf");l();var kd=o(e=>typeof e=="object"&&e!=null&&"$ref"in e?De(R({},e),{$ref:"#/definitions/".concat(e.$ref)}):typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,kd(r)])):Array.isArray(e)?e.map(kd):e,"prefixReferences");var vu;(function(e){e.InvalidTypeboxSchema="InvalidTypeboxSchema",e.MissingReferenceId="MissingReferenceId",e.DuplicateReferenceId="DuplicateReferenceId",e.TypeboxError="TypeboxError",e.UnknownError="UnknownError"})(vu||(vu={}));var r7=o(e=>({next(){for(let r of e){let n=r.next();if(!n.done)return n}return{done:!0,value:void 0}},[Symbol.iterator](){return this}}),"join"),n7=o((...e)=>{let t=new Map;for(let r of r7(e)){if(!r.$id)continue;let n=t.get(r.$id);if(n!=null&&n!==r)return se({kind:vu.DuplicateReferenceId,message:"Failed to register a reference for a schema with an $id that has already been used",schema:r});t.set(r.$id,r)}return ue(t)},"computeReferenceMap"),Qt,xu,Qr,dr,Ld=class Ld{constructor(t,r,n,i){L(this,Qt);L(this,xu);L(this,Qr,[]);L(this,dr);K(this,Qt,t),K(this,xu,r),K(this,Qr,n),K(this,dr,i),this.is=this.is.bind(this),this.parse=this.parse.bind(this),this.verify=this.verify.bind(this),this.jsonSchema=this.jsonSchema.bind(this),this.compress=this.compress.bind(this),this.decompress=this.decompress.bind(this)}static create(t,r="CoreMVF",n=!1){let i=p.Composite(t.extensions.map(u=>u.schema),{$id:r});if(!w.IsSchema(i))return se({kind:vu.InvalidTypeboxSchema,message:"Attempting to merge schemas produced an invalid schema",schema:i});let a=n7(i0.values(),o0.values(),r0.values(),dh.values(),yh.values(),mh.values(),t.extensions.flatMap(u=>{var s;return(s=u.references)!=null?s:[]}).values());if(!a.isOk())return a;try{$x();let u=n?null:Od.Compile(i,[...a.value.values()]);return ue(new Ld(i,u,t.extensions,a.value))}catch(u){return u instanceof he?se({kind:vu.TypeboxError,message:u.message,original:u}):se({kind:vu.UnknownError,message:"An unknown error occurred while compiling the schema",original:u})}}is(t){var r,n;return(n=(r=c(this,xu))==null?void 0:r.Check(t))!=null?n:fn.Check(c(this,Qt),[...c(this,dr).values()],t)}parse(t){var r,n;return this.is(t)?ue(t):se((n=(r=c(this,xu))==null?void 0:r.Errors(t))!=null?n:fn.Errors(c(this,Qt),[...c(this,dr).values()],t))}decode(t){try{return ue(Nx(c(this,Qt),[...c(this,dr).values()],t))}catch(r){return se(r)}}encode(t){try{return ue(Ux(c(this,Qt),[...c(this,dr).values()],t))}catch(r){return se(r)}}verify(t){for(let r of c(this,Qr))if(r.integrityCheck){let n=r.integrityCheck(t);if(n.isErr())return se(n.error)}return ue(!0)}jsonSchema(){var n;let t=JSON.parse(JSON.stringify([c(this,Qt),...c(this,dr).values()])),r=Td(kd({$id:"#/definitions/".concat((n=c(this,Qt).$id)!=null?n:"CoreMVF"),$schema:"http://json-schema.org/draft-07/schema#",references:t}));return JSON.stringify(r,null,2)}async compress(t){return this.encode(t).andThen(r=>this.parse(r)).andThenAsync(r=>ph(r,c(this,Qr))).then(r=>r.mapErr(n=>{var i;return Ts((i=c(this,Qt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}async compressUnsafe(t){return this.encode(t).andThenAsync(r=>ph(r,c(this,Qr))).then(r=>r.mapErr(n=>{var i;return Ts((i=c(this,Qt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}compressSync(t){return this.encode(t).andThen(r=>this.parse(r)).andThen(r=>fh(r,c(this,Qr))).mapErr(r=>{var n;return Ts((n=c(this,Qt).$id)!=null?n:"CoreMVF",r,[...c(this,dr).values()])})}compressUnsafeSync(t){return this.encode(t).andThen(r=>fh(r,c(this,Qr))).mapErr(r=>{var n;return Ts((n=c(this,Qt).$id)!=null?n:"CoreMVF",r,[...c(this,dr).values()])})}async decompress(t){return hh(t,c(this,Qr)).then(r=>r.andThen(n=>this.parse(n)).andThen(n=>this.decode(n)).mapErr(n=>{var i;return ks((i=c(this,Qt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}async decompressUnsafe(t){return hh(t,c(this,Qr)).then(r=>r.andThen(n=>this.decode(n)).mapErr(n=>{var i;return ks((i=c(this,Qt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}decompressSync(t){return gh(t,c(this,Qr)).andThen(r=>this.parse(r)).andThen(r=>this.decode(r)).mapErr(r=>{var n;return ks((n=c(this,Qt).$id)!=null?n:"CoreMVF",r,[...c(this,dr).values()])})}decompressUnsafeSync(t){return gh(t,c(this,Qr)).andThen(r=>this.decode(r)).mapErr(r=>{var n;return ks((n=c(this,Qt).$id)!=null?n:"CoreMVF",r,[...c(this,dr).values()])})}};Qt=new WeakMap,xu=new WeakMap,Qr=new WeakMap,dr=new WeakMap,o(Ld,"MVFParser");var _d=Ld;var Eu,bh=class bh{constructor(){L(this,Eu,[]);this.extend=this.extend.bind(this)}extend(t){return c(this,Eu).push(t),this}extendOptional(t){let r=De(R({},t),{schema:p.Partial(t.schema)});return c(this,Eu).push(r),this}build(t){return _d.create(this,void 0,t==null?void 0:t.cspSafe)}get extensions(){return c(this,Eu)}};Eu=new WeakMap,o(bh,"MVFParserBuilder");var Rd=bh;l();l();l();l();var Iu=p.Object({geometryId:p.Ref(br),floorId:p.Ref(Re)},{$id:"GeometryAnchor"}),i7=p.Object({geometryAnchor:p.Ref(Iu)}),_s=o((e,t)=>p.Object({geometryAnchors:p.Array(p.Ref(Iu),e)},t),"WithGeometryAnchors"),yh=[Iu];l();l();l();var Kx=o((e,t)=>p.Unsafe(p.Transform(p.String(t)).Decode(r=>e.includes(r)?r:"unknown").Encode(r=>r)),"SafeStringEnumSchema"),mr=o((e,t)=>{let r=Kx(e,t),n=[...e,"unknown"],i=Object.freeze(Object.fromEntries([...e,"unknown"].map(u=>[u,u])));return{schema:r,values:n,record:i,is:o(u=>Object.hasOwn(i,u),"is")}},"SafeStringEnum");var qx=o(()=>new Rd().extend(Fx).extend(Tx).extend(Rx),"createParser");l();l();l();l();l();l();var Ls;(function(e){e.AnnotationNonPointGeometryError="AnnotationNonPointGeometryError",e.AnnotationUnknownSymbolError="AnnotationUnknownSymbolError"})(Ls||(Ls={}));var Jx=o(e=>{var i;if(e.annotations==null)return ue(!0);let t=Mt(e.annotations,a=>a.id,"annotations");if(t.isErr())return t;let r=Zt(e),n=new Set(et((i=e.annotationSymbols)!=null?i:{}));for(let a of et(e.annotations)){let u=e.annotations[a];if(u!=null)for(let s of u){if(!n.has(s.symbolKey))return se({kind:Ls.AnnotationUnknownSymbolError,properties:{annotationId:s.id,symbolKey:s.symbolKey}});let d=r(a,s.geometryId);if(d.isErr())return d;if(d.value.geometry.type!=="Point")return se({kind:Ls.AnnotationNonPointGeometryError,properties:{annotationId:s.id,floorId:a,geometryId:s.geometryId}})}}return ue(!0)},"validateAnnotations");var Xx=Bt("a","AnnotationId"),vh=p.Intersect([yn,p.Object({id:p.Ref(Xx,{description:"The unique identifier for the annotation."}),externalId:p.Optional(p.String({description:"The external identifier for the annotation."})),symbolKey:p.String({description:"The symbol identifier for the annotation."})})],{$id:"AnnotationProperties"}),Yx=p.Object({url:p.String({format:"uri",description:"The URL for the symbol."}),name:p.String({description:"The name of the symbol."})},{$id:"AnnotationSymbol"}),o7=p.Object({annotations:Tt(p.Record(Re,p.Array(p.Ref(vh)),{additionalProperties:!1})),annotationSymbols:Tt(p.Record(p.Index(vh,["symbolKey"]),p.Ref(Yx)))},{$id:"AnnotationsSchema"}),a7=/^annotations\/(.*)\.json$/,Qx={name:"ext:mvf-annotations",schema:o7,intoBundle:o(function*(e){if(e.annotations!=null)for(let t of et(e.annotations))yield{path:"annotations/".concat(t,".json"),contents:e.annotations[t]};e.annotationSymbols!=null&&(yield{path:"annotation-symbols.json",contents:e.annotationSymbols})},"intoBundle"),fromBundle:o((e,t,r)=>{var i;if(e==="annotation-symbols.json")return{annotationSymbols:r(t)};let n=(i=e.match(a7))==null?void 0:i[1];if(n)return{annotations:{[n]:r(t)}}},"fromBundle"),references:[Xx,vh,Yx],integrityCheck:Jx};l();l();l();var Ri=Bt("lcat","LocationCategoryId"),xh=p.Intersect([p.Object({id:p.Ref(Ri),parent:p.Optional(p.Ref(Ri))}),Ho(["name"]),Bn],{$id:"LocationCategory"}),e3=[Ri,xh];l();l();var ea;(function(e){e.UnknownCategoryError="UnknownCategoryError",e.UnknownParentCategoryError="UnknownParentCategoryError",e.UnknownParentLocationError="UnknownParentLocationError"})(ea||(ea={}));var t3=o(e=>{var i,a,u,s,d,m,f,g,b;if(e.locationCategories==null&&e.locations==null)return ue(!0);if(e.locationCategories!=null){let v=Mt(e.locationCategories,C=>C.id,"locationCategories");if(v.isErr())return v}if(e.locations!=null){let v=Mt(e.locations,C=>C.id,"locations");if(v.isErr())return v}if(e.locationInstances!=null){let v=Mt(e.locationInstances,C=>C.id,"locationInstances");if(v.isErr())return v}let t=new Set((a=(i=e.locationCategories)==null?void 0:i.map(v=>v.id))!=null?a:[]);for(let v of(u=e.locationCategories)!=null?u:[])if(v.parent!=null&&!t.has(v.parent))return se({kind:ea.UnknownParentCategoryError,properties:{categoryId:v.id,parentCategoryId:v.parent}});let r=Zt(e);for(let v of(s=e.locations)!=null?s:[]){for(let C of v.categories)if(!t.has(C))return se({kind:ea.UnknownCategoryError,properties:{locationId:v.id,categoryId:C}});for(let C of v.geometryAnchors){let A=r(C.floorId,C.geometryId);if(A.isErr())return A}}let n=new Set((m=(d=e.locations)==null?void 0:d.map(v=>v.id))!=null?m:[]);for(let v of(f=e.locationInstances)!=null?f:[]){if(!n.has(v.parentId))return se({kind:ea.UnknownParentLocationError,properties:{locationInstanceId:v.id,parentLocationId:v.parentId}});for(let C of(g=v.categories)!=null?g:[])if(!t.has(C))return se({kind:ea.UnknownCategoryError,properties:{locationId:v.id,categoryId:C}});for(let C of(b=v.geometryAnchors)!=null?b:[]){let A=r(C.floorId,C.geometryId);if(A.isErr())return A}}return ue(!0)},"validateLocations");l();var Ni=Bt("loc","LocationId"),Nd=Bt("loci","LocationInstanceId"),r3=p.Object({name:p.String(),url:p.String({format:"uri"})},{$id:"LocationSocial"}),n3=p.Object({url:p.String({format:"uri"})},{$id:"LocationImage"}),Eh=p.Object({label:p.String(),url:p.String({format:"uri"})},{$id:"LocationLink"}),Ih=p.String({pattern:"^[0-2][0-9]:[0-6][0-9](:[0-6][0-9])?$",$id:"OpeningHoursTime"}),i3=p.Union([p.Literal("Sunday"),p.Literal("Monday"),p.Literal("Tuesday"),p.Literal("Wednesday"),p.Literal("Thursday"),p.Literal("Friday"),p.Literal("Saturday")],{$id:"OpeningHoursDay"}),u7="PublicHolidays",Ch=p.Union([i3,p.Literal(u7)],{$id:"OpeningHoursDayOrPublicHoliday"}),Ud=p.Object({"@type":p.Optional(p.Literal("OpeningHoursSpecification",{description:"The type of opening hours"})),opens:p.Optional(p.Ref(Ih,{description:"The time the opening hours start"})),closes:p.Optional(p.Ref(Ih,{description:"The time the opening hours end"})),dayOfWeek:p.Optional(p.Union([p.Ref(Ch),p.Array(p.Ref(Ch))],{description:"The days of the week the opening hours apply to"})),validFrom:p.Optional(p.String({format:"date",description:"The date the opening hours start, in ISO 8601 format"})),validThrough:p.Optional(p.String({format:"date",description:"The date the opening hours end, in ISO 8601 format"}))},{$id:"OpeningHoursSpecification"}),jd=p.Intersect([p.Object({id:p.Ref(Ni),categories:p.Array(p.Ref(Ri)),logo:p.Optional(p.String({format:"uri"})),phone:p.Optional(p.String()),social:p.Array(p.Ref(r3)),images:p.Array(p.Ref(n3)),links:p.Array(p.Ref(Eh)),website:p.Optional(p.Ref(Eh)),openingHours:p.Optional(p.Array(p.Ref(Ud)))}),Ho(["name"]),_s(),Bn],{$id:"Location"}),Dh=p.Intersect([p.Object({id:p.Ref(Nd),parentId:p.Ref(Ni)}),p.Partial(p.Omit(jd,["id","parentId","details"])),Hr],{$id:"LocationInstance",description:"A location instance is a particular instance of an location that has some properties different from the parent."}),zd=[Ni,Nd,r3,n3,Eh,Ih,i3,Ch,Ud,jd,Dh];var s7=p.Object({locations:p.Array(p.Ref(jd)),locationCategories:p.Array(p.Ref(xh)),locationInstances:p.Optional(p.Array(p.Ref(Dh)))},{$id:"LocationsExtensionSchema"}),o3="locations.json",a3="location-categories.json",u3="location-instances.json",s3={name:"ext:locations",schema:s7,intoBundle:o(function*(e){e.locations!=null&&(yield{path:o3,contents:e.locations}),e.locationCategories!=null&&(yield{path:a3,contents:e.locationCategories}),e.locationInstances!=null&&(yield{path:u3,contents:e.locationInstances})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e===o3)return{locations:r(t)};if(e===a3)return{locationCategories:r(t)};if(e===u3)return{locationInstances:r(t)}},"fromBundle"),references:[...e3,...zd],integrityCheck:t3};l();l();var Mn;(function(e){e.EnterpriseLocationWithUnknownLocationError="EnterpriseLocationWithUnknownLocationError",e.EnterpriseCategoryWithUnknownLocationCategoryError="EnterpriseCategoryWithUnknownLocationCategoryError",e.InstanceWithUnknownLocationInstanceError="InstanceWithUnknownLocationInstanceError",e.InstanceWithUnknownEnterpriseLocationError="InstanceWithUnknownEnterpriseLocationError",e.EnterpriseLocationWithUnknownSibling="EnterpriseLocationWithUnknownSibling",e.EnterpriseLocationInstanceWithUnknownSibling="EnterpriseLocationInstanceWithUnknownSibling",e.EnterpriseVenueWithUnknownTopLocationError="EnterpriseVenueWithUnknownTopLocationError",e.EnterpriseLocationWithInvalidPrimaryCategory="EnterpriseLocationWithInvalidPrimaryCategory"})(Mn||(Mn={}));var c3=o(e=>{var b,v,C,A,x,E,S,D,I,k,V,z,M,T,Z,j,W,$,q,J;if(e.cms==null)return ue(!0);let t=e.cms,r=Mt(e.cms.categories,G=>G.id,"cms.categories");if(r.isErr())return r;let n=new Set((v=(b=e.locationCategories)==null?void 0:b.map(G=>G.id))!=null?v:[]);for(let G of(C=t.categories)!=null?C:[])if(!n.has(G.categoryId))return se({kind:Mn.EnterpriseCategoryWithUnknownLocationCategoryError,properties:{enterpriseCategoryId:G.id,locationCategoryId:G.categoryId}});let i=Mt(e.cms.locations,G=>G.id,"cms.locations");if(i.isErr())return i;let a=new Map((x=(A=e.locations)==null?void 0:A.map(G=>[G.id,G]))!=null?x:[]);for(let G of(E=t.locations)!=null?E:[]){if(!a.has(G.locationId))return se({kind:Mn.EnterpriseLocationWithUnknownLocationError,properties:{enterpriseLocationId:G.id,locationId:G.locationId}});for(let ae of(S=G.siblingGroups)!=null?S:[])for(let te of(D=ae.siblings)!=null?D:[])if(!a.has(te))return se({kind:Mn.EnterpriseLocationWithUnknownSibling,properties:{enterpriseLocationId:G.id,siblingLocationId:te,label:ae.label}});if(G.primaryCategory!=null){let ae=a.get(G.locationId);if(ae!=null&&!ae.categories.includes(G.primaryCategory))return se({kind:Mn.EnterpriseLocationWithInvalidPrimaryCategory,properties:{enterpriseLocationId:G.id,locationId:G.locationId,primaryCategory:G.primaryCategory}})}}if(((I=t.venue)==null?void 0:I.topLocations)!=null){for(let G of t.venue.topLocations)if(!a.has(G))return se({kind:Mn.EnterpriseVenueWithUnknownTopLocationError,properties:{locationId:G}})}let u=new Set((V=(k=e.cms.locations)==null?void 0:k.map(G=>G.id))!=null?V:[]),s=Mt(e.cms.locationInstances,G=>G.id,"cms.locationInstances");if(s.isErr())return s;let d=new Set((M=(z=e.locationInstances)==null?void 0:z.map(G=>G.id))!=null?M:[]);for(let G of(T=t.locationInstances)!=null?T:[]){if(!u.has(G.parentId))return se({kind:Mn.InstanceWithUnknownEnterpriseLocationError,properties:{enterpriseLocationInstanceId:G.id,enterpriseLocationId:G.parentId}});if(!d.has(G.locationInstanceId))return se({kind:Mn.InstanceWithUnknownLocationInstanceError,properties:{enterpriseLocationInstanceId:G.id,locationInstanceId:G.locationInstanceId}});for(let ae of(Z=G.siblingGroups)!=null?Z:[])for(let te of(j=ae.siblings)!=null?j:[])if(!a.has(te))return se({kind:Mn.EnterpriseLocationInstanceWithUnknownSibling,properties:{enterpriseLocationInstanceId:G.id,siblingLocationId:te,label:ae.label}})}let m=Pn(e),f=Zt(e),g=Mt(e.cms.floorText,G=>G.properties.id,"cms.floorText");if(g.isErr())return g;for(let[G,ae]of Ir((W=t.floorText)!=null?W:{})){let te=m(G);if(te.isErr())return te;for(let ee of ae.features){if(!("geometryId"in ee.properties))continue;let le=f(G,ee.properties.geometryId);if(le.isErr())return le}}for(let[G,ae]of Ir(($=t.textures)!=null?$:{})){let te=m(G);if(te.isErr())return te;for(let ee of ae){let le=f(G,ee.geometryId);if(le.isErr())return le}}for(let[G,ae]of Ir((q=t.layers)!=null?q:{})){let te=m(G);if(te.isErr())return te;for(let ee of et(ae!=null?ae:{})){let le=f(G,ee);if(le.isErr())return le}}for(let[G,ae]of Ir((J=t.textAreas)!=null?J:{})){let te=m(G);if(te.isErr())return te;for(let ee of ae.features)if("geometryId"in ee.properties){let le=f(G,ee.properties.geometryId);if(le.isErr())return le}}return ue(!0)},"validateCMS");l();l();var Rs=Bt("el","EnterpriseLocationId"),Sh=Bt("ec","EnterpriseCategoryId"),wh=Bt("eli","EnterpriseLocationInstanceId"),Ah=Bt("ev","EnterpriseVenueId"),Fh=Bt("eft","EnterpriseFloorTextId"),l3=[Rs,Sh,wh,Ah,Fh];var d3=p.Object({id:p.Ref(Sh),categoryId:p.Ref(Ri),color:p.Optional(p.String()),sortOrder:p.Number(),iconFromDefaultList:p.Optional(p.Union([p.String(),p.Null()])),picture:p.Optional(p.String({format:"uri",description:"The category's picture"}))},{$id:"EnterpriseCategory"}),Oh=p.Object({categories:p.Optional(p.Array(p.Ref(d3)))},{$id:"EnterpriseCategoriesSchema"}),m3=[d3,Oh];l();var $d=mr(["left","center","right"]),c7=$d.schema,Rae=$d.values,Nae=$d.record,Uae=$d.is,Ph=p.Object({id:p.Ref(Fh),text:p.String(),visible:p.Boolean({default:!0}),fontSize:p.Number({default:12,exclusiveMinimum:0}),fontFamily:p.String({default:"Droid Sans"}),color:p.String({default:"black"}),rotation:p.Number({minimum:0,maximum:360}),align:c7},{$id:"FloorTextCommonProperties"}),Bh=p.Intersect([p.Ref(Ph),yn],{$id:"AnchoredFloorTextProperties"}),Mh=p.Intersect([p.Ref(Ph),p.Object({verticalOffset:p.Number()})],{$id:"FloatingFloorTextProperties"}),p3=p.Union([p.Ref(Bh),p.Ref(Mh)],{$id:"FloorTextProperties"}),f3=ar(yr,p.Ref(p3),{$id:"FloorTextFeature"}),l7=ar(yr,p.Ref(Bh),{$id:"AnchoredFloorTextFeature"}),d7=ar(yr,p.Ref(Mh),{$id:"FloatingFloorTextFeature"}),h3=Br(p.Ref(f3),{$id:"EnterpriseFloorTextFeatureCollection"}),g3=p.Record(Re,p.Ref(h3),{$id:"EnterpriseFloorTextCollectionsByFloor",additionalProperties:!1}),Th=p.Object({floorText:p.Optional(p.Ref(g3))},{$id:"EnterpriseFloorTextSchema"}),y3=[Ph,Bh,Mh,p3,f3,l7,d7,h3,g3,Th];l();var b3=Tt(p.Record(br,p.String({minLength:1}),{additionalProperties:!1,$id:"EnterpriseLayers"})),v3=Tt(p.Record(Re,p.Ref(b3),{additionalProperties:!1,$id:"EnterpriseLayersByFloor"})),kh=p.Object({layers:p.Optional(p.Ref(v3))},{$id:"EnterpriseLayersSchema"}),x3=[b3,v3,kh];l();l();l();var{schema:E3,values:Jae,record:Xae,is:Yae}=mr(["reference-point","checkpoint","checkpoint-passport","parent"],{$id:"EnterpriseSiblingGroupType"}),Gd=mr(["closed-temporarily","new","pop-up","coming-soon","relocated"]),m7=Gd.schema,Qae=Gd.values,eue=Gd.record,tue=Gd.is,_h=p.Object({type:m7,start:p.Optional(p.String({format:"date",description:"The start date of the state"})),end:p.Optional(p.String({format:"date",description:"The end date of the state"}))},{$id:"LocationState",description:"The state of a location. Start and end dates are optional."}),Lh=p.Object({label:p.String(),siblings:p.Array(p.Ref(Ni)),type:p.Optional(p.Ref(E3)),subtype:p.Optional(p.String())},{$id:"SiblingGroup"}),Zd=p.Object({name:p.String(),code:p.String()},{$id:"Language"}),I3=[_h,Lh,Zd,E3];var Vd=p.Object({id:p.Ref(Rs),locationId:p.Ref(Ni),cmsId:p.String(),type:p.String(),sortOrder:p.Number(),tags:p.Optional(p.Array(p.String())),picture:p.Optional(p.String({format:"uri",description:"The picture of the location"})),states:p.Optional(p.Array(p.Ref(_h),{description:"The location's state. No more than one state should be active at a time, and all but at most one should have dates set"})),siblingGroups:p.Optional(p.Array(p.Ref(Lh))),gallery:p.Optional(p.Array(p.Object({caption:p.Optional(p.String()),image:p.String({format:"uri"}),embeddedUrl:p.Optional(p.String({format:"uri",description:"The URL to link from the image"}))},{description:"The location's image gallery"}),{description:"The location's image gallery"})),showFloatingLabelWhenImagePresent:p.Optional(p.Boolean({description:"Whether to show the flat label when an image is present"})),amenity:p.Optional(p.String({description:"The location's amenity type. Only set if the location is an amenity"})),showLogo:p.Optional(p.Boolean({description:"Whether to show the logo of the location"})),primaryCategory:p.Optional(p.Ref(Ri)),headerImage:p.Optional(p.String({format:"uri",description:"The location's header image"}))},{$id:"EnterpriseLocation"}),Rh=p.Object({locations:p.Optional(p.Array(p.Ref(Vd)))},{$id:"EnterpriseLocationsSchema"}),C3=[Vd,Rh];var D3=p.Intersect([p.Object({id:p.Ref(wh),parentId:p.Ref(Rs),locationInstanceId:p.Ref(Nd)}),p.Partial(p.Omit(Vd,["id","parentId","locationId"]))],{$id:"EnterpriseLocationInstance",description:"A locationInstance is a particular instance of an Enterprise Location that has some properties different from the parent."}),Nh=p.Object({locationInstances:p.Optional(p.Array(p.Ref(D3)))},{$id:"EnterpriseLocationInstancesSchema"}),S3=[D3,Nh];l();var Wd=mr(["near","center"],{$id:"EnterpriseTextAreaAlignment"}),w3=Wd.schema,xue=Wd.values,Eue=Wd.record,Iue=Wd.is,Uh=p.Object({maxWidth:p.Number({exclusiveMinimum:0,description:"The maximum width of the label, in meters."}),maxHeight:p.Number({exclusiveMinimum:0,description:"The maximum height of the label, in meters."}),align:p.Ref(w3),rotation:p.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"EnterpriseBaseTextAreaProperties"}),A3=p.Intersect([p.Ref(Uh),yn],{$id:"EnterpriseAnchoredTextAreaProperties"}),F3=p.Intersect([p.Ref(Uh),p.Object({verticalOffset:p.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"EnterpriseFloatingTextAreaProperties"}),O3=p.Union([A3,F3],{$id:"EnterpriseTextAreaProperties"}),P3=ar(p.Ref(yr),O3,{$id:"EnterpriseTextAreaFeature"}),B3=Br(p.Ref(P3),{$id:"EnterpriseTextAreaCollection"}),M3=p.Record(Re,p.Ref(B3),{$id:"EnterpriseTextAreasByFloor",additionalProperties:!1}),T3=p.Object({textAreas:p.Optional(p.Ref(M3))},{$id:"EnterpriseTextAreasSchema"}),k3=[w3,Uh,A3,F3,O3,P3,B3,M3];l();var jh=p.Object({u:p.Number(),v:p.Number()},{$id:"EnterpriseTextureUV"}),Hd=mr(["top","side"],{$id:"EnterpriseTextureFace"}),_3=Hd.schema,Aue=Hd.values,Fue=Hd.record,Oue=Hd.is,Kd=mr(["inside","outside","both"],{$id:"EnterpriseTextureSurface"}),L3=Kd.schema,Pue=Kd.values,Bue=Kd.record,Mue=Kd.is,R3=p.Tuple([Xa,Ya,Xa,Ya],{$id:"EnterpriseTextureBounds"}),N3=p.Intersect([p.Object({repeat:p.Ref(jh),offset:p.Ref(jh),rotation:p.Number({minimum:0,maximum:360}),path:p.String({format:"uri"}),face:p.Ref(_3),surface:p.Ref(L3),bounds:p.Ref(R3)},{$id:"EnterpriseTextureProperties"}),yn],{$id:"EnterpriseTexture"}),U3=p.Array(p.Ref(N3),{$id:"EnterpriseTextures"}),j3=p.Record(Re,p.Ref(U3),{$id:"EnterpriseTexturesByFloor",additionalProperties:!1}),zh=p.Object({textures:p.Optional(p.Ref(j3))},{$id:"EnterpriseTexturesSchema"}),z3=[N3,U3,zh,jh,_3,L3,R3,j3];l();var{schema:$3,values:jue,record:zue,is:$ue}=mr(["agriculture","airport","casino","city-district","convention-center","entertainment","event-centre","first-responder-building","government-building","grocery-store","healthcare","higher-education","hotel","library","manufacturing","medical-centre","mixed-use","multifamily","museum","office-building","oil-and-energy","other","parking-facility","religious-institution","resort","retail-store","schools-k-12","shopping-mall","stadium-or-arena","storage-facility","theme-park","transit","transportation-hub","warehousing"],{$id:"EnterpriseVenueType"}),G3=p.Intersect([p.Object({id:p.Ref(Ah),slug:p.String(),defaultLanguage:p.Ref(Zd),languages:p.Array(p.Ref(Zd)),countrycode:p.Optional(p.String()),logo:p.Optional(p.String({format:"uri"})),mappedinWebUrl:p.Optional(p.String({format:"uri"})),topLocations:p.Optional(p.Array(p.Ref(Ni))),operationHours:p.Optional(p.Array(p.Ref(Ud))),coverImage:p.Optional(p.String({format:"uri"})),type:p.Optional(p.Ref($3))}),Ho(["name"]),Bn],{$id:"EnterpriseVenue"}),$h=p.Object({venue:p.Optional(p.Ref(G3))},{$id:"EnterpriseVenueSchema"}),Z3=[G3,$h,$3];var W3=p.Intersect([$h,Rh,Nh,Oh,zh,Th,kh,T3],{$id:"CMSProperties"}),V3=p.Object({cms:p.Optional(p.Ref(W3))},{$id:"CMSExtensionSchema"}),p7=/^cms\/(?:([^/]+)\/)?([^/]+)\.(?:json|geojson)$/,H3={name:"ext:cms",schema:V3,intoBundle:o(function*(e){var r,n,i,a,u,s;if(e.cms==null)return;let t=e.cms;for(let d of et(t))switch(d){case"floorText":for(let m of et((r=t.floorText)!=null?r:{}))yield{path:"cms/floorText/".concat(m,".geojson"),contents:((n=t.floorText)!=null?n:{})[m]};continue;case"textures":for(let m of et((i=t.textures)!=null?i:{}))yield{path:"cms/textures/".concat(m,".json"),contents:((a=t.textures)!=null?a:{})[m]};continue;case"textAreas":for(let m of et((u=t.textAreas)!=null?u:{}))yield{path:"cms/textAreas/".concat(m,".geojson"),contents:((s=t.textAreas)!=null?s:{})[m]};continue;default:yield{path:"cms/".concat(d,".json"),contents:t[d]};continue}},"intoBundle"),fromBundle:o((e,t,r)=>{let n=e.match(p7);if(!n)return;let[,i,a]=n,u=r(t);switch(i){case"floorText":case"textures":case"textAreas":return{cms:{[i]:{[a]:u}}};default:return{cms:{[a]:u}}}},"fromBundle"),references:[W3,V3,...Z3,...C3,...S3,...m3,...z3,...x3,...y3,...k3,...l3,...I3,...zd],integrityCheck:c3};l();l();l();l();var Tn;(function(e){e.NavigationFlagMissingDeclaration="NavigationFlagMissingDeclaration",e.NavigationFlagDuplicateBit="NavigationFlagDuplicateBit",e.NavigationFlagIncorrectFlagsLength="NavigationFlagIncorrectFlagsLength",e.NavigationFlagValueTooBig="NavigationFlagValueTooBig"})(Tn||(Tn={}));var K3=o(e=>{let{navigationFlags:t}=e;if(!t||Object.keys(t).length===0)return ue(!0);let r=Object.entries(t).map(([a,u])=>R({key:a},u)).sort((a,u)=>a.index!==u.index?a.index-u.index:a.bit-u.bit),n=0,i=-1;for(let a of r){if(a.bit===i)return se({kind:Tn.NavigationFlagDuplicateBit,properties:{index:a.index,bit:a.bit,path:"navigationFlags.".concat(a.key)}});if(a.index!=n){if(i!=31)return se({kind:Tn.NavigationFlagMissingDeclaration,properties:{index:n,bit:i+1,path:"navigationFlags"}});if(a.index!=n+1||a.bit!=0)return se({kind:Tn.NavigationFlagMissingDeclaration,properties:{index:n+1,bit:0,path:"navigationFlags"}});n=a.index,i=0}else{if(a.bit!==i+1)return se({kind:Tn.NavigationFlagMissingDeclaration,properties:{index:a.index,bit:i+1,path:"navigationFlags"}});i=a.bit}}return ue(!0)},"validateNavigationFlags");l();var q3=2**32-1,Ns=o(e=>{var i;let t=Object.keys((i=e.navigationFlags)!=null?i:{}).length;if(t===0)return{index:-1,flag:0};let r=Math.floor(t/32),n=t%32;return{index:r,flag:2**n-1}},"determineMaxNavigationFlags"),Cu=o((e,t,r)=>{if(t.index==-1&&e.length===0)return ue(!0);let n=t.flag>0||t.index===-1?t.index+1:t.index;if(e.length!==n)return se({kind:Tn.NavigationFlagIncorrectFlagsLength,properties:{expected:n,actual:e.length,path:r}});for(let i=0;i<e.length;i++){let a=e[i];if(i<t.index){if(a>q3)return se({kind:Tn.NavigationFlagValueTooBig,properties:{index:i,flagValue:a,expectedMaxFlagValue:q3,path:r}});continue}else if(a>t.flag)return se({kind:Tn.NavigationFlagValueTooBig,properties:{index:i,flagValue:a,expectedMaxFlagValue:t.flag,path:r}})}return ue(!0)},"validateFlags");var f7=p.Object({index:p.Integer({description:"The index of the flag in a flags array.",minimum:0}),bit:p.Integer({description:"The bit position of the flag in a flag's bitfield.",minimum:0,maximum:31})},{$id:"NavigationFlagDeclarationCore"}),J3=p.Intersect([f7,Hr],{$id:"NavigationFlagDeclaration",description:'A NavigationFlagDeclaration describes the relationship between a "key" that a developer might use to wayfind using that flag, and the index and bit position in an object\'s `flags` array.'});var X3=p.Record(p.String(),J3,{$id:"NavigationFlagDeclarations",description:"Any well known and custom flags present in the MVF"}),h7=p.Object({navigationFlags:p.Ref(X3)},{$id:"NavigationFlagsSchema"}),qd=p.Array(p.Integer({minimum:0,maximum:Math.pow(2,32)-1}),{$id:"Flags"}),Gh=p.Object({flags:p.Ref(qd)},{$id:"WithFlags"}),ta=p.Intersect([Iu,Gh],{$id:"FlaggedGeometryAnchor"}),g7=p.Object({geometryAnchor:ta},{$id:"WithFlaggedGeometryAnchor"}),y7=p.Object({geometryAnchors:p.Array(ta)},{$id:"WithFlaggedGeometryAnchors"}),Y3={name:"ext:mvf-navigation-flags",schema:h7,intoBundle:o(function*(e){e.navigationFlags!=null&&(yield{path:"navigationFlags.json",contents:e.navigationFlags})},"intoBundle"),fromBundle:o((e,t,r)=>e!=="navigationFlags.json"?void 0:{navigationFlags:r(t)},"fromBundle"),references:[J3,X3,qd,ta,g7,y7],integrityCheck:K3};l();var Q3=o(e=>{if(e.connections==null)return ue(!0);let t=Mt(e.connections,i=>i.id,"connections");if(t.isErr())return t;let r=Zt(e),n=Ns(e);for(let[i,a]of e.connections.entries()){for(let[u,s]of a.entrances.entries()){let d=r(s.floorId,s.geometryId);if(d.isErr())return d;let m=Cu(s.flags,n,"connections[".concat(i,"].entrances[").concat(u,"]"));if(m.isErr())return m}for(let[u,s]of a.exits.entries()){let d=r(s.floorId,s.geometryId);if(d.isErr())return d;let m=Cu(s.flags,n,"connections[".concat(i,"].exits[").concat(u,"]"));if(m.isErr())return m}}return ue(!0)},"validateConnections");var tE=Bt("c","ConnectionId"),{schema:b7,values:jse,record:zse,is:$se}=mr(["elevator","escalator","travelator","stairs","door","ramp","ladder"],{$id:"ConnectionType"}),rE=b7;var nE=p.Intersect([p.Object({id:p.Ref(tE,{description:"The unique identifier for the connection."}),entrances:p.Array(p.Ref(ta)),exits:p.Array(p.Ref(ta)),entryCost:p.Number({description:"The cost to enter the connection.",minimum:0}),floorCostMultiplier:p.Number({description:"The cost multiplier for each floor transitioned.",minimum:1}),type:p.Ref(rE,{description:"The type of connection."})}),Hr,Bn],{$id:"ConnectionsProperties"}),iE=p.Array(p.Ref(nE),{$id:"ConnectionsCollection"}),v7=p.Object({connections:p.Ref(iE)},{$id:"ConnectionsExtensionSchema"}),eE="connections.json",oE={name:"ext:connections",schema:v7,intoBundle:o(function*(e){e.connections!=null&&(yield{path:eE,contents:e.connections})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e===eE)return{connections:r(t)}},"fromBundle"),references:[nE,iE,rE,tE,ta,qd],integrityCheck:Q3};l();l();var aE=o(e=>{if(e.defaultStyle==null)return ue(!0);let t=Zt(e);for(let r of Object.values(e.defaultStyle))if(r!=null)for(let n of r.geometryAnchors){let i=t(n.floorId,n.geometryId);if(i.isErr())return i}return ue(!0)},"validateDefaultStyle");var uE=p.Intersect([_s(),Bn,p.Object({altitude:p.Number({description:"How far off the bottom of the floor the objects with this style should be drawn, in meters."}),color:p.String({pattern:"^#[0-9a-fA-F]{6}$",description:"Color should be represented with a hash (#), followed by 6 hexadecimal digits. ex: #RRGGBB"}),height:p.Number({minimum:0,description:"The height of the objects belonging to this layer, in meters."}),opacity:p.Number({minimum:0,maximum:1,description:"The opacity of the objects belonging to this layer, from 0 to 1."}),buffer:p.Number({description:"The buffer amount to apply to the geometry, in meters. This can be used to inflate line string geometry for walls, but might also be applicable as a way to grow or shrink polygon geometry for aesthetic purposes. Can be negative."}),hidden:p.Optional(p.Boolean({description:"Whether or not the objects with this style should be hidden."}))})],{$id:"DefaultStyle"}),sE=p.Record(p.String(),p.Ref(uE),{$id:"DefaultStyleCollection",additionalProperties:!1}),x7=p.Object({defaultStyle:p.Ref(sE)},{$id:"DefaultStyleSchema"}),cE={name:"ext:mvf-default-style",schema:x7,intoBundle:o(function*(e){e.defaultStyle!=null&&(yield{path:"default-style.json",contents:e.defaultStyle})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e==="default-style.json")return{defaultStyle:r(t)}},"fromBundle"),references:[uE,sE],integrityCheck:aE};l();l();l();l();var Jd;(function(e){e.InvalidDefaultFloorError="InvalidDefaultFloorError"})(Jd||(Jd={}));var lE=o(e=>{if(e.floorStacks==null)return ue(!0);let t=Mt(e.floorStacks,n=>n.id,"floorStacks");if(t.isErr())return t;let r=Pn(e);for(let n of e.floorStacks){for(let i of n.floors){let a=r(i);if(a.isErr())return a}if(n.defaultFloor!=null&&!n.floors.includes(n.defaultFloor))return se({kind:Jd.InvalidDefaultFloorError,properties:{floorStackId:n.id,floorId:n.defaultFloor}})}return ue(!0)},"validateFloorStacks");var Us=Bt("fs","FloorStackId"),mE=p.Intersect([p.Object({id:p.Ref(Us,{description:"The unique identifier for the floor stack."}),floors:p.Array(p.Ref(Re),{uniqueItems:!0,minItems:1,description:"The floors that are part of this floor stack."}),defaultFloor:p.Optional(p.Ref(Re,{description:"The default floor for the floor stack."}))}),Hr],{$id:"FloorStacksProperties"}),pE=p.Array(p.Ref(mE),{$id:"FloorStackCollection"}),E7=p.Object({floorStacks:p.Ref(pE)},{$id:"FloorStackExtensionSchema"}),dE="floor-stacks.json",fE={name:"ext:floor-stacks",schema:E7,intoBundle:o(function*(e){e.floorStacks!=null&&(yield{path:dE,contents:e.floorStacks})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e===dE)return{floorStacks:r(t)}},"fromBundle"),references:[Us,mE,pE],integrityCheck:lE};l();l();var js;(function(e){e.MissingFloorStackError="MissingFloorStackError",e.UnknownFloorStackError="UnknownFloorStackError"})(js||(js={}));var hE=o(e=>{if(e.facade==null)return ue(!0);if(e.floorStacks==null)return se({kind:js.MissingFloorStackError,properties:null});let t=new Set(e.floorStacks.map(i=>i.id)),r=Zt(e),n=Pn(e);for(let[i,a]of Ir(e.facade)){if(a==null)continue;let u=n(i);if(u.isErr())return u;for(let s of a){let{floorStackId:d,geometryIds:m}=s;if(!t.has(d))return se({kind:js.UnknownFloorStackError,properties:{floorStackId:d}});for(let f of m){let g=r(i,f);if(g.isErr())return g}}}return ue(!0)},"validateFacade");var gE=p.Intersect([p.Object({floorStackId:p.Ref(Us)}),yu],{$id:"Facade"}),I7=p.Object({facade:Tt(p.Record(Re,p.Array(p.Ref(gE)),{additionalProperties:!1}))},{$id:"FacadeExtensionSchema"}),C7=/^facade\/(.*)\.json$/,yE={name:"ext:facade",schema:I7,intoBundle:o(function*(e){if(e.facade!=null)for(let t of et(e.facade))yield{path:"facade/".concat(t,".json"),contents:e.facade[t]}},"intoBundle"),fromBundle:o((e,t,r)=>{var i;let n=(i=e.match(C7))==null?void 0:i[1];if(n)return{facade:{[n]:r(t)}}},"fromBundle"),references:[Us,gE],integrityCheck:hE};l();l();var bE=o(e=>{if(e.floorImages==null)return ue(!0);let t=Zt(e);for(let[r,n]of Ir(e.floorImages))if(n!=null)for(let i of n.features){if(!("geometryId"in i.properties))continue;let a=i.properties.geometryId,u=t(r,a);if(u.isErr())return u}return ue(!0)},"validateFloorImages");var Zh=p.Object({path:p.String({format:"uri",description:"The path to the image. This will be a remote URL."}),width:p.Number({minimum:0,description:"The width of the image when represented on the map, in meters."}),height:p.Number({minimum:0,description:"The height of the image when represented on the map, in meters."}),rotation:p.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"BaseFloorImageProperties"}),vE=p.Intersect([p.Ref(Zh),yn],{$id:"AnchoredFloorImageProperties"}),xE=p.Intersect([p.Ref(Zh),p.Object({verticalOffset:p.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"FloatingFloorImageProperties"}),EE=p.Union([vE,xE],{$id:"FloorImageProperties"}),IE=ar(p.Ref(yr),EE,{$id:"FloorImageFeature"}),CE=Br(p.Ref(IE),{$id:"FloorImageCollection"}),D7=p.Object({floorImages:Tt(p.Record(Re,p.Ref(CE),{additionalProperties:!1}))},{$id:"FloorImagesExtensionSchema"}),S7=/^floorImages\/(.*)\.geojson$/,DE={name:"ext:floor-images",schema:D7,intoBundle:o(function*(e){if(e.floorImages!=null)for(let t of et(e.floorImages))yield{path:"floorImages/".concat(t,".geojson"),contents:e.floorImages[t]}},"intoBundle"),fromBundle:o((e,t,r)=>{var i;let n=(i=e.match(S7))==null?void 0:i[1];if(n)return{floorImages:{[n]:r(t)}}},"fromBundle"),references:[Zh,vE,xE,EE,IE,CE],integrityCheck:bE};l();l();var SE=o(e=>{if(e.kinds==null)return ue(!0);let t=Zt(e);for(let[r,n]of Ir(e.kinds))if(n!=null)for(let i of et(n)){let a=t(r,i);if(a.isErr())return a}return ue(!0)},"validateKinds");var{values:lle,schema:w7,record:dle}=mr(["room","hallway","wall","object","poi","area","window"],{$id:"Kind"}),wE=w7;var AE=Tt(p.Record(br,p.Ref(wE),{additionalProperties:!1,$id:"GeometryKinds"})),A7=p.Object({kinds:Tt(p.Record(Re,p.Ref(AE),{additionalProperties:!1}))},{$id:"KindsExtensionSchema"}),F7=/^kinds\/(.*)\.json$/,FE={name:"ext:kinds",schema:A7,intoBundle:o(function*(e){if(e.kinds!=null)for(let t of et(e.kinds))yield{path:"kinds/".concat(t,".json"),contents:e.kinds[t]}},"intoBundle"),fromBundle:o((e,t,r)=>{var i;let n=(i=e.match(F7))==null?void 0:i[1];if(n)return{kinds:{[n]:r(t)}}},"fromBundle"),references:[wE,AE],integrityCheck:SE};l();l();l();var zs;(function(e){e.UnknownNeighbor="UnknownNeighbor",e.SelfReference="SelfReference"})(zs||(zs={}));var OE=o(e=>{if(e.nodes==null)return ue(!0);let t=Mt(e.nodes,i=>i.properties.id,"nodes");if(t.isErr())return t;let r=Zt(e),n=Ns(e);for(let[i,a]of Ir(e.nodes)){if(a==null)continue;let u=new Set(a.features.map(s=>s.properties.id));for(let[s,d]of a.features.entries()){for(let m of d.properties.geometryIds){let f=r(i,m);if(f.isErr())return f}for(let[m,f]of d.properties.neighbors.entries()){if(!u.has(f.id))return se({kind:zs.UnknownNeighbor,properties:{floorId:i,nodeId:d.properties.id,neighborId:f.id}});if(f.id===d.properties.id)return se({kind:zs.SelfReference,properties:{floorId:i,nodeId:d.properties.id}});let g=Cu(f.flags,n,'nodes["'.concat(i,'"].features[').concat(s,"].properties.neighbors[").concat(m,"]"));if(g.isErr())return g}}}return ue(!0)},"validateNodes");var Vh=Bt("n","NodeId"),PE=p.Intersect([p.Object({id:p.Ref(Vh,{description:"The unique identifier for the node."}),extraCost:p.Number({minimum:0,description:"The extra cost to traverse to the node, above the straight-line distance."})}),Gh],{$id:"NodeNeighbor"}),BE=p.Intersect([p.Object({id:p.Ref(Vh,{description:"The unique identifier for the node."}),neighbors:p.Array(p.Ref(PE),{description:"The neighbors of the node."})}),yu],{$id:"NodeProperties"}),ME=ar(p.Ref(yr),BE,{$id:"NodeFeature"}),TE=Br(p.Ref(ME),{$id:"NodeCollection"}),O7=p.Object({nodes:Tt(p.Record(Re,p.Ref(TE),{additionalProperties:!1}))},{$id:"NodesExtensionSchema"}),P7=/^nodes\/(.*)\.(geo)?json$/,kE={name:"ext:nodes",schema:O7,intoBundle:o(function*(e){if(e.nodes!=null)for(let t of et(e.nodes))yield{path:"nodes/".concat(t,".geojson"),contents:e.nodes[t]}},"intoBundle"),fromBundle:o((e,t,r)=>{var i;let n=(i=e.match(P7))==null?void 0:i[1];if(n)return{nodes:{[n]:r(t)}}},"fromBundle"),references:[Vh,PE,BE,ME,TE],integrityCheck:OE};l();l();l();var Xd;(function(e){e.FloorInFloorStackError="FloorInFloorStackError"})(Xd||(Xd={}));var _E=o(e=>{if(e.outdoors==null)return ue(!0);let t=Pn(e);for(let r of e.outdoors.floors){let n=t(r);if(n.isErr())return n;if(e.floorStacks!=null){for(let i of e.floorStacks)if(i.floors.includes(r))return se({kind:Xd.FloorInFloorStackError,properties:{floorId:r,floorStackId:i.id}})}}return ue(!0)},"validateOutdoors");var RE=p.Object({floors:p.Array(p.Ref(Re),{uniqueItems:!0,description:"A list of floor IDs that should be considered to contain outdoor features."})},{$id:"Outdoors"}),B7=p.Object({outdoors:p.Ref(RE)},{$id:"OutdoorsExtensionSchema"}),LE="outdoors.json",NE={name:"ext:outdoors",schema:B7,intoBundle:o(function*(e){e.outdoors!=null&&(yield{path:LE,contents:e.outdoors})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e===LE)return{outdoors:r(t)}},"fromBundle"),references:[RE],integrityCheck:_E};l();l();l();var Yd;(function(e){e.TilesetDuplicateKeyError="TilesetDuplicateKeyError"})(Yd||(Yd={}));var UE=o(e=>{if(e.tileset==null)return ue(!0);let t=new Set;if(t.add(e.tileset.default.key),e.tileset.others)for(let r of e.tileset.others){if(t.has(r.key))return se({kind:Yd.TilesetDuplicateKeyError,properties:{key:r.key}});t.add(r.key)}return ue(!0)},"validateTilesets");var Wh=p.Object({key:p.String({minLength:1,description:"Unique identifier for the tileset style."}),name:p.String({minLength:1,description:"Display name of the tileset style."}),url:p.String({format:"uri",description:"URL of the tileset style."})},{$id:"TilesetStyle",description:"A tileset style definition."}),jE=p.Object({default:p.Ref(Wh,{description:"The default tileset style, which should be used."}),others:p.Optional(p.Array(p.Ref(Wh,{description:"Additional tileset styles that can be used."})))},{$id:"TilesetCollection"}),M7=p.Object({tileset:p.Ref(jE)},{$id:"TilesetExtensionSchema"}),zE={name:"ext:mvf-tileset",schema:M7,intoBundle:o(function*(e){e.tileset!=null&&(yield{path:"tileset.json",contents:e.tileset})},"intoBundle"),fromBundle:o((e,t,r)=>{if(e==="tileset.json")return{tileset:r(t)}},"fromBundle"),references:[Wh,jE],integrityCheck:UE};l();var $E=p.Object({},{$id:"WalkableProperties"}),GE=p.Object({},{$id:"NonWalkableProperties"}),ZE=Tt(p.Record(br,p.Ref($E),{$id:"WalkableGeometries",additionalProperties:!1})),VE=Tt(p.Record(br,p.Ref(GE),{$id:"NonWalkableGeometries",additionalProperties:!1})),T7=p.Object({walkable:Tt(p.Record(Re,p.Ref(ZE),{additionalProperties:!1})),nonwalkable:Tt(p.Record(Re,p.Ref(VE),{additionalProperties:!1}))},{$id:"TraversabilitySchema"}),k7=/^walkable\/(.*)\.json$/,_7=/^nonwalkable\/(.*)\.json$/,WE={name:"ext:mvf-traversability",schema:T7,intoBundle:o(function*(e){if(e.walkable!=null)for(let t of et(e.walkable))yield{path:"walkable/".concat(t,".json"),contents:e.walkable[t]};if(e.nonwalkable!=null)for(let t of et(e.nonwalkable))yield{path:"nonwalkable/".concat(t,".json"),contents:e.nonwalkable[t]}},"intoBundle"),fromBundle:o((e,t,r)=>{var a,u;let n=(a=e.match(k7))==null?void 0:a[1];if(n!=null)return{walkable:{[n]:r(t)}};let i=(u=e.match(_7))==null?void 0:u[1];if(i!=null)return{nonwalkable:{[i]:r(t)}}},"fromBundle"),references:[$E,GE,ZE,VE]};l();l();l();l();l();l();l();l();l();l();l();var j7=_c(qE(),1);l();l();l();l();var gpe=qx().extendOptional(Y3).extendOptional(kE).extendOptional(oE).extendOptional(FE).extendOptional(WE).extendOptional(cE).extendOptional(fE).extendOptional(NE).extendOptional(zE).extendOptional(DE).extendOptional(yE).extendOptional(Qx).extendOptional(s3).extendOptional(H3).build({cspSafe:!0}).expect("Invalid parser, this should never happen. Likely a bug in the MVFv2 library, or one of the extensions.");l();var Jh="\xA9 Mappedin",$7="https://info.mappedin.com/feedback",Yh=["top-left","top-right","bottom-left","bottom-right"],G7=640,Z7=o(()=>"<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill-rule='evenodd' viewBox='0 0 20 20'>\n <circle cx='10' cy='10' r='5.9' style='fill:rgba(255,255,255,1);'/>\n <path style='fill:rgba(0,0,0,0.7);' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/>\n </svg>","getAttributionButtonIcon"),Xh={custom:[],position:"bottom-right",feedback:!0},Du,Qh=class Qh{constructor(t,r={}){h(this,"controlContainerEl");h(this,"controlPositions");h(this,"compact");L(this,Du);h(this,"attribContainerEl");h(this,"attribInnerEl");h(this,"attribButtonEl");h(this,"feedbackLinkEl");h(this,"attribHTML",Jh);h(this,"customAttributions",[]);h(this,"toggleAttribution",o(t=>{this.attribContainerEl!=null&&(t.preventDefault(),this.attribContainerEl.classList.contains("mappedin-compact")&&(this.attribContainerEl.classList.contains("mappedin-compact-show")?(this.attribContainerEl.removeAttribute("open"),this.attribContainerEl.classList.remove("mappedin-compact-show")):(this.attribContainerEl.classList.add("mappedin-compact-show"),this.attribContainerEl.setAttribute("open",""))))},"toggleAttribution"));K(this,Du,!!r.outdoorEnabled),this.controlContainerEl=document.createElement("div"),this.controlContainerEl.classList.add("mappedin-control-container"),t.appendChild(this.controlContainerEl),this.controlPositions=Yh.reduce((n,i)=>{let a=document.createElement("div");return a.classList.add("mappedin-ctrl-".concat(i)),this.controlContainerEl.appendChild(a),n[i]=a,n},{})}addAttributionControl(t=Xh){var i;let r=t.position&&Yh.includes(t.position)?t.position:Xh.position;this.attribContainerEl=document.createElement("details"),this.attribContainerEl.classList.add("mappedin-ctrl-attrib","mappedin-ctrl-attrib-".concat(r)),this.attribContainerEl.open=!0,this.attribContainerEl.ariaLabel="Attribution",this.controlPositions[r].appendChild(this.attribContainerEl),this.attribButtonEl=document.createElement("summary"),this.attribButtonEl.addEventListener("click",this.toggleAttribution),this.attribButtonEl.classList.add("mappedin-ctrl-attrib-button"),this.attribButtonEl.title="Toggle attribution",this.attribButtonEl.ariaLabel="Toggle attribution",this.attribButtonEl.tabIndex=0,this.attribButtonEl.innerHTML=Z7(),this.attribContainerEl.appendChild(this.attribButtonEl),this.attribInnerEl=document.createElement("div"),this.attribInnerEl.classList.add("mappedin-ctrl-attrib-inner"),this.attribHTML=c(this,Du)?Jh:"",this.attribInnerEl.innerHTML=this.attribHTML,this.attribContainerEl.appendChild(this.attribInnerEl),((i=t.feedback)!=null?i:Xh.feedback)&&(this.feedbackLinkEl=document.createElement("a"),this.feedbackLinkEl.href=$7,this.feedbackLinkEl.target="_blank",this.feedbackLinkEl.rel="noopener",this.feedbackLinkEl.textContent="Provide Feedback",this.feedbackLinkEl.classList.add("mappedin-ctrl-attrib-inner"),this.feedbackLinkEl.classList.add("mappedin-ctrl-attrib-inner-bold"),this.attribContainerEl.appendChild(this.feedbackLinkEl)),t.custom&&(this.customAttributions=t.custom),this.updateAttributionDisplay()}updateAttribution(t){if(!t.style||!this.attribInnerEl||!this.attribContainerEl)return;let r=c(this,Du)?[Jh]:[],n=t.style.sourceCaches;for(let i in n){let a=n[i];if(a.used||a.usedForTerrain){let u=a.getSource();u.attribution&&r.indexOf(u.attribution)<0&&r.push(u.attribution)}}r=r.filter(i=>String(i).trim()),r=r.filter((i,a)=>{for(let u=a+1;u<r.length;u++)if(r[u].indexOf(i)>=0)return!1;return!0}),this.attribHTML=r.join(" "),this.updateAttributionDisplay()}updateAttributionDisplay(){let t=[...new Set([this.attribHTML,...this.customAttributions])].filter(Boolean).join(" ");this.attribInnerEl&&(this.attribInnerEl.innerHTML=t)}resizeAttribution(t){this.attribContainerEl&&(t<=G7||this.compact?this.compact===!1?this.attribContainerEl.setAttribute("open",""):!this.attribContainerEl.classList.contains("mappedin-compact")&&!this.attribContainerEl.classList.contains("mappedin-attrib-empty")&&(this.attribContainerEl.setAttribute("open",""),this.attribContainerEl.classList.add("mappedin-compact","mappedin-compact-show")):(this.attribContainerEl.setAttribute("open",""),this.attribContainerEl.classList.contains("mappedin-compact")&&this.attribContainerEl.classList.remove("mappedin-compact","mappedin-compact-show")))}destroyAttributionControl(){this.attribButtonEl&&this.attribButtonEl.removeEventListener("click",this.toggleAttribution),this.attribContainerEl&&(this.attribContainerEl.remove(),this.attribContainerEl=void 0,this.attribInnerEl=void 0,this.attribButtonEl=void 0)}resize(t){this.resizeAttribution(t)}updateData(t){this.updateAttribution(t)}destroy(){this.destroyAttributionControl(),this.controlContainerEl.remove(),this.compact=void 0}};Du=new WeakMap,o(Qh,"HTMLControlsSystem");var em=Qh;l();l();var bn=Object.freeze({Linear:Object.freeze({None:o(function(e){return e},"None"),In:o(function(e){return e},"In"),Out:o(function(e){return e},"Out"),InOut:o(function(e){return e},"InOut")}),Quadratic:Object.freeze({In:o(function(e){return e*e},"In"),Out:o(function(e){return e*(2-e)},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},"InOut")}),Cubic:Object.freeze({In:o(function(e){return e*e*e},"In"),Out:o(function(e){return--e*e*e+1},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},"InOut")}),Quartic:Object.freeze({In:o(function(e){return e*e*e*e},"In"),Out:o(function(e){return 1- --e*e*e*e},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},"InOut")}),Quintic:Object.freeze({In:o(function(e){return e*e*e*e*e},"In"),Out:o(function(e){return--e*e*e*e*e+1},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},"InOut")}),Sinusoidal:Object.freeze({In:o(function(e){return 1-Math.sin((1-e)*Math.PI/2)},"In"),Out:o(function(e){return Math.sin(e*Math.PI/2)},"Out"),InOut:o(function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))},"InOut")}),Exponential:Object.freeze({In:o(function(e){return e===0?0:Math.pow(1024,e-1)},"In"),Out:o(function(e){return e===1?1:1-Math.pow(2,-10*e)},"Out"),InOut:o(function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},"InOut")}),Circular:Object.freeze({In:o(function(e){return 1-Math.sqrt(1-e*e)},"In"),Out:o(function(e){return Math.sqrt(1- --e*e)},"Out"),InOut:o(function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},"InOut")}),Elastic:Object.freeze({In:o(function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},"In"),Out:o(function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},"Out"),InOut:o(function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)},"InOut")}),Back:Object.freeze({In:o(function(e){var t=1.70158;return e===1?1:e*e*((t+1)*e-t)},"In"),Out:o(function(e){var t=1.70158;return e===0?0:--e*e*((t+1)*e+t)+1},"Out"),InOut:o(function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},"InOut")}),Bounce:Object.freeze({In:o(function(e){return 1-bn.Bounce.Out(1-e)},"In"),Out:o(function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375},"Out"),InOut:o(function(e){return e<.5?bn.Bounce.In(e*2)*.5:bn.Bounce.Out(e*2-1)*.5+.5},"InOut")}),generatePow:o(function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:o(function(t){return Math.pow(t,e)},"In"),Out:o(function(t){return 1-Math.pow(1-t,e)},"Out"),InOut:o(function(t){return t<.5?Math.pow(t*2,e)/2:(1-Math.pow(2-t*2,e))/2+.5},"InOut")}},"generatePow")}),$s=o(function(){return performance.now()},"now"),tm=function(){function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,t)}return o(e,"Group"),e.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map(function(r){return t._tweens[r]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var i=0,a=r;i<a.length;i++){var u=a[i];(t=u._group)===null||t===void 0||t.remove(u),u._group=this,this._tweens[u.getId()]=u,this._tweensAddedDuringUpdate[u.getId()]=u}},e.prototype.remove=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];a._group=void 0,delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(t){return!t.isPlaying()})},e.prototype.update=function(t,r){t===void 0&&(t=$s()),r===void 0&&(r=!0);var n=Object.keys(this._tweens);if(n.length!==0)for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var i=0;i<n.length;i++){var a=this._tweens[n[i]],u=!r;a&&a.update(t,u)===!1&&!r&&this.remove(a)}n=Object.keys(this._tweensAddedDuringUpdate)}},e}(),Su={Linear:o(function(e,t){var r=e.length-1,n=r*t,i=Math.floor(n),a=Su.Utils.Linear;return t<0?a(e[0],e[1],n):t>1?a(e[r],e[r-1],r-n):a(e[i],e[i+1>r?r:i+1],n-i)},"Linear"),Bezier:o(function(e,t){for(var r=0,n=e.length-1,i=Math.pow,a=Su.Utils.Bernstein,u=0;u<=n;u++)r+=i(1-t,n-u)*i(t,u)*e[u]*a(n,u);return r},"Bezier"),CatmullRom:o(function(e,t){var r=e.length-1,n=r*t,i=Math.floor(n),a=Su.Utils.CatmullRom;return e[0]===e[r]?(t<0&&(i=Math.floor(n=r*(1+t))),a(e[(i-1+r)%r],e[i],e[(i+1)%r],e[(i+2)%r],n-i)):t<0?e[0]-(a(e[0],e[0],e[1],e[1],-n)-e[0]):t>1?e[r]-(a(e[r],e[r],e[r-1],e[r-1],n-r)-e[r]):a(e[i?i-1:0],e[i],e[r<i+1?r:i+1],e[r<i+2?r:i+2],n-i)},"CatmullRom"),Utils:{Linear:o(function(e,t,r){return(t-e)*r+e},"Linear"),Bernstein:o(function(e,t){var r=Su.Utils.Factorial;return r(e)/r(t)/r(e-t)},"Bernstein"),Factorial:function(){var e=[1];return function(t){var r=1;if(e[t])return e[t];for(var n=t;n>1;n--)r*=n;return e[t]=r,r}}(),CatmullRom:o(function(e,t,r,n,i){var a=(r-e)*.5,u=(n-t)*.5,s=i*i,d=i*s;return(2*t-2*r+a+u)*d+(-3*t+3*r-2*a-u)*s+a*i+t},"CatmullRom")}},JE=function(){function e(){}return o(e,"Sequence"),e.nextId=function(){return e._nextId++},e._nextId=0,e}(),eg=new tm,XE=function(){function e(t,r){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=bn.Linear.None,this._interpolationFunction=Su.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=JE.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=t,typeof r=="object"?(this._group=r,r.add(this)):r===!0&&(this._group=eg,eg.add(this))}return o(e,"Tween"),e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(t,r){if(r===void 0&&(r=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=t,this._propertiesAreSetUp=!1,this._duration=r<0?0:r,this},e.prototype.duration=function(t){return t===void 0&&(t=1e3),this._duration=t<0?0:t,this},e.prototype.dynamic=function(t){return t===void 0&&(t=!1),this._isDynamic=t,this},e.prototype.start=function(t,r){if(t===void 0&&(t=$s()),r===void 0&&(r=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,!this._propertiesAreSetUp||r){if(this._propertiesAreSetUp=!0,!this._isDynamic){var i={};for(var a in this._valuesEnd)i[a]=this._valuesEnd[a];this._valuesEnd=i}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,r)}return this},e.prototype.startFromCurrentValues=function(t){return this.start(t,!0)},e.prototype._setupProperties=function(t,r,n,i,a){for(var u in n){var s=t[u],d=Array.isArray(s),m=d?"array":typeof s,f=!d&&Array.isArray(n[u]);if(!(m==="undefined"||m==="function")){if(f){var g=n[u];if(g.length===0)continue;for(var b=[s],v=0,C=g.length;v<C;v+=1){var A=this._handleRelativeValue(s,g[v]);if(isNaN(A)){f=!1,console.warn("Found invalid interpolation list. Skipping.");break}b.push(A)}f&&(n[u]=b)}if((m==="object"||d)&&s&&!f){r[u]=d?[]:{};var x=s;for(var E in x)r[u][E]=x[E];i[u]=d?[]:{};var g=n[u];if(!this._isDynamic){var S={};for(var E in g)S[E]=g[E];n[u]=g=S}this._setupProperties(x,r[u],g,i[u],a)}else(typeof r[u]>"u"||a)&&(r[u]=s),d||(r[u]*=1),f?i[u]=n[u].slice().reverse():i[u]=r[u]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(t){return t===void 0&&(t=$s()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=t,this)},e.prototype.resume=function(t){return t===void 0&&(t=$s()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var t=0,r=this._chainedTweens.length;t<r;t++)this._chainedTweens[t].stop();return this},e.prototype.group=function(t){return t?(t.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var t;return(t=this._group)===null||t===void 0||t.remove(this),this},e.prototype.delay=function(t){return t===void 0&&(t=0),this._delayTime=t,this},e.prototype.repeat=function(t){return t===void 0&&(t=0),this._initialRepeat=t,this._repeat=t,this},e.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},e.prototype.yoyo=function(t){return t===void 0&&(t=!1),this._yoyo=t,this},e.prototype.easing=function(t){return t===void 0&&(t=bn.Linear.None),this._easingFunction=t,this},e.prototype.interpolation=function(t){return t===void 0&&(t=Su.Linear),this._interpolationFunction=t,this},e.prototype.chain=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return this._chainedTweens=t,this},e.prototype.onStart=function(t){return this._onStartCallback=t,this},e.prototype.onEveryStart=function(t){return this._onEveryStartCallback=t,this},e.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},e.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},e.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},e.prototype.onStop=function(t){return this._onStopCallback=t,this},e.prototype.update=function(t,r){var n=this,i;if(t===void 0&&(t=$s()),r===void 0&&(r=e.autoStartOnUpdate),this._isPaused)return!0;var a;if(!this._goToEnd&&!this._isPlaying)if(r)this.start(t,!0);else return!1;if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var u=t-this._startTime,s=this._duration+((i=this._repeatDelayTime)!==null&&i!==void 0?i:this._delayTime),d=this._duration+this._repeat*s,m=o(function(){if(n._duration===0||u>d)return 1;var A=Math.trunc(u/s),x=u-A*s,E=Math.min(x/n._duration,1);return E===0&&u===n._duration?1:E},"calculateElapsedPortion"),f=m(),g=this._easingFunction(f);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,g),this._onUpdateCallback&&this._onUpdateCallback(this._object,f),this._duration===0||u>=this._duration)if(this._repeat>0){var b=Math.min(Math.trunc((u-this._duration)/s)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=b);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=s*b,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var v=0,C=this._chainedTweens.length;v<C;v++)this._chainedTweens[v].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(t,r,n,i){for(var a in n)if(r[a]!==void 0){var u=r[a]||0,s=n[a],d=Array.isArray(t[a]),m=Array.isArray(s),f=!d&&m;f?t[a]=this._interpolationFunction(s,i):typeof s=="object"&&s?this._updateProperties(t[a],u,s,i):(s=this._handleRelativeValue(u,s),typeof s=="number"&&(t[a]=u+(s-u)*i))}},e.prototype._handleRelativeValue=function(t,r){return typeof r!="string"?r:r.charAt(0)==="+"||r.charAt(0)==="-"?t+parseFloat(r):parseFloat(r)},e.prototype._swapEndStartRepeatValues=function(t){var r=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=r},e.autoStartOnUpdate=!1,e}();var bfe=JE.nextId,li=eg,vfe=li.getAll.bind(li),xfe=li.removeAll.bind(li),Efe=li.add.bind(li),Ife=li.remove.bind(li),Cfe=li.update.bind(li);l();l();l();l();l();var YE=o((e,t)=>(t-e+Math.PI)%(Math.PI*2)+Math.PI*2%(Math.PI*2)-Math.PI,"differenceBetweenAngles"),QE=o((e,t)=>new Ae(e.clientX-t.offsetLeft,e.clientY-t.offsetTop),"getTouchPos"),tg=o((e,t)=>Math.atan2(t.y-e.y,t.x-e.x),"angle"),Gs=o((e,t)=>Math.sqrt((t.y-e.y)**2+(t.x-e.x)**2),"distance"),rg=o((e,t)=>new Ae((e.x+t.x)/2,(e.y+t.y)/2),"average"),ng=o(e=>{let t=0,{wheelDelta:r,detail:n}=e;return r!==void 0?t=r:n!==void 0&&(t=-n),t},"getScrollDelta");var ig=class ig{constructor(t,r){h(this,"input1");h(this,"input2");h(this,"lastAngle");h(this,"lastDistance");h(this,"totalDistance");h(this,"first");h(this,"second");this.input1=t,this.input2=r,this.lastAngle=tg(t,r),this.lastDistance=Gs(t,r),this.totalDistance=0,this.first=t,this.second=r}update(t,r){let n=Gs(t,r);this.input1=t,this.input2=r;let i=tg(t,r);this.lastAngle=i,this.lastDistance=n,this.totalDistance+=(Gs(this.first,t)+Gs(this.second,r))/2,this.first=rg(this.first,t),this.second=rg(this.second,r)}};o(ig,"InputSet");var rm=ig;l();var og=class og{constructor(t,r,n){h(this,"touch");h(this,"camera");h(this,"cameraPlane");h(this,"viewCoordinate");h(this,"snapHolderMatrix");h(this,"snapCamera");h(this,"cameraPosition");h(this,"raycaster");h(this,"worldCoordinate");h(this,"snapshotted",!1);this.touch=t,this.camera=r,this.cameraPlane=n,this.viewCoordinate={x:t.x,y:t.y},this.camera.updateMatrixWorld(),this.camera.updateMatrix(),this.snapHolderMatrix=this.camera.matrixWorld.clone(),this.snapCamera=this.camera.clone(),this.snapshotCameraState()}snapshotCameraState(){this.camera.updateMatrix(),this.camera.updateMatrixWorld(),this.cameraPosition=this.camera.position.clone();let t=new Ae(this.viewCoordinate.x,this.viewCoordinate.y);this.raycaster=this.raycaster||new Vn,this.raycaster.setFromCamera(t,this.snapCamera);let r=this.raycaster.intersectObject(this.cameraPlane,!0);this.worldCoordinate=r&&r.length>0?r[0].point:null,this.snapshotted=!0}updateAnchorState(t,r){this.camera=t,this.snapCamera=t.clone(),this.snapHolderMatrix=t.matrixWorld.clone(),this.updateViewCoordinate(r),this.snapshotCameraState()}updateViewCoordinate(t){this.viewCoordinate={x:t.x,y:t.y}}reUnproject(){var n,i;let t=new Ae(this.viewCoordinate.x,this.viewCoordinate.y);(n=this.raycaster)==null||n.setFromCamera(t,this.snapCamera);let r=(i=this.raycaster)==null?void 0:i.intersectObject(this.cameraPlane,!0)[0];return r?r.point:void 0}};o(og,"TouchAnchor");var Zs=og;var vn={};Ki(vn,{BLOCK_MERCATOR_ZOOM_LEVEL:()=>W7,CLIPPING_RADIUS:()=>Vs,CONTROL_OPTIONS:()=>V7,DEFAULT_ANIMATION_DURATION:()=>lg,DEFAULT_BEARING:()=>X7,DEFAULT_MAX_ZOOM_LEVEL:()=>q7,DEFAULT_MIN_ZOOM_LEVEL:()=>dg,DEFAULT_PITCH:()=>J7,DEFAULT_ZOOM_LEVEL:()=>K7,EVENTS:()=>am,MAPLIBRE_TILE_SIZE:()=>nm,MAX_LAT:()=>ug,MAX_MERCATOR_ZOOM_LEVEL:()=>om,MIN_LAT:()=>ag,MIN_MERCATOR_ZOOM_LEVEL:()=>im,ROOM_MERCATOR_ZOOM_LEVEL:()=>H7,TWO_PI:()=>sg,WHEEL_ZOOM_MULTIPLIER:()=>cg,ZRANGE:()=>wu});l();var nm=512,ag=-85.051129,ug=85.051129,Vs=1e4,V7={chain:"chain",cancel:"cancel"},sg=Math.PI*2,wu=100,cg=1e4,im=0,om=24,W7=17,H7=20,lg=200,am=["change","pan-start","pan-end","rotate-start","rotate-end","zoom-start","zoom-end","multi-start","multi-end","multi-cancel","pedestal-start","pedestal-change","pedestal-end","user-pan-start","user-pedestal-start","user-rotate-start","user-dolly-start","user-zoom-start","user-tilt-start","user-pan-end","user-pedestal-end","user-rotate-end","user-dolly-end","user-zoom-end","user-tilt-end","position-updated","zoom-updated","tilt-updated","rotation-updated"],K7=18,dg=12,q7=22,J7=0,X7=0;var um=!1,Y7=!1;var sm,cm=class cm extends Le{constructor(r,n,i,a,u){super();h(this,"dirty",!1);h(this,"zoomDirty",!1);h(this,"rotationDirty",!1);h(this,"panDirty",!1);h(this,"stateDirty",!1);L(this,sm,dg);h(this,"zoomSpeed",5);h(this,"rotateSpeed",100);h(this,"enabled",!0);h(this,"enableZoom",!0);h(this,"enablePan",!0);h(this,"enablePedestal",!1);h(this,"maxPedestal",1/0);h(this,"minPedestal",0);h(this,"enableRotate",!0);h(this,"minZoomAltitude",0);h(this,"maxZoomAltitude",1/0);h(this,"ignoreZoomLimits",!1);h(this,"zoomFactor",1);h(this,"panBounds",{min:new ne(1/0,1/0),max:new ne(-1/0,-1/0),center:new ne(0,0,0),radius:1/0});h(this,"minTilt",0);h(this,"maxTilt",1.2);h(this,"MOUSE_BUTTONS",{ORBIT:Lc.RIGHT,ZOOM:Lc.MIDDLE,PAN:Lc.LEFT});h(this,"camera");h(this,"scene");h(this,"renderer");h(this,"elevation");h(this,"orbit");h(this,"cameraPlane");h(this,"raycaster",new Vn);h(this,"rendererState");h(this,"options");h(this,"state",-1);h(this,"intersection");h(this,"viewState",null);h(this,"tweens",new Map);h(this,"clock",new i4(!0));h(this,"coords",{mouse:new Ae,rotateStart:new Ae,rotateEnd:new Ae,rotateDelta:new Ae,panStart:new ne,panCameraStart:new ne,panEnd:new ne,panDelta:new ne,initialShiftPos:new Ae,initialPedestal:0,floorAnchor:new ne});h(this,"touch",{origin:{offsetLeft:0,offsetTop:0},touches:[],anchor1:null,anchor2:null,inputs:null});h(this,"scrollTimer",null);h(this,"lastWheelTime",0);h(this,"resetZoom",!1);h(this,"zoomStart");h(this,"pedestalScaleFactor",1);h(this,"isUserZooming",!1);h(this,"stayInsideBounds",!0);h(this,"userInteracting",!1);h(this,"cameraMoving",!1);h(this,"lastCameraMoveTime",Date.now());h(this,"raycastToFloor",o(r=>{this.raycaster.setFromCamera(r,this.camera);let n=this.raycaster.intersectObject(this.cameraPlane,!1)[0];return n?n.point:new ne},"raycastToFloor"));h(this,"isUserInteracting",o(()=>this.userInteracting,"isUserInteracting"));h(this,"getPosition",o(()=>new ne(this.orbit.position.x,this.orbit.position.y,this.orbit.position.z),"getPosition"));h(this,"getPedestal",o(()=>this.orbit.position.z,"getPedestal"));h(this,"pan",o((r,n)=>{isNaN(r)||isNaN(n)||(this.setPosition(this.orbit.position.x+r,this.orbit.position.y+n),this.publish("position-updated"))},"pan"));h(this,"postRender",o(()=>{(this.state===2||this.state===6)&&(this.raycaster.setFromCamera(this.coords.mouse,this.camera),this.intersection=this.raycaster.intersectObject(this.cameraPlane,!1)[0],this.intersection&&(this.coords.panStart.set(this.intersection.point.x,this.intersection.point.y,0),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0))),this.state===3&&this.resetZoom&&(this.resetZoom=!1,this.zoomStart=this.getZoomAltitude(),this.coords.floorAnchor=this.raycastToFloor(this.coords.mouse),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0)),this.state===7&&this.isAnimating===!1&&(this.state=-1,this.publish("multi-end"))},"postRender"));h(this,"isCameraMoving",o(()=>this.cameraMoving,"isCameraMoving"));h(this,"lastCameraStoppedMovingTime",o(()=>this.lastCameraMoveTime,"lastCameraStoppedMovingTime"));h(this,"setPosition",o((r,n)=>{r===void 0||n===void 0||isNaN(r)||isNaN(n)||(this.state===-1&&this.publish("pan-start"),this.updateCameraPosition(r,n),this.publish("position-updated"),this.publish("change"),this.state===-1&&this.publish("pan-end"),this.dirty=!0,this.stateDirty=!0)},"setPosition"));h(this,"updateCameraPosition",o((r,n)=>{let i=r-this.panBounds.center.x,a=n-this.panBounds.center.y,u=Math.sqrt(i*i+a*a);if(this.stayInsideBounds&&u>this.panBounds.radius){let s=Math.atan2(a,i),d={x:Math.cos(s)*this.panBounds.radius+this.panBounds.center.x,y:Math.sin(s)*this.panBounds.radius+this.panBounds.center.y};this.orbit.position.x=d.x,this.orbit.position.y=d.y}else this.orbit.position.x=r,this.orbit.position.y=n},"updateCameraPosition"));h(this,"tilt",o(r=>{if(isNaN(r))return;this.state===-1&&this.publish("rotate-start");let n=this.stayInsideBounds?Math.max(Math.min(r+this.getTilt(),this.maxTilt),this.minTilt):r+this.getTilt();n!==this.elevation.rotation.x&&(this.elevation.rotation.x=n,this.publish("tilt-updated")),this.publish("change"),this.state===-1&&this.publish("rotate-end"),this.stateDirty=!0},"tilt"));h(this,"zoomIn",o((r,n,i)=>{let a=this.getZoomAltitude();this.animateCamera({zoom:a/1.5},r,n,i)},"zoomIn"));h(this,"zoomOut",o((r,n,i)=>{let a=this.getZoomAltitude();this.animateCamera({zoom:a*1.5},r,n,i)},"zoomOut"));h(this,"getRotation",o(()=>(-this.orbit.rotation.z+Math.PI*2)%(Math.PI*2),"getRotation"));h(this,"cancelAnimation",o(()=>{let r=Array.from(this.tweens.keys());if(r.length<1)return;let n=r[r.length-1];n.state===7&&this.publish("multi-cancel",{zooming:!0,rotating:!0,tilting:!0}),this.completeTween(n)},"cancelAnimation"));h(this,"animateCamera",o((r,n,i,a,u,s)=>{let d=R({interruptible:!0},s),m={},f={},g=this.getPosition();if(r.position!=null&&(r.position.x!==void 0&&(m.x=g.x,f.x=r.position.x),r.position.y!==void 0&&(m.y=g.y,f.y=r.position.y),r.position.z!==void 0&&(m.z=g.z,f.z=r.position.z)),r.zoom!==void 0&&(m.zoom=this.stayInsideBounds?Math.min(Math.max(this.getZoomAltitude(),this.getZoomScaledMin()),this.getZoomScaledMax()):this.getZoomAltitude(),this.viewState==="multi_floor"||!this.stayInsideBounds?f.zoom=r.zoom:f.zoom=Math.min(Math.max(r.zoom,this.getZoomScaledMin()),this.getZoomScaledMax())),r.rotation!==void 0){let{start:D,end:I}=d4(this.getRotation(),r.rotation);m.rotation=D,f.rotation=I}r.tilt!==void 0&&(m.tilt=this.getTilt(),this.viewState==="multi_floor"||!this.stayInsideBounds?f.tilt=r.tilt:f.tilt=Math.max(Math.min(r.tilt,this.maxTilt),this.minTilt));let b=m.zoom!==f.zoom,v=m.rotation!==f.rotation,C=m.tilt!==f.tilt,A=new XE(m).to(f,y.env.TESTING?0:n).onUpdate(D=>{this.setMulti({x:D.x,y:D.y,z:D.z},D.zoom,D.rotation,D.tilt)}).onComplete(()=>{this.completeTween(A),this.publish("multi-end",{zooming:b,rotating:v,tilting:C}),a&&a()}).onStart(()=>{this.state!==7&&(this.state=7,A.state=7,this.publish("multi-start",{zooming:b,rotating:v,tilting:C})),this.publish("change")});this.rendererState.internalTweenGroup.add(A);let x=Array.from(this.tweens.entries()),E=x[x.length-1],S=!1;return E!=null&&(E[1].interruptible?(typeof E[1].cancelledCallback=="function"&&E[1].cancelledCallback(),this.completeTween(E[0])):(S=!0,E[0].chain(A))),this.tweens.set(A,{cancelledCallback:u,interruptible:d.interruptible}),i?A.easing(i):A.easing(bn.Quadratic.In),!r.doNotAutoStart&&!S&&(A.start(),this.publish("change")),A.cameraAnimation=!0,A},"animateCamera"));h(this,"setMulti",o((r,n,i,a,u=!0)=>{this.state===-1&&this.publish("multi-start");let s=!1;r!=null&&(r.x!==void 0&&!isNaN(r.x)&&r.y!==void 0&&!isNaN(r.y)&&(this.updateCameraPosition(r.x,r.y),s=!0),r.z!==void 0&&!isNaN(r.z)&&(this.setPedestal(r.z,!0,!1),s=!0)),s&&this.publish("position-updated");let d={zooming:!1,tilting:!!n,rotating:!1};if(n!==void 0&&!isNaN(n)){let m=this.stayInsideBounds?Math.min(Math.max(n,this.getZoomScaledMin()),this.getZoomScaledMax()):n;m!==this.camera.position.z&&(d.zooming=!0,this.camera.position.z=m,this.publish("zoom-updated"),this.zoomDirty=!0,this.viewState==="multi_floor"?n>Vs&&(this.camera.near=n-Vs,this.camera.far=n+Vs):(this.camera.near=n/wu,this.camera.far=n*wu),this.camera.updateProjectionMatrix())}if(i!==void 0&&!isNaN(i)&&i!==this.getRotation()&&(d.rotating=!0,this.orbit.rotation.z=-i,this.publish("rotation-updated")),a!==void 0&&!isNaN(a)){let m=this.stayInsideBounds?Math.max(Math.min(a,this.maxTilt),this.minTilt):a;m!==this.elevation.rotation.x&&(d.tilting=!0,this.elevation.rotation.x=m,this.publish("tilt-updated"))}u&&this.publish("change"),this.state===-1&&this.publish("multi-end",d),this.stateDirty=!0},"setMulti"));h(this,"getZoomScaledMin",o(()=>this.minZoomAltitude*this.zoomFactor,"getZoomScaledMin"));h(this,"getZoomScaledMax",o(()=>{let r=this.minZoomAltitude*this.zoomFactor;return Math.max(this.maxZoomAltitude,r)},"getZoomScaledMax"));h(this,"setRotation",o((r,n)=>{if(isNaN(r))return;this.state===-1&&!n&&this.publish("rotate-start");let i=-(r%sg);i!==this.orbit.rotation.z&&(this.orbit.rotation.z=i,n||this.publish("rotation-updated")),n||this.publish("change"),this.state===-1&&!n&&this.publish("rotate-end"),this.dirty=!0,this.rotationDirty=!0,n||(this.stateDirty=!0)},"setRotation"));h(this,"setZoomAltitude",o(r=>{if(isNaN(r))return;this.state===-1&&this.publish("zoom-start");let n=this.stayInsideBounds?Math.min(Math.max(r,this.getZoomScaledMin()),this.getZoomScaledMax()):r;n!==this.camera.position.z&&(this.camera.position.z=n,this.publish("zoom-updated"),this.zoomDirty=!0),this.camera.near=n/wu,this.camera.far=n*wu,this.camera.updateProjectionMatrix(),this.publish("change"),this.state===-1&&this.publish("zoom-end"),this.dirty=!0,this.stateDirty=!0},"setZoomAltitude"));h(this,"setZoomLevel",o(r=>{this.setZoomAltitude(this.convertZoomLevelToAltitude(r))},"setZoomLevel"));h(this,"getZoomAltitude",o(()=>this.camera.position.z,"getZoomAltitude"));h(this,"getZoomLevel",o(()=>this.convertAltitudeToZoomLevel(this.getZoomAltitude()),"getZoomLevel"));h(this,"setTilt",o((r,n)=>{if(isNaN(r))return;this.state===-1&&!n&&this.publish("rotate-start");let i=this.stayInsideBounds?Math.max(Math.min(r,this.maxTilt),this.minTilt):r;i!==this.elevation.rotation.x&&(this.elevation.rotation.x=i,n||this.publish("tilt-updated")),n||this.publish("change"),this.state===-1&&!n&&this.publish("rotate-end"),this.dirty=!0,n||(this.stateDirty=!0)},"setTilt"));h(this,"getTilt",o(()=>this.elevation.rotation.x,"getTilt"));h(this,"setCameraPlaneElevation",o(r=>{this.cameraPlane.position.z=r},"setCameraPlaneElevation"));h(this,"zoom",o(r=>{if(isNaN(r))return;this.state===-1&&this.publish("zoom-start");let n=this.getZoomAltitude()-r;this.camera.position.z=this.stayInsideBounds?Math.min(Math.max(n,this.minZoomAltitude*this.zoomFactor),this.maxZoomAltitude*this.zoomFactor):n,this.publish("zoom-updated"),this.zoomDirty=!0,this.publish("change"),this.state===-1&&this.publish("zoom-end"),this.stateDirty=!0},"zoom"));h(this,"getProjectionScaleFactor",o((r,n,i)=>jp(r,n,i),"getProjectionScaleFactor"));h(this,"update",o(()=>{this.orbit.updateMatrixWorld(),this.lastWheelTime>0&&this.state===3&&this.clock.getElapsedTime()-this.lastWheelTime>.2&&(this.lastWheelTime=0,this.state=-1,this.publish("zoom-end"),this.removeMouseMoveEventListeners())},"update"));h(this,"setPedestal",o((r,n=!1,i=!0)=>{typeof r=="number"&&!isNaN(r)&&(this.orbit.position.z=r,n&&(this.publishPedestalChangeEvent(r),this.publish("pedestal-change",{pedestal:r})),this.publish("change"),this.dirty=!0,i&&(this.stateDirty=!0))},"setPedestal"));h(this,"dispose",o(()=>{for(let r of am)r.endsWith("start")?(this.off(r,this.setCameraMoving),r.startsWith("user")&&this.off(r,this.setUserInteracting)):(r.endsWith("end")||r.endsWith("cancel"))&&(this.off(r,this.unsetCameraMoving),r.startsWith("user")&&this.off(r,this.unsetUserInteracting));this.removeEventListeners(),this.scene.remove(this.cameraPlane),this.destroy()},"dispose"));h(this,"createCameraPlane",o(()=>{let r=um?2e3:1e10,n=um?100:1,i=new Cn(r,r,n,n),a=new fr({color:0,wireframe:um,visible:um}),u=new Pe(i,a);return this.scene.add(u),u},"createCameraPlane"));h(this,"addEventListeners",o(()=>{let{domElement:r}=this.renderer;for(let n of am)n.endsWith("start")?(this.on(n,this.setCameraMoving),n.startsWith("user")&&this.on(n,this.setUserInteracting)):(n.endsWith("end")||n.endsWith("cancel"))&&(this.on(n,this.unsetCameraMoving),n.startsWith("user")&&this.on(n,this.unsetUserInteracting));r.addEventListener("contextmenu",this.onContextMenu,!1),r.addEventListener("mousedown",this.onMouseDown,!1),r.addEventListener("wheel",this.onMouseWheel,{passive:!1}),r.addEventListener("touchstart",this.onTouchStart,!1),r.addEventListener("touchend",this.onTouchEnd,!1),r.addEventListener("touchmove",this.onTouchMove,!1)},"addEventListeners"));h(this,"addMouseEventListeners",o(()=>{this.addMouseMoveEventListeners(),window.addEventListener("mouseup",this.onMouseUp,!1),window.addEventListener("mouseout",this.onMouseUp,!1)},"addMouseEventListeners"));h(this,"addMouseMoveEventListeners",o(()=>{this.renderer.domElement.addEventListener("mousemove",this.onMouseMove,!1)},"addMouseMoveEventListeners"));h(this,"removeMouseMoveEventListeners",o(()=>{this.renderer.domElement.removeEventListener("mousemove",this.onMouseMove,!1)},"removeMouseMoveEventListeners"));h(this,"removeEventListeners",o(()=>{let{domElement:r}=this.renderer;r.removeEventListener("contextmenu",this.onContextMenu,!1),r.removeEventListener("mousedown",this.onMouseDown,!1),r.removeEventListener("wheel",this.onMouseWheel,!1),r.removeEventListener("touchstart",this.onTouchStart,!1),r.removeEventListener("touchend",this.onTouchEnd,!1),r.removeEventListener("touchmove",this.onTouchMove,!1),r.removeEventListener("mousemove",this.onMouseMove,!1),window.removeEventListener("mouseup",this.onMouseUp,!1),window.removeEventListener("mouseout",this.onMouseUp,!1)},"removeEventListeners"));h(this,"removeMouseUpEventListeners",o(()=>{this.renderer.domElement.removeEventListener("mousemove",this.onMouseMove,!1),window.removeEventListener("mouseup",this.onMouseUp,!1),window.removeEventListener("mouseout",this.onMouseUp,!1)},"removeMouseUpEventListeners"));h(this,"onContextMenu",o(r=>{r.preventDefault()},"onContextMenu"));h(this,"onMouseUp",o(()=>{if(this.enabled!==!1){switch(this.removeMouseUpEventListeners(),this.state){case 2:this.publish("pan-end"),this.publish("user-pan-end");break;case 1:this.publish("zoom-end"),this.publish("user-dolly-end");break;case 0:this.publish("rotate-end"),this.publish("user-rotate-end");break;case 8:this.publish("pedestal-end"),this.publish("user-pedestal-end");break}this.state=-1,this.panDirty=!1}},"onMouseUp"));h(this,"onMouseMove",o(r=>{if(this.enabled!==!1)if(r.preventDefault(),this.mouseToScene(r),this.state===0){if(this.enableRotate===!1)return;this.handleMouseMoveRotate(r)}else if(this.state===2){if(this.enablePan===!1)return;this.handleMouseMovePan()}else this.state===3?(this.resetZoom=!0,this.state=-1):this.state===8&&this.handleMouseMovePedestal(r)},"onMouseMove"));h(this,"onTouchStart",o(r=>{if(this.enabled!==!1){switch(this.updateTouchOrigin(),this.touchToScene(r),r.touches.length){case 1:this.enablePedestal?(this.handleTouchStartPedestal(r),this.state=9):this.enablePan&&(this.handleTouchStartPan(r),this.state=6);break;case 2:this.touch.inputs=new rm(this.touch.touches[0],this.touch.touches[1]);break;default:this.state=-1}this.state}},"onTouchStart"));h(this,"onTouchMove",o(r=>{if(this.enabled!==!1)switch(this.touchToScene(r),r.touches.length){case 2:r.preventDefault(),r.stopPropagation();let n=R({},this.touch.inputs.first),i=R({},this.touch.inputs.second),a=new Ae(this.touch.touches[0].x,this.touch.touches[0].y),u=new Ae(this.touch.touches[1].x,this.touch.touches[1].y);if(this.touch.inputs.update(this.touch.touches[0],this.touch.touches[1]),this.enableRotate&&this.state===4)this.handleTouchMoveTilt(r);else if(this.state===5)this.handleTouchMoveDolly();else if(this.state!==5&&this.touch.inputs.totalDistance>.05){let s=n.y<a.y&&i.y<u.y,d=n.y>a.y&&i.y>u.y;this.enableRotate&&this.state!==4&&(d||s)?(this.handleTouchStartTilt(r),this.state=4):(this.handleTouchStartDolly(),this.state=5)}break;case 1:(this.enablePedestal||this.enablePan)&&(r.preventDefault(),r.stopPropagation()),this.enablePedestal&&this.state===9?this.handleTouchMovePedestal(r):this.enablePan&&this.state===6&&this.handleTouchMovePan(r);break;default:this.state=-1}},"onTouchMove"));h(this,"onTouchEnd",o(r=>{if(this.enabled!==!1){switch(this.handleTouchEnd(),this.state){case 2:case 6:this.publish("user-pan-end");break;case 4:this.publish("pan-end"),this.publish("user-tilt-end");break;case 1:case 5:this.publish("zoom-end"),this.publish("user-dolly-end");break;case 0:this.publish("rotate-end"),this.publish("user-rotate-end");break;case 8:case 9:this.publish("pedestal-end"),this.publish("user-pedestal-end");break}r.touches.length?this.onTouchStart(r):this.state=-1}},"onTouchEnd"));h(this,"handleTouchMovePan",o(r=>{let n=Object.hasOwn(r,"x")?new Ae(r.x,r.y):this.touch.touches[0],i=this.raycastToFloor(n);this.coords.panEnd.set(i.x,i.y,0),this.coords.panDelta.subVectors(this.coords.panEnd,this.coords.panStart),this.setPosition(this.coords.panCameraStart.x-this.coords.panDelta.x,this.coords.panCameraStart.y-this.coords.panDelta.y),this.publish("change"),this.panDirty=!0},"handleTouchMovePan"));h(this,"handleTouchStartDolly",o(()=>{let r=this.touch.touches[0].x-this.touch.touches[1].x,n=this.touch.touches[0].y-this.touch.touches[1].y;this.zoomStart=this.getZoomAltitude();let i=new Ae(this.touch.touches[0].x-r/2,this.touch.touches[0].y-n/2);this.coords.floorAnchor=this.raycastToFloor(i),this.orbit.updateMatrixWorld(),this.touch.anchor1=new Zs(this.touch.touches[0],this.camera,this.cameraPlane),this.touch.anchor2=new Zs(this.touch.touches[1],this.camera,this.cameraPlane),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("user-dolly-start"),this.publish("zoom-start"),this.publish("multi-start")},"handleTouchStartDolly"));h(this,"handleMouseMovePan",o(()=>{let r=this.raycastToFloor(this.coords.mouse);this.coords.panEnd.set(r.x,r.y,0),this.coords.panDelta.subVectors(this.coords.panEnd,this.coords.panStart),this.setPosition(this.coords.panCameraStart.x-this.coords.panDelta.x,this.coords.panCameraStart.y-this.coords.panDelta.y),this.publish("change"),this.panDirty=!0},"handleMouseMovePan"));h(this,"handleTouchStartTilt",o(r=>{this.coords.rotateStart.set(r.touches[1].clientX,r.touches[1].clientY),this.publish("user-tilt-start"),this.publish("rotate-start")},"handleTouchStartTilt"));h(this,"handleTouchMovePedestal",o(r=>{this.handleMouseMovePedestal(r.touches[0])},"handleTouchMovePedestal"));h(this,"handleTouchMoveTilt",o(r=>{this.coords.rotateEnd.set(r.touches[1].clientX,r.touches[1].clientY),this.coords.rotateDelta.subVectors(this.coords.rotateEnd,this.coords.rotateStart),this.setTilt(this.getTilt()-this.coords.rotateDelta.y/this.rotateSpeed),this.coords.rotateStart.copy(this.coords.rotateEnd)},"handleTouchMoveTilt"));h(this,"handleTouchMoveDolly",o(()=>{let r=this.touch.inputs.first,n=this.touch.inputs.second;this.touch.anchor1.viewCoordinate={x:r.x,y:r.y},this.touch.anchor2.viewCoordinate={x:n.x,y:n.y};let i=this.makeTransformFromTouchAnchors(this.touch.anchor1,this.touch.anchor2);i&&this.setCameraFromTransformMatrix(i),this.orbit.updateMatrixWorld(),this.touch.anchor1.updateAnchorState(this.camera,r),this.touch.anchor2.updateAnchorState(this.camera,n)},"handleTouchMoveDolly"));h(this,"handleTouchEnd",o(()=>{this.state===4||this.state===5?this.publish("multi-end"):this.state===6&&this.publish("pan-end"),this.panDirty=!1},"handleTouchEnd"));h(this,"handleTouchStartPan",o(r=>{let n=Object.hasOwn(r,"x")?new Ae(r.x,r.y):this.touch.touches[0],i=this.raycastToFloor(n);this.coords.panStart.set(i.x,i.y,0),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("user-pan-start"),this.publish("pan-start")},"handleTouchStartPan"));h(this,"handleTouchStartPedestal",o(r=>{this.handleMouseDownPedestal(r.touches[0])},"handleTouchStartPedestal"));h(this,"onMouseDown",o(r=>{if(this.enabled!==!1){if(this.mouseToScene(r),r.preventDefault(),this.state===3&&this.publish("zoom-end"),r.button===this.MOUSE_BUTTONS.ORBIT){if(this.enableRotate===!1)return;this.handleMouseDownRotate(r),this.state=0}else r.button===this.MOUSE_BUTTONS.PAN&&(this.enablePan?(this.handleMouseDownPan(),this.state=2):this.enablePedestal&&(this.handleMouseDownPedestal(r),this.state=8));this.state!==-1&&this.addMouseEventListeners()}},"onMouseDown"));h(this,"onMouseWheel",o(r=>{this.enabled===!1||this.enableZoom===!1||this.state!==-1&&this.state!==3||(r.preventDefault(),r.stopPropagation(),this.mouseToScene(r),this.canScrollZoom(r)&&(this.lastWheelTime=this.clock.getElapsedTime(),this.publishUserZoomEvent()),this.state!==3&&this.canScrollZoom(r)&&(this.addMouseMoveEventListeners(),this.state=3,this.zoomStart=this.getZoomAltitude(),this.coords.floorAnchor=this.raycastToFloor(this.coords.mouse),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("zoom-start")),this.scrollTimer!=null&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.publish("zoom-end")},50),this.handleMouseWheel(r))},"onMouseWheel"));h(this,"handleMouseWheel",o(r=>{if(this.publish("zoom-start"),!this.canScrollZoom(r)){this.lastWheelTime>0&&this.publish("zoom-end"),this.lastWheelTime=0,this.state=-1;return}let n=this.getZoomAltitude(),i=n-ng(r)*n/cg*this.zoomSpeed;if(this.setZoomAltitude(i),this.enablePan){let a=i/this.zoomStart;this.coords.panDelta.subVectors(this.coords.floorAnchor,this.coords.panCameraStart).multiplyScalar(1-a),this.setPosition(this.coords.panCameraStart.x+this.coords.panDelta.x,this.coords.panCameraStart.y+this.coords.panDelta.y)}this.publish("change")},"handleMouseWheel"));h(this,"setCameraFromTransformMatrix",o(r=>{this.orbit.updateMatrixWorld();let n=new Ea;n.setFromRotationMatrix(r,"ZYX");let i=(r.elements[14]-this.cameraPlane.position.z)/Math.cos(n.x),a=n.z,u=new ne(0,0,1);u.applyEuler(n),u.setLength(i);let s=new ne;s.setFromMatrixPosition(r),s.sub(u),this.enablePan&&this.setPosition(s.x,s.y),this.enableZoom&&this.setZoomAltitude(i),this.enableRotate&&this.setRotation(-a)},"setCameraFromTransformMatrix"));h(this,"makeTransformFromTouchAnchors",o((r,n)=>{this.orbit.updateMatrixWorld(),this.camera.updateProjectionMatrix();let i=this.camera.projectionMatrix.clone(),a=r.worldCoordinate,u=n.worldCoordinate,s=r.reUnproject(),d=n.reUnproject();if(!s||!d||!a||!u)return null;let m=r.viewCoordinate,f=n.viewCoordinate,g=u.x-a.x,b=u.y-a.y,v=Math.atan2(b,g),C=d.x-s.x,A=d.y-s.y,x=Math.atan2(A,C),E=YE(v,x),S=new Gr;S.makeRotationZ(-E);let D=S.clone();D.multiply(r.snapHolderMatrix);let I=o((VI,WI,HI)=>VI.elements[(WI-1)*4+HI-1],"m"),k=I(i,1,1)*I(D,1,1)-m.x*I(i,3,4)*I(D,3,1),V=I(i,1,1)*I(D,1,2)-m.x*I(i,3,4)*I(D,3,2),z=I(i,1,1)*I(D,1,3)-m.x*I(i,3,4)*I(D,3,3),M=a.x*k+a.y*V+a.z*z,T=I(i,2,2)*I(D,2,1)-m.y*I(i,3,4)*I(D,3,1),Z=I(i,2,2)*I(D,2,2)-m.y*I(i,3,4)*I(D,3,2),j=I(i,2,2)*I(D,2,3)-m.y*I(i,3,4)*I(D,3,3),W=a.x*T+a.y*Z+a.z*j,$=I(i,1,1)*I(D,1,1)-f.x*I(i,3,4)*I(D,3,1),q=I(i,1,1)*I(D,1,2)-f.x*I(i,3,4)*I(D,3,2),J=I(i,1,1)*I(D,1,3)-f.x*I(i,3,4)*I(D,3,3),G=u.x*$+u.y*q+u.z*J,ae=I(i,2,2)*I(D,2,1)-f.y*I(i,3,4)*I(D,3,1),te=I(i,2,2)*I(D,2,2)-f.y*I(i,3,4)*I(D,3,2),ee=I(i,2,2)*I(D,2,3)-f.y*I(i,3,4)*I(D,3,3),le=u.x*ae+u.y*te+u.z*ee,fe=Math.abs($-k),xe=Math.abs(q-V),be=Math.abs(J-z),Oe=Math.abs($-T),Ce=Math.abs(q-Z),ot=Math.abs(J-j),Sr=Math.abs(ae-k),wr=Math.abs(te-V),F=Math.abs(ee-z),Y=Math.abs(ae-T),P=Math.abs(te-Z),ce=Math.abs(ee-j),Q=Math.min(fe+xe+be,Oe+Ce+ot),re=Math.min(Sr+wr+F,Y+P+ce);Q<re&&($=ae,q=te,J=ee,G=le);let pe=T*z-k*j,Je=Z*z-V*j,Ft=W*z-M*j,_t=$*j-T*J,tr=q*j-Z*J,jn=G*j-W*J,ga=(jn*Je-Ft*tr)/(_t*Je-pe*tr),ya=(jn*pe-Ft*_t)/(tr*pe-Je*_t),Wu=Z*k-V*T,Me=j*k-z*T,Ee=W*k-M*T,Et=q*T-Z*$,ba=J*T-j*$,Tc=((G*T-W*$)*Wu-Ee*Et)/(ba*Wu-Me*Et),Hi=D.clone();return Hi.elements[12]=ga,Hi.elements[13]=ya,Hi.elements[14]=Tc,Tc>0?Hi:null},"makeTransformFromTouchAnchors"));h(this,"updateTouchOrigin",o(()=>{let r=this.renderer.domElement;this.touch.origin.offsetLeft=r.getBoundingClientRect().left,this.touch.origin.offsetTop=r.getBoundingClientRect().top},"updateTouchOrigin"));h(this,"touchToScene",o(r=>{this.touch.touches=[];for(let n=0,i=r.touches.length;n<i;n++){let a=r.touches[n],u=QE(a,this.touch.origin);this.touch.touches.push(new Ae(u.x/this.renderer.domElement.width*this.rendererState.pixelRatio*2-1,-(u.y/this.renderer.domElement.height*this.rendererState.pixelRatio)*2+1))}this.coords.mouse=this.touch.touches[0]},"touchToScene"));h(this,"canScrollZoom",o(r=>{let n=ng(r),i=this.getZoomAltitude();return!(n<0&&i===this.getZoomScaledMax()||n>0&&i===this.getZoomScaledMin())},"canScrollZoom"));h(this,"mouseToScene",o(r=>{let n=this.getMousePos(r);return this.coords.mouse.x=n.x/this.renderer.domElement.width*this.rendererState.pixelRatio*2-1,this.coords.mouse.y=-(n.y/this.renderer.domElement.height*this.rendererState.pixelRatio)*2+1,this.coords.mouse},"mouseToScene"));h(this,"getMousePos",o(r=>({x:r.offsetX,y:r.offsetY}),"getMousePos"));h(this,"handleMouseDownRotate",o(r=>{this.coords.rotateStart.set(r.clientX,r.clientY),this.publish("rotate-start"),this.publish("user-rotate-start")},"handleMouseDownRotate"));h(this,"handleMouseDownPan",o(()=>{let r=this.raycastToFloor(this.coords.mouse);this.coords.panStart.set(r.x,r.y,0),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("pan-start"),this.publish("user-pan-start")},"handleMouseDownPan"));h(this,"handleMouseDownPedestal",o(r=>{let n=new Ae(r.clientX,r.clientY);this.coords.initialShiftPos=n,this.coords.initialPedestal=this.getPedestal(),this.pedestalScaleFactor=jp(this.camera.fov,this.renderer.domElement.clientHeight,this.getZoomAltitude()),this.publish("pedestal-start"),this.publish("user-pedestal-start")},"handleMouseDownPedestal"));h(this,"handleMouseMovePedestal",o(r=>{let n={x:r.clientX,y:r.clientY},i=this.coords.initialPedestal+this.pedestalScaleFactor*(n.y-this.coords.initialShiftPos.y);this.stayInsideBounds&&(i<this.minPedestal?i=Math.max(i,this.minPedestal):i>this.maxPedestal&&(i=Math.min(i,this.maxPedestal))),i!==this.getPedestal()&&this.setPedestal(i,!0)},"handleMouseMovePedestal"));h(this,"handleMouseMoveRotate",o(r=>{this.coords.rotateEnd.set(r.clientX,r.clientY),this.coords.rotateDelta.subVectors(this.coords.rotateEnd,this.coords.rotateStart),this.setRotation(this.getRotation()+this.coords.rotateDelta.x/this.rotateSpeed),this.setTilt(this.getTilt()-this.coords.rotateDelta.y/this.rotateSpeed),this.coords.rotateStart.copy(this.coords.rotateEnd),this.publish("change")},"handleMouseMoveRotate"));h(this,"publishUserZoomDebounced",Sa(()=>{this.isUserZooming=!1,this.publish("user-zoom-end")},250));h(this,"publishUserZoomEvent",o(()=>{this.isUserZooming?this.publishUserZoomDebounced():(this.publish("user-zoom-start"),this.isUserZooming=!0,this.publishUserZoomDebounced())},"publishUserZoomEvent"));h(this,"setCameraMoving",o(()=>{this.cameraMoving=!0},"setCameraMoving"));h(this,"unsetCameraMoving",o(()=>{this.cameraMoving=!1,this.lastCameraMoveTime=Date.now()},"unsetCameraMoving"));h(this,"setUserInteracting",o(()=>{this.userInteracting=!0},"setUserInteracting"));h(this,"unsetUserInteracting",o(()=>{this.userInteracting=!1},"unsetUserInteracting"));h(this,"publishPedestalChangeEvent",o(r=>{this.publish("pedestal-change",{pedestal:r,scrolledToTop:this.scrolledToTop,scrolledToBottom:this.scrolledToBottom,scrollPercent:this.scrollPercent})},"publishPedestalChangeEvent"));h(this,"convertAltitudeToZoomLevel",o(r=>{let[,n]=this.center,i=this.computeMetersPerPixelFromAltitude(r),a=Math.cos(Te.degToRad(n))*2*Math.PI*_p/i;return Te.clamp(Math.log2(a/512),im,om)},"convertAltitudeToZoomLevel"));h(this,"convertZoomLevelToAltitude",o(r=>this.computeMetersPerPixelFromZoomLevel(r)*this.options.canvasHeight/2/Math.tan(Te.degToRad(this.camera.fov)/2),"convertZoomLevelToAltitude"));h(this,"completeTween",o(r=>{r.isPlaying()&&r.stop(),this.rendererState.internalTweenGroup.remove(r),this.tweens.delete(r)},"completeTween"));h(this,"debugContainer",new Mo);this.camera=r,this.renderer=i,this.rendererState=a,this.scene=n,this.options=u,this.elevation=r.parent,this.orbit=this.elevation.parent,this.cameraPlane=this.createCameraPlane(),this.zoomStart=r.position.z,u.mode!=="outdoors-overlay"&&this.addEventListeners()}get maxZoomLevel(){return this.convertAltitudeToZoomLevel(this.minZoomAltitude)}setMaxZoomLevel(r){this.minZoomAltitude=this.convertZoomLevelToAltitude(r),this.stateDirty=!0}get defaultMinZoomLevel(){return c(this,sm)}get minZoomLevel(){return this.convertAltitudeToZoomLevel(this.maxZoomAltitude)}setMinZoomLevel(r){this.maxZoomAltitude=this.convertZoomLevelToAltitude(r),this.stateDirty=!0}get scrollPercent(){let r=this.minPedestal,n=this.maxPedestal,i=this.getPedestal();return i=Math.min(i,n),i=Math.max(i,r),(i-r)/(n-r)*100}get fov(){return this.camera.fov}get scrolledToBottom(){return this.minPedestal===0||Math.floor(this.getPedestal())<=this.minPedestal}get scrolledToTop(){return this.maxPedestal===0||Math.ceil(this.getPedestal())>=this.maxPedestal}get center(){var a,u,s,d;let r=this.getPosition(),{lat:n,lon:i}=el((u=(a=this.rendererState.center)==null?void 0:a[1])!=null?u:0,(d=(s=this.rendererState.center)==null?void 0:s[0])!=null?d:0,r.x,r.y);return[i,n]}setCenter(r,n){var u,s,d,m;let{x:i,y:a}=tl((s=(u=this.rendererState.center)==null?void 0:u[1])!=null?s:0,(m=(d=this.rendererState.center)==null?void 0:d[0])!=null?m:0,n,r);this.setPosition(i,a)}get isAnimating(){return this.rendererState.internalTweenGroup.getAll().some(r=>r.cameraAnimation)}getCameraFrameForCoordinates(r,n){var b,v;let i=n.minZoom!==void 0?n.minZoom:this.minZoomAltitude,a=n.maxZoom!==void 0?n.maxZoom:this.maxZoomAltitude,u=this.options.canvasWidth,s=this.options.canvasHeight,d=this.getRotation(),m=this.getTilt(),f=this.getPosition();this.setRotation((b=n.rotation)!=null?b:d,!0),this.setTilt((v=n.tilt)!=null?v:m,!0);let g=e6(r,{canvasWidth:u,canvasHeight:s,paddingOption:n.padding,verticalPadding:n.verticalPadding,minZoom:i,maxZoom:a,position:f,camera:this.camera,orbit:this.orbit});return this.setRotation(d,!0),this.setTilt(m,!0),{center:g.position,zoomLevel:this.convertAltitudeToZoomLevel(g.zoom)}}focusOn(r,n){if(Y7){this.debugContainer&&Nt(this.debugContainer);let x=new qi(4,4,4),E=new fr({color:65280,depthTest:!1}),S=new Zn(x,E,r.length),D=new Gr;r.forEach((I,k)=>{D.setPosition(I),S.setMatrixAt(k,D)}),S.instanceMatrix.needsUpdate=!0,this.debugContainer.add(S),this.scene.add(this.debugContainer)}let i=n.curve,a=n.callback,u=n.cancelledCallback,s=n.minZoom!==void 0?n.minZoom:this.minZoomAltitude,d=n.maxZoom!==void 0?n.maxZoom:this.maxZoomAltitude,m=this.options.canvasWidth,f=this.options.canvasHeight,g;n.duration!==void 0?g=n.duration:y.env.TESTING==="true"?g=0:g=lg;let b=n.padding,v=this.getRotation(),C=this.getTilt();n.rotation!=null&&this.setRotation(n.rotation),n.tilt!=null&&this.setTilt(n.tilt);let A=e6(r,{canvasHeight:f,paddingOption:b,canvasWidth:m,minZoom:s,maxZoom:d,camera:this.camera,orbit:this.orbit,position:this.getPosition(),verticalPadding:n.verticalPadding});this.setRotation(v),this.setTilt(C),this.animateCamera({position:A.position,tilt:n.tilt,rotation:n.rotation,zoom:A.zoom},g,i,a,u,n)}resize(r,n){this.options.canvasWidth=r,this.options.canvasHeight=n}computeMetersPerPixelFromZoomLevel(r){let[,n]=this.center,i=Te.clamp(r,im,om),a=Math.pow(2,i),u=Te.clamp(n,ag,ug),s=a*512;return Math.cos(Te.degToRad(u))*Math.PI*2*_p/s}computeMetersPerPixelFromAltitude(r){return r*2*Math.tan(Te.degToRad(this.camera.fov)/2)/this.options.canvasHeight}getCurrentMetersPerPixel(){return this.computeMetersPerPixelFromAltitude(this.getZoomAltitude())}};sm=new WeakMap,o(cm,"CameraSystem"),h(cm,"CAMERA_FRAME_PADDING_SIDES",["top","bottom","left","right"]);var Au=cm;function e6(e,{canvasWidth:t,orbit:r,paddingOption:n,verticalPadding:i=0,canvasHeight:a,minZoom:u,maxZoom:s,camera:d,position:m}){let f={zoom:u,position:m};if(e.length===0)return f;for(let pe of Au.CAMERA_FRAME_PADDING_SIDES)typeof n[pe]!="number"&&(n[pe]=0);let g=n.type==="portion"?{top:n.top*a,bottom:n.bottom*a,left:n.left*t,right:n.right*t,type:"pixel"}:n;if(g.left+g.right>=t||g.top+g.bottom>=a)return f;r.updateMatrixWorld();let b=d.matrixWorldInverse,v=d.fov*(Math.PI/180)/2,C=v,x=Math.atan(Math.tan(v)*(t/a)),E=new ne(1/0,1/0,1/0),S=new ne(-1/0,-1/0,-1/0),D=new rr,I=new ne;for(let pe=0,Je=e.length;pe<Je;pe++)I.copy(e[pe]),D.expandByPoint(I),I.applyMatrix4(b),E.min(I),S.max(I),I.copy(e[pe]),I.z-=i,I.applyMatrix4(b),E.min(I),S.max(I),I.copy(e[pe]),I.z+=i,I.applyMatrix4(b),E.min(I),S.max(I);let k=S.x-E.x,V=S.y-E.y,z=t-g.left-g.right,M=a-g.top-g.bottom,T=(S.x+E.x)/2,Z=(S.y+E.y)/2,j=k/z,W=V/M,$=u,q=s,J=$*Math.tan(x)*2,G=q*Math.tan(x)*2,ae=J/t,te=G/t,ee=Math.max(j,W);ee=Te.clamp(ee,ae,te);let le=z*ee,fe=M*ee,xe={min:{x:T-le/2-g.left*ee,y:Z-fe/2-g.bottom*ee},max:{x:T+le/2+g.right*ee,y:Z+fe/2+g.top*ee}},be=(xe.min.x+xe.max.x)/2,Oe=(xe.min.y+xe.max.y)/2,Ce=D.getCenter(new ne),ot=Math.abs(be-xe.min.x),Sr=Math.abs(Oe-xe.min.y),wr=ot/Math.tan(x),F=Sr/Math.tan(C),Y=new ne;Y.set(be,Oe,S.z+Math.max(wr,F)),Y.applyMatrix4(d.matrixWorld);let P=new ne;P.set(be,Oe,S.z),P.applyMatrix4(d.matrixWorld);let ce=new ne().subVectors(P,Y),Q=(Ce.z-Y.z)/ce.z,re=new ne().copy(Y).add(ce.clone().multiplyScalar(Q));return P.set(re.x,re.y,re.z),Y.sub(P),{position:re,zoom:Y.length()}}o(e6,"getCameraFrameForPoints");var Q7=0,eB=90,tB=(y.env.NODE_ENV==="test",!1),lm={linear:bn.Linear.None,"ease-in":bn.Quadratic.In,"ease-out":bn.Quadratic.Out,"ease-in-out":bn.Quadratic.InOut},rB=-50,de,ve,Ui,Ws,Hs,pg,fg=class fg{constructor(t,r,n){L(this,Hs);L(this,de);L(this,ve);L(this,Ui);L(this,Ws);K(this,de,t),K(this,ve,r),K(this,Ui,n),c(this,de).map&&c(this,de).map.transform.setMinElevationForCurrentTile(rB),c(this,ve).cameraSystem.on("pedestal-change",({pedestal:i})=>{c(this,ve).cameraSystem.setCameraPlaneElevation(i)})}get center(){var t,r;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(r=(t=c(this,de).map).getCenter)==null?void 0:r.call(t).toArray():c(this,ve).cameraSystem.center}setCenter(t){var r;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map){(r=c(this,de).map)==null||r.setCenter(t),c(this,ve).interactionSystem.handleHover();return}c(this,ve).cameraSystem.setCenter(t[0],t[1]),c(this,ve).interactionSystem.handleHover()}get zoomLevel(){var t;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(t=c(this,de).map)==null?void 0:t.getZoom():c(this,ve).cameraSystem.getZoomLevel()}setZoomLevel(t){var r;c(this,de).mode==="outdoors-overlay"&&c(this,de).map&&((r=c(this,de).map)==null||r.setZoom(t)),c(this,ve).cameraSystem.setZoomLevel(Wn(t,this.minZoomLevel,this.maxZoomLevel,"zoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMinZoomLevel() and mapView.Camera.setMaxZoomLevel() to adjust limits."))}getState(){return{zoomLevel:this.zoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,minPitch:this.minPitch,maxPitch:this.maxPitch,autoMinZoomLevel:this.autoMinZoomLevel,panMode:this.panMode,screenOffsets:this.insetsPadding,center:this.center,bearing:this.bearing,pitch:this.pitch,elevation:this.elevation}}get isAnimating(){return c(this,ve).cameraSystem.isAnimating}cancelAnimation(){c(this,ve).cameraSystem.cancelAnimation()}get maxZoomLevel(){return c(this,ve).cameraSystem.maxZoomLevel}get minZoomLevel(){return c(this,ve).cameraSystem.minZoomLevel}setAutoMinZoomLevel(t){c(this,ve).panBoundsSystem.autoMinZoomLevel=t,t&&(c(this,ve).panBoundsSystem.dirty=!0,c(this,ve).panBoundsSystem.update())}get autoMinZoomLevel(){return c(this,ve).panBoundsSystem.autoMinZoomLevel}setMinZoomLevel(t,r=!1){var i;r&&this.setAutoMinZoomLevel(!1);let n=Wn(t,vn.MIN_MERCATOR_ZOOM_LEVEL,this.maxZoomLevel,"setMinZoomLevel was clamped. minZoomLevel must be between ".concat(vn.MIN_MERCATOR_ZOOM_LEVEL," and maxZoomLevel."));c(this,ve).cameraSystem.setMinZoomLevel(n),this.zoomLevel<n&&this.setZoomLevel(n),(i=c(this,de).map)==null||i.setMinZoom(n)}setMaxZoomLevel(t){var n;let r=Wn(t,this.minZoomLevel,vn.MAX_MERCATOR_ZOOM_LEVEL,"setMaxZoomLevel was clamped. maxZoomLevel must be between minZoomLevel and ".concat(vn.MAX_MERCATOR_ZOOM_LEVEL,"."));c(this,ve).cameraSystem.setMaxZoomLevel(r),this.zoomLevel>r&&this.setZoomLevel(r),(n=c(this,de).map)==null||n.setMaxZoom(r)}get maxPitch(){var t,r;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(r=(t=c(this,de).map)==null?void 0:t.getMaxPitch)==null?void 0:r.call(t):Te.radToDeg(c(this,ve).cameraSystem.maxTilt)}get minPitch(){var t,r;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(r=(t=c(this,de).map)==null?void 0:t.getMinPitch)==null?void 0:r.call(t):Te.radToDeg(c(this,ve).cameraSystem.minTilt)}setMinPitch(t){var n;let r=Math.max(Q7,t);(n=c(this,de).map)==null||n.setMinPitch(r),c(this,ve).cameraSystem.minTilt=Te.degToRad(r)}setMaxPitch(t){var n;let r=Math.min(eB,t);(n=c(this,de).map)==null||n.setMaxPitch(r),c(this,ve).cameraSystem.maxTilt=Te.degToRad(r)}get bearing(){var t;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(t=c(this,de).map)==null?void 0:t.getBearing():Te.radToDeg(c(this,ve).cameraSystem.getRotation())}setBearing(t){var r;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map){(r=c(this,de).map)==null||r.setBearing(t);return}c(this,ve).cameraSystem.setRotation(Te.degToRad(t))}get pitch(){var t;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(t=c(this,de).map)==null?void 0:t.getPitch():Te.radToDeg(c(this,ve).cameraSystem.getTilt())}setPitch(t){var r;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map){(r=c(this,de).map)==null||r.setPitch(t);return}c(this,ve).cameraSystem.setTilt(Te.degToRad(Wn(t,this.minPitch,this.maxPitch,"pitch was clamped to minPitch/maxPitch bounds. Use mapView.Camera.setMinPitch() and mapView.Camera.setMaxPitch() to adjust limits.")))}get elevation(){return c(this,ve).cameraSystem.getPedestal()}setElevation(t){c(this,ve).cameraSystem.setPedestal(t,!0)}animateElevation(t,r){return c(this,Ws)&&c(this,Ws).stop(),new Promise(n=>{var i;c(this,ve).cameraSystem.animateCamera({position:{z:t}},(r==null?void 0:r.duration)||300,lm[(r==null?void 0:r.easing)||"ease-in-out"],n,n,{interruptible:(i=r==null?void 0:r.interruptible)!=null?i:!0})})}get insetsPadding(){return c(this,Ui).insetsPadding}get panMode(){return c(this,ve).cameraSystem.enablePan===!1&&c(this,ve).cameraSystem.enablePedestal===!0?"elevation":"default"}setPanMode(t){if(t!=="default"&&t!=="elevation")throw new Error("Invalid pan mode");t!==this.panMode&&(t==="default"?(c(this,ve).cameraSystem.enablePan=!0,c(this,ve).cameraSystem.enablePedestal=!1):(c(this,ve).cameraSystem.enablePan=!1,c(this,ve).cameraSystem.enablePedestal=!0))}setInsetPadding(t){c(this,Ui).insetsPadding=Object.assign({},c(this,Ui).insetsPadding,t)}animateTo(t){var u,s,d,m,f,g;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map)return(g=c(this,de).map)==null||g.flyTo({center:(u=t.center)!=null?u:this.center,zoom:(s=t.zoomLevel)!=null?s:this.zoomLevel,bearing:(d=t.bearing)!=null?d:this.bearing,pitch:(m=t.pitch)!=null?m:this.pitch,duration:(f=t.duration)!=null?f:600}),Promise.resolve();let r=t.center?c(this,de).convertTo3DMapPosition(t.center[1],t.center[0],t.center[2]||this.elevation):void 0,n=t.zoomLevel!==void 0?c(this,ve).cameraSystem.convertZoomLevelToAltitude(Wn(t.zoomLevel,this.minZoomLevel,this.maxZoomLevel,"zoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMinZoomLevel() and mapView.Camera.setMaxZoomLevel() to adjust limits.")):void 0,i=t.bearing!==void 0?Te.degToRad(t.bearing):void 0,a=t.pitch!==void 0?Te.degToRad(Wn(t.pitch,this.minPitch,this.maxPitch,"pitch was clamped to minPitch/maxPitch bounds. Use mapView.Camera.setMinPitch() and mapView.Camera.setMaxPitch() to adjust limits.")):void 0;return new Promise(b=>{var v;c(this,ve).cameraSystem.animateCamera({position:r,zoom:n,rotation:i,tilt:a},t.duration||0,lm[t.easing||"ease-in-out"],()=>{c(this,ve).interactionSystem.handleHover(),b()},b,{interruptible:(v=t==null?void 0:t.interruptible)!=null?v:!0})})}getCameraFrameForCoordinates(t,r){let n=pt(this,Hs,pg).call(this,r||{},()=>Promise.resolve()),{pointCloud:i}=t6(t,c(this,de),c(this,Ui).geometry3DMap);if(i.length===0)return Se.error("No valid coordinates found in targets:",t),{center:this.center,zoomLevel:this.zoomLevel};let{center:a,zoomLevel:u}=c(this,ve).cameraSystem.getCameraFrameForCoordinates(i,n);return{center:c(this,de).convert3DMapPositionToCoordinate(a),zoomLevel:u}}focusOn(t,r){var u,s,d,m;let{pointCloud:n,geoBounds:i,firstPosition:a}=t6(t,c(this,de),c(this,Ui).geometry3DMap);return n.length===0?(Se.error("No valid coordinates found in targets:",t),Promise.resolve()):c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(n.length===1&&a?(u=c(this,de).map)==null||u.flyTo({center:[a[0],a[1]],duration:(r==null?void 0:r.duration)||c(this,de).map.getBearing(),animate:!0,bearing:(r==null?void 0:r.bearing)===void 0?c(this,de).map.getBearing():r==null?void 0:r.bearing,pitch:(r==null?void 0:r.pitch)===void 0?c(this,de).map.getPitch():r==null?void 0:r.pitch,zoom:(r==null?void 0:r.maxZoomLevel)||c(this,de).map.getMaxZoom()}):(tB&&nB(c(this,de),i),(m=c(this,de).map)==null||m.fitBounds(i,{duration:(s=r==null?void 0:r.duration)!=null?s:vn.DEFAULT_ANIMATION_DURATION,bearing:(r==null?void 0:r.bearing)===void 0?c(this,de).map.getBearing():r==null?void 0:r.bearing,pitch:(r==null?void 0:r.pitch)===void 0?c(this,de).map.getPitch():r==null?void 0:r.pitch,maxZoom:(d=r==null?void 0:r.maxZoomLevel)!=null?d:c(this,de).map.getMaxZoom()})),c(this,ve).interactionSystem.handleHover(),Promise.resolve()):new Promise(f=>{c(this,ve).cameraSystem.focusOn(n,pt(this,Hs,pg).call(this,r||{},f))})}};de=new WeakMap,ve=new WeakMap,Ui=new WeakMap,Ws=new WeakMap,Hs=new WeakSet,pg=o(function(t,r){var n;return{minZoom:(t==null?void 0:t.maxZoomLevel)===void 0?void 0:c(this,ve).cameraSystem.convertZoomLevelToAltitude(Wn(t.maxZoomLevel,this.minZoomLevel,this.maxZoomLevel,"maxZoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMaxZoomLevel() to adjust limits.")),maxZoom:(t==null?void 0:t.minZoomLevel)===void 0?void 0:c(this,ve).cameraSystem.convertZoomLevelToAltitude(Wn(t.minZoomLevel,this.minZoomLevel,this.maxZoomLevel,"minZoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMinZoomLevel() to adjust limits.")),padding:t!=null&&t.padding?Object.assign({},Qc,t==null?void 0:t.padding):this.insetsPadding,curve:lm[(t==null?void 0:t.easing)||"ease-in-out"],rotation:(t==null?void 0:t.bearing)===void 0?void 0:Te.degToRad(t.bearing),tilt:(t==null?void 0:t.pitch)!==void 0?Te.degToRad(Wn(t.pitch,this.minPitch,this.maxPitch,"pitch was clamped to minPitch/maxPitch bounds. Use mapView.Camera.setMinPitch() and mapView.Camera.setMaxPitch() to adjust limits.")):void 0,duration:t==null?void 0:t.duration,callback:o(()=>{c(this,ve).interactionSystem.handleHover(),r()},"callback"),cancelledCallback:r,interruptible:(n=t==null?void 0:t.interruptible)!=null?n:!0,verticalPadding:t==null?void 0:t.verticalPadding}},"#convertToLegacy"),o(fg,"Camera");var dm=fg;function mg(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}o(mg,"updateBounds");function t6(e,t,r){var s;let n=[],i=[1/0,1/0,-1/0,-1/0],a=null;if(!e||!Array.isArray(e)||e.length===0)return{pointCloud:n,geoBounds:i,firstPosition:a};let u=t.getSystems().renderSystem;for(let d of e)if(typeof d=="string"){(u.threeDdirty||u.twoDdirty)&&t.renderSync();let m=r.get(d);if(!m){Se.error("Entity not found with id:",d);continue}let f=new rr;x4(t,"userData"in m&&(s=m.userData.entityId)!=null?s:m.id,n,f,m instanceof nr?m.position.z:void 0);let g=t.convert3DMapPositionToCoordinate(f.min),b=t.convert3DMapPositionToCoordinate(f.max);mg(i,g),mg(i,b),a||(a=t.convert3DMapPositionToCoordinate(f.getCenter(new ne)))}else n.push(t.convertTo3DMapPosition(d[1],d[0],d[2]||0)),mg(i,d),a||(a=d);return{pointCloud:n,geoBounds:i,firstPosition:a}}o(t6,"processTargets");function nB(e,t){var n,i,a,u;let r=[[t[0],t[1]],[t[0],t[3]],[t[2],t[3]],[t[2],t[1]],[t[0],t[1]]];(n=e.map)!=null&&n.getLayer("bounds-outline")&&e.map.removeLayer("bounds-outline"),(i=e.map)!=null&&i.getSource("bounds-source")&&e.map.removeSource("bounds-source"),(a=e.map)==null||a.addSource("bounds-source",{type:"geojson",data:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:r}}}),(u=e.map)==null||u.addLayer({id:"bounds-outline",type:"line",source:"bounds-source",layout:{},paint:{"line-color":"#FF0000","line-width":2,"line-opacity":.8}})}o(nB,"drawBounds");var hg="";var Fu=!1,iB=150,yg=class yg extends Le{constructor(r,n,i=!0){super();h(this,"worker");h(this,"debugContext");h(this,"debugCanvas");h(this,"collidersDirty",!0);h(this,"packedMessage",[[],0,0,0,0,0,"bottom-left"]);h(this,"visibleCollidersQTree",new tn(new Fe(0,0,0,0)));h(this,"interactiveCollidersQTree",new tn(new Fe(0,0,0,0)));h(this,"coreState");h(this,"postMessage");h(this,"showCollisionBoxes",o(()=>{Fu=!0,this.debugCanvas.style.display="block"},"showCollisionBoxes"));h(this,"hideCollisionBoxes",o(()=>{Fu=!1,this.debugContext.clearRect(0,0,this.debugCanvas.width,this.debugCanvas.height),this.debugCanvas.style.display="none"},"hideCollisionBoxes"));h(this,"currentMsgId","");h(this,"working",!1);h(this,"_postMessage",o(()=>{this.worker.postMessage(this.packedMessage)},"_postMessage"));h(this,"componentArray",[]);h(this,"update",o((r,n,i="bottom-left",a=!1,u=[])=>{let s=!1;if(this.collidersDirty){this.packedMessage=[[],0,0,0,0,0,"bottom-left"],this.componentArray=[];let f;for(let g of this.coreState.geometry2DsInScene)f=g.components[0],this.componentArray.push(f);this.resize(r,n,i),this.collidersDirty=!1,s=!0}else s=this.componentArray.some(f=>f.collisionDirty===!0);s&&this.componentArray.sort((f,g)=>g.rank-f.rank);let d=0;for(let f of u)this.packedMessage[0][d]==null&&(this.packedMessage[0][d]=[]),this.packedMessage[0][d][0]==null&&(this.packedMessage[0][d][0]=[]),this.packedMessage[0][d][0]=[[f.h/2,f.h/2,f.w/2,f.w/2,ef]],this.packedMessage[0][d][1]=1,this.packedMessage[0][d][2]=1,this.packedMessage[0][d][3]=f.x,this.packedMessage[0][d][4]=f.y,this.packedMessage[0][d][5]=0,this.packedMessage[0][d][6]=-1,d++;let m=0;for(;d<this.componentArray.length+u.length;){if(this.packedMessage){let f=this.componentArray[m].toPackedMessage(a&&!s);this.packedMessage[0][d]==null&&(this.packedMessage[0][d]=[]),this.packedMessage[0][d][0]==null&&(this.packedMessage[0][d][0]=[]),this.packedMessage[0][d][0]=f.bboxes,this.packedMessage[0][d][1]=f.enabled&&this.componentArray[m].visible&&!this.componentArray[m].isOccluded?1:0,this.packedMessage[0][d][2]=f.rank===Fa?1:0,this.packedMessage[0][d][3]=f.x,this.packedMessage[0][d][4]=f.y,this.packedMessage[0][d][5]=f.shouldCollideWithScreenEdges?1:0,this.packedMessage[0][d][6]=f.lockedToStrategyIndex}d++,m++}this.working||this.postMessage()},"update"));h(this,"resolve",o(r=>{if(this.working=!1,this.collidersDirty||!r.data)return;let n=r.data.colliders,i=-1,a,u,s,d=new Fe(0,0,this.debugCanvas.width,this.debugCanvas.height);if(this.visibleCollidersQTree=new tn(d),this.interactiveCollidersQTree=new tn(d),Fu)for(let m of r.data.staticColliders)this.visibleCollidersQTree.insert(new Fe(m.x,m.y,m.w,m.h));for(let m=0;m<this.componentArray.length;m++){let f=this.componentArray[m];if(n[m]==null)continue;i=n[m][0],a=n[m][2];let g=f.offscreen,b=n[m][1]===1;f.offscreen=b,i!==-1&&a!=null?(s=new Fe(a.x,a.y,a.w,a.h,{entityId:f.id}),this.visibleCollidersQTree.insert(s),u=this.coreState.geometry2DMap.get(f.id),(u==null?void 0:u.components[1])!=null&&this.interactiveCollidersQTree.insert(s),(f.canShow===!1||f.visibilityNeedsUpdate!==!1||g&&!b)&&"visibilityNeedsUpdate"in f&&(f.visibilityNeedsUpdate="show"),i!==-1&&i!==f.currentStrategyIndex&&(f.activeBoundingBox=s,f.onStrategySelected(i))):((f.canShow===!0||f.visibilityNeedsUpdate!==!1)&&"visibilityNeedsUpdate"in f&&(f.visibilityNeedsUpdate="hide"),i!==-1&&i!==f.currentStrategyIndex&&f.onStrategySelected(i))}Fu&&this.drawDebug(),this.publish("visibility-changed")},"resolve"));h(this,"drawDebug",o(()=>{Fu&&this.visibleCollidersQTree&&(this.debugContext.clearRect(0,0,this.debugCanvas.width,this.debugCanvas.height),this.debugContext.beginPath(),this.visibleCollidersQTree.drawObjects(this.debugContext))},"drawDebug"));h(this,"destroy",o(()=>{this.worker.terminate()},"destroy"));this.worker=i===!1?new rs:hg!==""?new Worker(hg):new Worker(URL.createObjectURL(new Blob([sb],{type:"text/javascript"}))),this.worker.onerror=()=>{this.worker=new rs,this.worker.onmessage=a=>this.resolve(a)},this.coreState=n,this.debugCanvas=r,this.debugContext=r.getContext("2d"),this.worker.onmessage=a=>this.resolve(a),this.postMessage=wa(this._postMessage,iB),Fu?this.showCollisionBoxes():this.hideCollisionBoxes()}resize(r,n,i){this.packedMessage[6]=i,this.packedMessage[5]=n,this.packedMessage[4]=r,this.packedMessage[3]=this.debugCanvas.width,this.packedMessage[2]=this.debugCanvas.height}};o(yg,"CollisionSystem");var mm=yg;l();l();l();l();var vg=class vg{constructor(t){h(this,"type");h(this,"event");this.type=0,this.event=t}get timestamp(){return this.event.timeStamp}};o(vg,"Tap");var pm=vg,xg=class xg{constructor(){h(this,"taps",[])}add(t){this.lastPointerDown&&t.timestamp-this.lastPointerDown.timestamp<50?this.lastPointerDown.type=1:this.taps.push(t)}get lastPointerDown(){return this.taps.length>=1?this.taps[this.taps.length-1]:void 0}get isSingleTapWithTwoFingers(){var t;return this.isSingleTap&&((t=this.lastPointerDown)==null?void 0:t.type)===1}get isSingleTapWithOneFinger(){var t;return this.isSingleTap&&((t=this.lastPointerDown)==null?void 0:t.type)===0}get isDoubleTapWithOneFinger(){var t,r;return this.isDoubleTap&&((t=this.taps[0])==null?void 0:t.type)===0&&((r=this.taps[1])==null?void 0:r.type)===0}get isSingleTap(){return this.taps.length===1}get isDoubleTap(){return this.taps.length===2}discardOutsideOfWaitWindow(t){this.taps=this.taps.filter(r=>t-r.timestamp<300)}flush(){this.taps=[]}get _taps(){return this.taps}destroy(){this.flush()}};o(xg,"TapsController");var fm=xg;l();function Eg(e){let t=new Set;for(let r of e){let n=r.object;for(;n.visible&&n.parent&&n.parent.visible===!0&&!t.has(n.parent);)n=n.parent,n instanceof nr&&n.type==="group-container"&&n.visible&&n.components[0]&&t.add(n)}return Array.from(t)}o(Eg,"getUniqueIntersectedGroupContainers");var Ig=class Ig extends Le{constructor(r,n,i,a,u){super();h(this,"raycaster",new Vn);h(this,"state",{hovered3DEntity:void 0,hovered2DEntities:new Set,hovered3DContainers:void 0,lastHover:void 0,interaction:{mouseDownStart:void 0,distanceFromMouseDown:void 0,isPanning:!1}});h(this,"coreState");h(this,"camera");h(this,"worldPlane");h(this,"_quadtree",new tn(new Fe(0,0,0,0)));h(this,"_container");h(this,"lastPointerEvent");h(this,"cursor","grab");h(this,"touchesCount",0);h(this,"isUserMovingCamera");h(this,"hasTouched",!1);h(this,"onPointerMove",wa(r=>{r&&(r.preventDefault(),this.updateInteractionStateIfPanning(r),(r.pointerType!=="touch"||r.pointerType===void 0&&this.hasTouched)&&this.handleHover(r),this.handleCursor())},y.env.NODE_ENV==="test"?0:16,{leading:!0}));h(this,"tapsControl",new fm);h(this,"onPointerDown",o(r=>{r.target===this._container&&(this._container.addEventListener("pointerup",this.onPointerUp,!1),this._container.addEventListener("pointercancel",this.onPointerUp,!1),this.state.interaction.mouseDownStart={time:Date.now(),timestamp:r.timeStamp,offsetX:r.offsetX,offsetY:r.offsetY},this.lastPointerEvent=r,this.state.interaction.distanceFromMouseDown=0,this.handleCursor(),r.pointerType==="touch"&&(this.tapsControl.add(new pm(r)),this.touchesCount=Math.max(0,this.touchesCount+1)))},"onPointerDown"));h(this,"clickTimeout");h(this,"onPointerUp",o(r=>{this.tapsControl.discardOutsideOfWaitWindow(r.timeStamp),this.lastPointerEvent=r,this.touchesCount=Math.max(0,this.touchesCount-1),this.touchesCount===0&&(this._container.removeEventListener("pointerup",this.onPointerUp,!1),this._container.removeEventListener("pointercancel",this.onPointerUp,!1)),this.updateInteractionStateIfPanning(r);let{mouseDownStart:n}=this.state.interaction;!n||this.state.interaction.distanceFromMouseDown==null||(Date.now()<n.time+300&&(this.tapsControl.isSingleTapWithTwoFingers||this.state.interaction.distanceFromMouseDown<=15)&&(r.pointerType==="touch"&&!this.isUserMovingCamera()?this.tapsControl.isSingleTapWithTwoFingers?(this.publish("singletap-with-twofinger",r),this.flush()):this.tapsControl.isSingleTapWithOneFinger&&this.touchesCount===0?(this.clickTimeout&&clearTimeout(this.clickTimeout),this.clickTimeout=window.setTimeout(()=>{this.handleClick(r),this.flush()},300)):this.tapsControl.isDoubleTapWithOneFinger&&(this.publish("doubletap-with-onefinger",r),this.flush()):this.handleClick(r)),this.state.interaction.mouseDownStart=void 0,this.state.interaction.distanceFromMouseDown=void 0,this.state.interaction.isPanning=!1,this.handleCursor())},"onPointerUp"));h(this,"dirty3D",!0);h(this,"cachedHitBoxes",{entities:[]});h(this,"ndcPoint",new Ae);h(this,"debugPanel");this.isUserMovingCamera=u,this.raycaster.layers.enableAll(),this.raycaster.layers.disable(1),this.camera=i,this._container=r,this.coreState=n,this.worldPlane=a,this._container.addEventListener("pointerdown",this.onPointerDown,!1),this._container.addEventListener("pointermove",this.onPointerMove,!1),this._container.classList.add("mappedin-interactive")}updateQuadtree(r){this._quadtree=r}setHovered3DEntityInteractionComponentDirty(){if(this.state.hovered3DEntity){let r=this.state.hovered3DEntity.components[2];r&&(r.dirty=!0)}}getThreeDIntersectsFromXY(r){this.raycaster.setFromCamera(r,this.camera),this.raycaster.layers.enable(0);let n=this.raycaster.intersectObjects(this._hitBoxes.entities,!0).filter(a=>{var u,s;return((u=a.object)==null?void 0:u.name)==="worldPlane"||((s=a.object)==null?void 0:s.visible)}),i=n.findIndex(a=>{var u;return((u=a.object)==null?void 0:u.name)==="worldPlane"});return i!==-1&&n.push(n.splice(i,1)[0]),n}getGroupContainerIntersectsFromXY(r){let n=this.getThreeDIntersectsFromXY(r),i;return n!=null&&n.length>0&&(i=Eg(n)),i}flush(){this.tapsControl.flush(),this.clickTimeout!=null&&(clearTimeout(this.clickTimeout),this.clickTimeout=void 0)}handleHover(r){let n=r||this.lastPointerEvent;if(this.state.interaction.mouseDownStart||!n||this.isUserMovingCamera())return;let{entity3D:i,entity2D:a,position:u,groupContainers:s}=this.intersect(n);(this.detect3DEntityHover(i)||this.detect2DEntityHover(a)||this.detect3DContainerHover(s))&&(this.state.hovered3DEntity=i,this.state.lastHover=i,this.state.hovered2DEntities=new Set(a.map(d=>d.id)),this.state.hovered3DContainers=s,this.publish("hover",{entity2D:a,entity3D:this.state.hovered3DEntity,position:u,groupContainers:s})),this.handleCursor()}handleCursor(){var u;let r=!!(this.state.hovered3DEntity&&((u=this.state.hovered3DEntity)!=null&&u.components[2])||this.state.hovered2DEntities.size>0),n=!!this.state.interaction.mouseDownStart,i=this.state.interaction.isPanning,a=uB(r,i,n);this.cursor!==a&&(this.cursor=a,a==="pointer"?this._container.classList.add("mappedin-interaction-hover"):this._container.classList.remove("mappedin-interaction-hover"))}detect2DEntityHover(r){if(r.length!==this.state.hovered2DEntities.size)return!0;for(let n=0;n<r.length;n++)if(!this.state.hovered2DEntities.has(r[n].id))return!0;return!1}handleClick(r){let n=this.intersect(r);this.publish("click",{entity2D:n.entity2D,entity3D:n.entity3D,position:n.position,groupContainers:n.groupContainers,pointerEvent:{button:r.button}})}get _hitBoxes(){if(this.dirty3D){this.cachedHitBoxes.entities=[];let r;for(let n of this.coreState.geometry3DIdsInScene)r=this.coreState.geometry3DMap.get(n),((r==null?void 0:r.type)==="geometry"||(r==null?void 0:r.type)==="model"||(r==null?void 0:r.type)==="path"||(r==null?void 0:r.type)==="custom-geometry")&&r.components[0].mesh&&!this.cachedHitBoxes.entities.includes(r.components[0].mesh)&&this.cachedHitBoxes.entities.push(r.components[0].mesh);return this.dirty3D=!1,this.cachedHitBoxes.entities.push(this.worldPlane),this.cachedHitBoxes}return this.cachedHitBoxes}intersect(r){var S,D,I,k,V;let{offsetX:n,offsetY:i}=r,a=[n,i],s=this._quadtree.queryPoint(a).filter(z=>z.intersectsPoint(a));this.ndcPoint.x=n/this._container.clientWidth*2-1,this.ndcPoint.y=-(i/this._container.clientHeight)*2+1;let d=this.getThreeDIntersectsFromXY(this.ndcPoint),m=(S=d[0])==null?void 0:S.point,f=[],g=[],b=d.filter(z=>z.object.name!=="worldPlane");for(let z of b)z.object instanceof Pe&&z.object.material.depthTest===!1?f.push(z):g.push(z);let v=(I=(D=f[0])!=null?D:g[0])!=null?I:void 0,C,A;if(v!=null){if(C=cB(v.object,this.coreState.geometry3DMap),!C){let z=(k=v==null?void 0:v.instanceId)!=null?k:v==null?void 0:v.batchId;C=z!=null&&(v!=null&&v.object.userData.entities)?this.coreState.geometry3DMap.get(v==null?void 0:v.object.userData.entities[z]):this.coreState.geometry3DMap.get(v==null?void 0:v.object.userData.entityId)}C!=null&&C.components[2]&&(A=C)}let x=Eg(b),E=[];for(let z of s)if(((V=z==null?void 0:z.userData)==null?void 0:V.entityId)==="watermark")E.push({id:"watermark"});else{let M=this.coreState.geometry2DMap.get(z==null?void 0:z.userData.entityId);M&&E.push(M)}return lB(E),{entity2D:E,entity3D:A,position:m,groupContainers:x.length>0?x:void 0}}detect3DEntityHover(r){return this.state.lastHover!==r&&(this.state.lastHover&&u6(this.state.lastHover,!1,this.coreState),r&&u6(r,!0,this.coreState)),this.state.hovered3DEntity!==r}detect3DContainerHover(r){return!c4(this.state.hovered3DContainers,r)}updateInteractionStateIfPanning(r){this.state.interaction.mouseDownStart&&(this.state.interaction.distanceFromMouseDown=Math.sqrt(Math.pow(r.offsetX-this.state.interaction.mouseDownStart.offsetX,2)+Math.pow(r.offsetY-this.state.interaction.mouseDownStart.offsetY,2)),!this.state.interaction.isPanning&&this.state.interaction.distanceFromMouseDown>15&&(this.state.interaction.isPanning=!0))}getMouseRayIntersects(){return this.raycaster.intersectObjects([this.worldPlane],!1)}destroy(){this._container.removeEventListener("pointerdown",this.onPointerDown,!1),this._container.removeEventListener("pointermove",this.onPointerMove,!1),this._container.removeEventListener("pointerup",this.onPointerUp,!1),this._container.removeEventListener("pointercancel",this.onPointerUp,!1)}enableDebug(){let r=document.createElement("div");r.style.position="absolute",r.style.top="0",r.style.right="0",r.style.backgroundColor="white",r.style.padding="10px",document.body.append(r),r.id="interaction-debug-panel",this.debugPanel=r,this.on("doubletap-with-onefinger",()=>{this.queueDebugMessage("doubletap-with-onefinger","#ffadad")}),this.on("singletap-with-twofinger",()=>{this.queueDebugMessage("singletap-with-twofinger","#ffd6a5")}),this.on("click",n=>{var i,a,u;this.queueDebugMessage("CLICK \n3D: ".concat((i=n.entity3D)==null?void 0:i.id," \n2D: ").concat((a=n.entity2D)==null?void 0:a.map(s=>s.id).join(", ")," \nPos: ").concat((u=n.position)==null?void 0:u.toArray().join(", ")),"#fdffb6")}),this.on("hover",n=>{var i,a,u;this.queueDebugMessage("HOVER \n3D: ".concat((i=n.entity3D)==null?void 0:i.id," \n2D: ").concat((a=n.entity2D)==null?void 0:a.map(s=>s.id).join(", ")," \nPos: ").concat((u=n.position)==null?void 0:u.toArray().join(", ")),"#caffbf")})}get _state(){return this.state}queueDebugMessage(r,n){var a;let i=document.createElement("pre");i.style.maxWidth="300px",i.style.transition="opacity 500ms cubic-bezier(0.4, 0, 0.2, 1)",i.style.backgroundColor=n,i.textContent=r,(a=this.debugPanel)==null||a.prepend(i),setTimeout(()=>{i.style.opacity="0",setTimeout(()=>{i.remove()},500)},2500)}getCursor(){return this.cursor}};o(Ig,"InteractionSystem");var Ks=Ig;function u6(e,t,r){var u;let n=e.components[2];n&&n.hover!==!0&&(n.hover=t?"user-interaction":!1,n.dirty=!0);let i=(u=e.components[0].textMesh)==null?void 0:u.userData.entityId;if(!i)return;let a=r.geometry3DMap.get(i);(a==null?void 0:a.type)==="text3d"&&(a.components[1].hoverByPolygon=t,a.components[1].dirty=!0)}o(u6,"updateHover");function uB(e,t,r){return t?"grabbing":e?"pointer":r?"grabbing":"grab"}o(uB,"processCursor");function sB(e){let t=e;for(;t!=null&&t.parent;){if(t instanceof Xi)return;if(t.userData.isSingleModel)return t;t=t.parent}}o(sB,"findModelParent");function cB(e,t){let r=sB(e);return r?t.get(r.userData.entityId):void 0}o(cB,"findModelParentEntity");function lB(e){if(e.length<=1)return;let t=[],r=[];for(let i=0;i<e.length;i++){let a=e[i];a.type==="marker"?t.push(a):r.push(a)}if(t.length>1){let i,a;t.sort((u,s)=>{i=u.components[0],a=s.components[0];let d=i.projection.y,m=a.projection.y;return d!==m?m-d:i.markerContainer.compareDocumentPosition(a.markerContainer)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})}if(r.length>1){let i=[];for(let a=0;a<r.length;a++){let u=r[a],s=u.components[0];i.push({entity:u,y:s.projection.y,idx:a})}i.sort((a,u)=>a.y!==u.y?u.y-a.y:u.idx-a.idx);for(let a=0;a<i.length;a++)r[a]=i[a].entity}let n=0;for(let i=0;i<t.length;i++)e[n++]=t[i];for(let i=0;i<r.length;i++)e[n++]=r[i]}o(lB,"sort2DEntitiesByVisualPriority");l();l();var ra,go,hm,yo,s6,Js,gm,c6,l6,Xs,ym,Ys,Qs,bm,Cg=class Cg{constructor(t){L(this,yo);L(this,ra,null);L(this,go);h(this,"getCurrentSceneGLTF",o(async t=>{let r=R({onlyVisible:!0,binary:!0,light:!0,scale:1},t),n=await pt(this,yo,s6).call(this),i=c(this,hm).call(this,r),a=await n.parseAsync(i,{trs:!1,maxTextureSize:1/0,onlyVisible:r.onlyVisible,binary:r.binary,scale:r.scale}),u;if(a instanceof ArrayBuffer)u=new Blob([a],{type:"application/octet-stream"});else{let s=JSON.stringify(a,null,2);u=new Blob([s],{type:"text/plain"})}return u},"getCurrentSceneGLTF"));L(this,hm,o(t=>{let{scale:r,light:n,onlyVisible:i}=t,a=new Xi,u=new rr().setFromObject(c(this,go).geometryScene);if(c(this,Js).call(this,c(this,go).geometryScene,a,i),n){let s=new Hc(16777215,.3*Math.PI);s.position.set(0,Math.max(u.max.x,u.max.y)*r*.5,u.max.y*r*4),s.lookAt(0,0,-1),s.target.position.set(0,0,-1),s.add(s.target),a.add(s)}return a},"#getExportedScene"));L(this,Js,o((t,r,n)=>{t.material&&(t instanceof Zc?pt(this,yo,c6).call(this,t).forEach(i=>r.add(i)):t instanceof To&&r.add(pt(this,yo,l6).call(this,t))),t.children.forEach(i=>{(!n||i.visible)&&c(this,Js).call(this,i,r,n)})},"#processObject3D"));L(this,gm,o((t,r,n)=>{let i=new qu({color:new Ot(t),metalness:0});return i.opacity=r,i.transparent=n,i},"#createStandardMaterial"));L(this,Xs,o(t=>{let{geometry:r,material:n,position:i,rotation:a,quaternion:u,scale:s}=t;if(!(r!=null&&r.isBufferGeometry))return t;let d=r.attributes.position,m=r.attributes.normal,f=r.attributes.uv;return c(this,ym).call(this,d,m),c(this,Qs).call(this,i,s,a,u),f&&c(this,bm).call(this,f),n!=null&&n.map&&r.type==="PlaneGeometry"&&(t.side=hi),t},"#convertGeometry"));L(this,ym,o((t,r)=>{let n=new ne,i=new ne;for(let a=0;a<t.count;a++)n.fromBufferAttribute(t,a),c(this,Ys).call(this,n),t.setXYZ(a,n.x,n.y,n.z),r&&(i.fromBufferAttribute(r,a),c(this,Ys).call(this,i),r.setXYZ(a,i.x,i.y,i.z))},"#convertAttributes"));L(this,Ys,o(t=>{let r=t.y;t.y=t.z,t.z=-r},"#convertVector"));L(this,Qs,o((t,r,n,i)=>{let a=t.y;t.y=t.z,t.z=-a;let u=r.y;if(r.y=r.z,r.z=u,n instanceof Ea)n.order="YXZ",n.set(n.x,n.y,n.z,n.order);else{let s=i.y;i.set(i.x,i.z,-s,i.w)}},"#convertObjectProperties"));L(this,bm,o(t=>{for(let r=0;r<t.count;r++){let n=t.getX(r),i=t.getY(r);t.setXY(r,n,i)}},"#convertUVs"));K(this,go,t)}destroy(){K(this,ra,null)}};ra=new WeakMap,go=new WeakMap,hm=new WeakMap,yo=new WeakSet,s6=o(async function(){if(!c(this,ra)){let{GLTFExporter:t}=await import("./GLTFExporter-6U2G7XYB.js");K(this,ra,new t)}return c(this,ra)},"#getGLTFExporter"),Js=new WeakMap,gm=new WeakMap,c6=o(function(t){var u,s;let r=[],i=((u=t.userData)!=null&&u.entities?Object.values((s=t.userData)==null?void 0:s.entities):[]).map(d=>c(this,go).geometry3DMap.get(d)),a=new Map;return i.forEach(d=>{var v;if(!d||!(d instanceof at))return;let m=d.components[1],f=d.components[2];if(!m.visible||m instanceof Kn&&m.opacity===0||m instanceof es||m instanceof nl)return;let g=f!=null&&f.hover?m.hoverColor||c(this,go).hoverColor:m.color,b="".concat(g,"-").concat(m.opacity,"-").concat(Number(m.visible));a.has(b)||a.set(b,[]),(v=a.get(b))==null||v.push(d)}),a.forEach((d,m)=>{let[f,g,b]=m.split("-"),v=d.reduce((E,S)=>{if(S.type==="custom-geometry")return E;let D=S.components[0];return"geometry"in D&&D.geometry instanceof zc&&E.push(D.geometry),E},[]);if(v.length===0){Se.error("No geometries found for batched mesh");return}let C=c(this,gm).call(this,f,Number(g),t.material.transparent),A=en(v,!0);if(!A){Se.error("No merged geometry found for batched mesh");return}let x=new Pe(A,C);x.position.copy(t.position),x.rotation.copy(t.rotation),x.scale.copy(t.scale),x.visible=!!b,c(this,Qs).call(this,x.position,x.scale,x.rotation,x.quaternion),r.push(c(this,Xs).call(this,x))}),r},"#processBatchedMesh"),l6=o(function(t){let r=t.geometry.clone(),n=t.material,i=new fr({color:n.color,side:hi});i.opacity=n.opacity,i.transparent=n.transparent;let a=new To(r,i);return a.position.copy(t.position),a.rotation.copy(t.rotation),a.scale.copy(t.scale),a.visible=t.visible,c(this,Xs).call(this,a)},"#processLineSegments"),Xs=new WeakMap,ym=new WeakMap,Ys=new WeakMap,Qs=new WeakMap,bm=new WeakMap,o(Cg,"ExporterSystem");var qs=Cg;l();l();var dB="gray",mB=.1,ec=100,Dg=new Hn.ClipperOffset;function pB(e,t){Dg.Clear(),t/=2;let r=e.map(i=>({X:i.x*ec,Y:i.y*ec}));Dg.AddPath(r,Hn.JoinType.jtMiter,Hn.EndType.etClosedPolygon);let n=new Hn.Paths;return Dg.Execute(n,t*ec),n.length?n.map(a=>a.map(u=>({x:u.X/ec,y:u.Y/ec}))):[e]}o(pB,"offset");function xm(e,t,r){var v,C,A,x,E;let{color:n=dB,opacity:i=1,altitude:a=0,height:u=mB}=r||{};Array.isArray(i)&&(i=1);let s={min:{x:1/0,y:1/0,z:a},max:{x:-1/0,y:-1/0,z:u+a},center:{x:0,y:0,z:(u+a)/2}},m=e.geometry.coordinates[0].map(S=>{let D=t(S[1],S[0]);return s.min.x=Math.min(s.min.x,D.x),s.min.y=Math.min(s.min.y,D.y),s.max.x=Math.max(s.max.x,D.x),s.max.y=Math.max(s.max.y,D.y),D});((C=(v=e.properties)==null?void 0:v.style)==null?void 0:C.edgeOffset)!=null&&e.properties.style.edgeOffset!==0||((A=e.properties)==null?void 0:A.image)!=null?m=pB(m,((E=(x=e.properties)==null?void 0:x.style)==null?void 0:E.edgeOffset)||0):m=[m];let f=[];for(let S of m){let D=new Ca;D.moveTo(S[0].x,S[0].y),S.slice(1).forEach(z=>D.lineTo(z.x,z.y)),D.lineTo(S[0].x,S[0].y);let I=e.geometry.coordinates.slice(1);D.holes=I.map(z=>{let M=z.map(Z=>t(Z[1],Z[0])),T=new Ia;return T.moveTo(M[0].x,M[0].y),M.slice(1).forEach(Z=>T.lineTo(Z.x,Z.y)),T.lineTo(M[0].x,M[0].y),T});let k=Yu(r==null?void 0:r.bevel,u),V=new Da(D,k);V.userData={style:{color:n,opacity:i},usedBevelSettings:k},f.push(V)}if(f.length===1)return f[0];let g=en(f);f.forEach(S=>S.dispose());let b=Yu(r==null?void 0:r.bevel,u);return g.userData={style:{color:n,opacity:i},usedBevelSettings:b,_split:!0},g}o(xm,"renderPolygonGeometry");l();var fB="gray",hB=.1;function Em(e,t,r){let{color:n=fB,opacity:i=1,altitude:a=0,height:u=hB}=r||{};Array.isArray(i)&&(i=1);let s={min:{x:1/0,y:1/0,z:a},max:{x:-1/0,y:-1/0,z:u+a}},d=Yu(r==null?void 0:r.bevel,u),m=[];e.geometry.coordinates.forEach(g=>{let b=new Ca,v=g[0].map(x=>{let E=t(x[1],x[0]);return s.min.x=Math.min(s.min.x,E.x),s.min.y=Math.min(s.min.y,E.y),s.max.x=Math.max(s.max.x,E.x),s.max.y=Math.max(s.max.y,E.y),E});b.moveTo(v[0].x,v[0].y),v.slice(1).forEach(x=>b.lineTo(x.x,x.y)),b.lineTo(v[0].x,v[0].y);let C=g.slice(1);b.holes=C.map(x=>{let E=x.map(D=>t(D[1],D[0])),S=new Ia;return S.moveTo(E[0].x,E[0].y),E.slice(1).forEach(D=>S.lineTo(D.x,D.y)),S.lineTo(E[0].x,E[0].y),S});let A=new Da(b,d);m.push(A)});let f=en(m);return m.forEach(g=>g.dispose()),f.translate(0,0,a||0),f.userData={style:{color:n,opacity:i},usedBevelSettings:d},f}o(Em,"renderMultiPolygonGeometry");l();var Tr=100,gB=.22,yB=.01;function d6(e,t,r={}){let{width:n=gB,height:i=yB,color:a="gray",opacity:u=1,altitude:s=0}=r,d={min:{x:1/0,y:1/0,z:s},max:{x:-1/0,y:-1/0,z:s+i}},m={bevelEnabled:!1,depth:i},f=new Hn.ClipperOffset,g=e.geometry.coordinates.map(A=>A.map(x=>t(x[1],x[0])));f.AddPaths(g.map(A=>A.map(x=>({X:x.x*Tr,Y:x.y*Tr}))),Hn.JoinType.jsMiter,Hn.EndType.etOpenRound);let b=new Hn.PolyTree;f.Execute(b,n/2*Tr);let v=[];for(let A of b.m_AllPolys){let x=new Ca;if(A.IsHole())continue;d.min.x=Math.min(d.min.x,A.m_polygon[0].X),d.min.y=Math.min(d.min.y,A.m_polygon[0].Y),d.max.x=Math.max(d.max.x,A.m_polygon[0].X),d.max.y=Math.max(d.max.y,A.m_polygon[0].Y);let E=A.m_polygon;x.moveTo(E[0].X/Tr,E[0].Y/Tr),E.slice(1).forEach(S=>x.lineTo(S.X/Tr,S.Y/Tr)),x.lineTo(E[0].X/Tr,E[0].Y/Tr),x.holes=A.m_Childs.map(S=>{let D=new Ia,I=S.m_polygon;return D.moveTo(I[0].X/Tr,I[0].Y/Tr),I.slice(1).forEach(k=>D.lineTo(k.X/Tr,k.Y/Tr)),D.lineTo(I[0].X/Tr,I[0].Y/Tr),D}),v.push(new Da(x,m))}let C=en(v);return C.translate(0,0,s||0),C.userData={style:{color:a,opacity:u}},f.Clear(),C}o(d6,"renderMultiLineStringGeometry");l();l();var Ou=oe.object({type:oe.enum(["Point"]),coordinates:oe.array(oe.number()).min(2).max(3)});var bB=oe.object({rotation:oe.array(oe.number()).length(3).optional(),altitude:oe.number().optional(),scale:oe.array(oe.number()).length(3).optional(),interactive:oe.boolean().optional(),verticalOffset:oe.number().optional(),id:oe.union([oe.number(),oe.string()]).optional()}),vB=oe.object({type:oe.enum(["Feature"]),geometry:Ou,properties:bB}),xB=oe.object({type:oe.enum(["FeatureCollection"]),features:oe.array(vB)}),EB=oe.object({color:oe.string()}),IB=oe.object({url:oe.string(),color:oe.string().optional(),opacity:oe.number().optional(),material:oe.record(oe.string(),EB).optional()});function p6(e,t,r){oe.union([oe.number(),oe.string()]).parse(e),xB.parse(t),IB.parse(r)}o(p6,"validateModelGroup");var tc,rc,nc,Pu,kn,Sg=class Sg{constructor(t){h(this,"mesh");h(this,"type","model");h(this,"positionDirty",!0);h(this,"outline");h(this,"geometry");h(this,"material");h(this,"feature");h(this,"instanceIndex",-1);L(this,tc,!0);h(this,"color",new Ot);h(this,"clippingPlane");h(this,"position",new ne);L(this,rc,0);L(this,nc,1);L(this,Pu,Jt.GEOMETRY);L(this,kn,!1);this.feature=t}get visible(){var t,r;return(r=(t=this.mesh)==null?void 0:t.visible)!=null?r:c(this,tc)}set visible(t){K(this,tc,t),this.mesh&&(this.mesh.visible=t)}setOpacity(){}setColor(){}get modelScene(){var t;return this.clippingPlane?(t=this.mesh)==null?void 0:t.children.find(r=>r.name!=="hole-fill-mesh"):this.mesh}get altitude(){return c(this,rc)}set altitude(t){this.modelScene&&(this.modelScene.position.z=t,K(this,rc,t))}getRotation(){return this.modelScene?[this.modelScene.rotation.x,this.modelScene.rotation.y,this.modelScene.rotation.z]:void 0}setRotation(t){this.modelScene&&this.modelScene.rotation.set(Te.degToRad(t[0]),Te.degToRad(t[1]),Te.degToRad(t[2]))}getScale(){return this.modelScene?[this.modelScene.scale.x,this.modelScene.scale.y,this.modelScene.scale.z]:void 0}setScale(t){var r;this.modelScene&&((r=this.modelScene)==null||r.scale.set(t[0],t[1],t[2]))}get opacity(){return c(this,nc)}set opacity(t){var r,n,i;if(this.mesh){if(this.mesh.children[0]instanceof Zn){for(let a of this.mesh.children)if(a instanceof Zn){((r=a.userData)==null?void 0:r.originalOpacity)===void 0&&(a.userData.originalOpacity=a.material.opacity);let u=_o(t,0,(n=a.userData)==null?void 0:n.originalOpacity,0,1);a.material.opacity=u,a.material.transparent=u<1,a.material.needsUpdate=!0}}else(i=this.mesh)==null||i.traverse(a=>{a instanceof Pe&&a.material&&(Array.isArray(a.material)?a.material.forEach(u=>{m6(u,t)}):m6(a.material,t))});K(this,nc,t)}}get renderOrder(){return c(this,Pu)}set renderOrder(t){var r;if(!(!this.mesh||t===c(this,Pu)))if(K(this,Pu,t),this.mesh.children[0]instanceof Zn){this.mesh.renderOrder=t;for(let n of this.mesh.children)n instanceof Zn&&(n.material.depthWrite=!c(this,kn),n.material.depthTest=!c(this,kn),n.material.needsUpdate=!0)}else(r=this.mesh)==null||r.traverse(n=>{n instanceof Pe&&n.material&&(n.renderOrder=t,Array.isArray(n.material)?n.material.forEach(i=>{i.depthWrite=!c(this,kn),i.depthTest=!c(this,kn),i.needsUpdate=!0}):(n.material.depthWrite=!c(this,kn),n.material.depthTest=!c(this,kn),n.material.needsUpdate=!0))})}get visibleThroughGeometry(){return c(this,kn)}set visibleThroughGeometry(t){K(this,kn,t)}};tc=new WeakMap,rc=new WeakMap,nc=new WeakMap,Pu=new WeakMap,kn=new WeakMap,o(Sg,"ModelComponent");var bo=Sg;function m6(e,t){e.opacity!==t&&(t===1?(e.opacity=1,e.transparent=!1):(e.opacity=t,e.transparent=!0),e.needsUpdate=!0)}o(m6,"updateMaterialOpacity");l();function Im(e){var s,d;let t=e.components[0],r=e.components[1];r.opacity!=null&&r.opacity!==t.opacity&&(t.opacity=r.opacity);let n=r.material,i=r.color;if(n||i){let m=CB(i,n);(s=t.mesh)==null||s.traverse(f=>{f instanceof Pe&&f.material&&(Array.isArray(f.material)?f.material.forEach(g=>{m[g.name]?(g.color.set(m[g.name].color),g.vertexColors=!1):g.color.set(i)}):m[f.material.name]?(f.material.color.set(m[f.material.name].color),f.material.vertexColors=!1):f.material.color.set(i))})}let a=(d=t.feature.geometry.coordinates[2])!=null?d:0,u=r.verticalOffset+a;t.altitude!==u&&(t.altitude=u),r.visible!==t.visible&&(t.visible=r.visible),r.rotation&&t.setRotation(r.rotation),r.scale&&t.setScale(r.scale),r.visibleThroughGeometry!==t.visibleThroughGeometry&&(t.visibleThroughGeometry=r.visibleThroughGeometry)}o(Im,"applyModelGeometryStyle");function CB(e,t){let r={};if(t)for(let n in t)t[n].color&&(r[n]={color:t[n].color});if(e){let n=["Default","Fabric","Mpdn_Logo","CouchLogo"];for(let i of n)r[i]||(r[i]={color:e})}return r}o(CB,"consolidateColorAndMaterial");function f6(e,t){var u,s;let r=e.components[0],i=(u=e.components[1].verticalOffset)!=null?u:0,a=r.feature.geometry.coordinates.slice();a[2]=((s=a[2])!=null?s:0)+i,r.mesh?r.mesh.position.copy(t(a)):r.position.copy(t(a))}o(f6,"applyModelPosition");function zi(e){return e instanceof Lt?e.material:null}o(zi,"getMaterial");function h6(e){return e.side===Hu?"back":e.side===Bo?"front":"double"}o(h6,"getMaterialSide");function g6(e,t){e.side=t==="back"?Hu:t==="front"?Bo:hi}o(g6,"setMaterialSide");function DB(e){let t=e[1],r=e[6],{opacity:n}=t!=null?t:{},{texture:i,topTexture:a}=r!=null?r:{};return"".concat(n).concat((i==null?void 0:i.path)||"").concat((a==null?void 0:a.path)||"")}o(DB,"generateIndex");var wg=class wg extends Le{constructor(r,n){super();h(this,"state");h(this,"convertTo3DMapPosition");h(this,"loader");h(this,"optimizePromise",[]);this.state=r,this.convertTo3DMapPosition=n}async getGLTFLoader(){if(this.loader)return this.loader;let{GLTFLoader:r}=await import("./GLTFLoader-BJ44PPDP.js");return this.loader=new r,this.loader}createEntityFromFeature(r,n,i){var f,g,b,v;let a=new Lt(n),u=(f=n==null?void 0:n.properties)==null?void 0:f.bevel,s=i&&"bevel"in i?i.bevel:void 0,d;s?d=R(R({},u),s):u&&(d=u);let m=new at(a,new Kn(De(R({},i),{url:(b=(g=n.properties)==null?void 0:g.image)==null?void 0:b.path,bevel:d})));return i!=null&&i.outline&&(m.components[3]=new M4(_4(i.color))),i!=null&&i.focusable&&(m.components[4]=new ts),((v=n.properties)==null?void 0:v.textures)!=null&&Array.isArray(n.properties.textures)&&n.properties.textures.length>0?m.components[6]=new Ro(n.properties.textures.find(C=>C.face==="side"),n.properties.textures.find(C=>C.face==="top")):(i!=null&&"texture"in i&&i.texture!=null||i!=null&&"topTexture"in i&&i.topTexture!=null)&&(m.components[6]=new Ro(i.texture,i.topTexture)),m.id=r,m}createModelFromFeature(r,n,i){let a=new bo(n),u=R({},i);n.properties.verticalOffset!=null&&(u.verticalOffset=n.properties.verticalOffset),n.properties.rotation!=null&&(u.rotation=n.properties.rotation),n.properties.scale!=null&&(u.scale=n.properties.scale);let s=new nl(u),d=new at(a,s);return d.id=r,d}populateEntityMesh(r,n){let i=r.components[0];i.geometry=n,i.batchedProps={range:{start:0,count:1/0,indexCount:1/0,indexStart:0,vertexCount:1/0,vertexStart:0,reservedVertexCount:1/0,reservedIndexCount:1/0},geometryId:-1,positionCount:n.attributes.position.count},i.currentHeight=r.components[1].height,i.dirty=!1}async populateModelGroup(r,n,i){let a=new Gr,u=new Ea,s=new jc,d=new ne,m=new Qi,f=await this.getGLTFLoader(),g=new Promise(b=>{let v=o(A=>{"entities3D"in i.userData&&(i.userData.entities3D.size>1?A.scene.traverse(x=>{let E=x;if("isMesh"in E&&E.isMesh===!0){let S=new Zn(E.geometry,E.material,r.size);S.userData={entities:{}},m.add(S),i.add(m)}}):(A.scene.traverse(x=>{"isMesh"in x&&x.isMesh===!0&&(x.position.set(0,0,0),x.rotation.set(0,0,0),x.scale.set(1,1,1),x.updateMatrix())}),m.add(A.scene),i.add(m),m.userData.isSingleModel=!0,m.userData.entityId=r.values().next().value,m.userData.type="model")),b()},"processGLTF");if(n.trimStart().startsWith("{")||n.startsWith("data:")&&n.includes("application/json")){let A=n.startsWith("data:")?atob(n.split(",")[1]):n;f.parse(A,"",v)}else f.load(n,v)});return this.optimizePromise.push(g.then(()=>{var C,A,x,E,S,D,I,k,V,z,M,T;let b=0,v;for(let Z of r.values()){if(v=this.state.geometry3DMap.get(Z),!v||(v==null?void 0:v.type)!=="model")continue;let j=v.components[0],W=v.components[1],$=v.components[0].feature;j.mesh=m,j.instanceIndex=b,Im(v),v.components[1].dirty=!1;let{x:q,y:J}=this.convertTo3DMapPosition($.geometry.coordinates[1],$.geometry.coordinates[0],0);j.position.set(q,J,j.altitude),u.set(Te.degToRad((A=(C=W.rotation)==null?void 0:C[0])!=null?A:Ma[0]),Te.degToRad((E=(x=W.rotation)==null?void 0:x[1])!=null?E:Ma[1]),Te.degToRad((D=(S=W.rotation)==null?void 0:S[2])!=null?D:Ma[2])),d.set((k=(I=W.scale)==null?void 0:I[0])!=null?k:Ba[0],(z=(V=W.scale)==null?void 0:V[1])!=null?z:Ba[1],(T=(M=W.scale)==null?void 0:M[2])!=null?T:Ba[2]),s.setFromEuler(u),a.compose(j.position,s,d),m.children.forEach(G=>{!v||(v==null?void 0:v.type)!=="model"||!(G instanceof Zn)||(G.setMatrixAt(b,a),G.userData.entities[b]=v.id)}),j.mesh.userData.isSingleModel&&(j.mesh.matrix.copy(a),j.mesh.matrix.decompose(j.mesh.position,j.mesh.quaternion,j.mesh.scale)),b++}this.publish("model-loaded")})),m}populateEntityGroup(r){var s;let n,i,a,u;for(let d of r.values())u=this.state.geometry3DMap.get(d),u.components[0]instanceof Lt&&(i=u.components[0].feature,a=u.components[1],i.geometry.type==="Polygon"?(n=xm(i,this.convertTo3DMapPosition,a),(s=i.properties)!=null&&s.textures&&i.properties.textures.length>0&&L4(n,i.properties.textures,this.state.naturalBearing,this.convertTo3DMapPosition),this.populateEntityMesh(u,n)):i.geometry.type==="MultiPolygon"?(n=Em(i,this.convertTo3DMapPosition,a),this.populateEntityMesh(u,n)):i.geometry.type==="LineString"?(n=nb(i,this.convertTo3DMapPosition,a),this.populateEntityMesh(u,n)):i.geometry.type==="MultiLineString"&&(n=d6(i,this.convertTo3DMapPosition,a),this.populateEntityMesh(u,n)));return r}update(){var r;for(let n of this.state.geometryGroupIdsToLoad.values()){let i=this.state.geometry3DMap.get(n);if(i instanceof qn&&i.userData.dirty){if(i.userData.modelURL)i.userData.modelURL&&(this.populateModelGroup(i.userData.entities3D,i.userData.modelURL,i),i.userData.dirty=!1);else try{this.populateEntityGroup(i.userData.entities3D)}catch(s){Se.warn(s)}let a,u={};for(let s of i.userData.entities3D.values()){a=this.state.geometry3DMap.get(s);let d=a==null?void 0:a.components[0];if((a==null?void 0:a.type)==="geometry"){let m=DB(a.components);u[m]===void 0&&(u[m]={style:a.components[1],entities:[]}),u[m].entities.push(a)}else d&&"mesh"in d&&d.mesh&&((r=d.mesh)==null?void 0:r.parent)!==i&&i.add(d.mesh)}for(let s in u){let d=k4(u[s].entities,u[s].style);i.add(d)}for(let s of i.userData.entities3D.values())if(a=this.state.geometry3DMap.get(s),a!=null&&a.entities2D.size>0)for(let d of a.entities2D.values())d&&(a.attach(d),this.publish("geometry-2d-added"));this.publish("geometry-group-added"),i.userData.dirty=!1}}return Promise.resolve()}};o(wg,"MeshCreationAndOptimizationSystem");var Cm=wg;l();var Ag=class Ag{constructor(t,r){h(this,"state");h(this,"dirty",!0);h(this,"domTree");this.state=t,this.domTree=r}update(){if(this.dirty){let t;for(let r of Array.from(this.domTree.children))if(t=this.state.geometry2DMap.get(r.userData.entityId),t){let n=t.components[0];(!n.enabled||!n.visible||!this.state.geometry2DIdsInScene.has(r.userData.entityId))&&this.domTree.removeChild(r)}else this.domTree.removeChild(r);for(let r of this.state.geometry2DIdsInScene)if(t=this.state.geometry2DMap.get(r),t){let n=t.components[0];n instanceof yi&&n.enabled&&n.markerContainer&&!this.domTree.contains(n.markerContainer)&&(n.markerContainer.userData={entityId:t.id},this.domTree.appendChild(n.markerContainer),n.updateDimensionsIfZeroWidthHeight())}this.dirty=!1}}};o(Ag,"DOMVisibilitySystem");var Dm=Ag;l();var Fg=class Fg{constructor(t,r){h(this,"state");h(this,"project");this.state=t,this.project=r}update(){let t=0,r=0,n,i;for(let a of this.state.geometry2DsInScene){i=a.components[0];let u=a.attachedTo?this.state.geometry3DMap.get(a.attachedTo):void 0;if(u instanceof at)if(this.state.geometry3DsInScene.has(u)){n=u.components[1],i=a.components[0],(n.dirty||a.components[0].attachedDirty)&&(t=n.height,r=n.altitude,a.setAltitude(t+r));let s=n.visible;i.visible!==s&&(i.visible=s)}else i.visible===!0&&(i.visible=!1);this.project(a.components[0].projection,a.position),a.components[0].attachedDirty=!1}}};o(Fg,"TwoDProjectionSystem");var Sm=Fg;l();l();l();var SB=o(function(){let t,r;return n=>{if((!r||!r)&&(t=document.createElement("canvas"),t.width=500*n,t.height=500*n,t.style.width="500px",t.style.height="500px",r=t.getContext("2d")),!r)throw new Error("Could not get 2D context");return{measureCanvas:t,measureCanvasContext:r}}},"createMeasureCanvasContext")(),y6=o(({text:e,size:t,maxWidth:r,pixelRatio:n,maxLines:i=2,lineHeight:a=1.2,options:u={strokeText:!0}})=>{let s="bold ".concat(t*n,"px 'InterUI-Regular', Helvetica Neue, Arial, sans-serif"),{measureCanvasContext:d}=SB(n);d.font=s;let m=[],f=e.split(" "),g=0,b=0,v=0;for(;b<f.length;){let E=f[b];if(g===i&&g>0){m[g-1]+="...";break}if(m[g]==null&&(m[g]=E,b++),f.length===1){m[g]=E;break}if(f[b]==null)break;let{width:S}=d.measureText(m[g]+" "+f[b]);S<=r*n?(m[g]+=" "+f[b],b++):g++}m.forEach(E=>{let{width:S}=d.measureText(E);v=Math.max(S,v)});let C=t*n*a,A=m.length*C;return{maxWidth:v,maxHeight:A,lines:m.length,draw:o((E,S,D)=>{m.length===1?(u.strokeText&&E.strokeText(m[0],S,D),E.fillText(m[0],S,D)):(u.strokeText&&(E.strokeText(m[0],S,D-C/2),E.strokeText(m[1],S,D+C/2)),E.fillText(m[0],S,D-C/2),E.fillText(m[1],S,D+C/2))},"draw")}},"shaveText");l();function b6(e){let t=new Image;return e&&(/<svg[\s\S]*>/i.test(e)?t.src="data:image/svg+xml;base64,".concat(btoa(e)):t.src=e),t}o(b6,"createImage");l();var wB=(()=>{let e;return{getDeviceType(){if(e)return e;let{userAgent:t,platform:r,maxTouchPoints:n}=window.navigator,i=/(iphone|ipod|ipad)/i.test(t),a=r==="iPad"||r.indexOf("Mac")===0&&n>0&&!window.MSStream,u=/android/i.test(t);return e={isIpad:a,isMobile:u||i||a,isIOS:i,isAndroid:u,isSafari12:/Version\/12.+Safari/.test(t),isFirefox:/Firefox/.test(t),isWindows:/windows/i.test(t)},e},_reset(){e=void 0}}})(),v6=wB.getDeviceType,x6=(()=>{let e,t,r;function n(){if(t!==void 0)return t;e||(e=document.createElement("canvas"));let a=e.getContext("webgl")||e.getContext("experimental-webgl");if(!a)return t;try{let u=v6().isFirefox?null:a.getExtension("WEBGL_debug_renderer_info");return t=u?a.getParameter(u.UNMASKED_RENDERER_WEBGL):a.getParameter(a.RENDERER),t}catch(u){let s=new Error("Failed getting device info");throw s.name="FailedGettingDeviceInfo",s}}o(n,"getInfo");function i(){var u,s;if(!v6().isWindows)return!1;if(r!==void 0)return r;let a=(s=(u=AB())==null?void 0:u.toLowerCase())!=null?s:"";return r=a.includes("intel")&&(a.includes("uhd")||a.includes("iris")),r}return o(i,"shouldDisableOffscreenCanvas"),{getInfo:n,shouldDisableOffscreenCanvas:i,_setCanvas(a){e=a,t=void 0,r=void 0}}})(),AB=x6.getInfo,E6=x6.shouldDisableOffscreenCanvas;var Pg=class Pg extends Le{constructor(r,n,i){super();h(this,"dirty",!1);h(this,"state");h(this,"colliderContext");h(this,"colliderCanvas");h(this,"transformRequestFunc");h(this,"transformRequest",o(async r=>this.transformRequestFunc?await this.transformRequestFunc(r):{url:r},"transformRequest"));h(this,"pinCache",{});h(this,"imageCache",{});h(this,"imagePromiseCache",{});h(this,"imageDimensionsCache",{});h(this,"textCache",{});h(this,"update",o(r=>{let n=this.state.pixelRatio;this.colliderContext.clearRect(0,0,this.colliderCanvas.width,this.colliderCanvas.height);let i,a,u,s,d,m;for(let f of this.state.geometry2DsInScene)if((f==null?void 0:f.components[0])instanceof gi&&!f.disposed){if(m=f.components[0],d=m.appearance.iconVisible,m.appearance.icon!=null&&d!=null){let b=typeof d=="boolean"?d:r>=d;b!==m.iconVisible&&(m.iconVisible=b,m.dirty=!0)}if((m.pinDirty||m.dirty||this.dirty)&&m.calculatePinSize(),m.offscreen||!m.visible)continue;if(a={active:m.appearance.pinColor,inactive:m.appearance.pinColorInactive},u={active:m.appearance.pinOutlineColor,inactive:m.appearance.pinOutlineColorInactive},s=$p(m.pinSize),i="".concat(a.active,"-").concat(a.inactive,"-").concat(u.active,"-").concat(u.inactive,"-").concat(s,"-").concat(m.iconVisible),m.labelCacheId=i,(!this.pinCache[i]||this.dirty)&&(this.prepare(m,i,this.colliderContext),m.dirty=!0),(m.appearance.icon&&(!m.imageHash||m.pinDirty)||this.dirty)&&this.cacheImage(m),this.textCache[m.id]==null||m.textDirty||this.dirty){m.dirty=!0,this.textCache[m.id]={};let{textDrawFn:b,width:v,height:C}=this.processText(m.text,m.appearance.textSize,m.appearance.maxWidth,m.appearance.maxLines,m.appearance.lineHeight);["left","center","right"].forEach(A=>{this.textCache[m.id][A]=this.textToCanvas(b,m.appearance.textSize,A,v,C,m.appearance.textColor,m.appearance.textOutlineColor)}),m.dimensions={width:Math.ceil(v/n),height:Math.ceil(C/n)}}let g=1;if(m.appearance.iconScale)if(typeof m.appearance.iconScale=="number")g=m.appearance.iconScale;else{let{on:b,input:v,output:C,easing:A}=m.appearance.iconScale;b==="zoom-level"?g=$p(g4(r,v,C,A!=null?A:"linear")):Se.warn("Unsupported interpolation property: ".concat(b))}m.recomputeCurrentStrategy(m.iconVisible?g:1),m.canShow&&(m.enabled||m.visibilityNeedsUpdate!==!1)&&this.draw(m,i,this.colliderContext),m.textDirty=!1,m.pinDirty=!1}this.dirty=!1},"update"));h(this,"processText",o((r,n,i,a,u)=>{let s=this.state.pixelRatio,{draw:d,maxWidth:m,maxHeight:f}=y6({text:r,size:n,pixelRatio:s,maxWidth:i,maxLines:a,lineHeight:u});return{textDrawFn:d,width:m+2.5*s*2,height:f+2.5*s*2}},"processText"));h(this,"textToCanvas",o((r,n,i,a,u,s,d)=>{let m=this.state.pixelRatio,f,g=a,b=u;window.OffscreenCanvas!=null&&!E6()?f=new OffscreenCanvas(g,b):(f=document.createElement("canvas"),f.width=g,f.height=b,f.style.width=g+"px",f.style.height=b+"px");let v=f.getContext("2d",{willReadFrequently:!0});if(!v)return;let C=2.5*m;v.textAlign=i,v.font="bold ".concat(n*m,"px 'InterUI-Regular', Helvetica Neue, Arial, sans-serif"),v.textBaseline="middle",v.lineJoin="miter",v.miterLimit=2,v.strokeStyle="white",v.lineWidth=C,v.fillStyle=s,v.strokeStyle=d;let A=i==="left"?C/2:i==="center"?g/2:g-C/2;return r(v,A,(b+C/2)/2),f},"textToCanvas"));h(this,"cacheImage",o(r=>{if(!r.appearance.icon)return;let n=D4(r.appearance.icon);this.imagePromiseCache[n]||(this.imagePromiseCache[n]=new Promise(i=>{this.transformRequest(r.appearance.icon).then(a=>{let u=b6(a.url);u.onload=()=>{this.imageCache[n]=u,this.publish("img:loaded"),i(u)}})})),r.imageHash!==n&&(r.imageHash=n,this.imagePromiseCache[n].then(()=>{r.dirty=!0}))},"cacheImage"));h(this,"createPinCanvas",o((r,n,i,a,u=1)=>{let s,d=this.state.pixelRatio,m=r.totalPinSize*2*d*u;window.OffscreenCanvas!=null?s=new OffscreenCanvas(m,m):(s=document.createElement("canvas"),s.width=m,s.height=m,s.style.width=m/d+"px",s.style.height=m/d+"px");let f=s.getContext("2d");return f.shadowColor="rgba(0,0,0,0.3)",f.shadowOffsetY=2*d,f.shadowBlur=5*d,f.beginPath(),f.arc(m/2,m/2,(n/2+2.5*d/2)*u,0,2*Math.PI),f.fillStyle=i,f.fill(),f.beginPath(),f.arc(m/2,m/2,n/2*u,0,2*Math.PI),f.shadowColor="transparent",f.fillStyle=a,f.fill(),s},"createPinCanvas"));h(this,"prepare",o((r,n,i)=>{let a=this.state.pixelRatio;i.lineWidth=4*a;let u=typeof r.appearance.iconScale=="number"?[r.appearance.iconScale]:r.appearance.iconScale==null?[]:r.appearance.iconScale.output,s=u.length>0?Math.max(...u):void 0,d=this.createPinCanvas(r,r.pinSize,r.appearance.pinOutlineColor,r.appearance.pinColor,s),m=this.createPinCanvas(r,3.5*a,r.appearance.pinOutlineColorInactive,r.appearance.pinColorInactive,s);this.pinCache[n]=[d,m]},"prepare"));this.state=r,this.colliderCanvas=n,this.colliderContext=n.getContext("2d"),this.transformRequestFunc=i}draw(r,n,i){var f;if(!r.canShow||!r.visible)return;i.save(),i.globalAlpha=r.currentOpacity;let a=this.state.pixelRatio,u=r.projection.x*a,s=r.projection.y*a,d=r.style.pinVisibility===1?this.pinCache[n][0]:this.pinCache[n][1],m=r.style.pinVisibility===1?r.scaledPinSize*a:r.totalPinSize*a;if(r.style.pinVisibility!==0&&i.drawImage(d,u-m,s-m,m*2,m*2),r.appearance.icon&&r.iconVisible&&r.imageHash&&r.appearance.iconSize&&this.imageCache[r.imageHash]&&r.style.pinVisibility===1){let g=this.imageCache[r.imageHash],b=(r.scaledPinSize-r.scaledIconPadding)*a,v=r.appearance.iconFit,C=b,A=b,x="".concat(r.imageHash,"_").concat(v);if(this.imageDimensionsCache[x])C=this.imageDimensionsCache[x].width,A=this.imageDimensionsCache[x].height;else{let E=g.width*a,S=g.height*a;if(v==="contain"){let D=Math.sqrt(E**2+S**2),I=b/D;C=E*I,A=S*I}if(v==="cover"){let D=b/E,I=b/S,k=Math.max(D,I);C=E*k,A=S*k}}i.save(),i.beginPath(),i.arc(u,s,b/2,0,2*Math.PI),i.closePath(),((f=r==null?void 0:r.appearance)==null?void 0:f.iconOverflow)!=="visible"&&i.clip(),i.drawImage(g,u-C/2,s-A/2,C,A),i.restore()}r.style.textLabelVisible&&r.style.textAlign!=null&&r.style.left!=null&&r.style.top!=null&&i.drawImage(this.textCache[r.id][r.style.textAlign],u+r.style.left*a,s+r.style.top*a),i.restore()}};o(Pg,"TwoDDrawSystem");var wm=Pg;l();function MB(e,t){let r=e.components[2],n=e.components[1];return r!=null&&r.hover?[n.hoverColor||t,n.hoverColor||t]:[n.color,n.topColor||n.color]}o(MB,"processColor");var Bg=class Bg{constructor(t,r){h(this,"state");h(this,"convertTo3DMapPosition");this.convertTo3DMapPosition=r,this.state=t}determineTextureVisiblity(t,r,n){let i=zi(t);((i==null?void 0:i.texture)!=null||(i==null?void 0:i.topTexture)!=null)&&(n!=null&&n.hover&&i.texturesVisible?i.hideTextures(t.instanceIndex):i.texturesVisible||i.showTextures(t.instanceIndex),r.texture==null&&i.removeSideTexture(t.instanceIndex),r.topTexture==null&&i.removeTopTexture(t.instanceIndex))}update(){var n,i,a,u,s,d,m,f,g,b,v,C,A,x,E,S,D,I,k,V,z;let t,r;for(let M of this.state.geometry3DsInScene)if((M.type==="geometry"||M.type==="custom-geometry")&&((n=M.components[1])!=null&&n.dirty||(i=M.components[2])!=null&&i.dirty)){let T=M.components[0],Z=M.components[1];r=M.components[2];let j=MB(M,this.state.hoverColor);T.setColor(j[0],j[1]);let W=zi(T);if(Z.visible!==T.visible&&(T.visible=Z.visible,T instanceof Lt&&T.textMesh)){let q=this.state.geometry3DMap.get(T.textMesh.userData.entityId);(q==null?void 0:q.type)==="text3d"&&q.components[0].polygonEntityId!=null&&(q.components[0].visible=Z.visible)}Z.altitude!==T.altitude&&(T.altitude=Z.altitude);let $=Z.opacity*Oa(M);if($!==T.opacity&&(T.opacity=$),Z.renderOrder!==T.renderOrder&&(T.renderOrder=Z.renderOrder),W&&Z.side!==h6(W)&&g6(W,Z.side),T instanceof Lt&&Z.shading!=null&&(((a=Z.shading)==null?void 0:a.start)!==((u=zi(T))==null?void 0:u.getGradientShading().start)||((s=Z.shading)==null?void 0:s.end)!==((d=zi(T))==null?void 0:d.getGradientShading().end)||((m=Z.shading)==null?void 0:m.intensity)!==((f=zi(T))==null?void 0:f.getGradientShading().intensity))&&((E=zi(T))==null||E.setGradientShading((b=(g=Z.shading)==null?void 0:g.start)!=null?b:0,(C=(v=Z.shading)==null?void 0:v.end)!=null?C:0,(x=(A=Z.shading)==null?void 0:A.intensity)!=null?x:0)),Z.dirty=!1,T instanceof Lt){let q=M.components[6];q instanceof Ro&&this.determineTextureVisiblity(T,q,r)}M.components[2]&&(M.components[2].dirty=!1)}else if((M==null?void 0:M.type)==="model")M.components[1].dirty&&(Im(M),M.components[1].dirty=!1),M.components[0].positionDirty&&(f6(M,this.convertTo3DMapPosition),M.components[0].positionDirty=!1);else if((M==null?void 0:M.type)==="image"&&((S=M.components[1])!=null&&S.dirty)){t=M.components[0];let T=M.components[1];T.visible!==t.visible&&(t.visible=T.visible),T.dirty=!1}else if((M==null?void 0:M.type)==="text3d"&&((D=M.components[1])!=null&&D.dirty)&&M.components[0].polygonEntityId!=null){t=M.components[0];let T=M.components[1];T.visible!=null&&T.visible!==t.visible&&(t.visible=T.visible);let{textMesh:Z}=t;if(Z){Object.assign(Z,T.getState());let j=(I=T.hoverColor)!=null?I:this.state.text3dHoverColor;Z.color=T.hoverByPolygon?j:(k=T.color)!=null?k:Pa.color,Z.outlineColor=T.hoverByPolygon?j:(V=T.outlineColor)!=null?V:Pa.outlineColor,Z.strokeColor=T.hoverByPolygon?j:(z=T.strokeColor)!=null?z:Pa.strokeColor}T.dirty=!1}}};o(Bg,"DrawSystem");var Am=Bg;l();var Mg=class Mg extends Le{constructor(r){super();h(this,"state");h(this,"animating",new Map);h(this,"isAnimating",!1);h(this,"startTime",-1);h(this,"showDuration",300);h(this,"hideDuration",250);h(this,"update",o(()=>{var i;this.animating.clear();let r,n;for(let a of this.state.geometry2DIdsInScene)r=this.state.geometry2DMap.get(a),r&&(n=r.components[0],n instanceof gi&&(n.visibilityNeedsUpdate==="show"?(n.canShow=!0,this.animating.set(n,[n.currentOpacity,(i=n.appearance.opacity)!=null?i:1])):n.visibilityNeedsUpdate==="hide"&&this.animating.set(n,[n.currentOpacity,0])));this.startTime=performance.now(),this.publish("animate:2d")},"update"));h(this,"playAnimations");this.state=r,this.playAnimations=this._playAnimations}_playAnimations(){let r=performance.now();for(let[n,[i,a]]of this.animating.entries()){let u=a===1?this.showDuration:this.hideDuration,s=(r-this.startTime)/u;n.currentOpacity=_o(s,0,1,i,a,a===0?p4:f4),r-this.startTime>=u&&(a===1?n.canShow=!0:a===0&&(n.canShow=!1),n.visibilityNeedsUpdate=!1,this.animating.delete(n))}this.publish("draw:2d"),this.animating.size>0&&this.publish("animate:2d")}};o(Mg,"TwoDVisibilitySystem");var Fm=Mg;l();var Tg=class Tg extends Le{constructor(r,n,i,a,u,s,d){super();h(this,"state");h(this,"renderer");h(this,"mode");h(this,"scene");h(this,"cameraObject");h(this,"viewCamera");h(this,"systems");h(this,"needs2DRecompute",!1);h(this,"twoDdirty",!0);h(this,"threeDdirty",!0);h(this,"frameId",null);h(this,"twoDFrameId",null);h(this,"animationFrameId",null);h(this,"nextFrame",null);h(this,"updateEntitiesFrameId",null);h(this,"update",o((r=!1)=>{var n;if(((n=this.renderer)==null?void 0:n.renderer)==null)return Promise.resolve();if(r){this.renderer.startFrame();let i=this.commitRenderState();return this.paint(),i}else return this.frameId?Promise.resolve():new Promise((i,a)=>{this.frameId=requestAnimationFrame(()=>{var u,s;return((u=this.renderer)==null?void 0:u.renderer)==null?i():this.mode==="standalone"?(this.renderer.startFrame(),(s=this.commitRenderState())==null?void 0:s.then(()=>{this.paint(),i()}).catch(d=>{a(d)})):i()})})},"update"));h(this,"animate2D",o(()=>{this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.animationFrameId=requestAnimationFrame(()=>{this.animationFrameId=null,this.systems.twoDVisiblitySystem.playAnimations()})},"animate2D"));h(this,"drawEntities2D",o(()=>{this.twoDFrameId&&(cancelAnimationFrame(this.twoDFrameId),this.twoDFrameId=null),this.twoDFrameId=requestAnimationFrame(()=>{this.twoDFrameId=null,this.systems.twoDDrawSystem.update(this.systems.cameraSystem.getZoomLevel()),this.systems.domDrawSystem.update(this.systems.cameraSystem.isUserInteracting())})},"drawEntities2D"));h(this,"updateEntities2D",o(()=>{this.updateEntitiesFrameId&&(cancelAnimationFrame(this.updateEntitiesFrameId),this.updateEntitiesFrameId=null),this.updateEntitiesFrameId=requestAnimationFrame(()=>{this.updateEntitiesFrameId=null,this.systems.watermarkSystem.insertIntoQuadTree(this.systems.collisionSystem.interactiveCollidersQTree),this.systems.interactionSystem.updateQuadtree(this.systems.collisionSystem.interactiveCollidersQTree),this.systems.twoDVisiblitySystem.update(),this.drawEntities2D()})},"updateEntities2D"));h(this,"commitRenderState",o(()=>{try{let r=[];this.frameId=null,this.publish("pre-render"),this.state.internalTweenGroup.update(),this.state.externalTweenGroup.update(),(this.mode==="outdoors-interleaved"||this.mode==="standalone")&&this.systems.cameraSystem.update(),this.state.shouldMeasureCanvas&&(this.state.shouldMeasureCanvas=!1,this.publish("measure-canvas")),this.twoDdirty&&(this.state.geometry2DIdsInScene.clear(),this.state.geometry2DsInScene.clear(),C4(this.state.geometryScene,this.state.geometry2DMap,this.state.geometry2DIdsInScene,this.state.geometry2DsInScene),this.systems.domVisiblitySystem.dirty=!0,this.systems.collisionSystem.collidersDirty=!0,this.systems.domMutationSystem.dirty=!0,this.systems.panBoundsSystem.dirty=!0,this.twoDdirty=!1),this.threeDdirty&&(this.state.geometry3DIdsInScene.clear(),this.state.geometry3DsInScene.clear(),this.state.geometryGroupIdsToLoad.clear(),I4(this.state.geometryScene,this.state.geometry3DMap,this.state.geometry3DIdsInScene,this.state.geometry3DsInScene,this.state.geometryGroupIdsToLoad),this.systems.interactionSystem.dirty3D=!0,this.systems.panBoundsSystem.dirty=!0,this.systems.outlineInterpolationSystem.geometries3DDirty=!0,this.systems.geometryInFocusSystem.focusablesDirty=!0,this.threeDdirty=!1);let n=this.systems.meshOptimizationSystem.update();n&&r.push(n),this.systems.borderSystem.update(),this.systems.meshModificationSystem.update(),this.systems.meshDetachmentSystem.update(),this.systems.renderOrderSystem.update(),this.systems.clippingPlaneSystem.update(),this.systems.imageSystem.update(this.systems.cameraSystem.getRotation()),r.push(this.systems.text3DSystem.update(this.systems.cameraSystem.getRotation())),this.systems.customGeometrySystem.update(),this.systems.panBoundsSystem.update(),this.systems.geometryInFocusSystem.update(this.systems.cameraSystem.isCameraMoving(),this.systems.cameraSystem.lastCameraStoppedMovingTime()),this.systems.outlineInterpolationSystem.update(this.systems.cameraSystem.getZoomLevel(),this.systems.cameraSystem.zoomDirty),this.systems.pathSystem.update(this.systems.cameraSystem.minZoomAltitude,this.systems.cameraSystem.maxZoomAltitude,this.systems.cameraSystem.getZoomAltitude()),this.systems.cameraSystem.postRender(),this.systems.domVisiblitySystem.update(),this.systems.domMutationSystem.update(),this.systems.twoDProjectionSystem.update(),this.systems.occlusion2DSystem.update(),this.twoDFrameId&&(cancelAnimationFrame(this.twoDFrameId),this.twoDFrameId=null),this.systems.twoDDrawSystem.update(this.systems.cameraSystem.getZoomLevel()),this.systems.domDrawSystem.update(this.systems.cameraSystem.isUserInteracting()),this.systems.watermarkSystem.update();let i=this.needs2DRecompute;return this.nextFrame=requestAnimationFrame(()=>{this.nextFrame=null,this.systems.collisionSystem.update(this.systems.watermarkSystem.width,this.systems.watermarkSystem.height,this.systems.watermarkSystem.options.position,!i&&this.systems.cameraSystem.isCameraMoving(),this.systems.imageSystem.currentImageScreenBBoxes)}),this.systems.textureSystem.update(),this.systems.pluginSystem.update(this.state),this.systems.drawSystem.update(),this.systems.geometryDisposalSystem.update(),this.systems.maskingSystem.update(),this.systems.cameraSystem.dirty=!1,this.systems.cameraSystem.zoomDirty=!1,this.systems.cameraSystem.rotationDirty=!1,this.systems.cameraSystem.stateDirty&&(this.publish("camera-state-change"),this.systems.cameraSystem.stateDirty=!1),this.publish("post-render"),this.needs2DRecompute=!1,Promise.all(r)}catch(r){return Promise.reject(r)}},"commitRenderState"));this.renderer=r,this.state=n,this.mode=i,this.scene=a,this.cameraObject=u,this.viewCamera=s,this.systems=d,this.systems.collisionSystem.on("visibility-changed",this.updateEntities2D),this.systems.twoDVisiblitySystem.on("draw:2d",this.drawEntities2D),this.systems.twoDVisiblitySystem.on("animate:2d",this.animate2D),this.systems.cameraSystem.on("pan-start",()=>this.needs2DRecompute=!1),this.systems.cameraSystem.on("zoom-start",()=>this.needs2DRecompute=!1),this.systems.cameraSystem.on("zoom-end",()=>this.needs2DRecompute=!0),this.systems.cameraSystem.on("rotate-start",()=>this.needs2DRecompute=!1),this.systems.cameraSystem.on("rotate-end",()=>this.needs2DRecompute=!0)}paint(){var r;(r=this.renderer)!=null&&r.renderer&&(this.mode==="standalone"&&this.renderer.clear(),this.renderer.renderFullScene(this.scene,this.state.useStandaloneCamera||this.mode==="standalone"?this.cameraObject:this.viewCamera))}destroy(){this.frameId&&cancelAnimationFrame(this.frameId),this.twoDFrameId&&cancelAnimationFrame(this.twoDFrameId),this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),this.nextFrame&&cancelAnimationFrame(this.nextFrame),this.state.geometry2DIdsInScene.clear(),this.state.geometry3DIdsInScene.clear(),this.systems.domVisiblitySystem.dirty=!0,this.systems.collisionSystem.collidersDirty=!0,this.update(),this.systems.collisionSystem.off("visibility-changed",this.updateEntities2D),this.systems.twoDVisiblitySystem.off("draw:2d",this.drawEntities2D),this.systems.twoDVisiblitySystem.off("animate:2d",this.animate2D)}};o(Tg,"RenderSystem");var Om=Tg;l();var TB=oe.object({interactive:oe.boolean().optional(),id:oe.string().optional(),width:oe.union([oe.number(),oe.object({on:oe.literal("zoom-level").optional(),input:oe.array(oe.number()).nonempty(),output:oe.array(oe.number()).nonempty(),easing:oe.string().optional()})]).optional(),accentColor:oe.string().optional(),displayArrowsOnPath:oe.boolean().optional(),animateArrowsOnPath:oe.boolean().optional(),visibleThroughGeometry:oe.boolean().optional(),dashed:oe.boolean().optional(),smoothingTension:oe.number().optional(),smoothingCornerRadius:oe.number().optional()}),kB=oe.object({type:oe.enum(["Feature"]),geometry:Ou,properties:oe.object({parentId:oe.any().optional()})});function I6(e,t){oe.object({features:oe.array(kB)}).parse(e),TB.parse(t)}o(I6,"validatePath");var ic,kg=class kg{constructor(t,r){h(this,"type","path");h(this,"mesh",new Qi);h(this,"material");h(this,"geometry");h(this,"outline");h(this,"feature");h(this,"options");h(this,"width",{on:"zoom-level",input:[17,22],output:[.8,.4]});h(this,"breakpoint",0);h(this,"altitudeBreakpoints");h(this,"accentColor","blue");h(this,"completeFraction",1);h(this,"altitudeAdjustment",1);h(this,"displayArrowsOnPath",!1);h(this,"animateArrowsOnPath",!1);h(this,"visibleThroughGeometry",!1);h(this,"highlightStartFraction",0);h(this,"highlightEndFraction",0);h(this,"highlightCompleteFraction",1);h(this,"highlightWidthMultiplier",1.1);h(this,"highlightColor","red");h(this,"xrayOpacity",.25);h(this,"dashed",!1);h(this,"smoothingTension",bi.tension);h(this,"smoothingCornerRadius",bi.cornerRadius);h(this,"isVertical",!1);h(this,"dirty",!0);h(this,"materialDirty",!0);h(this,"position",new ne);L(this,ic,0);var n,i,a,u,s,d,m,f,g;this.feature=t,this.options=r||{},this.width=(n=r==null?void 0:r.width)!=null?n:this.width,this.accentColor=(i=r==null?void 0:r.accentColor)!=null?i:this.accentColor,this.displayArrowsOnPath=(a=r==null?void 0:r.displayArrowsOnPath)!=null?a:this.displayArrowsOnPath,this.animateArrowsOnPath=(u=r==null?void 0:r.animateArrowsOnPath)!=null?u:this.animateArrowsOnPath,this.visibleThroughGeometry=(s=r==null?void 0:r.visibleThroughGeometry)!=null?s:this.visibleThroughGeometry,this.dashed=(d=r==null?void 0:r.dashed)!=null?d:this.dashed,this.xrayOpacity=(m=r==null?void 0:r.xrayOpacity)!=null?m:this.xrayOpacity,this.smoothingTension=(f=r==null?void 0:r.smoothingTension)!=null?f:bi.tension,this.smoothingCornerRadius=(g=r==null?void 0:r.smoothingCornerRadius)!=null?g:bi.cornerRadius}setColor(){}setOpacity(){}set visible(t){this.mesh&&(this.mesh.visible=t)}get visible(){return this.mesh?this.mesh.visible:!1}get altitude(){return c(this,ic)}set altitude(t){this.mesh&&(this.mesh.position.z=t,K(this,ic,t))}set complete(t){this.material&&(this.material.uniforms.complete.value=t,this.material.needsUpdate=!0)}};ic=new WeakMap,o(kg,"PathComponent");var vo=kg;l();var _B=300,LB=["running","paused"],oc,ac,_g=class _g{constructor(t){h(this,"state");L(this,oc,new ne);L(this,ac,new ne);this.state=t}update(t){let r;this.state.cameraObject.getWorldPosition(c(this,ac));for(let n of this.state.geometry2DsInScene)if(n&&(r=n.components[0],r&&"containerEl"in r&&r.markerContainer!=null)){r.visibilityNeedsUpdate!==!1&&(r.visibilityNeedsUpdate==="show"?r.canShow=!0:r.canShow=!1),r.offscreen&&(r.animation&&(r.animation.cancel(),r.animation=null),r.markerContainer.style.opacity="0");let i=r.animation!=null&&(r.animation.pending===!0||LB.includes(r.animation.playState));if((r.canShow&&r.visible===!0||i)&&!r.offscreen)if(r.options.zIndex!=null)r.markerContainer.style.transform="translate3D(".concat(r.projection.x,"px, ").concat(r.projection.y,"px, ").concat(r.options.zIndex,"px)");else{n.object3d.getWorldPosition(c(this,oc));let a=c(this,ac).distanceTo(c(this,oc));r.markerContainer.style.transform="translate3D(".concat(r.projection.x,"px, ").concat(r.projection.y,"px, ").concat(-a,"px)")}if(r.canShow===!0&&r.visible===!0&&!r.offscreen?r.markerContainer.style.pointerEvents=t?"none":r.pointerEvents:r.markerContainer.style.pointerEvents="none",r.currentStrategyIndex===-1&&r.visible&&r.visibilityNeedsUpdate==="show")continue;r.visibilityNeedsUpdate!==!1&&!r.offscreen&&(r.visibilityNeedsUpdate==="show"&&(r.markerContainer.style.opacity="0"),r.animation&&r.animation.cancel(),r.animation=r.markerContainer.animate([{opacity:r.canShow&&r.visible?"1":"0"}],{duration:_B,easing:"ease-in-out",fill:"forwards"}),r.visibilityNeedsUpdate=!1)}}};oc=new WeakMap,ac=new WeakMap,o(_g,"DOMDrawSystem");var Pm=_g;l();var Lg=class Lg extends Le{constructor(r,n){super();h(this,"state");h(this,"dirty",!0);h(this,"domTree");h(this,"observers",new Map);h(this,"updateDimensions",o(r=>{r.forEach(n=>{var u;let a=(u=n.target.parentElement)==null?void 0:u.getAttribute("data-marker-id");if(a){let s=this.state.geometry2DMap.get(a),d=s==null?void 0:s.components[0];s&&d instanceof yi&&(d.updateDimensions(n.contentRect.width,n.contentRect.height),d.collisionDirty=!0)}}),this.publish("dimensions-update")},"updateDimensions"));this.state=r,this.domTree=n}setupObserver(){var i;if(this.observers){for(let a of this.observers.values())a.disconnect();this.observers.clear()}let r,n;for(let a of this.domTree.children){let u=a.getAttribute("data-marker-id");if(u!=null&&(r=this.state.geometry2DMap.get(u),n=r.components[0],(i=n.options)!=null&&i.dynamicResize)){let s=new ResizeObserver(this.updateDimensions);s.observe(n.containerEl),this.observers.set(a.userData.entityId,s)}}}update(){this.dirty&&(this.setupObserver(),this.dirty=!1)}destroy(){for(let r of this.observers.values())r.disconnect();this.observers.clear()}};o(Lg,"DOMResizeSystem");var Bm=Lg;l();l();var C6="uniform vec4 uSize;\nvarying vec2 vUv;\nvoid main() {\n vUv = uv;\n // Scale the position by the size of the quad\n // and shift to top left corner for 0,0\n vec2 transformed = position.xy * uSize.xy - vec2(1.0, -1.0);\n // Apply width .x and height .y of image\n transformed += vec2(uSize.x, -uSize.y);\n // Apply left .w and top .z offset\n transformed += vec2(uSize.w, -uSize.z) * 2.0;\n gl_Position = vec4(transformed, 1.0, 1.0);\n}";l();var D6="varying vec2 vUv;\nuniform sampler2D uTexture;\nuniform float uOpacity;\nvoid main() {\n #ifndef debug\n vec4 texture = texture2D(uTexture, vUv);\n gl_FragColor = vec4(texture.rgb, texture.a * uOpacity);\n #else\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n #endif\n}";l();var S6=4.291666666666667,w6=15,A6=25,F6=43/60;l();var O6=["horizontal","icon"],RB=new Map([[O6[0],'<svg viewBox="0 0 206 48">\n <path d="M27.2678 14.2261H22.3187C21.0695 14.2261 20.4695 14.7801 20.4695 15.9852V31.142L10.3966 15.5591C9.69665 14.4784 9.2475 14.2773 7.8475 14.2261H2.97462C1.67462 14.2261 1.07631 14.7801 1.07631 15.9852V44.7665C1.07631 45.9716 1.67462 46.5256 2.97462 46.5256H7.92377C9.22207 46.5256 9.82207 45.9716 9.82207 44.7665V29.6847L19.9441 45.1926C20.695 46.3244 21.095 46.5256 22.4933 46.5256H27.2933C28.5916 46.5256 29.1916 45.9716 29.1916 44.7665V15.9852C29.1407 14.7801 28.5424 14.2261 27.2678 14.2261Z"/>\n <path d="M5.44915 10.9602C8.45863 10.9602 10.8983 8.50669 10.8983 5.48011C10.8983 2.45353 8.45863 0 5.44915 0C2.43967 0 0 2.45353 0 5.48011C0 8.50669 2.43967 10.9602 5.44915 10.9602Z"/>\n <path d="M61.7899 25.0449C63.2306 23.1903 65.078 22.2051 67.556 22.2051C72.0526 22.2051 74.7611 25.3347 74.7611 29.4511V39.2489C74.8187 39.7125 74.5306 39.9443 74.0695 39.9443H72.5136C72.0526 39.9443 71.7645 39.7125 71.8221 39.2489V29.5091C71.8221 27.1909 69.9187 25.2187 67.4984 25.2187C65.1339 25.2187 63.2323 27.1329 63.2323 29.2773V39.2489C63.2899 39.7125 63.0018 39.9443 62.5407 39.9443H60.9831C60.5221 39.9443 60.2916 39.7125 60.2916 39.2489V29.4511C60.2916 27.1329 58.3899 25.2187 56.0255 25.2187C53.7204 25.2187 51.7594 27.075 51.7594 29.2773V39.3068C51.817 39.7705 51.5289 40.0023 51.0102 40.0023H49.5119C49.0509 40.0023 48.7628 39.7705 48.7628 39.3068V23.25C48.7051 22.7864 48.9933 22.4966 49.5119 22.4966H50.9526C51.356 22.4966 51.5289 22.6704 51.5289 23.0182V24.2352C52.7407 22.9602 54.239 22.2648 56.0255 22.2648C58.4475 22.2068 60.3492 23.192 61.7899 25.0466V25.0449ZM77.1255 31.2477C77.1255 26.3216 81.1018 22.2051 86.1187 22.2051C88.539 22.2051 90.6136 23.1903 92.3441 25.1608V23.1903C92.3441 22.7267 92.5746 22.5528 93.0357 22.5528H94.4187C94.8797 22.5528 95.1102 22.7847 95.1102 23.3062V39.3648C95.1102 39.8284 94.8797 40.0602 94.4187 40.0602H93.0357C92.5746 40.0602 92.3441 39.8284 92.3441 39.4227V37.4523C90.6712 39.3648 88.5967 40.35 86.1746 40.35C81.1018 40.2341 77.1238 36.1773 77.1238 31.2477H77.1255ZM92.1136 31.2477C92.1136 27.8284 89.4611 25.2187 86.0594 25.2187C82.7746 25.2187 80.1221 27.8864 80.1221 31.2477C80.1221 34.6687 82.7746 37.2784 86.1187 37.2784C86.9062 37.2789 87.6861 37.1232 88.4138 36.8202C89.1414 36.5173 89.8026 36.0731 90.3593 35.513C90.9161 34.9528 91.3577 34.2878 91.6587 33.556C91.9597 32.8241 92.1143 32.0397 92.1136 31.2477ZM100.992 37.3943V46.3807C101.049 46.8443 100.761 47.1341 100.298 47.1341H98.7424C98.2814 47.1341 97.9933 46.9023 97.9933 46.3807V23.1903C97.9933 22.7267 98.2238 22.4369 98.7424 22.4369H100.183C100.646 22.379 100.934 22.6687 100.934 23.0744V24.9869C102.605 23.0744 104.68 22.1472 107.044 22.1472C112.002 22.1472 116.037 26.2619 116.037 31.1898C116.037 36.1176 112.059 40.2341 107.044 40.2341C104.622 40.2341 102.603 39.3068 100.992 37.3943ZM106.987 25.2187C103.7 25.2187 101.049 27.8864 101.049 31.2477C101.049 34.6687 103.7 37.2784 107.044 37.2784C110.446 37.2784 113.039 34.6108 113.039 31.2477C113.039 27.8864 110.388 25.2187 106.987 25.2187ZM121.11 37.3943V46.3807C121.168 46.8443 120.88 47.1341 120.419 47.1341H118.861C118.4 47.1341 118.112 46.9023 118.112 46.3807V23.1903C118.112 22.7267 118.342 22.4369 118.861 22.4369H120.302C120.764 22.379 121.053 22.6687 121.053 23.0744V24.9869C122.724 23.0744 124.798 22.1472 127.163 22.1472C132.12 22.1472 136.156 26.2619 136.156 31.1898C136.156 36.1176 132.178 40.2341 127.163 40.2341C124.742 40.2341 122.781 39.3068 121.11 37.3943ZM127.105 25.2187C123.819 25.2187 121.168 27.8864 121.168 31.2477C121.168 34.6687 123.819 37.2784 127.163 37.2784C130.564 37.2784 133.158 34.6108 133.158 31.2477C133.158 27.8864 130.507 25.2187 127.107 25.2187H127.105ZM153.97 32.3506H141.054C141.342 35.2483 143.995 37.4523 147.164 37.4523C148.893 37.4523 150.393 37.0466 151.719 36.0597C152.007 35.8858 152.295 35.7699 152.353 35.7699C152.583 35.7699 152.756 35.8858 152.929 36.1773L153.505 37.1625C153.622 37.3364 153.68 37.4523 153.68 37.5682C153.68 37.8 153.507 38.0318 153.103 38.3216C151.258 39.5966 149.183 40.292 146.992 40.292C141.688 40.292 137.883 36.3511 137.883 31.2477C137.883 26.204 141.803 22.2051 146.703 22.2051C151.546 22.2051 154.717 25.7983 154.717 31.0176C154.717 31.5972 154.717 32.3506 153.968 32.3506H153.97ZM141.056 30.0324H151.72C151.432 26.8432 149.473 24.929 146.648 24.929C145.241 24.8904 143.875 25.3995 142.833 26.3501C141.791 27.3007 141.154 28.6194 141.056 30.0307V30.0324ZM156.332 31.2477C156.332 26.3216 160.31 22.2051 165.326 22.2051C167.748 22.2051 169.707 23.1324 171.32 25.0449V16.2324C171.263 15.7687 171.551 15.479 172.012 15.479H173.57C174.031 15.479 174.319 15.7108 174.319 16.2324V39.3068C174.319 39.7705 174.088 40.0023 173.57 40.0023H172.129C171.666 40.0602 171.378 39.7705 171.378 39.3648V37.3943C169.649 39.3068 167.632 40.292 165.268 40.292C160.31 40.2341 156.332 36.1773 156.332 31.2477ZM171.264 31.2477C171.264 27.8284 168.612 25.2187 165.21 25.2187C161.924 25.2187 159.273 27.8864 159.273 31.2477C159.273 34.6687 161.924 37.2784 165.268 37.2784C166.057 37.2838 166.839 37.1316 167.569 36.8304C168.299 36.5292 168.962 36.0852 169.52 35.5241C170.077 34.963 170.519 34.296 170.818 33.5619C171.117 32.8277 171.268 32.0411 171.263 31.2477H171.264ZM177.72 19.0739C177.715 18.8594 177.754 18.646 177.833 18.4468C177.912 18.2476 178.031 18.0667 178.182 17.915C178.333 17.7633 178.512 17.6439 178.71 17.5642C178.909 17.4845 179.121 17.446 179.334 17.4511C179.546 17.4507 179.756 17.4923 179.952 17.5737C180.148 17.6551 180.326 17.7746 180.476 17.9254C180.626 18.0762 180.745 18.2553 180.826 18.4523C180.907 18.6494 180.948 18.8606 180.948 19.0739C180.953 19.2884 180.914 19.5017 180.835 19.7009C180.756 19.9001 180.637 20.081 180.486 20.2327C180.335 20.3845 180.156 20.5038 179.957 20.5835C179.759 20.6633 179.547 20.7017 179.334 20.6966C178.412 20.7545 177.72 20.0591 177.72 19.0739ZM177.836 39.2489V23.1903C177.836 22.7267 178.066 22.4369 178.527 22.4369H180.083C180.544 22.4369 180.832 22.6687 180.775 23.1903V39.2489C180.832 39.7125 180.544 39.9443 180.083 39.9443H178.527C178.066 39.9443 177.836 39.7125 177.836 39.2489ZM186.944 23.0165V24.1756C188.212 22.8426 189.71 22.2051 191.497 22.2051C195.937 22.2051 198.646 25.2767 198.646 29.3932V39.2489C198.703 39.7125 198.415 39.9443 197.954 39.9443H196.398C195.936 39.9443 195.705 39.7125 195.705 39.2489V29.4511C195.705 27.1329 193.803 25.2187 191.439 25.2187C189.134 25.2187 187.175 27.075 187.175 29.2773V39.3068C187.232 39.7705 186.944 40.0023 186.424 40.0023H184.868C184.407 40.0023 184.119 39.7705 184.119 39.3068V23.1903C184.061 22.7267 184.349 22.4949 184.868 22.4949H186.309C186.712 22.4949 186.944 22.6687 186.944 23.0165Z"/>\n <path d="M204 40C205.115 40 206 39.0857 206 38V37.9886C206 36.9029 205.126 36 204 36C202.885 36 202 36.9143 202 38V38.0114C202 39.0971 202.874 40 204 40ZM204 39.7829C202.989 39.7829 202.23 38.9829 202.23 38.0114V38C202.23 37.0286 203 36.2171 204 36.2171C205.011 36.2171 205.77 37.0171 205.77 37.9886V38C205.77 38.9714 205 39.7829 204 39.7829ZM203.218 38.9714H203.609V38.2743H204.034L204.517 38.9714H204.989L204.448 38.2057C204.724 38.1257 204.92 37.92 204.92 37.5886C204.92 37.1657 204.586 36.9486 204.138 36.9486H203.218V38.9714ZM203.609 37.9543V37.2914H204.103C204.368 37.2914 204.517 37.4057 204.517 37.6229C204.517 37.8171 204.368 37.9543 204.103 37.9543H203.609Z"/>\n </svg>'],[O6[1],'<svg viewBox="0 0 43 60">\n <path d="M14.0291 7.06645C14.0291 10.9691 10.8885 14.1329 7.01453 14.1329C3.14051 14.1329 0 10.9691 0 7.06645C0 3.16376 3.14051 0 7.01453 0C10.8885 0 14.0291 3.16376 14.0291 7.06645Z"/>\n <path d="M28.7335 18.3468H35.1045C36.7455 18.3468 37.5178 19.0599 37.5821 20.6158V57.7309C37.5821 59.2868 36.8099 60 35.1367 60H28.9588C27.1569 60 26.642 59.7406 25.6767 58.282L12.6452 38.282V57.7309C12.6452 59.2868 11.8729 60 10.1997 60H3.82873C2.15554 60 1.3833 59.2868 1.3833 57.7309V20.6158C1.3833 19.0599 2.15554 18.3468 3.82873 18.3468H10.1032C11.9051 18.4116 12.4843 18.671 13.3852 20.0648L26.3524 40.162V20.6158C26.3524 19.0599 27.1247 18.3468 28.7335 18.3468Z"/>\n <path d="M41.5 60C42.3362 60 43 59.3143 43 58.5V58.4914C43 57.6771 42.3448 57 41.5 57C40.6638 57 40 57.6857 40 58.5V58.5086C40 59.3229 40.6552 60 41.5 60ZM41.5 59.8371C40.7414 59.8371 40.1724 59.2371 40.1724 58.5086V58.5C40.1724 57.7714 40.75 57.1629 41.5 57.1629C42.2586 57.1629 42.8276 57.7629 42.8276 58.4914V58.5C42.8276 59.2286 42.25 59.8371 41.5 59.8371ZM40.9138 59.2286H41.2069V58.7057H41.5259L41.8879 59.2286H42.2414L41.8362 58.6543C42.0431 58.5943 42.1897 58.44 42.1897 58.1914C42.1897 57.8743 41.9397 57.7114 41.6034 57.7114H40.9138V59.2286ZM41.2069 58.4657V57.9686H41.5776C41.7759 57.9686 41.8879 58.0543 41.8879 58.2171C41.8879 58.3629 41.7759 58.4657 41.5776 58.4657H41.2069Z"/>\n </svg>']]),NB=/<svg([^>]*)>/g;function P6(e,t,r,n){let i=RB.get(e);return i?i.replace(NB,'<svg$1 width="'.concat(r,'" height="').concat(n,'" xmlns="http://www.w3.org/2000/svg" style="fill: ').concat(t,';">')):""}o(P6,"getLogoIcon");l();var xo=class xo{constructor(){h(this,"loader");this.loader=new Wc}static getInstance(){return xo.instance||(xo.instance=new xo),xo.instance}getLoader(){return this.loader}load(t){return new Promise((r,n)=>{this.loader.load(t,r,void 0,n)})}};o(xo,"TextureLoaderSingleton"),h(xo,"instance");var Rg=xo,Eo=Rg.getInstance();var B6=!1,lt,$i,Bu,Vt,kr,na,_n,di,Ng=class Ng extends Le{constructor(r,n,i){super();L(this,lt,{padding:16,scale:1,iconOnly:!1,position:"bottom-left",color:"dark",onClick:o(()=>{window!=null&&window.open("https://www.mappedin.com")},"onClick"),interactive:!0,visible:!0});L(this,$i);L(this,Bu);L(this,Vt);L(this,kr);L(this,na);L(this,_n,0);L(this,di,0);h(this,"dirty",!0);h(this,"getPositionAlignedCanvasCoordinates",o((r,n)=>({"top-left":{x:0,y:0},"top-right":{x:r,y:0},"bottom-left":{x:0,y:n},"bottom-right":{x:r,y:n},center:{x:r/2,y:n/2},top:{x:r/2,y:0},bottom:{x:r/2,y:n},left:{x:0,y:n/2},right:{x:r,y:n/2}})[c(this,lt).position],"getPositionAlignedCanvasCoordinates"));h(this,"getPositionAlignedPadding",o(()=>{var i,a,u,s;let r=c(this,lt).padding;if(typeof r=="number")return{"top-left":{x:r,y:r},"top-right":{x:-r,y:r},"bottom-left":{x:r,y:-r},"bottom-right":{x:-r,y:-r},center:{x:0,y:0},top:{x:0,y:r},bottom:{x:0,y:-r},left:{x:r,y:0},right:{x:-r,y:0}}[c(this,lt).position];let n={top:(i=r.top)!=null?i:0,right:(a=r.right)!=null?a:0,bottom:(u=r.bottom)!=null?u:0,left:(s=r.left)!=null?s:0};return{x:n.left-n.right,y:n.top-n.bottom}},"getPositionAlignedPadding"));i&&Object.entries(i).forEach(([a,u])=>{u!==void 0&&(c(this,lt)[a]=u)}),K(this,Bu,r),K(this,$i,n)}get color(){return c(this,lt).color==="light"?"white":"#293136"}get iconName(){return c(this,lt).iconOnly?"icon":"horizontal"}get minWidth(){return c(this,lt).iconOnly?w6:75}get defaultWidth(){return c(this,lt).iconOnly?A6:150}get aspectRatio(){return c(this,lt).iconOnly?F6:S6}get options(){return R({},c(this,lt))}set options(r){var n,i;K(this,lt,{padding:r.padding||c(this,lt).padding,position:r.position||c(this,lt).position,iconOnly:r.iconOnly||c(this,lt).iconOnly,color:r.color||c(this,lt).color,scale:r.scale||c(this,lt).scale,onClick:c(this,lt).onClick,interactive:(n=r.interactive)!=null?n:c(this,lt).interactive,visible:(i=r.visible)!=null?i:c(this,lt).visible})}get icon(){return P6(this.iconName,this.color,c(this,_n)*c(this,$i).pixelRatio,c(this,di)*c(this,$i).pixelRatio)}setSize(r,n){c(this,kr)&&(c(this,kr).uniforms.uSize.value.x=r,c(this,kr).uniforms.uSize.value.y=n)}setXY(r,n){c(this,kr)&&(c(this,kr).uniforms.uSize.value.w=r,c(this,kr).uniforms.uSize.value.z=n)}get width(){return c(this,_n)}get height(){return c(this,di)}getPositionAlignedOffset(r,n){return{"top-left":{x:0,y:0},"top-right":{x:-r,y:0},"bottom-left":{x:0,y:-n},"bottom-right":{x:-r,y:-n},center:{x:-(r/2),y:-(n/2)},top:{x:-(r/2),y:0},bottom:{x:-(r/2),y:-n},left:{x:0,y:-(n/2)},right:{x:-r,y:-(n/2)}}[c(this,lt).position]}insertIntoQuadTree(r){c(this,na)!=null&&typeof c(this,lt).onClick=="function"&&c(this,lt).interactive&&r.insert(c(this,na))}resize(r,n){if(c(this,lt).visible!==!0)return;let i=this.getPositionAlignedCanvasCoordinates(r,n),a=this.getPositionAlignedPadding(),u=this.getPositionAlignedOffset(c(this,_n),c(this,di)),s=Math.min(r-c(this,_n),Math.max(0,i.x+a.x+u.x)),d=Math.min(n-c(this,di),Math.max(0,i.y+a.y+u.y));this.setSize(c(this,_n)/r,c(this,di)/n),this.setXY(s/r,d/n),K(this,na,new Fe(s,d,c(this,_n),c(this,di),{entityId:"watermark"}))}update(){this.dirty&&(c(this,lt).visible===!0?(K(this,_n,Math.min(c(this,$i).canvasWidth,Math.max(this.minWidth,this.defaultWidth*c(this,lt).scale))),K(this,di,c(this,_n)/this.aspectRatio),Eo.getLoader().load("data:image/svg+xml;base64,".concat(btoa(this.icon)),r=>{if(K(this,kr,new Ji({uniforms:{uTexture:{value:r},uSize:{value:new Hy(0,0,0,0)},uOpacity:{value:.7}},vertexShader:C6,fragmentShader:D6,depthWrite:!1,depthTest:!1,defines:{debug:B6},wireframe:B6,transparent:!0,visible:!0})),c(this,Vt))c(this,Vt).visible=!0,c(this,Vt).material=c(this,kr),c(this,Vt).material.needsUpdate=!0;else{let n=new Cn(2,2,1,1);K(this,Vt,new Pe(n,c(this,kr))),c(this,Vt).position.set(0,0,-1),c(this,Vt).frustumCulled=!1,c(this,Vt).renderOrder=999;let i=new qi(1,1,1),a=new Pe(i,new fr({transparent:!0,opacity:0,depthTest:!1,depthWrite:!1}));a.frustumCulled=!1,a.layers.set(1),c(this,Vt).add(a),c(this,Bu).add(c(this,Vt))}this.resize(c(this,$i).canvasWidth,c(this,$i).canvasHeight),this.publish("texture-loaded")})):c(this,Vt)&&(c(this,Vt).visible=!1),this.dirty=!1)}destroy(){c(this,Vt)&&(c(this,Bu).remove(c(this,Vt)),Nt(c(this,Vt))),K(this,Vt,void 0),c(this,kr)&&c(this,kr).dispose(),K(this,kr,void 0),K(this,na,void 0)}};lt=new WeakMap,$i=new WeakMap,Bu=new WeakMap,Vt=new WeakMap,kr=new WeakMap,na=new WeakMap,_n=new WeakMap,di=new WeakMap,o(Ng,"WatermarkSystem");var Mm=Ng;l();var Tm=100,zB=!1,Ug=class Ug extends Le{constructor(r,n){super();h(this,"currentTotalBoundingBox");h(this,"state");h(this,"cameraSystem");h(this,"debugMesh",null);h(this,"dirty",!0);h(this,"autoMinZoomLevel",!0);this.state=r,this.cameraSystem=n}update(){if(this.dirty){this.currentTotalBoundingBox==null&&(this.currentTotalBoundingBox=new rr,this.state.geometryScene.children.length===0?this.currentTotalBoundingBox.setFromCenterAndSize(new ne(0,0,0),new ne(Tm*2,Tm*2,0)):(this.currentTotalBoundingBox.setFromObject(this.state.geometryScene),this.currentTotalBoundingBox.expandByScalar(Tm)));let r=new rr().setFromObject(this.state.geometryScene);this.currentTotalBoundingBox.union(r);let n=r.getSize(new ne),i=Math.max(n.x,n.y,n.z);for(let u of this.state.geometry2DMap.values())u.positionDirty===!0&&(this.currentTotalBoundingBox.expandByPoint(u.position),u.positionDirty=!1);let a=km.copy(this.currentTotalBoundingBox).expandByScalar(Math.max(i,Tm)).getBoundingSphere($B).radius;if(this.cameraSystem.panBounds={center:this.currentTotalBoundingBox.getCenter(new ne),min:km.min,max:km.max,radius:a},this.publish("update"),this.cameraSystem.dirty=!0,this.dirty=!1,zB&&this.state.geometryScene.parent instanceof Xi){this.debugMesh&&(this.state.geometryScene.parent.remove(this.debugMesh),this.debugMesh=null),this.debugMesh=new Mo,this.debugMesh.add(new Pe(new Vc(this.cameraSystem.panBounds.radius),new fr({color:16711680,transparent:!0,opacity:.2}))),this.debugMesh.position.copy(this.cameraSystem.panBounds.center),this.state.geometryScene.parent.add(this.debugMesh);let u=new ne;km.getSize(u);let s=new qi(u.x,u.y,u.z),d=new fr({color:65280,wireframe:!0,transparent:!0,opacity:.5}),m=new Pe(s,d);m.position.copy(this.currentTotalBoundingBox.getCenter(new ne)),this.debugMesh.add(m)}}}};o(Ug,"PanBoundsSystem");var _m=Ug,km=new rr,$B=new qy;l();var uc,sc,jg=class jg{constructor(t,r){h(this,"mesh");h(this,"type","custom-geometry");h(this,"dirty",!0);h(this,"feature");h(this,"builder");h(this,"outline");L(this,uc,1);h(this,"color",new Ot);L(this,sc,0);this.mesh=new Qi,this.feature=t,this.builder=r}get visible(){return this.mesh.visible}set visible(t){this.mesh.visible=t}set opacity(t){K(this,uc,t)}get opacity(){return c(this,uc)}setColor(t){this.color.set(t)}get position(){var t;return(t=this.mesh)==null?void 0:t.position}get altitude(){return c(this,sc)}set altitude(t){this.mesh&&(this.mesh.position.z=t,K(this,sc,t))}get renderOrder(){return this.mesh?this.mesh.renderOrder:0}set renderOrder(t){this.mesh&&(this.mesh.renderOrder=t)}};uc=new WeakMap,sc=new WeakMap,o(jg,"CustomGeometryComponent");var Mu=jg;l();var zg=class zg{constructor(t,r){h(this,"state");h(this,"convertTo3DMapPosition");this.state=t,this.convertTo3DMapPosition=r}update(){let t,r;for(let n of this.state.geometry3DsInScene)(n==null?void 0:n.type)==="custom-geometry"&&(t=n.components[0],r=n.components[1],t.dirty&&r.visible!==!1&&(t.position.copy(this.convertTo3DMapPosition(t.feature.geometry.coordinates[1],t.feature.geometry.coordinates[0],r.altitude)),t.builder.setup(t.mesh),t.mesh.traverse(i=>{i.userData=De(R({},i.userData),{entityId:n.id,type:"custom-geometry"})}),t.dirty=!1),r.visible!==!1&&t.builder.update(t.mesh))}};o(zg,"CustomGeometrySystem");var Lm=zg;l();l();function Rm(e){return e.children.some(t=>t.userData.isOutline)}o(Rm,"hasOutline");function cc(e,t){var n;let r=e.userData.entities3D.values().next().value;return r?((n=t.geometry3DMap.get(r))==null?void 0:n.components[3])!==void 0:!1}o(cc,"needsOutline");function Nm(e,t,r,n,i){let u=e.getAttribute("position").array,s=1/0,d=-1/0;for(let f=0;f<t.count;f++){let b=(t.start+f)*3,v=u[b+2];s=Math.min(s,v),d=Math.max(d,v)}let m=d-s;if(!i||i.thickness===0||m===0)for(let f=0;f<t.count;f++){let b=(t.start+f)*3,v=u[b+2];Math.abs(v-d)<1e-4?u[b+2]=Math.max(r+n,2e-4+n):u[b+2]=n}else{let f=i.thickness,g=s+f,b=s+f,v=d-f,C=d-f,A=n-f,x=n,E=n,S=n+r,D=n+r,I=n+r+f;for(let k=0;k<t.count;k++){let z=(t.start+k)*3,M=u[z+2],T;if(M<=g){let Z=f>0?(M-s)/f:0;T=A+Z*(x-A)}else if(M>=C){let Z=f>0?(M-C)/f:0;T=D+Z*(I-D)}else{let Z=v-b,j=Z>0?(M-b)/Z:0;T=E+j*(S-E)}u[z+2]=T}}e.attributes.position.needsUpdate=!0}o(Nm,"updateBufferGeometryHeight");l();function $g(e){var m,f;let t=new zc,r=(m=e.mesh)==null?void 0:m.geometry;if(!r||!((f=e.batchedProps)!=null&&f.range))return;let n=e.batchedProps.range,i=n.start,a=n.count,u=r.getAttribute("position");if(u){let g=new Float32Array(a*3);for(let b=0;b<a;b++){let v=i+b;g[b*3]=u.array[v*3],g[b*3+1]=u.array[v*3+1],g[b*3+2]=u.array[v*3+2]}t.setAttribute("position",new Ar(g,3))}let s=r.getAttribute("normal");if(s){let g=new Float32Array(a*3);for(let b=0;b<a;b++){let v=i+b;g[b*3]=s.array[v*3],g[b*3+1]=s.array[v*3+1],g[b*3+2]=s.array[v*3+2]}t.setAttribute("normal",new Ar(g,3))}let d=r.getAttribute("uv");if(d){let g=new Float32Array(a*2);for(let b=0;b<a;b++){let v=i+b;g[b*2]=d.array[v*2],g[b*2+1]=d.array[v*2+1]}t.setAttribute("uv",new Ar(g,2))}if(r.index){let g=r.index,b=new Uint32Array(a);for(let v=0;v<a;v++)b[v]=g.array[i+v];t.setIndex(new Ar(b,1))}return t}o($g,"extractBufferGeometryFromBatchedGeometry");function M6(e,t,r){let n=$g(e);if(!n||!e.mesh)return;e.mesh.getMatrixAt(e.instanceIndex,r),e.mesh.deleteInstance(e.instanceIndex),e.mesh.optimize();let i=t.addGeometry(n);t.addInstance(i),t.setMatrixAt(i,r);let a=t.getGeometryIdAt(i),u=t.getGeometryRangeAt(a);return u&&e.batchedProps&&(e.batchedProps.range=u),n.dispose(),i}o(M6,"transferGeometryToNewBatchedMesh");l();l();var T6="// Modified from https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderLib/linedashed.glsl.js\nuniform float scale;\nattribute float lineDistance;\n\nvarying float vLineDistance;\nattribute float visibility;\nvarying vec4 v_color;\n\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n\nvoid main() {\n\n vLineDistance = scale * lineDistance;\n v_color = color;\n\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n if (visibility < 0.5) {\n gl_Position = vec4(-2.0, -2.0, -2.0, 1.0);\n }\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n\n}";l();var k6="// Modified from https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderLib/linedashed.glsl.js\nuniform vec3 diffuse;\nuniform float opacity;\n\nuniform float dashSize;\nuniform float totalSize;\n\nvarying float vLineDistance;\nvarying vec4 v_color;\n\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\n\nvoid main() {\n\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n\n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n\n discard;\n\n }\n\n vec3 outgoingLight = vec3( 0.0 );\n\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n\n outgoingLight = diffuseColor.rgb; // simple shader\n\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n\n // Discard alpha lower than 0.01 to avoid opacity fighting\n if (v_color.a <= 0.01) { \n discard;\n }\n}\n";var Gg=class Gg extends Qy{constructor(t){super(t),this.onBeforeCompile=r=>{r.vertexShader=T6,r.fragmentShader=k6}}};o(Gg,"OutlineLineMaterial");var Um=Gg;l();var Ln,ia,Io,Co,lc,Zg,Vg=class Vg{constructor(){L(this,lc);L(this,Ln,[]);L(this,ia,!1);L(this,Io);L(this,Co)}get size(){return c(this,Ln).length}add(t){c(this,Ln).push(t),c(this,ia)||pt(this,lc,Zg).call(this)}onComplete(t){K(this,Io,t)}clearOnComplete(){K(this,Io,void 0)}clearAll(){K(this,Ln,[]),K(this,ia,!1),K(this,Io,void 0),c(this,Co)!==void 0&&(cancelIdleCallback(c(this,Co)),K(this,Co,void 0))}};Ln=new WeakMap,ia=new WeakMap,Io=new WeakMap,Co=new WeakMap,lc=new WeakSet,Zg=o(function(){K(this,ia,!0),K(this,Co,requestIdleCallback(t=>{let r=0;for(;c(this,Ln).length>0&&t.timeRemaining()>2;){let n=c(this,Ln).shift();n&&(n(),r++)}if(r===0&&c(this,Ln).length>0&&t.timeRemaining()<2){let n=c(this,Ln).shift();n&&n()}K(this,Co,void 0),c(this,Ln).length>0?pt(this,lc,Zg).call(this):(K(this,ia,!1),c(this,Io)&&c(this,Io).call(this))},{timeout:3e3}))},"#processQueue"),o(Vg,"IdleQueue");var oa=Vg;var VB=80,aa,Tu,zm,$m,Wg=class Wg extends Le{constructor(r){super();h(this,"rendererState");h(this,"outlineOpacitiesDirty",!0);h(this,"useIdleFramesOnly",!0);L(this,aa,!0);L(this,Tu,-1/0);h(this,"idleBuildQueue",new oa);h(this,"idleComputeBoundingSphereQueue",new oa);L(this,zm,new Map);L(this,$m,o(()=>{this.publish("needs-render")},"#publishRender"));this.rendererState=r,this.idleBuildQueue.onComplete(c(this,$m))}get geometries3DDirty(){return c(this,aa)}set geometries3DDirty(r){K(this,aa,r)}buildOutlines(r){var b;let n=[];for(let v of r.userData.entities3D.values()){let C=this.rendererState.geometry3DMap.get(v);if(C instanceof at&&C.type==="geometry"&&C.components[3]&&C.components[3].dirty===!0&&C.components[0].material!=null){let A=C.components[0].geometry,x=!1;A||(A=$g(C.components[0]),x=!0);let E=C.components[1];n.push([C.components[3],new t4(A,(b=E.bevel)!=null&&b.enabled?1:VB)]),x&&(A==null||A.dispose(),A=void 0)}}if(n.length===0)return;let i=en(n.map(v=>v[1]),!1);if(i==null)return;let a=i.getAttribute("position"),u=new Float32Array(a.count*4),s=new Ar(u,4);i.setAttribute("color",s);let d=new Uint8Array(a.count);d.fill(0);let m=new Ar(d,1,!1);i.setAttribute("visibility",m);let f=0;for(let v=0;v<n.length;v++){let[C,A]=n[v],x=A.getAttribute("position").count;C.edgeColors=s,C.edgeVisibility=m,C.geometry=i,C.ranges={count:x,start:f},f+=x,A.dispose()}let g=new To(i,new Um({vertexColors:!0,linewidth:1,transparent:!0,opacity:1,side:Bo}));g.userData.isOutline=!0,r.add(g)}update(r,n=!0){var a;if(this.geometries3DDirty){for(let u of this.rendererState.geometry3DsInScene)u.type==="geometry-group"&&cc(u,this.rendererState)&&!Rm(u)&&u.userData.entities3D.size>0&&(this.useIdleFramesOnly?this.idleBuildQueue.add(()=>this.buildOutlines(u)):this.buildOutlines(u));K(this,aa,!1),this.outlineOpacitiesDirty=!0}for(let u of this.rendererState.geometry3DsInScene)if(u.type==="geometry"&&u.components[3]&&u.components[3].dirty===!0&&u.components[0].material!=null&&u.parentObject3D instanceof qn){let s=u.components[3].geometry;if(!s)continue;let d=u.components[3];if(!d)continue;let m=d.enabled&&u.components[1].visible;if(d.visible!==m&&(d.visible=m),!d.visible)continue;let f=d.edgeColors;if(!f||!d.ranges)continue;let g=new Ot(d.color);for(let A=0;A<d.ranges.count;A++){let x=d.ranges.start+A;f.setXYZ(x,g.r,g.g,g.b)}let b=u.components[1].height,v=u.components[1].altitude,C=(a=u.components[1])==null?void 0:a.bevel;Nm(s,d.ranges,b,v,C),s.attributes.color.needsUpdate=!0,this.idleComputeBoundingSphereQueue.add(()=>s.computeBoundingSphere()),d.dirty=!1}let i=n?_o(r,16,19,0,1):c(this,Tu);if((i!==c(this,Tu)||this.outlineOpacitiesDirty)&&this.rendererState.geometry3DsInScene.size>0){for(let u of this.rendererState.geometry3DsInScene)if(u.type==="geometry"&&u.components[0]instanceof Lt){let s=u.components[3];if(s&&s.edgeColors&&s.geometry&&s.visible){let d=Math.min(i,u.components[1].opacity*Oa(u));if(s.currentOpacity!==d){for(let m=0;m<s.ranges.count;m++){let f=s.ranges.start+m;s.edgeColors.setW(f,d)}s.geometry.attributes.color.needsUpdate=!0}}}}K(this,Tu,i),K(this,aa,!1),this.outlineOpacitiesDirty=!1}destroy(){c(this,zm).clear(),this.idleBuildQueue.clearAll(),this.idleComputeBoundingSphereQueue.clearAll()}};aa=new WeakMap,Tu=new WeakMap,zm=new WeakMap,$m=new WeakMap,o(Wg,"OutlineInterpolationSystem");var jm=Wg;l();l();var Hg=class Hg extends Pe{constructor(){super(...arguments);h(this,"userData",{entityId:""})}};o(Hg,"EntityMesh");var Gm=Hg,WB=oe.object({flipImageToFaceCamera:oe.boolean().optional(),url:oe.string()}),HB=oe.object({type:oe.enum(["Feature"]),properties:oe.object({width:oe.number(),height:oe.number(),rotation:oe.number().min(0).max(360).optional(),verticalOffset:oe.number().optional()}),geometry:Ou});function _6(e,t,r){oe.union([oe.number(),oe.string()]).parse(e),HB.parse(t),WB.parse(r)}o(_6,"validateImage");var Kg=class Kg{constructor(t){h(this,"mesh",new Qi);h(this,"imageMesh");h(this,"outline");h(this,"type","image");h(this,"instanceIndex",-1);h(this,"geometry");h(this,"material");h(this,"feature");h(this,"position",new ne);this.feature=t}get visible(){var t,r;return(r=(t=this.mesh)==null?void 0:t.visible)!=null?r:!1}set visible(t){this.mesh&&(this.mesh.visible=t)}};o(Kg,"ImageComponent");var Zm=Kg;l();function qg(e,t){return{x:e.x*Math.cos(t)-e.y*Math.sin(t),y:e.x*Math.sin(t)+e.y*Math.cos(t)}}o(qg,"rotatePoint");function KB(e,t){return e.map(r=>qg(r,t))}o(KB,"rotatePoints");function qB(e){let t=1/0,r=1/0,n=-1/0,i=-1/0;for(let a of e)t=Math.min(t,a.x),r=Math.min(r,a.y),n=Math.max(n,a.x),i=Math.max(i,a.y);return{minX:t,minY:r,maxX:n,maxY:i}}o(qB,"getBounds");function JB(e,t){let r=!1;for(let n=0,i=t.length-1;n<t.length;i=n++){let a=t[n].x,u=t[n].y,s=t[i].x,d=t[i].y;u>e.y!=d>e.y&&e.x<(s-a)*(e.y-u)/(d-u)+a&&(r=!r)}return r}o(JB,"pointInPolygon");function L6(e,t,r,n,i){for(let a=0;a<i;a++)for(let u=0;u<n;u++)if(e[r+a][t+u]!==1)return!1;return!0}o(L6,"isValidRectangle");function XB(e,t,r){let n=e.maxX-e.minX,i=e.maxY-e.minY,a,u,s=R({},e);return n/i>t?(u=i/r,a=u*t,s.minX+=(n-a*r)/2):(a=n/r,u=a/t,s.minY+=(i-u*r)/2),{dx:a,dy:u,gridBounds:s}}o(XB,"calculateGridDimensions");function YB(e,t,r,n,i){let a=Array(r).fill(0).map(()=>Array(r).fill(0));for(let u=0;u<r;u++)for(let s=0;s<r;s++){let d={x:t.minX+s*n,y:t.minY+u*i};JB(d,e)&&(a[u][s]=1)}return a}o(YB,"createAndFillGrid");function QB(e,t){let r=Array(t).fill(0).map(()=>Array(t).fill(0));for(let n=0;n<t;n++)for(let i=0;i<t;i++)if(e[n][i]===1){let a=0;for(let u=1;u<=Math.min(t-i,t-n)&&L6(e,i,n,u,u);u++)a=u;r[n][i]=a}return r}o(QB,"calculateRectSizes");function eM(e,t,r,n,i,a){let u=0,s=0,d=0;for(let m=0;m<n;m++)for(let f=0;f<n;f++)if(e[m][f]===1){let g=Math.pow(t[m][f],2),b=r.minX+f*i,v=r.minY+m*a;u+=g,s+=b*g,d+=v*g}return{x:s/u,y:d/u}}o(eM,"calculatePolygonCenter");function tM(e,t,r,n,i,a,u){let s=-1/0,d=null,m=e.length,f=Math.sqrt(Math.pow(t.maxX-t.minX,2)+Math.pow(t.maxY-t.minY,2));for(let g=0;g<m;g++)for(let b=0;b<m;b++)if(e[g][b]===1)for(let v=1;v<=m-b;v++){let C=v;if(!(C>m-g)&&L6(e,b,g,v,C)){let A=v*C,x=t.minX+(b+v/2)*r,E=t.minY+(g+C/2)*n,S={x,y:E},I=Math.sqrt(Math.pow(S.x-i.x,2)+Math.pow(S.y-i.y,2))/f,k=A*(1-a)-I*a*A;k>s&&(s=k,d={center:S,width:v*r*u,height:v*n*u})}}return d}o(tM,"findBestRectangle");function Jg(e,t,r,n={}){let{scaleFactor:i=.9,centerPriority:a=.5,resolution:u=100,minimumSizeRatio:s=.5}=n,d=l4(r),m=e.width/e.height,f=KB(t,d),g=qB(f),{dx:b,dy:v,gridBounds:C}=XB(g,m,u),A=YB(f,C,u,b,v),x=QB(A,u),E=eM(A,x,C,u,b,v),S=tM(A,C,b,v,E,a,i);return!S||S.width<e.width*s||S.height<e.height*s?e:De(R({},S),{center:qg(S.center,-d),rotation:r,polygonCenter:qg(E,-d)})}o(Jg,"findLargestInteriorRectangle");var dc=Math.PI*2,rM=Math.PI/2,nM=Math.PI*1.5,iM=Xc(rM,2),oM=Xc(nM,2),aM=.01,R6=!1,Xg=class Xg extends Le{constructor(r,n,i,a=0,u=0,s={}){super();h(this,"rendererState");h(this,"convertTo3DMapPosition");h(this,"projectToScreen");h(this,"initialBearing",0);h(this,"naturalBearing",0);h(this,"imagePlacementOptions");h(this,"cameraFrustum",new Gc);h(this,"imageLoadingCache",new Map);h(this,"currentImageScreenBBoxes",[]);h(this,"viewProjectionMatrix",new Gr);this.rendererState=r,this.convertTo3DMapPosition=n,this.projectToScreen=i,this.initialBearing=a,this.naturalBearing=u,this.imagePlacementOptions=s}createImageMesh(r,n,i,a=0,u,s){var C,A,x;let d={width:i.width,height:i.height,center:this.convertTo3DMapPosition(u),rotation:(C=i.rotation)!=null?C:0},m=(A=this.imagePlacementOptions.mode)!=null?A:"default",f=(()=>{switch(m){case"fit-nearest-90":let E=(this.initialBearing-this.naturalBearing+360)%180;return E>=45&&E<=135?Jg(d,s,d.rotation+90,this.imagePlacementOptions):d;case"fit-initial-bearing":return Jg(d,s,this.initialBearing,this.imagePlacementOptions);case"default":case"none":default:return d}})();if(R6&&f.polygonCenter){let E=new Pe(new Vc(1),new Ju({color:65280}));E.position.set(f.polygonCenter.x,f.polygonCenter.y,a),this.rendererState.geometryScene.add(E)}let g=new Ju({transparent:!0,depthWrite:!1,side:hi}),b=new Cn(f.width,f.height),v=new Gm(b);if(v.visible=!1,v.renderOrder=Jt.IMAGE_MESH,(x=this.getOrDownloadImage(n))==null||x.then(E=>{g.map=E,g.needsUpdate=!0,g.map.colorSpace=Rc,v.visible=!0,this.publish("image-loaded")}),v.userData.entityId=r,v.material=g,R6){let E=new Pe(new Cn(i.width,i.height),new Ju({color:"gray"}));v.add(E);let S=new o4;v.add(S),S.scale.set(10,10,10)}return v.position.set(f.center.x,f.center.y,a+aM),v.rotation.z=(-Te.degToRad(f.rotation)+dc)%dc,v}getOrDownloadImage(r){var n;if(this.imageLoadingCache.has(r))return(n=this.imageLoadingCache.get(r))==null?void 0:n.promise;{let i=new Promise(a=>{Eo.getLoader().load(r,u=>{let s=this.imageLoadingCache.get(r);s&&!s.loaded&&(s.loaded=!0),a(u)})});return this.imageLoadingCache.set(r,{loaded:!1,promise:i}),i}}flipIfNeeded(r,n){if(r.imageMesh==null)return;let i=-n,a=r.imageMesh.rotation.z,u=Xc((a-i+dc)%dc,2);u>iM&&u<oM&&(r.imageMesh.rotation.z=(a+Math.PI)%dc)}update(r){var a,u,s,d,m;this.currentImageScreenBBoxes=[],this.viewProjectionMatrix.identity().multiply(this.rendererState.cameraObject.projectionMatrix).multiply(this.rendererState.cameraObject.matrixWorldInverse),this.cameraFrustum.setFromProjectionMatrix(this.viewProjectionMatrix);let n,i;for(let f of this.rendererState.geometry3DsInScene)if(f.type==="image"){if(n=f.components[0],i=f.components[1],i.url&&n.imageMesh==null){let g=this.convertTo3DMapPosition(n.feature.geometry.coordinates),b={x:g.x,y:g.y};n.imageMesh=this.createImageMesh(f.id,i.url,n.feature.properties,n.feature.properties.verticalOffset,n.feature.geometry.coordinates,[b]),n.mesh.add(n.imageMesh),n.position.copy(n.imageMesh.position)}n.imageMesh&&(i.flipImageToFaceCamera&&this.flipIfNeeded(n,r),n.imageMesh.material instanceof Ju&&i.dirty&&n.imageMesh.material.opacity!==i.opacity&&(n.imageMesh.material.opacity=i.opacity))}else if((f==null?void 0:f.type)==="geometry"){if(n=f.components[0],i=f.components[1],i.showImage&&((a=n.feature.properties)!=null&&a.image)&&n.imageMesh==null&&n.visible&&n.mesh!=null&&n.mesh.parent!=null&&((u=n.feature.properties)==null?void 0:u.image.position)!=null&&n.feature.geometry.coordinates!=null&&n.feature.geometry.coordinates.length>0){let g=n.feature.geometry.coordinates[0].map(v=>{let C=this.convertTo3DMapPosition(v);return{x:C.x,y:C.y}}),b=this.createImageMesh(f.id,(s=n.feature.properties)==null?void 0:s.image.path,(d=n.feature.properties)==null?void 0:d.image,i.height+i.altitude,(m=n.feature.properties)==null?void 0:m.image.position,g);n.mesh.parent.add(b),n.imageMesh=b}if(n.imageMesh){if(!n.visible)n.imageMesh.visible=!1;else if(i.showImage&&!n.imageMesh.visible)if(i.url){let g=this.imageLoadingCache.get(i.url);g&&g.loaded&&(n.imageMesh.visible=!0)}else n.imageMesh.visible=!0;else!i.showImage&&n.imageMesh.visible&&(n.imageMesh.visible=!1);i.flipImageToFaceCamera&&this.flipIfNeeded(n,r),i.enableImageCollisions===!0&&this.updateImageScreenBBoxes(n)}}}updateImageScreenBBoxes(r){if(r.imageMesh==null)return;let n=r.imageMesh.geometry.boundingBox;if(n!=null){let i=new ne;if(r.imageMesh.getWorldPosition(i),!this.cameraFrustum.containsPoint(i))return;let a=new Ae;this.projectToScreen(a,i);let u=[new ne(n.min.x,n.min.y,n.min.z),new ne(n.max.x,n.min.y,n.min.z),new ne(n.min.x,n.max.y,n.min.z),new ne(n.max.x,n.max.y,n.min.z),new ne(n.min.x,n.min.y,n.max.z),new ne(n.max.x,n.min.y,n.max.z),new ne(n.min.x,n.max.y,n.max.z),new ne(n.max.x,n.max.y,n.max.z)],s=[];for(let v of u){let C=v.clone().applyMatrix4(r.imageMesh.matrixWorld),A=new Ae;this.projectToScreen(A,C),s.push(A)}let d=1/0,m=1/0,f=-1/0,g=-1/0;for(let v of s)d=Math.min(d,v.x),m=Math.min(m,v.y),f=Math.max(f,v.x),g=Math.max(g,v.y);let b=new Fe(a.x,a.y,f-d,g-m);this.currentImageScreenBBoxes.push(b)}}};o(Xg,"ImageSystem");var Vm=Xg;l();var uM=250,Do,Yg=class Yg extends Le{constructor(r,n){super();h(this,"cameraDirty",!0);h(this,"focusablesDirty",!0);h(this,"state");h(this,"camera");h(this,"debugEl",null);h(this,"raycasters",[]);h(this,"collisions",new Map);h(this,"focusableEntities",new Set);h(this,"debugRaycasters",!1);L(this,Do);h(this,"update",o((r=!1,n=Date.now())=>{this.focusablesDirty&&this.updateFocusableEntities(),!r&&(Date.now()-n>uM||(c(this,Do)&&cancelAnimationFrame(c(this,Do)),K(this,Do,requestAnimationFrame(()=>{this.updateRaf()}))))},"update"));this.state=r,this.camera=n,this.buildRaycasters()}resize(){this.buildRaycasters()}buildRaycasters(){this.debugEl&&this.debugEl.remove();let r=new Ae(this.state.canvasWidth/2,this.state.canvasHeight/2),n=new Ae(r.x/1.2,r.y/1.2),i=new Ae(r.x+(r.x-n.x),n.y),a=new Ae(n.x,r.y+(r.y-n.y)),u=new Ae(i.x,a.y),s=new Ae(r.x,r.y/1.5),d=new Ae(r.x,r.y+(r.y-s.y));this.debugEl=document.createElement("div"),Object.assign(this.debugEl.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",pointerEvents:"none"}),document.body.append(this.debugEl),this.raycasters=[r,s,d,n,i,a,u].map((m,f)=>{if(this.debugRaycasters){let A=document.createElement("div");A.style.position="absolute",A.style.top=m.y+"px",A.style.left=m.x+"px",A.style.width="10px",A.style.height="10px",A.style.backgroundColor="red",this.debugEl.append(A)}let g=m.x/this.state.canvasWidth*2-1,b=-(m.y/this.state.canvasHeight)*2+1,v=new Ae(g,b),C=new Vn;return C.setFromCamera(v,this.camera),[C,v,f===0?10:f<7?2:1]})}updateFocusableEntities(){this.focusableEntities.clear();let r,n,i;for(let a of this.state.geometry3DIdsInScene)if(i=this.state.geometry3DMap.get(a),i!=null){if(i.type==="group-container"&&i.components[1]!==void 0&&i.components[1]instanceof ts){if(n=i.components[1],n.dirty===!0||n.focusMesh==null){n.focusMesh&&Nt(n.focusMesh);let u=new rr;u.setFromObject(i);let s=u.max.x-u.min.x,d=u.max.y-u.min.y,m=u.max.z-u.min.z;if(!isFinite(s)||!isFinite(d)||!isFinite(m)||isNaN(s)||isNaN(d)||isNaN(m)||s<=0||d<=0||m<=0)continue;let f=new qi(s,d,m),g={transparent:!0,opacity:this.debugRaycasters?1:0,visible:this.debugRaycasters};if(this.debugRaycasters){let C=["red","green","blue","yellow","purple","orange","pink","brown","gray","black"];g.color=C[Math.floor(Math.random()*C.length)]}let b=new fr(g),v=new Pe(f,b);v.position.set((u.min.x+u.max.x)/2,(u.min.y+u.max.y)/2,0),v.userData={entityId:i.userData.entityId},n.focusMesh=v,i.add(v),i.components[1].dirty=!1}this.focusableEntities.add(n.focusMesh)}else if(i.type==="geometry"&&i.components[4]&&i.components[4]instanceof ts&&(r=i.components[0],n=i.components[4],r instanceof Lt&&r.geometry!=null&&(n.dirty===!0||n.focusMesh==null))){if(n.focusMesh==null){let u=new Pe(r.geometry);u.userData={entityId:i.id},n.focusMesh=u}this.focusableEntities.add(n.focusMesh)}}this.focusablesDirty=!1}updateRaf(){if(this.focusableEntities.size===0){this.publish("geometry-in-focus",[]);return}this.cameraDirty&&this.raycast()}raycast(){this.collisions.clear();for(let[n,i]of this.raycasters)n.setFromCamera(i,this.camera);for(let[n,i,a]of this.raycasters)n.intersectObjects(Array.from(this.focusableEntities.values())).forEach(s=>{var d;if((s==null?void 0:s.object)!=null&&"isMesh"in s.object&&(s!=null&&s.object.isMesh)){let m=s.object.userData.entityId,f=(d=this.collisions.get(m))!=null?d:0;this.collisions.set(m,f+a)}});let r=Array.from(this.collisions,([n,i])=>({entityId:n,weight:i})).sort((n,i)=>i.weight-n.weight).map(({entityId:n})=>n);this.publish("geometry-in-focus",r),this.cameraDirty=!1}showRaycasters(){this.debugRaycasters=!0,this.buildRaycasters()}hideRaycasters(){this.debugRaycasters=!1,this.buildRaycasters()}destroy(){c(this,Do)&&cancelAnimationFrame(c(this,Do)),this.debugEl&&this.debugEl.remove(),this.collisions.clear(),this.focusableEntities.clear(),this.raycasters=[]}};Do=new WeakMap,o(Yg,"GeometryInFocusSystem");var Wm=Yg;l();l();l();l();l();function sM(e){if(!e)throw new Error("geojson is required");var t=[];return Yi(e,function(r){cM(r,t)}),ko(t)}o(sM,"lineSegment");function cM(e,t){var r=[],n=e.geometry;if(n!==null){switch(n.type){case"Polygon":r=Uo(n);break;case"LineString":r=[Uo(n)]}r.forEach(function(i){var a=lM(i,e.properties);a.forEach(function(u){u.id=t.length,t.push(u)})})}}o(cM,"lineSegmentFeature");function lM(e,t){var r=[];return e.reduce(function(n,i){var a=qc([n,i],t);return a.bbox=dM(n,i),r.push(a),i}),r}o(lM,"createSegments");function dM(e,t){var r=e[0],n=e[1],i=t[0],a=t[1],u=r<i?r:i,s=n<a?n:a,d=r>i?r:i,m=n>a?n:a;return[u,s,d,m]}o(dM,"bbox");var Qg=sM;var fI=_c(mI(),1);function lT(e,t){var r={},n=[];if(e.type==="LineString"&&(e=Bp(e)),t.type==="LineString"&&(t=Bp(t)),e.type==="Feature"&&t.type==="Feature"&&e.geometry!==null&&t.geometry!==null&&e.geometry.type==="LineString"&&t.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&t.geometry.coordinates.length===2){var i=pI(e,t);return i&&n.push(i),ko(n)}var a=(0,fI.default)();return a.load(Qg(t)),Tp(Qg(e),function(u){Tp(a.search(u),function(s){var d=pI(u,s);if(d){var m=Uo(d).join(",");r[m]||(r[m]=!0,n.push(d))}})}),ko(n)}o(lT,"lineIntersect");function pI(e,t){var r=Uo(e),n=Uo(t);if(r.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(n.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var i=r[0][0],a=r[0][1],u=r[1][0],s=r[1][1],d=n[0][0],m=n[0][1],f=n[1][0],g=n[1][1],b=(g-m)*(u-i)-(f-d)*(s-a),v=(f-d)*(a-m)-(g-m)*(i-d),C=(u-i)*(a-m)-(s-a)*(i-d);if(b===0)return null;var A=v/b,x=C/b;if(A>=0&&A<=1&&x>=0&&x<=1){var E=i+A*(u-i),S=a+A*(s-a);return Mp([E,S])}return null}o(pI,"intersects");var ep=lT;l();function fc(e,t){t===void 0&&(t={});var r=ka(e);switch(!t.properties&&e.type==="Feature"&&(t.properties=e.properties),r.type){case"Polygon":return dT(r,t);case"MultiPolygon":return mT(r,t);default:throw new Error("invalid poly")}}o(fc,"default");function dT(e,t){t===void 0&&(t={});var r=ka(e),n=r.coordinates,i=t.properties?t.properties:e.type==="Feature"?e.properties:{};return hI(n,i)}o(dT,"polygonToLine");function mT(e,t){t===void 0&&(t={});var r=ka(e),n=r.coordinates,i=t.properties?t.properties:e.type==="Feature"?e.properties:{},a=[];return n.forEach(function(u){a.push(hI(u,i))}),ko(a)}o(mT,"multiPolygonToLine");function hI(e,t){return e.length>1?u4(e,t):qc(e[0],t)}o(hI,"coordsToLine");function pT(e,t){var r=!0;return Yi(e,function(n){Yi(t,function(i){if(r===!1)return!1;r=fT(n.geometry,i.geometry)})}),r}o(pT,"booleanDisjoint");function fT(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return!bT(e.coordinates,t.coordinates);case"LineString":return!gI(t,e);case"Polygon":return!ro(e,t)}break;case"LineString":switch(t.type){case"Point":return!gI(e,t);case"LineString":return!hT(e,t);case"Polygon":return!yI(t,e)}break;case"Polygon":switch(t.type){case"Point":return!ro(t,e);case"LineString":return!yI(e,t);case"Polygon":return!gT(t,e)}}return!1}o(fT,"disjoint");function gI(e,t){for(var r=0;r<e.coordinates.length-1;r++)if(yT(e.coordinates[r],e.coordinates[r+1],t.coordinates))return!0;return!1}o(gI,"isPointOnLine");function hT(e,t){var r=ep(e,t);return r.features.length>0}o(hT,"isLineOnLine");function yI(e,t){for(var r=0,n=t.coordinates;r<n.length;r++){var i=n[r];if(ro(i,e))return!0}var a=ep(t,fc(e));return a.features.length>0}o(yI,"isLineInPoly");function gT(e,t){for(var r=0,n=e.coordinates[0];r<n.length;r++){var i=n[r];if(ro(i,t))return!0}for(var a=0,u=t.coordinates[0];a<u.length;a++){var s=u[a];if(ro(s,e))return!0}var d=ep(fc(e),fc(t));return d.features.length>0}o(gT,"isPolyInPoly");function yT(e,t,r){var n=r[0]-e[0],i=r[1]-e[1],a=t[0]-e[0],u=t[1]-e[1],s=n*u-i*a;return s!==0?!1:Math.abs(a)>=Math.abs(u)?a>0?e[0]<=r[0]&&r[0]<=t[0]:t[0]<=r[0]&&r[0]<=e[0]:u>0?e[1]<=r[1]&&r[1]<=t[1]:t[1]<=r[1]&&r[1]<=e[1]}o(yT,"isPointOnLineSegment");function bT(e,t){return e[0]===t[0]&&e[1]===t[1]}o(bT,"compareCoords");var bI=pT;function gy(e,t){var r=!1;return Yi(e,function(n){Yi(t,function(i){if(r===!0)return!0;r=!bI(n.geometry,i.geometry)})}),r}o(gy,"booleanIntersects");var vT=5e3,yy="outdoor-system-debug-container",vI=!1,Gi,kt,hc,_u,Zi,pi,xn,Lu,gc,rp,np,Rn,by,Ru,ua,xI,ip,yc,EI,II,vy=class vy{constructor(t){L(this,Rn);L(this,Gi,!0);L(this,kt);h(this,"idleQueue",new oa);L(this,hc,"");L(this,_u,new Set);L(this,Zi,new Set);L(this,pi);L(this,xn,null);L(this,Lu,!1);L(this,gc,o(t=>{if(!c(this,kt))throw new Error("Map not initialized");let n=[[t[0],t[1]],[t[2],t[1]],[t[2],t[3]],[t[0],t[3]]].map(d=>c(this,kt).project(d)),i=Math.max(...n.map(d=>d.x)),a=Math.min(...n.map(d=>d.x)),u=Math.max(...n.map(d=>d.y)),s=Math.min(...n.map(d=>d.y));return[new Op.default(a,s),new Op.default(i,u)]},"#getScreenPoints"));L(this,rp,o(()=>{c(this,xn)&&(clearTimeout(c(this,xn)),K(this,xn,null),K(this,Gi,!1))},"#stopTrying"));L(this,np,o(()=>{c(this,xn)&&(clearTimeout(c(this,xn)),K(this,xn,null)),K(this,xn,setTimeout(()=>{c(this,rp).call(this)},vT))},"#startTrying"));L(this,Ru,o(async()=>{if(vI&&c(this,pi)&&pt(this,Rn,II).call(this),!(!c(this,kt)||!c(this,Lu))&&c(this,Gi)&&!(!c(this,Zi)||c(this,Zi).size===0)&&(c(this,Rn,xI)&&c(this,ip).call(this),c(this,pi))){let t=new Set;this.idleQueue.onComplete(()=>{c(this,ua).length>0&&(c(this,Zi).forEach(r=>{var n;(n=c(this,kt))==null||n.setFilter(r,["all",...c(this,ua)])}),K(this,Gi,!1)),K(this,ua,[])});for(let r of c(this,pi)){let n=kp(r),i=c(this,gc).call(this,n),a=c(this,kt).queryRenderedFeatures(i,{layers:Array.from(c(this,Zi))});for(let u of a)u.id==null||t.has(u.id)||this.idleQueue.add(()=>{if(u.geometry!=null&&"coordinates"in u.geometry){let s;if(u.geometry.type==="Polygon"?s=Kc(u.geometry.coordinates):u.geometry.type==="MultiPolygon"&&(s=s4(u.geometry.coordinates)),!s)return;gy(r,s)&&u.id!=null&&(t.add(u.id),c(this,ua).push(["!=",["id"],u.id]))}})}}},"#handleRender"));L(this,ua,[]);L(this,ip,o(()=>{this.idleQueue.clearAll()},"#cancelJobs"));L(this,yc,o(t=>{var r,n;if(c(this,kt)&&t&&t.dataType==="style"&&t.type==="styledata"&&c(this,_u).size>0){let i=(n=(r=t==null?void 0:t.style)==null?void 0:r.stylesheet)==null?void 0:n.id;(!i||i!==c(this,hc))&&(K(this,hc,i),pt(this,Rn,by).call(this),K(this,Gi,!0))}},"#handleStyleChange"));t&&(K(this,kt,t),c(this,kt).on("styledata",c(this,yc)),c(this,kt).on("render",c(this,Ru)),K(this,Lu,c(this,kt).loaded()),c(this,kt).on("load",()=>{K(this,Lu,!0)})),vI&&pt(this,Rn,EI).call(this)}hideLayersIntersectingPolygons(t,r){c(this,xn)&&clearTimeout(c(this,xn)),c(this,np).call(this),K(this,pi,t.reduce((n,i)=>{if(i.geometry.type==="Polygon"){let a=Kc(i.geometry.coordinates);n.push(a)}else i.geometry.type==="MultiPolygon"&&n.push(...i.geometry.coordinates.map(a=>Kc(a)));return n},[]));for(let n of r)c(this,_u).add(n);K(this,Gi,!0),pt(this,Rn,by).call(this),c(this,Ru).call(this)}destroy(){c(this,kt)&&(c(this,kt).off("styledata",c(this,yc)),c(this,kt).off("render",c(this,Ru))),this.idleQueue.clearAll()}};Gi=new WeakMap,kt=new WeakMap,hc=new WeakMap,_u=new WeakMap,Zi=new WeakMap,pi=new WeakMap,xn=new WeakMap,Lu=new WeakMap,gc=new WeakMap,rp=new WeakMap,np=new WeakMap,Rn=new WeakSet,by=o(function(){if(K(this,Zi,new Set),c(this,kt))for(let t of c(this,_u))c(this,kt).getLayer(t)&&c(this,Zi).add(t)},"#filterStylesInMap"),Ru=new WeakMap,ua=new WeakMap,xI=o(function(){return this.idleQueue.size!==0},"#running"),ip=new WeakMap,yc=new WeakMap,EI=o(function(){if(!document.getElementById(yy)&&c(this,kt)){let t=document.createElement("div");t.id=yy,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.bottom="0",t.style.right="0",t.style.pointerEvents="none",t.style.zIndex="1000",c(this,kt).getContainer().appendChild(t)}},"#addDebugContainer"),II=o(function(){let t=document.getElementById(yy);if(!t||!c(this,pi)||!c(this,kt))return;let r=t.querySelectorAll('[id^="polygon-box-"]');for(let n=0;n<r.length;n++)r[n].remove();for(let n=0;n<c(this,pi).length;n++){let i=c(this,pi)[n],a=kp(i),u=c(this,gc).call(this,a),s=document.createElement("div");s.id="polygon-box-".concat(n),s.style.position="absolute",t.appendChild(s);let d=[Math.min(u[0].x,u[1].x),Math.min(u[0].y,u[1].y)],m=[Math.max(u[0].x,u[1].x),Math.max(u[0].y,u[1].y)];s.style.top=d[1]+"px",s.style.left=d[0]+"px",s.style.width=m[0]-d[0]+"px",s.style.height=m[1]-d[1]+"px",s.style.border="2px solid ".concat(c(this,Gi)?"red":"blue")}},"#updateDebugBBoxes"),o(vy,"OutdoorLayers");var tp=vy;l();l();l();l();var op="attribute float pathDistance;\nattribute vec3 pathNormal;\nattribute vec3 pathTangent;\n\n\nuniform vec2 uvScale;\nuniform float vertexes;\nuniform float complete;\nuniform float nearRadius;\nuniform float farRadius;\nuniform float nearZoom;\nuniform float farZoom;\nuniform float pulse;\nuniform float pulseLength;\nuniform bool pathIsVertical;\nuniform bool displayArrowsOnPath;\nuniform vec2 cameraParameters;\n\nvarying float zoomLevel;\nvarying float radius;\nvarying vec2 fragTexcoord;\nvarying float fragTopTextureU;\nvarying float fragPathDistance;\n\nuniform float highlightStartFraction;\nuniform float highlightEndFraction;\nuniform float highlightCompleteFraction;\nuniform float highlightWidthMultiplier;\nuniform vec3 highlightColor;\n\nfloat flattenFactor = 0.0;\n// Map the x value from the range [xMin, xMax] to the range [yMin, yMax] using\n// linear interpolation/extrapolation.\n//\n// This performs a pure linear mapping y = mx + b where\n// 'm = (yMax - yMin) / (xMax - xMin)',\n// 'b = -xMin * (yMax - yMin) / (xMax - xMin) + yMin'.\nfloat remap(float x, float xMin, float xMax, float yMin, float yMax) {\n return (x - xMin) / (xMax - xMin) * (yMax - yMin) + yMin;\n}\n\n// Map the x value from [xMin, xMax] to the range [yMin, yMax] using linear\n// interpolation, clamping result values outside [yMin, yMax].\nfloat clampRemap(float x, float xMin, float xMax, float yMin, float yMax) {\n return clamp(remap(x, xMin, xMax, yMin, yMax), yMin, yMax);\n}\n\nvoid main() {\n fragPathDistance = pathDistance;\n\n // We can get an origin point for the cross-section of the path by\n // subtracting the surface normal times the radius, since the surface normal\n // points strictly away from the centre.\n vec3 origin = position - nearRadius * normal;\n \n // Inflate the path along its surface normal to increase its radius from\n // 'nearRadius' to 'farRadius' when the camera is at 'farZoom'.\n vec3 adjustedPosition = position;\n zoomLevel = clampRemap(cameraParameters.x, nearZoom, farZoom, 0.0, 1.0);\n\n // expansion factor uses the zoom level to increase/decrease the radius\n // for fixed widths, this number is ZERO\n float expansionFactor = (farRadius - nearRadius) * zoomLevel;\n\n adjustedPosition += normal * expansionFactor;\n\n\n // TODO: optimize by removing branching\n bool isHighlighted = fragPathDistance >= highlightStartFraction && fragPathDistance <= (highlightEndFraction * highlightCompleteFraction);\n // adjust the color based on the highlight but only if the fragment is within the highlight start and end\n if (isHighlighted) {\n // we have to subtract 1., don't ask why\n adjustedPosition += normal * (highlightWidthMultiplier - 1.) / 2.;\n }\n \n\n // Determine how far the path extends \"up\" or \"down\" in the direction of the\n // path normal.\n float height = dot(adjustedPosition - origin, pathNormal);\n\n // For horizontal paths, flatten the bottom half entirely so that it's flat\n // against the floor. This makes the path look nicer when it's\n // semitransparent behind opaque geometry, so you don't see it\n // peeking through. For vertical paths, preserve the full tube geometry.\n if (!pathIsVertical) {\n float desiredHeight = max(height, 0.0);\n desiredHeight = desiredHeight * flattenFactor;\n float flattenMagnitude = height - desiredHeight;\n adjustedPosition = adjustedPosition - pathNormal * flattenMagnitude;\n }\n\n // Transform the vertices into NDC.\n vec4 mvPosition = modelViewMatrix * vec4(adjustedPosition, 1.0);\n gl_Position = projectionMatrix * mvPosition;\n\n fragTexcoord = uv;\n\n // Compute a texture coordinate for mapping the arrow texture to the path.\n // We don't want to use the u-value that Three.js provides, because the\n // path may end up twisting arbitrarily -- but we want the arrow texture to\n // always be on the top of the path.\n vec3 bitangent = cross(normal, pathTangent);\n fragTopTextureU = -dot(bitangent, pathNormal) * 0.5 + 0.5;\n // adjust the color based on the highlight but only if the fragment is within the highlight start and end\n if (isHighlighted) {\n // TODO: fix scaling\n fragTopTextureU = -dot(bitangent, pathNormal * highlightWidthMultiplier) * 0.5 + 0.5;\n }\n\n radius = mix(nearRadius, farRadius, zoomLevel);\n}\n";l();var xy="#define ARROW_FADING_POINT 0.15\n\nuniform float complete;\nuniform float nearRadius;\nuniform float farRadius;\nuniform vec2 resolution;\nuniform vec2 cameraParameters;\nuniform vec3 color;\nuniform float pathLength;\nuniform bool showPulse;\nuniform vec3 pulseColor;\nuniform float pulse;\nuniform float pulseLength;\nuniform bool pathIsVertical;\nuniform bool displayArrowsOnPath;\nuniform float arrowAnimationTimer;\nuniform float opacityMultiplier;\nuniform bool dashed;\nuniform sampler2D arrowTexture;\n\nvarying float zoomLevel;\nvarying float radius;\nvarying vec2 fragTexcoord;\nvarying float fragTopTextureU;\nvarying float fragPathDistance;\n\n\nuniform float highlightStartFraction;\nuniform float highlightEndFraction;\nuniform float highlightCompleteFraction;\nuniform vec3 highlightColor;\n\n// How long the arrow should be, as a factor of pathRadius. Since we've\n// mostly flattened the top of the path, values near 2.0 (the diameter)\n// will probably look best.\nconst float arrowLength = 2.0;\n\n// How much of a relative margin the arrow texture should have inside the\n// area laid out for it. Useful to pull the arrow away from the edges of the\n// path, which slope down.\nconst float arrowMargin = 0.1;\n\n// How many arrow-lengths of space should be between arrows on a short path.\nconst float arrowSpacingOnShortPath = 6.0;\n\n// How many arrow-lengths of space should be between arrows on a long path.\nconst float arrowSpacingOnLongPath = 7.5;\n\n// How long a path must be to be considered \"long\", as a factor of\n// the path radius.\nconst float longPathLength = 200.;\n\n// How long a path must be to be considered \"short\", as a factor of the\n// path radius.\nconst float shortPathLength = 75.;\n\n// How much of the path's length the fade-in should comprise when going from\n// zero opacity to full opacity.\nconst float completeLength = 0.1;\n\n// Map the x value from the range [xMin, xMax] to the range [yMin, yMax] using\n// linear interpolation/extrapolation.\n//\n// This performs a pure linear mapping 'y = mx + b' where\n// 'm = (yMax - yMin) / (xMax - xMin)',\n// 'b = -xMin * (yMax - yMin) / (xMax - xMin) + yMin'.\nfloat remap(float x, float xMin, float xMax, float yMin, float yMax) {\n return (x - xMin) / (xMax - xMin) * (yMax - yMin) + yMin;\n}\n\n// Map the x value from [xMin, xMax] to the range [yMin, yMax] using linear\n// interpolation, clamping result values outside [yMin, yMax].\nfloat clampRemap(float x, float xMin, float xMax, float yMin, float yMax) {\n return clamp(remap(x, xMin, xMax, yMin, yMax), yMin, yMax);\n}\n\nvoid main(void) {\n // Compute the opacity of the path based on the distance from the current\n // fragment to the 'complete' value as it varies from 0.0 to 1.0.\n // Fragments that are at the 'complete' value or past it will be fully\n // transparent, while fragments that are at 'complete - completeLength'\n // or before it will be fully opaque. However, we adjust the 'complete'\n // value here so that it overshoots by one full 'completeLength', so that\n // the entire path will be opaque when the 'complete' value is at 1.0.\n float completeLocation = complete * (1.0 + completeLength);\n float completeAmount = clampRemap(\n fragPathDistance,\n completeLocation - completeLength,\n completeLocation,\n 0.0,\n 1.0\n );\n float opacity = 1.0 - smoothstep(0.0, 1.0, completeAmount);\n\n // 2020/01/09 Terence Dickson\n // When we render the background and overlay for the mapbox outdoor context\n // behind everything else in single-buffer rendering, the fact that the path\n // writes to the depth buffer means that the background and overlay will not\n // be drawn behind the path even when the path is still fading in. The effect\n // is subtle and is only visible in single-buffer rendering so this quick fix\n // prevents writes to the depth buffer for zero opacity fragments, which gets\n // rid of the most visually-offensive ghosting.\n if (opacity <= 0.0) {\n discard;\n }\n\n // Push in the texture coordinates so that they ramp up\n // at 'arrowMargin' instead of at zero; this remapping looks somewhat\n // like this:\n // 1 ^ ___\n // | /\n // | /\n // | /\n // | /\n // |___/\n // 0 +---------->\n // 0 ^ 1\n // arrowMargin\n // Making the arrows narrower on the path.\n float u = fragTopTextureU;\n u = clamp(\n u * (1. / (1. - arrowMargin * 2.)) - (1. / (1. - arrowMargin * 2.) - 1.) / 2.,\n 0.0,\n 1.0\n );\n\n float arrowSpacing = clampRemap(\n pathLength,\n shortPathLength * radius,\n longPathLength * radius,\n arrowSpacingOnShortPath,\n arrowSpacingOnLongPath\n );\n\n // Reduce the spacing between arrows when the camera zooms out, as increasing\n // the path radius will increase the arrow size and thus be able to fit\n // fewer arrows on in total, and this secondary movement of the arrows\n // \"zooming off\" the end of the path is unpleasant\n float expandAmount = mix(1.0, farRadius / nearRadius, zoomLevel);\n float effectiveArrowSpacing =\n arrowSpacing * 1.0 / expandAmount +\n arrowMargin * 2.0;\n\n float effectiveArrowLength = arrowLength * radius * (1. - arrowMargin * 2.0);\n\n // Adjust the slope of the vertical texture coordinate so that it goes\n // from 0 to 1 along the length of the arrow plus the spacing between\n // arrows, and adjust its x-intercept so that one arrow moves to the\n // exact position of the next arrow as 'arrowAnimationTimer' goes\n // from 0 to 1\n float v = (\n fragTexcoord.x * (pathLength / effectiveArrowLength)\n - arrowAnimationTimer * (1. + effectiveArrowSpacing)\n );\n\n // Compute a \"looping sawtooth\" wave for determining the vertical texture\n // coordinates of the arrow texture, roughly as follows:\n // 3 ^ /\n // | ___/\n // 2 | /\n // | ___/\n // 1 | /\n // |___/\n // 0 +--------------->\n // 0 ^ ^\n // ^ |_|\n // | effectiveArrowLength\n // |___|\n // effectiveArrowSpacing\n //\n // This is effectively equivalent to this sort of sawtooth wave:\n // ^\n // 1 | / / /\n // |___/ ___/ ___/\n // 0 +--------------->\n //\n // Causing the image of the arrow to repeat, with dead space (the bottom\n // edge of the texture stretched out) between the arrows at the provided\n // spacing. The reason why the \"looping\" design is preferred is because\n // it takes advantage of WebGL's 'GL_REPEAT' texture wrapping behaviour\n // to avoid the discontinuity that can end up causing visual artifacts.\n if (mod(v, (1. + effectiveArrowSpacing)) < 1.) {\n v = v - effectiveArrowSpacing * floor(v / (1. + effectiveArrowSpacing));\n } else {\n v = ceil(v / (1. + effectiveArrowSpacing));\n }\n\n // Use the r-component of the texture to determine whether the arrow covers\n // this fragment or not\n vec2 sampleTexcoord = vec2(u, v);\n float arrowAmount = 0.0;\n vec3 secondColor = pulseColor;\n\n vec3 finalColor = color;\n\n\n \n // adjust the color based on the highlight but only if the fragment is within the highlight start and end\n // [Anzor] I added 0.005 to make the highlight transition a little smoother when the width multiplier is too high\n if (fragPathDistance >= highlightStartFraction - 0.005 && fragPathDistance <= (highlightEndFraction * highlightCompleteFraction)) {\n finalColor = highlightColor;\n }\n\n\n if (displayArrowsOnPath) {\n arrowAmount = texture2D(arrowTexture, sampleTexcoord).r;\n float delta = 1.0 - abs(fragPathDistance * 2.0 - 1.0);\n secondColor = mix(finalColor, pulseColor, 1.0 - smoothstep(ARROW_FADING_POINT, 0.0, delta));\n }\n\n if (dashed) {\n float dashLength = 0.1; // Adjust this value to change the dash length\n float gapLength = 0.1; // Adjust this value to change the gap length\n float totalLength = dashLength + gapLength;\n float numSegments = ceil(1.0 / totalLength);\n float adjustedTotalLength = 1.0 / numSegments;\n float adjustedDashLength = adjustedTotalLength * (dashLength / (dashLength + gapLength));\n float pattern = mod(fragPathDistance, adjustedTotalLength);\n opacity = pattern < adjustedDashLength ? 1.0 : 0.0;\n }\n\n\n\n if (showPulse) {\n // Add the pulse color to the path by determining how far the current fragment\n // is from 'pulse'\n float pulseLocation = remap(\n pulse,\n 0.0,\n 1.0,\n -pulseLength,\n 1.0 + pulseLength\n );\n float pulseDistance = smoothstep(\n 0.0,\n pulseLength,\n abs(fragPathDistance - pulseLocation)\n );\n\n // Blend the pulse color to the path based on how close this fragment is to\n // the 'pulse' value and whether it's covered by an arrow -- but if it's\n // covered by *both*, then we go back to using the regular path color\n // (making arrows look like \"holes\" when they're overlapping the pulse.)\n float pulseLevel = abs(1.0 - pulseDistance - arrowAmount);\n\n \n gl_FragColor = vec4(mix(finalColor, secondColor, pulseLevel), opacity * opacityMultiplier);\n } else if (displayArrowsOnPath) {\n gl_FragColor = vec4(mix(finalColor, pulseColor, arrowAmount), opacity * opacityMultiplier);\n } else {\n \n gl_FragColor = vec4(finalColor, opacity * opacityMultiplier);\n }\n #include <colorspace_fragment>\n}\n";l();var CI="uniform float complete;\nuniform float nearRadius;\nuniform float farRadius;\nvarying float fragPathDistance;\nconst float completeLength = 0.1;\n\n// Map the x value from the range [xMin, xMax] to the range [yMin, yMax] using\n// linear interpolation/extrapolation.\n//\n// This performs a pure linear mapping 'y = mx + b' where\n// 'm = (yMax - yMin) / (xMax - xMin)',\n// 'b = -xMin * (yMax - yMin) / (xMax - xMin) + yMin'.\nfloat remap(float x, float xMin, float xMax, float yMin, float yMax) {\n return (x - xMin) / (xMax - xMin) * (yMax - yMin) + yMin;\n}\n\n// Map the x value from [xMin, xMax] to the range [yMin, yMax] using linear\n// interpolation, clamping result values outside [yMin, yMax].\nfloat clampRemap(float x, float xMin, float xMax, float yMin, float yMax) {\n return clamp(remap(x, xMin, xMax, yMin, yMax), yMin, yMax);\n}\n\nvoid main(void) {\n // this ensures that the stencil mask moves along with the path above it, to avoid the progress bar effect\n float completeLocation = complete * (1.0 + completeLength);\n float completeAmount = clampRemap(\n fragPathDistance,\n completeLocation - completeLength,\n completeLocation,\n 0.0,\n 1.0\n );\n float opacity = 1.0 - smoothstep(0.0, 1.0, completeAmount);\n\n // 2020/01/09 Terence Dickson\n // When we render the background and overlay for the mapbox outdoor context\n // behind everything else in single-buffer rendering, the fact that the path\n // writes to the depth buffer means that the background and overlay will not\n // be drawn behind the path even when the path is still fading in. The effect\n // is subtle and is only visible in single-buffer rendering so this quick fix\n // prevents writes to the depth buffer for zero opacity fragments, which gets\n // rid of the most visually-offensive ghosting.\n if (opacity <= 0.0) {\n discard;\n }\n\n gl_FragColor = vec4(0.0, 1.0, 0.0, opacity);\n}";var DI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAAAAAB5Gfe6AAAQkHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZpZciQ7rkT/uYpeAicQ5HI4mr0dvOX3ATOl0li3q3SVJkUqFMEBcHc4IuX2///fcf/hK7cSXRatpZXi+cott9h5U/3j63EMPt+fL1/h+fPdeff6NnJMHNPjD2U/7+qcl183aH6eH+/PO52PN7E+B3qZ+Tlgspkjb57X1edAKT7Oh+fvrj3v6/nNdp7ftd057abHnz78npVgLGG8FF3cKSTPz2oXJFaQWuocCz9D0mhnEu8Tx54k6dexc98F77vY+f48n96HwvnyvKB8iNHzfJCvY3cj9HZF4dfM7/6QZ4j+7deb2J2z6jn7sbueC5Eq7rmpl63cd1w4GCrd2wov5Vt4r/fVeFW2OMnYIpuD13ShhUi0T8hhhR5O2Pc4w2SJOe5IuGOMM6Z7rhL+FudNSrZXOFFJz3KpkqtJ1hKn4+tawp233flmqMy8AlfGwGCBOz693Fcn/+b1OtA5Bt0QfH2NFeuKFnCWYZmzn1xFQsJ5xlRufO/LvcGNf5PYRAblhrmywe7HY4gh4Re20s1z4jrx2fkHNYKu5wCEiLmFxYREBnwJSUIJXmPUEIhjJT+dlceU4yADQSSu4A65SamQnBptbu7RcK+NEh+nkRYSIZBGSQ0EIlk5C/jRXMFQlyTZiUgRlSpNekklFymlaDGN6po0q2hR1apNe001V6mlaq211d5iS0iYtNLUtdpa651JO0N37u5c0fuII408ZJSho442+gQ+M0+ZZeqss82+4koL+q+y1K262uo7bKC085Zdtu662+4HrJ108pFTjp562umvWXtm9X3WwofM/T5r4Zk1y1i+1+mvrHFa9WWIYHIiljMyFnMg42oZANDRcuZryDla5ixnvkVIIZGsBbHkrGAZI4N5hygnvObuV+Z+mzcn+Y/yFr/LnLPU/RuZc5a6Z+Y+5+2LrK1+K0q6CTIWWkx9OggbF+zaY+1Wk/766H46wF8ONFY+O8hBMEc7oc4Vdh+8JsE+PUSrVjr70Zz1+H56PH3o9sRR1ql5Ha8bUMQxpe89Tki8Sb0tE23cw3DcfEo+ugnj2G3WEmononVfoag71pVjR+EmAE53eT5tqYfEHl/7ThMusaI+St0jktFa9gKnreiQqCNpZ2mJdSkbaiK6DrovYR4/JhJfRsx5d5EVZnEIPetHnU5KynJPTSuCPuC0lOuXH7n1DNq7DpUtHbhM5lDA0c2bnDCJoOObMnyj+aPjPwx0yiDUxKKsg35VnRnBEVhonKwK5hOk5NttUrhr2+tMOXkPJb1RZ+iAelYjL2MuO3pGRQ78GdxwOOaTAcJZcewq7ilB1RJCSozUdSEdwVJVb6asiBsHH1Bqgbiv3Cmkkis6ktVnZGRRwMNJjUA3Ao2127YWdhAIblxF51hzMcZsVZc0r0dJo5Liqfn41Q+q193SGhhkMkgaLJRNnEpqBtyVvbcVffIk+LE9QPFBTMTQe0aWkMXMnx3dy5sfHreDE60Ql50E+SqRcmfK16L2p0Ol8JFATu3qASXy7SvmiGW2cdMBxsty44CvtLogfGlv7WkCSV0WId2270EaD5Ym40cs+SAwZuNjPSTywAvEfLmzQhtLDntfCnhl/fNmUNnzyA2g76Zn0SP+c+I6bCC0FONUQ4L50e95dif+DH/m9htQjBEhPPpOjYjmm2ChbfEMIUaYtAIxmWJHlilLU8ZRs9pCsHbDpFaRgZljz2QandjDIBPZDGTuoZW1KdlYh52ALzisKJRNWSQmLAWx8iv9mGttT15bBc2oxd57bZtVF98CYtK3UH22Yd/A7WaKa+ZjNTOXEzNhMJ5kmQOvfzsbxbZALJ2xwGBjX2HFQybhi7kpbA7DVpS3RxMJwFyHwGk5gs6a4lrRHVqhYT0QTJC9UZcC9Yrelkn6yXch68NKNtG7CiU3vf/zMZAYXPWdrR9XZ/ctMV1sJQ2wJEGxzaHs7LmmHIwnUwbwnNAapBY9xhE19DNJW3ua0dDk/AjwITacR0PqZxkbyJ+E5jYbxI84x1TBE+y90hwDCYZIM0tqAKPZfCzFrbH8kYCm3eqQkZ2+2GovcL8Suokyg8yyCJes6dcouSLiNSLb0ETJU+/N/WFsBBSOXBbm9Cwp4CzlOag7ro7R2vC19nSsCPmAjIEMiobFwaoVXhjTU2XMpgEsDH/L3Sx54OCTMUSXI/IIA2V4QcLQpwVz12pInI0bY56pIQ2BSGRLL+yLfZ7JkiimbK+aepsbwRStpokx5gCqe1hjdMAwcINbkk5jmedrNRAG5pUXPe0sZIoXy1h7lSDxApzheg24JeDNtDS1oBDBUC4iWZFilBPhZx0Kqx2lihpbG9q4sYidksCN4yRYhNM4nxfBbTi4E3AT6B3igbvs9Gv8ZkHsIfdlep+2HelEDbkJdNjqZQ90B7k6OIoFfkkPNoY+z0gzACa1f2qcBYxVJpT2QQgS19dKQlbC24S92xiEAFRKB5Uy1qrBgOtwIge55G0kRPfIytGx0tMOrGfrijB2FHOk/TKcMjDTMPeBo4FnXD5cQ8vtdgoAN0yuzZQHQI09wm/5vAB6RHyI9rYKiZ6YWC6rbaiLmDtoaToC1bViXQFNtgWsOfEEKCleC3GWPSfgQWRQWMgw/9FDgvOZrFAT3SmsA3DLbqlsSppQG5QeOjPXavUUkxF/qgLM05vW5o7UakuBqo2ZW8Nj0LB7imVJC9QSA+wd7RPztIUZ80xQZq0ROrc8CSVncWzkTA/RwmunldCPAQKjqVC7bhRuTIv0plbk7gOX4m5OAi2YesYZ0KBQRToG8iv9x8dgGtgECYRBeEU87OxoSc8epu+s7Mq/MN0VbBT19dii7ekO66UZwdAMtoAVQd13J5nwZe98OgGslmVqAGBkeLZNVNVlWpV18qihntXKnBZvrDIVgFpx4q5poLqREOVplMPSpTF2KvjBAzDpprkruXIaaUmUD4Xo2yrGWcYlixKIwRFjl0jPQhKznUXZAoSjlg9c/NwAI4p3Q/w5bCNfhUZS7bGfqesHqKAlyZZxZgNrhGevZXccaqBys4NEqB3Vqfptji9uUrhCL6yXFqxtm0hhLyYU3Tjd8I/HZaWD1oyVjnG5hhpCN5yHSf8BQUZlVNd00OP4M0TK+JSM7iqWi01SinFkCQXWxiZJLqqAHiEt3G3I2WYd46KU9pIJIOkoRQYCcEAAPguHo0Y4k8Hl6SW50MoW0uZU8jJOUghKo38Nl5ZSwsJNAUC2/lFZWkfMjrU8dFrTjHpJnUrLCILQIxINiYdQlDXaE/razQ4jjQluN5jW1Eh/S7yYvI5gigSjdLYU9TiFXAcHjISiLhQd9obb3OQmwY+YqVwiBMCkOGLXaK/ljBShh56c1g0uyIb2lBRKO7ZTAFncw5c5UGjGSy3CsI1Jt2mtruZkfhBZmbR+842Yu1eDiWEl0V6LZcGem6Ct+LW4Wy3oAjyNObazKBHomhJ3HMKEKHgiGksH+Ig1nTidfNMyA+oYHqVFaRGLiQreVLc9GvQgftKjW9cfUSKNYL80rqU7Um2rwqQJR1ai31Wq7vzKJEsFHDj0bAEMUKXgvfD5bWbaLPBTKz1Nk/Fg+GUZvUzFw80CLaKtPAACVAWrismh863FU4IJ0716SXBUNVb/SDMVvZgDt34CXoOq1JKvg0n08gPHTwXBNgD5W8pZZ8E9EVWcv1DZMB2NFysIwkqBSaH5QRmsAHdkHB+UANvLJvFpQKAahSmYTLEd2AFO+5rsqRRU6sVv5IP0wsSPLcWsbC1Y95mte71CUm6RJJWwkg6Q4k+xWMM0ByElJPQ6j2ED5hY42ALpZRytx9RlgQlJLijzhKi5eX5JBSIRGfo9o2xhd/0aWku8OS+4D9ZnovHDQMPaYo4qm2mlZbUnd7pR6oQj29Z2BqJ9n3LRT+MTLu3IR+ZP2TCPh3EDw8H1NHpoT7FibNYU8WHd9ESHcY12aDOQCUBddi4Ucp+4yuzz8ybcCCu1h8zvzXhDN4HYLq1R+U0xzUqg5QSA3iSBgdDouy55Ifx0DaeEhgezxBRGmoEJ6AJitVuzwtKPlUskHgU2F0LS7AFIwW5jPu0RUL7sp+fkNk0ee8P6uXYgl40WM+cdCOW21r13e0ivt0ff/mYcUfrQZWs2BiN6G+MDTGz1BKORmUTNQp9YGSHFxAeTkQrKd6FoVUogyytW25OLy3OpaO5oZCQp46aPzb5LnJiFEIwAKkmbYVYIjzVv3vj7rA6HignEeQAXTAHKDhoD7Uujh0QjtsB6fTP1NzO7T1Nzq4F1GnfHdXCG1Yxjwdtjf+PGRGTzEtEAUCz7KLfTdItLwCXuSOAzVjaZB6LvbUZhYGWmifSZlcMDnGHPd6gPeiK9erhpiw7ZP9ahTrMhFDa1J53m9ri2DloziqGETTcVSppCbTDDjExg6RrZ6cPEzB8XArEjQSB29odrUoLyoS/65RfM9fprGGjlHpbhGgbYD8MtmW1eFcAWX5dbcMHcl8sUI2k+H7GPW9VrArw3G+BefcCrCaAT/N53YLvP26Uy0kMFnDEZz0DJkmQqEOlL7SlKweYhH8gxpYeAYi0f9magqPbMYZuUI6007lSZQoyoGfYQHsNRzHXR3MMINTSMZpq1KD2A5MDJgtMLdRU6R4CEOJcKGiIJ7K6P/vAM6xpECHI8rRHsaEj6smkngAUjXTzrRoSI48ZpHOqgOY5OejKVdpnmiYUChQnVdIPa6ekGqRSRgEO119oDHOiIUQ5ciYVgaF1oG8Udo8WYtD+DEi8D/w8rAJE2k2PoyV0oMtpauxreaFjpujAvxFlwBhjuNqM9P0IfI5iD8Nh8y1kG4igjJkDNkOijnlLhItAd9lhRd670yNRTu95cR/Xuu0c5WO4DEFk5YQAPtLvU4TYPGRh4APPEDNiuuwR6SC21JoFbQBBMr+zJmT32QplNI6p16PbculN/pCX1wAyTWGTeJ774aln0gvQikw7TmkfsNbdQNs0adutYUDqNtGc0RqngUYdhUYuHSL1/eLrgvqDTC5neu++vufRkEgP9D2T64Kg/c4n+s7k3dDr3me8nOr0c72MRNmgF7D4WySPP0YAI/bI4eixwc7K13QiRiL85A8fnSsUj+mvTrsZtVUEQZ6sTpVafW8nYJZyaZS0U+0xIb6et9PhhtoObozQbjKAoDf6eiFgx1UUvpUYj1GweH0MNMrofhynfWn7+KYu7n5r83hN9aqm+6qjcH7dUlgvZVLV3xqq4fbP16qv+eofuTz43eomAqfS7GBAB9zEE31WJ37eVIPtdGN5A8nMYPvvLt8t2/V/6gM19G4g/hIL7UXf9JgbuLRZ+AoW//AzyMxTcWyz8BAruLRZ+AgX3r3y2+mT/PwfiN1DoVI+QT3CZDmvb8022JeYb6HiQPQpPPvboFB+i1MZdcqWZqthHmix6vttw0UAI1z8oEnGwVe++c7JamxslC+8xKJE41XJmug1npz+6CUAKyURd9gSxo+kWxvtZth848GBlws/0SKjYhmbZ9IiV+mcGBSdWHk8sqSr2zz5J7QME/0yD+z4Pe+JuGn1MV/vUyZwOHojWPlmPXgf9CuoeN9UAT+FGwaLg44v3dWe6QpvuL3Ln/p3k/2AgqNDcfwHgqUmIIqn+hwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH4wYRESAMujenGAAAB9FJREFUeNrtnWlsFVUUx899fS1gUoKioEY+WBRUEohGkUhAKxgEjSgGoRGB4AJCNKAIJBJZJSiyGYMKKkIoLlEUKhUraxFkKUE2kU1aCrRgW2jpg9f29R2/sBTo67v3zL2zvfP73MzM+XU6mf+5504BGIZhGIZhGIZhGIZhGMZGGq3JvSmR62++BXHH7Ylbf9ouRMT99yVq/e0PICIiHumUmPV3PooXOf5EItafXoCXOdUn8ep/pgjrUDY40ervX4JXUTEiocoXL5/FawiNEwlU/6hzeB3hqQljQIwJYT3UzEkQA2JiGOslsiAhDIgZ1RiD6NIEMBD8NIKxyQr6vv7FtdgQa31uILg0ig2zsZmv4//yePUj7rjNv/U3yUEJ/r7Xr/XfvBmlOPKwT+vfhpIUdvdj/Wm7UZpTz/mv/g4HUYGyQb5r/+SjEhXD/VV/j5OoSGisj16LRe9iVCY8xTcGxIulSKBmtk8MiKHlSMIn8ViMqkQivojHgfcuIJ0VAc/XPzmMVljrcQOBmdVojY1NvVx/8mcRtEqeh+NxypJatM6+ezxb/7Io6uBwR4/e/1moicJunvz956A2ip/1Xv3Nt6JGSgd6rf47/0KtlHssHrfZi5rxVDwWDx5C7XgoHotHC9AANbO8YqBXERohMt8bv/8X/kNDRDM9cA+IgWVojhWuNxAYXo4mWePyeBwYHUKz5Lo6HidNvICmybvVxfXPqEbz7Gvr2vrn1KAdHH7IpX//8yNoD8dcGY+TM6NoF26MxzLTL26Mx0majtM4q5ed7yhNulVsd5WAxqset/mGS6/d5CIBLXI62/7I6ZKyzjUC0rIfsP+hE3zkxt9c8vy7tPnJbiKfuyP+Xdn8ZDeuiMei+zF0juWOGyBNv+iMxw4bEBkl6CzOxmPx6ll0mryWDtb/ViU6z17H4rEYG0I3cMiheByYFEZ34Ew8Dn5UjW7BiXisY/rFDfGYmgWCCwcngXto0q08z1YBSUsy3NWgb5Qe2WSjgJRlfdy2RJPcNXm9bQIarexpsP5VdxHjcbMcm2Q3/5P64i71U8k/ELuLNsVjcct2cnST+rGg+Jo4XmhLPBZ376GOfoOkAIB5NWTHxuu/nzj9ElkA8gLgA+pLlvF43IU4/VI9G1QEAHnIPjfVaP1PnqRdVngKqAkActDMa2Hw/u9zijjjNg5UBcBr1FbD3jbG6h9QSruk8ovfyFESABnUWSNT8VgMI06/lF7aBqomAJ4n3m+G4nHgbeJfZfHljcCKAqDHcWo87m2g/gnE53LhlS+lqQqATv9S4/FL2u//qcT2T34XoAuAdvuJBspf11z/LOKbyYG6q4bqAqDVTqKByjFa21/U6ZfdaWBNADTdTDQQnqSv/pRMYjrZevVLCUUAiF+JBqpnaqv/J2I+zb3mxZwkAMTPDq8ep1A3P/1y3ZOEJABgiaPxuOnvxLN/B7oEwELq/sPl1utvSdz8VPsl6BMAn1AbBKut1t96F+3ENXOFTgFiehXRwAZL8Vi0JW5+qppW7+HIAgDGnyca2G4hHouOh2knvTARdAuAkedsj8cinTj9Ujka9AuAV87YHI/F08TNT2eHgQkB0I/aIDhGmuIU/YnnKxkAZgTAU8SGHC0eDyJufiqKfTKrAqBrPtFAiXo8HlFBO1VBA7ebZQHQifhUVo7H4p2QgQeOdQHQbp8t8Tg4idj+2dPgwJIGAdBqhw3xmDz9EuelQ4cASP3DeDwOziW+ecdbldEiACDbcDxOWkBs/8QNHpoEAPXjLNFMmfpv+IZ4+PjRU5cAWGwwHqcQNz/J2NUmAMgjavHjMfEPTGpvvz4BQH1MrzMkoHoW2CsAppEaBFskemQUA+HJYLcAeJfQINgpNVuvbiA0FuwXAG8qNwh2S07WqxqQ/saPXgEwRDGu7W8te2Q1A6XSH0HWLAD6nVa5zoPS9asZKJb/DLZuAdDzhPx1Hu2gkobkDRQq/J8w7QJAfstevuI3+WQN1F39dkAAtP9H7jpPdFVtiMgZOKC0Z9aAAEiT+mrbScLQjIyBXWngtABokRf/kKefonRF4xvYqrjmYEQApG6Md8SyvrS+eDwDG5QbzUYExL3QMxnUlZGGD5wFbhEADQ7YVwyhr401YCD6LbhHACyK3SA4N9TK6mhMA5EvwE0CYF6sBkFopLXl8exYq9/gLgHwYf3x+PxoqwMC9RoIvw9uE1D/gH3VeOsjItnSq9/OCqhvwL5qAoABA5XU28qsAHjj2tW8mukABgzEXP12WgAMvrpBEPkYwICB2KvfjguAvnUH7GvnARgwUGRhEt24gLoD9tGvAAwYKLDyySzzAqDzpQH76CIAAwYOWtqNYoMAaH9xwP57AAMG9ljbj2SHALhjJyLijwAGDGyzuCPNFgGQuhlxpfw1yR94dfAxi5cmojI/lRyx+rtaX9XDhADr2CVABc//JycWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWIDToH8FyJUWtVWAALedDoFhGIZhGIZhGIZhGIYxyf+YwEMsIhMo/AAAAABJRU5ErkJggg==";l();var ap=new ne,up=new ne,Nu=new ne,SI=new ne,Ao=new ne,ET=.5,IT=2;function CT(e,t,r){let n=e.x-t.x,i=e.y-t.y,a=e.z-t.z,u=r.x-t.x,s=r.y-t.y,d=r.z-t.z,m=n*u+i*s+a*d,f=Math.sqrt(n*n+i*i+a*a),g=Math.sqrt(u*u+s*s+d*d);if(f===0||g===0)return 0;let b=m/(f*g),v=Math.max(-1,Math.min(1,b));return Math.acos(v)}o(CT,"calculateCornerAngle");function AI(e,t=20){if(e.length<3||t<=0)return e;let r=t,n=t/2,i=[e[0]];for(let a=1;a<e.length-1;a++){let u=e[a],s=e[a-1],d=e[a+1],m=u.distanceTo(s),f=u.distanceTo(d);m>r&&(Ao.subVectors(u,s).normalize(),Nu.set(u.x-Ao.x*n,u.y-Ao.y*n,u.z-Ao.z*n),i.push(Nu.clone())),i.push(u),f>r&&(Ao.subVectors(d,u).normalize(),Nu.set(u.x+Ao.x*n,u.y+Ao.y*n,u.z+Ao.z*n),i.push(Nu.clone()))}return i.push(e[e.length-1]),i}o(AI,"reduceEdgeLengths");var wI=.0025;function FI(e,t,r,n=Math.PI*2/3){if(e.length<3||t<=0||r<=0)return e;let i=[e[0]];for(let a=1;a<e.length-1;a++){let u=e[a-1],s=e[a],d=e[a+1],m=s.distanceToSquared(u),f=s.distanceToSquared(d);if(m<wI||f<wI){i.push(s);continue}if(CT(u,s,d)<n){ap.subVectors(s,u).normalize(),up.subVectors(d,s).normalize();let b=Math.sqrt(m),v=Math.sqrt(f),C=Math.max(ET,Math.min(IT,t)),A=Math.min(C,b*.5),x=Math.min(C,v*.5);Nu.set(s.x-ap.x*A,s.y-ap.y*A,s.z-ap.z*A),SI.set(s.x+up.x*x,s.y+up.y*x,s.z+up.z*x),i.push(Nu.clone(),SI.clone())}else i.push(s)}return i.push(e[e.length-1]),i}o(FI,"insertCornerControlPoints");var DT=new Wc;function OI(e,t,r){var jn,ga,ya,Wu;let{breakpoint:n,width:i,accentColor:a,completeFraction:u,isVertical:s,visibleThroughGeometry:d,dashed:m,highlightCompleteFraction:f,highlightStartFraction:g,highlightEndFraction:b,highlightColor:v,highlightWidthMultiplier:C,xrayOpacity:A}=t,{color:x}=r,E=!0,S=0,D=1/0,I=t.displayArrowsOnPath,k=!0,V=I,z=typeof i=="object"?Number(i.output[n])/2:i/2,M=typeof i=="object"?Number((jn=i.output[n+1])!=null?jn:i.output[n])/2:i/2,T=((ga=r.altitude)!=null?ga:0)+ST,Z=0;e[0].z+=T;for(let Me=1;Me<e.length;++Me){e[Me].z+=T;let Ee=e[Me].x-e[Me-1].x,Et=e[Me].z-e[Me-1].z;if(s)Z+=Math.sqrt(Ee*Ee+Et*Et);else{let ba=e[Me].y-e[Me-1].y;Z+=Math.sqrt(Ee*Ee+ba*ba+Et*Et)}}let j=e,W=(ya=t.smoothingCornerRadius)!=null?ya:bi.cornerRadius,$=(Wu=t.smoothingTension)!=null?Wu:bi.tension,q=W>0&&$>0;if(q&&(j=AI(j),j=FI(j,W,$)),!s){let Me=j[0],Ee=j[j.length-1],Et=q?.01:-.01;j.push(Ee.clone().setZ(Ee.z+Et)),j.unshift(Me.clone().setZ(Me.z+Et))}let J=new Wy;V&&(J=DT.load(DI),J.colorSpace=Rc);let G=new Ot(x),ae=new Ot(a),te={vertexes:{type:"f",value:1},resolution:{type:"v2",value:new Ae(1,1)},cameraParameters:{type:"v2",value:new Ae(S,0)},complete:{type:"f",value:E?0:1},color:{type:"c",value:G},pathLength:{type:"f",value:Z},nearRadius:{type:"f",value:z},farRadius:{type:"f",value:M},nearZoom:{type:"f",value:S},farZoom:{type:"f",value:D},pulseColor:{type:"c",value:ae},pulse:{type:"f",value:0},pulseLength:{type:"f",value:.075},pathIsVertical:{type:"b",value:s},arrowAnimationTimer:{type:"f",value:0},arrowTexture:{type:"t",value:J},displayArrowsOnPath:{type:"b",value:I},showPulse:{type:"b",value:k},opacityMultiplier:{type:"f",value:1},dashed:{type:"b",value:m},highlightCompleteFraction:{type:"f",value:f},highlightStartFraction:{type:"f",value:g},highlightEndFraction:{type:"f",value:b},highlightColor:{type:"c",value:new Ot(v)},highlightWidthMultiplier:{type:"f",value:C}};q&&j.length>=2&&(j.unshift(j[0].clone()),j.push(j[j.length-1].clone()));let ee=new e4(j);ee.curveType="catmullrom",ee.tension=$;let le=30,fe=8,xe=le*j.length,be=new r4(ee,xe,z,fe,!1),Oe=new Float32Array(be.attributes.position.count);for(let Me=j.length;Me<Oe.length;Me++)Oe[Me]=Me;be.setAttribute("vertexIndex",new Ar(Oe,1));let Ce=new Float32Array(be.attributes.position.count),ot=new Ar(Ce,1);for(let Me=0;Me<=xe;Me++)for(let Ee=0;Ee<=fe;++Ee)ot.setX(Me*(fe+1)+Ee,Me/xe);be.setAttribute("pathDistance",ot);let Sr=new Float32Array(be.attributes.normal.count*3),wr=new Ar(Sr,3);for(let Me=0;Me<xe;Me++){let Ee=be.tangents[Me];for(let Et=0;Et<=fe;++Et)wr.setXYZ(Me*(fe+1)+Et,Ee.x,Ee.y,Ee.z)}be.setAttribute("pathTangent",wr);let F=new Float32Array(be.attributes.normal.count*3),Y=new Ar(F,3);for(let Me=0;Me<xe;Me++){let Ee=be.tangents[Me];var P,ce,Q;s?(P=Ee.x*Ee.y,ce=-1+Ee.y*Ee.y,Q=Ee.z*Ee.y):(P=-Ee.x*Ee.z,ce=-Ee.y*Ee.z,Q=1-Ee.z*Ee.z);let Et=Math.sqrt(P*P+ce*ce+Q*Q);Et===0&&(Et=1);let ba=P/Et,Uy=ce/Et,Tc=Q/Et;for(let Hi=0;Hi<=fe;++Hi)Y.setXYZ(Me*(fe+1)+Hi,ba,Uy,Tc)}be.setAttribute("pathNormal",Y);let re=new Ji({uniforms:te,vertexShader:op,fragmentShader:xy});re.transparent=!0,re.alphaTest=.5,te.resolution.value.x=1,te.resolution.value.y=1,te.vertexes.value=Oe.length,te.arrowTexture.value.wrapS=Ku,te.arrowTexture.value.wrapT=Ku,te.arrowTexture.value.anisotropy=16;let pe=new Pe(be,re);pe.name="path";let Je=pe.clone();Je.name="xray";let Ft=De(R({},te),{opacityMultiplier:{type:"f",value:A},pathIsVertical:{type:"b",value:s}});Ft.complete.value=1,Je.material=new Ji({uniforms:Ft,vertexShader:op,fragmentShader:xy}),Je.material.transparent=!0,Je.material.alphaTest=.5,Je.material.depthWrite=!1,Je.material.depthTest=!1,Ft.resolution.value.x=1,Ft.resolution.value.y=1,Ft.vertexes.value=Oe.length,Ft.arrowTexture.value.wrapS=Ku,Ft.arrowTexture.value.wrapT=Ku,Ft.arrowTexture.value.anisotropy=16,Ft.complete.value=u,pe.userData=Je.userData=t.mesh.userData;let _t=t.mesh;if(!d){let Me=new Ji({uniforms:te,vertexShader:op,fragmentShader:CI}),Ee=new Pe(be,Me);Ee.name="stencil",Ee.material.colorWrite=!1,Ee.material.stencilWrite=!0,Ee.material.stencilRef=1,Ee.material.stencilFunc=xa,Ee.material.stencilZPass=Gn,Ee.material.stencilZFail=Gn,Ee.material.stencilFail=Gn,Ee.material.depthWrite=!1,Ee.material.depthTest=!1,Ee.userData=t.mesh.userData,_t.add(Ee),_t.add(Je),Je.renderOrder=Jt.XRAY_PATH,pe.renderOrder=Jt.STENCIL_PATH}if(_t.add(pe),s){let Me=new rr().setFromObject(pe),Ee=new ne;Me.getCenter(Ee),_t.children.forEach(Et=>{Et.geometry.center(),Et.position.copy(Ee)})}d&&(pe.material.stencilWrite=!0,pe.material.stencilRef=1,pe.material.stencilFunc=va,pe.material.stencilZPass=$n,pe.material.stencilZFail=$n,pe.material.stencilFail=$n,pe.material.needsUpdate=!0,pe.layers.disableAll(),pe.layers.enable(Jt.ALWAYS_ON_TOP_PATHS)),be.computeBoundingBox();let tr=new ne;return be.boundingBox.getCenter(tr),{mesh:_t,material:re,center:tr}}o(OI,"buildPath");var ST=.15;var wT=.5,Ey=class Ey extends Le{constructor(r,n,i,a){super();h(this,"rendererState");h(this,"verticalDistanceDirty",!0);h(this,"convertTo3DMapPosition");h(this,"getParentContainer");h(this,"convertZoomLevelToAltitude");this.rendererState=r,this.convertTo3DMapPosition=n,this.getParentContainer=i,this.convertZoomLevelToAltitude=a}update(r,n,i){let a=!1;for(let u of this.rendererState.geometry3DsInScene)if(u&&u.type==="path"&&u.components[0].type==="path"){let s=u.components[0],d=u.components[1],m=s.isVertical&&this.verticalDistanceDirty;if(!(s instanceof vo))continue;let f=[];if(s.dirty||d.dirty||m){if(s.mesh.parent!=null)for(let g=s.mesh.children.length-1;g>=0;g--)Nt(s.mesh.children[0]);if(s.feature.features.length===2&&s.feature.features[0].properties.parentId&&s.feature.features[1].properties.parentId){let g=s.feature.features[0],b=s.feature.features[s.feature.features.length-1],v,C,A=g.geometry.coordinates[2]||0,x=b.geometry.coordinates[2]||0;g.properties.parentId&&(v=this.getParentContainer(g.properties.parentId,!0),v!=null&&v.altitude!=null&&(A+=v.altitude,s.isVertical=!0)),b.properties.parentId&&(C=this.getParentContainer(b.properties.parentId,!0),C!=null&&C.altitude!=null&&(x+=C.altitude,s.isVertical=!0));let E=this.convertTo3DMapPosition(g.geometry.coordinates[1],g.geometry.coordinates[0],A),S=this.convertTo3DMapPosition(b.geometry.coordinates[1],b.geometry.coordinates[0],x);Math.abs(E.z-S.z)>wT&&v!=null&&v.visible&&C!=null&&C.visible&&(f=[E,S])}else{let g=s.feature.features;for(let b=0;b<g.length;b++)if(b===0||!A4(g[b].geometry.coordinates,g[b-1].geometry.coordinates)){let v=this.convertTo3DMapPosition(g[b].geometry.coordinates[1],g[b].geometry.coordinates[0],g[b].geometry.coordinates[2]||0);f.push(v)}}if(f.length>1){let{mesh:g,material:b,center:v}=OI(f,s,{color:d.color,altitude:d.altitude,isVertical:s.isVertical});s.mesh=g,s.material=b,s.position=v}s.dirty&&typeof s.width=="object"&&s.width.on==="zoom-level"&&(s.altitudeBreakpoints=s.width.input.map(g=>this.convertZoomLevelToAltitude(g))),s.dirty=!1}d.dirty&&(s.mesh.children.forEach(g=>{g.name!=="stencil"&&(g.material.uniforms.color.value.set(d.color),g.material.visible=d.visible,g.material.needsUpdate=!0)}),s.mesh.position.z=d.altitude,d.dirty=!1),s.material&&(s.mesh.children.forEach(g=>{var v,C,A,x,E,S,D;let b=g.material.uniforms;if(g.name==="stencil"){s.materialDirty&&PI(s,g.material);return}if(s.materialDirty&&g.name==="xray"&&b.opacityMultiplier&&(b.opacityMultiplier.value=s.xrayOpacity),typeof s.width=="object"&&s.width.on==="zoom-level"){s.altitudeBreakpoints&&s.altitudeBreakpoints.length>2&&Se.warn("Path width interpolation does not yet support more than 2 breakpoints! This will be added in a future version. Path width will only use the first two breakpoints.");let I=h4(i,(C=(v=s.altitudeBreakpoints)==null?void 0:v.slice(0,2))!=null?C:[r,n]);s.breakpoint=I,b.nearZoom.value=(x=(A=s.altitudeBreakpoints)==null?void 0:A[I])!=null?x:r,b.farZoom.value=(S=(E=s.altitudeBreakpoints)==null?void 0:E[I+1])!=null?S:n,b.nearRadius.value=Number(s.width.output[I])/2,b.farRadius.value=Number((D=s.width.output[I+1])!=null?D:s.width.output[I])/2}b.cameraParameters.value.x=i,s.materialDirty&&(b.displayArrowsOnPath.value=s.displayArrowsOnPath,b.pulseColor.value.set(s.accentColor),b.complete.value=s.completeFraction,PI(s,g.material),typeof s.width=="number"&&(b.nearZoom.value=r,b.farZoom.value=n,b.nearRadius.value=Number(s.width)/2,b.farRadius.value=Number(s.width)/2))}),s.displayArrowsOnPath&&s.animateArrowsOnPath&&(s.mesh.children.forEach(g=>{g.name!=="stencil"&&(g.material.uniforms.arrowAnimationTimer.value=performance.now()/3e3,g.material.needsUpdate=!0)}),a=!0),s.materialDirty=!1)}this.verticalDistanceDirty=!1,a&&this.publish("animate:path")}};o(Ey,"PathSystem");var bc=Ey;function PI(e,t){let r=t.uniforms;r.highlightCompleteFraction.value=e.highlightCompleteFraction,r.highlightStartFraction.value=e.highlightStartFraction,r.highlightEndFraction.value=e.highlightEndFraction,r.highlightWidthMultiplier.value=e.highlightWidthMultiplier,r.highlightColor.value.set(e.highlightColor)}o(PI,"updateHighlightPathUniforms");l();var zt,Uu,Vi,cp,Iy=class Iy{constructor(t){h(this,"rendererState");h(this,"dirty",!1);L(this,zt);L(this,Uu);L(this,Vi);L(this,cp,new Gr);this.rendererState=t}updateOne(t){if(t instanceof at&&t.components[0]instanceof Lt&&t.components[1]instanceof Kn&&t.parentObject3D instanceof qn&&(K(this,zt,t.components[0]),K(this,Vi,t.components[1]),!c(this,zt).detached&&c(this,zt).shouldDetach&&c(this,zt).mesh!=null&&c(this,zt).material!=null&&c(this,zt).batchedProps!=null)){K(this,Uu,t.parentObject3D),c(this,zt).visible=!1;let r=c(this,Vi).color,n=c(this,Vi).opacity*Oa(t),i=new T4({color:r,side:hi,opacity:n!=null?n:1,transparent:n!==void 0?n<1:!1},1,c(this,zt).material.repeatYFactor),a=new ob(1,c(this,zt).batchedProps.positionCount,0,i),u=M6(c(this,zt),a,c(this,cp));if(u==null)return;a.userData={entities:{0:t.id},detached:!0},c(this,zt).instanceIndex=u,i.setColor(c(this,zt).instanceIndex,new Ot(r),c(this,Vi).topColor?new Ot(c(this,Vi).topColor):new Ot(r)),c(this,zt).mesh=a,c(this,zt).material=i,c(this,Uu).add(a),c(this,zt).shouldDetach=!1,c(this,zt).detached=!0}}update(){if(!this.dirty)return;let t;for(let r of this.rendererState.geometry3DIdsInScene)t=this.rendererState.geometry3DMap.get(r),this.updateOne(t);this.dirty=!1,this.cleanup()}cleanup(){K(this,zt,void 0),K(this,Uu,void 0),K(this,Vi,void 0)}};zt=new WeakMap,Uu=new WeakMap,Vi=new WeakMap,cp=new WeakMap,o(Iy,"MeshDetachmentSystem");var sp=Iy;l();l();function BI(e,t,r){var n;if((n=e.batchedProps)!=null&&n.range&&e.mesh){let i=t||1e-4,a=i/Math.max(r,1e-4);return Nm(e.mesh.geometry,e.batchedProps.range,i,0),e.material&&(e.material.repeatYFactor=a),e.currentHeight=i,!0}return!1}o(BI,"updateHeight");function MI(e,t,r,n,i,a){return e.mesh&&e.instanceIndex!==-1?(e.mesh.getMatrixAt(e.instanceIndex,r),r.decompose(n,i,a),n.z=t,r.compose(n,i,a),e.mesh.setMatrixAt(e.instanceIndex,r),e.altitude=t,!0):!1}o(MI,"updateAltitude");var Nn,fi,dp,mp,pp,fp,Cy=class Cy{constructor(t){h(this,"rendererState");h(this,"dirty",!1);L(this,Nn);L(this,fi);L(this,dp,new Gr);L(this,mp,new ne);L(this,pp,new jc);L(this,fp,new ne);this.rendererState=t}updateOne(t){var r;if(t instanceof at&&t.type==="geometry"&&((r=t.components[1])!=null&&r.dirty)&&(K(this,Nn,t.components[0]),K(this,fi,t.components[1]),t.type==="geometry")){let n=!1;c(this,fi).height!==c(this,Nn).currentHeight&&(n=BI(c(this,Nn),c(this,fi).height,c(this,fi).initialHeight)),c(this,fi).altitude!==c(this,Nn).altitude&&(n=MI(c(this,Nn),c(this,fi).altitude,c(this,dp),c(this,mp),c(this,pp),c(this,fp))),n&&c(this,Nn).mesh!=null&&c(this,Nn).mesh.computeBoundingSphere()}}update(){for(let t of this.rendererState.geometry3DsInScene)this.updateOne(t);this.cleanup()}cleanup(){K(this,Nn,void 0),K(this,fi,void 0)}};Nn=new WeakMap,fi=new WeakMap,dp=new WeakMap,mp=new WeakMap,pp=new WeakMap,fp=new WeakMap,o(Cy,"MeshModificationSystem");var lp=Cy;l();var AT={showPolygonLabelTextAreaMesh:!1,showEnvMap:!1,showCollisionBoxes:!1},Dy=class Dy{constructor(t){h(this,"state",AT);h(this,"core");this.core=t}update(t){let r={};for(let[n,i]of Object.entries(t))n in this.state&&this.state[n]!==t[n]&&(this.state[n]=i,r[n]=i);this.handleUpdate(r)}handleUpdate(t){t.showPolygonLabelTextAreaMesh!=null&&(t.showPolygonLabelTextAreaMesh?this.core.getSystems().text3DSystem.showTextAreaMesh():this.core.getSystems().text3DSystem.hideTextAreaMesh()),t.showEnvMap!=null&&(t.showEnvMap?this.core.setEnvironment("basic"):this.core.setEnvironment(!1)),t.showCollisionBoxes!=null&&(t.showCollisionBoxes?(this.core.getSystems().collisionSystem.showCollisionBoxes(),this.core.render()):this.core.getSystems().collisionSystem.hideCollisionBoxes())}};o(Dy,"Debug");var hp=Dy;l();var vc=9,FT=!1,TI=.1;function OT(e,t,r){for(let n=0;n<t;n++){let i=(r&16711680)>>16,a=(r&65280)>>8,u=r&255;e[n*3]=i/255,e[n*3+1]=a/255,e[n*3+2]=u/255}}o(OT,"fillArrayWithColor");var Sy=class Sy{constructor(t,r,n){h(this,"state");h(this,"renderer");h(this,"renderService");h(this,"pickingTexture");h(this,"pickingMaterial");h(this,"pixelBuffer");h(this,"width",0);h(this,"height",0);h(this,"scale",1/2);h(this,"color",1);h(this,"convertTo3DMapPosition");h(this,"destroyed",!1);h(this,"enabled",!1);h(this,"backgroundId",16777215);h(this,"resize",o(()=>{let t=this.state.pixelRatio;this.width=Math.floor(this.renderer.domElement.width/t*this.scale),this.height=Math.floor(this.renderer.domElement.height/t*this.scale),this.pixelBuffer=new Uint8Array(4*this.width*this.height),this.pickingTexture=new Ky(this.width,this.height,{format:Gy,type:$y,internalFormat:"RGBA"})},"resize"));h(this,"shouldShowByXY",o((t,r,n)=>{if(this.pixelBuffer==null)return!1;let i=t+(this.height-r-1)*this.width,a=this.pixelBuffer[i*4],u=this.pixelBuffer[i*4+1],s=this.pixelBuffer[i*4+2],d=a<<16|u<<8|s;return d===n||d===this.backgroundId},"shouldShowByXY"));h(this,"activeOccluders",new Set);h(this,"update",o(()=>{if(!this.enabled||this.destroyed||(this.activeOccluders.clear(),this.activeOccluders.add(this.backgroundId),!this.pickingTexture||!this.pixelBuffer))return;let t,r;for(let i of this.state.geometry3DsInScene)if((i==null?void 0:i.type)==="group-container"&&i.userData.occluderFeature!=null&&i.userData.occluderId!=null&&(this.activeOccluders.add(i.userData.occluderId),i.userData.occluderDirty)){if(t=i.userData.occluderFeature,t.geometry.type==="Polygon"&&t.geometry.coordinates.length>0){let a=xm(t,this.convertTo3DMapPosition,{color:"white",height:TI});r=this.createOccluderMesh(a,i.userData.occluderId),i.add(r)}else if(t.geometry.type==="MultiPolygon"){let a=Em(t,this.convertTo3DMapPosition,{color:"white",height:TI});r=this.createOccluderMesh(a,i.userData.occluderId),i==null||i.add(r)}i.userData.occluderDirty=!1}this.renderer.setRenderTarget(this.pickingTexture);let n=new Ot(this.backgroundId);this.renderer.setClearColor(n),this.renderer.clear(),this.state.cameraObject.layers.disableAll(),this.state.cameraObject.layers.enable(vc),this.renderService.renderScene(this.state.geometryScene.parent,this.state.cameraObject),this.renderer.setRenderTarget(null),this.state.cameraObject.layers.disable(vc),FT?this.renderService.enabledLayers.add(vc):this.renderService.enabledLayers.delete(vc),this.renderer.readRenderTargetPixelsAsync(this.pickingTexture,0,0,this.width,this.height,this.pixelBuffer).then(()=>{if(!this.destroyed)for(let i of this.state.geometry2DsInScene){let a=i==null?void 0:i.components[2];if(i&&(a==null?void 0:a.id)!=null&&this.activeOccluders.has(a.id)&&(a!=null&&a.enabled)){let u=i.components[0].projection,s=Math.floor(u.x*this.scale),d=Math.floor(u.y*this.scale),m=this.shouldShowByXY(s,d,a.id);i.components[0].isOccluded=!m}else i&&a&&!a.enabled&&(i.components[0].isOccluded=!1)}}).catch(i=>{this.destroyed||Se.error(i)})},"update"));if(this.state=t,this.convertTo3DMapPosition=r,(n==null?void 0:n.renderer)==null)throw new Error("No Renderer");this.renderService=n,this.renderer=n.renderer,this.resize(),this.pickingMaterial=new Ji({glslVersion:Vy,vertexShader:"\n attribute vec3 color;\n varying vec3 vColor;\n void main() {\n vColor = color;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }\n ",fragmentShader:"\n varying vec3 vColor;\n out vec4 fragColor;\n\n void main() {\n fragColor = vec4(vColor, 1.0);\n }\n "})}applyId(t,r){let n=t.attributes.position,i=new Float32Array(n.count*3);OT(i,n.count,r),t.setAttribute("color",new Ar(i,3))}createOccluderMesh(t,r){let n=new Pe(t,this.pickingMaterial);return n.layers.set(vc),this.applyId(n.geometry,r),n.userData.occluderId=r,n}reserveOccluderId(){return this.color++,this.color}enable(){this.enabled=!0}disable(){this.enabled=!1}destroy(){var t;this.destroyed=!0,(t=this.pickingTexture)==null||t.dispose(),this.pickingMaterial.dispose(),this.pickingTexture=void 0,this.pixelBuffer=void 0}};o(Sy,"Occlusion2DSystem");var gp=Sy;l();var wy=class wy{constructor(t){this.state=t;h(this,"dirty",!0)}update(){var t;if(this.dirty){for(let r of this.state.geometry3DIdsInScene){let n=this.state.geometry3DMap.get(r);if(n instanceof at&&n.type==="geometry"&&((t=n.components[0])==null?void 0:t.geometry)!=null){let i=n.components[0];i.geometry&&(i.geometry.dispose(),i.geometry=void 0)}}this.dirty=!1}}};o(wy,"GeometryDisposalSystem");var yp=wy;l();var Ay=class Ay extends Le{constructor(r){super();h(this,"dirty",!0);h(this,"state");h(this,"texturePromiseCache",new Map);this.state=r}async loadTexture(r){if(this.texturePromiseCache.has(r))return this.texturePromiseCache.get(r);let n=new Promise((i,a)=>{Eo.getLoader().load(r,i,void 0,a)});return this.texturePromiseCache.set(r,n),n}update(){for(let r of this.state.geometry3DsInScene){if(!(r instanceof at))continue;let n=r.components[6];if(!(n instanceof Ro))continue;let i=r.components[0];if(!(i instanceof Lt)||!n.dirty)continue;let a=zi(i);a!=null&&(n.texture!=null&&(n.texture.path===""?(a.texture=null,a.hideTextures(i.instanceIndex),n.dirty=!1):this.loadTexture(n.texture.path).then(u=>{u&&(n.textureInstance=u,a.texture=u,a.blendTexture=!0,a.showTextures(i.instanceIndex)),this.publish("texture-added")})),n.topTexture!=null&&(n.topTexture.path===""?(a.topTexture=null,a.hideTextures(i.instanceIndex),n.dirty=!1):this.loadTexture(n.topTexture.path).then(u=>{u&&(n.topTextureInstance=u,a.topTexture=u,a.blendTexture=!0,a.showTextures(i.instanceIndex)),this.publish("texture-added")})),n.dirty=!1)}}destroy(){this.texturePromiseCache.forEach(async r=>{(await r).dispose()}),this.texturePromiseCache.clear()}};o(Ay,"TextureSystem");var bp=Ay;l();var Fy=class Fy{constructor(t){h(this,"currentOrder",Jt.ALWAYS_ON_TOP_MODELS);h(this,"assignedOrders",new WeakMap);h(this,"state");this.state=t}assignOrder(t){return this.assignedOrders.has(t)?this.assignedOrders.get(t):(this.currentOrder+=1,this.assignedOrders.set(t,this.currentOrder),this.currentOrder)}releaseOrder(t){return this.assignedOrders.delete(t),Jt.GEOMETRY}getHighestOrder(){return this.currentOrder}getOrder(t){return this.assignedOrders.get(t)}update(){var n;let t,r;for(let i of this.state.geometry3DsInScene)if(i&&i.type==="model"&&(n=i.components[1])!=null&&n.dirty)if(t=i.components[1],r=i.components[0],t.visibleThroughGeometry===!0){let a=this.assignOrder(r);r.renderOrder!==a&&(r.renderOrder=a)}else r.renderOrder>Jt.GEOMETRY&&(r.renderOrder=this.releaseOrder(r))}};o(Fy,"RenderOrderSystem");var vp=Fy;l();var Oy=class Oy{constructor(t){h(this,"state");this.state=t}applyMask(t,r,n){this.disableMask(t,r),n.mode==="mask"&&n.maskId!=null&&n.enabled?this.enableMaskProducer(t,r,n):n.mode==="masked-object"&&n.maskId!=null&&n.enabled&&this.enableMaskReciever(t,n)}update(){let t;for(let r of this.state.geometry3DsInScene)(r==null?void 0:r.type)==="geometry-group"&&(!cc(r,this.state)||Rm(r)&&cc(r,this.state))&&(t=r.components[0],t!=null&&t.dirty&&r.userData&&(r.traverse(n=>{(n instanceof Pe||n instanceof To)&&n.material instanceof Jy&&t!=null&&!n.userData.detached&&(this.disableMask(n.material,n),this.applyMask(n.material,n,t))}),t.dirty=!1))}enableMaskProducer(t,r,n){t.stencilWrite=!0,t.colorWrite=!1,t.stencilRef=n.maskId,t.stencilFunc=xa,t.stencilZPass=Gn,t.stencilZFail=$n,t.stencilFail=$n,t.needsUpdate=!0,t.depthWrite=!1,r.layers.disableAll(),r.layers.set(Jt.MASKS)}enableMaskReciever(t,r){t.stencilWrite=!0,t.stencilRef=r.maskId,t.stencilFunc=r.effect==="reveal"?Zy:va,t.stencilZPass=$n,t.stencilZFail=$n,t.stencilFail=$n,t.needsUpdate=!0}disableMask(t,r){t.stencilWrite=!1,t.colorWrite=!0,t.needsUpdate=!0,r.layers.disableAll(),r.layers.set(Jt.GEOMETRY)}};o(Oy,"MaskingSystem");var xp=Oy;l();var kI=1e4,Py=class Py{constructor(t){h(this,"rendererState");h(this,"dirty",!1);this.rendererState=t}update(){var n;let t,r;for(let i of this.rendererState.geometry3DsInScene)if(r=i.components[0],t=i.components[7],i.type==="model"&&t!=null&&(t.dirty&&r.mesh!=null&&(t==null?void 0:t.verticalOffset)!==1/0&&(t.plane==null&&(t.plane=new Yy(new ne(0,0,-1),t.verticalOffset),this.process(r,t)),t.plane.constant!==t.verticalOffset&&(t.plane.constant=t.verticalOffset),t.topColor!=null&&((n=t.holeFillMesh)==null?void 0:n.material)instanceof qu&&t.holeFillMesh.material.color.set(t.topColor),t.topVisible!=null&&t.holeFillMesh!=null&&(t.holeFillMesh.visible=t.topVisible),t.dirty=!1),t.plane!=null&&t.holeFillMesh!=null&&t.topVisible===!0)){let a=t.plane,u=t.holeFillMesh;a.coplanarPoint(u.position),u.lookAt(u.position.x-a.normal.x,u.position.y-a.normal.y,u.position.z-a.normal.z)}}process(t,r){var b;if(t.mesh==null)return;let n=t.mesh.parent,i=[];t.mesh.traverse(v=>{if(v instanceof Pe){let C=v.geometry.clone();v.updateWorldMatrix(!0,!1),C.applyMatrix4(v.matrixWorld),i.push(C),C.computeVertexNormals(),v.material.clippingPlanes=[r.plane],v.material.transparent=!1}});let a=en(i),u=new $c,s=new $c,d=this.createHoleFillGeometry(a,r.plane,1);d.name="hole-fill-group";let m=new qu({color:(b=r.topColor)!=null?b:"#E67B5B",clippingPlanes:[],stencilWrite:!0,stencilFunc:va,stencilFail:Gn,stencilZFail:Gn,stencilZPass:Gn}),f=new Cn(kI,kI),g=new Pe(f,m);g.name="hole-fill-mesh",r.holeFillMesh=g,g.renderOrder=1.1,s.add(d),s.add(t.mesh),u.add(s),u.add(g),n==null||n.add(u),t.mesh=u}createHoleFillGeometry(t,r,n=0){let i=new $c,a=new fr;a.depthWrite=!1,a.depthTest=!1,a.colorWrite=!1,a.stencilWrite=!0,a.stencilFunc=xa;let u=a.clone();u.side=Hu,u.clippingPlanes=[r],u.stencilFail=Nc,u.stencilZFail=Nc,u.stencilZPass=Nc;let s=new Pe(t,u);s.renderOrder=n,i.add(s);let d=a.clone();d.side=Bo,d.clippingPlanes=[r],d.stencilFail=Uc,d.stencilZFail=Uc,d.stencilZPass=Uc;let m=new Pe(t,d);return m.renderOrder=n,i.add(m),i}};o(Py,"ClippingPlaneSystem");var Ep=Py;l();var By=class By{constructor(){h(this,"plugins",new Set)}registerPlugin(t){this.plugins.add(t)}unregisterPlugin(t){this.plugins.delete(t)}update(t){for(let r of this.plugins)r.update(t)}};o(By,"PluginSystem");var Ip=By;l();var My=class My{constructor(t){h(this,"type","occlusion2d");h(this,"enabled",!0);h(this,"id");this.id=t}};o(My,"Occlusion2DComponent");var Cp=My;var _I=new Vn;var{DEFAULT_PITCH:r6,DEFAULT_BEARING:n6,DEFAULT_ZOOM_LEVEL:i6,DEFAULT_MIN_ZOOM_LEVEL:BT,DEFAULT_MAX_ZOOM_LEVEL:MT}=vn,TT=Te.radToDeg(.6435011087932844),vt,xt,sa,xc,ju,Fo,ca,zu,pr,ky,B,En,la,Ye,Un,At,In,Kt,O,Ec,qt,dt,LI,RI,NI,Wi,Ic,Cc,Dc,Sc,$u,Dp,wc,Gu,Ac,da,_y,ma,Fc,Oc,_r,Lr,Ly,Sp,wp,Zu,Pc,Ry=class Ry extends Le{constructor(r,n={}){var b,v,C,A,x,E,S,D,I,k,V,z,M,T,Z,j;super();L(this,pr);h(this,"options");h(this,"container");h(this,"Debug");L(this,vt);L(this,xt);L(this,sa);L(this,xc);L(this,ju);L(this,Fo);L(this,ca);L(this,zu);h(this,"rendererDomElement");L(this,B,{geometry3DMap:new Map,geometry2DMap:new Map,geometry2DIdsInScene:new Set,geometry3DIdsInScene:new Set,geometryGroupIdsToLoad:new Set,geometry3DsInScene:new Set,geometry2DsInScene:new Set,geometryScene:new nr("__scene"),hoverColor:"#f6efff",text3dHoverColor:"white",insetsPadding:Qc,shouldMeasureCanvas:!0,pixelRatio:this.resolutionScale,canvasWidth:0,canvasHeight:0,internalTweenGroup:new tm,externalTweenGroup:new tm,cameraObject:new Pp,naturalBearing:0,containerOffset:[0,0],useStandaloneCamera:!1,directionalLight:new Hc(16777215,.3*Math.PI),ambientLight:new n4(16777215,.741*Math.PI),renderer:void 0,threeJSScene:new Xi});L(this,En,{});L(this,la,new AbortController);h(this,"camera");L(this,Ye);L(this,Un);L(this,At);L(this,In);L(this,Kt);L(this,O,{});L(this,Ec,window.matchMedia("screen and (min-resolution: 2dppx)"));h(this,"map");L(this,qt,o(()=>{var r;this.aborted||!((r=c(this,O))!=null&&r.renderSystem)||(c(this,O).renderSystem.twoDdirty=!0)},"#invalidate2DEntities"));L(this,dt,o(()=>{var r;this.aborted||!((r=c(this,O))!=null&&r.renderSystem)||(c(this,O).renderSystem.threeDdirty=!0)},"#invalidate3DEntities"));L(this,Wi,"standalone");L(this,Ic,o(()=>{c(this,O).geometryDisposalSystem.dirty=!0,this.render()},"#setGeometryDisposalDirty"));L(this,Cc,o(r=>Math.trunc(r*10)/10,"#round10"));L(this,Dc,o(()=>{pt(this,pr,ky).call(this,Qu()),c(this,O).twoDDrawSystem.dirty=!0,c(this,$u).call(this,void 0,void 0,!0)},"#handlePixelRatioChange"));L(this,Sc,o(()=>{c(this,$u).call(this)},"#handleWindowResizeWithEvent"));L(this,$u,o((r,n,i=!1)=>{let a=r!=null?r:this.rendererDomElement.clientWidth,u=n!=null?n:this.rendererDomElement.clientHeight;if((a===0||u===0)&&!i)return;c(this,B).canvasWidth=a,c(this,B).canvasHeight=u,pt(this,pr,ky).call(this,Qu()),c(this,da).call(this),pt(this,pr,NI).call(this),c(this,O).cameraSystem.resize(this.canvasWidth,this.canvasHeight),c(this,O).cameraSystem.dirty=!0,this.map!=null&&(this.map.setMinZoom(this.camera.minZoomLevel),this.map.setMaxZoom(this.camera.maxZoomLevel)),c(this,O).watermarkSystem.resize(this.canvasWidth,this.canvasHeight),c(this,O).htmlControlsSystem.resize(this.canvasWidth),c(this,O).geometryInFocusSystem.resize(),c(this,O).occlusion2DSystem.resize();let{top:s,left:d}=this.container.getBoundingClientRect();c(this,B).containerOffset=[s,d],this.publish("resize"),this.render()},"#handleWindowResize"));L(this,Dp,o(()=>{this.renderSync()},"#renderFull"));L(this,wc,new ne);L(this,Gu,o((r,n)=>{let i=this.mode==="standalone"?c(this,xt):this.viewCamera;if(c(this,xt).position.z+this.camera.elevation>n.z){c(this,wc).copy(n);let a=c(this,wc).project(i),u=(a.x+1)/2*this.canvasWidth-0/2,s=(-a.y+1)/2*this.canvasHeight-0/2,d=c(this,Cc).call(this,u),m=c(this,Cc).call(this,s);r.x=d,r.y=m}else r.x=-1e3,r.y=-1e3},"#project"));L(this,Ac,o((r,n)=>{c(this,Kt).setBufferSize(r,n),c(this,xt).aspect=r/n,c(this,xt).updateProjectionMatrix(),c(this,xt).updateMatrixWorld(!0),c(this,ju).x=r,c(this,ju).y=n},"#setBufferSize"));L(this,da,o(()=>{var u;let r=c(this,B).canvasWidth=this.rendererDomElement.clientWidth,n=c(this,B).canvasHeight=this.rendererDomElement.clientHeight,i=Math.floor(r*this.resolutionScale),a=Math.floor(n*this.resolutionScale);c(this,Ac).call(this,i,a),(u=this.map)==null||u.resize(),c(this,B).shouldMeasureCanvas=!1},"#measureCanvas"));h(this,"getParentContainer",o((r,n=!0)=>{if(!r)return n?c(this,B).geometryScene:void 0;if(typeof r=="string"||typeof r=="number"){let i=c(this,B).geometry3DMap.get(r);return i instanceof nr?i:(Se.warn("Parent (".concat(typeof r=="object"?r.id:r,") is not a valid container, adding to scene")),n?c(this,B).geometryScene:void 0)}else if(r.type==="group-container"){let i=c(this,B).geometry3DMap.get(r.id);if(i instanceof nr)return i}return n?c(this,B).geometryScene:void 0},"getParentContainer"));h(this,"showCollisionBoxes",o(()=>{c(this,O).collisionSystem.showCollisionBoxes(),this.render()},"showCollisionBoxes"));h(this,"hideCollisionBoxes",o(()=>{c(this,O).collisionSystem.hideCollisionBoxes(),this.render()},"hideCollisionBoxes"));h(this,"projectScreenXYToCoordinate",o((r,n,i=!1)=>{var g,b;let a=this.container.getBoundingClientRect(),u=(r-a.left)/c(this,B).canvasWidth*2-1,s=-((n-a.top)/c(this,B).canvasHeight)*2+1,d=new Ae(u,s),m,f;if(i)_I.setFromCamera(d,c(this,xt)),m=(g=_I.intersectObject(c(this,Fo),!1)[0])==null?void 0:g.point;else{let v=c(this,O).interactionSystem.getThreeDIntersectsFromXY(d);m=(b=v==null?void 0:v[0])==null?void 0:b.point,f=c(this,O).interactionSystem.getGroupContainerIntersectsFromXY(d)}if(m)return{coordinate:this.convert3DMapPositionToCoordinate(m),groupContainers:f}},"projectScreenXYToCoordinate"));h(this,"projectCoordinateToScreenXY",o(r=>{let n=this.convertTo3DMapPosition(r[1],r[0],r[2]||0),i=new Ae;return c(this,Gu).call(this,i,n),{x:i.x,y:i.y}},"projectCoordinateToScreenXY"));h(this,"convert3DMapPositionToCoordinate",o(r=>{var a,u,s,d;let{lat:n,lon:i}=el((u=(a=c(this,B).center)==null?void 0:a[1])!=null?u:0,(d=(s=c(this,B).center)==null?void 0:s[0])!=null?d:0,r.x,r.y);return[i,n,r.z]},"convert3DMapPositionToCoordinate"));h(this,"setBackgroundColor",o((r,n)=>{c(this,Kt).setBackgroundColor(r,n)},"setBackgroundColor"));h(this,"getMetersPerPixel",o(()=>c(this,O).cameraSystem.getCurrentMetersPerPixel(),"getMetersPerPixel"));h(this,"hideOutdoorLayersIntersectingPolygons",o((r,n)=>{c(this,O).outdoorLayersSystem.hideLayersIntersectingPolygons(r,n),this.render()},"hideOutdoorLayersIntersectingPolygons"));L(this,ma,new Gc);L(this,Fc,new Gr);L(this,Oc,o(r=>{var n;Se.error("Render failed: ",r,(n=r.stack)!=null?n:"No stack trace available"),this.publish("render-error",{error:r})},"#onRenderError"));h(this,"render",o(()=>{var r;if(!(((r=c(this,O))==null?void 0:r.renderSystem)==null||this.aborted))if(this.map&&(this.mode==="outdoors-interleaved"||this.mode==="outdoors-overlay"))this.map.triggerRepaint();else return c(this,O).renderSystem.update().catch(c(this,Oc))},"render"));h(this,"renderSync",o(()=>this.aborted?Promise.resolve():c(this,O).renderSystem.update(!0).catch(c(this,Oc)),"renderSync"));L(this,_r,Sa(()=>{this.publish("user-interaction-start",void 0)},0,!0));L(this,Lr,Sa(()=>{this.publish("user-interaction-end",void 0),this.render()},0,!0));h(this,"on",o((r,n)=>{this.aborted||(super.on(r,n),["outdoor-view-loaded","outdoor-style-loaded"].includes(r)&&this.mode==="standalone"&&y.env.NODE_ENV!=="test"&&(Se.warn('"'.concat(r,'" was subscribed to but outdoor view is disabled. The event has been triggered immediately. Enable outdoor view or remove the listener.')),this.publish(r)))},"on"));h(this,"off",o((r,n)=>{super.off(r,n)},"off"));h(this,"getCursor",o(()=>c(this,O).interactionSystem.getCursor(),"getCursor"));L(this,Sp,o(()=>{if(c(this,B).geometryScene.removeEventListener("childadded",c(this,dt)),c(this,B).geometryScene.removeEventListener("childadded",c(this,qt)),c(this,B).geometryScene.removeEventListener("childremoved",c(this,dt)),c(this,B).geometryScene.removeEventListener("childremoved",c(this,qt)),window.removeEventListener("resize",c(this,Sc),!1),c(this,Ec).removeEventListener("change",c(this,Dc)),this.map){for(let r in c(this,En))for(let n of c(this,En)[r])this.map.off(r,n);K(this,En,{})}this._subscribers={}},"#cleanupEventListeners"));L(this,wp,o(()=>{try{c(this,Wi)!=="outdoors-overlay"&&(this.map&&this.map.remove(),this.container&&this.rendererDomElement&&this.container.contains(this.rendererDomElement)&&this.container.removeChild(this.rendererDomElement)),this.container&&(c(this,In)&&this.container.contains(c(this,In))&&this.container.removeChild(c(this,In)),c(this,Ye)&&this.container.contains(c(this,Ye))&&this.container.removeChild(c(this,Ye)))}catch(r){Se.warn("Error during DOM cleanup, some elements may not have been removed:",r)}},"#cleanupDOMElements"));h(this,"destroy",o(()=>{var r,n;c(this,O)&&(c(this,O).textureSystem.destroy(),this.aborted||c(this,la).abort(),c(this,Sp).call(this),(r=globalThis.MappedinDebug)!=null&&r.__idleCallbackInteractionState&&(globalThis.MappedinDebug.__idleCallbackInteractionState.unregisterInteractionChecker(c(this,O).cameraSystem.isUserInteracting),globalThis.MappedinDebug.__idleCallbackInteractionState.unregisterInteractionChecker(c(this,O).cameraSystem.isCameraMoving)),this.remove("__scene"),c(this,O).renderSystem.destroy(),c(this,O).cameraSystem.dispose(),c(this,O).exporterSystem.destroy(),c(this,O).outdoorLayersSystem.destroy(),c(this,O).borderSystem.destroy(),c(this,ca)&&c(this,ca).disconnect(),c(this,Kt).destroy(),(n=c(this,vt))==null||n.traverse(i=>{Nt(i),"dispose"in i&&typeof i.dispose=="function"&&i.dispose()}),K(this,vt,void 0),c(this,O).htmlControlsSystem.destroy(),c(this,O).collisionSystem.destroy(),c(this,O).interactionSystem.destroy(),c(this,O).domMutationSystem.destroy(),c(this,O).geometryInFocusSystem.destroy(),c(this,O).occlusion2DSystem.destroy(),K(this,O,void 0),c(this,wp).call(this),K(this,Kt,void 0))},"destroy"));L(this,Zu,new ne);L(this,Pc,new ne);if(K(this,la,new AbortController),c(this,B).useStandaloneCamera=(b=n.useStandaloneCamera)!=null?b:!1,c(this,B).naturalBearing=(v=n.naturalBearing)!=null?v:0,this.convertTo3DMapPosition=this.convertTo3DMapPosition.bind(this),!r.clientWidth||!r.clientHeight)throw new Error("[MappedinJS] Container width and height must be greater than 0");this.convertTo3DMapPosition=this.convertTo3DMapPosition.bind(this),(n.mode==="outdoors-interleaved"||n.mode==="outdoors-overlay")&&n.map&&(K(this,Wi,n.mode),this.map=n.map),c(this,B).geometryScene.addEventListener("childadded",()=>{c(this,dt).call(this),c(this,qt).call(this)}),c(this,B).geometryScene.addEventListener("childremoved",()=>{c(this,dt).call(this),c(this,qt).call(this)}),c(this,B).geometry3DMap.set(c(this,B).geometryScene.userData.entityId,c(this,B).geometryScene),n.center&&(c(this,B).center=n.center?[...n.center]:[0,0]),this.options=n,this.container=r,pt(this,pr,LI).call(this),pt(this,pr,RI).call(this),c(this,O).htmlControlsSystem=new em(this.container,{outdoorEnabled:!!this.map}),c(this,O).maskingSystem=new xp(c(this,B)),c(this,Wi)!=="outdoors-overlay"&&c(this,O).htmlControlsSystem.addAttributionControl(this.options.attribution),window.MappedinDebug||(window.MappedinDebug={}),y.env.NODE_ENV==="test"&&(window.MappedinDebug.mapViewCoreInstance=this),K(this,Kt,new cl({antialias:typeof n.antialias=="boolean"?n.antialias:!0,alpha:!1,canvas:this.mode!=="standalone"?(C=n.gl)==null?void 0:C.canvas:void 0,onWebGLContextCreationError:n.onWebGLContextCreationError,onWebGLContextLost:n.onWebGLContextLost,onWebGLContextRestored:o(W=>{var $;($=n.onWebGLContextRestored)==null||$.call(n,W),c(this,qt).call(this),c(this,dt).call(this),this.render()},"onWebGLContextRestored"),onWebGLRendererError:n.onWebGLRendererError,backgroundColor:n.backgroundColor||"#ffffff",backgroundAlpha:(A=n.backgroundAlpha)!=null?A:1})),c(this,B).renderer=c(this,Kt).renderer,K(this,vt,c(this,B).threeJSScene),c(this,vt).matrixWorldAutoUpdate=!1,c(this,Wi)!=="standalone"&&c(this,vt).add(F4()),c(this,vt).add(c(this,B).geometryScene);let i=window.__THREE_DEVTOOLS__;y.env.NODE_ENV==="dev"&&typeof i<"u"&&(i.dispatchEvent(new CustomEvent("observe",{detail:c(this,vt)})),i.dispatchEvent(new CustomEvent("observe",{detail:c(this,Kt)}))),K(this,xt,new Pp(TT,this.aspect,50,1e5)),c(this,B).cameraObject=c(this,xt),K(this,xc,new Xy),c(this,xt).renderOrder=999;let a=new Mo;a.add(c(this,xt)),K(this,zu,new Mo),c(this,zu).add(a),c(this,vt).add(c(this,zu)),c(this,xt).updateProjectionMatrix(),c(this,xt).updateMatrixWorld(!0),this.referenceMap={scale:1,latitude:0,longitude:0,getNorth:o(()=>0,"getNorth"),georeference:[{target:{x:0,y:0}},{target:{x:0,y:0}},{target:{x:0,y:0}},{target:{x:0,y:0}}]},this.rendererDomElement=c(this,Kt).domElement(),K(this,ju,new Ae);let u=new Cn(1e6,1e6),s=new fr({color:0,visible:!1});K(this,Fo,new Pe(u,s)),c(this,Fo).name="worldPlane",c(this,vt).add(c(this,Fo)),(x=n.gl)!=null&&x.canvas||r.appendChild(this.rendererDomElement),window.addEventListener("resize",c(this,Sc),!1),c(this,Ec).addEventListener("change",c(this,Dc)),typeof ResizeObserver=="function"&&((E=y.env)==null?void 0:E.NODE_ENV)!=="test"&&(K(this,ca,new ResizeObserver(wa(W=>{c(this,$u).call(this,W[0].contentRect.width,W[0].contentRect.height)},50))),(S=c(this,ca))==null||S.observe(r)),r.classList.add("mappedin-map"),this.rendererDomElement.style.width=(D=globalThis.MappedinDebug)!=null&&D.TEST_IOS?"1080px":"100%",this.rendererDomElement.style.height=(I=globalThis.MappedinDebug)!=null&&I.TEST_IOS?"1920px":"100%",y.env.NODE_ENV==="test"&&this.rendererDomElement.setAttribute("data-testid","mappedin-canvas"),this.mode!=="outdoors-overlay"&&this.rendererDomElement.tabIndex!==void 0&&this.rendererDomElement.removeAttribute("tabindex"),c(this,B).canvasWidth=this.rendererDomElement.clientWidth,c(this,B).canvasHeight=this.rendererDomElement.clientHeight,this.rendererDomElement.style.touchAction="manipulation";let d=this.canvasWidth,m=this.canvasHeight;c(this,O).watermarkSystem=new Mm(c(this,xt),c(this,B),n==null?void 0:n.watermark),c(this,O).watermarkSystem.on("texture-loaded",this.render),c(this,B).shouldMeasureCanvas=!0,c(this,B).pixelRatio=this.resolutionScale,c(this,Ac).call(this,Math.floor(d*this.resolutionScale),Math.floor(m*this.resolutionScale)),c(this,B).directionalLight.position.set(-150,-150,350),c(this,vt).add(c(this,B).directionalLight),c(this,vt).add(c(this,B).ambientLight),c(this,O).cameraSystem=new Au(c(this,xt),c(this,vt),c(this,Kt).renderer,c(this,B),{mode:this.mode,canvasHeight:m,canvasWidth:d}),(k=globalThis.MappedinDebug)!=null&&k.__idleCallbackInteractionState&&(globalThis.MappedinDebug.__idleCallbackInteractionState.registerInteractionChecker(c(this,O).cameraSystem.isUserInteracting),globalThis.MappedinDebug.__idleCallbackInteractionState.registerInteractionChecker(c(this,O).cameraSystem.isCameraMoving)),c(this,O).cameraSystem.on("user-dolly-start",c(this,_r)),c(this,O).cameraSystem.on("user-pan-start",c(this,_r)),c(this,O).cameraSystem.on("user-rotate-start",c(this,_r)),c(this,O).cameraSystem.on("user-zoom-start",c(this,_r)),c(this,O).cameraSystem.on("user-tilt-start",c(this,_r)),c(this,O).cameraSystem.on("user-pedestal-start",c(this,_r)),c(this,O).cameraSystem.on("user-dolly-end",c(this,Lr)),c(this,O).cameraSystem.on("user-pan-end",c(this,Lr)),c(this,O).cameraSystem.on("user-rotate-end",c(this,Lr)),c(this,O).cameraSystem.on("user-zoom-end",c(this,Lr)),c(this,O).cameraSystem.on("user-tilt-end",c(this,Lr)),c(this,O).cameraSystem.on("user-pedestal-end",c(this,Lr)),c(this,O).cameraSystem.on("change",()=>{this.publish("camera-change",this.camera),c(this,O).geometryInFocusSystem&&(c(this,O).geometryInFocusSystem.cameraDirty=!0),this.render()}),this.onAbort(()=>{c(this,O).cameraSystem.off("user-dolly-start",c(this,_r)),c(this,O).cameraSystem.off("user-pan-start",c(this,_r)),c(this,O).cameraSystem.off("user-rotate-start",c(this,_r)),c(this,O).cameraSystem.off("user-zoom-start",c(this,_r)),c(this,O).cameraSystem.off("user-tilt-start",c(this,_r)),c(this,O).cameraSystem.off("user-pedestal-start",c(this,_r)),c(this,O).cameraSystem.off("user-dolly-end",c(this,Lr)),c(this,O).cameraSystem.off("user-pan-end",c(this,Lr)),c(this,O).cameraSystem.off("user-rotate-end",c(this,Lr)),c(this,O).cameraSystem.off("user-zoom-end",c(this,Lr)),c(this,O).cameraSystem.off("user-tilt-end",c(this,Lr)),c(this,O).cameraSystem.off("user-pedestal-end",c(this,Lr)),c(this,O).renderSystem.off("measure-canvas",c(this,da)),c(this,O).cameraSystem.off("change",this.render),c(this,O).outlineInterpolationSystem.off("needs-render",this.render)}),c(this,O).pathSystem=new bc(c(this,B),this.convertTo3DMapPosition,this.getParentContainer,c(this,O).cameraSystem.convertZoomLevelToAltitude),c(this,O).pathSystem.on("animate:path",this.render),this.onAbort(()=>{c(this,O).pathSystem.off("animate:path",this.render)}),c(this,O).panBoundsSystem=new _m(c(this,B),c(this,O).cameraSystem);let f=o(()=>{let{panBounds:W,fov:$,convertAltitudeToZoomLevel:q}=c(this,O).cameraSystem;if(c(this,O).panBoundsSystem.autoMinZoomLevel){if(W.radius<=0)return;let J=Math.min(c(this,B).canvasWidth/c(this,B).canvasHeight,1),G=$*Math.PI/180*J,ae=Math.tan(G/2),{radius:te,center:ee}=c(this,O).cameraSystem.panBounds,le=te/ae,fe=this.getThreeCamera().getWorldPosition(new ne),xe=ee.distanceTo(fe),be=Math.abs(fe.z-ee.z),Oe=le*be/xe,Ce=q(Oe);w4(Ce,this.camera.minZoomLevel)&&this.camera.setMinZoomLevel(Ce)}this.publish("pan-bounds-change",c(this,O).cameraSystem.panBounds)},"handlePanBoundsUpdate");c(this,O).panBoundsSystem.on("update",f),this.onAbort(()=>{c(this,O).panBoundsSystem.off("update",f)}),this.camera=new dm(this,c(this,O),c(this,B)),this.camera.setZoomLevel((V=n.zoomLevel)!=null?V:i6),this.camera.setBearing((z=n.bearing)!=null?z:n6),this.camera.setPitch((M=n.pitch)!=null?M:r6),this.camera.setMaxZoomLevel(MT),this.camera.setMinZoomLevel(BT),c(this,O).domVisiblitySystem=new Dm(c(this,B),c(this,In)),c(this,O).domMutationSystem=new Bm(c(this,B),c(this,In)),c(this,O).domMutationSystem.on("dimensions-update",()=>{c(this,O).collisionSystem.collidersDirty=!0,this.render()}),c(this,O).domDrawSystem=new Pm(c(this,B)),c(this,O).collisionSystem=new mm(c(this,Un),c(this,B),((T=n.useCollisionWorker)!=null?T:!0)&&((Z=n.useWorkers)!=null?Z:!0)),c(this,O).twoDDrawSystem=new wm(c(this,B),c(this,At),n.transformImageRequest),c(this,O).twoDDrawSystem.on("img:loaded",this.render),c(this,O).interactionSystem=new Ks(this.rendererDomElement,c(this,B),c(this,xt),c(this,Fo),c(this,O).cameraSystem.isUserInteracting),c(this,O).interactionSystem.on("doubletap-with-onefinger",W=>{var $;c(this,O).cameraSystem.enableZoom&&this.camera.animateTo({center:($=this.projectScreenXYToCoordinate(W.clientX,W.clientY))==null?void 0:$.coordinate,zoomLevel:this.camera.zoomLevel+1,duration:Np,easing:"ease-out"})}),c(this,O).interactionSystem.on("singletap-with-twofinger",()=>{c(this,O).cameraSystem.enableZoom&&this.camera.animateTo({zoomLevel:this.camera.zoomLevel-1,duration:Np,easing:"ease-out"})}),c(this,O).interactionSystem.on("hover",this.render),c(this,O).interactionSystem.on("click",W=>{var ae,te,ee,le,fe,xe,be,Oe,Ce;if(W.entity2D.some(ot=>ot.id==="watermark")&&typeof c(this,O).watermarkSystem.options.onClick=="function"&&c(this,O).watermarkSystem.options.interactive){c(this,O).watermarkSystem.options.onClick();return}let q=W.entity3D?[(ae=W.entity3D)==null?void 0:ae.id]:[];(le=(ee=(te=W.entity3D)==null?void 0:te.parentObject3D)==null?void 0:ee.userData)!=null&&le.entityId&&q.push((be=(xe=(fe=W.entity3D)==null?void 0:fe.parentObject3D)==null?void 0:xe.userData)==null?void 0:be.entityId);let J=[],G=[];for(let ot of W.entity2D)ot.components[0]instanceof yi?J.push(ot.id):ot.components[0]instanceof gi&&G.push(ot.id);this.publish("click",{coordinate:this.convert3DMapPositionToCoordinate(W.position),geometry:q,paths:((Oe=W.entity3D)==null?void 0:Oe.components[0])instanceof vo?[W.entity3D.id]:[],markers:J,models:((Ce=W.entity3D)==null?void 0:Ce.components[0])instanceof bo?[W.entity3D.id]:[],labels:G,containers:Array.isArray(W.groupContainers)?W.groupContainers.map(ot=>ot.userData.entityId):[],pointerEvent:W.pointerEvent})}),c(this,O).interactionSystem.on("hover",W=>{var J,G,ae;if(!W.position)return;let $=[],q=[];for(let te of W.entity2D)te.components[0]instanceof yi?$.push(te.id):te.components[0]instanceof gi&&q.push(te.id);this.publish("hover",{coordinate:this.convert3DMapPositionToCoordinate(W.position),geometry:W.entity3D?[(J=W.entity3D)==null?void 0:J.id]:[],paths:((G=W.entity3D)==null?void 0:G.components[0])instanceof vo?[W.entity3D.id]:[],markers:$,models:((ae=W.entity3D)==null?void 0:ae.components[0])instanceof bo?[W.entity3D.id]:[],labels:q,containers:Array.isArray(W.groupContainers)?W.groupContainers.map(te=>te.userData.entityId):[]})}),c(this,O).geometryInFocusSystem=new Wm(c(this,B),c(this,xt));let g=o(W=>{this.publish("geometry-in-focus",W)},"handleGeometryInFocus");c(this,O).geometryInFocusSystem.on("geometry-in-focus",g),this.onAbort(()=>{c(this,O).geometryInFocusSystem.off("geometry-in-focus",g)}),c(this,O).twoDVisiblitySystem=new Fm(c(this,B)),c(this,O).drawSystem=new Am(c(this,B),this.convertTo3DMapPosition),c(this,O).twoDProjectionSystem=new Sm(c(this,B),c(this,Gu)),c(this,O).exporterSystem=new qs(c(this,B)),c(this,O).meshOptimizationSystem=new Cm(c(this,B),this.convertTo3DMapPosition),c(this,O).meshOptimizationSystem.on("model-loaded",this.render),c(this,O).meshOptimizationSystem.on("geometry-2d-added",this.render),c(this,O).meshOptimizationSystem.on("geometry-group-added",c(this,Ic)),this.onAbort(()=>{c(this,O).meshOptimizationSystem.off("model-loaded",this.render),c(this,O).meshOptimizationSystem.off("geometry-2d-added",this.render),c(this,O).meshOptimizationSystem.off("geometry-group-added",c(this,Ic))}),c(this,O).meshDetachmentSystem=new sp(c(this,B)),c(this,O).meshModificationSystem=new lp(c(this,B)),c(this,O).geometryDisposalSystem=new yp(c(this,B)),c(this,O).textureSystem=new bp(c(this,B)),c(this,O).textureSystem.on("texture-added",this.render),this.onAbort(()=>{c(this,O).textureSystem.off("texture-added",this.render)}),c(this,O).borderSystem=new ib(c(this,B),this.convertTo3DMapPosition),c(this,O).clippingPlaneSystem=new Ep(c(this,B)),c(this,O).renderOrderSystem=new vp(c(this,B)),c(this,O).pluginSystem=new Ip,c(this,O).customGeometrySystem=new Lm(c(this,B),this.convertTo3DMapPosition),c(this,O).outlineInterpolationSystem=new jm(c(this,B)),c(this,O).outlineInterpolationSystem.on("needs-render",this.render),c(this,O).renderSystem=new Om(c(this,Kt),c(this,B),this.mode,c(this,vt),c(this,xt),this.viewCamera,c(this,O)),c(this,O).imageSystem=new Vm(c(this,B),this.convertTo3DMapPosition,c(this,Gu),n.bearing,n.naturalBearing,n.imagePlacementOptions),c(this,O).text3DSystem=new P4(c(this,B),this.convertTo3DMapPosition,(j=n.useWorkers)!=null?j:!0),c(this,O).text3DSystem.on("render",this.render),c(this,O).imageSystem.on("image-loaded",this.render),c(this,O).renderSystem.on("pre-render",()=>this.publish("pre-render")),c(this,O).renderSystem.on("post-render",()=>this.publish("post-render")),c(this,O).renderSystem.on("measure-canvas",c(this,da)),this.onAbort(()=>{c(this,O).renderSystem.off("pre-render",()=>this.publish("pre-render")),c(this,O).renderSystem.off("post-render",()=>this.publish("post-render")),c(this,O).renderSystem.off("measure-canvas",c(this,da))}),c(this,O).outdoorLayersSystem=new tp(this.map),c(this,O).occlusion2DSystem=new gp(c(this,B),this.convertTo3DMapPosition,c(this,Kt)),n.occlusionEnabled&&c(this,O).occlusion2DSystem.enable(),this.Debug=new hp(this),n.environment!==!1&&K(this,sa,pt(this,pr,Ly).call(this)),c(this,Dp).call(this)}get viewCamera(){return c(this,xc)}get canvasWidth(){return c(this,B).canvasWidth}get canvasHeight(){return c(this,B).canvasHeight}get resolutionScale(){var r,n;return(n=(r=this.map)==null?void 0:r._getClampedPixelRatio(this.canvasWidth,this.canvasHeight))!=null?n:Qu()}get aspect(){return this.canvasWidth/this.canvasHeight}get mode(){return c(this,Wi)}addGroupContainer(r,n,i){if(!c(this,B).geometry3DMap.has(r)&&!c(this,B).geometry2DMap.has(r)){let a=new nr(r);a.addEventListener("childadded",()=>{c(this,dt).call(this),c(this,qt).call(this)}),a.addEventListener("childremoved",()=>{c(this,dt).call(this),c(this,qt).call(this)}),(n==null?void 0:n.visible)!==void 0&&(a.visible=n.visible),(n==null?void 0:n.altitude)!==void 0&&a.setAltitude(n.altitude),(n==null?void 0:n.interactive)!==void 0&&Zr(a,n.interactive,c(this,B)),(n==null?void 0:n.focusable)!==void 0&&ul(a,n.focusable),(n==null?void 0:n.preloadGeometry)!==void 0&&(a.userData.preloadGeometry=n.preloadGeometry),c(this,B).geometry3DMap.set(r,a);let u=this.getParentContainer(i);u instanceof nr&&u.addEntity(a),c(this,dt).call(this),this.render()}else Se.error("Group container with ID '".concat(r,"' already exists. The group container cannot be added."));return{id:r,type:"group-container"}}addCustomGeometry(r,n,i,a,u){if(c(this,B).geometry3DMap.has(r))Se.error("Custom geometry with ID '".concat(r,"' already exists. The custom geometry cannot be added."));else{let s=new Mu(n,i),d=new at(s,new Kn(a));(a==null?void 0:a.interactive)!==void 0&&Zr(d,a.interactive,c(this,B)),d.id=r,s.mesh.userData={entityId:r,type:"custom-geometry"},c(this,B).geometry3DMap.set(d.id,d);let m=this.getParentContainer(u);u&&m instanceof nr?m.addEntity(d):c(this,B).geometryScene.addEntity(d),c(this,dt).call(this),this.render()}return{id:r,type:"custom-geometry"}}registerPlugin(r){c(this,O).pluginSystem.registerPlugin(r)}unregisterPlugin(r){c(this,O).pluginSystem.unregisterPlugin(r)}addGeometryGroup(r,n,i,a){var u,s,m;if(!c(this,B).geometry3DMap.has(r)&&!c(this,B).geometry2DMap.has(r)){let f=new qn(r);f.addEventListener("childadded",()=>{c(this,dt).call(this),c(this,qt).call(this)}),f.addEventListener("childremoved",()=>{c(this,dt).call(this),c(this,qt).call(this)}),f.userData.dirty=!0,c(this,B).geometry3DMap.set(r,f);let g=typeof i=="function"?i(n.features[0]):i;for(let v of n.features){if(v.geometry==null||!["Polygon","MultiPolygon","LineString","MultiLineString"].includes(v.geometry.type))continue;let C=(v==null?void 0:v.id)||((u=v==null?void 0:v.properties)==null?void 0:u.id)||Aa(),A={color:sl};if(typeof i=="function")A=(s=i(v))!=null?s:{color:sl};else{let d=i||{color:sl},{visible:E}=d;A=Po(d,["visible"])}let x=c(this,O).meshOptimizationSystem.createEntityFromFeature(C,v,R({outline:!0},A));c(this,B).geometry3DMap.set(C,x),f.userData.entities3D.add(C),c(this,O).textureSystem.dirty=!0}(g==null?void 0:g.__EXPERIMENTAL_maskEnabled)===!0&&qp(f,{enabled:g.__EXPERIMENTAL_maskEnabled,maskId:g.__EXPERIMENTAL_maskId,effect:g.__EXPERIMENTAL_maskEffect,mode:g.__EXPERIMENTAL_maskMode}),f.setVisible((m=g==null?void 0:g.visible)!=null?m:!0);let b=this.getParentContainer(a);b instanceof nr&&b.addEntity(f),c(this,dt).call(this),this.render()}else Se.error("Geometry group with ID '".concat(r,"' already exists. The geometry group cannot be added."));return c(this,O).outlineInterpolationSystem.geometries3DDirty=!0,{id:r,type:"geometry-group"}}addOccluder(r,n){let i=this.getParentContainer(n),a=c(this,O).occlusion2DSystem.reserveOccluderId();return i==null||i.addOccluderFeature(r,a),a}addImage(r,n,i,a){try{_6(r,n,i)}catch(u){Se.error(u);return}if(!c(this,B).geometry3DMap.has(r)&&!c(this,B).geometry2DMap.has(r)){let u=new Zm(n),s=new at(u,new Kn(i));s.id=r||Aa(),u.mesh.userData={entityId:s.id,type:"path"},c(this,B).geometry3DMap.set(s.id,s);let d=this.getParentContainer(a);d instanceof nr&&d.addEntity(s),c(this,dt).call(this),this.render()}else Se.error("Image with ID '".concat(r,"' already exists. The image cannot be added."));return{id:r,type:"image"}}addModelGroup(r,n,i,{parent:a,onComplete:u}={}){var s,d;try{p6(r,n,i)}catch(m){Se.error(m);return}if(!c(this,B).geometry3DMap.has(r)&&!c(this,B).geometry2DMap.has(r)){let m=new qn(r);m.addEventListener("childadded",()=>{c(this,dt).call(this),c(this,qt).call(this)}),m.addEventListener("childremoved",()=>{c(this,dt).call(this),c(this,qt).call(this)}),c(this,B).geometry3DMap.set(r,m),m.userData.dirty=!0,m.userData.modelURL=i.url;for(let g of n.features){let b=g.id||g.properties.id||Aa(),v=c(this,O).meshOptimizationSystem.createModelFromFeature(b,g,R({},i));(g.properties.interactive!==void 0||i.interactive!=null)&&Zr(v,(s=g.properties.interactive)!=null?s:i.interactive,c(this,B)),i.clippingPlaneZOffset!=null&&(v.components[7]=new R4,v.components[7].verticalOffset=i.clippingPlaneZOffset),v.parentId=m.userData.entityId,c(this,B).geometry3DMap.set(b,v),m.userData.entities3D.add(b)}let f=this.getParentContainer(a);f instanceof nr&&f.addEntity(m),c(this,dt).call(this),(d=this.render())==null||d.then(u)}else Se.error("Model group with ID '".concat(r,"' already exists. The model group cannot be added."));return{id:r,type:"geometry-group"}}addMarker2D(r,n,i,a){var s;let u=i==null?void 0:i.id;try{b4(r,n,i||{})}catch(d){Se.error(d);return}if(u===void 0||!c(this,B).geometry2DMap.has(u)&&!c(this,B).geometry3DMap.has(u)){let d=pt(this,pr,_y).call(this,r,new yi(n,i),i==null?void 0:i.occluderId,i==null?void 0:i.verticalOffset);d.id=u||String(d.id),u=d.id,(i==null?void 0:i.interactive)!=null&&i.interactive!=="pointer-events-auto"&&Zr(d,i==null?void 0:i.interactive,c(this,B)),(i==null?void 0:i.enabled)!=null&&ol(d,i.enabled),(i==null?void 0:i.occlude)!=null&&Wp(d,i.occlude);let m=typeof(i==null?void 0:i.attachTo)=="string"||typeof(i==null?void 0:i.attachTo)=="number"?c(this,B).geometry3DMap.get(i.attachTo):void 0;m instanceof at&&m.attach(d),(s=this.getParentContainer(a))==null||s.addEntity(d),this.render()}else Se.error("Marker2D with ID '".concat(u,"' already exists. The marker cannot be added."));return{id:u,type:"marker"}}addText3D(r,n,i,a){if(!c(this,B).geometry3DMap.has(r)&&!c(this,B).geometry2DMap.has(r)){let u=new il(De(R({},n),{properties:De(R({},n.properties),{id:r,content:n.properties.text})})),s=new at(u,new es(i==null?void 0:i.appearance));s.id=r,u.mesh.userData.entityId=r.toString(),u.mesh.userData.type="text3d",c(this,B).geometry3DMap.set(r,s);let d=this.getParentContainer(a);d instanceof nr&&d.addEntity(s),c(this,dt).call(this),this.render()}else Se.error("Text3D with ID '".concat(r,"' already exists. The text3d cannot be added."));return{id:r,type:"text3d"}}labelText3D(r,n,i={}){var m,f;try{if(!n||!r)throw new Error("content and meshGeometryId are required");B4.parse(i)}catch(g){Se.error(g);return}let a=c(this,B).geometry3DMap.get(r);if((a==null?void 0:a.type)!=="geometry"){Se.error(".labelText3D failed: target incorrect");return}let u=a==null?void 0:a.components[0];if(!u.feature.properties.textArea)return;if(u.textEntityId){let g=c(this,B).geometry3DMap.get(u.textEntityId);if((g==null?void 0:g.type)!=="text3d"){Se.error(".labelText3D failed: existing text3d not found");return}return{id:g.id,type:g.type}}let s=new il({type:"Feature",geometry:{coordinates:(m=u.feature.properties.textArea)==null?void 0:m.position,type:"Point"},properties:{textArea:u.feature.properties.textArea,content:n,id:Aa()}});s.polygonEntityId=r;let d=new at(s,new es(i==null?void 0:i.appearance));return u.textEntityId=d.id.toString(),s.mesh.userData.entityId=d.id.toString(),s.mesh.userData.type="text3d",c(this,B).geometry3DMap.set(d.id.toString(),d),i.parentId&&((f=this.getParentContainer(i.parentId))==null||f.addEntity(d)),this.render(),{id:d.id,type:"text3d"}}addLabel2D(r,n,i,a){var s;let u=i==null?void 0:i.id;try{y4(r,n,i||{})}catch(d){Se.error(d);return}if(u===void 0||!c(this,B).geometry2DMap.has(u)&&!c(this,B).geometry3DMap.has(u)){let d=pt(this,pr,_y).call(this,r,new gi(n,i||{},c(this,B)),i==null?void 0:i.occluderId,i==null?void 0:i.verticalOffset);d.id=u||String(d.id),u=d.id,(i==null?void 0:i.interactive)!=null&&Zr(d,i==null?void 0:i.interactive,c(this,B)),(i==null?void 0:i.enabled)!=null&&ol(d,i.enabled),(i==null?void 0:i.occlude)!=null&&Wp(d,i.occlude);let m=typeof(i==null?void 0:i.attachTo)=="string"||typeof(i==null?void 0:i.attachTo)=="number"?c(this,B).geometry3DMap.get(i.attachTo):void 0;m instanceof at&&m.attach(d),(s=this.getParentContainer(a))==null||s.addEntity(d),c(this,qt).call(this),this.render()}else Se.error("Label2D with ID '".concat(u,"' already exists. The label cannot be added."));return{id:u,type:"label"}}addPath(r,n={},i){var d,m;try{I6(r,n||{})}catch(f){Se.error(f);return}let a=new vo(r,Y4(n)),u=new at(a,new Kn({color:(d=n==null?void 0:n.color)!=null?d:"#ff834c",altitude:(m=n==null?void 0:n.verticalOffset)!=null?m:.1}));u.id=(n==null?void 0:n.id)||Aa(),a.mesh.userData={entityId:u.id,type:"path"},c(this,B).geometry3DMap.set(u.id,u),(n==null?void 0:n.interactive)!=null&&Zr(u,n==null?void 0:n.interactive,c(this,B));let s=this.getParentContainer(i);return s instanceof nr&&s.addEntity(u),c(this,dt).call(this),this.render(),{id:u.id,type:"path"}}updateWatermark(r){c(this,O).watermarkSystem.options=r,c(this,O).watermarkSystem.dirty=!0,c(this,O).collisionSystem.collidersDirty=!0,this.render()}remove(r){var i,a;let n;if(typeof r=="string"||typeof r=="number"?(n=c(this,B).geometry2DMap.get(r),n==null&&(n=c(this,B).geometry3DMap.get(r))):typeof r.id=="string"||typeof r.id=="number"?(n=c(this,B).geometry2DMap.get(r.id),n==null&&(n=c(this,B).geometry3DMap.get(r.id))):n=r,n!=null){if(n.type==="custom-geometry")c(this,B).geometry3DMap.delete(n.id),n.object3d&&Nt(n.object3d);else if(n.type==="group-container"){c(this,B).geometry3DMap.delete(n.userData.entityId);for(let s of n.childrenIds.values())this.remove(s),n.userData.entities2D.delete(s);let u=n.components[1];u&&u.focusMesh&&Nt(u.focusMesh),Nt(n)}else if(n.type==="geometry-group"){c(this,B).geometry3DMap.delete(n.userData.entityId);for(let u of n.userData.entities3D.values())this.remove(u),n.userData.entities3D.delete(u);Nt(n)}else if(n.type==="geometry"||n.type==="model"||n.type==="path"){let u=n.components[0],s=n.components[4];if(n.entities2D.size>0){for(let m of n.entities2D.values())this.remove(m);n.removeAllEntities()}let d=(a=(i=n.parentObject3D)==null?void 0:i.userData.entityId)!=null?a:n.parentId;if(d){let m=c(this,B).geometry3DMap.get(d);m instanceof qn&&m.userData.entities3D.delete(n.id)}if(n.object3d&&Nt(n.object3d),n.type==="geometry"){let m=n.components[3];m&&(m.enabled=!1,m.dirty=!0)}s&&"focusMesh"in s&&s.focusMesh!=null&&Nt(s.focusMesh),"textMesh"in u&&u.textMesh!=null&&this.remove(u.textMesh.userData.entityId),c(this,B).geometry3DMap.delete(n.id)}else if(n.type==="marker"||n.type==="label"){let u=n.attachedTo;if(u){let s=c(this,B).geometry3DMap.get(u);s instanceof at&&s.detach(n)}n.object3d&&Nt(n.object3d),n.type==="label"&&delete c(this,O).twoDDrawSystem.textCache[n.id],c(this,B).geometry2DMap.delete(n.id)}else if(n.type==="image")n.object3d&&Nt(n.object3d),c(this,B).geometry3DMap.delete(n.id);else if(n.type==="text3d"){Nt(n.object3d);let{batchedText:u,textMesh:s,polygonEntityId:d}=n.components[0];if(s&&(u&&u.removeText(s),Nt(s)),d){c(this,O).text3DSystem.remove(d);let m=c(this,B).geometry3DMap.get(d);(m==null?void 0:m.type)==="geometry"&&(m.components[0].textMesh=void 0,m.components[0].textEntityId=void 0)}c(this,B).geometry3DMap.delete(n.id)}c(this,dt).call(this),c(this,qt).call(this),this.render()}}getScene(){return this.getState("__scene")}getThreeScene(){return c(this,vt)}getThreeCamera(){return c(this,xt)}async setEnvironment(r){if(c(this,vt))if(r==="basic"){c(this,sa)||K(this,sa,pt(this,pr,Ly).call(this));let n=await c(this,sa);c(this,vt).environment=n}else c(this,vt).environment=null}getEnvironment(){var r;return(r=c(this,vt))!=null&&r.environment?"basic":!1}getCurrentSceneGLTF(r){return c(this,O).exporterSystem.getCurrentSceneGLTF(r)}getBoundingArea(r){(c(this,O).renderSystem.threeDdirty||c(this,O).renderSystem.twoDdirty)&&this.renderSync();let n=new rr;if(r==null)n.setFromObject(c(this,B).geometryScene);else{let i=Lo(c(this,B),r);if((i==null?void 0:i.type)==="geometry"&&(i==null?void 0:i.object3d)!=null){let a=i.components[0],u=a instanceof Lt?a.geometry:void 0;a.mesh instanceof Zc&&u?(u.computeBoundingBox(),u.boundingBox&&n.union(u.boundingBox)):n.setFromObject(i.object3d)}else((i==null?void 0:i.type)==="geometry-group"||(i==null?void 0:i.type)==="group-container")&&(i==null?void 0:i.userData.entityId)!=null&&n.setFromObject(i)}if(Yc(n))return v4(n).map(this.convert3DMapPositionToCoordinate)}hasState(r){return Lo(c(this,B),r)!=null}getState(r){var i,a,u,s,d,m,f,g,b,v,C,A,x,E,S,D,I,k,V,z,M,T,Z,j,W;if(r==null)return{type:"map-view",hoverColor:c(this,B).hoverColor,text3dHoverColor:c(this,B).text3dHoverColor};let n=Lo(c(this,B),r);if((n==null?void 0:n.type)==="custom-geometry"){let $=n.components[0],q=n.components[1];return{id:n.id,type:"custom-geometry",visible:q.visible,altitude:q.altitude,parent:(i=n.parentObject3D)==null?void 0:i.userData.entityId,position:this.convert3DMapPositionToCoordinate($.position)}}else if((n==null?void 0:n.type)==="geometry-group"){let $=Array.from(n.userData.entities3D.values()),q=$==null?void 0:$[0],J=q?this.getState(q):{};return{id:n.userData.entityId,type:"geometry-group",visible:n.visible,altitude:J==null?void 0:J.altitude,initialColor:J==null?void 0:J.initialColor,color:J==null?void 0:J.color,side:(a=J==null?void 0:J.side)!=null?a:"double",opacity:J==null?void 0:J.opacity,height:J==null?void 0:J.height,texture:J==null?void 0:J.texture,topColor:J==null?void 0:J.topColor,topTexture:J==null?void 0:J.topTexture,interactive:Array.from(n.userData.entities3D.values()).map(G=>c(this,B).geometry3DMap.get(G)).every(G=>G&&G.components[2]!=null),children:$,bevel:J==null?void 0:J.bevel,maskId:(u=n.components[0])==null?void 0:u.maskId,maskEnabled:(s=n.components[0])==null?void 0:s.enabled,maskEffect:(d=n.components[0])==null?void 0:d.effect,maskMode:(m=n.components[0])==null?void 0:m.mode}}else{if((n==null?void 0:n.type)==="group-container")return{id:n.userData.entityId,type:"group-container",visible:n.visible,altitude:(f=n.getWorldPosition(kT).z)!=null?f:0,opacity:n.opacity,interactive:!!n.components[0],children:Array.from(n.childrenIds.values()).map($=>this.getState($)).filter(Boolean)};if((n==null?void 0:n.type)==="label"){let $=n.components[0],q=n.object3d.parent,J=q==null?void 0:q.userData.entityId;return{id:n.id,type:"label",text:$.text||"",parent:{id:J,type:q==null?void 0:q.type},position:this.convert3DMapPositionToCoordinate(n.position),enabled:$.enabled,visible:$.visible,initialRank:Xu($.initialRank),options:{rank:Xu($.rank),appearance:$.appearance,interactive:n.components[1]!=null,verticalOffset:n.verticalOffset,attachTo:n.attachedTo,occlude:(b=(g=n.components[2])==null?void 0:g.enabled)!=null?b:!1}}}else if((n==null?void 0:n.type)==="marker"){let $=n.components[0],q=n.object3d.parent,J=q==null?void 0:q.userData.entityId;return{id:n.id,type:"marker",enabled:$.enabled,visible:$.visible,placement:$.options.placement,dynamicResize:$.options.dynamicResize,parent:{id:J,type:q==null?void 0:q.type},position:this.convert3DMapPositionToCoordinate(n.position),element:$.containerEl,initialRank:Xu($.initialRank),contentHTML:$.contentHtml,options:{rank:Xu($.rank),interactive:n.components[1]!=null||!1,verticalOffset:n.verticalOffset,attachTo:n.attachedTo,lowPriorityPin:$.options.lowPriorityPin,occlude:(C=(v=n.components[2])==null?void 0:v.enabled)!=null?C:!1}}}else if((n==null?void 0:n.type)==="geometry"){let{color:$,hoverColor:q,initialColor:J,initialTopColor:G,topColor:ae,altitude:te}=n.components[1],ee=n.components[0],le=n.components[4],fe=n.components[1],xe=n.components[6],be=n.components[2],Oe=n.components[3],Ce=n.parentObject3D;return{id:n.id,type:"geometry",opacity:fe.opacity,initialColor:J,color:$,focusable:le!=null&&le.focusMesh!=null,initialTopColor:G,topColor:ae,side:fe.side,hoverColor:q,hovered:!!(be!=null&&be.hover),height:fe.height,visible:fe.visible,outline:Oe==null?void 0:Oe.enabled,showImage:fe.showImage,texture:(A=xe==null?void 0:xe.texture)==null?void 0:A.path,topTexture:(x=xe==null?void 0:xe.topTexture)==null?void 0:x.path,flipImageToFaceCamera:fe.flipImageToFaceCamera,enableImageCollisions:fe.enableImageCollisions,parent:{id:Ce==null?void 0:Ce.userData.entityId,type:Ce==null?void 0:Ce.type},altitude:te,bevel:fe.bevel,position:this.convert3DMapPositionToCoordinate(ee.position),interactive:n.components[2]!=null,borderVisible:fe.borderVisible,borderColor:fe.borderColor,borderWidth:fe.borderWidth}}else if((n==null?void 0:n.type)==="model"){let $=n.components[0],q=n.components[1],J=n.components[2];return{id:n.id,type:"model",position:$.mesh?this.convert3DMapPositionToCoordinate((E=$.mesh)==null?void 0:E.getWorldPosition(new ne)):this.convert3DMapPositionToCoordinate($.position),interactive:J!=null,material:q.material,parent:(S=n.parentObject3D)!=null&&S.parent?{id:n.parentObject3D.parent.userData.entityId,type:n.parentObject3D.parent.type}:void 0,visible:q.visible,verticalOffset:q.verticalOffset,color:q.color,opacity:q.opacity,rotation:(D=q.rotation)!=null?D:Ma,scale:(I=q.scale)!=null?I:Ba}}else if((n==null?void 0:n.type)==="path"){let $=n.components[0],q=n.components[2],J=n.components[1];return{id:n.id,type:"path",position:this.convert3DMapPositionToCoordinate($.position),visible:J.visible,interactive:q!=null,completeFraction:$.completeFraction,color:J.color,accentColor:$.accentColor,width:$.width,animateArrowsOnPath:$.animateArrowsOnPath,displayArrowsOnPath:$.displayArrowsOnPath,verticalOffset:J.altitude,highlightCompleteFraction:$.highlightCompleteFraction,highlightStartFraction:$.highlightStartFraction,highlightEndFraction:$.highlightEndFraction,highlightColor:$.highlightColor,highlightWidthMultiplier:$.highlightWidthMultiplier,xrayOpacity:$.xrayOpacity,smoothingTension:$.smoothingTension,smoothingCornerRadius:$.smoothingCornerRadius}}else if((n==null?void 0:n.type)==="image"){let $=n.components[0];return{id:n.id,type:"image",position:this.convert3DMapPositionToCoordinate($.position),visible:n.components[1].visible,verticalOffset:(k=$.feature.properties.verticalOffset)!=null?k:0,opacity:n.components[1].opacity,flipImageToFaceCamera:n.components[1].flipImageToFaceCamera,width:(V=$.feature.properties.width)!=null?V:0,height:(z=$.feature.properties.height)!=null?z:0,rotation:(M=$.feature.properties.rotation)!=null?M:0}}else if((n==null?void 0:n.type)==="text3d"&&n.components[0]instanceof il&&"textArea"in n.components[0].feature.properties){Q4(n);let $=n.components[0],q=n.components[1],{textMesh:J}=$,G=(T=$.mesh)==null?void 0:T.parent;G instanceof nr&&((Z=G.children.find(ee=>ee.type==="batchedtext"))==null||Z.getWorldPosition(c(this,Pc))),c(this,Zu).set(0,0,0);let ae=J?J.getWorldPosition(c(this,Zu)):c(this,Zu);return Object.assign({},Pa,q.getState(),{id:n.id,type:"text3d",position:this.convert3DMapPositionToCoordinate(ae.add(c(this,Pc))),visible:(j=$.visible)!=null?j:!1,content:(W=$.feature.properties.content)!=null?W:""})}else return}}getRenderedState(r){let n=typeof r=="string"||typeof r=="number"?r:r.id,i=Lo(c(this,B),n);if(i&&i.type==="label")return{textVisible:i.components[0].textVisible}}setState(r,n){var a,u;if(typeof r=="object"&&n==null){"hoverColor"in r&&(m4(r.hoverColor)?c(this,B).hoverColor=(a=r.hoverColor)!=null?a:c(this,B).hoverColor:Se.warn('Failed to update global hover color. Invalid color "'.concat(r.hoverColor,'".'))),"text3dHoverColor"in r&&(c(this,B).text3dHoverColor=(u=r.text3dHoverColor)!=null?u:c(this,B).text3dHoverColor);return}let i=Lo(c(this,B),r);if(i!=null){if(i.type==="custom-geometry"){let s=c(this,B).geometry3DMap.get(i.id);if(s instanceof at&&s.components[0]instanceof Mu){let d=n;eo(i,c(this,B),d.visible),Ta(i,c(this,B),d.altitude),Zp(i,d.position,this.convertTo3DMapPosition),Vp(i,this.getParentContainer(d.parent,!1)),Zr(i,d.interactive,c(this,B))&&c(this,dt).call(this)}}else if(i.type==="path"){let s=n;Zr(i,s.interactive,c(this,B))&&c(this,dt).call(this),Ta(i,c(this,B),s.verticalOffset),X4(i,c(this,B),s)}else if(i.type==="model"){let s=n;Zr(i,s.interactive,c(this,B))&&c(this,dt).call(this),eo(i,c(this,B),s.visible),tb(i,s),rb(i,s)}else if(i.type==="group-container"){let s=n;eo(i,c(this,B),s.visible)&&(c(this,O).pathSystem.verticalDistanceDirty=!0,c(this,O).geometryInFocusSystem.focusablesDirty=!0),Ta(i,c(this,B),s.altitude)&&(c(this,O).pathSystem.verticalDistanceDirty=!0),Zr(i,s.interactive,c(this,B))&&c(this,dt).call(this),al(i,c(this,B),s.opacity)&&(c(this,O).outlineInterpolationSystem.outlineOpacitiesDirty=!0),s.preloadGeometry&&i.userData.preloadGeometry!==!0&&(i.userData.preloadGeometry=!0,c(this,O).outlineInterpolationSystem.geometries3DDirty=!0),ul(i,s.focusable)&&(c(this,O).geometryInFocusSystem.focusablesDirty=!0)}else if(i.type==="geometry-group"){let s=n;eo(i,c(this,B),s.visible),N4(i,c(this,B),s),Jp(i,c(this,B),s.outline),s.height!=null&&Gp(i,c(this,B),s.height),Ta(i,c(this,B),s.altitude),Kp(i,c(this,B),s)&&(c(this,O).textureSystem.dirty=!0),Kp(i,c(this,B),s),U4(i,c(this,B),s.shading),al(i,c(this,B),s.opacity)&&(c(this,O).outlineInterpolationSystem.outlineOpacitiesDirty=!0),Zr(i,s.interactive,c(this,B))&&(c(this,dt).call(this),c(this,qt).call(this)),Xp(i,c(this,B),s.side),qp(i,{maskId:s.maskId,enabled:s.maskEnabled,effect:s.maskEffect,mode:s.maskMode})}else if(i.type==="geometry"){if(i.components[0]instanceof Lt){let s=n;eo(i,c(this,B),s.visible),Jp(i,c(this,B),s.outline),j4(i,s),ul(i,s.focusable)&&(c(this,O).geometryInFocusSystem.focusablesDirty=!0),q4(i,s.renderOrder)&&(c(this,O).meshDetachmentSystem.dirty=!0),K4(i,s.opacity)&&(c(this,O).meshDetachmentSystem.dirty=!0,c(this,O).interactionSystem.dirty3D=!0,c(this,O).outlineInterpolationSystem.outlineOpacitiesDirty=!0),Hp(i,s.flipImageToFaceCamera),W4(i,s.enableImageCollisions),Ta(i,c(this,B),s.altitude),s.height!=null&&Gp(i,c(this,B),s.height),H4(i,s)&&(c(this,O).meshDetachmentSystem.dirty=!0,c(this,O).textureSystem.dirty=!0),z4(i,s),Z4(i,s.hoverColor),Zr(i,s.interactive,c(this,B)),V4(i,s.hovered),Xp(i,c(this,B),s.side),J4(i,s)}c(this,dt).call(this)}else if(i.type==="label"||i.type==="marker"){let s=n;G4(i,s,c(this,B)),$4(i,s,c(this,B))&&(c(this,qt).call(this),c(this,O).domMutationSystem.dirty=!0),Zp(i,s.position,this.convertTo3DMapPosition),Vp(i,this.getParentContainer(s.parent,!1))&&(c(this,qt).call(this),c(this,O).panBoundsSystem.dirty=!0),ol(i,s.enabled),eo(i,c(this,B),s.visible)}else if(i.type==="image"){let s=n;eo(i,c(this,B),s.visible),al(i,c(this,B),s.opacity),Hp(i,s.flipImageToFaceCamera)}else if(i.type==="text3d"){let s=n;eb(i,c(this,B),s)}this.render()}}convertTo3DMapPosition(r,n,i=0,a){var d,m,f,g,b;if(Array.isArray(r))return this.convertTo3DMapPosition(r[1],r[0],(d=r[2])!=null?d:i,typeof n=="function"?n:void 0);if(typeof n!="number")throw new Error("convertTo3DMapPosition failed: longitude must be a number");let{x:u,y:s}=tl((f=(m=c(this,B).center)==null?void 0:m[1])!=null?f:0,(b=(g=c(this,B).center)==null?void 0:g[0])!=null?b:0,r,n);return a?(a.set(u,s,i),a):new ne(u,s,i)}get backgroundColor(){return typeof c(this,Kt).backgroundColor=="string"?c(this,Kt).backgroundColor:"#".concat(c(this,Kt).backgroundColor.getHexString())}get backgroundAlpha(){return c(this,Kt).backgroundAlpha}getThreeRenderer(){return c(this,Kt)}getCenter(r){let n=Array.isArray(r)?r:this.getBoundingArea(r);return n?S4(n):void 0}isInView(r){let n=Lo(c(this,B),r);if(c(this,Fc).identity().multiply(c(this,xt).projectionMatrix).multiply(c(this,xt).matrixWorldInverse),c(this,ma).setFromProjectionMatrix(c(this,Fc)),n instanceof Rp)return c(this,ma).containsPoint(n.position);if(n instanceof at){let i=n==null?void 0:n.components[0];if(i instanceof Mu||i instanceof bo)return c(this,ma).containsPoint(this.convertTo3DMapPosition(i.feature.geometry.coordinates));if(i instanceof Lt){let a=new rr(this.convertTo3DMapPosition(i.featureBbox[1],i.featureBbox[0],0),this.convertTo3DMapPosition(i.featureBbox[3],i.featureBbox[2],0));return c(this,ma).intersectsBox(a)}}return!1}queryGeometry2DInView(r){let{screenOffsets:n,fullyContains:i}=r!=null?r:{},[a,u,s,d]=O4(this.container,n),m=new Fe(a,u,s,d);return c(this,O).collisionSystem.visibleCollidersQTree.queryRect(m).filter(v=>i?m.contains(v):m.intersects(v)).map(v=>c(this,B).geometry2DMap.get(v.userData.entityId)).filter(v=>v!=null).filter(v=>v.components[0]instanceof gi||v.components[0]instanceof yi).map(v=>v.id.toString())}onMapLibreEvent(r,n){if(!this.map){Se.warn('Tried to add event listener "'.concat(r,'" but MapLibre map is not initialized.'));return}this.map.on(r,n),c(this,En)[r]=c(this,En)[r]||[],c(this,En)[r].push(n)}offMapLibreEvent(r,n){!this.map||!Array.isArray(c(this,En)[r])||(this.map.off(r,n),c(this,En)[r]=c(this,En)[r].filter(i=>i!==n))}get aborted(){return c(this,la).signal.aborted}onAbort(r){c(this,la).signal.addEventListener("abort",r,{once:!0})}getSystems(){return c(this,O)}getInternalState(){return c(this,B)}getInternalTweenGroup(){return c(this,B).internalTweenGroup}getExternalTweenGroup(){return c(this,B).externalTweenGroup}computeMinZOffsetBetweenContainers(r,n,i){if(!r||!n)return-1;Lp(r,"group-container"),Lp(n,"group-container"),r.updateMatrixWorld(!0),n.updateMatrixWorld(!0);let a=rl(r,this.getThreeCamera()),u=n.clone(!0);E4(u,!0),u.updateMatrixWorld();let s=rl(u,this.getThreeCamera());if(!Yc(a)||!Yc(s))return-1;let d=0,m;i&&this.container.querySelectorAll(".debug-box").forEach(g=>g.remove());do{if(d>1e4)return-1;if(d+=20,u.setAltitude(d),s.makeEmpty(),rl(u,c(this,xt),s),m=a.intersectsBox(s),i){let f=zp(a,"blue",this.container),g=zp(s,m?"red":"green",this.container);f.classList.add("debug-box"),g.classList.add("debug-box")}}while(m);return d}};vt=new WeakMap,xt=new WeakMap,sa=new WeakMap,xc=new WeakMap,ju=new WeakMap,Fo=new WeakMap,ca=new WeakMap,zu=new WeakMap,pr=new WeakSet,ky=o(function(r){var n;c(this,Wi)!=="outdoors-overlay"&&((n=this.map)==null||n.setPixelRatio(r)),c(this,B).pixelRatio=this.resolutionScale},"#setResolutionScale"),B=new WeakMap,En=new WeakMap,la=new WeakMap,Ye=new WeakMap,Un=new WeakMap,At=new WeakMap,In=new WeakMap,Kt=new WeakMap,O=new WeakMap,Ec=new WeakMap,qt=new WeakMap,dt=new WeakMap,LI=o(function(){K(this,Ye,document.createElement("div")),c(this,Ye).classList.add("mappedin__smart-collision-engine__container"),K(this,Un,document.createElement("canvas")),c(this,Un).classList.add("mappedin__smart-collision-engine-debug__container"),this.container.appendChild(c(this,Ye)),K(this,At,document.createElement("canvas")),c(this,At).classList.add("mappedin__smart-collision-engine__container"),c(this,At).width=c(this,Ye).clientWidth*this.resolutionScale,c(this,At).height=c(this,Ye).clientHeight*this.resolutionScale,c(this,At).style.width=c(this,Ye).clientWidth+"px",c(this,At).style.height=c(this,Ye).clientHeight+"px",c(this,Ye).appendChild(c(this,Un)),c(this,Ye).appendChild(c(this,At)),c(this,Un).width=c(this,Ye).clientWidth,c(this,Un).height=c(this,Ye).clientHeight,c(this,At).width=c(this,Ye).clientWidth*this.resolutionScale,c(this,At).height=c(this,Ye).clientHeight*this.resolutionScale,c(this,At).style.width=c(this,Ye).clientWidth+"px",c(this,At).style.height=c(this,Ye).clientHeight+"px"},"#renderEntity2DContainer"),RI=o(function(){K(this,In,document.createElement("div")),c(this,In).classList.add("mappedin-2d-entities"),Object.assign(c(this,In).style,{position:"absolute",top:"0",left:"0",bottom:"0",right:"0",pointerEvents:"none","transform-style":"preserve-3d"}),this.container.appendChild(c(this,In))},"#renderEntityDOMContainer"),NI=o(function(){c(this,At).width=c(this,Ye).clientWidth*this.resolutionScale,c(this,At).height=c(this,Ye).clientHeight*this.resolutionScale,c(this,At).style.width=c(this,Ye).clientWidth+"px",c(this,At).style.height=c(this,Ye).clientHeight+"px",c(this,Un).width=c(this,Ye).clientWidth,c(this,Un).height=c(this,Ye).clientHeight,c(this,At).width=c(this,Ye).clientWidth*this.resolutionScale,c(this,At).height=c(this,Ye).clientHeight*this.resolutionScale,c(this,At).style.width=c(this,Ye).clientWidth+"px",c(this,At).style.height=c(this,Ye).clientHeight+"px",c(this,O).collisionSystem.collidersDirty=!0},"#resizeCollisionCanvas"),Wi=new WeakMap,Ic=new WeakMap,Cc=new WeakMap,Dc=new WeakMap,Sc=new WeakMap,$u=new WeakMap,Dp=new WeakMap,wc=new WeakMap,Gu=new WeakMap,Ac=new WeakMap,da=new WeakMap,_y=o(function(r,n,i,a){let u=new Rp(n,this.convertTo3DMapPosition(r[1],r[0],r[2]||0),a);return u.components[2]=new Cp(i!=null?i:c(this,O).occlusion2DSystem.backgroundId),c(this,B).geometry2DMap.set(u.id,u),u},"#createEntity2D"),ma=new WeakMap,Fc=new WeakMap,Oc=new WeakMap,_r=new WeakMap,Lr=new WeakMap,Ly=o(async function(){return Eo.load(ab).then(r=>{var n;return c(this,vt)&&((n=c(this,vt).environment)==null||n.dispose(),r.mapping=zy,c(this,vt).environment=r,this.render()),r})},"#loadEnvMap"),Sp=new WeakMap,wp=new WeakMap,Zu=new WeakMap,Pc=new WeakMap,o(Ry,"Core");var Ty=Ry,kT=new ne,gg=Ty;var Ny=class Ny extends Le{constructor(r){super();h(this,"gl");h(this,"el",document.createElement("div"));h(this,"core");h(this,"origin");h(this,"map");h(this,"layer");h(this,"handleStyleChange",o(()=>{!this.map||!this.layer||this.map.getLayer(this.layer.id)||(this.map.addLayer(this.layer),this.core.camera.setMinZoomLevel(this.map.getMinZoom()),this.core.camera.setMaxZoomLevel(this.map.getMaxZoom()),this.core.camera.setMinPitch(this.map.getMinPitch()),this.core.camera.setMaxPitch(this.map.getMaxPitch()))},"handleStyleChange"));h(this,"handleMove",o(()=>{if(!this.map)return;let[r,n]=this.map.getCenter().toArray();this.core.getSystems().cameraSystem.setCenter(r,n),this.core.getSystems().cameraSystem.setZoomLevel(this.map.getZoom()),this.core.getSystems().cameraSystem.setRotation(Te.degToRad(this.map.getBearing())),this.core.getSystems().cameraSystem.setTilt(Te.degToRad(this.map.getPitch()))},"handleMove"));h(this,"handleError",o(r=>{Se.warn(r)},"handleError"));this.origin=r}onAdd(r){this.origin=this.origin||r.getCenter().toArray(),this.gl=r.painter.context.gl,this.core=new gg(r._container,{center:this.origin,zoomLevel:r.getZoom(),pitch:r.getPitch(),bearing:r.getBearing(),gl:this.gl,map:r,mode:"outdoors-overlay"}),this.map=r,this.core.camera.setMinZoomLevel(r.getMinZoom()),this.core.camera.setMaxZoomLevel(r.getMaxZoom()),this.core.camera.setMinPitch(r.getMinPitch()),this.core.camera.setMaxPitch(r.getMaxPitch()),this.map.on("error",this.handleError);let n=Fp.fromLngLat(this.origin,0);return this.layer=Up(n,this.core.viewCamera,()=>{this.core.renderSync()}),this.map.on("styledata",this.handleStyleChange),this.map.on("move",this.handleMove),this.handleStyleChange(),this.el}onRemove(){this.map&&(this.map.off("styledata",this.handleStyleChange),this.map.off("move",this.handleMove),this.map.off("error",this.handleError),this.layer&&this.map.removeLayer(this.layer.id)),this.layer=void 0,this.map=void 0,this.core&&this.core.destroy(),this.core=void 0}};o(Ny,"MapLibreOverlay");var Ap=Ny;l();var UI=Jc("",{prefix:"[MapLibreOverlay]"});l();var jI=o((e,{id:t}={})=>{let r=Array.isArray(e)?e:[e];if(!r.every(a=>typeof a=="string"))return;let n=r.join(""),i=null;if(t){let a=document.getElementById(t);a instanceof HTMLStyleElement&&(i=a)}i==null&&(i=document.createElement("style")),t&&t!==""&&(i.id=t),i.textContent=n,document.head.appendChild(i)},"injectCSS");var zI=".mappedin-marker {\n font-family: 'InterUI-Regular', Helvetica, Arial, sans-serif;\n font-weight: normal;\n top: 0;\n position: absolute;\n font-weight: bold;\n color: black;\n display: flex;\n flex-direction: row;\n will-change: transform, opacity;\n transition: opacity 150ms ease-in-out;\n justify-content: center;\n opacity: 0;\n}\n\n/* Low priority pin strategy styles */\n\n/* Hide child elements as well */\n.mappedin-marker[data-placement='hidden'] > .mappedin-marker-content {\n visibility: hidden;\n}\n\n/* Create the pin using ::before pseudo-element */\n.mappedin-marker::before {\n content: '';\n display: none;\n border-radius: 50%;\n position: relative;\n /* Default values - will be overridden by inline styles */\n width: var(--mappedin-pin-size, 2px);\n height: var(--mappedin-pin-size, 2px);\n background-color: var(--pin-color, #666);\n}\n\n.mappedin-marker[data-placement='hidden']::before {\n display: block;\n}\n";var $I=".mappedin__smart-collision-engine__container {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px;\n right: 0px;\n pointer-events: none;\n /* Enables colliders to use translate3D */\n transform-style: preserve-3d;\n font-family: 'InterUI-Regular', Helvetica, Arial, sans-serif;\n}\n\n.mappedin__smart-collision-engine-debug__container {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px;\n right: 0px;\n transition: opacity 300ms ease-in-out;\n pointer-events: none;\n will-change: opacity;\n &.interacting {\n opacity: 0.2;\n }\n}\n";var GI=".mappedin-map {\n .mappedin-interactive {\n cursor: grab;\n\n &:active {\n cursor: grabbing;\n }\n\n &.mappedin-interaction-hover {\n cursor: pointer;\n }\n }\n}\n";var ZI=".mappedin-map {\n .mappedin-control-container {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px;\n right: 0px;\n pointer-events: none;\n font-family: 'InterUI-Regular', Helvetica, Arial, sans-serif;\n\n .mappedin-ctrl-top-left,\n .mappedin-ctrl-top-right,\n .mappedin-ctrl-bottom-left,\n .mappedin-ctrl-bottom-right {\n position: absolute;\n pointer-events: none;\n }\n\n .mappedin-ctrl-top-left {\n top: 0;\n left: 0;\n }\n\n .mappedin-ctrl-top-right {\n top: 0;\n right: 0;\n }\n\n .mappedin-ctrl-bottom-left {\n bottom: 0;\n left: 0;\n }\n\n .mappedin-ctrl-bottom-right {\n bottom: 0;\n right: 0;\n }\n\n .mappedin-ctrl-attrib {\n display: block;\n position: relative;\n pointer-events: auto;\n font: 9px/11px 'InterUI-Regular', Helvetica, Arial, sans-serif;\n padding: 3px 5px 1px 5px;\n background-color: rgba(255, 255, 255, 0.5);\n margin: 0;\n min-width: 11px;\n min-height: 11px;\n user-select: none;\n\n summary.mappedin-ctrl-attrib-button {\n appearance: none;\n list-style: none;\n }\n\n summary.mappedin-ctrl-attrib-button::-webkit-details-marker {\n display: none;\n }\n\n &.mappedin-compact .mappedin-ctrl-attrib-button,\n &.mappedin-compact-show .mappedin-ctrl-attrib-inner {\n display: inline-block;\n }\n\n &.mappedin-compact {\n background-color: transparent;\n }\n\n &.mappedin-compact-show {\n min-width: 15px;\n min-height: 15px;\n box-sizing: border-box;\n background-color: rgba(255, 255, 255, 0.5);\n }\n }\n\n .mappedin-ctrl-attrib-top-left {\n float: left;\n border-bottom-right-radius: 4px;\n }\n\n .mappedin-ctrl-attrib-top-right {\n float: right;\n border-bottom-left-radius: 4px;\n }\n\n .mappedin-ctrl-attrib-bottom-left {\n float: left;\n border-top-right-radius: 4px;\n }\n\n .mappedin-ctrl-attrib-bottom-right {\n float: right;\n border-top-left-radius: 4px;\n }\n .mappedin-ctrl-attrib-top-left,\n .mappedin-ctrl-attrib-bottom-left {\n padding: 3px 5px 1px 20px;\n }\n\n .mappedin-ctrl-attrib-inner {\n display: inline-block;\n margin-right: 12px;\n }\n\n .mappedin-ctrl-attrib-inner,\n .mappedin-ctrl-attrib-inner a {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n }\n\n .mappedin-ctrl-attrib-inner-bold,\n .mappedin-ctrl-attrib-inner-bold a {\n font-weight: bold;\n }\n\n .mappedin-ctrl-attrib-inner a:hover {\n color: #017ef1;\n text-decoration: underline;\n cursor: pointer;\n }\n\n .mappedin-ctrl-attrib-button {\n display: none;\n cursor: pointer;\n position: absolute;\n width: 15px;\n height: 15px;\n box-sizing: border-box;\n border-radius: 50%;\n top: 0;\n right: 2px;\n border: 1px;\n }\n .mappedin-ctrl-attrib-top-left .mappedin-ctrl-attrib-button,\n .mappedin-ctrl-attrib-bottom-left .mappedin-ctrl-attrib-button {\n left: 2px;\n }\n }\n}\n";var jT=[zI,$I,GI,ZI],i6e=o((e,t)=>{Bc.instance!=null&&UI.warn("Only a single map venue is supported at this time.");let r=new Bc([e.mapCenter.longitude,e.mapCenter.latitude],e,t);return Bc.instance=r,r},"createMapLibreOverlay"),zT=3,$T={debug:!1,pitch:45,bearing:0,antialiasing:{enabled:!0},shadingAndOutlines:!0,outdoorView:{layersHiddenByGeometry:["building","building-top"]},imagePlacementOptions:{mode:"default"},flipImagesToFaceCamera:!0,multiFloorView:{enabled:!1,floorGap:zT}},pa,fa,Vu,Oo,ha,Mc=class Mc{constructor(t,r,n){L(this,pa);L(this,fa);L(this,Vu);L(this,Oo);L(this,ha);h(this,"on",o((t,r)=>{c(this,pa).on(t,r)},"on"));h(this,"off",o((t,r)=>{c(this,pa).off(t,r)},"off"));K(this,pa,new Le),K(this,ha,new Ap(t)),K(this,fa,r),K(this,Vu,n)}onAdd(t){var i,a,u;let r=c(this,ha).onAdd(t),n=De(R(R({},$T),(i=c(this,Vu))!=null?i:{}),{outdoorView:R({token:c(this,fa).outdoorViewToken},(a=c(this,Vu))==null?void 0:a.outdoorView)});return K(this,Oo,new UT(c(this,ha).core)),((u=n.injectStyles)==null||u)&&jI(jT,{id:"mappedin__styles"}),c(this,Oo).addMap(c(this,fa),n).then(()=>{c(this,pa).publish("loaded",{mapView:c(this,Oo),mapData:c(this,fa)})}),r}onRemove(){c(this,Oo)&&c(this,Oo).clear(),Mc.instance=null,c(this,ha).onRemove()}};pa=new WeakMap,fa=new WeakMap,Vu=new WeakMap,Oo=new WeakMap,ha=new WeakMap,o(Mc,"MappedinMapLibreOverlay"),h(Mc,"instance");var Bc=Mc;export{$T as DEFAULT_MAP_OPTIONS,zT as FLOOR_GAP,Bc as MappedinMapLibreOverlay,i6e as createMapLibreOverlay};
1
+ import{$ as Yc,$a as rb,A as y4,Aa as j4,B as b4,Ba as z4,C as v4,Ca as $4,D as ko,Da as G4,E as x4,Ea as Z4,F as E4,Fa as V4,G as ee,Ga as Lo,H as Pa,Ha as W4,I as Qu,Ia as $r,J as I4,Ja as H4,K as hi,Ka as K4,L as C4,La as q4,M as gi,Ma as Vp,N as Up,Na as X4,O as Qi,Oa as Wp,P as at,Pa as Hp,Q as Xc,Qa as rl,R as es,Ra as J4,S as qt,Sa as Y4,T as jp,Ta as Kp,U as yi,Ua as Q4,V as D4,Va as eb,W as _o,Wa as qp,X as S4,Xa as tb,Y as ts,Ya as eo,Za as nl,_ as Jc,_a as Xp,a as Bp,aa as w4,ab as Jp,b as Op,ba as A4,bb as nb,c as Tp,ca as P4,cb as Ta,d as kp,da as zp,db as Yp,e as Vc,ea as F4,eb as il,f as Wc,fa as $p,fb as ib,g as To,ga as B4,gb as Qp,h as m4,ha as O4,hb as ob,i as p4,ia as Fa,ib as ab,j as _p,ja as M4,jb as ub,k as Yi,ka as T4,kb as sb,l as Lp,la as Qc,lb as cb,m as Hc,ma as Gp,mb as lb,n as Se,na as k4,nb as db,o as Rp,oa as Zp,ob as Vn,p as Zn,pa as rs,pb as mb,q as f4,qa as Ba,qb as fr,r as h4,ra as el,rb as pb,s as Kc,sa as Oa,sb as ol,t as g4,ta as Ma,tb as Wn,u as qc,ua as _4,ub as fb,v as Sa,va as L4,vb as zt,w as wa,wa as tl,wb as Hn,x as Np,xa as R4,xb as nr,y as Aa,ya as N4,z as Ae,za as U4}from"./chunk-GTHSGKQD.js";import{a as en}from"./chunk-HVZGK3U6.js";import{$ as Bt,B as _c,D as zn,E as $n,Ea as o4,F as Lc,Fa as Ia,G as Rc,Ga as a4,H as qy,Ha as Ca,I as ya,Ia as Da,J as ba,Ja as In,Ka as $c,L as Xy,La as u4,M as Me,Ma as Ju,N as $e,Oa as Yu,R as Jy,S as Yy,T as Qy,U as Nc,V as te,W as rr,X as e4,Y as wr,Ya as Gc,Z as va,_ as Qr,a as l,aa as t4,ab as Zc,b as y,ba as _r,bb as s4,ca as Ar,d as kc,da as Uc,e as Oo,ea as _e,f as qu,fa as xa,fb as c4,g as fi,h as Wy,ha as qi,hb as Ji,i as Xu,ia as r4,ja as Mp,jb as l4,ka as jc,la as Xi,lb as d4,r as Hy,t as Ky,ta as Gn,ua as n4,va as Ea,wa as zc,xa as i4,za as Mo}from"./chunk-TKKG67HL.js";import{a as N,b as Ce,c as o,d as Mc,e as Bo,g as jn,h as Ki,i as Tc,j as h,k as c,l as R,m as K,n as mt,o as Vy,p as X}from"./chunk-LUJQR5EH.js";var uf=jn((d9,ll)=>{l();(function(){"use strict";function e(u,s){var d=u.x-s.x,m=u.y-s.y;return d*d+m*m}o(e,"getSqDist");function r(u,s,d){var m=s.x,p=s.y,g=d.x-m,b=d.y-p;if(g!==0||b!==0){var v=((u.x-m)*g+(u.y-p)*b)/(g*g+b*b);v>1?(m=d.x,p=d.y):v>0&&(m+=g*v,p+=b*v)}return g=u.x-m,b=u.y-p,g*g+b*b}o(r,"getSqSegDist");function t(u,s){for(var d=u[0],m=[d],p,g=1,b=u.length;g<b;g++)p=u[g],e(p,d)>s&&(m.push(p),d=p);return d!==p&&m.push(p),m}o(t,"simplifyRadialDist");function n(u,s,d,m,p){for(var g=m,b,v=s+1;v<d;v++){var C=r(u[v],u[s],u[d]);C>g&&(b=v,g=C)}g>m&&(b-s>1&&n(u,s,b,m,p),p.push(u[b]),d-b>1&&n(u,b,d,m,p))}o(n,"simplifyDPStep");function i(u,s){var d=u.length-1,m=[u[0]];return n(u,0,d,s,m),m.push(u[d]),m}o(i,"simplifyDouglasPeucker");function a(u,s,d){if(u.length<=2)return u;var m=s!==void 0?s*s:1;return u=d?u:t(u,m),u=i(u,m),u}o(a,"simplify"),typeof define=="function"&&define.amd?define(function(){return a}):typeof ll<"u"?(ll.exports=a,ll.exports.default=a):typeof self<"u"?self.simplify=a:window.simplify=a})()});var r6=jn((qh,Xh)=>{l();(function(e,r){typeof qh=="object"&&typeof Xh<"u"?Xh.exports=r():typeof define=="function"&&define.amd?define(r):(e=e||self,e.TinyQueue=r())})(qh,function(){"use strict";var e=o(function(n,i){if(n===void 0&&(n=[]),i===void 0&&(i=r),this.data=n,this.length=this.data.length,this.compare=i,this.length>0)for(var a=(this.length>>1)-1;a>=0;a--)this._down(a)},"TinyQueue");e.prototype.push=o(function(n){this.data.push(n),this.length++,this._up(this.length-1)},"push"),e.prototype.pop=o(function(){if(this.length!==0){var n=this.data[0],i=this.data.pop();return this.length--,this.length>0&&(this.data[0]=i,this._down(0)),n}},"pop"),e.prototype.peek=o(function(){return this.data[0]},"peek"),e.prototype._up=o(function(n){for(var i=this,a=i.data,u=i.compare,s=a[n];n>0;){var d=n-1>>1,m=a[d];if(u(s,m)>=0)break;a[n]=m,n=d}a[n]=s},"_up"),e.prototype._down=o(function(n){for(var i=this,a=i.data,u=i.compare,s=this.length>>1,d=a[n];n<s;){var m=(n<<1)+1,p=a[m],g=m+1;if(g<this.length&&u(a[g],p)<0&&(m=g,p=a[g]),u(p,d)>=0)break;a[n]=p,n=m}a[n]=d},"_down");function r(t,n){return t<n?-1:t>n?1:0}return o(r,"defaultCompare"),e})});var i6=jn((Nme,Jh)=>{"use strict";l();var Xd=r6();Xd.default&&(Xd=Xd.default);Jh.exports=n6;Jh.exports.default=n6;function n6(e,r,t){r=r||1;for(var n,i,a,u,s=0;s<e[0].length;s++){var d=e[0][s];(!s||d[0]<n)&&(n=d[0]),(!s||d[1]<i)&&(i=d[1]),(!s||d[0]>a)&&(a=d[0]),(!s||d[1]>u)&&(u=d[1])}var m=a-n,p=u-i,g=Math.min(m,p),b=g/2;if(g===0){var v=[n,i];return v.distance=0,v}for(var C=new Xd(void 0,oM),A=n;A<a;A+=g)for(var x=i;x<u;x+=g)C.push(new ho(A+b,x+b,b,e));var E=uM(e),S=new ho(n+m/2,i+p/2,0,e);S.d>E.d&&(E=S);for(var D=C.length;C.length;){var I=C.pop();I.d>E.d&&(E=I,t&&console.log("found best %d after %d probes",Math.round(1e4*I.d)/1e4,D)),!(I.max-E.d<=r)&&(b=I.h/2,C.push(new ho(I.x-b,I.y-b,b,e)),C.push(new ho(I.x+b,I.y-b,b,e)),C.push(new ho(I.x-b,I.y+b,b,e)),C.push(new ho(I.x+b,I.y+b,b,e)),D+=4)}t&&(console.log("num probes: "+D),console.log("best distance: "+E.d));var T=[E.x,E.y];return T.distance=E.d,T}o(n6,"polylabel");function oM(e,r){return r.max-e.max}o(oM,"compareMax");function ho(e,r,t,n){this.x=e,this.y=r,this.h=t,this.d=aM(e,r,n),this.max=this.d+this.h*Math.SQRT2}o(ho,"Cell");function aM(e,r,t){for(var n=!1,i=1/0,a=0;a<t.length;a++)for(var u=t[a],s=0,d=u.length,m=d-1;s<d;m=s++){var p=u[s],g=u[m];p[1]>r!=g[1]>r&&e<(g[0]-p[0])*(r-p[1])/(g[1]-p[1])+p[0]&&(n=!n),i=Math.min(i,sM(e,r,p,g))}return i===0?0:(n?1:-1)*Math.sqrt(i)}o(aM,"pointToPolygonDist");function uM(e){for(var r=0,t=0,n=0,i=e[0],a=0,u=i.length,s=u-1;a<u;s=a++){var d=i[a],m=i[s],p=d[0]*m[1]-m[0]*d[1];t+=(d[0]+m[0])*p,n+=(d[1]+m[1])*p,r+=p*3}return r===0?new ho(i[0][0],i[0][1],0,e):new ho(t/r,n/r,0,e)}o(uM,"getCentroidCell");function sM(e,r,t,n){var i=t[0],a=t[1],u=n[0]-i,s=n[1]-a;if(u!==0||s!==0){var d=((e-i)*u+(r-a)*s)/(u*u+s*s);d>1?(i=n[0],a=n[1]):d>0&&(i+=u*d,a+=s*d)}return u=e-i,s=r-a,u*u+s*s}o(sM,"getSegDistSq")});var oI=jn((oy,ay)=>{l();(function(e,r){typeof oy=="object"&&typeof ay<"u"?ay.exports=r():typeof define=="function"&&define.amd?define(r):(e=e||self).RBush=r()})(oy,function(){"use strict";function e(x,E,S,D,I){o(function T(V,$,O,M,Z){for(;M>O;){if(M-O>600){var z=M-O+1,re=$-O+1,k=Math.log(z),H=.5*Math.exp(2*k/3),q=.5*Math.sqrt(k*H*(z-H)/z)*(re-z/2<0?-1:1),G=Math.max(O,Math.floor($-re*H/z+q)),ae=Math.min(M,Math.floor($+(z-re)*H/z+q));T(V,$,G,ae,Z)}var oe=V[$],Y=O,le=M;for(r(V,O,$),Z(V[M],oe)>0&&r(V,O,M);Y<le;){for(r(V,Y,le),Y++,le--;Z(V[Y],oe)<0;)Y++;for(;Z(V[le],oe)>0;)le--}Z(V[O],oe)===0?r(V,O,le):r(V,++le,M),le<=$&&(O=le+1),$<=le&&(M=le-1)}},"t")(x,E,S||0,D||x.length-1,I||t)}o(e,"t");function r(x,E,S){var D=x[E];x[E]=x[S],x[S]=D}o(r,"i");function t(x,E){return x<E?-1:x>E?1:0}o(t,"n");var n=o(function(x){x===void 0&&(x=9),this._maxEntries=Math.max(4,x),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()},"r");function i(x,E,S){if(!S)return E.indexOf(x);for(var D=0;D<E.length;D++)if(S(x,E[D]))return D;return-1}o(i,"e");function a(x,E){u(x,0,x.children.length,E,x)}o(a,"a");function u(x,E,S,D,I){I||(I=C(null)),I.minX=1/0,I.minY=1/0,I.maxX=-1/0,I.maxY=-1/0;for(var T=E;T<S;T++){var V=x.children[T];s(I,x.leaf?D(V):V)}return I}o(u,"h");function s(x,E){return x.minX=Math.min(x.minX,E.minX),x.minY=Math.min(x.minY,E.minY),x.maxX=Math.max(x.maxX,E.maxX),x.maxY=Math.max(x.maxY,E.maxY),x}o(s,"o");function d(x,E){return x.minX-E.minX}o(d,"s");function m(x,E){return x.minY-E.minY}o(m,"l");function p(x){return(x.maxX-x.minX)*(x.maxY-x.minY)}o(p,"f");function g(x){return x.maxX-x.minX+(x.maxY-x.minY)}o(g,"u");function b(x,E){return x.minX<=E.minX&&x.minY<=E.minY&&E.maxX<=x.maxX&&E.maxY<=x.maxY}o(b,"m");function v(x,E){return E.minX<=x.maxX&&E.minY<=x.maxY&&E.maxX>=x.minX&&E.maxY>=x.minY}o(v,"c");function C(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}o(C,"p");function A(x,E,S,D,I){for(var T=[E,S];T.length;)if(!((S=T.pop())-(E=T.pop())<=D)){var V=E+Math.ceil((S-E)/D/2)*D;e(x,V,E,S,I),T.push(E,V,V,S)}}return o(A,"d"),n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(x){var E=this.data,S=[];if(!v(x,E))return S;for(var D=this.toBBox,I=[];E;){for(var T=0;T<E.children.length;T++){var V=E.children[T],$=E.leaf?D(V):V;v(x,$)&&(E.leaf?S.push(V):b(x,$)?this._all(V,S):I.push(V))}E=I.pop()}return S},n.prototype.collides=function(x){var E=this.data;if(!v(x,E))return!1;for(var S=[];E;){for(var D=0;D<E.children.length;D++){var I=E.children[D],T=E.leaf?this.toBBox(I):I;if(v(x,T)){if(E.leaf||b(x,T))return!0;S.push(I)}}E=S.pop()}return!1},n.prototype.load=function(x){if(!x||!x.length)return this;if(x.length<this._minEntries){for(var E=0;E<x.length;E++)this.insert(x[E]);return this}var S=this._build(x.slice(),0,x.length-1,0);if(this.data.children.length)if(this.data.height===S.height)this._splitRoot(this.data,S);else{if(this.data.height<S.height){var D=this.data;this.data=S,S=D}this._insert(S,this.data.height-S.height-1,!0)}else this.data=S;return this},n.prototype.insert=function(x){return x&&this._insert(x,this.data.height-1),this},n.prototype.clear=function(){return this.data=C([]),this},n.prototype.remove=function(x,E){if(!x)return this;for(var S,D,I,T=this.data,V=this.toBBox(x),$=[],O=[];T||$.length;){if(T||(T=$.pop(),D=$[$.length-1],S=O.pop(),I=!0),T.leaf){var M=i(x,T.children,E);if(M!==-1)return T.children.splice(M,1),$.push(T),this._condense($),this}I||T.leaf||!b(T,V)?D?(S++,T=D.children[S],I=!1):T=null:($.push(T),O.push(S),S=0,D=T,T=T.children[0])}return this},n.prototype.toBBox=function(x){return x},n.prototype.compareMinX=function(x,E){return x.minX-E.minX},n.prototype.compareMinY=function(x,E){return x.minY-E.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(x){return this.data=x,this},n.prototype._all=function(x,E){for(var S=[];x;)x.leaf?E.push.apply(E,x.children):S.push.apply(S,x.children),x=S.pop();return E},n.prototype._build=function(x,E,S,D){var I,T=S-E+1,V=this._maxEntries;if(T<=V)return a(I=C(x.slice(E,S+1)),this.toBBox),I;D||(D=Math.ceil(Math.log(T)/Math.log(V)),V=Math.ceil(T/Math.pow(V,D-1))),(I=C([])).leaf=!1,I.height=D;var $=Math.ceil(T/V),O=$*Math.ceil(Math.sqrt(V));A(x,E,S,O,this.compareMinX);for(var M=E;M<=S;M+=O){var Z=Math.min(M+O-1,S);A(x,M,Z,$,this.compareMinY);for(var z=M;z<=Z;z+=$){var re=Math.min(z+$-1,Z);I.children.push(this._build(x,z,re,D-1))}}return a(I,this.toBBox),I},n.prototype._chooseSubtree=function(x,E,S,D){for(;D.push(E),!E.leaf&&D.length-1!==S;){for(var I=1/0,T=1/0,V=void 0,$=0;$<E.children.length;$++){var O=E.children[$],M=p(O),Z=(z=x,re=O,(Math.max(re.maxX,z.maxX)-Math.min(re.minX,z.minX))*(Math.max(re.maxY,z.maxY)-Math.min(re.minY,z.minY))-M);Z<T?(T=Z,I=M<I?M:I,V=O):Z===T&&M<I&&(I=M,V=O)}E=V||E.children[0]}var z,re;return E},n.prototype._insert=function(x,E,S){var D=S?x:this.toBBox(x),I=[],T=this._chooseSubtree(D,this.data,E,I);for(T.children.push(x),s(T,D);E>=0&&I[E].children.length>this._maxEntries;)this._split(I,E),E--;this._adjustParentBBoxes(D,I,E)},n.prototype._split=function(x,E){var S=x[E],D=S.children.length,I=this._minEntries;this._chooseSplitAxis(S,I,D);var T=this._chooseSplitIndex(S,I,D),V=C(S.children.splice(T,S.children.length-T));V.height=S.height,V.leaf=S.leaf,a(S,this.toBBox),a(V,this.toBBox),E?x[E-1].children.push(V):this._splitRoot(S,V)},n.prototype._splitRoot=function(x,E){this.data=C([x,E]),this.data.height=x.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(x,E,S){for(var D,I,T,V,$,O,M,Z=1/0,z=1/0,re=E;re<=S-E;re++){var k=u(x,0,re,this.toBBox),H=u(x,re,S,this.toBBox),q=(I=k,T=H,V=void 0,$=void 0,O=void 0,M=void 0,V=Math.max(I.minX,T.minX),$=Math.max(I.minY,T.minY),O=Math.min(I.maxX,T.maxX),M=Math.min(I.maxY,T.maxY),Math.max(0,O-V)*Math.max(0,M-$)),G=p(k)+p(H);q<Z?(Z=q,D=re,z=G<z?G:z):q===Z&&G<z&&(z=G,D=re)}return D||S-E},n.prototype._chooseSplitAxis=function(x,E,S){var D=x.leaf?this.compareMinX:d,I=x.leaf?this.compareMinY:m;this._allDistMargin(x,E,S,D)<this._allDistMargin(x,E,S,I)&&x.children.sort(D)},n.prototype._allDistMargin=function(x,E,S,D){x.children.sort(D);for(var I=this.toBBox,T=u(x,0,E,I),V=u(x,S-E,S,I),$=g(T)+g(V),O=E;O<S-E;O++){var M=x.children[O];s(T,x.leaf?I(M):M),$+=g(T)}for(var Z=S-E-1;Z>=E;Z--){var z=x.children[Z];s(V,x.leaf?I(z):z),$+=g(V)}return $},n.prototype._adjustParentBBoxes=function(x,E,S){for(var D=S;D>=0;D--)s(E[D],x)},n.prototype._condense=function(x){for(var E=x.length-1,S=void 0;E>=0;E--)x[E].children.length===0?E>0?(S=x[E-1].children).splice(S.indexOf(x[E]),1):this.clear():a(x[E],this.toBBox)},n})});var dy=jn(ge=>{"use strict";l();Object.defineProperty(ge,"__esModule",{value:!0});ge.earthRadius=63710088e-1;ge.factors={centimeters:ge.earthRadius*100,centimetres:ge.earthRadius*100,degrees:ge.earthRadius/111325,feet:ge.earthRadius*3.28084,inches:ge.earthRadius*39.37,kilometers:ge.earthRadius/1e3,kilometres:ge.earthRadius/1e3,meters:ge.earthRadius,metres:ge.earthRadius,miles:ge.earthRadius/1609.344,millimeters:ge.earthRadius*1e3,millimetres:ge.earthRadius*1e3,nauticalmiles:ge.earthRadius/1852,radians:1,yards:ge.earthRadius*1.0936};ge.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/ge.earthRadius,yards:1.0936133};ge.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function So(e,r,t){t===void 0&&(t={});var n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}o(So,"feature");ge.feature=So;function W7(e,r,t){switch(t===void 0&&(t={}),e){case"Point":return uy(r).geometry;case"LineString":return cy(r).geometry;case"Polygon":return sy(r).geometry;case"MultiPoint":return uI(r).geometry;case"MultiLineString":return aI(r).geometry;case"MultiPolygon":return sI(r).geometry;default:throw new Error(e+" is invalid")}}o(W7,"geometry");ge.geometry=W7;function uy(e,r,t){if(t===void 0&&(t={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Vm(e[0])||!Vm(e[1]))throw new Error("coordinates must contain numbers");var n={type:"Point",coordinates:e};return So(n,r,t)}o(uy,"point");ge.point=uy;function H7(e,r,t){return t===void 0&&(t={}),Wm(e.map(function(n){return uy(n,r)}),t)}o(H7,"points");ge.points=H7;function sy(e,r,t){t===void 0&&(t={});for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var u=0;u<a[a.length-1].length;u++)if(a[a.length-1][u]!==a[0][u])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:e};return So(s,r,t)}o(sy,"polygon");ge.polygon=sy;function K7(e,r,t){return t===void 0&&(t={}),Wm(e.map(function(n){return sy(n,r)}),t)}o(K7,"polygons");ge.polygons=K7;function cy(e,r,t){if(t===void 0&&(t={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var n={type:"LineString",coordinates:e};return So(n,r,t)}o(cy,"lineString");ge.lineString=cy;function q7(e,r,t){return t===void 0&&(t={}),Wm(e.map(function(n){return cy(n,r)}),t)}o(q7,"lineStrings");ge.lineStrings=q7;function Wm(e,r){r===void 0&&(r={});var t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}o(Wm,"featureCollection");ge.featureCollection=Wm;function aI(e,r,t){t===void 0&&(t={});var n={type:"MultiLineString",coordinates:e};return So(n,r,t)}o(aI,"multiLineString");ge.multiLineString=aI;function uI(e,r,t){t===void 0&&(t={});var n={type:"MultiPoint",coordinates:e};return So(n,r,t)}o(uI,"multiPoint");ge.multiPoint=uI;function sI(e,r,t){t===void 0&&(t={});var n={type:"MultiPolygon",coordinates:e};return So(n,r,t)}o(sI,"multiPolygon");ge.multiPolygon=sI;function X7(e,r,t){t===void 0&&(t={});var n={type:"GeometryCollection",geometries:e};return So(n,r,t)}o(X7,"geometryCollection");ge.geometryCollection=X7;function J7(e,r){if(r===void 0&&(r=0),r&&!(r>=0))throw new Error("precision must be a positive number");var t=Math.pow(10,r||0);return Math.round(e*t)/t}o(J7,"round");ge.round=J7;function cI(e,r){r===void 0&&(r="kilometers");var t=ge.factors[r];if(!t)throw new Error(r+" units is invalid");return e*t}o(cI,"radiansToLength");ge.radiansToLength=cI;function ly(e,r){r===void 0&&(r="kilometers");var t=ge.factors[r];if(!t)throw new Error(r+" units is invalid");return e/t}o(ly,"lengthToRadians");ge.lengthToRadians=ly;function Y7(e,r){return lI(ly(e,r))}o(Y7,"lengthToDegrees");ge.lengthToDegrees=Y7;function Q7(e){var r=e%360;return r<0&&(r+=360),r}o(Q7,"bearingToAzimuth");ge.bearingToAzimuth=Q7;function lI(e){var r=e%(2*Math.PI);return r*180/Math.PI}o(lI,"radiansToDegrees");ge.radiansToDegrees=lI;function eT(e){var r=e%360;return r*Math.PI/180}o(eT,"degreesToRadians");ge.degreesToRadians=eT;function tT(e,r,t){if(r===void 0&&(r="kilometers"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("length must be a positive number");return cI(ly(e,r),t)}o(tT,"convertLength");ge.convertLength=tT;function rT(e,r,t){if(r===void 0&&(r="meters"),t===void 0&&(t="kilometers"),!(e>=0))throw new Error("area must be a positive number");var n=ge.areaFactors[r];if(!n)throw new Error("invalid original units");var i=ge.areaFactors[t];if(!i)throw new Error("invalid final units");return e/n*i}o(rT,"convertArea");ge.convertArea=rT;function Vm(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}o(Vm,"isNumber");ge.isNumber=Vm;function nT(e){return!!e&&e.constructor===Object}o(nT,"isObject");ge.isObject=nT;function iT(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(r){if(!Vm(r))throw new Error("bbox must only contain numbers")})}o(iT,"validateBBox");ge.validateBBox=iT;function oT(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}o(oT,"validateId");ge.validateId=oT});var hI=jn(Wt=>{"use strict";l();Object.defineProperty(Wt,"__esModule",{value:!0});var Cr=dy();function fc(e,r,t){if(e!==null)for(var n,i,a,u,s,d,m,p=0,g=0,b,v=e.type,C=v==="FeatureCollection",A=v==="Feature",x=C?e.features.length:1,E=0;E<x;E++){m=C?e.features[E].geometry:A?e.geometry:e,b=m?m.type==="GeometryCollection":!1,s=b?m.geometries.length:1;for(var S=0;S<s;S++){var D=0,I=0;if(u=b?m.geometries[S]:m,u!==null){d=u.coordinates;var T=u.type;switch(p=t&&(T==="Polygon"||T==="MultiPolygon")?1:0,T){case null:break;case"Point":if(r(d,g,E,D,I)===!1)return!1;g++,D++;break;case"LineString":case"MultiPoint":for(n=0;n<d.length;n++){if(r(d[n],g,E,D,I)===!1)return!1;g++,T==="MultiPoint"&&D++}T==="LineString"&&D++;break;case"Polygon":case"MultiLineString":for(n=0;n<d.length;n++){for(i=0;i<d[n].length-p;i++){if(r(d[n][i],g,E,D,I)===!1)return!1;g++}T==="MultiLineString"&&D++,T==="Polygon"&&I++}T==="Polygon"&&D++;break;case"MultiPolygon":for(n=0;n<d.length;n++){for(I=0,i=0;i<d[n].length;i++){for(a=0;a<d[n][i].length-p;a++){if(r(d[n][i][a],g,E,D,I)===!1)return!1;g++}I++}D++}break;case"GeometryCollection":for(n=0;n<u.geometries.length;n++)if(fc(u.geometries[n],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}o(fc,"coordEach");function aT(e,r,t,n){var i=t;return fc(e,function(a,u,s,d,m){u===0&&t===void 0?i=a:i=r(i,a,u,s,d,m)},n),i}o(aT,"coordReduce");function dI(e,r){var t;switch(e.type){case"FeatureCollection":for(t=0;t<e.features.length&&r(e.features[t].properties,t)!==!1;t++);break;case"Feature":r(e.properties,0);break}}o(dI,"propEach");function uT(e,r,t){var n=t;return dI(e,function(i,a){a===0&&t===void 0?n=i:n=r(n,i,a)}),n}o(uT,"propReduce");function mI(e,r){if(e.type==="Feature")r(e,0);else if(e.type==="FeatureCollection")for(var t=0;t<e.features.length&&r(e.features[t],t)!==!1;t++);}o(mI,"featureEach");function sT(e,r,t){var n=t;return mI(e,function(i,a){a===0&&t===void 0?n=i:n=r(n,i,a)}),n}o(sT,"featureReduce");function cT(e){var r=[];return fc(e,function(t){r.push(t)}),r}o(cT,"coordAll");function my(e,r){var t,n,i,a,u,s,d,m,p,g,b=0,v=e.type==="FeatureCollection",C=e.type==="Feature",A=v?e.features.length:1;for(t=0;t<A;t++){for(s=v?e.features[t].geometry:C?e.geometry:e,m=v?e.features[t].properties:C?e.properties:{},p=v?e.features[t].bbox:C?e.bbox:void 0,g=v?e.features[t].id:C?e.id:void 0,d=s?s.type==="GeometryCollection":!1,u=d?s.geometries.length:1,i=0;i<u;i++){if(a=d?s.geometries[i]:s,a===null){if(r(null,b,m,p,g)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(a,b,m,p,g)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(r(a.geometries[n],b,m,p,g)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}b++}}o(my,"geomEach");function lT(e,r,t){var n=t;return my(e,function(i,a,u,s,d){a===0&&t===void 0?n=i:n=r(n,i,a,u,s,d)}),n}o(lT,"geomReduce");function Hm(e,r){my(e,function(t,n,i,a,u){var s=t===null?null:t.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return r(Cr.feature(t,i,{bbox:a,id:u}),n,0)===!1?!1:void 0}var d;switch(s){case"MultiPoint":d="Point";break;case"MultiLineString":d="LineString";break;case"MultiPolygon":d="Polygon";break}for(var m=0;m<t.coordinates.length;m++){var p=t.coordinates[m],g={type:d,coordinates:p};if(r(Cr.feature(g,i),n,m)===!1)return!1}})}o(Hm,"flattenEach");function dT(e,r,t){var n=t;return Hm(e,function(i,a,u){a===0&&u===0&&t===void 0?n=i:n=r(n,i,a,u)}),n}o(dT,"flattenReduce");function pI(e,r){Hm(e,function(t,n,i){var a=0;if(t.geometry){var u=t.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var s,d=0,m=0,p=0;if(fc(t,function(g,b,v,C,A){if(s===void 0||n>d||C>m||A>p){s=g,d=n,m=C,p=A,a=0;return}var x=Cr.lineString([s,g],t.properties);if(r(x,n,i,A,a)===!1)return!1;a++,s=g})===!1)return!1}}})}o(pI,"segmentEach");function mT(e,r,t){var n=t,i=!1;return pI(e,function(a,u,s,d,m){i===!1&&t===void 0?n=a:n=r(n,a,u,s,d,m),i=!0}),n}o(mT,"segmentReduce");function fI(e,r){if(!e)throw new Error("geojson is required");Hm(e,function(t,n,i){if(t.geometry!==null){var a=t.geometry.type,u=t.geometry.coordinates;switch(a){case"LineString":if(r(t,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<u.length;s++)if(r(Cr.lineString(u[s],t.properties),n,i,s)===!1)return!1;break}}})}o(fI,"lineEach");function pT(e,r,t){var n=t;return fI(e,function(i,a,u,s){a===0&&t===void 0?n=i:n=r(n,i,a,u,s)}),n}o(pT,"lineReduce");function fT(e,r){if(r=r||{},!Cr.isObject(r))throw new Error("options is invalid");var t=r.featureIndex||0,n=r.multiFeatureIndex||0,i=r.geometryIndex||0,a=r.segmentIndex||0,u=r.properties,s;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),u=u||e.features[t].properties,s=e.features[t].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=d.length+a-1),Cr.lineString([d[a],d[a+1]],u,r);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a-1),Cr.lineString([d[i][a],d[i][a+1]],u,r);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a-1),Cr.lineString([d[n][a],d[n][a+1]],u,r);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a-1),Cr.lineString([d[n][i][a],d[n][i][a+1]],u,r)}throw new Error("geojson is invalid")}o(fT,"findSegment");function hT(e,r){if(r=r||{},!Cr.isObject(r))throw new Error("options is invalid");var t=r.featureIndex||0,n=r.multiFeatureIndex||0,i=r.geometryIndex||0,a=r.coordIndex||0,u=r.properties,s;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),u=u||e.features[t].properties,s=e.features[t].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":return Cr.point(d,u,r);case"MultiPoint":return n<0&&(n=d.length+n),Cr.point(d[n],u,r);case"LineString":return a<0&&(a=d.length+a),Cr.point(d[a],u,r);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a),Cr.point(d[i][a],u,r);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a),Cr.point(d[n][a],u,r);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a),Cr.point(d[n][i][a],u,r)}throw new Error("geojson is invalid")}o(hT,"findPoint");Wt.coordAll=cT;Wt.coordEach=fc;Wt.coordReduce=aT;Wt.featureEach=mI;Wt.featureReduce=sT;Wt.findPoint=hT;Wt.findSegment=fT;Wt.flattenEach=Hm;Wt.flattenReduce=dT;Wt.geomEach=my;Wt.geomReduce=lT;Wt.lineEach=fI;Wt.lineReduce=pT;Wt.propEach=dI;Wt.propReduce=uT;Wt.segmentEach=pI;Wt.segmentReduce=mT});var EI=jn(Xe=>{"use strict";l();Object.defineProperty(Xe,"__esModule",{value:!0});var zr=63710088e-1,fy={centimeters:zr*100,centimetres:zr*100,degrees:360/(2*Math.PI),feet:zr*3.28084,inches:zr*39.37,kilometers:zr/1e3,kilometres:zr/1e3,meters:zr,metres:zr,miles:zr/1609.344,millimeters:zr*1e3,millimetres:zr*1e3,nauticalmiles:zr/1852,radians:1,yards:zr*1.0936},py={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function wo(e,r,t={}){let n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=r||{},n.geometry=e,n}o(wo,"feature");function gT(e,r,t={}){switch(e){case"Point":return hy(r).geometry;case"LineString":return yy(r).geometry;case"Polygon":return gy(r).geometry;case"MultiPoint":return yI(r).geometry;case"MultiLineString":return gI(r).geometry;case"MultiPolygon":return bI(r).geometry;default:throw new Error(e+" is invalid")}}o(gT,"geometry");function hy(e,r,t={}){if(!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Km(e[0])||!Km(e[1]))throw new Error("coordinates must contain numbers");return wo({type:"Point",coordinates:e},r,t)}o(hy,"point");function yT(e,r,t={}){return qm(e.map(n=>hy(n,r)),t)}o(yT,"points");function gy(e,r,t={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;a<i[i.length-1].length;a++)if(i[i.length-1][a]!==i[0][a])throw new Error("First and last Position are not equivalent.")}return wo({type:"Polygon",coordinates:e},r,t)}o(gy,"polygon");function bT(e,r,t={}){return qm(e.map(n=>gy(n,r)),t)}o(bT,"polygons");function yy(e,r,t={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return wo({type:"LineString",coordinates:e},r,t)}o(yy,"lineString");function vT(e,r,t={}){return qm(e.map(n=>yy(n,r)),t)}o(vT,"lineStrings");function qm(e,r={}){let t={type:"FeatureCollection"};return r.id&&(t.id=r.id),r.bbox&&(t.bbox=r.bbox),t.features=e,t}o(qm,"featureCollection");function gI(e,r,t={}){return wo({type:"MultiLineString",coordinates:e},r,t)}o(gI,"multiLineString");function yI(e,r,t={}){return wo({type:"MultiPoint",coordinates:e},r,t)}o(yI,"multiPoint");function bI(e,r,t={}){return wo({type:"MultiPolygon",coordinates:e},r,t)}o(bI,"multiPolygon");function xT(e,r,t={}){return wo({type:"GeometryCollection",geometries:e},r,t)}o(xT,"geometryCollection");function ET(e,r=0){if(r&&!(r>=0))throw new Error("precision must be a positive number");let t=Math.pow(10,r||0);return Math.round(e*t)/t}o(ET,"round");function vI(e,r="kilometers"){let t=fy[r];if(!t)throw new Error(r+" units is invalid");return e*t}o(vI,"radiansToLength");function by(e,r="kilometers"){let t=fy[r];if(!t)throw new Error(r+" units is invalid");return e/t}o(by,"lengthToRadians");function IT(e,r){return xI(by(e,r))}o(IT,"lengthToDegrees");function CT(e){let r=e%360;return r<0&&(r+=360),r}o(CT,"bearingToAzimuth");function DT(e){return e=e%360,e>180?e-360:e<-180?e+360:e}o(DT,"azimuthToBearing");function xI(e){return e%(2*Math.PI)*180/Math.PI}o(xI,"radiansToDegrees");function ST(e){return e%360*Math.PI/180}o(ST,"degreesToRadians");function wT(e,r="kilometers",t="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return vI(by(e,r),t)}o(wT,"convertLength");function AT(e,r="meters",t="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=py[r];if(!n)throw new Error("invalid original units");let i=py[t];if(!i)throw new Error("invalid final units");return e/n*i}o(AT,"convertArea");function Km(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}o(Km,"isNumber");function PT(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}o(PT,"isObject");function FT(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(r=>{if(!Km(r))throw new Error("bbox must only contain numbers")})}o(FT,"validateBBox");function BT(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}o(BT,"validateId");Xe.areaFactors=py;Xe.azimuthToBearing=DT;Xe.bearingToAzimuth=CT;Xe.convertArea=AT;Xe.convertLength=wT;Xe.degreesToRadians=ST;Xe.earthRadius=zr;Xe.factors=fy;Xe.feature=wo;Xe.featureCollection=qm;Xe.geometry=gT;Xe.geometryCollection=xT;Xe.isNumber=Km;Xe.isObject=PT;Xe.lengthToDegrees=IT;Xe.lengthToRadians=by;Xe.lineString=yy;Xe.lineStrings=vT;Xe.multiLineString=gI;Xe.multiPoint=yI;Xe.multiPolygon=bI;Xe.point=hy;Xe.points=yT;Xe.polygon=gy;Xe.polygons=bT;Xe.radiansToDegrees=xI;Xe.radiansToLength=vI;Xe.round=ET;Xe.validateBBox=FT;Xe.validateId=BT});var wI=jn(Ht=>{"use strict";l();Object.defineProperty(Ht,"__esModule",{value:!0});var Dr=EI();function hc(e,r,t){if(e!==null)for(var n,i,a,u,s,d,m,p=0,g=0,b,v=e.type,C=v==="FeatureCollection",A=v==="Feature",x=C?e.features.length:1,E=0;E<x;E++){m=C?e.features[E].geometry:A?e.geometry:e,b=m?m.type==="GeometryCollection":!1,s=b?m.geometries.length:1;for(var S=0;S<s;S++){var D=0,I=0;if(u=b?m.geometries[S]:m,u!==null){d=u.coordinates;var T=u.type;switch(p=t&&(T==="Polygon"||T==="MultiPolygon")?1:0,T){case null:break;case"Point":if(r(d,g,E,D,I)===!1)return!1;g++,D++;break;case"LineString":case"MultiPoint":for(n=0;n<d.length;n++){if(r(d[n],g,E,D,I)===!1)return!1;g++,T==="MultiPoint"&&D++}T==="LineString"&&D++;break;case"Polygon":case"MultiLineString":for(n=0;n<d.length;n++){for(i=0;i<d[n].length-p;i++){if(r(d[n][i],g,E,D,I)===!1)return!1;g++}T==="MultiLineString"&&D++,T==="Polygon"&&I++}T==="Polygon"&&D++;break;case"MultiPolygon":for(n=0;n<d.length;n++){for(I=0,i=0;i<d[n].length;i++){for(a=0;a<d[n][i].length-p;a++){if(r(d[n][i][a],g,E,D,I)===!1)return!1;g++}I++}D++}break;case"GeometryCollection":for(n=0;n<u.geometries.length;n++)if(hc(u.geometries[n],r,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}o(hc,"coordEach");function OT(e,r,t,n){var i=t;return hc(e,function(a,u,s,d,m){u===0&&t===void 0?i=a:i=r(i,a,u,s,d,m)},n),i}o(OT,"coordReduce");function II(e,r){var t;switch(e.type){case"FeatureCollection":for(t=0;t<e.features.length&&r(e.features[t].properties,t)!==!1;t++);break;case"Feature":r(e.properties,0);break}}o(II,"propEach");function MT(e,r,t){var n=t;return II(e,function(i,a){a===0&&t===void 0?n=i:n=r(n,i,a)}),n}o(MT,"propReduce");function CI(e,r){if(e.type==="Feature")r(e,0);else if(e.type==="FeatureCollection")for(var t=0;t<e.features.length&&r(e.features[t],t)!==!1;t++);}o(CI,"featureEach");function TT(e,r,t){var n=t;return CI(e,function(i,a){a===0&&t===void 0?n=i:n=r(n,i,a)}),n}o(TT,"featureReduce");function kT(e){var r=[];return hc(e,function(t){r.push(t)}),r}o(kT,"coordAll");function vy(e,r){var t,n,i,a,u,s,d,m,p,g,b=0,v=e.type==="FeatureCollection",C=e.type==="Feature",A=v?e.features.length:1;for(t=0;t<A;t++){for(s=v?e.features[t].geometry:C?e.geometry:e,m=v?e.features[t].properties:C?e.properties:{},p=v?e.features[t].bbox:C?e.bbox:void 0,g=v?e.features[t].id:C?e.id:void 0,d=s?s.type==="GeometryCollection":!1,u=d?s.geometries.length:1,i=0;i<u;i++){if(a=d?s.geometries[i]:s,a===null){if(r(null,b,m,p,g)===!1)return!1;continue}switch(a.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(r(a,b,m,p,g)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<a.geometries.length;n++)if(r(a.geometries[n],b,m,p,g)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}b++}}o(vy,"geomEach");function _T(e,r,t){var n=t;return vy(e,function(i,a,u,s,d){a===0&&t===void 0?n=i:n=r(n,i,a,u,s,d)}),n}o(_T,"geomReduce");function Xm(e,r){vy(e,function(t,n,i,a,u){var s=t===null?null:t.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return r(Dr.feature.call(void 0,t,i,{bbox:a,id:u}),n,0)===!1?!1:void 0}var d;switch(s){case"MultiPoint":d="Point";break;case"MultiLineString":d="LineString";break;case"MultiPolygon":d="Polygon";break}for(var m=0;m<t.coordinates.length;m++){var p=t.coordinates[m],g={type:d,coordinates:p};if(r(Dr.feature.call(void 0,g,i),n,m)===!1)return!1}})}o(Xm,"flattenEach");function LT(e,r,t){var n=t;return Xm(e,function(i,a,u){a===0&&u===0&&t===void 0?n=i:n=r(n,i,a,u)}),n}o(LT,"flattenReduce");function DI(e,r){Xm(e,function(t,n,i){var a=0;if(t.geometry){var u=t.geometry.type;if(!(u==="Point"||u==="MultiPoint")){var s,d=0,m=0,p=0;if(hc(t,function(g,b,v,C,A){if(s===void 0||n>d||C>m||A>p){s=g,d=n,m=C,p=A,a=0;return}var x=Dr.lineString.call(void 0,[s,g],t.properties);if(r(x,n,i,A,a)===!1)return!1;a++,s=g})===!1)return!1}}})}o(DI,"segmentEach");function RT(e,r,t){var n=t,i=!1;return DI(e,function(a,u,s,d,m){i===!1&&t===void 0?n=a:n=r(n,a,u,s,d,m),i=!0}),n}o(RT,"segmentReduce");function SI(e,r){if(!e)throw new Error("geojson is required");Xm(e,function(t,n,i){if(t.geometry!==null){var a=t.geometry.type,u=t.geometry.coordinates;switch(a){case"LineString":if(r(t,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s<u.length;s++)if(r(Dr.lineString.call(void 0,u[s],t.properties),n,i,s)===!1)return!1;break}}})}o(SI,"lineEach");function NT(e,r,t){var n=t;return SI(e,function(i,a,u,s){a===0&&t===void 0?n=i:n=r(n,i,a,u,s)}),n}o(NT,"lineReduce");function UT(e,r){if(r=r||{},!Dr.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,n=r.multiFeatureIndex||0,i=r.geometryIndex||0,a=r.segmentIndex||0,u=r.properties,s;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),u=u||e.features[t].properties,s=e.features[t].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":case"MultiPoint":return null;case"LineString":return a<0&&(a=d.length+a-1),Dr.lineString.call(void 0,[d[a],d[a+1]],u,r);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a-1),Dr.lineString.call(void 0,[d[i][a],d[i][a+1]],u,r);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a-1),Dr.lineString.call(void 0,[d[n][a],d[n][a+1]],u,r);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a-1),Dr.lineString.call(void 0,[d[n][i][a],d[n][i][a+1]],u,r)}throw new Error("geojson is invalid")}o(UT,"findSegment");function jT(e,r){if(r=r||{},!Dr.isObject.call(void 0,r))throw new Error("options is invalid");var t=r.featureIndex||0,n=r.multiFeatureIndex||0,i=r.geometryIndex||0,a=r.coordIndex||0,u=r.properties,s;switch(e.type){case"FeatureCollection":t<0&&(t=e.features.length+t),u=u||e.features[t].properties,s=e.features[t].geometry;break;case"Feature":u=u||e.properties,s=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":s=e;break;default:throw new Error("geojson is invalid")}if(s===null)return null;var d=s.coordinates;switch(s.type){case"Point":return Dr.point.call(void 0,d,u,r);case"MultiPoint":return n<0&&(n=d.length+n),Dr.point.call(void 0,d[n],u,r);case"LineString":return a<0&&(a=d.length+a),Dr.point.call(void 0,d[a],u,r);case"Polygon":return i<0&&(i=d.length+i),a<0&&(a=d[i].length+a),Dr.point.call(void 0,d[i][a],u,r);case"MultiLineString":return n<0&&(n=d.length+n),a<0&&(a=d[n].length+a),Dr.point.call(void 0,d[n][a],u,r);case"MultiPolygon":return n<0&&(n=d.length+n),i<0&&(i=d[n].length+i),a<0&&(a=d[n][i].length-a),Dr.point.call(void 0,d[n][i][a],u,r)}throw new Error("geojson is invalid")}o(jT,"findPoint");Ht.coordAll=kT;Ht.coordEach=hc;Ht.coordReduce=OT;Ht.featureEach=CI;Ht.featureReduce=TT;Ht.findPoint=jT;Ht.findSegment=UT;Ht.flattenEach=Xm;Ht.flattenReduce=LT;Ht.geomEach=vy;Ht.geomReduce=_T;Ht.lineEach=SI;Ht.lineReduce=NT;Ht.propEach=II;Ht.propReduce=MT;Ht.segmentEach=DI;Ht.segmentReduce=RT});var PI=jn(Jm=>{"use strict";l();Object.defineProperty(Jm,"__esModule",{value:!0});var zT=wI();function AI(e,r={}){if(e.bbox!=null&&r.recompute!==!0)return e.bbox;let t=[1/0,1/0,-1/0,-1/0];return zT.coordEach.call(void 0,e,n=>{t[0]>n[0]&&(t[0]=n[0]),t[1]>n[1]&&(t[1]=n[1]),t[2]<n[0]&&(t[2]=n[0]),t[3]<n[1]&&(t[3]=n[1])}),t}o(AI,"bbox");var $T=AI;Jm.bbox=AI;Jm.default=$T});var TI=jn((txe,xy)=>{l();var di=oI(),BI=dy(),OI=hI(),_u=PI().default,GT=OI.featureEach,Qve=OI.coordEach,exe=BI.polygon,FI=BI.featureCollection;function MI(e){var r=new di(e);return r.insert=function(t){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:_u(t),di.prototype.insert.call(this,t)},r.load=function(t){var n=[];return Array.isArray(t)?t.forEach(function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:_u(i),n.push(i)}):GT(t,function(i){if(i.type!=="Feature")throw new Error("invalid features");i.bbox=i.bbox?i.bbox:_u(i),n.push(i)}),di.prototype.load.call(this,n)},r.remove=function(t,n){if(t.type!=="Feature")throw new Error("invalid feature");return t.bbox=t.bbox?t.bbox:_u(t),di.prototype.remove.call(this,t,n)},r.clear=function(){return di.prototype.clear.call(this)},r.search=function(t){var n=di.prototype.search.call(this,this.toBBox(t));return FI(n)},r.collides=function(t){return di.prototype.collides.call(this,this.toBBox(t))},r.all=function(){var t=di.prototype.all.call(this);return FI(t)},r.toJSON=function(){return di.prototype.toJSON.call(this)},r.fromJSON=function(t){return di.prototype.fromJSON.call(this,t)},r.toBBox=function(t){var n;if(t.bbox)n=t.bbox;else if(Array.isArray(t)&&t.length===4)n=t;else if(Array.isArray(t)&&t.length===6)n=[t[0],t[1],t[3],t[4]];else if(t.type==="Feature")n=_u(t);else if(t.type==="FeatureCollection")n=_u(t);else throw new Error("invalid geojson");return{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}},r}o(MI,"geojsonRbush");xy.exports=MI;xy.exports.default=MI});l();import{MapView as vk}from"@mappedin/mappedin-js";l();l();l();(function(){typeof globalThis!="object"&&(Object.defineProperty(Object.prototype,"__magic__",{get:o(function(){return this},"get"),configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var hb="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAkGBwgHBgkICAgKCgkLDhcPDg0NDhwUFREXIh4jIyEeICAlKjUtJScyKCAgLj8vMjc5PDw8JC1CRkE6RjU7PDn/2wBDAQoKCg4MDhsPDxs5JiAmOTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTk5OTn/wgARCAIABAADAREAAhEBAxEB/8QAGwABAAMBAQEBAAAAAAAAAAAAAAECAwQFBgf/xAAWAQEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAP3EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAIAAAJAFAAAAAAAAAAAAAAAAAAAAAAAAABAgAAEgCgAAAAAAAAAAAAAAAAAAAABERLSM1zM4zXMzjMoUIqCCSSS8XNC9mpoaVomharWTQAAAAAAAAAAAAAAAAEREtIoZrnGZkucUKFStQQSTFixdNDStF0TWrmiWqbJoAAAAAAAAAAAAAIgiWkZy4HNLzHLXKcxzpzmFYmRkUKFSCCSSxcuampsbR0HSdK9R1R1HTZvWll0mlAAAAAAAAAAAIiKLnLjHNLynLXKcycxzmNYmJmUKFSCAWLFy5qamxvHQvSdJ0nVHUdFm1aparWKAjNWSKAAAAARBEtYzlyXnjmOSuM4U4q4jjOM5a5k5zAyMjOqFCCCCSSS5c0jU1NzoOk6pew7TtjuO1e0646jezWr2WSaUAAAAAECIqtZco55eY464zhTirhOI5Dks5jAwMTIzqhUqQASWLFzSNTY3Og6V646zsO2O47V7DrjqNzWy9nlZ1c0LlrLEk0EQQVipRczIyMU5q5F4U8+vOPOrgThOOuU5jAxMjMzKpUggigJiSSxY0XQ1Njc6TqjtO49CX0D0T0Y7l7E6JdzU1NEvViSalBAWIqVKLSMjIxOauM4U86vPPOrz04TjrkOYwMTIzKJQqQQCKmBJJYutzQ1Njc6TrOyO475fRPRPQjuXsToXWPn6kkkEkhCkEAgggqVMjlrzzzDy7PMPPrhOQ5jBMqoVIIIAAIAJAAJJJLFzWN16TsO49CPTPUl9Q9A6o1LFiSSSSQpCwQQCCCpVMjlrzzyzy7PMPPrhOM5kwM6zKlQQAAQASAASCxY0NI3XpOw7j0I9M9SX0z0DqjU+UqpQqVIBFgEyixJYuWLFDkrzE8o8yvOONOasipBAAAAAAAAAAABJJY2OiO1fQPUj1T0pewuVKlCCqQsBIUSSSSWLlyTM5K808pPLrzziTnrEqQQAAAAAAAAAAASSWNjojtX0D1I9VfSOuND4uzMzqhQqVIALEli5c1jUuQc1vnp5pwJzVmQQAAAAAAAAAAAAAASSaHTHevpHoHTFjMyM6zKlSpABJJcsaGkamhU5q88804E5qzIIAAAAAAAAAAAAAAJJNDpjvX0j0Dqix8dVDMolSpAqCYElixc0XU0IMjlTlrIqAAAAAAAAAAAAAAAAAWNTqjqXYGZkZpUoQQRSFIsSXLroaGhBkcqctZFQAAAAAAAAAAAAAAAACxqdUdS7EngWQCAAQASACSSSwKlSCAAAAAAAAAAAAAAAAAACSSxYFSCCAACCQACSSSwKlSCAAAAAAAAAAAAAAAAAACSSxYGIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAJAJAJBAAIAIABAAAAAAAAAAAAAAAAAAAABIAJAJAJBAAIAIABAAAAJABAAAAAAAAAJBILEli5Y0LlzQ0Lly5csWLAkgFSChUoUMyhmUMyhQqVKkEEAEAAAAAAAAAkEgsSWLljQuXNDQuXLlyxYsCSAVIKFShQzKGZQzKFCpUqQe+ZmZkUKFCpUEEAAkksWLFzQ0NTU2NzY3Og3NzoNzc2NjU1NS5csSAQVKmZmZGRiYmBgYHOYGBgYGBiZGRkUMypUqQCAASSWLFi5oaGpqbG5sbnQbm50G5ubGxqampcuWJAIIKGZmZGRiYmBgYHOYGBgYGR+jmBzmBzmJiZGZQoQQSSWLmhqbGxudB0nSdJ1HSdR1HSdJ0G5qamhcsWJJJBIIIBUqVKFDIyMDA5jmOU5TlOY5TmOc5znMTEyMyhQggFixc0NTY2NzoOk6TpOo6TqOo6TpOg3NTU0LlixJJIJBAIKkFChQyMjAwOY5jlOU5jnP00yMTnOc5zAwMjMoVIJJLmhqbmx0HQdBubmxqXLkkgAAAAAAAAAAAAAEEFTMzMTEwOc5znMDAyMyhUgkkuaGpsbnQdB0G5ubGpcuSSAAAAAAAAAAAAAAQQVKGZ1gAEEEEFSCACSSxJJJIAAAAAAAAAAAAAAAAAAAAAAABBBBBUggAkkksSSSAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQCCpBUqQVIKggAkFiSSxYksSSSSAAAAAAAAAAAAAAAAAAQCCpBUqQVIKggAkFiSSxYksSWBIAAKFiQAAAAAAAAACCpUoUMzIyMzMzMyhQoVKkEEAgkEkklixYuXNDQ0NTQ1NC5cuWJAAAAAAAAAAIKlShQzMjIzMzMzKFChUqQQQCCQSSSWLFyxoXNDQ1NDU0LljUkkAAAAAAAAAAggggEEAgAAAAAAAAAAAAAEkgkkkkkAAAAAAAAAAgggggEAgAAAAAEgEAAAAAAEkgkkuAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADyyCCCCCCCCAQASCSQWJJJJLEkkkkkgkkEgkAEgAAEAAgEAggEEEEEEEFSCCCCCCAQASCSQWJJJJLEkkkkkgkkEgEgEgAAEAAgEAggEEEEEH5AQQQQVBBAIAAJBIJJJLEkkkkliSSSSSQSSCQSAAAQAQQCCCCCCCCCpBBBBBUEEEAgAAkEgkkksSSSSSWJJJJJJBJIJBIAABABBAIIIIIIIIKg/LCAQCACAAAACQCQSCQSASSASCQCQAAAAAAQCAQAQCAQAQQCACAAAACQCQSCQSASSASCQCQAAAAAAQCAQAQCAQfPgAAAAAAAAAAAAAAkAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAgAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/xAApEAAABQUBAQACAwACAwAAAAABAgQFFQMGERQWEhNAUAAgMGCAkKCw/9oACAEBAAECAP8AwTZznOf3mc5/YZE41xVivFyM6i7C8C8C8zMzMzMyDyDyDyDwV4K7ldSuZV5VgVwqZ/SCca4qxXmcjOouwvAvEzMzMzMzMyDyDyDwV4K7ldSuRVwKgrgf88TDWMrO4VHOo61Hao7ndzvB3k7yZ5M8i8i8zMzMzMyDyDyDyV5K8keSPJHmm8U3em70nam603Mi8qotUDfk5GqZUdfUc6jrUdqjvUeDvB3kzyZ5M8i8i8zMzMzMzMg8g8leSvJHkjyR5pvFN4pu9N2pOtNzIvKqLWA39PX+/saplJlh1tRfVcKrlVdKrrVdqrvVdzu53Y7sZ2M6mdRdRdBdJSUk5SUB0B0B1K6kdSOxHam7Unek70nei7UXWi6UXKk40l9NaRWWuB8/75E41zKjraq+q41nOq6VXas7VXeq71Hc7ud2O7GdRdRdZQXSUlJSUlAdCugOpXUjqR2I7U3em70nek70nai60XSk5UnGkvItIrKoCsC0FwLgXAuBbube3ubm7uiuFcZcZaZYdZUWVl1dwruVdzrulZ0qulVzqOR3EzgZeZcZcK0Vm3t7W1tbW1tgrBYC0q0q4q8jgRxpuVJzoulB0oOlBzoOVBworqa0iwi0i0q4FwLQWAr2trZ2trb3RWiuFcZaZadbUW1l1ZwruVd0rulZ0qulVzqOR3E7gZeZeK4VorNzb29ra2tsFe2CwFpVxVxV5HAjjTcqTnRdKDpQdKDnQcqDhRXU1pFhVm/ISUnKSkrLSsrKyspJyUhvitOtrLq69Q4qHGu41nGqvqLjrDKhUDW+nv1nP+Oc+vYVArFUEVEWUl1FfQcU7imckzinX0VxFoLgXyMlJykrLS0tLS0rKSclI74rjraq6uvUuKhxruNdxqr6i46wysVA1vp79Zz/AI5z6A4VArFUEVkWUl1FfQcU7imcUzinX0VxFoLZKTlJWVlpaXl5eWlpWUB0BzBxkDr669SvUr666stqqz1xqes/j5AxahFFJXRWp1yZemX0F5HCQkpOUlZaWlpeXl5aWB2lQdAcwcZE7hWcFLgpXqF1ZbVVnUDU9Z/HyBi1CV6SuitTrky9MvoLyL5AXEXEXIXIXKSkpKSkpIHIHIHIrkVxK4yJnCsvrra6uqpPVE354GJVpKaCtOtoryuEiZxM5C5C5C5SUnJSclJSQOQORXIrkVxBxM4VV9dbXV1VJ6om/PAxKtFTQVp1tFeRwkRWitFYKvb2tra2draBUCsFgLCrSrQWitOsqqT1RN+jAxKtJTTWFWitMtMtFYKzb29ra2tnaBUCsFZVhVpVoLRWnWVFJ6om/RgYlWkpprAW73v36zn++c+gOFQKv1GoJv04GCp9Rq/T36zn++c+gOFT7fUagm/TgYKn1+3/AKEeMefHjx8/n8vl8vn8/Hjx5xj9bjHnx48fP5/L5fL5/Px48ecY/wAvOPxceQIFIKIJgSAiBAVuK2FaitINAM4MwMwMsJCQkJCQkJCwosws4tAtItQtgtot4oRSCm+Hy8ecfi48gQKQUQTAkBECArcVsK1FaQaAZwZgZgZYSEhISEhISFhRZhZxaBaRahbBbRbxQikFN8BpfMWgWozWLaLcKAUWpq62vr/DX19YEoJARAhBvK2laytRGgjORlIyEYiMJLfJbxLdJbhLbJbRLaJbJbZLbAWxzHMcxzHMcxzHMDbBrYNbJraNbRrbPbh7dPbx7fOwHYjsZ2UzMZoM0maxbRbhQCi1NXW19fX19fW1QSAiBCDeVtK1laiNBGYjKRkIxEYSW+S3iW6S3CW2S2iW0S2S2yW2AtgLY5jmOY5jmOY5gbYNbJrZNbRraPbZ7cPbp7ePb52A7EdjOymZjW4e3D26e3j2+ZgMwmYhYxY4SEhISEBjKxlYiMJGAjAS3iW9TtynblO26dtUrap2zTtmnbNO2SW2S3isRWYGkG0EAItTW1/h8Phr6+rp6AtwtQs5mI9vntw9tHtk9s1LZqWzUto9tnts9uHt09vHt8zAZhMxCxixwkJCQkIDGVjKxEYSMBGAlvEt6nblO3Kdt0rap21TtmnbNO2SWyS2yW8ViKzA1A2ggBFqa2v8Ph8NfW1dPRFuFqMzGYjW+e3D20e2T2zUtk9tHto1tCzHYj2+e3T24e3D24a3DW4Nuc5znOc4FuBbhbcLbhLcJblO3CW4S3iMRGcrYVECcKYB+cJBoCjM2maDsZ7fPbp7cPbh7cNbhrcG3Oc5znOcC3C24W3C24S3CW5TtwluEt4jERnK2FRAnCmAfnCQaAoxb/7ePl8NbU09PT1NYKHy8Y/ZePl8NbU09PT1NYKHy8Y/4Z6+g1tjb3d+Rk5SVlZWVlZSTkd8Fu3s/b6es/pvX0Gtsbe7vyMnKSkrKysrKSciC8Fu3s/YKnrP9gqAb8X0NQawqBVCrMrMqMoGuNUTiYf4ICT5/L4/H4fD4fH4hSCmBAAP4AgctUtYqgqoqsqsqoFIVwqAb8X0NQawqBVCrMrMqMoGuNUTiYf4ICT5/L4/H4fD4fH4hSCmBAAP4AgctUtYqgqkqsqsqsFIV/Hn8XHj5/H4a+traurq6mpqampqampqampqampqampqampqamrq62tr/D4/Lx5/Fx4+fx+Gvra2rq6upqampqampqamrq6upqampqampqamrq6utra/w+Py/wCgEzNTc5OTs7PT09PT8/Pz09PT07Ozk3Ng9TMxLy0rKSclJSMhIb+9vbu9u7u7u7u7u729vb2/vyEjJSUnKSstLzEzNTc5OTs7Oz09PT8/Pz09PT07Ozk5NzUzMS8tKyknJSUjISG/v727vbu7u7u7u7u9u729v78hIyUlJykrLS8x0nR9H0fR9H0XRdF0XRdD0PQ9F0XRdF0XRdF0fR9H0nSdJ0vS9L0vTdN03TdP0/T9P0/T9P0/T9P0/T9R0/T9P0/T9P0/TdN03S9L0vS9J0nSdJ0fR9H0XRdF0PRdD0PQ9D0PRdF0XRdF0XR9H0fSdJ0nS9L0vS9N03TdN0/T9P0/T9P0/T9P0/T9P1HT9P0/T9P0/T9N03TdL0vS9L0vSS8tLy0tLS0rKysrKysrKysrKystLS0vLS8vLy8vMTExMTExMzMzMTMzMzM1NTUzMzMzMzMzMzExMTExMS8vLy8vLy8tKy0tKysrKysrKysrKysrLS0tLy0vLy8vLzExMTExMTMzMzEzMzMzNTU1MzMzMzMzMzMxMTExMTEvLy8vnOc5znOc5znOc5znOc5znOc59ZznPr169evXr169evXr169evXr16znOfWc5znOc5znOc5znOc5znOc5znOc59ZznPr169evXr169evXr169evXr16znOfWc5z/9YD//xAArEAEAAgIDAQABBAICAQUAAAAAAVICYgNRYQRBEEBQUzFCIDARYICQoLD/2gAIAQEAAz8A/wDgmhCEI/nYQj+RhjH5ccflxw44YMe0dtmzZs2bNmzZs2bIsjtiwlxy45/Ljn8se0fwuPbjj8uOPy44YQxR2izZs2bNmzZs2bNkWR2xYS45cc/lhP5Y9/wEQwj8sIRD1s2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNmyLMZYZMZ/KJ/dRDCPywhjCI/LZs2bNmzZs2bNmzZs2bNmzZs2bNmzZs2bNkWYywlhP5RP/ABj9hDGGMIh69bNmzZs2bNmzZsmybJsmybJsmybJsmybJsmybJs2bNmzZs2bNmzZ7+mMsZYyj9hDGGMIj9NmzZs2bNmzZs2bJsmybJsmybJs2TZNk2TZNk2bJs2bNmzZs2bNmzZ6iWMsXr16hiwYMGDBgwYo/T169/T162bNmzZs2TZNk2T2ntPae09pSlKUpSlPae09p7T2mybJsmzZs2bNmz17+nr16hiwYOPtx9uPtx9sO2DBih69evXr1s2bNmzZsmybJsmye09p7T2lKUpSlKU9p7T2ntNk2TZNmzZs2bNmz17+vr1s2bNmzZs2bNmzZs2evXr169bNmye09p7SlKUp/wC6UpSlKe09p7etmzZs9evWzZs2bNmzZs2bNmzZs2bPXr1s9bNmye09p7SlKUp/7pSlKUp7T29bPWz169evWzZs2bNmzZs2bNmzZs2bNmzZs2evU9plM/vJhMJ7T29bNnrZ62bNmzZs2bNmzZs2bNmzZs2bNnr39J7TKZ/eTCYT3+nr162bNnrZs2bJsntNk2TZPabNmzZs2etnr39JlM/wUwmP09etmzZs2bNk2TZNk2TZNk2bNmzZs2bNnv6TKZ/gphMfp69etk9p7T2ntKUpSlKUp7T2nt69e/pMpn+GmH/j9PXr1Pae09pSySlklKU9p7T29evf0mUz/DTCY/T16lP/AHSlKU/xUpSlP/dKUpT/ABUpT/8AQllKWTJl0y6ZdMumXTLpl0y6ZJSn+QlKWTJl0y6ZdMumXTLpl0y6ZJSn/sn9xKWXTLpn0z6Z9M+mXTLplVlVlVlVlVlVlVlVlVlVlRlVlVlRlVlVlVlVlVlVlVl0z6Z9M4/DPpn0z6ZdMkp/byll0y6Z9M+mfTPpn0y6ZVZVZVZVZVZVZVZVZUZVZUZVZVZVZVZVZVZVZVZVZVZdM+mfTOPwz6Z9M+mTJlVlVlVl0yZ9M2fTPpn0z6Z9M+mbPpn0z6Z9M2fTPpl0yqyqyqyqyqyomiaJomiaJomiaJomjRo0aNGjRo0aNGjRNE0TRNE0TRNE0TRNE0ZVZVZVZVZVZVZM+mbPpn0z6Z9M+mfTNn0z6Z9M+mfTPpl0y6ZVZVZVTVlVlRNE0TRlRNE0TRNE0TRo0aNGjRo0aNGjRomiaJomiaJomiaJomqaJqyq0TRNE0TRNE0TVNE1TVNU1TRNE1TVNU0TRNE0TRNGjRo0aNGjRhWHFHTgh88Pmj8Pnj/V89HBRwf1w4f64cNMXFSHFTFxUxcVIcP9cOGkOCkPno+ej55/D55cEuKemHUIo0aNGjRo0TRNE0TRNE0TVNE0TVNE1TVNE1TRNU0TRNE0TRNGjRo0aNGjRhWHFHThh88Pnj8Pnq+ejgo4P64cP9cOKkOKkOKmLipi4aYuH+uHBSHBSHz0fPR88/h88uCXFNWHUIo0aNGjRo4ZcU9MOoRRFGjRo0aNGjRo0aNGjRo0RRhVxR04IcGP4cGP+jij/GEMI/xjCP3+M/5xhxT/AJwhwT/o4Mv9XBk4p6YdQiiKNGjRo0aNGjRo0aNGjRoijGsOKOnBi4Mfw4I/0cUf4whhH+MYR+/xn/OMOKf84Q4J/wBHBP8Ar/zxrDCsOKkOKjhq4auGrhq4auGjipDjpDGsI/k8awwrDipDio4aOGrhq4auGrho4qQ46QxrCP8A0bHcMLQ47w4rw4buCzgs4O3A4HA4XA4HA4HA4O3BZwWcN3Fdx3hhaGNoR/Dx3DC0OO8OK8OG7gs4LODtwOBwOFwOBwOBwODtwWcFnDdxXcd4YWhjaEf88UftoQh4y6ZuRyuVzOZzeudz+uf1z+uf1z+uf1z+uf1zuf1z+uf1z+uf1z+udzR25nM5o7c3rlcrlZsniOkSj9tCEPGXTNyuVy+uZzOb1z+uf1z+uf1z+uf1z+uf1z+udz+uf1z+uf1z+uf1z+ueO3O5nM5vXK5XKzZPEdMUftoYsemHTDpx9OPpxVcVXDVw1cNXDVw0cNHDRw0cNHDRw0cNHDRw0cNHDRw0cNHDRw0cNHDVw1cNXFVxVcVXFVx9OPph0w6Yo/bQxY9MOnH04+nH04quKrhq4auGrhq4aOGjho4aOGjho4aOGkOGkOGkOGjho4aOGjho4aOGjhq4auGriq4quKriq4+nH0w6Ydf+wHgcLhcLicTjYdww7hh3DDuGPcMe4Y9ww7hh3DDuGHcONxuJxOFwuBwOB8753z2fPZ89nz3fNd893zXfPd893z3fP/Y+e757uC75/wCyHz/2Q+f+yHBd893z3fPd893z3fPd893zXfNd893z2fPZ8/b5+3zvncDgcLhcLicTjYdww7hh3DDuGHcMe4Ydww7hh3DDuGHcONxuJxOFwuBwPnfO+d89nz2fPZ893zXfPd813z3fPd893z/2Pnu+e7gu+f8Ash8/9kPn/shwXcF3z3fPd893z3fPd893zXfNd893z2fPZ8/b5+3zvncDdu3bt03bt26bpum6bpum6bt27du3bt26bt26bpum6bpum6bpum6bt03TdN26bpum6bpum7dN03TdN03TdN03TdN03Tdum7dum7dN27dum6bpum6bpum6bpum7du3bt03bpu3bpum6bpum6bpum6bpu3TdN03bpum6bpum6bt03TdN03TdN03TdN03TdN03TduysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysysmzKzKzKybMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrJT+2lKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSn9tKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpT/wDrA//EAB0RAAMBAAMBAQEAAAAAAAAAAAABERIwQFAgkMD/2gAIAQIBAT8A/COlKioqKioqKi+zSoqKioqL59Ro0aKyvpVlZWaNFXiVGkaNFZWV9CsrNGjRpFXepo0V8c69Zo0u1pGilfVnJWaNF+NFXNUaNFfmU0aReamkaNPzNM19VlZWaKysrK/XrKzTNGjRWaKyv+u0/8QAHREBAQACAQUAAAAAAAAAAAAAEQBAUCAQITCQwP/aAAgBAwEBPwD1NkRER07eYiIiNMRERGARERGgIiNAREZRERoCIjiYBERqiIwiI1REcCIiIiIjbkREREREfXZ//9k=";l();l();var gC=!1;function gb(){return gC}o(gb,"isTestMode");var ef=class ef{constructor(r){h(this,"backgroundAlpha",1);h(this,"backgroundColor",new Bt);h(this,"width",0);h(this,"height",0);h(this,"options",{});h(this,"renderer");h(this,"enabledLayers",new Set([0,1]));h(this,"matricesUpdatedThisFrame",!1);h(this,"handleWebGLContextCreationError",o(r=>{var t,n;(n=(t=this.options).onWebGLContextCreationError)==null||n.call(t,r)},"handleWebGLContextCreationError"));h(this,"handleWebGLContextLost",o(r=>{var t,n;(n=(t=this.options).onWebGLContextLost)==null||n.call(t,r)},"handleWebGLContextLost"));h(this,"handleWebGLContextRestored",o(r=>{var t,n;(n=(t=this.options).onWebGLContextRestored)==null||n.call(t,r)},"handleWebGLContextRestored"));var t,n,i,a,u;try{this.options=r,gb()?(this.renderer={setSize:o(()=>{},"setSize"),state:{reset:o(()=>{},"reset")},properties:{get:o(()=>{},"get")},getSize:o(()=>({width:window.innerWidth,height:innerHeight}),"getSize"),getDrawingBufferSize:o(()=>({width:window.innerWidth,height:innerHeight}),"getDrawingBufferSize"),getClearAlpha:o(()=>1,"getClearAlpha"),getClearColor:o(()=>new Bt,"getClearColor"),autoUpdate:!0,shadowMap:{autoUpdate:!0},getContext:o(()=>({getContextAttributes(){return{alpha:!0,antialias:!1,depth:!0,stencil:!1}}}),"getContext"),readRenderTargetPixelsAsync:o(()=>Promise.resolve([]),"readRenderTargetPixelsAsync"),setRenderTarget:o(()=>{},"setRenderTarget"),setClearColor:o(()=>{},"setClearColor"),clear:o(()=>{},"clear"),render:o(()=>{},"render"),clearStencil:o(()=>{},"clearStencil"),clearDepth:o(()=>{},"clearDepth"),domElement:document.createElement("canvas"),capabilities:{isWebGL2:!0}},this.renderer.domElement.style.width="1920px",Object.defineProperty(this.renderer.domElement,"clientWidth",{value:1920}),this.renderer.domElement.style.height="1080px",Object.defineProperty(this.renderer.domElement,"clientHeight",{value:1080})):(this.renderer=new d4({canvas:r.canvas,alpha:r.alpha||!1,stencil:!0,antialias:typeof r.antialias=="boolean"?r.antialias:!0,powerPreference:"high-performance",preserveDrawingBuffer:!0}),this.renderer.localClippingEnabled=!0),this.backgroundColor=new Bt((t=r.backgroundColor)!=null?t:"#ffffff"),this.backgroundAlpha=(n=r.backgroundAlpha)!=null?n:1}catch(s){Se.error(s),r.onWebGLRendererError&&r.onWebGLRendererError(s)}(i=this.domElement())==null||i.addEventListener("webglcontextlost",this.handleWebGLContextLost),(a=this.domElement())==null||a.addEventListener("webglcontextrestored",this.handleWebGLContextRestored),(u=this.domElement())==null||u.addEventListener("webglcontextcreationerror",this.handleWebGLContextCreationError)}destroy(){var r,t,n,i,a;this.renderer&&((t=(r=this.renderer).dispose)==null||t.call(r)),(n=this.domElement())==null||n.removeEventListener("webglcontextlost",this.handleWebGLContextLost),(i=this.domElement())==null||i.removeEventListener("webglcontextrestored",this.handleWebGLContextRestored),(a=this.domElement())==null||a.removeEventListener("webglcontextcreationerror",this.handleWebGLContextCreationError)}startFrame(){this.matricesUpdatedThisFrame=!1}updateMatricesIfNeeded(r){this.matricesUpdatedThisFrame||(r.updateMatrixWorld(),this.matricesUpdatedThisFrame=!0)}renderScene(r,t){this.renderer&&(this.updateMatricesIfNeeded(r),this.renderer.render(r,t))}renderFullScene(r,t){if(this.renderer){this.renderer.state.reset(),this.updateMatricesIfNeeded(r),this.renderer.clearStencil(),this.renderer.setRenderTarget(null),t.layers.disableAll(),this.renderer.autoClear=!1,t.layers.enable(qt.MASKS),this.renderer.render(r,t),t.layers.disableAll();for(let n of this.enabledLayers.values())t.layers.enable(n);this.renderer.render(r,t),this.renderer.clearDepth(),t.layers.disableAll(),t.layers.enable(qt.ALWAYS_ON_TOP_PATHS),this.renderer.render(r,t),this.renderer.clearStencil(),this.renderer.state.reset()}}clear(){this.renderer&&(this.renderer.setClearColor(this.backgroundColor,this.backgroundAlpha),this.renderer.clear())}setBufferSize(r,t){y.env.NODE_ENV==="test"||!this.renderer||(this.width=r,this.height=t,this.renderer.setSize(r,t,!1))}setBackgroundColor(r,t){this.backgroundColor=r,this.backgroundAlpha=t}domElement(){var r;return(r=this.renderer)==null?void 0:r.domElement}};o(ef,"Renderer");var al=ef;l();l();var yb='"use strict";(()=>{var Ya=Object.defineProperty,fs=Object.defineProperties;var ps=Object.getOwnPropertyDescriptors;var qa=Object.getOwnPropertySymbols;var gs=Object.prototype.hasOwnProperty,vs=Object.prototype.propertyIsEnumerable;var Mr=(e,r,n)=>r in e?Ya(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,m=(e,r)=>{for(var n in r||(r={}))gs.call(r,n)&&Mr(e,n,r[n]);if(qa)for(var n of qa(r))vs.call(r,n)&&Mr(e,n,r[n]);return e},z=(e,r)=>fs(e,ps(r));var _e=(e,r)=>{for(var n in r)Ya(e,n,{get:r[n],enumerable:!0})};var M=(e,r,n)=>Mr(e,typeof r!="symbol"?r+"":r,n);function Qa(e,r){return r.x+r.w<e.x+e.w&&r.x>e.x&&r.y>e.y&&r.y+r.h<e.y+e.h}function Ha(e,r){let[n,i]=r;return n>=e.x&&n<=e.x+e.w&&i>=e.y&&i<=e.y+e.h}function eu(e,r){let n=r.x,i=r.y,t=r.x+r.w,o=r.y+r.h,u=e.x,s=e.y,c=e.x+e.w,a=e.y+e.h;return n<c&&u<t&&i<a&&s<o}function ue(e,r){for(let n=0;n<r.length;n++)e.push(r[n])}var E=class{constructor(r,n,i,t,o){M(this,"x");M(this,"y");M(this,"w");M(this,"h");M(this,"userData");this.userData=typeof o>"u"?null:o,this.x=r,this.y=n,this.w=i,this.h=t}contains(r){return r===this?!1:Qa(this,r)}intersects(r){return eu(this,r)}intersectsPoint(r){return Ha(this,r)}draw(r){r.fillStyle="rgba(123,222,26, 0.8)",r.fillRect(this.x,this.y,this.w,this.h)}};var Me=class e{constructor(r,n){M(this,"topLeft");M(this,"topRight");M(this,"bottomLeft");M(this,"bottomRight");M(this,"divided",!1);M(this,"boundary");M(this,"capacity",16);M(this,"objects",[]);M(this,"parent");this.parent=n,this.boundary=r}getSize(){return this.divided?this.objects.length+this.topLeft.getSize()+this.topRight.getSize()+this.bottomLeft.getSize()+this.bottomRight.getSize():this.objects.length}subdivide(){let{x:r,y:n,w:i,h:t}=this.boundary;this.topLeft=new e(new E(r,n,i/2,t/2),this),this.topRight=new e(new E(r+i/2,n,i/2,t/2),this),this.bottomLeft=new e(new E(r,n+t/2,i/2,t/2),this),this.bottomRight=new e(new E(r+i/2,n+t/2,i/2,t/2),this),this.divided=!0}queryRect(r){let n=[];if(this.boundary.intersects(r))n.push(...this.objects);else return[];return this.divided&&(ue(n,this.topLeft.queryRect(r)),ue(n,this.topRight.queryRect(r)),ue(n,this.bottomLeft.queryRect(r)),ue(n,this.bottomRight.queryRect(r))),n}queryPoint(r){let n=[];if(this.boundary.intersectsPoint(r))n.push(...this.objects);else return[];return this.divided&&(ue(n,this.topLeft.queryPoint(r)),ue(n,this.topRight.queryPoint(r)),ue(n,this.bottomLeft.queryPoint(r)),ue(n,this.bottomRight.queryPoint(r))),n}insert(r){return(this.parent?!this.boundary.contains(r):!this.boundary.intersects(r))?!1:this.objects.length<this.capacity?(this.objects.push(r),!0):(this.divided||this.subdivide(),(this.topLeft.insert(r)||this.topRight.insert(r)||this.bottomLeft.insert(r)||this.bottomRight.insert(r))===!1&&this.objects.push(r),!0)}drawObjects(r){this.objects.forEach(n=>n.draw(r)),this.divided&&(this.topLeft.drawObjects(r),this.topRight.drawObjects(r),this.bottomLeft.drawObjects(r),this.bottomRight.drawObjects(r))}draw(r){r.rect(this.boundary.x,this.boundary.y,this.boundary.w,this.boundary.h),this.divided&&(this.topLeft.draw(r),this.topRight.draw(r),this.bottomLeft.draw(r),this.bottomRight.draw(r)),r.strokeStyle="black",r.lineWidth=4,r.stroke()}};var Fe={};_e(Fe,{$brand:()=>Pt,$input:()=>so,$output:()=>co,NEVER:()=>Br,TimePrecision:()=>fo,ZodAny:()=>Oc,ZodArray:()=>Zc,ZodBase64:()=>Ua,ZodBase64URL:()=>Na,ZodBigInt:()=>Ot,ZodBigIntFormat:()=>Ta,ZodBoolean:()=>jt,ZodCIDRv4:()=>Oa,ZodCIDRv6:()=>Pa,ZodCUID:()=>xa,ZodCUID2:()=>ka,ZodCatch:()=>Qc,ZodCodec:()=>Ba,ZodCustom:()=>Ar,ZodCustomStringFormat:()=>wt,ZodDate:()=>Dr,ZodDefault:()=>Kc,ZodDiscriminatedUnion:()=>Dc,ZodE164:()=>Za,ZodEmail:()=>ba,ZodEmoji:()=>_a,ZodEnum:()=>zt,ZodError:()=>Bd,ZodFile:()=>Jc,ZodFirstPartyTypeKind:()=>Ka,ZodFunction:()=>us,ZodGUID:()=>Or,ZodIPv4:()=>Sa,ZodIPv6:()=>ja,ZodISODate:()=>wr,ZodISODateTime:()=>Ir,ZodISODuration:()=>jr,ZodISOTime:()=>Sr,ZodIntersection:()=>Tc,ZodIssueCode:()=>rf,ZodJWT:()=>Da,ZodKSUID:()=>wa,ZodLazy:()=>is,ZodLiteral:()=>Fc,ZodMap:()=>Cc,ZodNaN:()=>es,ZodNanoID:()=>ya,ZodNever:()=>Uc,ZodNonOptional:()=>Ja,ZodNull:()=>Sc,ZodNullable:()=>Bc,ZodNumber:()=>St,ZodNumberFormat:()=>Ve,ZodObject:()=>Er,ZodOptional:()=>Fa,ZodPipe:()=>Ma,ZodPrefault:()=>Wc,ZodPromise:()=>as,ZodReadonly:()=>ts,ZodRealError:()=>X,ZodRecord:()=>La,ZodSet:()=>Vc,ZodString:()=>It,ZodStringFormat:()=>A,ZodSuccess:()=>Yc,ZodSymbol:()=>Ic,ZodTemplateLiteral:()=>ns,ZodTransform:()=>Mc,ZodTuple:()=>Ac,ZodType:()=>U,ZodULID:()=>za,ZodURL:()=>Zr,ZodUUID:()=>de,ZodUndefined:()=>wc,ZodUnion:()=>Aa,ZodUnknown:()=>Pc,ZodVoid:()=>Nc,ZodXID:()=>Ia,_ZodString:()=>$a,_default:()=>Gc,_function:()=>Xm,any:()=>Om,array:()=>Tr,base64:()=>mm,base64url:()=>fm,bigint:()=>zm,boolean:()=>zc,catch:()=>Hc,check:()=>qm,cidrv4:()=>lm,cidrv6:()=>dm,clone:()=>K,codec:()=>Km,coerce:()=>Rr,config:()=>L,core:()=>ae,cuid:()=>nm,cuid2:()=>im,custom:()=>Ym,date:()=>Um,decode:()=>sa,decodeAsync:()=>da,discriminatedUnion:()=>Em,e164:()=>pm,email:()=>Gd,emoji:()=>tm,encode:()=>ca,encodeAsync:()=>la,endsWith:()=>vt,enum:()=>Ca,file:()=>Fm,flattenError:()=>He,float32:()=>_m,float64:()=>ym,formatError:()=>et,function:()=>Xm,getErrorMap:()=>of,globalRegistry:()=>oe,gt:()=>se,gte:()=>W,guid:()=>Wd,hash:()=>bm,hex:()=>$m,hostname:()=>hm,httpUrl:()=>em,includes:()=>pt,instanceof:()=>Qm,int:()=>ha,int32:()=>xm,int64:()=>Im,intersection:()=>Ec,ipv4:()=>cm,ipv6:()=>sm,iso:()=>kt,json:()=>ef,jwt:()=>gm,keyof:()=>Nm,ksuid:()=>um,lazy:()=>os,length:()=>Re,literal:()=>Vm,locales:()=>ze,looseObject:()=>Tm,lowercase:()=>mt,lt:()=>ce,lte:()=>H,map:()=>Rm,maxLength:()=>Ae,maxSize:()=>Ee,mime:()=>ht,minLength:()=>$e,minSize:()=>we,multipleOf:()=>Ie,nan:()=>Bm,nanoid:()=>rm,nativeEnum:()=>Cm,negative:()=>Fo,never:()=>Ea,nonnegative:()=>Mo,nonoptional:()=>qc,nonpositive:()=>Jo,normalize:()=>$t,null:()=>jc,nullable:()=>Ur,nullish:()=>Jm,number:()=>kc,object:()=>Zm,optional:()=>Pr,overwrite:()=>le,parse:()=>ia,parseAsync:()=>oa,partialRecord:()=>Am,pipe:()=>Nr,positive:()=>Vo,prefault:()=>Xc,preprocess:()=>tf,prettifyError:()=>rn,promise:()=>Wm,property:()=>Bo,readonly:()=>rs,record:()=>Lc,refine:()=>cs,regex:()=>dt,regexes:()=>Q,registry:()=>ir,safeDecode:()=>fa,safeDecodeAsync:()=>ga,safeEncode:()=>ma,safeEncodeAsync:()=>pa,safeParse:()=>aa,safeParseAsync:()=>ua,set:()=>Lm,setErrorMap:()=>nf,size:()=>lt,startsWith:()=>gt,strictObject:()=>Dm,string:()=>va,stringFormat:()=>vm,stringbool:()=>Hm,success:()=>Mm,superRefine:()=>ss,symbol:()=>Sm,templateLiteral:()=>Gm,toJSONSchema:()=>Qo,toLowerCase:()=>_t,toUpperCase:()=>yt,transform:()=>Va,treeifyError:()=>tn,trim:()=>bt,tuple:()=>Rc,uint32:()=>km,uint64:()=>wm,ulid:()=>om,undefined:()=>jm,union:()=>Ra,unknown:()=>Ce,uppercase:()=>ft,url:()=>Hd,util:()=>_,uuid:()=>Xd,uuidv4:()=>qd,uuidv6:()=>Yd,uuidv7:()=>Qd,void:()=>Pm,xid:()=>am});var ae={};_e(ae,{$ZodAny:()=>Ui,$ZodArray:()=>Ei,$ZodAsyncError:()=>te,$ZodBase64:()=>yi,$ZodBase64URL:()=>xi,$ZodBigInt:()=>Qt,$ZodBigIntFormat:()=>Si,$ZodBoolean:()=>it,$ZodCIDRv4:()=>$i,$ZodCIDRv6:()=>bi,$ZodCUID:()=>ui,$ZodCUID2:()=>ci,$ZodCatch:()=>Hi,$ZodCheck:()=>R,$ZodCheckBigIntFormat:()=>An,$ZodCheckEndsWith:()=>Xn,$ZodCheckGreaterThan:()=>Bt,$ZodCheckIncludes:()=>Gn,$ZodCheckLengthEquals:()=>Jn,$ZodCheckLessThan:()=>Mt,$ZodCheckLowerCase:()=>Bn,$ZodCheckMaxLength:()=>Vn,$ZodCheckMaxSize:()=>Rn,$ZodCheckMimeType:()=>Yn,$ZodCheckMinLength:()=>Fn,$ZodCheckMinSize:()=>Ln,$ZodCheckMultipleOf:()=>Tn,$ZodCheckNumberFormat:()=>En,$ZodCheckOverwrite:()=>Qn,$ZodCheckProperty:()=>qn,$ZodCheckRegex:()=>Mn,$ZodCheckSizeEquals:()=>Cn,$ZodCheckStartsWith:()=>Wn,$ZodCheckStringFormat:()=>De,$ZodCheckUpperCase:()=>Kn,$ZodCodec:()=>ot,$ZodCustom:()=>uo,$ZodCustomStringFormat:()=>Ii,$ZodDate:()=>Ti,$ZodDefault:()=>Xi,$ZodDiscriminatedUnion:()=>Ri,$ZodE164:()=>ki,$ZodEmail:()=>ni,$ZodEmoji:()=>oi,$ZodEncodeError:()=>me,$ZodEnum:()=>Ji,$ZodError:()=>Qe,$ZodFile:()=>Bi,$ZodFunction:()=>io,$ZodGUID:()=>ti,$ZodIPv4:()=>vi,$ZodIPv6:()=>hi,$ZodISODate:()=>fi,$ZodISODateTime:()=>mi,$ZodISODuration:()=>gi,$ZodISOTime:()=>pi,$ZodIntersection:()=>Li,$ZodJWT:()=>zi,$ZodKSUID:()=>di,$ZodLazy:()=>ao,$ZodLiteral:()=>Mi,$ZodMap:()=>Vi,$ZodNaN:()=>eo,$ZodNanoID:()=>ai,$ZodNever:()=>Zi,$ZodNonOptional:()=>Yi,$ZodNull:()=>Pi,$ZodNullable:()=>Wi,$ZodNumber:()=>Yt,$ZodNumberFormat:()=>wi,$ZodObject:()=>wu,$ZodObjectJIT:()=>Ai,$ZodOptional:()=>Gi,$ZodPipe:()=>to,$ZodPrefault:()=>qi,$ZodPromise:()=>oo,$ZodReadonly:()=>ro,$ZodRealError:()=>G,$ZodRecord:()=>Ci,$ZodRegistry:()=>Te,$ZodSet:()=>Fi,$ZodString:()=>ke,$ZodStringFormat:()=>T,$ZodSuccess:()=>Qi,$ZodSymbol:()=>ji,$ZodTemplateLiteral:()=>no,$ZodTransform:()=>Ki,$ZodTuple:()=>er,$ZodType:()=>O,$ZodULID:()=>si,$ZodURL:()=>ii,$ZodUUID:()=>ri,$ZodUndefined:()=>Oi,$ZodUnion:()=>Ht,$ZodUnknown:()=>Ni,$ZodVoid:()=>Di,$ZodXID:()=>li,$brand:()=>Pt,$constructor:()=>d,$input:()=>so,$output:()=>co,Doc:()=>nt,JSONSchema:()=>Ho,JSONSchemaGenerator:()=>xt,NEVER:()=>Br,TimePrecision:()=>fo,_any:()=>Do,_array:()=>Ko,_base64:()=>yr,_base64url:()=>xr,_bigint:()=>So,_boolean:()=>Io,_catch:()=>Rd,_check:()=>_c,_cidrv4:()=>br,_cidrv6:()=>_r,_coercedBigint:()=>jo,_coercedBoolean:()=>wo,_coercedDate:()=>Lo,_coercedNumber:()=>bo,_coercedString:()=>mo,_cuid:()=>mr,_cuid2:()=>fr,_custom:()=>Wo,_date:()=>Ro,_decode:()=>Et,_decodeAsync:()=>Rt,_default:()=>Td,_discriminatedUnion:()=>kd,_e164:()=>kr,_email:()=>or,_emoji:()=>lr,_encode:()=>Tt,_encodeAsync:()=>At,_endsWith:()=>vt,_enum:()=>Od,_file:()=>Go,_float32:()=>yo,_float64:()=>xo,_gt:()=>se,_gte:()=>W,_guid:()=>ct,_includes:()=>pt,_int:()=>_o,_int32:()=>ko,_int64:()=>Oo,_intersection:()=>zd,_ipv4:()=>hr,_ipv6:()=>$r,_isoDate:()=>go,_isoDateTime:()=>po,_isoDuration:()=>ho,_isoTime:()=>vo,_jwt:()=>zr,_ksuid:()=>vr,_lazy:()=>Fd,_length:()=>Re,_literal:()=>Ud,_lowercase:()=>mt,_lt:()=>ce,_lte:()=>H,_map:()=>Sd,_max:()=>H,_maxLength:()=>Ae,_maxSize:()=>Ee,_mime:()=>ht,_min:()=>W,_minLength:()=>$e,_minSize:()=>we,_multipleOf:()=>Ie,_nan:()=>Co,_nanoid:()=>dr,_nativeEnum:()=>Pd,_negative:()=>Fo,_never:()=>Eo,_nonnegative:()=>Mo,_nonoptional:()=>Ed,_nonpositive:()=>Jo,_normalize:()=>$t,_null:()=>Zo,_nullable:()=>Dd,_number:()=>$o,_optional:()=>Zd,_overwrite:()=>le,_parse:()=>Pe,_parseAsync:()=>Ue,_pipe:()=>Ld,_positive:()=>Vo,_promise:()=>Jd,_property:()=>Bo,_readonly:()=>Cd,_record:()=>wd,_refine:()=>Xo,_regex:()=>dt,_safeDecode:()=>Ct,_safeDecodeAsync:()=>Ft,_safeEncode:()=>Lt,_safeEncodeAsync:()=>Vt,_safeParse:()=>Ne,_safeParseAsync:()=>Ze,_set:()=>jd,_size:()=>lt,_startsWith:()=>gt,_string:()=>lo,_stringFormat:()=>Le,_stringbool:()=>Yo,_success:()=>Ad,_superRefine:()=>qo,_symbol:()=>Uo,_templateLiteral:()=>Vd,_toLowerCase:()=>_t,_toUpperCase:()=>yt,_transform:()=>Nd,_trim:()=>bt,_tuple:()=>Id,_uint32:()=>zo,_uint64:()=>Po,_ulid:()=>pr,_undefined:()=>No,_union:()=>xd,_unknown:()=>To,_uppercase:()=>ft,_url:()=>st,_uuid:()=>ar,_uuidv4:()=>ur,_uuidv6:()=>cr,_uuidv7:()=>sr,_void:()=>Ao,_xid:()=>gr,clone:()=>K,config:()=>L,decode:()=>Ms,decodeAsync:()=>Ks,encode:()=>Js,encodeAsync:()=>Bs,flattenError:()=>He,formatError:()=>et,globalConfig:()=>Be,globalRegistry:()=>oe,isValidBase64:()=>_i,isValidBase64URL:()=>xu,isValidJWT:()=>ku,locales:()=>ze,parse:()=>Zt,parseAsync:()=>Dt,prettifyError:()=>rn,regexes:()=>Q,registry:()=>ir,safeDecode:()=>Ws,safeDecodeAsync:()=>qs,safeEncode:()=>Gs,safeEncodeAsync:()=>Xs,safeParse:()=>nn,safeParseAsync:()=>on,toDotPath:()=>ou,toJSONSchema:()=>Qo,treeifyError:()=>tn,util:()=>_,version:()=>Hn});var Br=Object.freeze({status:"aborted"});function d(e,r,n){var s;function i(c,a){var v,f;var l;Object.defineProperty(c,"_zod",{value:(v=c._zod)!=null?v:{},enumerable:!1}),(f=(l=c._zod).traits)!=null||(l.traits=new Set),c._zod.traits.add(e),r(c,a);for(let h in u.prototype)h in c||Object.defineProperty(c,h,{value:u.prototype[h].bind(c)});c._zod.constr=u,c._zod.def=a}let t=(s=n==null?void 0:n.Parent)!=null?s:Object;class o extends t{}Object.defineProperty(o,"name",{value:e});function u(c){var v;var a;let l=n!=null&&n.Parent?new o:this;i(l,c),(v=(a=l._zod).deferred)!=null||(a.deferred=[]);for(let f of l._zod.deferred)f();return l}return Object.defineProperty(u,"init",{value:i}),Object.defineProperty(u,Symbol.hasInstance,{value:c=>{var a,l;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(l=(a=c==null?void 0:c._zod)==null?void 0:a.traits)==null?void 0:l.has(e)}}),Object.defineProperty(u,"name",{value:e}),u}var Pt=Symbol("zod_brand"),te=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},me=class extends Error{constructor(r){super("Encountered unidirectional transform during encode: ".concat(r)),this.name="ZodEncodeError"}},Be={};function L(e){return e&&Object.assign(Be,e),Be}var _={};_e(_,{BIGINT_FORMAT_RANGES:()=>en,Class:()=>Gr,NUMBER_FORMAT_RANGES:()=>Hr,aborted:()=>he,allowsEval:()=>Xr,assert:()=>ys,assertEqual:()=>hs,assertIs:()=>bs,assertNever:()=>_s,assertNotEqual:()=>$s,assignProp:()=>pe,base64ToUint8Array:()=>ru,base64urlToUint8Array:()=>Rs,cached:()=>je,captureStackTrace:()=>Nt,cleanEnum:()=>As,cleanRegex:()=>We,clone:()=>K,cloneDef:()=>ks,createTransparentProxy:()=>Os,defineLazy:()=>Z,esc:()=>Ut,escapeRegex:()=>ie,extend:()=>Ns,finalizeIssue:()=>Y,floatSafeRemainder:()=>Wr,getElementAtPath:()=>zs,getEnumValues:()=>Ge,getLengthableOrigin:()=>Ye,getParsedType:()=>js,getSizableOrigin:()=>qe,hexToUint8Array:()=>Cs,isObject:()=>ye,isPlainObject:()=>ve,issue:()=>Oe,joinValues:()=>p,jsonStringifyReplacer:()=>Se,merge:()=>Ds,mergeDefs:()=>ge,normalizeParams:()=>y,nullish:()=>fe,numKeys:()=>Ss,objectClone:()=>xs,omit:()=>Us,optionalKeys:()=>Qr,partial:()=>Ts,pick:()=>Ps,prefixIssues:()=>q,primitiveTypes:()=>Yr,promiseAllObject:()=>Is,propertyKeyTypes:()=>Xe,randomString:()=>ws,required:()=>Es,safeExtend:()=>Zs,shallowClone:()=>qr,stringifyPrimitive:()=>b,uint8ArrayToBase64:()=>nu,uint8ArrayToBase64url:()=>Ls,uint8ArrayToHex:()=>Vs,unwrapMessage:()=>Ke});function hs(e){return e}function $s(e){return e}function bs(e){}function _s(e){throw new Error}function ys(e){}function Ge(e){let r=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>r.indexOf(+i)===-1).map(([i,t])=>t)}function p(e,r="|"){return e.map(n=>b(n)).join(r)}function Se(e,r){return typeof r=="bigint"?r.toString():r}function je(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function fe(e){return e==null}function We(e){let r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Wr(e,r){let n=(e.toString().split(".")[1]||"").length,i=r.toString(),t=(i.split(".")[1]||"").length;if(t===0&&/\\d?e-\\d?/.test(i)){let c=i.match(/\\d?e-(\\d?)/);c!=null&&c[1]&&(t=Number.parseInt(c[1]))}let o=n>t?n:t,u=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(r.toFixed(o).replace(".",""));return u%s/10**o}var tu=Symbol("evaluating");function Z(e,r,n){let i;Object.defineProperty(e,r,{get(){if(i!==tu)return i===void 0&&(i=tu,i=n()),i},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function xs(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function pe(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function ge(...e){let r={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(r,i)}return Object.defineProperties({},r)}function ks(e){return ge(e._zod.def)}function zs(e,r){return r?r.reduce((n,i)=>n==null?void 0:n[i],e):e}function Is(e){let r=Object.keys(e),n=r.map(i=>e[i]);return Promise.all(n).then(i=>{let t={};for(let o=0;o<r.length;o++)t[r[o]]=i[o];return t})}function ws(e=10){let r="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=r[Math.floor(Math.random()*r.length)];return n}function Ut(e){return JSON.stringify(e)}var Nt="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ye(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xr=je(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let r=Function;return new r(""),!0}catch(r){return!1}});function ve(e){if(ye(e)===!1)return!1;let r=e.constructor;if(r===void 0)return!0;let n=r.prototype;return!(ye(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function qr(e){return ve(e)?m({},e):Array.isArray(e)?[...e]:e}function Ss(e){let r=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&r++;return r}var js=e=>{let r=typeof e;switch(r){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error("Unknown data type: ".concat(r))}},Xe=new Set(["string","number","symbol"]),Yr=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ie(e){return e.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}function K(e,r,n){let i=new e._zod.constr(r!=null?r:e._zod.def);return(!r||n!=null&&n.parent)&&(i._zod.parent=e),i}function y(e){let r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if((r==null?void 0:r.message)!==void 0){if((r==null?void 0:r.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?z(m({},r),{error:()=>r.error}):r}function Os(e){let r;return new Proxy({},{get(n,i,t){return r!=null||(r=e()),Reflect.get(r,i,t)},set(n,i,t,o){return r!=null||(r=e()),Reflect.set(r,i,t,o)},has(n,i){return r!=null||(r=e()),Reflect.has(r,i)},deleteProperty(n,i){return r!=null||(r=e()),Reflect.deleteProperty(r,i)},ownKeys(n){return r!=null||(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(n,i){return r!=null||(r=e()),Reflect.getOwnPropertyDescriptor(r,i)},defineProperty(n,i,t){return r!=null||(r=e()),Reflect.defineProperty(r,i,t)}})}function b(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?\'"\'.concat(e,\'"\'):"".concat(e)}function Qr(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}var Hr={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},en={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Ps(e,r){let n=e._zod.def,i=ge(e._zod.def,{get shape(){let t={};for(let o in r){if(!(o in n.shape))throw new Error(\'Unrecognized key: "\'.concat(o,\'"\'));r[o]&&(t[o]=n.shape[o])}return pe(this,"shape",t),t},checks:[]});return K(e,i)}function Us(e,r){let n=e._zod.def,i=ge(e._zod.def,{get shape(){let t=m({},e._zod.def.shape);for(let o in r){if(!(o in n.shape))throw new Error(\'Unrecognized key: "\'.concat(o,\'"\'));r[o]&&delete t[o]}return pe(this,"shape",t),t},checks:[]});return K(e,i)}function Ns(e,r){if(!ve(r))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let t=ge(e._zod.def,{get shape(){let o=m(m({},e._zod.def.shape),r);return pe(this,"shape",o),o},checks:[]});return K(e,t)}function Zs(e,r){if(!ve(r))throw new Error("Invalid input to safeExtend: expected a plain object");let n=z(m({},e._zod.def),{get shape(){let i=m(m({},e._zod.def.shape),r);return pe(this,"shape",i),i},checks:e._zod.def.checks});return K(e,n)}function Ds(e,r){let n=ge(e._zod.def,{get shape(){let i=m(m({},e._zod.def.shape),r._zod.def.shape);return pe(this,"shape",i),i},get catchall(){return r._zod.def.catchall},checks:[]});return K(e,n)}function Ts(e,r,n){let i=ge(r._zod.def,{get shape(){let t=r._zod.def.shape,o=m({},t);if(n)for(let u in n){if(!(u in t))throw new Error(\'Unrecognized key: "\'.concat(u,\'"\'));n[u]&&(o[u]=e?new e({type:"optional",innerType:t[u]}):t[u])}else for(let u in t)o[u]=e?new e({type:"optional",innerType:t[u]}):t[u];return pe(this,"shape",o),o},checks:[]});return K(r,i)}function Es(e,r,n){let i=ge(r._zod.def,{get shape(){let t=r._zod.def.shape,o=m({},t);if(n)for(let u in n){if(!(u in o))throw new Error(\'Unrecognized key: "\'.concat(u,\'"\'));n[u]&&(o[u]=new e({type:"nonoptional",innerType:t[u]}))}else for(let u in t)o[u]=new e({type:"nonoptional",innerType:t[u]});return pe(this,"shape",o),o},checks:[]});return K(r,i)}function he(e,r=0){var n;if(e.aborted===!0)return!0;for(let i=r;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}function q(e,r){return r.map(n=>{var t;var i;return(t=(i=n).path)!=null||(i.path=[]),n.path.unshift(e),n})}function Ke(e){return typeof e=="string"?e:e==null?void 0:e.message}function Y(e,r,n){var t,o,u,s,c,a,l,v,f,h,x;let i=z(m({},e),{path:(t=e.path)!=null?t:[]});if(!e.message){let S=(x=(h=(v=(a=Ke((s=(u=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:u.error)==null?void 0:s.call(u,e)))!=null?a:Ke((c=r==null?void 0:r.error)==null?void 0:c.call(r,e)))!=null?v:Ke((l=n.customError)==null?void 0:l.call(n,e)))!=null?h:Ke((f=n.localeError)==null?void 0:f.call(n,e)))!=null?x:"Invalid input";i.message=S}return delete i.inst,delete i.continue,r!=null&&r.reportInput||delete i.input,i}function qe(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ye(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Oe(...e){let[r,n,i]=e;return typeof r=="string"?{message:r,code:"custom",input:n,inst:i}:m({},r)}function As(e){return Object.entries(e).filter(([r,n])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function ru(e){let r=atob(e),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n}function nu(e){let r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}function Rs(e){let r=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-r.length%4)%4);return ru(r+n)}function Ls(e){return nu(e).replace(/\\+/g,"-").replace(/\\//g,"_").replace(/=/g,"")}function Cs(e){let r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(r.length/2);for(let i=0;i<r.length;i+=2)n[i/2]=Number.parseInt(r.slice(i,i+2),16);return n}function Vs(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}var Gr=class{constructor(...r){}};var iu=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,Se,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Qe=d("$ZodError",iu),G=d("$ZodError",iu,{Parent:Error});function He(e,r=n=>n.message){let n={},i=[];for(let t of e.issues)t.path.length>0?(n[t.path[0]]=n[t.path[0]]||[],n[t.path[0]].push(r(t))):i.push(r(t));return{formErrors:i,fieldErrors:n}}function et(e,r=n=>n.message){let n={_errors:[]},i=t=>{for(let o of t.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(u=>i({issues:u}));else if(o.code==="invalid_key")i({issues:o.issues});else if(o.code==="invalid_element")i({issues:o.issues});else if(o.path.length===0)n._errors.push(r(o));else{let u=n,s=0;for(;s<o.path.length;){let c=o.path[s];s===o.path.length-1?(u[c]=u[c]||{_errors:[]},u[c]._errors.push(r(o))):u[c]=u[c]||{_errors:[]},u=u[c],s++}}};return i(e),n}function tn(e,r=n=>n.message){let n={errors:[]},i=(t,o=[])=>{var c,a,l,v;var u,s;for(let f of t.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(h=>i({issues:h},f.path));else if(f.code==="invalid_key")i({issues:f.issues},f.path);else if(f.code==="invalid_element")i({issues:f.issues},f.path);else{let h=[...o,...f.path];if(h.length===0){n.errors.push(r(f));continue}let x=n,S=0;for(;S<h.length;){let I=h[S],C=S===h.length-1;typeof I=="string"?((c=x.properties)!=null||(x.properties={}),(a=(u=x.properties)[I])!=null||(u[I]={errors:[]}),x=x.properties[I]):((l=x.items)!=null||(x.items=[]),(v=(s=x.items)[I])!=null||(s[I]={errors:[]}),x=x.items[I]),C&&x.errors.push(r(f)),S++}}};return i(e),n}function ou(e){let r=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?r.push("[".concat(i,"]")):typeof i=="symbol"?r.push("[".concat(JSON.stringify(String(i)),"]")):/[^\\w$]/.test(i)?r.push("[".concat(JSON.stringify(i),"]")):(r.length&&r.push("."),r.push(i));return r.join("")}function rn(e){var i;let r=[],n=[...e.issues].sort((t,o)=>{var u,s;return((u=t.path)!=null?u:[]).length-((s=o.path)!=null?s:[]).length});for(let t of n)r.push("\\u2716 ".concat(t.message)),(i=t.path)!=null&&i.length&&r.push(" \\u2192 at ".concat(ou(t.path)));return r.join("\\n")}var Pe=e=>(r,n,i,t)=>{var s;let o=i?Object.assign(i,{async:!1}):{async:!1},u=r._zod.run({value:n,issues:[]},o);if(u instanceof Promise)throw new te;if(u.issues.length){let c=new((s=t==null?void 0:t.Err)!=null?s:e)(u.issues.map(a=>Y(a,o,L())));throw Nt(c,t==null?void 0:t.callee),c}return u.value},Zt=Pe(G),Ue=e=>async(r,n,i,t)=>{var s;let o=i?Object.assign(i,{async:!0}):{async:!0},u=r._zod.run({value:n,issues:[]},o);if(u instanceof Promise&&(u=await u),u.issues.length){let c=new((s=t==null?void 0:t.Err)!=null?s:e)(u.issues.map(a=>Y(a,o,L())));throw Nt(c,t==null?void 0:t.callee),c}return u.value},Dt=Ue(G),Ne=e=>(r,n,i)=>{let t=i?z(m({},i),{async:!1}):{async:!1},o=r._zod.run({value:n,issues:[]},t);if(o instanceof Promise)throw new te;return o.issues.length?{success:!1,error:new(e!=null?e:Qe)(o.issues.map(u=>Y(u,t,L())))}:{success:!0,data:o.value}},nn=Ne(G),Ze=e=>async(r,n,i)=>{let t=i?Object.assign(i,{async:!0}):{async:!0},o=r._zod.run({value:n,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(u=>Y(u,t,L())))}:{success:!0,data:o.value}},on=Ze(G),Tt=e=>(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Pe(e)(r,n,t)},Js=Tt(G),Et=e=>(r,n,i)=>Pe(e)(r,n,i),Ms=Et(G),At=e=>async(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ue(e)(r,n,t)},Bs=At(G),Rt=e=>async(r,n,i)=>Ue(e)(r,n,i),Ks=Rt(G),Lt=e=>(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ne(e)(r,n,t)},Gs=Lt(G),Ct=e=>(r,n,i)=>Ne(e)(r,n,i),Ws=Ct(G),Vt=e=>async(r,n,i)=>{let t=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ze(e)(r,n,t)},Xs=Vt(G),Ft=e=>async(r,n,i)=>Ze(e)(r,n,i),qs=Ft(G);var Q={};_e(Q,{base64:()=>_n,base64url:()=>Jt,bigint:()=>Sn,boolean:()=>Pn,browserEmail:()=>il,cidrv4:()=>$n,cidrv6:()=>bn,cuid:()=>an,cuid2:()=>un,date:()=>kn,datetime:()=>In,domain:()=>al,duration:()=>mn,e164:()=>xn,email:()=>pn,emoji:()=>gn,extendedDuration:()=>Ys,guid:()=>fn,hex:()=>ul,hostname:()=>yn,html5Email:()=>tl,idnEmail:()=>nl,integer:()=>jn,ipv4:()=>vn,ipv6:()=>hn,ksuid:()=>ln,lowercase:()=>Zn,md5_base64:()=>sl,md5_base64url:()=>ll,md5_hex:()=>cl,nanoid:()=>dn,null:()=>Un,number:()=>On,rfc5322Email:()=>rl,sha1_base64:()=>ml,sha1_base64url:()=>fl,sha1_hex:()=>dl,sha256_base64:()=>gl,sha256_base64url:()=>vl,sha256_hex:()=>pl,sha384_base64:()=>$l,sha384_base64url:()=>bl,sha384_hex:()=>hl,sha512_base64:()=>yl,sha512_base64url:()=>xl,sha512_hex:()=>_l,string:()=>wn,time:()=>zn,ulid:()=>cn,undefined:()=>Nn,unicodeEmail:()=>au,uppercase:()=>Dn,uuid:()=>xe,uuid4:()=>Qs,uuid6:()=>Hs,uuid7:()=>el,xid:()=>sn});var an=/^[cC][^\\s-]{8,}$/,un=/^[0-9a-z]+$/,cn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sn=/^[0-9a-vA-V]{20}$/,ln=/^[A-Za-z0-9]{27}$/,dn=/^[a-zA-Z0-9_-]{21}$/,mn=/^P(?:(\\d+W)|(?!.*W)(?=\\d|T\\d)(\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+([.,]\\d+)?S)?)?)$/,Ys=/^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/,fn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,xe=e=>e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(e,"[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$")):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Qs=xe(4),Hs=xe(6),el=xe(7),pn=/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_\'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/,tl=/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rl=/^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,au=new RegExp(\'^[^\\\\s@"]{1,64}@[^\\\\s@]{1,255}$\',"u"),nl=au,il=/^[a-zA-Z0-9.!#$%&\'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ol="^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$";function gn(){return new RegExp(ol,"u")}var vn=/^(?:(?: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])$/,hn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,$n=/^((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])\\/([0-9]|[1-2][0-9]|3[0-2])$/,bn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_n=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Jt=/^[A-Za-z0-9_-]*$/,yn=/^(?=.{1,253}\\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\\.?$/,al=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,xn=/^\\+(?:[0-9]){6,14}[0-9]$/,uu="(?:(?:\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\\\d|30)|(?:02)-(?:0[1-9]|1\\\\d|2[0-8])))",kn=new RegExp("^".concat(uu,"$"));function cu(e){let r="(?:[01]\\\\d|2[0-3]):[0-5]\\\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(r):e.precision===0?"".concat(r,":[0-5]\\\\d"):"".concat(r,":[0-5]\\\\d\\\\.\\\\d{").concat(e.precision,"}"):"".concat(r,"(?::[0-5]\\\\d(?:\\\\.\\\\d+)?)?")}function zn(e){return new RegExp("^".concat(cu(e),"$"))}function In(e){let r=cu({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\\\d|2[0-3]):[0-5]\\\\d)");let i="".concat(r,"(?:").concat(n.join("|"),")");return new RegExp("^".concat(uu,"T(?:").concat(i,")$"))}var wn=e=>{var n,i;let r=e?"[\\\\s\\\\S]{".concat((n=e==null?void 0:e.minimum)!=null?n:0,",").concat((i=e==null?void 0:e.maximum)!=null?i:"","}"):"[\\\\s\\\\S]*";return new RegExp("^".concat(r,"$"))},Sn=/^-?\\d+n?$/,jn=/^-?\\d+$/,On=/^-?\\d+(?:\\.\\d+)?/,Pn=/^(?:true|false)$/i,Un=/^null$/i;var Nn=/^undefined$/i;var Zn=/^[^A-Z]*$/,Dn=/^[^a-z]*$/,ul=/^[0-9a-fA-F]*$/;function tt(e,r){return new RegExp("^[A-Za-z0-9+/]{".concat(e,"}").concat(r,"$"))}function rt(e){return new RegExp("^[A-Za-z0-9_-]{".concat(e,"}$"))}var cl=/^[0-9a-fA-F]{32}$/,sl=tt(22,"=="),ll=rt(22),dl=/^[0-9a-fA-F]{40}$/,ml=tt(27,"="),fl=rt(27),pl=/^[0-9a-fA-F]{64}$/,gl=tt(43,"="),vl=rt(43),hl=/^[0-9a-fA-F]{96}$/,$l=tt(64,""),bl=rt(64),_l=/^[0-9a-fA-F]{128}$/,yl=tt(86,"=="),xl=rt(86);var R=d("$ZodCheck",(e,r)=>{var i,t;var n;(i=e._zod)!=null||(e._zod={}),e._zod.def=r,(t=(n=e._zod).onattach)!=null||(n.onattach=[])}),lu={number:"number",bigint:"bigint",object:"date"},Mt=d("$ZodCheckLessThan",(e,r)=>{R.init(e,r);let n=lu[typeof r.value];e._zod.onattach.push(i=>{var u;let t=i._zod.bag,o=(u=r.inclusive?t.maximum:t.exclusiveMaximum)!=null?u:Number.POSITIVE_INFINITY;r.value<o&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value<=r.value:i.value<r.value)||i.issues.push({origin:n,code:"too_big",maximum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Bt=d("$ZodCheckGreaterThan",(e,r)=>{R.init(e,r);let n=lu[typeof r.value];e._zod.onattach.push(i=>{var u;let t=i._zod.bag,o=(u=r.inclusive?t.minimum:t.exclusiveMinimum)!=null?u:Number.NEGATIVE_INFINITY;r.value>o&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=i=>{(r.inclusive?i.value>=r.value:i.value>r.value)||i.issues.push({origin:n,code:"too_small",minimum:r.value,input:i.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),Tn=d("$ZodCheckMultipleOf",(e,r)=>{R.init(e,r),e._zod.onattach.push(n=>{var t;var i;(t=(i=n._zod.bag).multipleOf)!=null||(i.multipleOf=r.value)}),e._zod.check=n=>{if(typeof n.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%r.value===BigInt(0):Wr(n.value,r.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:r.value,input:n.value,inst:e,continue:!r.abort})}}),En=d("$ZodCheckNumberFormat",(e,r)=>{var u;R.init(e,r),r.format=r.format||"float64";let n=(u=r.format)==null?void 0:u.includes("int"),i=n?"int":"number",[t,o]=Hr[r.format];e._zod.onattach.push(s=>{let c=s._zod.bag;c.format=r.format,c.minimum=t,c.maximum=o,n&&(c.pattern=jn)}),e._zod.check=s=>{let c=s.value;if(n){if(!Number.isInteger(c)){s.issues.push({expected:i,format:r.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?s.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort}):s.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!r.abort});return}}c<t&&s.issues.push({origin:"number",input:c,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),c>o&&s.issues.push({origin:"number",input:c,code:"too_big",maximum:o,inst:e})}}),An=d("$ZodCheckBigIntFormat",(e,r)=>{R.init(e,r);let[n,i]=en[r.format];e._zod.onattach.push(t=>{let o=t._zod.bag;o.format=r.format,o.minimum=n,o.maximum=i}),e._zod.check=t=>{let o=t.value;o<n&&t.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!r.abort}),o>i&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),Rn=d("$ZodCheckMaxSize",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.size!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.maximum)!=null?u:Number.POSITIVE_INFINITY;r.maximum<o&&(t._zod.bag.maximum=r.maximum)}),e._zod.check=t=>{let o=t.value;o.size<=r.maximum||t.issues.push({origin:qe(o),code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Ln=d("$ZodCheckMinSize",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.size!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.minimum)!=null?u:Number.NEGATIVE_INFINITY;r.minimum>o&&(t._zod.bag.minimum=r.minimum)}),e._zod.check=t=>{let o=t.value;o.size>=r.minimum||t.issues.push({origin:qe(o),code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Cn=d("$ZodCheckSizeEquals",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.size!==void 0}),e._zod.onattach.push(t=>{let o=t._zod.bag;o.minimum=r.size,o.maximum=r.size,o.size=r.size}),e._zod.check=t=>{let o=t.value,u=o.size;if(u===r.size)return;let s=u>r.size;t.issues.push(z(m({origin:qe(o)},s?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size}),{inclusive:!0,exact:!0,input:t.value,inst:e,continue:!r.abort}))}}),Vn=d("$ZodCheckMaxLength",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.length!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.maximum)!=null?u:Number.POSITIVE_INFINITY;r.maximum<o&&(t._zod.bag.maximum=r.maximum)}),e._zod.check=t=>{let o=t.value;if(o.length<=r.maximum)return;let s=Ye(o);t.issues.push({origin:s,code:"too_big",maximum:r.maximum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Fn=d("$ZodCheckMinLength",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.length!==void 0}),e._zod.onattach.push(t=>{var u;let o=(u=t._zod.bag.minimum)!=null?u:Number.NEGATIVE_INFINITY;r.minimum>o&&(t._zod.bag.minimum=r.minimum)}),e._zod.check=t=>{let o=t.value;if(o.length>=r.minimum)return;let s=Ye(o);t.issues.push({origin:s,code:"too_small",minimum:r.minimum,inclusive:!0,input:o,inst:e,continue:!r.abort})}}),Jn=d("$ZodCheckLengthEquals",(e,r)=>{var i;var n;R.init(e,r),(i=(n=e._zod.def).when)!=null||(n.when=t=>{let o=t.value;return!fe(o)&&o.length!==void 0}),e._zod.onattach.push(t=>{let o=t._zod.bag;o.minimum=r.length,o.maximum=r.length,o.length=r.length}),e._zod.check=t=>{let o=t.value,u=o.length;if(u===r.length)return;let s=Ye(o),c=u>r.length;t.issues.push(z(m({origin:s},c?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}),{inclusive:!0,exact:!0,input:t.value,inst:e,continue:!r.abort}))}}),De=d("$ZodCheckStringFormat",(e,r)=>{var t,o;var n,i;R.init(e,r),e._zod.onattach.push(u=>{var c;let s=u._zod.bag;s.format=r.format,r.pattern&&((c=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(r.pattern))}),r.pattern?(t=(n=e._zod).check)!=null||(n.check=u=>{r.pattern.lastIndex=0,!r.pattern.test(u.value)&&u.issues.push(z(m({origin:"string",code:"invalid_format",format:r.format,input:u.value},r.pattern?{pattern:r.pattern.toString()}:{}),{inst:e,continue:!r.abort}))}):(o=(i=e._zod).check)!=null||(i.check=()=>{})}),Mn=d("$ZodCheckRegex",(e,r)=>{De.init(e,r),e._zod.check=n=>{r.pattern.lastIndex=0,!r.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),Bn=d("$ZodCheckLowerCase",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=Zn),De.init(e,r)}),Kn=d("$ZodCheckUpperCase",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=Dn),De.init(e,r)}),Gn=d("$ZodCheckIncludes",(e,r)=>{R.init(e,r);let n=ie(r.includes),i=new RegExp(typeof r.position=="number"?"^.{".concat(r.position,"}").concat(n):n);r.pattern=i,e._zod.onattach.push(t=>{var u;let o=t._zod.bag;(u=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Wn=d("$ZodCheckStartsWith",(e,r)=>{var i;R.init(e,r);let n=new RegExp("^".concat(ie(r.prefix),".*"));(i=r.pattern)!=null||(r.pattern=n),e._zod.onattach.push(t=>{var u;let o=t._zod.bag;(u=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=t=>{t.value.startsWith(r.prefix)||t.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:t.value,inst:e,continue:!r.abort})}}),Xn=d("$ZodCheckEndsWith",(e,r)=>{var i;R.init(e,r);let n=new RegExp(".*".concat(ie(r.suffix),"$"));(i=r.pattern)!=null||(r.pattern=n),e._zod.onattach.push(t=>{var u;let o=t._zod.bag;(u=o.patterns)!=null||(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=t=>{t.value.endsWith(r.suffix)||t.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:t.value,inst:e,continue:!r.abort})}});function su(e,r,n){e.issues.length&&r.issues.push(...q(n,e.issues))}var qn=d("$ZodCheckProperty",(e,r)=>{R.init(e,r),e._zod.check=n=>{let i=r.schema._zod.run({value:n.value[r.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>su(t,n,r.property));su(i,n,r.property)}}),Yn=d("$ZodCheckMimeType",(e,r)=>{R.init(e,r);let n=new Set(r.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=r.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:r.mime,input:i.value.type,inst:e,continue:!r.abort})}}),Qn=d("$ZodCheckOverwrite",(e,r)=>{R.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});var nt=class{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}let i=r.split("\\n").filter(u=>u),t=Math.min(...i.map(u=>u.length-u.trimStart().length)),o=i.map(u=>u.slice(t)).map(u=>" ".repeat(this.indent*2)+u);for(let u of o)this.content.push(u)}compile(){var o;let r=Function,n=this==null?void 0:this.args,t=[...((o=this==null?void 0:this.content)!=null?o:[""]).map(u=>" ".concat(u))];return new r(...n,t.join("\\n"))}};var Hn={major:4,minor:1,patch:12};var O=d("$ZodType",(e,r)=>{var t,o,u;var n;e!=null||(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Hn;let i=[...(t=e._zod.def.checks)!=null?t:[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let s of i)for(let c of s._zod.onattach)c(e);if(i.length===0)(o=(n=e._zod).deferred)!=null||(n.deferred=[]),(u=e._zod.deferred)==null||u.push(()=>{e._zod.run=e._zod.parse});else{let s=(a,l,v)=>{let f=he(a),h;for(let x of l){if(x._zod.def.when){if(!x._zod.def.when(a))continue}else if(f)continue;let S=a.issues.length,I=x._zod.check(a);if(I instanceof Promise&&(v==null?void 0:v.async)===!1)throw new te;if(h||I instanceof Promise)h=(h!=null?h:Promise.resolve()).then(async()=>{await I,a.issues.length!==S&&(f||(f=he(a,S)))});else{if(a.issues.length===S)continue;f||(f=he(a,S))}}return h?h.then(()=>a):a},c=(a,l,v)=>{if(he(a))return a.aborted=!0,a;let f=s(l,i,v);if(f instanceof Promise){if(v.async===!1)throw new te;return f.then(h=>e._zod.parse(h,v))}return e._zod.parse(f,v)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let f=e._zod.parse({value:a.value,issues:[]},z(m({},l),{skipChecks:!0}));return f instanceof Promise?f.then(h=>c(h,a,l)):c(f,a,l)}let v=e._zod.parse(a,l);if(v instanceof Promise){if(l.async===!1)throw new te;return v.then(f=>s(f,i,l))}return s(v,i,l)}}e["~standard"]={validate:s=>{var c;try{let a=nn(e,s);return a.success?{value:a.data}:{issues:(c=a.error)==null?void 0:c.issues}}catch(a){return on(e,s).then(l=>{var v;return l.success?{value:l.data}:{issues:(v=l.error)==null?void 0:v.issues}})}},vendor:"zod",version:1}}),ke=d("$ZodString",(e,r)=>{var n,i,t;O.init(e,r),e._zod.pattern=(t=[...(i=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?i:[]].pop())!=null?t:wn(e._zod.bag),e._zod.parse=(o,u)=>{if(r.coerce)try{o.value=String(o.value)}catch(s){}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),T=d("$ZodStringFormat",(e,r)=>{De.init(e,r),ke.init(e,r)}),ti=d("$ZodGUID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=fn),T.init(e,r)}),ri=d("$ZodUUID",(e,r)=>{var n,i;if(r.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(o===void 0)throw new Error(\'Invalid UUID version: "\'.concat(r.version,\'"\'));(n=r.pattern)!=null||(r.pattern=xe(o))}else(i=r.pattern)!=null||(r.pattern=xe());T.init(e,r)}),ni=d("$ZodEmail",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=pn),T.init(e,r)}),ii=d("$ZodURL",(e,r)=>{T.init(e,r),e._zod.check=n=>{try{let i=n.value.trim(),t=new URL(i);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:yn.source,input:n.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:n.value,inst:e,continue:!r.abort})),r.normalize?n.value=t.href:n.value=i;return}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!r.abort})}}}),oi=d("$ZodEmoji",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=gn()),T.init(e,r)}),ai=d("$ZodNanoID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=dn),T.init(e,r)}),ui=d("$ZodCUID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=an),T.init(e,r)}),ci=d("$ZodCUID2",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=un),T.init(e,r)}),si=d("$ZodULID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=cn),T.init(e,r)}),li=d("$ZodXID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=sn),T.init(e,r)}),di=d("$ZodKSUID",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=ln),T.init(e,r)}),mi=d("$ZodISODateTime",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=In(r)),T.init(e,r)}),fi=d("$ZodISODate",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=kn),T.init(e,r)}),pi=d("$ZodISOTime",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=zn(r)),T.init(e,r)}),gi=d("$ZodISODuration",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=mn),T.init(e,r)}),vi=d("$ZodIPv4",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=vn),T.init(e,r),e._zod.onattach.push(i=>{let t=i._zod.bag;t.format="ipv4"})}),hi=d("$ZodIPv6",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=hn),T.init(e,r),e._zod.onattach.push(i=>{let t=i._zod.bag;t.format="ipv6"}),e._zod.check=i=>{try{new URL("http://[".concat(i.value,"]"))}catch(t){i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!r.abort})}}}),$i=d("$ZodCIDRv4",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=$n),T.init(e,r)}),bi=d("$ZodCIDRv6",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=bn),T.init(e,r),e._zod.check=i=>{let t=i.value.split("/");try{if(t.length!==2)throw new Error;let[o,u]=t;if(!u)throw new Error;let s=Number(u);if("".concat(s)!==u)throw new Error;if(s<0||s>128)throw new Error;new URL("http://[".concat(o,"]"))}catch(o){i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!r.abort})}}});function _i(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(r){return!1}}var yi=d("$ZodBase64",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=_n),T.init(e,r),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64"}),e._zod.check=i=>{_i(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!r.abort})}});function xu(e){if(!Jt.test(e))return!1;let r=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return _i(n)}var xi=d("$ZodBase64URL",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=Jt),T.init(e,r),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64url"}),e._zod.check=i=>{xu(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!r.abort})}}),ki=d("$ZodE164",(e,r)=>{var n;(n=r.pattern)!=null||(r.pattern=xn),T.init(e,r)});function ku(e,r=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let t=JSON.parse(atob(i));return!("typ"in t&&(t==null?void 0:t.typ)!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch(n){return!1}}var zi=d("$ZodJWT",(e,r)=>{T.init(e,r),e._zod.check=n=>{ku(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),Ii=d("$ZodCustomStringFormat",(e,r)=>{T.init(e,r),e._zod.check=n=>{r.fn(n.value)||n.issues.push({code:"invalid_format",format:r.format,input:n.value,inst:e,continue:!r.abort})}}),Yt=d("$ZodNumber",(e,r)=>{var n;O.init(e,r),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:On,e._zod.parse=(i,t)=>{if(r.coerce)try{i.value=Number(i.value)}catch(s){}let o=i.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return i;let u=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return i.issues.push(m({expected:"number",code:"invalid_type",input:o,inst:e},u?{received:u}:{})),i}}),wi=d("$ZodNumber",(e,r)=>{En.init(e,r),Yt.init(e,r)}),it=d("$ZodBoolean",(e,r)=>{O.init(e,r),e._zod.pattern=Pn,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=!!n.value}catch(o){}let t=n.value;return typeof t=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),n}}),Qt=d("$ZodBigInt",(e,r)=>{O.init(e,r),e._zod.pattern=Sn,e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=BigInt(n.value)}catch(t){}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Si=d("$ZodBigInt",(e,r)=>{An.init(e,r),Qt.init(e,r)}),ji=d("$ZodSymbol",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),n}}),Oi=d("$ZodUndefined",(e,r)=>{O.init(e,r),e._zod.pattern=Nn,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),n}}),Pi=d("$ZodNull",(e,r)=>{O.init(e,r),e._zod.pattern=Un,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let t=n.value;return t===null||n.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),n}}),Ui=d("$ZodAny",(e,r)=>{O.init(e,r),e._zod.parse=n=>n}),Ni=d("$ZodUnknown",(e,r)=>{O.init(e,r),e._zod.parse=n=>n}),Zi=d("$ZodNever",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Di=d("$ZodVoid",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return typeof t>"u"||n.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),n}}),Ti=d("$ZodDate",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(r.coerce)try{n.value=new Date(n.value)}catch(s){}let t=n.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||n.issues.push(z(m({expected:"date",code:"invalid_type",input:t},o?{received:"Invalid Date"}:{}),{inst:e})),n}});function mu(e,r,n){e.issues.length&&r.issues.push(...q(n,e.issues)),r.value[n]=e.value}var Ei=d("$ZodArray",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!Array.isArray(t))return n.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),n;n.value=Array(t.length);let o=[];for(let u=0;u<t.length;u++){let s=t[u],c=r.element._zod.run({value:s,issues:[]},i);c instanceof Promise?o.push(c.then(a=>mu(a,n,u))):mu(c,n,u)}return o.length?Promise.all(o).then(()=>n):n}});function qt(e,r,n,i){e.issues.length&&r.issues.push(...q(n,e.issues)),e.value===void 0?n in i&&(r.value[n]=void 0):r.value[n]=e.value}function zu(e){var i,t,o,u;let r=Object.keys(e.shape);for(let s of r)if(!((u=(o=(t=(i=e.shape)==null?void 0:i[s])==null?void 0:t._zod)==null?void 0:o.traits)!=null&&u.has("$ZodType")))throw new Error(\'Invalid element at key "\'.concat(s,\'": expected a Zod schema\'));let n=Qr(e.shape);return z(m({},e),{keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(n)})}function Iu(e,r,n,i,t,o){let u=[],s=t.keySet,c=t.catchall._zod,a=c.def.type;for(let l of Object.keys(r)){if(s.has(l))continue;if(a==="never"){u.push(l);continue}let v=c.run({value:r[l],issues:[]},i);v instanceof Promise?e.push(v.then(f=>qt(f,n,l,r))):qt(v,n,l,r)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:r,inst:o}),e.length?Promise.all(e).then(()=>n):n}var wu=d("$ZodObject",(e,r)=>{O.init(e,r);let n=Object.getOwnPropertyDescriptor(r,"shape");if(!(n!=null&&n.get)){let s=r.shape;Object.defineProperty(r,"shape",{get:()=>{let c=m({},s);return Object.defineProperty(r,"shape",{value:c}),c}})}let i=je(()=>zu(r));Z(e._zod,"propValues",()=>{var a;let s=r.shape,c={};for(let l in s){let v=s[l]._zod;if(v.values){(a=c[l])!=null||(c[l]=new Set);for(let f of v.values)c[l].add(f)}}return c});let t=ye,o=r.catchall,u;e._zod.parse=(s,c)=>{u!=null||(u=i.value);let a=s.value;if(!t(a))return s.issues.push({expected:"object",code:"invalid_type",input:a,inst:e}),s;s.value={};let l=[],v=u.shape;for(let f of u.keys){let x=v[f]._zod.run({value:a[f],issues:[]},c);x instanceof Promise?l.push(x.then(S=>qt(S,s,f,a))):qt(x,s,f,a)}return o?Iu(l,a,s,c,i.value,e):l.length?Promise.all(l).then(()=>s):s}}),Ai=d("$ZodObjectJIT",(e,r)=>{wu.init(e,r);let n=e._zod.parse,i=je(()=>zu(r)),t=f=>{let h=new nt(["shape","payload","ctx"]),x=i.value,S=g=>{let $=Ut(g);return"shape[".concat($,"]._zod.run({ value: input[").concat($,"], issues: [] }, ctx)")};h.write("const input = payload.value;");let I=Object.create(null),C=0;for(let g of x.keys)I[g]="key_".concat(C++);h.write("const newResult = {};");for(let g of x.keys){let $=I[g],k=Ut(g);h.write("const ".concat($," = ").concat(S(g),";")),h.write("\\n if (".concat($,".issues.length) {\\n payload.issues = payload.issues.concat(").concat($,".issues.map(iss => ({\\n ...iss,\\n path: iss.path ? [").concat(k,", ...iss.path] : [").concat(k,"]\\n })));\\n }\\n \\n \\n if (").concat($,".value === undefined) {\\n if (").concat(k," in input) {\\n newResult[").concat(k,"] = undefined;\\n }\\n } else {\\n newResult[").concat(k,"] = ").concat($,".value;\\n }\\n \\n "))}h.write("payload.value = newResult;"),h.write("return payload;");let j=h.compile();return(g,$)=>j(f,g,$)},o,u=ye,s=!Be.jitless,a=s&&Xr.value,l=r.catchall,v;e._zod.parse=(f,h)=>{v!=null||(v=i.value);let x=f.value;return u(x)?s&&a&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(o||(o=t(r.shape)),f=o(f,h),l?Iu([],x,f,h,v,e):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function fu(e,r,n,i){for(let o of e)if(o.issues.length===0)return r.value=o.value,r;let t=e.filter(o=>!he(o));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:n,errors:e.map(o=>o.issues.map(u=>Y(u,i,L())))}),r)}var Ht=d("$ZodUnion",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),Z(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),Z(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),Z(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){let t=r.options.map(o=>o._zod.pattern);return new RegExp("^(".concat(t.map(o=>We(o.source)).join("|"),")$"))}});let n=r.options.length===1,i=r.options[0]._zod.run;e._zod.parse=(t,o)=>{if(n)return i(t,o);let u=!1,s=[];for(let c of r.options){let a=c._zod.run({value:t.value,issues:[]},o);if(a instanceof Promise)s.push(a),u=!0;else{if(a.issues.length===0)return a;s.push(a)}}return u?Promise.all(s).then(c=>fu(c,t,e,o)):fu(s,t,e,o)}}),Ri=d("$ZodDiscriminatedUnion",(e,r)=>{Ht.init(e,r);let n=e._zod.parse;Z(e._zod,"propValues",()=>{let t={};for(let o of r.options){let u=o._zod.propValues;if(!u||Object.keys(u).length===0)throw new Error(\'Invalid discriminated union option at index "\'.concat(r.options.indexOf(o),\'"\'));for(let[s,c]of Object.entries(u)){t[s]||(t[s]=new Set);for(let a of c)t[s].add(a)}}return t});let i=je(()=>{var u;let t=r.options,o=new Map;for(let s of t){let c=(u=s._zod.propValues)==null?void 0:u[r.discriminator];if(!c||c.size===0)throw new Error(\'Invalid discriminated union option at index "\'.concat(r.options.indexOf(s),\'"\'));for(let a of c){if(o.has(a))throw new Error(\'Duplicate discriminator value "\'.concat(String(a),\'"\'));o.set(a,s)}}return o});e._zod.parse=(t,o)=>{let u=t.value;if(!ye(u))return t.issues.push({code:"invalid_type",expected:"object",input:u,inst:e}),t;let s=i.value.get(u==null?void 0:u[r.discriminator]);return s?s._zod.run(t,o):r.unionFallback?n(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:u,path:[r.discriminator],inst:e}),t)}}),Li=d("$ZodIntersection",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value,o=r.left._zod.run({value:t,issues:[]},i),u=r.right._zod.run({value:t,issues:[]},i);return o instanceof Promise||u instanceof Promise?Promise.all([o,u]).then(([c,a])=>pu(n,c,a)):pu(n,o,u)}});function ei(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(ve(e)&&ve(r)){let n=Object.keys(r),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),t=m(m({},e),r);for(let o of i){let u=ei(e[o],r[o]);if(!u.valid)return{valid:!1,mergeErrorPath:[o,...u.mergeErrorPath]};t[o]=u.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let t=e[i],o=r[i],u=ei(t,o);if(!u.valid)return{valid:!1,mergeErrorPath:[i,...u.mergeErrorPath]};n.push(u.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function pu(e,r,n){if(r.issues.length&&e.issues.push(...r.issues),n.issues.length&&e.issues.push(...n.issues),he(e))return e;let i=ei(r.value,n.value);if(!i.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(i.mergeErrorPath)));return e.value=i.data,e}var er=d("$ZodTuple",(e,r)=>{O.init(e,r);let n=r.items,i=n.length-[...n].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,o)=>{let u=t.value;if(!Array.isArray(u))return t.issues.push({input:u,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];let s=[];if(!r.rest){let a=u.length>n.length,l=u.length<i-1;if(a||l)return t.issues.push(z(m({},a?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}),{input:u,inst:e,origin:"array"})),t}let c=-1;for(let a of n){if(c++,c>=u.length&&c>=i)continue;let l=a._zod.run({value:u[c],issues:[]},o);l instanceof Promise?s.push(l.then(v=>Kt(v,t,c))):Kt(l,t,c)}if(r.rest){let a=u.slice(n.length);for(let l of a){c++;let v=r.rest._zod.run({value:l,issues:[]},o);v instanceof Promise?s.push(v.then(f=>Kt(f,t,c))):Kt(v,t,c)}}return s.length?Promise.all(s).then(()=>t):t}});function Kt(e,r,n){e.issues.length&&r.issues.push(...q(n,e.issues)),r.value[n]=e.value}var Ci=d("$ZodRecord",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!ve(t))return n.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),n;let o=[];if(r.keyType._zod.values){let u=r.keyType._zod.values;n.value={};for(let c of u)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){let a=r.valueType._zod.run({value:t[c],issues:[]},i);a instanceof Promise?o.push(a.then(l=>{l.issues.length&&n.issues.push(...q(c,l.issues)),n.value[c]=l.value})):(a.issues.length&&n.issues.push(...q(c,a.issues)),n.value[c]=a.value)}let s;for(let c in t)u.has(c)||(s=s!=null?s:[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:s})}else{n.value={};for(let u of Reflect.ownKeys(t)){if(u==="__proto__")continue;let s=r.keyType._zod.run({value:u,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(a=>Y(a,i,L())),input:u,path:[u],inst:e}),n.value[s.value]=s.value;continue}let c=r.valueType._zod.run({value:t[u],issues:[]},i);c instanceof Promise?o.push(c.then(a=>{a.issues.length&&n.issues.push(...q(u,a.issues)),n.value[s.value]=a.value})):(c.issues.length&&n.issues.push(...q(u,c.issues)),n.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Vi=d("$ZodMap",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),n;let o=[];n.value=new Map;for(let[u,s]of t){let c=r.keyType._zod.run({value:u,issues:[]},i),a=r.valueType._zod.run({value:s,issues:[]},i);c instanceof Promise||a instanceof Promise?o.push(Promise.all([c,a]).then(([l,v])=>{gu(l,v,n,u,t,e,i)})):gu(c,a,n,u,t,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function gu(e,r,n,i,t,o,u){e.issues.length&&(Xe.has(typeof i)?n.issues.push(...q(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(s=>Y(s,u,L()))})),r.issues.length&&(Xe.has(typeof i)?n.issues.push(...q(i,r.issues)):n.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:i,issues:r.issues.map(s=>Y(s,u,L()))})),n.value.set(e.value,r.value)}var Fi=d("$ZodSet",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;if(!(t instanceof Set))return n.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let u of t){let s=r.valueType._zod.run({value:u,issues:[]},i);s instanceof Promise?o.push(s.then(c=>vu(c,n))):vu(s,n)}return o.length?Promise.all(o).then(()=>n):n}});function vu(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}var Ji=d("$ZodEnum",(e,r)=>{O.init(e,r);let n=Ge(r.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp("^(".concat(n.filter(t=>Xe.has(typeof t)).map(t=>typeof t=="string"?ie(t):t.toString()).join("|"),")$")),e._zod.parse=(t,o)=>{let u=t.value;return i.has(u)||t.issues.push({code:"invalid_value",values:n,input:u,inst:e}),t}}),Mi=d("$ZodLiteral",(e,r)=>{if(O.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp("^(".concat(r.values.map(n=>typeof n=="string"?ie(n):n?ie(n.toString()):String(n)).join("|"),")$")),e._zod.parse=(n,i)=>{let t=n.value;return e._zod.values.has(t)||n.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),n}}),Bi=d("$ZodFile",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{let t=n.value;return t instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),n}}),Ki=d("$ZodTransform",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new me(e.constructor.name);let t=r.transform(n.value,n);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(u=>(n.value=u,n));if(t instanceof Promise)throw new te;return n.value=t,n}});function hu(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}var Gi=d("$ZodOptional",(e,r)=>{O.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Z(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp("^(".concat(We(n.source),")?$")):void 0}),e._zod.parse=(n,i)=>{if(r.innerType._zod.optin==="optional"){let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>hu(o,n.value)):hu(t,n.value)}return n.value===void 0?n:r.innerType._zod.run(n,i)}}),Wi=d("$ZodNullable",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),Z(e._zod,"pattern",()=>{let n=r.innerType._zod.pattern;return n?new RegExp("^(".concat(We(n.source),"|null)$")):void 0}),Z(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:r.innerType._zod.run(n,i)}),Xi=d("$ZodDefault",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);if(n.value===void 0)return n.value=r.defaultValue,n;let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>$u(o,r)):$u(t,r)}});function $u(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}var qi=d("$ZodPrefault",(e,r)=>{O.init(e,r),e._zod.optin="optional",Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=r.defaultValue),r.innerType._zod.run(n,i))}),Yi=d("$ZodNonOptional",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>{let n=r.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>bu(o,e)):bu(t,e)}});function bu(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}var Qi=d("$ZodSuccess",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new me("ZodSuccess");let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.issues.length===0,n)):(n.value=t.issues.length===0,n)}}),Hi=d("$ZodCatch",(e,r)=>{O.init(e,r),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),Z(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(o=>(n.value=o.value,o.issues.length&&(n.value=r.catchValue(z(m({},n),{error:{issues:o.issues.map(u=>Y(u,i,L()))},input:n.value})),n.issues=[]),n)):(n.value=t.value,t.issues.length&&(n.value=r.catchValue(z(m({},n),{error:{issues:t.issues.map(o=>Y(o,i,L()))},input:n.value})),n.issues=[]),n)}}),eo=d("$ZodNaN",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),to=d("$ZodPipe",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>r.in._zod.values),Z(e._zod,"optin",()=>r.in._zod.optin),Z(e._zod,"optout",()=>r.out._zod.optout),Z(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=r.out._zod.run(n,i);return o instanceof Promise?o.then(u=>Gt(u,r.in,i)):Gt(o,r.in,i)}let t=r.in._zod.run(n,i);return t instanceof Promise?t.then(o=>Gt(o,r.out,i)):Gt(t,r.out,i)}});function Gt(e,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},n)}var ot=d("$ZodCodec",(e,r)=>{O.init(e,r),Z(e._zod,"values",()=>r.in._zod.values),Z(e._zod,"optin",()=>r.in._zod.optin),Z(e._zod,"optout",()=>r.out._zod.optout),Z(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=r.in._zod.run(n,i);return o instanceof Promise?o.then(u=>Wt(u,r,i)):Wt(o,r,i)}else{let o=r.out._zod.run(n,i);return o instanceof Promise?o.then(u=>Wt(u,r,i)):Wt(o,r,i)}}});function Wt(e,r,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let t=r.transform(e.value,e);return t instanceof Promise?t.then(o=>Xt(e,o,r.out,n)):Xt(e,t,r.out,n)}else{let t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>Xt(e,o,r.in,n)):Xt(e,t,r.in,n)}}function Xt(e,r,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:r,issues:e.issues},i)}var ro=d("$ZodReadonly",(e,r)=>{O.init(e,r),Z(e._zod,"propValues",()=>r.innerType._zod.propValues),Z(e._zod,"values",()=>r.innerType._zod.values),Z(e._zod,"optin",()=>r.innerType._zod.optin),Z(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return r.innerType._zod.run(n,i);let t=r.innerType._zod.run(n,i);return t instanceof Promise?t.then(_u):_u(t)}});function _u(e){return e.value=Object.freeze(e.value),e}var no=d("$ZodTemplateLiteral",(e,r)=>{O.init(e,r);let n=[];for(let i of r.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error("Invalid template literal part, no pattern found: ".concat([...i._zod.traits].shift()));let t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error("Invalid template literal part: ".concat(i._zod.traits));let o=t.startsWith("^")?1:0,u=t.endsWith("$")?t.length-1:t.length;n.push(t.slice(o,u))}else if(i===null||Yr.has(typeof i))n.push(ie("".concat(i)));else throw new Error("Invalid template literal part: ".concat(i));e._zod.pattern=new RegExp("^".concat(n.join(""),"$")),e._zod.parse=(i,t)=>{var o;return typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:(o=r.format)!=null?o:"template_literal",pattern:e._zod.pattern.source}),i)}}),io=d("$ZodFunction",(e,r)=>(O.init(e,r),e._def=r,e._zod.def=r,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let t=e._def.input?Zt(e._def.input,i):i,o=Reflect.apply(n,this,t);return e._def.output?Zt(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let t=e._def.input?await Dt(e._def.input,i):i,o=await Reflect.apply(n,this,t);return e._def.output?await Dt(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new er({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),oo=d("$ZodPromise",(e,r)=>{O.init(e,r),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(t=>r.innerType._zod.run({value:t,issues:[]},i))}),ao=d("$ZodLazy",(e,r)=>{O.init(e,r),Z(e._zod,"innerType",()=>r.getter()),Z(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Z(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Z(e._zod,"optin",()=>{var n;return(n=e._zod.innerType._zod.optin)!=null?n:void 0}),Z(e._zod,"optout",()=>{var n;return(n=e._zod.innerType._zod.optout)!=null?n:void 0}),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),uo=d("$ZodCustom",(e,r)=>{R.init(e,r),O.init(e,r),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,t=r.fn(i);if(t instanceof Promise)return t.then(o=>yu(o,n,i,e));yu(t,n,i,e)}});function yu(e,r,n,i){var t;if(!e){let o={code:"custom",input:n,inst:i,path:[...(t=i._zod.def.path)!=null?t:[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),r.issues.push(Oe(o))}}var ze={};_e(ze,{ar:()=>Su,az:()=>ju,be:()=>Pu,bg:()=>Uu,ca:()=>Nu,cs:()=>Zu,da:()=>Du,de:()=>Tu,en:()=>tr,eo:()=>Eu,es:()=>Au,fa:()=>Ru,fi:()=>Lu,fr:()=>Cu,frCA:()=>Vu,he:()=>Fu,hu:()=>Ju,id:()=>Mu,is:()=>Bu,it:()=>Ku,ja:()=>Gu,ka:()=>Wu,kh:()=>Xu,km:()=>rr,ko:()=>qu,lt:()=>Qu,mk:()=>Hu,ms:()=>ec,nl:()=>tc,no:()=>rc,ota:()=>nc,pl:()=>oc,ps:()=>ic,pt:()=>ac,ru:()=>cc,sl:()=>sc,sv:()=>lc,ta:()=>dc,th:()=>mc,tr:()=>fc,ua:()=>pc,uk:()=>nr,ur:()=>gc,vi:()=>vc,yo:()=>bc,zhCN:()=>hc,zhTW:()=>$c});var zl=()=>{let e={string:{unit:"\\u062D\\u0631\\u0641",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},file:{unit:"\\u0628\\u0627\\u064A\\u062A",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},array:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"},set:{unit:"\\u0639\\u0646\\u0635\\u0631",verb:"\\u0623\\u0646 \\u064A\\u062D\\u0648\\u064A"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0645\\u062F\\u062E\\u0644",email:"\\u0628\\u0631\\u064A\\u062F \\u0625\\u0644\\u0643\\u062A\\u0631\\u0648\\u0646\\u064A",url:"\\u0631\\u0627\\u0628\\u0637",emoji:"\\u0625\\u064A\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0648\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",date:"\\u062A\\u0627\\u0631\\u064A\\u062E \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",time:"\\u0648\\u0642\\u062A \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",duration:"\\u0645\\u062F\\u0629 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 ISO",ipv4:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv4",ipv6:"\\u0639\\u0646\\u0648\\u0627\\u0646 IPv6",cidrv4:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv4",cidrv6:"\\u0645\\u062F\\u0649 \\u0639\\u0646\\u0627\\u0648\\u064A\\u0646 \\u0628\\u0635\\u064A\\u063A\\u0629 IPv6",base64:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64-encoded",base64url:"\\u0646\\u064E\\u0635 \\u0628\\u062A\\u0631\\u0645\\u064A\\u0632 base64url-encoded",json_string:"\\u0646\\u064E\\u0635 \\u0639\\u0644\\u0649 \\u0647\\u064A\\u0626\\u0629 JSON",e164:"\\u0631\\u0642\\u0645 \\u0647\\u0627\\u062A\\u0641 \\u0628\\u0645\\u0639\\u064A\\u0627\\u0631 E.164",jwt:"JWT",template_literal:"\\u0645\\u062F\\u062E\\u0644"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ".concat(t.expected,"\\u060C \\u0648\\u0644\\u0643\\u0646 \\u062A\\u0645 \\u0625\\u062F\\u062E\\u0627\\u0644 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0645\\u062F\\u062E\\u0644\\u0627\\u062A \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644\\u0629: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0625\\u062F\\u062E\\u0627\\u0644 ".concat(b(t.values[0])):"\\u0627\\u062E\\u062A\\u064A\\u0627\\u0631 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062A\\u0648\\u0642\\u0639 \\u0627\\u0646\\u062A\\u0642\\u0627\\u0621 \\u0623\\u062D\\u062F \\u0647\\u0630\\u0647 \\u0627\\u0644\\u062E\\u064A\\u0627\\u0631\\u0627\\u062A: ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?" \\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ".concat((o=t.origin)!=null?o:"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"," ").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0635\\u0631"):"\\u0623\\u0643\\u0628\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0623\\u0646 \\u062A\\u0643\\u0648\\u0646 ".concat((s=t.origin)!=null?s:"\\u0627\\u0644\\u0642\\u064A\\u0645\\u0629"," ").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ".concat(t.origin," \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"\\u0623\\u0635\\u063A\\u0631 \\u0645\\u0646 \\u0627\\u0644\\u0644\\u0627\\u0632\\u0645: \\u064A\\u0641\\u062A\\u0631\\u0636 \\u0644\\u0640 ".concat(t.origin," \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 ").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0628\\u062F\\u0623 \\u0628\\u0640 "\'.concat(t.prefix,\'"\'):a.format==="ends_with"?\'\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0646\\u062A\\u0647\\u064A \\u0628\\u0640 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u062A\\u0636\\u0645\\u0651\\u064E\\u0646 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u0646\\u064E\\u0635 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0637\\u0627\\u0628\\u0642 \\u0627\\u0644\\u0646\\u0645\\u0637 ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644")}case"not_multiple_of":return"\\u0631\\u0642\\u0645 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644: \\u064A\\u062C\\u0628 \\u0623\\u0646 \\u064A\\u0643\\u0648\\u0646 \\u0645\\u0646 \\u0645\\u0636\\u0627\\u0639\\u0641\\u0627\\u062A ".concat(t.divisor);case"unrecognized_keys":return"\\u0645\\u0639\\u0631\\u0641".concat(t.keys.length>1?"\\u0627\\u062A":""," \\u063A\\u0631\\u064A\\u0628").concat(t.keys.length>1?"\\u0629":"",": ").concat(p(t.keys,"\\u060C "));case"invalid_key":return"\\u0645\\u0639\\u0631\\u0641 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ".concat(t.origin);case"invalid_union":return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644";case"invalid_element":return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644 \\u0641\\u064A ".concat(t.origin);default:return"\\u0645\\u062F\\u062E\\u0644 \\u063A\\u064A\\u0631 \\u0645\\u0642\\u0628\\u0648\\u0644"}}};function Su(){return{localeError:zl()}}var Il=()=>{let e={string:{unit:"simvol",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"element",verb:"olmal\\u0131d\\u0131r"},set:{unit:"element",verb:"olmal\\u0131d\\u0131r"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ".concat(t.expected,", daxil olan ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Yanl\\u0131\\u015F d\\u0259y\\u0259r: g\\xF6zl\\u0259nil\\u0259n ".concat(b(t.values[0])):"Yanl\\u0131\\u015F se\\xE7im: a\\u015Fa\\u011F\\u0131dak\\u0131lardan biri olmal\\u0131d\\u0131r: ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ".concat((o=t.origin)!=null?o:"d\\u0259y\\u0259r"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"element"):"\\xC7ox b\\xF6y\\xFCk: g\\xF6zl\\u0259nil\\u0259n ".concat((s=t.origin)!=null?s:"d\\u0259y\\u0259r"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\xC7ox ki\\xE7ik: g\\xF6zl\\u0259nil\\u0259n ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Yanl\\u0131\\u015F m\\u0259tn: "\'.concat(a.prefix,\'" il\\u0259 ba\\u015Flamal\\u0131d\\u0131r\'):a.format==="ends_with"?\'Yanl\\u0131\\u015F m\\u0259tn: "\'.concat(a.suffix,\'" il\\u0259 bitm\\u0259lidir\'):a.format==="includes"?\'Yanl\\u0131\\u015F m\\u0259tn: "\'.concat(a.includes,\'" daxil olmal\\u0131d\\u0131r\'):a.format==="regex"?"Yanl\\u0131\\u015F m\\u0259tn: ".concat(a.pattern," \\u015Fablonuna uy\\u011Fun olmal\\u0131d\\u0131r"):"Yanl\\u0131\\u015F ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Yanl\\u0131\\u015F \\u0259d\\u0259d: ".concat(t.divisor," il\\u0259 b\\xF6l\\xFCn\\u0259 bil\\u0259n olmal\\u0131d\\u0131r");case"unrecognized_keys":return"Tan\\u0131nmayan a\\xE7ar".concat(t.keys.length>1?"lar":"",": ").concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," daxilind\\u0259 yanl\\u0131\\u015F a\\xE7ar");case"invalid_union":return"Yanl\\u0131\\u015F d\\u0259y\\u0259r";case"invalid_element":return"".concat(t.origin," daxilind\\u0259 yanl\\u0131\\u015F d\\u0259y\\u0259r");default:return"Yanl\\u0131\\u015F d\\u0259y\\u0259r"}}};function ju(){return{localeError:Il()}}function Ou(e,r,n,i){let t=Math.abs(e),o=t%10,u=t%100;return u>=11&&u<=19?i:o===1?r:o>=2&&o<=4?n:i}var wl=()=>{let e={string:{unit:{one:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B",few:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u044B",many:"\\u0441\\u0456\\u043C\\u0432\\u0430\\u043B\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u044B",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u044B",many:"\\u0431\\u0430\\u0439\\u0442\\u0430\\u045E"},verb:"\\u043C\\u0435\\u0446\\u044C"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u043B\\u0456\\u043A";case"object":{if(Array.isArray(t))return"\\u043C\\u0430\\u0441\\u0456\\u045E";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0443\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0430\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0456 \\u0447\\u0430\\u0441",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0447\\u0430\\u0441",duration:"ISO \\u043F\\u0440\\u0430\\u0446\\u044F\\u0433\\u043B\\u0430\\u0441\\u0446\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0430\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0430\\u0441",cidrv4:"IPv4 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u044B\\u044F\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64",base64url:"\\u0440\\u0430\\u0434\\u043E\\u043A \\u0443 \\u0444\\u0430\\u0440\\u043C\\u0430\\u0446\\u0435 base64url",json_string:"JSON \\u0440\\u0430\\u0434\\u043E\\u043A",e164:"\\u043D\\u0443\\u043C\\u0430\\u0440 E.164",jwt:"JWT",template_literal:"\\u0443\\u0432\\u043E\\u0434"};return t=>{var o,u,s;switch(t.code){case"invalid_type":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F ".concat(t.expected,", \\u0430\\u0442\\u0440\\u044B\\u043C\\u0430\\u043D\\u0430 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F ".concat(b(t.values[0])):"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0432\\u0430\\u0440\\u044B\\u044F\\u043D\\u0442: \\u0447\\u0430\\u043A\\u0430\\u045E\\u0441\\u044F \\u0430\\u0434\\u0437\\u0456\\u043D \\u0437 ".concat(p(t.values,"|"));case"too_big":{let c=t.inclusive?"<=":"<",a=r(t.origin);if(a){let l=Number(t.maximum),v=Ou(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat((o=t.origin)!=null?o:"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ").concat(a.verb," ").concat(c).concat(t.maximum.toString()," ").concat(v)}return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u0432\\u044F\\u043B\\u0456\\u043A\\u0456: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat((u=t.origin)!=null?u:"\\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435"," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ").concat(c).concat(t.maximum.toString())}case"too_small":{let c=t.inclusive?">=":">",a=r(t.origin);if(a){let l=Number(t.minimum),v=Ou(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat(t.origin," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 ").concat(a.verb," ").concat(c).concat(t.minimum.toString()," ").concat(v)}return"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u0430 \\u043C\\u0430\\u043B\\u044B: \\u0447\\u0430\\u043A\\u0430\\u043B\\u0430\\u0441\\u044F, \\u0448\\u0442\\u043E ".concat(t.origin," \\u043F\\u0430\\u0432\\u0456\\u043D\\u043D\\u0430 \\u0431\\u044B\\u0446\\u044C ").concat(c).concat(t.minimum.toString())}case"invalid_format":{let c=t;return c.format==="starts_with"?\'\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u043F\\u0430\\u0447\\u044B\\u043D\\u0430\\u0446\\u0446\\u0430 \\u0437 "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0432\\u0430\\u0446\\u0446\\u0430 \\u043D\\u0430 "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0437\\u043C\\u044F\\u0448\\u0447\\u0430\\u0446\\u044C "\'.concat(c.includes,\'"\'):c.format==="regex"?"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u0440\\u0430\\u0434\\u043E\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0430\\u0434\\u043F\\u0430\\u0432\\u044F\\u0434\\u0430\\u0446\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ".concat(c.pattern):"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B ".concat((s=i[c.format])!=null?s:t.format)}case"not_multiple_of":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043B\\u0456\\u043A: \\u043F\\u0430\\u0432\\u0456\\u043D\\u0435\\u043D \\u0431\\u044B\\u0446\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ".concat(t.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u0430\\u0437\\u043D\\u0430\\u043D\\u044B ".concat(t.keys.length>1?"\\u043A\\u043B\\u044E\\u0447\\u044B":"\\u043A\\u043B\\u044E\\u0447",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u043A\\u043B\\u044E\\u0447 \\u0443 ".concat(t.origin);case"invalid_union":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434";case"invalid_element":return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u0430\\u0435 \\u0437\\u043D\\u0430\\u0447\\u044D\\u043D\\u043D\\u0435 \\u045E ".concat(t.origin);default:return"\\u041D\\u044F\\u043F\\u0440\\u0430\\u0432\\u0456\\u043B\\u044C\\u043D\\u044B \\u045E\\u0432\\u043E\\u0434"}}};function Pu(){return{localeError:wl()}}var Sl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\\u0447\\u0438\\u0441\\u043B\\u043E";case"object":{if(Array.isArray(e))return"\\u043C\\u0430\\u0441\\u0438\\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},jl=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",verb:"\\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"\\u0432\\u0445\\u043E\\u0434",email:"\\u0438\\u043C\\u0435\\u0439\\u043B \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0436\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u043F\\u0440\\u043E\\u0434\\u044A\\u043B\\u0436\\u0438\\u0442\\u0435\\u043B\\u043D\\u043E\\u0441\\u0442",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"base64-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",base64url:"base64url-\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D \\u043D\\u0438\\u0437",json_string:"JSON \\u043D\\u0438\\u0437",e164:"E.164 \\u043D\\u043E\\u043C\\u0435\\u0440",jwt:"JWT",template_literal:"\\u0432\\u0445\\u043E\\u0434"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ".concat(i.expected,", \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D ").concat(Sl(i.input));case"invalid_value":return i.values.length===1?"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D ".concat(b(i.values[0])):"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u044F: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430\\u043D\\u043E \\u0435\\u0434\\u043D\\u043E \\u043E\\u0442 ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat((t=i.origin)!=null?t:"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"," \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430"):"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u0433\\u043E\\u043B\\u044F\\u043C\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat((u=i.origin)!=null?u:"\\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442"," \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat(i.origin," \\u0434\\u0430 \\u0441\\u044A\\u0434\\u044A\\u0440\\u0436\\u0430 ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"\\u0422\\u0432\\u044A\\u0440\\u0434\\u0435 \\u043C\\u0430\\u043B\\u043A\\u043E: \\u043E\\u0447\\u0430\\u043A\\u0432\\u0430 \\u0441\\u0435 ".concat(i.origin," \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;if(c.format==="starts_with")return\'\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u0432\\u0430 \\u0441 "\'.concat(c.prefix,\'"\');if(c.format==="ends_with")return\'\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u044A\\u0440\\u0448\\u0432\\u0430 \\u0441 "\'.concat(c.suffix,\'"\');if(c.format==="includes")return\'\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u044E\\u0447\\u0432\\u0430 "\'.concat(c.includes,\'"\');if(c.format==="regex")return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043D\\u0438\\u0437: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0441\\u044A\\u0432\\u043F\\u0430\\u0434\\u0430 \\u0441 ".concat(c.pattern);let a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D";return c.format==="emoji"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),c.format==="datetime"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),c.format==="date"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),c.format==="time"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E"),c.format==="duration"&&(a="\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430"),"".concat(a," ").concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u043E \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0442\\u0440\\u044F\\u0431\\u0432\\u0430 \\u0434\\u0430 \\u0431\\u044A\\u0434\\u0435 \\u043A\\u0440\\u0430\\u0442\\u043D\\u043E \\u043D\\u0430 ".concat(i.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u0430\\u0437\\u043F\\u043E\\u0437\\u043D\\u0430\\u0442".concat(i.keys.length>1?"\\u0438":""," \\u043A\\u043B\\u044E\\u0447").concat(i.keys.length>1?"\\u043E\\u0432\\u0435":"",": ").concat(p(i.keys,", "));case"invalid_key":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u043A\\u043B\\u044E\\u0447 \\u0432 ".concat(i.origin);case"invalid_union":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434";case"invalid_element":return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u043D\\u0430 \\u0441\\u0442\\u043E\\u0439\\u043D\\u043E\\u0441\\u0442 \\u0432 ".concat(i.origin);default:return"\\u041D\\u0435\\u0432\\u0430\\u043B\\u0438\\u0434\\u0435\\u043D \\u0432\\u0445\\u043E\\u0434"}}};function Uu(){return{localeError:jl()}}var Ol=()=>{let e={string:{unit:"car\\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entrada",email:"adre\\xE7a electr\\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\\xE7a IPv4",ipv6:"adre\\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Tipus inv\\xE0lid: s\'esperava ".concat(t.expected,", s\'ha rebut ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Valor inv\\xE0lid: s\'esperava ".concat(b(t.values[0])):"Opci\\xF3 inv\\xE0lida: s\'esperava una de ".concat(p(t.values," o "));case"too_big":{let a=t.inclusive?"com a m\\xE0xim":"menys de",l=r(t.origin);return l?"Massa gran: s\'esperava que ".concat((o=t.origin)!=null?o:"el valor"," contingu\\xE9s ").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elements"):"Massa gran: s\'esperava que ".concat((s=t.origin)!=null?s:"el valor"," fos ").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?"com a m\\xEDnim":"m\\xE9s de",l=r(t.origin);return l?"Massa petit: s\'esperava que ".concat(t.origin," contingu\\xE9s ").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"Massa petit: s\'esperava que ".concat(t.origin," fos ").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Format inv\\xE0lid: ha de comen\\xE7ar amb "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?"Format inv\\xE0lid: ha d\'acabar amb \\"".concat(a.suffix,\'"\'):a.format==="includes"?"Format inv\\xE0lid: ha d\'incloure \\"".concat(a.includes,\'"\'):a.format==="regex"?"Format inv\\xE0lid: ha de coincidir amb el patr\\xF3 ".concat(a.pattern):"Format inv\\xE0lid per a ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"N\\xFAmero inv\\xE0lid: ha de ser m\\xFAltiple de ".concat(t.divisor);case"unrecognized_keys":return"Clau".concat(t.keys.length>1?"s":""," no reconeguda").concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Clau inv\\xE0lida a ".concat(t.origin);case"invalid_union":return"Entrada inv\\xE0lida";case"invalid_element":return"Element inv\\xE0lid a ".concat(t.origin);default:return"Entrada inv\\xE0lida"}}};function Nu(){return{localeError:Ol()}}var Pl=()=>{let e={string:{unit:"znak\\u016F",verb:"m\\xEDt"},file:{unit:"bajt\\u016F",verb:"m\\xEDt"},array:{unit:"prvk\\u016F",verb:"m\\xEDt"},set:{unit:"prvk\\u016F",verb:"m\\xEDt"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u010D\\xEDslo";case"string":return"\\u0159et\\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"regul\\xE1rn\\xED v\\xFDraz",email:"e-mailov\\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \\u010Das ve form\\xE1tu ISO",date:"datum ve form\\xE1tu ISO",time:"\\u010Das ve form\\xE1tu ISO",duration:"doba trv\\xE1n\\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64",base64url:"\\u0159et\\u011Bzec zak\\xF3dovan\\xFD ve form\\xE1tu base64url",json_string:"\\u0159et\\u011Bzec ve form\\xE1tu JSON",e164:"\\u010D\\xEDslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{var o,u,s,c,a,l,v;switch(t.code){case"invalid_type":return"Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ".concat(t.expected,", obdr\\u017Eeno ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Neplatn\\xFD vstup: o\\u010Dek\\xE1v\\xE1no ".concat(b(t.values[0])):"Neplatn\\xE1 mo\\u017Enost: o\\u010Dek\\xE1v\\xE1na jedna z hodnot ".concat(p(t.values,"|"));case"too_big":{let f=t.inclusive?"<=":"<",h=r(t.origin);return h?"Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ".concat((o=t.origin)!=null?o:"hodnota"," mus\\xED m\\xEDt ").concat(f).concat(t.maximum.toString()," ").concat((u=h.unit)!=null?u:"prvk\\u016F"):"Hodnota je p\\u0159\\xEDli\\u0161 velk\\xE1: ".concat((s=t.origin)!=null?s:"hodnota"," mus\\xED b\\xFDt ").concat(f).concat(t.maximum.toString())}case"too_small":{let f=t.inclusive?">=":">",h=r(t.origin);return h?"Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ".concat((c=t.origin)!=null?c:"hodnota"," mus\\xED m\\xEDt ").concat(f).concat(t.minimum.toString()," ").concat((a=h.unit)!=null?a:"prvk\\u016F"):"Hodnota je p\\u0159\\xEDli\\u0161 mal\\xE1: ".concat((l=t.origin)!=null?l:"hodnota"," mus\\xED b\\xFDt ").concat(f).concat(t.minimum.toString())}case"invalid_format":{let f=t;return f.format==="starts_with"?\'Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED za\\u010D\\xEDnat na "\'.concat(f.prefix,\'"\'):f.format==="ends_with"?\'Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED kon\\u010Dit na "\'.concat(f.suffix,\'"\'):f.format==="includes"?\'Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED obsahovat "\'.concat(f.includes,\'"\'):f.format==="regex"?"Neplatn\\xFD \\u0159et\\u011Bzec: mus\\xED odpov\\xEDdat vzoru ".concat(f.pattern):"Neplatn\\xFD form\\xE1t ".concat((v=i[f.format])!=null?v:t.format)}case"not_multiple_of":return"Neplatn\\xE9 \\u010D\\xEDslo: mus\\xED b\\xFDt n\\xE1sobkem ".concat(t.divisor);case"unrecognized_keys":return"Nezn\\xE1m\\xE9 kl\\xED\\u010De: ".concat(p(t.keys,", "));case"invalid_key":return"Neplatn\\xFD kl\\xED\\u010D v ".concat(t.origin);case"invalid_union":return"Neplatn\\xFD vstup";case"invalid_element":return"Neplatn\\xE1 hodnota v ".concat(t.origin);default:return"Neplatn\\xFD vstup"}}};function Zu(){return{localeError:Pl()}}var Ul=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\\xE6t",file:"fil"};function n(u){var s;return(s=e[u])!=null?s:null}function i(u){var s;return(s=r[u])!=null?s:u}let t=u=>{let s=typeof u;switch(s){case"number":return Number.isNaN(u)?"NaN":"tal";case"object":return Array.isArray(u)?"liste":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype&&u.constructor?u.constructor.name:"objekt"}return s},o={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\\xE6t",date:"ISO-dato",time:"ISO-klokkesl\\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\\xE5de",ipv6:"IPv6-omr\\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return u=>{var s,c;switch(u.code){case"invalid_type":return"Ugyldigt input: forventede ".concat(i(u.expected),", fik ").concat(i(t(u.input)));case"invalid_value":return u.values.length===1?"Ugyldig v\\xE6rdi: forventede ".concat(b(u.values[0])):"Ugyldigt valg: forventede en af f\\xF8lgende ".concat(p(u.values,"|"));case"too_big":{let a=u.inclusive?"<=":"<",l=n(u.origin),v=i(u.origin);return l?"For stor: forventede ".concat(v!=null?v:"value"," ").concat(l.verb," ").concat(a," ").concat(u.maximum.toString()," ").concat((s=l.unit)!=null?s:"elementer"):"For stor: forventede ".concat(v!=null?v:"value"," havde ").concat(a," ").concat(u.maximum.toString())}case"too_small":{let a=u.inclusive?">=":">",l=n(u.origin),v=i(u.origin);return l?"For lille: forventede ".concat(v," ").concat(l.verb," ").concat(a," ").concat(u.minimum.toString()," ").concat(l.unit):"For lille: forventede ".concat(v," havde ").concat(a," ").concat(u.minimum.toString())}case"invalid_format":{let a=u;return a.format==="starts_with"?\'Ugyldig streng: skal starte med "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Ugyldig streng: skal ende med "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Ugyldig streng: skal indeholde "\'.concat(a.includes,\'"\'):a.format==="regex"?"Ugyldig streng: skal matche m\\xF8nsteret ".concat(a.pattern):"Ugyldig ".concat((c=o[a.format])!=null?c:u.format)}case"not_multiple_of":return"Ugyldigt tal: skal v\\xE6re deleligt med ".concat(u.divisor);case"unrecognized_keys":return"".concat(u.keys.length>1?"Ukendte n\\xF8gler":"Ukendt n\\xF8gle",": ").concat(p(u.keys,", "));case"invalid_key":return"Ugyldig n\\xF8gle i ".concat(u.origin);case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return"Ugyldig v\\xE6rdi i ".concat(u.origin);default:return"Ugyldigt input"}}};function Du(){return{localeError:Ul()}}var Nl=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Ung\\xFCltige Eingabe: erwartet ".concat(t.expected,", erhalten ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ung\\xFCltige Eingabe: erwartet ".concat(b(t.values[0])):"Ung\\xFCltige Option: erwartet eine von ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Zu gro\\xDF: erwartet, dass ".concat((o=t.origin)!=null?o:"Wert"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"Elemente"," hat"):"Zu gro\\xDF: erwartet, dass ".concat((s=t.origin)!=null?s:"Wert"," ").concat(a).concat(t.maximum.toString()," ist")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Zu klein: erwartet, dass ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," hat"):"Zu klein: erwartet, dass ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ist")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Ung\\xFCltiger String: muss mit "\'.concat(a.prefix,\'" beginnen\'):a.format==="ends_with"?\'Ung\\xFCltiger String: muss mit "\'.concat(a.suffix,\'" enden\'):a.format==="includes"?\'Ung\\xFCltiger String: muss "\'.concat(a.includes,\'" enthalten\'):a.format==="regex"?"Ung\\xFCltiger String: muss dem Muster ".concat(a.pattern," entsprechen"):"Ung\\xFCltig: ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Ung\\xFCltige Zahl: muss ein Vielfaches von ".concat(t.divisor," sein");case"unrecognized_keys":return"".concat(t.keys.length>1?"Unbekannte Schl\\xFCssel":"Unbekannter Schl\\xFCssel",": ").concat(p(t.keys,", "));case"invalid_key":return"Ung\\xFCltiger Schl\\xFCssel in ".concat(t.origin);case"invalid_union":return"Ung\\xFCltige Eingabe";case"invalid_element":return"Ung\\xFCltiger Wert in ".concat(t.origin);default:return"Ung\\xFCltige Eingabe"}}};function Tu(){return{localeError:Nl()}}var Zl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Dl=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Invalid input: expected ".concat(i.expected,", received ").concat(Zl(i.input));case"invalid_value":return i.values.length===1?"Invalid input: expected ".concat(b(i.values[0])):"Invalid option: expected one of ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"Too big: expected ".concat((t=i.origin)!=null?t:"value"," to have ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"elements"):"Too big: expected ".concat((u=i.origin)!=null?u:"value"," to be ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"Too small: expected ".concat(i.origin," to have ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"Too small: expected ".concat(i.origin," to be ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'Invalid string: must start with "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'Invalid string: must end with "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'Invalid string: must include "\'.concat(c.includes,\'"\'):c.format==="regex"?"Invalid string: must match pattern ".concat(c.pattern):"Invalid ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"Invalid number: must be a multiple of ".concat(i.divisor);case"unrecognized_keys":return"Unrecognized key".concat(i.keys.length>1?"s":"",": ").concat(p(i.keys,", "));case"invalid_key":return"Invalid key in ".concat(i.origin);case"invalid_union":return"Invalid input";case"invalid_element":return"Invalid value in ".concat(i.origin);default:return"Invalid input"}}};function tr(){return{localeError:Dl()}}var Tl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},El=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Nevalida enigo: atendi\\u011Dis ".concat(i.expected,", ricevi\\u011Dis ").concat(Tl(i.input));case"invalid_value":return i.values.length===1?"Nevalida enigo: atendi\\u011Dis ".concat(b(i.values[0])):"Nevalida opcio: atendi\\u011Dis unu el ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"Tro granda: atendi\\u011Dis ke ".concat((t=i.origin)!=null?t:"valoro"," havu ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"elementojn"):"Tro granda: atendi\\u011Dis ke ".concat((u=i.origin)!=null?u:"valoro"," havu ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"Tro malgranda: atendi\\u011Dis ke ".concat(i.origin," havu ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"Tro malgranda: atendi\\u011Dis ke ".concat(i.origin," estu ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'Nevalida karaktraro: devas komenci\\u011Di per "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'Nevalida karaktraro: devas fini\\u011Di per "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'Nevalida karaktraro: devas inkluzivi "\'.concat(c.includes,\'"\'):c.format==="regex"?"Nevalida karaktraro: devas kongrui kun la modelo ".concat(c.pattern):"Nevalida ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"Nevalida nombro: devas esti oblo de ".concat(i.divisor);case"unrecognized_keys":return"Nekonata".concat(i.keys.length>1?"j":""," \\u015Dlosilo").concat(i.keys.length>1?"j":"",": ").concat(p(i.keys,", "));case"invalid_key":return"Nevalida \\u015Dlosilo en ".concat(i.origin);case"invalid_union":return"Nevalida enigo";case"invalid_element":return"Nevalida valoro en ".concat(i.origin);default:return"Nevalida enigo"}}};function Eu(){return{localeError:El()}}var Al=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"n\\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\\xFAmero grande",symbol:"s\\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\\xF3n",union:"uni\\xF3n",literal:"literal",promise:"promesa",void:"vac\\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};function n(u){var s;return(s=e[u])!=null?s:null}function i(u){var s;return(s=r[u])!=null?s:u}let t=u=>{let s=typeof u;switch(s){case"number":return Number.isNaN(u)?"NaN":"number";case"object":return Array.isArray(u)?"array":u===null?"null":Object.getPrototypeOf(u)!==Object.prototype?u.constructor.name:"object"}return s},o={regex:"entrada",email:"direcci\\xF3n de correo electr\\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\\xF3n ISO",ipv4:"direcci\\xF3n IPv4",ipv6:"direcci\\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return u=>{var s,c;switch(u.code){case"invalid_type":return"Entrada inv\\xE1lida: se esperaba ".concat(i(u.expected),", recibido ").concat(i(t(u.input)));case"invalid_value":return u.values.length===1?"Entrada inv\\xE1lida: se esperaba ".concat(b(u.values[0])):"Opci\\xF3n inv\\xE1lida: se esperaba una de ".concat(p(u.values,"|"));case"too_big":{let a=u.inclusive?"<=":"<",l=n(u.origin),v=i(u.origin);return l?"Demasiado grande: se esperaba que ".concat(v!=null?v:"valor"," tuviera ").concat(a).concat(u.maximum.toString()," ").concat((s=l.unit)!=null?s:"elementos"):"Demasiado grande: se esperaba que ".concat(v!=null?v:"valor"," fuera ").concat(a).concat(u.maximum.toString())}case"too_small":{let a=u.inclusive?">=":">",l=n(u.origin),v=i(u.origin);return l?"Demasiado peque\\xF1o: se esperaba que ".concat(v," tuviera ").concat(a).concat(u.minimum.toString()," ").concat(l.unit):"Demasiado peque\\xF1o: se esperaba que ".concat(v," fuera ").concat(a).concat(u.minimum.toString())}case"invalid_format":{let a=u;return a.format==="starts_with"?\'Cadena inv\\xE1lida: debe comenzar con "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Cadena inv\\xE1lida: debe terminar en "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Cadena inv\\xE1lida: debe incluir "\'.concat(a.includes,\'"\'):a.format==="regex"?"Cadena inv\\xE1lida: debe coincidir con el patr\\xF3n ".concat(a.pattern):"Inv\\xE1lido ".concat((c=o[a.format])!=null?c:u.format)}case"not_multiple_of":return"N\\xFAmero inv\\xE1lido: debe ser m\\xFAltiplo de ".concat(u.divisor);case"unrecognized_keys":return"Llave".concat(u.keys.length>1?"s":""," desconocida").concat(u.keys.length>1?"s":"",": ").concat(p(u.keys,", "));case"invalid_key":return"Llave inv\\xE1lida en ".concat(i(u.origin));case"invalid_union":return"Entrada inv\\xE1lida";case"invalid_element":return"Valor inv\\xE1lido en ".concat(i(u.origin));default:return"Entrada inv\\xE1lida"}}};function Au(){return{localeError:Al()}}var Rl=()=>{let e={string:{unit:"\\u06A9\\u0627\\u0631\\u0627\\u06A9\\u062A\\u0631",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},file:{unit:"\\u0628\\u0627\\u06CC\\u062A",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},array:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"},set:{unit:"\\u0622\\u06CC\\u062A\\u0645",verb:"\\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0639\\u062F\\u062F";case"object":{if(Array.isArray(t))return"\\u0622\\u0631\\u0627\\u06CC\\u0647";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0648\\u0631\\u0648\\u062F\\u06CC",email:"\\u0622\\u062F\\u0631\\u0633 \\u0627\\u06CC\\u0645\\u06CC\\u0644",url:"URL",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0648 \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",date:"\\u062A\\u0627\\u0631\\u06CC\\u062E \\u0627\\u06CC\\u0632\\u0648",time:"\\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",duration:"\\u0645\\u062F\\u062A \\u0632\\u0645\\u0627\\u0646 \\u0627\\u06CC\\u0632\\u0648",ipv4:"IPv4 \\u0622\\u062F\\u0631\\u0633",ipv6:"IPv6 \\u0622\\u062F\\u0631\\u0633",cidrv4:"IPv4 \\u062F\\u0627\\u0645\\u0646\\u0647",cidrv6:"IPv6 \\u062F\\u0627\\u0645\\u0646\\u0647",base64:"base64-encoded \\u0631\\u0634\\u062A\\u0647",base64url:"base64url-encoded \\u0631\\u0634\\u062A\\u0647",json_string:"JSON \\u0631\\u0634\\u062A\\u0647",e164:"E.164 \\u0639\\u062F\\u062F",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u06CC"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ".concat(t.expected," \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F\\u060C ").concat(n(t.input)," \\u062F\\u0631\\u06CC\\u0627\\u0641\\u062A \\u0634\\u062F");case"invalid_value":return t.values.length===1?"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A ".concat(b(t.values[0])," \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F"):"\\u06AF\\u0632\\u06CC\\u0646\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0645\\u06CC\\u200C\\u0628\\u0627\\u06CC\\u0633\\u062A \\u06CC\\u06A9\\u06CC \\u0627\\u0632 ".concat(p(t.values,"|")," \\u0645\\u06CC\\u200C\\u0628\\u0648\\u062F");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ".concat((o=t.origin)!=null?o:"\\u0645\\u0642\\u062F\\u0627\\u0631"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0635\\u0631"," \\u0628\\u0627\\u0634\\u062F"):"\\u062E\\u06CC\\u0644\\u06CC \\u0628\\u0632\\u0631\\u06AF: ".concat((s=t.origin)!=null?s:"\\u0645\\u0642\\u062F\\u0627\\u0631"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," \\u0628\\u0627\\u0634\\u062F")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u0628\\u0627\\u0634\\u062F"):"\\u062E\\u06CC\\u0644\\u06CC \\u06A9\\u0648\\u0686\\u06A9: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," \\u0628\\u0627\\u0634\\u062F")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "\'.concat(a.prefix,\'" \\u0634\\u0631\\u0648\\u0639 \\u0634\\u0648\\u062F\'):a.format==="ends_with"?\'\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 "\'.concat(a.suffix,\'" \\u062A\\u0645\\u0627\\u0645 \\u0634\\u0648\\u062F\'):a.format==="includes"?\'\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0634\\u0627\\u0645\\u0644 "\'.concat(a.includes,\'" \\u0628\\u0627\\u0634\\u062F\'):a.format==="regex"?"\\u0631\\u0634\\u062A\\u0647 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0628\\u0627 \\u0627\\u0644\\u06AF\\u0648\\u06CC ".concat(a.pattern," \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u062F\\u0627\\u0634\\u062A\\u0647 \\u0628\\u0627\\u0634\\u062F"):"".concat((c=i[a.format])!=null?c:t.format," \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631")}case"not_multiple_of":return"\\u0639\\u062F\\u062F \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631: \\u0628\\u0627\\u06CC\\u062F \\u0645\\u0636\\u0631\\u0628 ".concat(t.divisor," \\u0628\\u0627\\u0634\\u062F");case"unrecognized_keys":return"\\u06A9\\u0644\\u06CC\\u062F".concat(t.keys.length>1?"\\u0647\\u0627\\u06CC":""," \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633: ").concat(p(t.keys,", "));case"invalid_key":return"\\u06A9\\u0644\\u06CC\\u062F \\u0646\\u0627\\u0634\\u0646\\u0627\\u0633 \\u062F\\u0631 ".concat(t.origin);case"invalid_union":return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631";case"invalid_element":return"\\u0645\\u0642\\u062F\\u0627\\u0631 \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631 \\u062F\\u0631 ".concat(t.origin);default:return"\\u0648\\u0631\\u0648\\u062F\\u06CC \\u0646\\u0627\\u0645\\u0639\\u062A\\u0628\\u0631"}}};function Ru(){return{localeError:Rl()}}var Ll=()=>{let e={string:{unit:"merkki\\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4n"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"s\\xE4\\xE4nn\\xF6llinen lauseke",email:"s\\xE4hk\\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\\xE4iv\\xE4m\\xE4\\xE4r\\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return t=>{var o;switch(t.code){case"invalid_type":return"Virheellinen tyyppi: odotettiin ".concat(t.expected,", oli ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Virheellinen sy\\xF6te: t\\xE4ytyy olla ".concat(b(t.values[0])):"Virheellinen valinta: t\\xE4ytyy olla yksi seuraavista: ".concat(p(t.values,"|"));case"too_big":{let u=t.inclusive?"<=":"<",s=r(t.origin);return s?"Liian suuri: ".concat(s.subject," t\\xE4ytyy olla ").concat(u).concat(t.maximum.toString()," ").concat(s.unit).trim():"Liian suuri: arvon t\\xE4ytyy olla ".concat(u).concat(t.maximum.toString())}case"too_small":{let u=t.inclusive?">=":">",s=r(t.origin);return s?"Liian pieni: ".concat(s.subject," t\\xE4ytyy olla ").concat(u).concat(t.minimum.toString()," ").concat(s.unit).trim():"Liian pieni: arvon t\\xE4ytyy olla ".concat(u).concat(t.minimum.toString())}case"invalid_format":{let u=t;return u.format==="starts_with"?\'Virheellinen sy\\xF6te: t\\xE4ytyy alkaa "\'.concat(u.prefix,\'"\'):u.format==="ends_with"?\'Virheellinen sy\\xF6te: t\\xE4ytyy loppua "\'.concat(u.suffix,\'"\'):u.format==="includes"?\'Virheellinen sy\\xF6te: t\\xE4ytyy sis\\xE4lt\\xE4\\xE4 "\'.concat(u.includes,\'"\'):u.format==="regex"?"Virheellinen sy\\xF6te: t\\xE4ytyy vastata s\\xE4\\xE4nn\\xF6llist\\xE4 lauseketta ".concat(u.pattern):"Virheellinen ".concat((o=i[u.format])!=null?o:t.format)}case"not_multiple_of":return"Virheellinen luku: t\\xE4ytyy olla luvun ".concat(t.divisor," monikerta");case"unrecognized_keys":return"".concat(t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain",": ").concat(p(t.keys,", "));case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\\xF6te"}}};function Lu(){return{localeError:Ll()}}var Cl=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entr\\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne encod\\xE9e en base64",base64url:"cha\\xEEne encod\\xE9e en base64url",json_string:"cha\\xEEne JSON",e164:"num\\xE9ro E.164",jwt:"JWT",template_literal:"entr\\xE9e"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Entr\\xE9e invalide : ".concat(t.expected," attendu, ").concat(n(t.input)," re\\xE7u");case"invalid_value":return t.values.length===1?"Entr\\xE9e invalide : ".concat(b(t.values[0])," attendu"):"Option invalide : une valeur parmi ".concat(p(t.values,"|")," attendue");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Trop grand : ".concat((o=t.origin)!=null?o:"valeur"," doit ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\xE9l\\xE9ment(s)"):"Trop grand : ".concat((s=t.origin)!=null?s:"valeur"," doit \\xEAtre ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Trop petit : ".concat(t.origin," doit ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Trop petit : ".concat(t.origin," doit \\xEAtre ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Cha\\xEEne invalide : doit commencer par "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Cha\\xEEne invalide : doit se terminer par "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Cha\\xEEne invalide : doit inclure "\'.concat(a.includes,\'"\'):a.format==="regex"?"Cha\\xEEne invalide : doit correspondre au mod\\xE8le ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \\xEAtre un multiple de ".concat(t.divisor);case"unrecognized_keys":return"Cl\\xE9".concat(t.keys.length>1?"s":""," non reconnue").concat(t.keys.length>1?"s":""," : ").concat(p(t.keys,", "));case"invalid_key":return"Cl\\xE9 invalide dans ".concat(t.origin);case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(t.origin);default:return"Entr\\xE9e invalide"}}};function Cu(){return{localeError:Cl()}}var Vl=()=>{let e={string:{unit:"caract\\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\\xE9l\\xE9ments",verb:"avoir"},set:{unit:"\\xE9l\\xE9ments",verb:"avoir"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"entr\\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\\xEEne encod\\xE9e en base64",base64url:"cha\\xEEne encod\\xE9e en base64url",json_string:"cha\\xEEne JSON",e164:"num\\xE9ro E.164",jwt:"JWT",template_literal:"entr\\xE9e"};return t=>{var o,u,s;switch(t.code){case"invalid_type":return"Entr\\xE9e invalide : attendu ".concat(t.expected,", re\\xE7u ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Entr\\xE9e invalide : attendu ".concat(b(t.values[0])):"Option invalide : attendu l\'une des valeurs suivantes ".concat(p(t.values,"|"));case"too_big":{let c=t.inclusive?"\\u2264":"<",a=r(t.origin);return a?"Trop grand : attendu que ".concat((o=t.origin)!=null?o:"la valeur"," ait ").concat(c).concat(t.maximum.toString()," ").concat(a.unit):"Trop grand : attendu que ".concat((u=t.origin)!=null?u:"la valeur"," soit ").concat(c).concat(t.maximum.toString())}case"too_small":{let c=t.inclusive?"\\u2265":">",a=r(t.origin);return a?"Trop petit : attendu que ".concat(t.origin," ait ").concat(c).concat(t.minimum.toString()," ").concat(a.unit):"Trop petit : attendu que ".concat(t.origin," soit ").concat(c).concat(t.minimum.toString())}case"invalid_format":{let c=t;return c.format==="starts_with"?\'Cha\\xEEne invalide : doit commencer par "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'Cha\\xEEne invalide : doit se terminer par "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'Cha\\xEEne invalide : doit inclure "\'.concat(c.includes,\'"\'):c.format==="regex"?"Cha\\xEEne invalide : doit correspondre au motif ".concat(c.pattern):"".concat((s=i[c.format])!=null?s:t.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \\xEAtre un multiple de ".concat(t.divisor);case"unrecognized_keys":return"Cl\\xE9".concat(t.keys.length>1?"s":""," non reconnue").concat(t.keys.length>1?"s":""," : ").concat(p(t.keys,", "));case"invalid_key":return"Cl\\xE9 invalide dans ".concat(t.origin);case"invalid_union":return"Entr\\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(t.origin);default:return"Entr\\xE9e invalide"}}};function Vu(){return{localeError:Vl()}}var Fl=()=>{let e={string:{unit:"\\u05D0\\u05D5\\u05EA\\u05D9\\u05D5\\u05EA",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"},file:{unit:"\\u05D1\\u05D9\\u05D9\\u05D8\\u05D9\\u05DD",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"},array:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"},set:{unit:"\\u05E4\\u05E8\\u05D9\\u05D8\\u05D9\\u05DD",verb:"\\u05DC\\u05DB\\u05DC\\u05D5\\u05DC"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u05E7\\u05DC\\u05D8",email:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05D0\\u05D9\\u05DE\\u05D9\\u05D9\\u05DC",url:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA \\u05E8\\u05E9\\u05EA",emoji:"\\u05D0\\u05D9\\u05DE\\u05D5\\u05D2\'\\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA \\u05D5\\u05D6\\u05DE\\u05DF ISO",date:"\\u05EA\\u05D0\\u05E8\\u05D9\\u05DA ISO",time:"\\u05D6\\u05DE\\u05DF ISO",duration:"\\u05DE\\u05E9\\u05DA \\u05D6\\u05DE\\u05DF ISO",ipv4:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv4",ipv6:"\\u05DB\\u05EA\\u05D5\\u05D1\\u05EA IPv6",cidrv4:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv4",cidrv6:"\\u05D8\\u05D5\\u05D5\\u05D7 IPv6",base64:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64",base64url:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05D1\\u05D1\\u05E1\\u05D9\\u05E1 64 \\u05DC\\u05DB\\u05EA\\u05D5\\u05D1\\u05D5\\u05EA \\u05E8\\u05E9\\u05EA",json_string:"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA JSON",e164:"\\u05DE\\u05E1\\u05E4\\u05E8 E.164",jwt:"JWT",template_literal:"\\u05E7\\u05DC\\u05D8"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA ".concat(t.expected,", \\u05D4\\u05EA\\u05E7\\u05D1\\u05DC ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA ".concat(b(t.values[0])):"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05E6\\u05E8\\u05D9\\u05DA \\u05D0\\u05D7\\u05EA \\u05DE\\u05D4\\u05D0\\u05E4\\u05E9\\u05E8\\u05D5\\u05D9\\u05D5\\u05EA ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ".concat((o=t.origin)!=null?o:"value"," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elements"):"\\u05D2\\u05D3\\u05D5\\u05DC \\u05DE\\u05D3\\u05D9: ".concat((s=t.origin)!=null?s:"value"," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ".concat(t.origin," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u05E7\\u05D8\\u05DF \\u05DE\\u05D3\\u05D9: ".concat(t.origin," \\u05E6\\u05E8\\u05D9\\u05DA \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D7\\u05D9\\u05DC \\u05D1"\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05E1\\u05EA\\u05D9\\u05D9\\u05DD \\u05D1 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05DB\\u05DC\\u05D5\\u05DC "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u05DE\\u05D7\\u05E8\\u05D5\\u05D6\\u05EA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05E0\\u05D4: \\u05D7\\u05D9\\u05D9\\u05D1\\u05EA \\u05DC\\u05D4\\u05EA\\u05D0\\u05D9\\u05DD \\u05DC\\u05EA\\u05D1\\u05E0\\u05D9\\u05EA ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF")}case"not_multiple_of":return"\\u05DE\\u05E1\\u05E4\\u05E8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF: \\u05D7\\u05D9\\u05D9\\u05D1 \\u05DC\\u05D4\\u05D9\\u05D5\\u05EA \\u05DE\\u05DB\\u05E4\\u05DC\\u05D4 \\u05E9\\u05DC ".concat(t.divisor);case"unrecognized_keys":return"\\u05DE\\u05E4\\u05EA\\u05D7".concat(t.keys.length>1?"\\u05D5\\u05EA":""," \\u05DC\\u05D0 \\u05DE\\u05D6\\u05D5\\u05D4").concat(t.keys.length>1?"\\u05D9\\u05DD":"\\u05D4",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u05DE\\u05E4\\u05EA\\u05D7 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1".concat(t.origin);case"invalid_union":return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF";case"invalid_element":return"\\u05E2\\u05E8\\u05DA \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF \\u05D1".concat(t.origin);default:return"\\u05E7\\u05DC\\u05D8 \\u05DC\\u05D0 \\u05EA\\u05E7\\u05D9\\u05DF"}}};function Fu(){return{localeError:Fl()}}var Jl=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"sz\\xE1m";case"object":{if(Array.isArray(t))return"t\\xF6mb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"bemenet",email:"email c\\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\\u0151b\\xE9lyeg",date:"ISO d\\xE1tum",time:"ISO id\\u0151",duration:"ISO id\\u0151intervallum",ipv4:"IPv4 c\\xEDm",ipv6:"IPv6 c\\xEDm",cidrv4:"IPv4 tartom\\xE1ny",cidrv6:"IPv6 tartom\\xE1ny",base64:"base64-k\\xF3dolt string",base64url:"base64url-k\\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\\xE1m",jwt:"JWT",template_literal:"bemenet"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ".concat(t.expected,", a kapott \\xE9rt\\xE9k ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\xC9rv\\xE9nytelen bemenet: a v\\xE1rt \\xE9rt\\xE9k ".concat(b(t.values[0])):"\\xC9rv\\xE9nytelen opci\\xF3: valamelyik \\xE9rt\\xE9k v\\xE1rt ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"T\\xFAl nagy: ".concat((o=t.origin)!=null?o:"\\xE9rt\\xE9k"," m\\xE9rete t\\xFAl nagy ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elem"):"T\\xFAl nagy: a bemeneti \\xE9rt\\xE9k ".concat((s=t.origin)!=null?s:"\\xE9rt\\xE9k"," t\\xFAl nagy: ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ".concat(t.origin," m\\xE9rete t\\xFAl kicsi ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"T\\xFAl kicsi: a bemeneti \\xE9rt\\xE9k ".concat(t.origin," t\\xFAl kicsi ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\xC9rv\\xE9nytelen string: "\'.concat(a.prefix,\'" \\xE9rt\\xE9kkel kell kezd\\u0151dnie\'):a.format==="ends_with"?\'\\xC9rv\\xE9nytelen string: "\'.concat(a.suffix,\'" \\xE9rt\\xE9kkel kell v\\xE9gz\\u0151dnie\'):a.format==="includes"?\'\\xC9rv\\xE9nytelen string: "\'.concat(a.includes,\'" \\xE9rt\\xE9ket kell tartalmaznia\'):a.format==="regex"?"\\xC9rv\\xE9nytelen string: ".concat(a.pattern," mint\\xE1nak kell megfelelnie"):"\\xC9rv\\xE9nytelen ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\xC9rv\\xE9nytelen sz\\xE1m: ".concat(t.divisor," t\\xF6bbsz\\xF6r\\xF6s\\xE9nek kell lennie");case"unrecognized_keys":return"Ismeretlen kulcs".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"\\xC9rv\\xE9nytelen kulcs ".concat(t.origin);case"invalid_union":return"\\xC9rv\\xE9nytelen bemenet";case"invalid_element":return"\\xC9rv\\xE9nytelen \\xE9rt\\xE9k: ".concat(t.origin);default:return"\\xC9rv\\xE9nytelen bemenet"}}};function Ju(){return{localeError:Jl()}}var Ml=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Input tidak valid: diharapkan ".concat(t.expected,", diterima ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Input tidak valid: diharapkan ".concat(b(t.values[0])):"Pilihan tidak valid: diharapkan salah satu dari ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Terlalu besar: diharapkan ".concat((o=t.origin)!=null?o:"value"," memiliki ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elemen"):"Terlalu besar: diharapkan ".concat((s=t.origin)!=null?s:"value"," menjadi ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Terlalu kecil: diharapkan ".concat(t.origin," memiliki ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Terlalu kecil: diharapkan ".concat(t.origin," menjadi ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'String tidak valid: harus dimulai dengan "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'String tidak valid: harus berakhir dengan "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'String tidak valid: harus menyertakan "\'.concat(a.includes,\'"\'):a.format==="regex"?"String tidak valid: harus sesuai pola ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," tidak valid")}case"not_multiple_of":return"Angka tidak valid: harus kelipatan dari ".concat(t.divisor);case"unrecognized_keys":return"Kunci tidak dikenali ".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Kunci tidak valid di ".concat(t.origin);case"invalid_union":return"Input tidak valid";case"invalid_element":return"Nilai tidak valid di ".concat(t.origin);default:return"Input tidak valid"}}};function Mu(){return{localeError:Ml()}}var Bl=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"n\\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Kl=()=>{let e={string:{unit:"stafi",verb:"a\\xF0 hafa"},file:{unit:"b\\xE6ti",verb:"a\\xF0 hafa"},array:{unit:"hluti",verb:"a\\xF0 hafa"},set:{unit:"hluti",verb:"a\\xF0 hafa"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"gildi",email:"netfang",url:"vefsl\\xF3\\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\\xEDmi",date:"ISO dagsetning",time:"ISO t\\xEDmi",duration:"ISO t\\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\\xF6lugildi",jwt:"JWT",template_literal:"gildi"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Rangt gildi: \\xDE\\xFA sl\\xF3st inn ".concat(Bl(i.input)," \\xFEar sem \\xE1 a\\xF0 vera ").concat(i.expected);case"invalid_value":return i.values.length===1?"Rangt gildi: gert r\\xE1\\xF0 fyrir ".concat(b(i.values[0])):"\\xD3gilt val: m\\xE1 vera eitt af eftirfarandi ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat((t=i.origin)!=null?t:"gildi"," hafi ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"hluti"):"Of st\\xF3rt: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat((u=i.origin)!=null?u:"gildi"," s\\xE9 ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat(i.origin," hafi ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"Of l\\xEDti\\xF0: gert er r\\xE1\\xF0 fyrir a\\xF0 ".concat(i.origin," s\\xE9 ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'\\xD3gildur strengur: ver\\xF0ur a\\xF0 byrja \\xE1 "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'\\xD3gildur strengur: ver\\xF0ur a\\xF0 enda \\xE1 "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'\\xD3gildur strengur: ver\\xF0ur a\\xF0 innihalda "\'.concat(c.includes,\'"\'):c.format==="regex"?"\\xD3gildur strengur: ver\\xF0ur a\\xF0 fylgja mynstri ".concat(c.pattern):"Rangt ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"R\\xF6ng tala: ver\\xF0ur a\\xF0 vera margfeldi af ".concat(i.divisor);case"unrecognized_keys":return"\\xD3\\xFEekkt ".concat(i.keys.length>1?"ir lyklar":"ur lykill",": ").concat(p(i.keys,", "));case"invalid_key":return"Rangur lykill \\xED ".concat(i.origin);case"invalid_union":return"Rangt gildi";case"invalid_element":return"Rangt gildi \\xED ".concat(i.origin);default:return"Rangt gildi"}}};function Bu(){return{localeError:Kl()}}var Gl=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Input non valido: atteso ".concat(t.expected,", ricevuto ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Input non valido: atteso ".concat(b(t.values[0])):"Opzione non valida: atteso uno tra ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Troppo grande: ".concat((o=t.origin)!=null?o:"valore"," deve avere ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementi"):"Troppo grande: ".concat((s=t.origin)!=null?s:"valore"," deve essere ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Troppo piccolo: ".concat(t.origin," deve avere ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Troppo piccolo: ".concat(t.origin," deve essere ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Stringa non valida: deve iniziare con "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Stringa non valida: deve terminare con "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Stringa non valida: deve includere "\'.concat(a.includes,\'"\'):a.format==="regex"?"Stringa non valida: deve corrispondere al pattern ".concat(a.pattern):"Invalid ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Numero non valido: deve essere un multiplo di ".concat(t.divisor);case"unrecognized_keys":return"Chiav".concat(t.keys.length>1?"i":"e"," non riconosciut").concat(t.keys.length>1?"e":"a",": ").concat(p(t.keys,", "));case"invalid_key":return"Chiave non valida in ".concat(t.origin);case"invalid_union":return"Input non valido";case"invalid_element":return"Valore non valido in ".concat(t.origin);default:return"Input non valido"}}};function Ku(){return{localeError:Gl()}}var Wl=()=>{let e={string:{unit:"\\u6587\\u5B57",verb:"\\u3067\\u3042\\u308B"},file:{unit:"\\u30D0\\u30A4\\u30C8",verb:"\\u3067\\u3042\\u308B"},array:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"},set:{unit:"\\u8981\\u7D20",verb:"\\u3067\\u3042\\u308B"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u6570\\u5024";case"object":{if(Array.isArray(t))return"\\u914D\\u5217";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u5165\\u529B\\u5024",email:"\\u30E1\\u30FC\\u30EB\\u30A2\\u30C9\\u30EC\\u30B9",url:"URL",emoji:"\\u7D75\\u6587\\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u6642",date:"ISO\\u65E5\\u4ED8",time:"ISO\\u6642\\u523B",duration:"ISO\\u671F\\u9593",ipv4:"IPv4\\u30A2\\u30C9\\u30EC\\u30B9",ipv6:"IPv6\\u30A2\\u30C9\\u30EC\\u30B9",cidrv4:"IPv4\\u7BC4\\u56F2",cidrv6:"IPv6\\u7BC4\\u56F2",base64:"base64\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",base64url:"base64url\\u30A8\\u30F3\\u30B3\\u30FC\\u30C9\\u6587\\u5B57\\u5217",json_string:"JSON\\u6587\\u5B57\\u5217",e164:"E.164\\u756A\\u53F7",jwt:"JWT",template_literal:"\\u5165\\u529B\\u5024"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u7121\\u52B9\\u306A\\u5165\\u529B: ".concat(t.expected,"\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F\\u304C\\u3001").concat(n(t.input),"\\u304C\\u5165\\u529B\\u3055\\u308C\\u307E\\u3057\\u305F");case"invalid_value":return t.values.length===1?"\\u7121\\u52B9\\u306A\\u5165\\u529B: ".concat(b(t.values[0]),"\\u304C\\u671F\\u5F85\\u3055\\u308C\\u307E\\u3057\\u305F"):"\\u7121\\u52B9\\u306A\\u9078\\u629E: ".concat(p(t.values,"\\u3001"),"\\u306E\\u3044\\u305A\\u308C\\u304B\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059");case"too_big":{let a=t.inclusive?"\\u4EE5\\u4E0B\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5C0F\\u3055\\u3044",l=r(t.origin);return l?"\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ".concat((o=t.origin)!=null?o:"\\u5024","\\u306F").concat(t.maximum.toString()).concat((u=l.unit)!=null?u:"\\u8981\\u7D20").concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059"):"\\u5927\\u304D\\u3059\\u304E\\u308B\\u5024: ".concat((s=t.origin)!=null?s:"\\u5024","\\u306F").concat(t.maximum.toString()).concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059")}case"too_small":{let a=t.inclusive?"\\u4EE5\\u4E0A\\u3067\\u3042\\u308B":"\\u3088\\u308A\\u5927\\u304D\\u3044",l=r(t.origin);return l?"\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ".concat(t.origin,"\\u306F").concat(t.minimum.toString()).concat(l.unit).concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059"):"\\u5C0F\\u3055\\u3059\\u304E\\u308B\\u5024: ".concat(t.origin,"\\u306F").concat(t.minimum.toString()).concat(a,"\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "\'.concat(a.prefix,\'"\\u3067\\u59CB\\u307E\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059\'):a.format==="ends_with"?\'\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "\'.concat(a.suffix,\'"\\u3067\\u7D42\\u308F\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059\'):a.format==="includes"?\'\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: "\'.concat(a.includes,\'"\\u3092\\u542B\\u3080\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059\'):a.format==="regex"?"\\u7121\\u52B9\\u306A\\u6587\\u5B57\\u5217: \\u30D1\\u30BF\\u30FC\\u30F3".concat(a.pattern,"\\u306B\\u4E00\\u81F4\\u3059\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059"):"\\u7121\\u52B9\\u306A".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u7121\\u52B9\\u306A\\u6570\\u5024: ".concat(t.divisor,"\\u306E\\u500D\\u6570\\u3067\\u3042\\u308B\\u5FC5\\u8981\\u304C\\u3042\\u308A\\u307E\\u3059");case"unrecognized_keys":return"\\u8A8D\\u8B58\\u3055\\u308C\\u3066\\u3044\\u306A\\u3044\\u30AD\\u30FC".concat(t.keys.length>1?"\\u7FA4":"",": ").concat(p(t.keys,"\\u3001"));case"invalid_key":return"".concat(t.origin,"\\u5185\\u306E\\u7121\\u52B9\\u306A\\u30AD\\u30FC");case"invalid_union":return"\\u7121\\u52B9\\u306A\\u5165\\u529B";case"invalid_element":return"".concat(t.origin,"\\u5185\\u306E\\u7121\\u52B9\\u306A\\u5024");default:return"\\u7121\\u52B9\\u306A\\u5165\\u529B"}}};function Gu(){return{localeError:Wl()}}var Xl=e=>{var i;let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"\\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8";case"object":{if(Array.isArray(e))return"\\u10DB\\u10D0\\u10E1\\u10D8\\u10D5\\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return(i={string:"\\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",boolean:"\\u10D1\\u10E3\\u10DA\\u10D4\\u10D0\\u10DC\\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\\u10E4\\u10E3\\u10DC\\u10E5\\u10EA\\u10D8\\u10D0"}[r])!=null?i:r},ql=()=>{let e={string:{unit:"\\u10E1\\u10D8\\u10DB\\u10D1\\u10DD\\u10DA\\u10DD",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},file:{unit:"\\u10D1\\u10D0\\u10D8\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},array:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"},set:{unit:"\\u10D4\\u10DA\\u10D4\\u10DB\\u10D4\\u10DC\\u10E2\\u10D8",verb:"\\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0",email:"\\u10D4\\u10DA-\\u10E4\\u10DD\\u10E1\\u10E2\\u10D8\\u10E1 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",url:"URL",emoji:"\\u10D4\\u10DB\\u10DD\\u10EF\\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8-\\u10D3\\u10E0\\u10DD",date:"\\u10D7\\u10D0\\u10E0\\u10D8\\u10E6\\u10D8",time:"\\u10D3\\u10E0\\u10DD",duration:"\\u10EE\\u10D0\\u10DC\\u10D2\\u10E0\\u10EB\\u10DA\\u10D8\\u10D5\\u10DD\\u10D1\\u10D0",ipv4:"IPv4 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",ipv6:"IPv6 \\u10DB\\u10D8\\u10E1\\u10D0\\u10DB\\u10D0\\u10E0\\u10D7\\u10D8",cidrv4:"IPv4 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",cidrv6:"IPv6 \\u10D3\\u10D8\\u10D0\\u10DE\\u10D0\\u10D6\\u10DD\\u10DC\\u10D8",base64:"base64-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",base64url:"base64url-\\u10D9\\u10DD\\u10D3\\u10D8\\u10E0\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",json_string:"JSON \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8",e164:"E.164 \\u10DC\\u10DD\\u10DB\\u10D4\\u10E0\\u10D8",jwt:"JWT",template_literal:"\\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"};return i=>{var t,o,u;switch(i.code){case"invalid_type":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(i.expected,", \\u10DB\\u10D8\\u10E6\\u10D4\\u10D1\\u10E3\\u10DA\\u10D8 ").concat(Xl(i.input));case"invalid_value":return i.values.length===1?"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(b(i.values[0])):"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D5\\u10D0\\u10E0\\u10D8\\u10D0\\u10DC\\u10E2\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8\\u10D0 \\u10D4\\u10E0\\u10D7-\\u10D4\\u10E0\\u10D7\\u10D8 ".concat(p(i.values,"|"),"-\\u10D3\\u10D0\\u10DC");case"too_big":{let s=i.inclusive?"<=":"<",c=r(i.origin);return c?"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat((t=i.origin)!=null?t:"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"," ").concat(c.verb," ").concat(s).concat(i.maximum.toString()," ").concat(c.unit):"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10D3\\u10D8\\u10D3\\u10D8: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat((o=i.origin)!=null?o:"\\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0"," \\u10D8\\u10E7\\u10DD\\u10E1 ").concat(s).concat(i.maximum.toString())}case"too_small":{let s=i.inclusive?">=":">",c=r(i.origin);return c?"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(i.origin," ").concat(c.verb," ").concat(s).concat(i.minimum.toString()," ").concat(c.unit):"\\u10D6\\u10D4\\u10D3\\u10DB\\u10D4\\u10E2\\u10D0\\u10D3 \\u10DE\\u10D0\\u10E2\\u10D0\\u10E0\\u10D0: \\u10DB\\u10DD\\u10E1\\u10D0\\u10DA\\u10DD\\u10D3\\u10DC\\u10D4\\u10DA\\u10D8 ".concat(i.origin," \\u10D8\\u10E7\\u10DD\\u10E1 ").concat(s).concat(i.minimum.toString())}case"invalid_format":{let s=i;return s.format==="starts_with"?\'\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10EC\\u10E7\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "\'.concat(s.prefix,\'"-\\u10D8\\u10D7\'):s.format==="ends_with"?\'\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10DB\\u10D7\\u10D0\\u10D5\\u10E0\\u10D3\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 "\'.concat(s.suffix,\'"-\\u10D8\\u10D7\'):s.format==="includes"?\'\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D8\\u10EA\\u10D0\\u10D5\\u10D3\\u10D4\\u10E1 "\'.concat(s.includes,\'"-\\u10E1\'):s.format==="regex"?"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E1\\u10E2\\u10E0\\u10D8\\u10DC\\u10D2\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10E8\\u10D4\\u10D4\\u10E1\\u10D0\\u10D1\\u10D0\\u10DB\\u10D4\\u10D1\\u10DD\\u10D3\\u10D4\\u10E1 \\u10E8\\u10D0\\u10D1\\u10DA\\u10DD\\u10DC\\u10E1 ".concat(s.pattern):"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 ".concat((u=n[s.format])!=null?u:i.format)}case"not_multiple_of":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E0\\u10D8\\u10EA\\u10EE\\u10D5\\u10D8: \\u10E3\\u10DC\\u10D3\\u10D0 \\u10D8\\u10E7\\u10DD\\u10E1 ".concat(i.divisor,"-\\u10D8\\u10E1 \\u10EF\\u10D4\\u10E0\\u10D0\\u10D3\\u10D8");case"unrecognized_keys":return"\\u10E3\\u10EA\\u10DC\\u10DD\\u10D1\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1".concat(i.keys.length>1?"\\u10D4\\u10D1\\u10D8":"\\u10D8",": ").concat(p(i.keys,", "));case"invalid_key":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10D2\\u10D0\\u10E1\\u10D0\\u10E6\\u10D4\\u10D1\\u10D8 ".concat(i.origin,"-\\u10E8\\u10D8");case"invalid_union":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0";case"invalid_element":return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10DB\\u10DC\\u10D8\\u10E8\\u10D5\\u10DC\\u10D4\\u10DA\\u10DD\\u10D1\\u10D0 ".concat(i.origin,"-\\u10E8\\u10D8");default:return"\\u10D0\\u10E0\\u10D0\\u10E1\\u10EC\\u10DD\\u10E0\\u10D8 \\u10E8\\u10D4\\u10E7\\u10D5\\u10D0\\u10DC\\u10D0"}}};function Wu(){return{localeError:ql()}}var Yl=()=>{let e={string:{unit:"\\u178F\\u17BD\\u17A2\\u1780\\u17D2\\u179F\\u179A",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},file:{unit:"\\u1794\\u17C3",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},array:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"},set:{unit:"\\u1792\\u17B6\\u178F\\u17BB",verb:"\\u1782\\u17BD\\u179A\\u1798\\u17B6\\u1793"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u1798\\u17B7\\u1793\\u1798\\u17C2\\u1793\\u1787\\u17B6\\u179B\\u17C1\\u1781 (NaN)":"\\u179B\\u17C1\\u1781";case"object":{if(Array.isArray(t))return"\\u17A2\\u17B6\\u179A\\u17C1 (Array)";if(t===null)return"\\u1782\\u17D2\\u1798\\u17B6\\u1793\\u178F\\u1798\\u17D2\\u179B\\u17C3 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B",email:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793\\u17A2\\u17CA\\u17B8\\u1798\\u17C2\\u179B",url:"URL",emoji:"\\u179F\\u1789\\u17D2\\u1789\\u17B6\\u17A2\\u17B6\\u179A\\u1798\\u17D2\\u1798\\u178E\\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 \\u1793\\u17B7\\u1784\\u1798\\u17C9\\u17C4\\u1784 ISO",date:"\\u1780\\u17B6\\u179B\\u1794\\u179A\\u17B7\\u1785\\u17D2\\u1786\\u17C1\\u1791 ISO",time:"\\u1798\\u17C9\\u17C4\\u1784 ISO",duration:"\\u179A\\u1799\\u17C8\\u1796\\u17C1\\u179B ISO",ipv4:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",ipv6:"\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",cidrv4:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv4",cidrv6:"\\u178A\\u17C2\\u1793\\u17A2\\u17B6\\u179F\\u1799\\u178A\\u17D2\\u178B\\u17B6\\u1793 IPv6",base64:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64",base64url:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u17A2\\u17CA\\u17B7\\u1780\\u17BC\\u178A base64url",json_string:"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A JSON",e164:"\\u179B\\u17C1\\u1781 E.164",jwt:"JWT",template_literal:"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(t.expected," \\u1794\\u17C9\\u17BB\\u1793\\u17D2\\u178F\\u17C2\\u1791\\u1791\\u17BD\\u179B\\u1794\\u17B6\\u1793 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1794\\u1789\\u17D2\\u1785\\u17BC\\u179B\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(b(t.values[0])):"\\u1787\\u1798\\u17D2\\u179A\\u17BE\\u179F\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1787\\u17B6\\u1798\\u17BD\\u1799\\u1780\\u17D2\\u1793\\u17BB\\u1784\\u1785\\u17C6\\u178E\\u17C4\\u1798 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat((o=t.origin)!=null?o:"\\u178F\\u1798\\u17D2\\u179B\\u17C3"," ").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u1792\\u17B6\\u178F\\u17BB"):"\\u1792\\u17C6\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat((s=t.origin)!=null?s:"\\u178F\\u1798\\u17D2\\u179B\\u17C3"," ").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(t.origin," ").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"\\u178F\\u17BC\\u1785\\u1796\\u17C1\\u1780\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1780\\u17B6\\u179A ".concat(t.origin," ").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1785\\u17B6\\u1794\\u17CB\\u1795\\u17D2\\u178F\\u17BE\\u1798\\u178A\\u17C4\\u1799 "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1794\\u1789\\u17D2\\u1785\\u1794\\u17CB\\u178A\\u17C4\\u1799 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1798\\u17B6\\u1793 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u1781\\u17D2\\u179F\\u17C2\\u17A2\\u1780\\u17D2\\u179F\\u179A\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1795\\u17D2\\u1782\\u17BC\\u1795\\u17D2\\u1782\\u1784\\u1793\\u17B9\\u1784\\u1791\\u1798\\u17D2\\u179A\\u1784\\u17CB\\u178A\\u17C2\\u179B\\u1794\\u17B6\\u1793\\u1780\\u17C6\\u178E\\u178F\\u17CB ".concat(a.pattern):"\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u179B\\u17C1\\u1781\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u17D6 \\u178F\\u17D2\\u179A\\u17BC\\u179C\\u178F\\u17C2\\u1787\\u17B6\\u1796\\u17A0\\u17BB\\u1782\\u17BB\\u178E\\u1793\\u17C3 ".concat(t.divisor);case"unrecognized_keys":return"\\u179A\\u1780\\u1783\\u17BE\\u1789\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u179F\\u17D2\\u1782\\u17B6\\u179B\\u17CB\\u17D6 ".concat(p(t.keys,", "));case"invalid_key":return"\\u179F\\u17C4\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ".concat(t.origin);case"invalid_union":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C";case"invalid_element":return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C\\u1793\\u17C5\\u1780\\u17D2\\u1793\\u17BB\\u1784 ".concat(t.origin);default:return"\\u1791\\u17B7\\u1793\\u17D2\\u1793\\u1793\\u17D0\\u1799\\u1798\\u17B7\\u1793\\u178F\\u17D2\\u179A\\u17B9\\u1798\\u178F\\u17D2\\u179A\\u17BC\\u179C"}}};function rr(){return{localeError:Yl()}}function Xu(){return rr()}var Ql=()=>{let e={string:{unit:"\\uBB38\\uC790",verb:"to have"},file:{unit:"\\uBC14\\uC774\\uD2B8",verb:"to have"},array:{unit:"\\uAC1C",verb:"to have"},set:{unit:"\\uAC1C",verb:"to have"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\uC785\\uB825",email:"\\uC774\\uBA54\\uC77C \\uC8FC\\uC18C",url:"URL",emoji:"\\uC774\\uBAA8\\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\uB0A0\\uC9DC\\uC2DC\\uAC04",date:"ISO \\uB0A0\\uC9DC",time:"ISO \\uC2DC\\uAC04",duration:"ISO \\uAE30\\uAC04",ipv4:"IPv4 \\uC8FC\\uC18C",ipv6:"IPv6 \\uC8FC\\uC18C",cidrv4:"IPv4 \\uBC94\\uC704",cidrv6:"IPv6 \\uBC94\\uC704",base64:"base64 \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",base64url:"base64url \\uC778\\uCF54\\uB529 \\uBB38\\uC790\\uC5F4",json_string:"JSON \\uBB38\\uC790\\uC5F4",e164:"E.164 \\uBC88\\uD638",jwt:"JWT",template_literal:"\\uC785\\uB825"};return t=>{var o,u,s,c,a,l,v;switch(t.code){case"invalid_type":return"\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uC608\\uC0C1 \\uD0C0\\uC785\\uC740 ".concat(t.expected,", \\uBC1B\\uC740 \\uD0C0\\uC785\\uC740 ").concat(n(t.input),"\\uC785\\uB2C8\\uB2E4");case"invalid_value":return t.values.length===1?"\\uC798\\uBABB\\uB41C \\uC785\\uB825: \\uAC12\\uC740 ".concat(b(t.values[0])," \\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4"):"\\uC798\\uBABB\\uB41C \\uC635\\uC158: ".concat(p(t.values,"\\uB610\\uB294 ")," \\uC911 \\uD558\\uB098\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4");case"too_big":{let f=t.inclusive?"\\uC774\\uD558":"\\uBBF8\\uB9CC",h=f==="\\uBBF8\\uB9CC"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",x=r(t.origin),S=(o=x==null?void 0:x.unit)!=null?o:"\\uC694\\uC18C";return x?"".concat((u=t.origin)!=null?u:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ").concat(t.maximum.toString()).concat(S," ").concat(f).concat(h):"".concat((s=t.origin)!=null?s:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uD07D\\uB2C8\\uB2E4: ").concat(t.maximum.toString()," ").concat(f).concat(h)}case"too_small":{let f=t.inclusive?"\\uC774\\uC0C1":"\\uCD08\\uACFC",h=f==="\\uC774\\uC0C1"?"\\uC774\\uC5B4\\uC57C \\uD569\\uB2C8\\uB2E4":"\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4",x=r(t.origin),S=(c=x==null?void 0:x.unit)!=null?c:"\\uC694\\uC18C";return x?"".concat((a=t.origin)!=null?a:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ").concat(t.minimum.toString()).concat(S," ").concat(f).concat(h):"".concat((l=t.origin)!=null?l:"\\uAC12","\\uC774 \\uB108\\uBB34 \\uC791\\uC2B5\\uB2C8\\uB2E4: ").concat(t.minimum.toString()," ").concat(f).concat(h)}case"invalid_format":{let f=t;return f.format==="starts_with"?\'\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "\'.concat(f.prefix,\'"(\\uC73C)\\uB85C \\uC2DC\\uC791\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4\'):f.format==="ends_with"?\'\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "\'.concat(f.suffix,\'"(\\uC73C)\\uB85C \\uB05D\\uB098\\uC57C \\uD569\\uB2C8\\uB2E4\'):f.format==="includes"?\'\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: "\'.concat(f.includes,\'"\\uC744(\\uB97C) \\uD3EC\\uD568\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4\'):f.format==="regex"?"\\uC798\\uBABB\\uB41C \\uBB38\\uC790\\uC5F4: \\uC815\\uADDC\\uC2DD ".concat(f.pattern," \\uD328\\uD134\\uACFC \\uC77C\\uCE58\\uD574\\uC57C \\uD569\\uB2C8\\uB2E4"):"\\uC798\\uBABB\\uB41C ".concat((v=i[f.format])!=null?v:t.format)}case"not_multiple_of":return"\\uC798\\uBABB\\uB41C \\uC22B\\uC790: ".concat(t.divisor,"\\uC758 \\uBC30\\uC218\\uC5EC\\uC57C \\uD569\\uB2C8\\uB2E4");case"unrecognized_keys":return"\\uC778\\uC2DD\\uD560 \\uC218 \\uC5C6\\uB294 \\uD0A4: ".concat(p(t.keys,", "));case"invalid_key":return"\\uC798\\uBABB\\uB41C \\uD0A4: ".concat(t.origin);case"invalid_union":return"\\uC798\\uBABB\\uB41C \\uC785\\uB825";case"invalid_element":return"\\uC798\\uBABB\\uB41C \\uAC12: ".concat(t.origin);default:return"\\uC798\\uBABB\\uB41C \\uC785\\uB825"}}};function qu(){return{localeError:Ql()}}var Hl=e=>ut(typeof e,e),ut=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skai\\u010Dius";case"bigint":return"sveikasis skai\\u010Dius";case"string":return"eilut\\u0117";case"boolean":return"login\\u0117 reik\\u0161m\\u0117";case"undefined":case"void":return"neapibr\\u0117\\u017Eta reik\\u0161m\\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"ne\\u017Einomas objektas":r===null?"nulin\\u0117 reik\\u0161m\\u0117":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulin\\u0117 reik\\u0161m\\u0117"}return e},at=e=>e.charAt(0).toUpperCase()+e.slice(1);function Yu(e){let r=Math.abs(e),n=r%10,i=r%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var ed=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne ilgesn\\u0117 kaip",notInclusive:"turi b\\u016Bti trumpesn\\u0117 kaip"},bigger:{inclusive:"turi b\\u016Bti ne trumpesn\\u0117 kaip",notInclusive:"turi b\\u016Bti ilgesn\\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\\u0173"},verb:{smaller:{inclusive:"turi b\\u016Bti ne didesnis kaip",notInclusive:"turi b\\u016Bti ma\\u017Eesnis kaip"},bigger:{inclusive:"turi b\\u016Bti ne ma\\u017Eesnis kaip",notInclusive:"turi b\\u016Bti didesnis kaip"}}},array:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}},set:{unit:{one:"element\\u0105",few:"elementus",many:"element\\u0173"},verb:{smaller:{inclusive:"turi tur\\u0117ti ne daugiau kaip",notInclusive:"turi tur\\u0117ti ma\\u017Eiau kaip"},bigger:{inclusive:"turi tur\\u0117ti ne ma\\u017Eiau kaip",notInclusive:"turi tur\\u0117ti daugiau kaip"}}}};function r(i,t,o,u){var c;let s=(c=e[i])!=null?c:null;return s===null?s:{unit:s.unit[t],verb:s.verb[u][o?"inclusive":"notInclusive"]}}let n={regex:"\\u012Fvestis",email:"el. pa\\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\\u017Ekoduota eilut\\u0117",base64url:"base64url u\\u017Ekoduota eilut\\u0117",json_string:"JSON eilut\\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\\u012Fvestis"};return i=>{var t,o,u,s,c,a,l,v,f,h;switch(i.code){case"invalid_type":return"Gautas tipas ".concat(Hl(i.input),", o tik\\u0117tasi - ").concat(ut(i.expected));case"invalid_value":return i.values.length===1?"Privalo b\\u016Bti ".concat(b(i.values[0])):"Privalo b\\u016Bti vienas i\\u0161 ".concat(p(i.values,"|")," pasirinkim\\u0173");case"too_big":{let x=ut(i.origin),S=r(i.origin,Yu(Number(i.maximum)),(t=i.inclusive)!=null?t:!1,"smaller");if(S!=null&&S.verb)return"".concat(at((o=x!=null?x:i.origin)!=null?o:"reik\\u0161m\\u0117")," ").concat(S.verb," ").concat(i.maximum.toString()," ").concat((u=S.unit)!=null?u:"element\\u0173");let I=i.inclusive?"ne didesnis kaip":"ma\\u017Eesnis kaip";return"".concat(at((s=x!=null?x:i.origin)!=null?s:"reik\\u0161m\\u0117")," turi b\\u016Bti ").concat(I," ").concat(i.maximum.toString()," ").concat(S==null?void 0:S.unit)}case"too_small":{let x=ut(i.origin),S=r(i.origin,Yu(Number(i.minimum)),(c=i.inclusive)!=null?c:!1,"bigger");if(S!=null&&S.verb)return"".concat(at((a=x!=null?x:i.origin)!=null?a:"reik\\u0161m\\u0117")," ").concat(S.verb," ").concat(i.minimum.toString()," ").concat((l=S.unit)!=null?l:"element\\u0173");let I=i.inclusive?"ne ma\\u017Eesnis kaip":"didesnis kaip";return"".concat(at((v=x!=null?x:i.origin)!=null?v:"reik\\u0161m\\u0117")," turi b\\u016Bti ").concat(I," ").concat(i.minimum.toString()," ").concat(S==null?void 0:S.unit)}case"invalid_format":{let x=i;return x.format==="starts_with"?\'Eilut\\u0117 privalo prasid\\u0117ti "\'.concat(x.prefix,\'"\'):x.format==="ends_with"?\'Eilut\\u0117 privalo pasibaigti "\'.concat(x.suffix,\'"\'):x.format==="includes"?\'Eilut\\u0117 privalo \\u012Ftraukti "\'.concat(x.includes,\'"\'):x.format==="regex"?"Eilut\\u0117 privalo atitikti ".concat(x.pattern):"Neteisingas ".concat((f=n[x.format])!=null?f:i.format)}case"not_multiple_of":return"Skai\\u010Dius privalo b\\u016Bti ".concat(i.divisor," kartotinis.");case"unrecognized_keys":return"Neatpa\\u017Eint".concat(i.keys.length>1?"i":"as"," rakt").concat(i.keys.length>1?"ai":"as",": ").concat(p(i.keys,", "));case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \\u012Fvestis";case"invalid_element":{let x=ut(i.origin);return"".concat(at((h=x!=null?x:i.origin)!=null?h:"reik\\u0161m\\u0117")," turi klaiding\\u0105 \\u012Fvest\\u012F")}default:return"Klaidinga \\u012Fvestis"}}};function Qu(){return{localeError:ed()}}var td=()=>{let e={string:{unit:"\\u0437\\u043D\\u0430\\u0446\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},file:{unit:"\\u0431\\u0430\\u0458\\u0442\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},array:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"},set:{unit:"\\u0441\\u0442\\u0430\\u0432\\u043A\\u0438",verb:"\\u0434\\u0430 \\u0438\\u043C\\u0430\\u0430\\u0442"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0431\\u0440\\u043E\\u0458";case"object":{if(Array.isArray(t))return"\\u043D\\u0438\\u0437\\u0430";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0432\\u043D\\u0435\\u0441",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u043D\\u0430 \\u0435-\\u043F\\u043E\\u0448\\u0442\\u0430",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u045F\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C \\u0438 \\u0432\\u0440\\u0435\\u043C\\u0435",date:"ISO \\u0434\\u0430\\u0442\\u0443\\u043C",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435",duration:"ISO \\u0432\\u0440\\u0435\\u043C\\u0435\\u0442\\u0440\\u0430\\u0435\\u045A\\u0435",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441\\u0430",cidrv4:"IPv4 \\u043E\\u043F\\u0441\\u0435\\u0433",cidrv6:"IPv6 \\u043E\\u043F\\u0441\\u0435\\u0433",base64:"base64-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",base64url:"base64url-\\u0435\\u043D\\u043A\\u043E\\u0434\\u0438\\u0440\\u0430\\u043D\\u0430 \\u043D\\u0438\\u0437\\u0430",json_string:"JSON \\u043D\\u0438\\u0437\\u0430",e164:"E.164 \\u0431\\u0440\\u043E\\u0458",jwt:"JWT",template_literal:"\\u0432\\u043D\\u0435\\u0441"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat(t.expected,", \\u043F\\u0440\\u0438\\u043C\\u0435\\u043D\\u043E ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Invalid input: expected ".concat(b(t.values[0])):"\\u0413\\u0440\\u0435\\u0448\\u0430\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0438\\u0458\\u0430: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 \\u0435\\u0434\\u043D\\u0430 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat((o=t.origin)!=null?o:"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"," \\u0434\\u0430 \\u0438\\u043C\\u0430 ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0438"):"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u0433\\u043E\\u043B\\u0435\\u043C: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat((s=t.origin)!=null?s:"\\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442\\u0430"," \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat(t.origin," \\u0434\\u0430 \\u0438\\u043C\\u0430 ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u041F\\u0440\\u0435\\u043C\\u043D\\u043E\\u0433\\u0443 \\u043C\\u0430\\u043B: \\u0441\\u0435 \\u043E\\u0447\\u0435\\u043A\\u0443\\u0432\\u0430 ".concat(t.origin," \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u043F\\u043E\\u0447\\u043D\\u0443\\u0432\\u0430 \\u0441\\u043E "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0437\\u0430\\u0432\\u0440\\u0448\\u0443\\u0432\\u0430 \\u0441\\u043E "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0432\\u043A\\u043B\\u0443\\u0447\\u0443\\u0432\\u0430 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u041D\\u0435\\u0432\\u0430\\u0436\\u0435\\u0447\\u043A\\u0430 \\u043D\\u0438\\u0437\\u0430: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u043E\\u0434\\u0433\\u043E\\u0430\\u0440\\u0430 \\u043D\\u0430 \\u043F\\u0430\\u0442\\u0435\\u0440\\u043D\\u043E\\u0442 ".concat(a.pattern):"Invalid ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0431\\u0440\\u043E\\u0458: \\u043C\\u043E\\u0440\\u0430 \\u0434\\u0430 \\u0431\\u0438\\u0434\\u0435 \\u0434\\u0435\\u043B\\u0438\\u0432 \\u0441\\u043E ".concat(t.divisor);case"unrecognized_keys":return"".concat(t.keys.length>1?"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D\\u0438 \\u043A\\u043B\\u0443\\u0447\\u0435\\u0432\\u0438":"\\u041D\\u0435\\u043F\\u0440\\u0435\\u043F\\u043E\\u0437\\u043D\\u0430\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u043A\\u043B\\u0443\\u0447 \\u0432\\u043E ".concat(t.origin);case"invalid_union":return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441";case"invalid_element":return"\\u0413\\u0440\\u0435\\u0448\\u043D\\u0430 \\u0432\\u0440\\u0435\\u0434\\u043D\\u043E\\u0441\\u0442 \\u0432\\u043E ".concat(t.origin);default:return"\\u0413\\u0440\\u0435\\u0448\\u0435\\u043D \\u0432\\u043D\\u0435\\u0441"}}};function Hu(){return{localeError:td()}}var rd=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Input tidak sah: dijangka ".concat(t.expected,", diterima ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Input tidak sah: dijangka ".concat(b(t.values[0])):"Pilihan tidak sah: dijangka salah satu daripada ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Terlalu besar: dijangka ".concat((o=t.origin)!=null?o:"nilai"," ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elemen"):"Terlalu besar: dijangka ".concat((s=t.origin)!=null?s:"nilai"," adalah ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Terlalu kecil: dijangka ".concat(t.origin," ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Terlalu kecil: dijangka ".concat(t.origin," adalah ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'String tidak sah: mesti bermula dengan "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'String tidak sah: mesti berakhir dengan "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'String tidak sah: mesti mengandungi "\'.concat(a.includes,\'"\'):a.format==="regex"?"String tidak sah: mesti sepadan dengan corak ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," tidak sah")}case"not_multiple_of":return"Nombor tidak sah: perlu gandaan ".concat(t.divisor);case"unrecognized_keys":return"Kunci tidak dikenali: ".concat(p(t.keys,", "));case"invalid_key":return"Kunci tidak sah dalam ".concat(t.origin);case"invalid_union":return"Input tidak sah";case"invalid_element":return"Nilai tidak sah dalam ".concat(t.origin);default:return"Input tidak sah"}}};function ec(){return{localeError:rd()}}var nd=()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Ongeldige invoer: verwacht ".concat(t.expected,", ontving ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ongeldige invoer: verwacht ".concat(b(t.values[0])):"Ongeldige optie: verwacht \\xE9\\xE9n van ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Te lang: verwacht dat ".concat((o=t.origin)!=null?o:"waarde"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementen"," bevat"):"Te lang: verwacht dat ".concat((s=t.origin)!=null?s:"waarde"," ").concat(a).concat(t.maximum.toString()," is")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Te kort: verwacht dat ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," bevat"):"Te kort: verwacht dat ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," is")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Ongeldige tekst: moet met "\'.concat(a.prefix,\'" beginnen\'):a.format==="ends_with"?\'Ongeldige tekst: moet op "\'.concat(a.suffix,\'" eindigen\'):a.format==="includes"?\'Ongeldige tekst: moet "\'.concat(a.includes,\'" bevatten\'):a.format==="regex"?"Ongeldige tekst: moet overeenkomen met patroon ".concat(a.pattern):"Ongeldig: ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Ongeldig getal: moet een veelvoud van ".concat(t.divisor," zijn");case"unrecognized_keys":return"Onbekende key".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Ongeldige key in ".concat(t.origin);case"invalid_union":return"Ongeldige invoer";case"invalid_element":return"Ongeldige waarde in ".concat(t.origin);default:return"Ongeldige invoer"}}};function tc(){return{localeError:nd()}}var id=()=>{let e={string:{unit:"tegn",verb:"\\xE5 ha"},file:{unit:"bytes",verb:"\\xE5 ha"},array:{unit:"elementer",verb:"\\xE5 inneholde"},set:{unit:"elementer",verb:"\\xE5 inneholde"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\\xE5de",ipv6:"IPv6-omr\\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Ugyldig input: forventet ".concat(t.expected,", fikk ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ugyldig verdi: forventet ".concat(b(t.values[0])):"Ugyldig valg: forventet en av ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"For stor(t): forventet ".concat((o=t.origin)!=null?o:"value"," til \\xE5 ha ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementer"):"For stor(t): forventet ".concat((s=t.origin)!=null?s:"value"," til \\xE5 ha ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"For lite(n): forventet ".concat(t.origin," til \\xE5 ha ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"For lite(n): forventet ".concat(t.origin," til \\xE5 ha ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Ugyldig streng: m\\xE5 starte med "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Ugyldig streng: m\\xE5 ende med "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Ugyldig streng: m\\xE5 inneholde "\'.concat(a.includes,\'"\'):a.format==="regex"?"Ugyldig streng: m\\xE5 matche m\\xF8nsteret ".concat(a.pattern):"Ugyldig ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Ugyldig tall: m\\xE5 v\\xE6re et multiplum av ".concat(t.divisor);case"unrecognized_keys":return"".concat(t.keys.length>1?"Ukjente n\\xF8kler":"Ukjent n\\xF8kkel",": ").concat(p(t.keys,", "));case"invalid_key":return"Ugyldig n\\xF8kkel i ".concat(t.origin);case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i ".concat(t.origin);default:return"Ugyldig input"}}};function rc(){return{localeError:id()}}var od=()=>{let e={string:{unit:"harf",verb:"olmal\\u0131d\\u0131r"},file:{unit:"bayt",verb:"olmal\\u0131d\\u0131r"},array:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"},set:{unit:"unsur",verb:"olmal\\u0131d\\u0131r"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"giren",email:"epostag\\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\\xE2m\\u0131",date:"ISO tarihi",time:"ISO zaman\\u0131",duration:"ISO m\\xFCddeti",ipv4:"IPv4 ni\\u015F\\xE2n\\u0131",ipv6:"IPv6 ni\\u015F\\xE2n\\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\\u015Fifreli metin",base64url:"base64url-\\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\\u0131s\\u0131",jwt:"JWT",template_literal:"giren"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"F\\xE2sit giren: umulan ".concat(t.expected,", al\\u0131nan ").concat(n(t.input));case"invalid_value":return t.values.length===1?"F\\xE2sit giren: umulan ".concat(b(t.values[0])):"F\\xE2sit tercih: m\\xFBteberler ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Fazla b\\xFCy\\xFCk: ".concat((o=t.origin)!=null?o:"value",", ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elements"," sahip olmal\\u0131yd\\u0131."):"Fazla b\\xFCy\\xFCk: ".concat((s=t.origin)!=null?s:"value",", ").concat(a).concat(t.maximum.toString()," olmal\\u0131yd\\u0131.")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Fazla k\\xFC\\xE7\\xFCk: ".concat(t.origin,", ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," sahip olmal\\u0131yd\\u0131."):"Fazla k\\xFC\\xE7\\xFCk: ".concat(t.origin,", ").concat(a).concat(t.minimum.toString()," olmal\\u0131yd\\u0131.")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'F\\xE2sit metin: "\'.concat(a.prefix,\'" ile ba\\u015Flamal\\u0131.\'):a.format==="ends_with"?\'F\\xE2sit metin: "\'.concat(a.suffix,\'" ile bitmeli.\'):a.format==="includes"?\'F\\xE2sit metin: "\'.concat(a.includes,\'" ihtiv\\xE2 etmeli.\'):a.format==="regex"?"F\\xE2sit metin: ".concat(a.pattern," nak\\u015F\\u0131na uymal\\u0131."):"F\\xE2sit ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"F\\xE2sit say\\u0131: ".concat(t.divisor," kat\\u0131 olmal\\u0131yd\\u0131.");case"unrecognized_keys":return"Tan\\u0131nmayan anahtar ".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," i\\xE7in tan\\u0131nmayan anahtar var.");case"invalid_union":return"Giren tan\\u0131namad\\u0131.";case"invalid_element":return"".concat(t.origin," i\\xE7in tan\\u0131nmayan k\\u0131ymet var.");default:return"K\\u0131ymet tan\\u0131namad\\u0131."}}};function nc(){return{localeError:od()}}var ad=()=>{let e={string:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},file:{unit:"\\u0628\\u0627\\u06CC\\u067C\\u0633",verb:"\\u0648\\u0644\\u0631\\u064A"},array:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"},set:{unit:"\\u062A\\u0648\\u06A9\\u064A",verb:"\\u0648\\u0644\\u0631\\u064A"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0639\\u062F\\u062F";case"object":{if(Array.isArray(t))return"\\u0627\\u0631\\u06D0";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0648\\u0631\\u0648\\u062F\\u064A",email:"\\u0628\\u0631\\u06CC\\u069A\\u0646\\u0627\\u0644\\u06CC\\u06A9",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0646\\u06CC\\u067C\\u0647 \\u0627\\u0648 \\u0648\\u062E\\u062A",date:"\\u0646\\u06D0\\u067C\\u0647",time:"\\u0648\\u062E\\u062A",duration:"\\u0645\\u0648\\u062F\\u0647",ipv4:"\\u062F IPv4 \\u067E\\u062A\\u0647",ipv6:"\\u062F IPv6 \\u067E\\u062A\\u0647",cidrv4:"\\u062F IPv4 \\u0633\\u0627\\u062D\\u0647",cidrv6:"\\u062F IPv6 \\u0633\\u0627\\u062D\\u0647",base64:"base64-encoded \\u0645\\u062A\\u0646",base64url:"base64url-encoded \\u0645\\u062A\\u0646",json_string:"JSON \\u0645\\u062A\\u0646",e164:"\\u062F E.164 \\u0634\\u0645\\u06D0\\u0631\\u0647",jwt:"JWT",template_literal:"\\u0648\\u0631\\u0648\\u062F\\u064A"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ".concat(t.expected," \\u0648\\u0627\\u06CC, \\u0645\\u06AB\\u0631 ").concat(n(t.input)," \\u062A\\u0631\\u0644\\u0627\\u0633\\u0647 \\u0634\\u0648");case"invalid_value":return t.values.length===1?"\\u0646\\u0627\\u0633\\u0645 \\u0648\\u0631\\u0648\\u062F\\u064A: \\u0628\\u0627\\u06CC\\u062F ".concat(b(t.values[0])," \\u0648\\u0627\\u06CC"):"\\u0646\\u0627\\u0633\\u0645 \\u0627\\u0646\\u062A\\u062E\\u0627\\u0628: \\u0628\\u0627\\u06CC\\u062F \\u06CC\\u0648 \\u0644\\u0647 ".concat(p(t.values,"|")," \\u0685\\u062E\\u0647 \\u0648\\u0627\\u06CC");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ".concat((o=t.origin)!=null?o:"\\u0627\\u0631\\u0632\\u069A\\u062A"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0635\\u0631\\u0648\\u0646\\u0647"," \\u0648\\u0644\\u0631\\u064A"):"\\u0689\\u06CC\\u0631 \\u0644\\u0648\\u06CC: ".concat((s=t.origin)!=null?s:"\\u0627\\u0631\\u0632\\u069A\\u062A"," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.maximum.toString()," \\u0648\\u064A")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u0648\\u0644\\u0631\\u064A"):"\\u0689\\u06CC\\u0631 \\u06A9\\u0648\\u0686\\u0646\\u06CC: ".concat(t.origin," \\u0628\\u0627\\u06CC\\u062F ").concat(a).concat(t.minimum.toString()," \\u0648\\u064A")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "\'.concat(a.prefix,\'" \\u0633\\u0631\\u0647 \\u067E\\u06CC\\u0644 \\u0634\\u064A\'):a.format==="ends_with"?\'\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F "\'.concat(a.suffix,\'" \\u0633\\u0631\\u0647 \\u067E\\u0627\\u06CC \\u062A\\u0647 \\u0648\\u0631\\u0633\\u064A\\u0696\\u064A\'):a.format==="includes"?\'\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F "\'.concat(a.includes,\'" \\u0648\\u0644\\u0631\\u064A\'):a.format==="regex"?"\\u0646\\u0627\\u0633\\u0645 \\u0645\\u062A\\u0646: \\u0628\\u0627\\u06CC\\u062F \\u062F ".concat(a.pattern," \\u0633\\u0631\\u0647 \\u0645\\u0637\\u0627\\u0628\\u0642\\u062A \\u0648\\u0644\\u0631\\u064A"):"".concat((c=i[a.format])!=null?c:t.format," \\u0646\\u0627\\u0633\\u0645 \\u062F\\u06CC")}case"not_multiple_of":return"\\u0646\\u0627\\u0633\\u0645 \\u0639\\u062F\\u062F: \\u0628\\u0627\\u06CC\\u062F \\u062F ".concat(t.divisor," \\u0645\\u0636\\u0631\\u0628 \\u0648\\u064A");case"unrecognized_keys":return"\\u0646\\u0627\\u0633\\u0645 ".concat(t.keys.length>1?"\\u06A9\\u0644\\u06CC\\u0689\\u0648\\u0646\\u0647":"\\u06A9\\u0644\\u06CC\\u0689",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u0646\\u0627\\u0633\\u0645 \\u06A9\\u0644\\u06CC\\u0689 \\u067E\\u0647 ".concat(t.origin," \\u06A9\\u06D0");case"invalid_union":return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A";case"invalid_element":return"\\u0646\\u0627\\u0633\\u0645 \\u0639\\u0646\\u0635\\u0631 \\u067E\\u0647 ".concat(t.origin," \\u06A9\\u06D0");default:return"\\u0646\\u0627\\u0633\\u0645\\u0647 \\u0648\\u0631\\u0648\\u062F\\u064A"}}};function ic(){return{localeError:ad()}}var ud=()=>{let e={string:{unit:"znak\\xF3w",verb:"mie\\u0107"},file:{unit:"bajt\\xF3w",verb:"mie\\u0107"},array:{unit:"element\\xF3w",verb:"mie\\u0107"},set:{unit:"element\\xF3w",verb:"mie\\u0107"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"wyra\\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\\u0105g znak\\xF3w zakodowany w formacie base64",base64url:"ci\\u0105g znak\\xF3w zakodowany w formacie base64url",json_string:"ci\\u0105g znak\\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\\u015Bcie"};return t=>{var o,u,s,c,a,l,v;switch(t.code){case"invalid_type":return"Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ".concat(t.expected,", otrzymano ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Nieprawid\\u0142owe dane wej\\u015Bciowe: oczekiwano ".concat(b(t.values[0])):"Nieprawid\\u0142owa opcja: oczekiwano jednej z warto\\u015Bci ".concat(p(t.values,"|"));case"too_big":{let f=t.inclusive?"<=":"<",h=r(t.origin);return h?"Za du\\u017Ca warto\\u015B\\u0107: oczekiwano, \\u017Ce ".concat((o=t.origin)!=null?o:"warto\\u015B\\u0107"," b\\u0119dzie mie\\u0107 ").concat(f).concat(t.maximum.toString()," ").concat((u=h.unit)!=null?u:"element\\xF3w"):"Zbyt du\\u017C(y/a/e): oczekiwano, \\u017Ce ".concat((s=t.origin)!=null?s:"warto\\u015B\\u0107"," b\\u0119dzie wynosi\\u0107 ").concat(f).concat(t.maximum.toString())}case"too_small":{let f=t.inclusive?">=":">",h=r(t.origin);return h?"Za ma\\u0142a warto\\u015B\\u0107: oczekiwano, \\u017Ce ".concat((c=t.origin)!=null?c:"warto\\u015B\\u0107"," b\\u0119dzie mie\\u0107 ").concat(f).concat(t.minimum.toString()," ").concat((a=h.unit)!=null?a:"element\\xF3w"):"Zbyt ma\\u0142(y/a/e): oczekiwano, \\u017Ce ".concat((l=t.origin)!=null?l:"warto\\u015B\\u0107"," b\\u0119dzie wynosi\\u0107 ").concat(f).concat(t.minimum.toString())}case"invalid_format":{let f=t;return f.format==="starts_with"?\'Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zaczyna\\u0107 si\\u0119 od "\'.concat(f.prefix,\'"\'):f.format==="ends_with"?\'Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi ko\\u0144czy\\u0107 si\\u0119 na "\'.concat(f.suffix,\'"\'):f.format==="includes"?\'Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi zawiera\\u0107 "\'.concat(f.includes,\'"\'):f.format==="regex"?"Nieprawid\\u0142owy ci\\u0105g znak\\xF3w: musi odpowiada\\u0107 wzorcowi ".concat(f.pattern):"Nieprawid\\u0142ow(y/a/e) ".concat((v=i[f.format])!=null?v:t.format)}case"not_multiple_of":return"Nieprawid\\u0142owa liczba: musi by\\u0107 wielokrotno\\u015Bci\\u0105 ".concat(t.divisor);case"unrecognized_keys":return"Nierozpoznane klucze".concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Nieprawid\\u0142owy klucz w ".concat(t.origin);case"invalid_union":return"Nieprawid\\u0142owe dane wej\\u015Bciowe";case"invalid_element":return"Nieprawid\\u0142owa warto\\u015B\\u0107 w ".concat(t.origin);default:return"Nieprawid\\u0142owe dane wej\\u015Bciowe"}}};function oc(){return{localeError:ud()}}var cd=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\\xFAmero";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"padr\\xE3o",email:"endere\\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\\xE7\\xE3o ISO",ipv4:"endere\\xE7o IPv4",ipv6:"endere\\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\\xFAmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Tipo inv\\xE1lido: esperado ".concat(t.expected,", recebido ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Entrada inv\\xE1lida: esperado ".concat(b(t.values[0])):"Op\\xE7\\xE3o inv\\xE1lida: esperada uma das ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Muito grande: esperado que ".concat((o=t.origin)!=null?o:"valor"," tivesse ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementos"):"Muito grande: esperado que ".concat((s=t.origin)!=null?s:"valor"," fosse ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Muito pequeno: esperado que ".concat(t.origin," tivesse ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Muito pequeno: esperado que ".concat(t.origin," fosse ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Texto inv\\xE1lido: deve come\\xE7ar com "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Texto inv\\xE1lido: deve terminar com "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Texto inv\\xE1lido: deve incluir "\'.concat(a.includes,\'"\'):a.format==="regex"?"Texto inv\\xE1lido: deve corresponder ao padr\\xE3o ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," inv\\xE1lido")}case"not_multiple_of":return"N\\xFAmero inv\\xE1lido: deve ser m\\xFAltiplo de ".concat(t.divisor);case"unrecognized_keys":return"Chave".concat(t.keys.length>1?"s":""," desconhecida").concat(t.keys.length>1?"s":"",": ").concat(p(t.keys,", "));case"invalid_key":return"Chave inv\\xE1lida em ".concat(t.origin);case"invalid_union":return"Entrada inv\\xE1lida";case"invalid_element":return"Valor inv\\xE1lido em ".concat(t.origin);default:return"Campo inv\\xE1lido"}}};function ac(){return{localeError:cd()}}function uc(e,r,n,i){let t=Math.abs(e),o=t%10,u=t%100;return u>=11&&u<=19?i:o===1?r:o>=2&&o<=4?n:i}var sd=()=>{let e={string:{unit:{one:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B",few:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0430",many:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},file:{unit:{one:"\\u0431\\u0430\\u0439\\u0442",few:"\\u0431\\u0430\\u0439\\u0442\\u0430",many:"\\u0431\\u0430\\u0439\\u0442"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},array:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"},set:{unit:{one:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442",few:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0430",many:"\\u044D\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u043E\\u0432"},verb:"\\u0438\\u043C\\u0435\\u0442\\u044C"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0447\\u0438\\u0441\\u043B\\u043E";case"object":{if(Array.isArray(t))return"\\u043C\\u0430\\u0441\\u0441\\u0438\\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0432\\u0432\\u043E\\u0434",email:"email \\u0430\\u0434\\u0440\\u0435\\u0441",url:"URL",emoji:"\\u044D\\u043C\\u043E\\u0434\\u0437\\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0434\\u0430\\u0442\\u0430 \\u0438 \\u0432\\u0440\\u0435\\u043C\\u044F",date:"ISO \\u0434\\u0430\\u0442\\u0430",time:"ISO \\u0432\\u0440\\u0435\\u043C\\u044F",duration:"ISO \\u0434\\u043B\\u0438\\u0442\\u0435\\u043B\\u044C\\u043D\\u043E\\u0441\\u0442\\u044C",ipv4:"IPv4 \\u0430\\u0434\\u0440\\u0435\\u0441",ipv6:"IPv6 \\u0430\\u0434\\u0440\\u0435\\u0441",cidrv4:"IPv4 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",cidrv6:"IPv6 \\u0434\\u0438\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D",base64:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64",base64url:"\\u0441\\u0442\\u0440\\u043E\\u043A\\u0430 \\u0432 \\u0444\\u043E\\u0440\\u043C\\u0430\\u0442\\u0435 base64url",json_string:"JSON \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",jwt:"JWT",template_literal:"\\u0432\\u0432\\u043E\\u0434"};return t=>{var o,u,s;switch(t.code){case"invalid_type":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ".concat(t.expected,", \\u043F\\u043E\\u043B\\u0443\\u0447\\u0435\\u043D\\u043E ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0432\\u043E\\u0434: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C ".concat(b(t.values[0])):"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u0432\\u0430\\u0440\\u0438\\u0430\\u043D\\u0442: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C \\u043E\\u0434\\u043D\\u043E \\u0438\\u0437 ".concat(p(t.values,"|"));case"too_big":{let c=t.inclusive?"<=":"<",a=r(t.origin);if(a){let l=Number(t.maximum),v=uc(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat((o=t.origin)!=null?o:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"," \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ").concat(c).concat(t.maximum.toString()," ").concat(v)}return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u0431\\u043E\\u043B\\u044C\\u0448\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat((u=t.origin)!=null?u:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435"," \\u0431\\u0443\\u0434\\u0435\\u0442 ").concat(c).concat(t.maximum.toString())}case"too_small":{let c=t.inclusive?">=":">",a=r(t.origin);if(a){let l=Number(t.minimum),v=uc(l,a.unit.one,a.unit.few,a.unit.many);return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat(t.origin," \\u0431\\u0443\\u0434\\u0435\\u0442 \\u0438\\u043C\\u0435\\u0442\\u044C ").concat(c).concat(t.minimum.toString()," ").concat(v)}return"\\u0421\\u043B\\u0438\\u0448\\u043A\\u043E\\u043C \\u043C\\u0430\\u043B\\u0435\\u043D\\u044C\\u043A\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435: \\u043E\\u0436\\u0438\\u0434\\u0430\\u043B\\u043E\\u0441\\u044C, \\u0447\\u0442\\u043E ".concat(t.origin," \\u0431\\u0443\\u0434\\u0435\\u0442 ").concat(c).concat(t.minimum.toString())}case"invalid_format":{let c=t;return c.format==="starts_with"?\'\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u043D\\u0430\\u0447\\u0438\\u043D\\u0430\\u0442\\u044C\\u0441\\u044F \\u0441 "\'.concat(c.prefix,\'"\'):c.format==="ends_with"?\'\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0437\\u0430\\u043A\\u0430\\u043D\\u0447\\u0438\\u0432\\u0430\\u0442\\u044C\\u0441\\u044F \\u043D\\u0430 "\'.concat(c.suffix,\'"\'):c.format==="includes"?\'\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u0434\\u0435\\u0440\\u0436\\u0430\\u0442\\u044C "\'.concat(c.includes,\'"\'):c.format==="regex"?"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u0430\\u044F \\u0441\\u0442\\u0440\\u043E\\u043A\\u0430: \\u0434\\u043E\\u043B\\u0436\\u043D\\u0430 \\u0441\\u043E\\u043E\\u0442\\u0432\\u0435\\u0442\\u0441\\u0442\\u0432\\u043E\\u0432\\u0430\\u0442\\u044C \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ".concat(c.pattern):"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 ".concat((s=i[c.format])!=null?s:t.format)}case"not_multiple_of":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u0434\\u043E\\u043B\\u0436\\u043D\\u043E \\u0431\\u044B\\u0442\\u044C \\u043A\\u0440\\u0430\\u0442\\u043D\\u044B\\u043C ".concat(t.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u0430\\u0441\\u043F\\u043E\\u0437\\u043D\\u0430\\u043D\\u043D".concat(t.keys.length>1?"\\u044B\\u0435":"\\u044B\\u0439"," \\u043A\\u043B\\u044E\\u0447").concat(t.keys.length>1?"\\u0438":"",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0432 ".concat(t.origin);case"invalid_union":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435";case"invalid_element":return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u043E\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u0438\\u0435 \\u0432 ".concat(t.origin);default:return"\\u041D\\u0435\\u0432\\u0435\\u0440\\u043D\\u044B\\u0435 \\u0432\\u0445\\u043E\\u0434\\u043D\\u044B\\u0435 \\u0434\\u0430\\u043D\\u043D\\u044B\\u0435"}}};function cc(){return{localeError:sd()}}var ld=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0161tevilo";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"vnos",email:"e-po\\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \\u010Das",date:"ISO datum",time:"ISO \\u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \\u0161tevilka",jwt:"JWT",template_literal:"vnos"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"Neveljaven vnos: pri\\u010Dakovano ".concat(t.expected,", prejeto ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Neveljaven vnos: pri\\u010Dakovano ".concat(b(t.values[0])):"Neveljavna mo\\u017Enost: pri\\u010Dakovano eno izmed ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Preveliko: pri\\u010Dakovano, da bo ".concat((o=t.origin)!=null?o:"vrednost"," imelo ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"elementov"):"Preveliko: pri\\u010Dakovano, da bo ".concat((s=t.origin)!=null?s:"vrednost"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Premajhno: pri\\u010Dakovano, da bo ".concat(t.origin," imelo ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Premajhno: pri\\u010Dakovano, da bo ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Neveljaven niz: mora se za\\u010Deti z "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Neveljaven niz: mora se kon\\u010Dati z "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Neveljaven niz: mora vsebovati "\'.concat(a.includes,\'"\'):a.format==="regex"?"Neveljaven niz: mora ustrezati vzorcu ".concat(a.pattern):"Neveljaven ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"Neveljavno \\u0161tevilo: mora biti ve\\u010Dkratnik ".concat(t.divisor);case"unrecognized_keys":return"Neprepoznan".concat(t.keys.length>1?"i klju\\u010Di":" klju\\u010D",": ").concat(p(t.keys,", "));case"invalid_key":return"Neveljaven klju\\u010D v ".concat(t.origin);case"invalid_union":return"Neveljaven vnos";case"invalid_element":return"Neveljavna vrednost v ".concat(t.origin);default:return"Neveljaven vnos"}}};function sc(){return{localeError:ld()}}var dd=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\\xE5lla"},set:{unit:"objekt",verb:"att inneh\\xE5lla"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"regulj\\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\\xE4ng",base64url:"base64url-kodad str\\xE4ng",json_string:"JSON-str\\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{var o,u,s,c,a,l,v,f;switch(t.code){case"invalid_type":return"Ogiltig inmatning: f\\xF6rv\\xE4ntat ".concat(t.expected,", fick ").concat(n(t.input));case"invalid_value":return t.values.length===1?"Ogiltig inmatning: f\\xF6rv\\xE4ntat ".concat(b(t.values[0])):"Ogiltigt val: f\\xF6rv\\xE4ntade en av ".concat(p(t.values,"|"));case"too_big":{let h=t.inclusive?"<=":"<",x=r(t.origin);return x?"F\\xF6r stor(t): f\\xF6rv\\xE4ntade ".concat((o=t.origin)!=null?o:"v\\xE4rdet"," att ha ").concat(h).concat(t.maximum.toString()," ").concat((u=x.unit)!=null?u:"element"):"F\\xF6r stor(t): f\\xF6rv\\xE4ntat ".concat((s=t.origin)!=null?s:"v\\xE4rdet"," att ha ").concat(h).concat(t.maximum.toString())}case"too_small":{let h=t.inclusive?">=":">",x=r(t.origin);return x?"F\\xF6r lite(t): f\\xF6rv\\xE4ntade ".concat((c=t.origin)!=null?c:"v\\xE4rdet"," att ha ").concat(h).concat(t.minimum.toString()," ").concat(x.unit):"F\\xF6r lite(t): f\\xF6rv\\xE4ntade ".concat((a=t.origin)!=null?a:"v\\xE4rdet"," att ha ").concat(h).concat(t.minimum.toString())}case"invalid_format":{let h=t;return h.format==="starts_with"?\'Ogiltig str\\xE4ng: m\\xE5ste b\\xF6rja med "\'.concat(h.prefix,\'"\'):h.format==="ends_with"?\'Ogiltig str\\xE4ng: m\\xE5ste sluta med "\'.concat(h.suffix,\'"\'):h.format==="includes"?\'Ogiltig str\\xE4ng: m\\xE5ste inneh\\xE5lla "\'.concat(h.includes,\'"\'):h.format==="regex"?\'Ogiltig str\\xE4ng: m\\xE5ste matcha m\\xF6nstret "\'.concat(h.pattern,\'"\'):"Ogiltig(t) ".concat((l=i[h.format])!=null?l:t.format)}case"not_multiple_of":return"Ogiltigt tal: m\\xE5ste vara en multipel av ".concat(t.divisor);case"unrecognized_keys":return"".concat(t.keys.length>1?"Ok\\xE4nda nycklar":"Ok\\xE4nd nyckel",": ").concat(p(t.keys,", "));case"invalid_key":return"Ogiltig nyckel i ".concat((v=t.origin)!=null?v:"v\\xE4rdet");case"invalid_union":return"Ogiltig input";case"invalid_element":return"Ogiltigt v\\xE4rde i ".concat((f=t.origin)!=null?f:"v\\xE4rdet");default:return"Ogiltig input"}}};function lc(){return{localeError:dd()}}var md=()=>{let e={string:{unit:"\\u0B8E\\u0BB4\\u0BC1\\u0BA4\\u0BCD\\u0BA4\\u0BC1\\u0B95\\u0BCD\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},file:{unit:"\\u0BAA\\u0BC8\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},array:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"},set:{unit:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD",verb:"\\u0B95\\u0BCA\\u0BA3\\u0BCD\\u0B9F\\u0BBF\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u0B8E\\u0BA3\\u0BCD \\u0B85\\u0BB2\\u0BCD\\u0BB2\\u0BBE\\u0BA4\\u0BA4\\u0BC1":"\\u0B8E\\u0BA3\\u0BCD";case"object":{if(Array.isArray(t))return"\\u0B85\\u0BA3\\u0BBF";if(t===null)return"\\u0BB5\\u0BC6\\u0BB1\\u0BC1\\u0BAE\\u0BC8";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1",email:"\\u0BAE\\u0BBF\\u0BA9\\u0BCD\\u0BA9\\u0B9E\\u0BCD\\u0B9A\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",date:"ISO \\u0BA4\\u0BC7\\u0BA4\\u0BBF",time:"ISO \\u0BA8\\u0BC7\\u0BB0\\u0BAE\\u0BCD",duration:"ISO \\u0B95\\u0BBE\\u0BB2 \\u0B85\\u0BB3\\u0BB5\\u0BC1",ipv4:"IPv4 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",ipv6:"IPv6 \\u0BAE\\u0BC1\\u0B95\\u0BB5\\u0BB0\\u0BBF",cidrv4:"IPv4 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",cidrv6:"IPv6 \\u0BB5\\u0BB0\\u0BAE\\u0BCD\\u0BAA\\u0BC1",base64:"base64-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",base64url:"base64url-encoded \\u0B9A\\u0BB0\\u0BAE\\u0BCD",json_string:"JSON \\u0B9A\\u0BB0\\u0BAE\\u0BCD",e164:"E.164 \\u0B8E\\u0BA3\\u0BCD",jwt:"JWT",template_literal:"input"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(t.expected,", \\u0BAA\\u0BC6\\u0BB1\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(b(t.values[0])):"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0BB0\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BAE\\u0BCD: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(p(t.values,"|")," \\u0B87\\u0BB2\\u0BCD \\u0B92\\u0BA9\\u0BCD\\u0BB1\\u0BC1");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat((o=t.origin)!=null?o:"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0B89\\u0BB1\\u0BC1\\u0BAA\\u0BCD\\u0BAA\\u0BC1\\u0B95\\u0BB3\\u0BCD"," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"):"\\u0BAE\\u0BBF\\u0B95 \\u0BAA\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat((s=t.origin)!=null?s:"\\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1"," ").concat(a).concat(t.maximum.toString()," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"):"\\u0BAE\\u0BBF\\u0B95\\u0B9A\\u0BCD \\u0B9A\\u0BBF\\u0BB1\\u0BBF\\u0BAF\\u0BA4\\u0BC1: \\u0B8E\\u0BA4\\u0BBF\\u0BB0\\u0BCD\\u0BAA\\u0BBE\\u0BB0\\u0BCD\\u0B95\\u0BCD\\u0B95\\u0BAA\\u0BCD\\u0BAA\\u0B9F\\u0BCD\\u0B9F\\u0BA4\\u0BC1 ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," \\u0B86\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "\'.concat(a.prefix,\'" \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BCA\\u0B9F\\u0B99\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD\'):a.format==="ends_with"?\'\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "\'.concat(a.suffix,\'" \\u0B87\\u0BB2\\u0BCD \\u0BAE\\u0BC1\\u0B9F\\u0BBF\\u0BB5\\u0B9F\\u0BC8\\u0BAF \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD\'):a.format==="includes"?\'\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: "\'.concat(a.includes,\'" \\u0B90 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0B9F\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD\'):a.format==="regex"?"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B9A\\u0BB0\\u0BAE\\u0BCD: ".concat(a.pattern," \\u0BAE\\u0BC1\\u0BB1\\u0BC8\\u0BAA\\u0BBE\\u0B9F\\u0BCD\\u0B9F\\u0BC1\\u0B9F\\u0BA9\\u0BCD \\u0BAA\\u0BCA\\u0BB0\\u0BC1\\u0BA8\\u0BCD\\u0BA4 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD"):"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B8E\\u0BA3\\u0BCD: ".concat(t.divisor," \\u0B87\\u0BA9\\u0BCD \\u0BAA\\u0BB2\\u0BAE\\u0BBE\\u0B95 \\u0B87\\u0BB0\\u0BC1\\u0B95\\u0BCD\\u0B95 \\u0BB5\\u0BC7\\u0BA3\\u0BCD\\u0B9F\\u0BC1\\u0BAE\\u0BCD");case"unrecognized_keys":return"\\u0B85\\u0B9F\\u0BC8\\u0BAF\\u0BBE\\u0BB3\\u0BAE\\u0BCD \\u0BA4\\u0BC6\\u0BB0\\u0BBF\\u0BAF\\u0BBE\\u0BA4 \\u0BB5\\u0BBF\\u0B9A\\u0BC8".concat(t.keys.length>1?"\\u0B95\\u0BB3\\u0BCD":"",": ").concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BB5\\u0BBF\\u0B9A\\u0BC8");case"invalid_union":return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1";case"invalid_element":return"".concat(t.origin," \\u0B87\\u0BB2\\u0BCD \\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0BAE\\u0BA4\\u0BBF\\u0BAA\\u0BCD\\u0BAA\\u0BC1");default:return"\\u0BA4\\u0BB5\\u0BB1\\u0BBE\\u0BA9 \\u0B89\\u0BB3\\u0BCD\\u0BB3\\u0BC0\\u0B9F\\u0BC1"}}};function dc(){return{localeError:md()}}var fd=()=>{let e={string:{unit:"\\u0E15\\u0E31\\u0E27\\u0E2D\\u0E31\\u0E01\\u0E29\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},file:{unit:"\\u0E44\\u0E1A\\u0E15\\u0E4C",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},array:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"},set:{unit:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23",verb:"\\u0E04\\u0E27\\u0E23\\u0E21\\u0E35"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u0E44\\u0E21\\u0E48\\u0E43\\u0E0A\\u0E48\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02 (NaN)":"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02";case"object":{if(Array.isArray(t))return"\\u0E2D\\u0E32\\u0E23\\u0E4C\\u0E40\\u0E23\\u0E22\\u0E4C (Array)";if(t===null)return"\\u0E44\\u0E21\\u0E48\\u0E21\\u0E35\\u0E04\\u0E48\\u0E32 (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19",email:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48\\u0E2D\\u0E35\\u0E40\\u0E21\\u0E25",url:"URL",emoji:"\\u0E2D\\u0E34\\u0E42\\u0E21\\u0E08\\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",date:"\\u0E27\\u0E31\\u0E19\\u0E17\\u0E35\\u0E48\\u0E41\\u0E1A\\u0E1A ISO",time:"\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",duration:"\\u0E0A\\u0E48\\u0E27\\u0E07\\u0E40\\u0E27\\u0E25\\u0E32\\u0E41\\u0E1A\\u0E1A ISO",ipv4:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv4",ipv6:"\\u0E17\\u0E35\\u0E48\\u0E2D\\u0E22\\u0E39\\u0E48 IPv6",cidrv4:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv4",cidrv6:"\\u0E0A\\u0E48\\u0E27\\u0E07 IP \\u0E41\\u0E1A\\u0E1A IPv6",base64:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64",base64url:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A Base64 \\u0E2A\\u0E33\\u0E2B\\u0E23\\u0E31\\u0E1A URL",json_string:"\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E41\\u0E1A\\u0E1A JSON",e164:"\\u0E40\\u0E1A\\u0E2D\\u0E23\\u0E4C\\u0E42\\u0E17\\u0E23\\u0E28\\u0E31\\u0E1E\\u0E17\\u0E4C\\u0E23\\u0E30\\u0E2B\\u0E27\\u0E48\\u0E32\\u0E07\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E17\\u0E28 (E.164)",jwt:"\\u0E42\\u0E17\\u0E40\\u0E04\\u0E19 JWT",template_literal:"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E17\\u0E35\\u0E48\\u0E1B\\u0E49\\u0E2D\\u0E19"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0E1B\\u0E23\\u0E30\\u0E40\\u0E20\\u0E17\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ".concat(t.expected," \\u0E41\\u0E15\\u0E48\\u0E44\\u0E14\\u0E49\\u0E23\\u0E31\\u0E1A ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0E04\\u0E48\\u0E32\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19 ".concat(b(t.values[0])):"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E37\\u0E2D\\u0E01\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E04\\u0E27\\u0E23\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E2B\\u0E19\\u0E36\\u0E48\\u0E07\\u0E43\\u0E19 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"\\u0E44\\u0E21\\u0E48\\u0E40\\u0E01\\u0E34\\u0E19":"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32",l=r(t.origin);return l?"\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat((o=t.origin)!=null?o:"\\u0E04\\u0E48\\u0E32"," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0E23\\u0E32\\u0E22\\u0E01\\u0E32\\u0E23"):"\\u0E40\\u0E01\\u0E34\\u0E19\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat((s=t.origin)!=null?s:"\\u0E04\\u0E48\\u0E32"," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?"\\u0E2D\\u0E22\\u0E48\\u0E32\\u0E07\\u0E19\\u0E49\\u0E2D\\u0E22":"\\u0E21\\u0E32\\u0E01\\u0E01\\u0E27\\u0E48\\u0E32",l=r(t.origin);return l?"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat(t.origin," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.minimum.toString()," ").concat(l.unit):"\\u0E19\\u0E49\\u0E2D\\u0E22\\u0E01\\u0E27\\u0E48\\u0E32\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14: ".concat(t.origin," \\u0E04\\u0E27\\u0E23\\u0E21\\u0E35").concat(a," ").concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E02\\u0E36\\u0E49\\u0E19\\u0E15\\u0E49\\u0E19\\u0E14\\u0E49\\u0E27\\u0E22 "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E25\\u0E07\\u0E17\\u0E49\\u0E32\\u0E22\\u0E14\\u0E49\\u0E27\\u0E22 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E21\\u0E35 "\'.concat(a.includes,\'" \\u0E2D\\u0E22\\u0E39\\u0E48\\u0E43\\u0E19\\u0E02\\u0E49\\u0E2D\\u0E04\\u0E27\\u0E32\\u0E21\'):a.format==="regex"?"\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14 ".concat(a.pattern):"\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u0E15\\u0E31\\u0E27\\u0E40\\u0E25\\u0E02\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E15\\u0E49\\u0E2D\\u0E07\\u0E40\\u0E1B\\u0E47\\u0E19\\u0E08\\u0E33\\u0E19\\u0E27\\u0E19\\u0E17\\u0E35\\u0E48\\u0E2B\\u0E32\\u0E23\\u0E14\\u0E49\\u0E27\\u0E22 ".concat(t.divisor," \\u0E44\\u0E14\\u0E49\\u0E25\\u0E07\\u0E15\\u0E31\\u0E27");case"unrecognized_keys":return"\\u0E1E\\u0E1A\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E17\\u0E35\\u0E48\\u0E44\\u0E21\\u0E48\\u0E23\\u0E39\\u0E49\\u0E08\\u0E31\\u0E01: ".concat(p(t.keys,", "));case"invalid_key":return"\\u0E04\\u0E35\\u0E22\\u0E4C\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ".concat(t.origin);case"invalid_union":return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07: \\u0E44\\u0E21\\u0E48\\u0E15\\u0E23\\u0E07\\u0E01\\u0E31\\u0E1A\\u0E23\\u0E39\\u0E1B\\u0E41\\u0E1A\\u0E1A\\u0E22\\u0E39\\u0E40\\u0E19\\u0E35\\u0E22\\u0E19\\u0E17\\u0E35\\u0E48\\u0E01\\u0E33\\u0E2B\\u0E19\\u0E14\\u0E44\\u0E27\\u0E49";case"invalid_element":return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07\\u0E43\\u0E19 ".concat(t.origin);default:return"\\u0E02\\u0E49\\u0E2D\\u0E21\\u0E39\\u0E25\\u0E44\\u0E21\\u0E48\\u0E16\\u0E39\\u0E01\\u0E15\\u0E49\\u0E2D\\u0E07"}}};function mc(){return{localeError:fd()}}var pd=e=>{let r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},gd=()=>{let e={string:{unit:"karakter",verb:"olmal\\u0131"},file:{unit:"bayt",verb:"olmal\\u0131"},array:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"},set:{unit:"\\xF6\\u011Fe",verb:"olmal\\u0131"}};function r(i){var t;return(t=e[i])!=null?t:null}let n={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\\u0131\\u011F\\u0131",cidrv6:"IPv6 aral\\u0131\\u011F\\u0131",base64:"base64 ile \\u015Fifrelenmi\\u015F metin",base64url:"base64url ile \\u015Fifrelenmi\\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\\u0131s\\u0131",jwt:"JWT",template_literal:"\\u015Eablon dizesi"};return i=>{var t,o,u,s;switch(i.code){case"invalid_type":return"Ge\\xE7ersiz de\\u011Fer: beklenen ".concat(i.expected,", al\\u0131nan ").concat(pd(i.input));case"invalid_value":return i.values.length===1?"Ge\\xE7ersiz de\\u011Fer: beklenen ".concat(b(i.values[0])):"Ge\\xE7ersiz se\\xE7enek: a\\u015Fa\\u011F\\u0131dakilerden biri olmal\\u0131: ".concat(p(i.values,"|"));case"too_big":{let c=i.inclusive?"<=":"<",a=r(i.origin);return a?"\\xC7ok b\\xFCy\\xFCk: beklenen ".concat((t=i.origin)!=null?t:"de\\u011Fer"," ").concat(c).concat(i.maximum.toString()," ").concat((o=a.unit)!=null?o:"\\xF6\\u011Fe"):"\\xC7ok b\\xFCy\\xFCk: beklenen ".concat((u=i.origin)!=null?u:"de\\u011Fer"," ").concat(c).concat(i.maximum.toString())}case"too_small":{let c=i.inclusive?">=":">",a=r(i.origin);return a?"\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ".concat(i.origin," ").concat(c).concat(i.minimum.toString()," ").concat(a.unit):"\\xC7ok k\\xFC\\xE7\\xFCk: beklenen ".concat(i.origin," ").concat(c).concat(i.minimum.toString())}case"invalid_format":{let c=i;return c.format==="starts_with"?\'Ge\\xE7ersiz metin: "\'.concat(c.prefix,\'" ile ba\\u015Flamal\\u0131\'):c.format==="ends_with"?\'Ge\\xE7ersiz metin: "\'.concat(c.suffix,\'" ile bitmeli\'):c.format==="includes"?\'Ge\\xE7ersiz metin: "\'.concat(c.includes,\'" i\\xE7ermeli\'):c.format==="regex"?"Ge\\xE7ersiz metin: ".concat(c.pattern," desenine uymal\\u0131"):"Ge\\xE7ersiz ".concat((s=n[c.format])!=null?s:i.format)}case"not_multiple_of":return"Ge\\xE7ersiz say\\u0131: ".concat(i.divisor," ile tam b\\xF6l\\xFCnebilmeli");case"unrecognized_keys":return"Tan\\u0131nmayan anahtar".concat(i.keys.length>1?"lar":"",": ").concat(p(i.keys,", "));case"invalid_key":return"".concat(i.origin," i\\xE7inde ge\\xE7ersiz anahtar");case"invalid_union":return"Ge\\xE7ersiz de\\u011Fer";case"invalid_element":return"".concat(i.origin," i\\xE7inde ge\\xE7ersiz de\\u011Fer");default:return"Ge\\xE7ersiz de\\u011Fer"}}};function fc(){return{localeError:gd()}}var vd=()=>{let e={string:{unit:"\\u0441\\u0438\\u043C\\u0432\\u043E\\u043B\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},file:{unit:"\\u0431\\u0430\\u0439\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},array:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"},set:{unit:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432",verb:"\\u043C\\u0430\\u0442\\u0438\\u043C\\u0435"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0447\\u0438\\u0441\\u043B\\u043E";case"object":{if(Array.isArray(t))return"\\u043C\\u0430\\u0441\\u0438\\u0432";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456",email:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 \\u0435\\u043B\\u0435\\u043A\\u0442\\u0440\\u043E\\u043D\\u043D\\u043E\\u0457 \\u043F\\u043E\\u0448\\u0442\\u0438",url:"URL",emoji:"\\u0435\\u043C\\u043E\\u0434\\u0437\\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\u0434\\u0430\\u0442\\u0430 \\u0442\\u0430 \\u0447\\u0430\\u0441 ISO",date:"\\u0434\\u0430\\u0442\\u0430 ISO",time:"\\u0447\\u0430\\u0441 ISO",duration:"\\u0442\\u0440\\u0438\\u0432\\u0430\\u043B\\u0456\\u0441\\u0442\\u044C ISO",ipv4:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv4",ipv6:"\\u0430\\u0434\\u0440\\u0435\\u0441\\u0430 IPv6",cidrv4:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv4",cidrv6:"\\u0434\\u0456\\u0430\\u043F\\u0430\\u0437\\u043E\\u043D IPv6",base64:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64",base64url:"\\u0440\\u044F\\u0434\\u043E\\u043A \\u0443 \\u043A\\u043E\\u0434\\u0443\\u0432\\u0430\\u043D\\u043D\\u0456 base64url",json_string:"\\u0440\\u044F\\u0434\\u043E\\u043A JSON",e164:"\\u043D\\u043E\\u043C\\u0435\\u0440 E.164",jwt:"JWT",template_literal:"\\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ".concat(t.expected,", \\u043E\\u0442\\u0440\\u0438\\u043C\\u0430\\u043D\\u043E ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F ".concat(b(t.values[0])):"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0430 \\u043E\\u043F\\u0446\\u0456\\u044F: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F \\u043E\\u0434\\u043D\\u0435 \\u0437 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat((o=t.origin)!=null?o:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"," ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0435\\u043B\\u0435\\u043C\\u0435\\u043D\\u0442\\u0456\\u0432"):"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u0432\\u0435\\u043B\\u0438\\u043A\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat((s=t.origin)!=null?s:"\\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F"," \\u0431\\u0443\\u0434\\u0435 ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat(t.origin," ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u0417\\u0430\\u043D\\u0430\\u0434\\u0442\\u043E \\u043C\\u0430\\u043B\\u0435: \\u043E\\u0447\\u0456\\u043A\\u0443\\u0454\\u0442\\u044C\\u0441\\u044F, \\u0449\\u043E ".concat(t.origin," \\u0431\\u0443\\u0434\\u0435 ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043F\\u043E\\u0447\\u0438\\u043D\\u0430\\u0442\\u0438\\u0441\\u044F \\u0437 "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0437\\u0430\\u043A\\u0456\\u043D\\u0447\\u0443\\u0432\\u0430\\u0442\\u0438\\u0441\\u044F \\u043D\\u0430 "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u043C\\u0456\\u0441\\u0442\\u0438\\u0442\\u0438 "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u0440\\u044F\\u0434\\u043E\\u043A: \\u043F\\u043E\\u0432\\u0438\\u043D\\u0435\\u043D \\u0432\\u0456\\u0434\\u043F\\u043E\\u0432\\u0456\\u0434\\u0430\\u0442\\u0438 \\u0448\\u0430\\u0431\\u043B\\u043E\\u043D\\u0443 ".concat(a.pattern):"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0447\\u0438\\u0441\\u043B\\u043E: \\u043F\\u043E\\u0432\\u0438\\u043D\\u043D\\u043E \\u0431\\u0443\\u0442\\u0438 \\u043A\\u0440\\u0430\\u0442\\u043D\\u0438\\u043C ".concat(t.divisor);case"unrecognized_keys":return"\\u041D\\u0435\\u0440\\u043E\\u0437\\u043F\\u0456\\u0437\\u043D\\u0430\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447".concat(t.keys.length>1?"\\u0456":"",": ").concat(p(t.keys,", "));case"invalid_key":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0438\\u0439 \\u043A\\u043B\\u044E\\u0447 \\u0443 ".concat(t.origin);case"invalid_union":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456";case"invalid_element":return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0435 \\u0437\\u043D\\u0430\\u0447\\u0435\\u043D\\u043D\\u044F \\u0443 ".concat(t.origin);default:return"\\u041D\\u0435\\u043F\\u0440\\u0430\\u0432\\u0438\\u043B\\u044C\\u043D\\u0456 \\u0432\\u0445\\u0456\\u0434\\u043D\\u0456 \\u0434\\u0430\\u043D\\u0456"}}};function nr(){return{localeError:vd()}}function pc(){return nr()}var hd=()=>{let e={string:{unit:"\\u062D\\u0631\\u0648\\u0641",verb:"\\u06C1\\u0648\\u0646\\u0627"},file:{unit:"\\u0628\\u0627\\u0626\\u0679\\u0633",verb:"\\u06C1\\u0648\\u0646\\u0627"},array:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"},set:{unit:"\\u0622\\u0626\\u0679\\u0645\\u0632",verb:"\\u06C1\\u0648\\u0646\\u0627"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"\\u0646\\u0645\\u0628\\u0631";case"object":{if(Array.isArray(t))return"\\u0622\\u0631\\u06D2";if(t===null)return"\\u0646\\u0644";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0627\\u0646 \\u067E\\u0679",email:"\\u0627\\u06CC \\u0645\\u06CC\\u0644 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",url:"\\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644",emoji:"\\u0627\\u06CC\\u0645\\u0648\\u062C\\u06CC",uuid:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",uuidv4:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 4",uuidv6:"\\u06CC\\u0648 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC \\u0648\\u06CC 6",nanoid:"\\u0646\\u06CC\\u0646\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",guid:"\\u062C\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",cuid2:"\\u0633\\u06CC \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC 2",ulid:"\\u06CC\\u0648 \\u0627\\u06CC\\u0644 \\u0622\\u0626\\u06CC \\u0688\\u06CC",xid:"\\u0627\\u06CC\\u06A9\\u0633 \\u0622\\u0626\\u06CC \\u0688\\u06CC",ksuid:"\\u06A9\\u06D2 \\u0627\\u06CC\\u0633 \\u06CC\\u0648 \\u0622\\u0626\\u06CC \\u0688\\u06CC",datetime:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0688\\u06CC\\u0679 \\u0679\\u0627\\u0626\\u0645",date:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u062A\\u0627\\u0631\\u06CC\\u062E",time:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0648\\u0642\\u062A",duration:"\\u0622\\u0626\\u06CC \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0645\\u062F\\u062A",ipv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",ipv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0627\\u06CC\\u0688\\u0631\\u06CC\\u0633",cidrv4:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 4 \\u0631\\u06CC\\u0646\\u062C",cidrv6:"\\u0622\\u0626\\u06CC \\u067E\\u06CC \\u0648\\u06CC 6 \\u0631\\u06CC\\u0646\\u062C",base64:"\\u0628\\u06CC\\u0633 64 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",base64url:"\\u0628\\u06CC\\u0633 64 \\u06CC\\u0648 \\u0622\\u0631 \\u0627\\u06CC\\u0644 \\u0627\\u0646 \\u06A9\\u0648\\u0688\\u0688 \\u0633\\u0679\\u0631\\u0646\\u06AF",json_string:"\\u062C\\u06D2 \\u0627\\u06CC\\u0633 \\u0627\\u0648 \\u0627\\u06CC\\u0646 \\u0633\\u0679\\u0631\\u0646\\u06AF",e164:"\\u0627\\u06CC 164 \\u0646\\u0645\\u0628\\u0631",jwt:"\\u062C\\u06D2 \\u0688\\u0628\\u0644\\u06CC\\u0648 \\u0679\\u06CC",template_literal:"\\u0627\\u0646 \\u067E\\u0679"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ".concat(t.expected," \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627\\u060C ").concat(n(t.input)," \\u0645\\u0648\\u0635\\u0648\\u0644 \\u06C1\\u0648\\u0627");case"invalid_value":return t.values.length===1?"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679: ".concat(b(t.values[0])," \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627"):"\\u063A\\u0644\\u0637 \\u0622\\u067E\\u0634\\u0646: ".concat(p(t.values,"|")," \\u0645\\u06CC\\u06BA \\u0633\\u06D2 \\u0627\\u06CC\\u06A9 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627");case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ".concat((o=t.origin)!=null?o:"\\u0648\\u06CC\\u0644\\u06CC\\u0648"," \\u06A9\\u06D2 ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u0639\\u0646\\u0627\\u0635\\u0631"," \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2"):"\\u0628\\u06C1\\u062A \\u0628\\u0691\\u0627: ".concat((s=t.origin)!=null?s:"\\u0648\\u06CC\\u0644\\u06CC\\u0648"," \\u06A9\\u0627 ").concat(a).concat(t.maximum.toString()," \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627")}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ".concat(t.origin," \\u06A9\\u06D2 ").concat(a).concat(t.minimum.toString()," ").concat(l.unit," \\u06C1\\u0648\\u0646\\u06D2 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u06D2"):"\\u0628\\u06C1\\u062A \\u0686\\u06BE\\u0648\\u0679\\u0627: ".concat(t.origin," \\u06A9\\u0627 ").concat(a).concat(t.minimum.toString()," \\u06C1\\u0648\\u0646\\u0627 \\u0645\\u062A\\u0648\\u0642\\u0639 \\u062A\\u06BE\\u0627")}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "\'.concat(a.prefix,\'" \\u0633\\u06D2 \\u0634\\u0631\\u0648\\u0639 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2\'):a.format==="ends_with"?\'\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "\'.concat(a.suffix,\'" \\u067E\\u0631 \\u062E\\u062A\\u0645 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2\'):a.format==="includes"?\'\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: "\'.concat(a.includes,\'" \\u0634\\u0627\\u0645\\u0644 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2\'):a.format==="regex"?"\\u063A\\u0644\\u0637 \\u0633\\u0679\\u0631\\u0646\\u06AF: \\u067E\\u06CC\\u0679\\u0631\\u0646 ".concat(a.pattern," \\u0633\\u06D2 \\u0645\\u06CC\\u0686 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2"):"\\u063A\\u0644\\u0637 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u063A\\u0644\\u0637 \\u0646\\u0645\\u0628\\u0631: ".concat(t.divisor," \\u06A9\\u0627 \\u0645\\u0636\\u0627\\u0639\\u0641 \\u06C1\\u0648\\u0646\\u0627 \\u0686\\u0627\\u06C1\\u06CC\\u06D2");case"unrecognized_keys":return"\\u063A\\u06CC\\u0631 \\u062A\\u0633\\u0644\\u06CC\\u0645 \\u0634\\u062F\\u06C1 \\u06A9\\u06CC".concat(t.keys.length>1?"\\u0632":"",": ").concat(p(t.keys,"\\u060C "));case"invalid_key":return"".concat(t.origin," \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u06A9\\u06CC");case"invalid_union":return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679";case"invalid_element":return"".concat(t.origin," \\u0645\\u06CC\\u06BA \\u063A\\u0644\\u0637 \\u0648\\u06CC\\u0644\\u06CC\\u0648");default:return"\\u063A\\u0644\\u0637 \\u0627\\u0646 \\u067E\\u0679"}}};function gc(){return{localeError:hd()}}var $d=()=>{let e={string:{unit:"k\\xFD t\\u1EF1",verb:"c\\xF3"},file:{unit:"byte",verb:"c\\xF3"},array:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"},set:{unit:"ph\\u1EA7n t\\u1EED",verb:"c\\xF3"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"s\\u1ED1";case"object":{if(Array.isArray(t))return"m\\u1EA3ng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u0111\\u1EA7u v\\xE0o",email:"\\u0111\\u1ECBa ch\\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\\xE0y gi\\u1EDD ISO",date:"ng\\xE0y ISO",time:"gi\\u1EDD ISO",duration:"kho\\u1EA3ng th\\u1EDDi gian ISO",ipv4:"\\u0111\\u1ECBa ch\\u1EC9 IPv4",ipv6:"\\u0111\\u1ECBa ch\\u1EC9 IPv6",cidrv4:"d\\u1EA3i IPv4",cidrv6:"d\\u1EA3i IPv6",base64:"chu\\u1ED7i m\\xE3 h\\xF3a base64",base64url:"chu\\u1ED7i m\\xE3 h\\xF3a base64url",json_string:"chu\\u1ED7i JSON",e164:"s\\u1ED1 E.164",jwt:"JWT",template_literal:"\\u0111\\u1EA7u v\\xE0o"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ".concat(t.expected,", nh\\u1EADn \\u0111\\u01B0\\u1EE3c ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i ".concat(b(t.values[0])):"T\\xF9y ch\\u1ECDn kh\\xF4ng h\\u1EE3p l\\u1EC7: mong \\u0111\\u1EE3i m\\u1ED9t trong c\\xE1c gi\\xE1 tr\\u1ECB ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ".concat((o=t.origin)!=null?o:"gi\\xE1 tr\\u1ECB"," ").concat(l.verb," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"ph\\u1EA7n t\\u1EED"):"Qu\\xE1 l\\u1EDBn: mong \\u0111\\u1EE3i ".concat((s=t.origin)!=null?s:"gi\\xE1 tr\\u1ECB"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ".concat(t.origin," ").concat(l.verb," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"Qu\\xE1 nh\\u1ECF: mong \\u0111\\u1EE3i ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i b\\u1EAFt \\u0111\\u1EA7u b\\u1EB1ng "\'.concat(a.prefix,\'"\'):a.format==="ends_with"?\'Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i k\\u1EBFt th\\xFAc b\\u1EB1ng "\'.concat(a.suffix,\'"\'):a.format==="includes"?\'Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i bao g\\u1ED3m "\'.concat(a.includes,\'"\'):a.format==="regex"?"Chu\\u1ED7i kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i kh\\u1EDBp v\\u1EDBi m\\u1EABu ".concat(a.pattern):"".concat((c=i[a.format])!=null?c:t.format," kh\\xF4ng h\\u1EE3p l\\u1EC7")}case"not_multiple_of":return"S\\u1ED1 kh\\xF4ng h\\u1EE3p l\\u1EC7: ph\\u1EA3i l\\xE0 b\\u1ED9i s\\u1ED1 c\\u1EE7a ".concat(t.divisor);case"unrecognized_keys":return"Kh\\xF3a kh\\xF4ng \\u0111\\u01B0\\u1EE3c nh\\u1EADn d\\u1EA1ng: ".concat(p(t.keys,", "));case"invalid_key":return"Kh\\xF3a kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ".concat(t.origin);case"invalid_union":return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7";case"invalid_element":return"Gi\\xE1 tr\\u1ECB kh\\xF4ng h\\u1EE3p l\\u1EC7 trong ".concat(t.origin);default:return"\\u0110\\u1EA7u v\\xE0o kh\\xF4ng h\\u1EE3p l\\u1EC7"}}};function vc(){return{localeError:$d()}}var bd=()=>{let e={string:{unit:"\\u5B57\\u7B26",verb:"\\u5305\\u542B"},file:{unit:"\\u5B57\\u8282",verb:"\\u5305\\u542B"},array:{unit:"\\u9879",verb:"\\u5305\\u542B"},set:{unit:"\\u9879",verb:"\\u5305\\u542B"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"\\u975E\\u6570\\u5B57(NaN)":"\\u6570\\u5B57";case"object":{if(Array.isArray(t))return"\\u6570\\u7EC4";if(t===null)return"\\u7A7A\\u503C(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u8F93\\u5165",email:"\\u7535\\u5B50\\u90AE\\u4EF6",url:"URL",emoji:"\\u8868\\u60C5\\u7B26\\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\\u65E5\\u671F\\u65F6\\u95F4",date:"ISO\\u65E5\\u671F",time:"ISO\\u65F6\\u95F4",duration:"ISO\\u65F6\\u957F",ipv4:"IPv4\\u5730\\u5740",ipv6:"IPv6\\u5730\\u5740",cidrv4:"IPv4\\u7F51\\u6BB5",cidrv6:"IPv6\\u7F51\\u6BB5",base64:"base64\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",base64url:"base64url\\u7F16\\u7801\\u5B57\\u7B26\\u4E32",json_string:"JSON\\u5B57\\u7B26\\u4E32",e164:"E.164\\u53F7\\u7801",jwt:"JWT",template_literal:"\\u8F93\\u5165"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ".concat(t.expected,"\\uFF0C\\u5B9E\\u9645\\u63A5\\u6536 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u65E0\\u6548\\u8F93\\u5165\\uFF1A\\u671F\\u671B ".concat(b(t.values[0])):"\\u65E0\\u6548\\u9009\\u9879\\uFF1A\\u671F\\u671B\\u4EE5\\u4E0B\\u4E4B\\u4E00 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ".concat((o=t.origin)!=null?o:"\\u503C"," ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u4E2A\\u5143\\u7D20"):"\\u6570\\u503C\\u8FC7\\u5927\\uFF1A\\u671F\\u671B ".concat((s=t.origin)!=null?s:"\\u503C"," ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ".concat(t.origin," ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u6570\\u503C\\u8FC7\\u5C0F\\uFF1A\\u671F\\u671B ".concat(t.origin," ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "\'.concat(a.prefix,\'" \\u5F00\\u5934\'):a.format==="ends_with"?\'\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u4EE5 "\'.concat(a.suffix,\'" \\u7ED3\\u5C3E\'):a.format==="includes"?\'\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u5305\\u542B "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u65E0\\u6548\\u5B57\\u7B26\\u4E32\\uFF1A\\u5FC5\\u987B\\u6EE1\\u8DB3\\u6B63\\u5219\\u8868\\u8FBE\\u5F0F ".concat(a.pattern):"\\u65E0\\u6548".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u65E0\\u6548\\u6570\\u5B57\\uFF1A\\u5FC5\\u987B\\u662F ".concat(t.divisor," \\u7684\\u500D\\u6570");case"unrecognized_keys":return"\\u51FA\\u73B0\\u672A\\u77E5\\u7684\\u952E(key): ".concat(p(t.keys,", "));case"invalid_key":return"".concat(t.origin," \\u4E2D\\u7684\\u952E(key)\\u65E0\\u6548");case"invalid_union":return"\\u65E0\\u6548\\u8F93\\u5165";case"invalid_element":return"".concat(t.origin," \\u4E2D\\u5305\\u542B\\u65E0\\u6548\\u503C(value)");default:return"\\u65E0\\u6548\\u8F93\\u5165"}}};function hc(){return{localeError:bd()}}var _d=()=>{let e={string:{unit:"\\u5B57\\u5143",verb:"\\u64C1\\u6709"},file:{unit:"\\u4F4D\\u5143\\u7D44",verb:"\\u64C1\\u6709"},array:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"},set:{unit:"\\u9805\\u76EE",verb:"\\u64C1\\u6709"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u8F38\\u5165",email:"\\u90F5\\u4EF6\\u5730\\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \\u65E5\\u671F\\u6642\\u9593",date:"ISO \\u65E5\\u671F",time:"ISO \\u6642\\u9593",duration:"ISO \\u671F\\u9593",ipv4:"IPv4 \\u4F4D\\u5740",ipv6:"IPv6 \\u4F4D\\u5740",cidrv4:"IPv4 \\u7BC4\\u570D",cidrv6:"IPv6 \\u7BC4\\u570D",base64:"base64 \\u7DE8\\u78BC\\u5B57\\u4E32",base64url:"base64url \\u7DE8\\u78BC\\u5B57\\u4E32",json_string:"JSON \\u5B57\\u4E32",e164:"E.164 \\u6578\\u503C",jwt:"JWT",template_literal:"\\u8F38\\u5165"};return t=>{var o,u,s,c;switch(t.code){case"invalid_type":return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ".concat(t.expected,"\\uFF0C\\u4F46\\u6536\\u5230 ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C\\uFF1A\\u9810\\u671F\\u70BA ".concat(b(t.values[0])):"\\u7121\\u6548\\u7684\\u9078\\u9805\\uFF1A\\u9810\\u671F\\u70BA\\u4EE5\\u4E0B\\u5176\\u4E2D\\u4E4B\\u4E00 ".concat(p(t.values,"|"));case"too_big":{let a=t.inclusive?"<=":"<",l=r(t.origin);return l?"\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ".concat((o=t.origin)!=null?o:"\\u503C"," \\u61C9\\u70BA ").concat(a).concat(t.maximum.toString()," ").concat((u=l.unit)!=null?u:"\\u500B\\u5143\\u7D20"):"\\u6578\\u503C\\u904E\\u5927\\uFF1A\\u9810\\u671F ".concat((s=t.origin)!=null?s:"\\u503C"," \\u61C9\\u70BA ").concat(a).concat(t.maximum.toString())}case"too_small":{let a=t.inclusive?">=":">",l=r(t.origin);return l?"\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ".concat(t.origin," \\u61C9\\u70BA ").concat(a).concat(t.minimum.toString()," ").concat(l.unit):"\\u6578\\u503C\\u904E\\u5C0F\\uFF1A\\u9810\\u671F ".concat(t.origin," \\u61C9\\u70BA ").concat(a).concat(t.minimum.toString())}case"invalid_format":{let a=t;return a.format==="starts_with"?\'\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "\'.concat(a.prefix,\'" \\u958B\\u982D\'):a.format==="ends_with"?\'\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u4EE5 "\'.concat(a.suffix,\'" \\u7D50\\u5C3E\'):a.format==="includes"?\'\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u5305\\u542B "\'.concat(a.includes,\'"\'):a.format==="regex"?"\\u7121\\u6548\\u7684\\u5B57\\u4E32\\uFF1A\\u5FC5\\u9808\\u7B26\\u5408\\u683C\\u5F0F ".concat(a.pattern):"\\u7121\\u6548\\u7684 ".concat((c=i[a.format])!=null?c:t.format)}case"not_multiple_of":return"\\u7121\\u6548\\u7684\\u6578\\u5B57\\uFF1A\\u5FC5\\u9808\\u70BA ".concat(t.divisor," \\u7684\\u500D\\u6578");case"unrecognized_keys":return"\\u7121\\u6CD5\\u8B58\\u5225\\u7684\\u9375\\u503C".concat(t.keys.length>1?"\\u5011":"","\\uFF1A").concat(p(t.keys,"\\u3001"));case"invalid_key":return"".concat(t.origin," \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u9375\\u503C");case"invalid_union":return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C";case"invalid_element":return"".concat(t.origin," \\u4E2D\\u6709\\u7121\\u6548\\u7684\\u503C");default:return"\\u7121\\u6548\\u7684\\u8F38\\u5165\\u503C"}}};function $c(){return{localeError:_d()}}var yd=()=>{let e={string:{unit:"\\xE0mi",verb:"n\\xED"},file:{unit:"bytes",verb:"n\\xED"},array:{unit:"nkan",verb:"n\\xED"},set:{unit:"nkan",verb:"n\\xED"}};function r(t){var o;return(o=e[t])!=null?o:null}let n=t=>{let o=typeof t;switch(o){case"number":return Number.isNaN(t)?"NaN":"n\\u1ECD\\u0301mb\\xE0";case"object":{if(Array.isArray(t))return"akop\\u1ECD";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return o},i={regex:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9",email:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC \\xECm\\u1EB9\\u0301l\\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\\xE0k\\xF3k\\xF2 ISO",date:"\\u1ECDj\\u1ECD\\u0301 ISO",time:"\\xE0k\\xF3k\\xF2 ISO",duration:"\\xE0k\\xF3k\\xF2 t\\xF3 p\\xE9 ISO",ipv4:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv4",ipv6:"\\xE0d\\xEDr\\u1EB9\\u0301s\\xEC IPv6",cidrv4:"\\xE0gb\\xE8gb\\xE8 IPv4",cidrv6:"\\xE0gb\\xE8gb\\xE8 IPv6",base64:"\\u1ECD\\u0300r\\u1ECD\\u0300 t\\xED a k\\u1ECD\\u0301 n\\xED base64",base64url:"\\u1ECD\\u0300r\\u1ECD\\u0300 base64url",json_string:"\\u1ECD\\u0300r\\u1ECD\\u0300 JSON",e164:"n\\u1ECD\\u0301mb\\xE0 E.164",jwt:"JWT",template_literal:"\\u1EB9\\u0300r\\u1ECD \\xECb\\xE1w\\u1ECDl\\xE9"};return t=>{var o,u;switch(t.code){case"invalid_type":return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ".concat(t.expected,", \\xE0m\\u1ECD\\u0300 a r\\xED ").concat(n(t.input));case"invalid_value":return t.values.length===1?"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e: a n\\xED l\\xE1ti fi ".concat(b(t.values[0])):"\\xC0\\u1E63\\xE0y\\xE0n a\\u1E63\\xEC\\u1E63e: yan \\u1ECD\\u0300kan l\\xE1ra ".concat(p(t.values,"|"));case"too_big":{let s=t.inclusive?"<=":"<",c=r(t.origin);return c?"T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ".concat((o=t.origin)!=null?o:"iye"," ").concat(c.verb," ").concat(s).concat(t.maximum," ").concat(c.unit):"T\\xF3 p\\u1ECD\\u0300 j\\xF9: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ".concat(s).concat(t.maximum)}case"too_small":{let s=t.inclusive?">=":">",c=r(t.origin);return c?"K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 p\\xE9 ".concat(t.origin," ").concat(c.verb," ").concat(s).concat(t.minimum," ").concat(c.unit):"K\\xE9r\\xE9 ju: a n\\xED l\\xE1ti j\\u1EB9\\u0301 ".concat(s).concat(t.minimum)}case"invalid_format":{let s=t;return s.format==="starts_with"?\'\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\u1EB9\\u0300r\\u1EB9\\u0300 p\\u1EB9\\u0300l\\xFA "\'.concat(s.prefix,\'"\'):s.format==="ends_with"?\'\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 par\\xED p\\u1EB9\\u0300l\\xFA "\'.concat(s.suffix,\'"\'):s.format==="includes"?\'\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 n\\xED "\'.concat(s.includes,\'"\'):s.format==="regex"?"\\u1ECC\\u0300r\\u1ECD\\u0300 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 b\\xE1 \\xE0p\\u1EB9\\u1EB9r\\u1EB9 mu ".concat(s.pattern):"A\\u1E63\\xEC\\u1E63e: ".concat((u=i[s.format])!=null?u:t.format)}case"not_multiple_of":return"N\\u1ECD\\u0301mb\\xE0 a\\u1E63\\xEC\\u1E63e: gb\\u1ECD\\u0301d\\u1ECD\\u0300 j\\u1EB9\\u0301 \\xE8y\\xE0 p\\xEDp\\xEDn ti ".concat(t.divisor);case"unrecognized_keys":return"B\\u1ECDt\\xECn\\xEC \\xE0\\xECm\\u1ECD\\u0300: ".concat(p(t.keys,", "));case"invalid_key":return"B\\u1ECDt\\xECn\\xEC a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ".concat(t.origin);case"invalid_union":return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e";case"invalid_element":return"Iye a\\u1E63\\xEC\\u1E63e n\\xEDn\\xFA ".concat(t.origin);default:return"\\xCCb\\xE1w\\u1ECDl\\xE9 a\\u1E63\\xEC\\u1E63e"}}};function bc(){return{localeError:yd()}}var co=Symbol("ZodOutput"),so=Symbol("ZodInput"),Te=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...n){let i=n[0];if(this._map.set(r,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error("ID ".concat(i.id," already exists in the registry"));this._idmap.set(i.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){let n=this._map.get(r);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(r),this}get(r){var i;let n=r._zod.parent;if(n){let t=m({},(i=this.get(n))!=null?i:{});delete t.id;let o=m(m({},t),this._map.get(r));return Object.keys(o).length?o:void 0}return this._map.get(r)}has(r){return this._map.has(r)}};function ir(){return new Te}var oe=ir();function lo(e,r){return new e(m({type:"string"},y(r)))}function mo(e,r){return new e(m({type:"string",coerce:!0},y(r)))}function or(e,r){return new e(m({type:"string",format:"email",check:"string_format",abort:!1},y(r)))}function ct(e,r){return new e(m({type:"string",format:"guid",check:"string_format",abort:!1},y(r)))}function ar(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1},y(r)))}function ur(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},y(r)))}function cr(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},y(r)))}function sr(e,r){return new e(m({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},y(r)))}function st(e,r){return new e(m({type:"string",format:"url",check:"string_format",abort:!1},y(r)))}function lr(e,r){return new e(m({type:"string",format:"emoji",check:"string_format",abort:!1},y(r)))}function dr(e,r){return new e(m({type:"string",format:"nanoid",check:"string_format",abort:!1},y(r)))}function mr(e,r){return new e(m({type:"string",format:"cuid",check:"string_format",abort:!1},y(r)))}function fr(e,r){return new e(m({type:"string",format:"cuid2",check:"string_format",abort:!1},y(r)))}function pr(e,r){return new e(m({type:"string",format:"ulid",check:"string_format",abort:!1},y(r)))}function gr(e,r){return new e(m({type:"string",format:"xid",check:"string_format",abort:!1},y(r)))}function vr(e,r){return new e(m({type:"string",format:"ksuid",check:"string_format",abort:!1},y(r)))}function hr(e,r){return new e(m({type:"string",format:"ipv4",check:"string_format",abort:!1},y(r)))}function $r(e,r){return new e(m({type:"string",format:"ipv6",check:"string_format",abort:!1},y(r)))}function br(e,r){return new e(m({type:"string",format:"cidrv4",check:"string_format",abort:!1},y(r)))}function _r(e,r){return new e(m({type:"string",format:"cidrv6",check:"string_format",abort:!1},y(r)))}function yr(e,r){return new e(m({type:"string",format:"base64",check:"string_format",abort:!1},y(r)))}function xr(e,r){return new e(m({type:"string",format:"base64url",check:"string_format",abort:!1},y(r)))}function kr(e,r){return new e(m({type:"string",format:"e164",check:"string_format",abort:!1},y(r)))}function zr(e,r){return new e(m({type:"string",format:"jwt",check:"string_format",abort:!1},y(r)))}var fo={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function po(e,r){return new e(m({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},y(r)))}function go(e,r){return new e(m({type:"string",format:"date",check:"string_format"},y(r)))}function vo(e,r){return new e(m({type:"string",format:"time",check:"string_format",precision:null},y(r)))}function ho(e,r){return new e(m({type:"string",format:"duration",check:"string_format"},y(r)))}function $o(e,r){return new e(m({type:"number",checks:[]},y(r)))}function bo(e,r){return new e(m({type:"number",coerce:!0,checks:[]},y(r)))}function _o(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"safeint"},y(r)))}function yo(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"float32"},y(r)))}function xo(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"float64"},y(r)))}function ko(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"int32"},y(r)))}function zo(e,r){return new e(m({type:"number",check:"number_format",abort:!1,format:"uint32"},y(r)))}function Io(e,r){return new e(m({type:"boolean"},y(r)))}function wo(e,r){return new e(m({type:"boolean",coerce:!0},y(r)))}function So(e,r){return new e(m({type:"bigint"},y(r)))}function jo(e,r){return new e(m({type:"bigint",coerce:!0},y(r)))}function Oo(e,r){return new e(m({type:"bigint",check:"bigint_format",abort:!1,format:"int64"},y(r)))}function Po(e,r){return new e(m({type:"bigint",check:"bigint_format",abort:!1,format:"uint64"},y(r)))}function Uo(e,r){return new e(m({type:"symbol"},y(r)))}function No(e,r){return new e(m({type:"undefined"},y(r)))}function Zo(e,r){return new e(m({type:"null"},y(r)))}function Do(e){return new e({type:"any"})}function To(e){return new e({type:"unknown"})}function Eo(e,r){return new e(m({type:"never"},y(r)))}function Ao(e,r){return new e(m({type:"void"},y(r)))}function Ro(e,r){return new e(m({type:"date"},y(r)))}function Lo(e,r){return new e(m({type:"date",coerce:!0},y(r)))}function Co(e,r){return new e(m({type:"nan"},y(r)))}function ce(e,r){return new Mt(z(m({check:"less_than"},y(r)),{value:e,inclusive:!1}))}function H(e,r){return new Mt(z(m({check:"less_than"},y(r)),{value:e,inclusive:!0}))}function se(e,r){return new Bt(z(m({check:"greater_than"},y(r)),{value:e,inclusive:!1}))}function W(e,r){return new Bt(z(m({check:"greater_than"},y(r)),{value:e,inclusive:!0}))}function Vo(e){return se(0,e)}function Fo(e){return ce(0,e)}function Jo(e){return H(0,e)}function Mo(e){return W(0,e)}function Ie(e,r){return new Tn(z(m({check:"multiple_of"},y(r)),{value:e}))}function Ee(e,r){return new Rn(z(m({check:"max_size"},y(r)),{maximum:e}))}function we(e,r){return new Ln(z(m({check:"min_size"},y(r)),{minimum:e}))}function lt(e,r){return new Cn(z(m({check:"size_equals"},y(r)),{size:e}))}function Ae(e,r){return new Vn(z(m({check:"max_length"},y(r)),{maximum:e}))}function $e(e,r){return new Fn(z(m({check:"min_length"},y(r)),{minimum:e}))}function Re(e,r){return new Jn(z(m({check:"length_equals"},y(r)),{length:e}))}function dt(e,r){return new Mn(z(m({check:"string_format",format:"regex"},y(r)),{pattern:e}))}function mt(e){return new Bn(m({check:"string_format",format:"lowercase"},y(e)))}function ft(e){return new Kn(m({check:"string_format",format:"uppercase"},y(e)))}function pt(e,r){return new Gn(z(m({check:"string_format",format:"includes"},y(r)),{includes:e}))}function gt(e,r){return new Wn(z(m({check:"string_format",format:"starts_with"},y(r)),{prefix:e}))}function vt(e,r){return new Xn(z(m({check:"string_format",format:"ends_with"},y(r)),{suffix:e}))}function Bo(e,r,n){return new qn(m({check:"property",property:e,schema:r},y(n)))}function ht(e,r){return new Yn(m({check:"mime_type",mime:e},y(r)))}function le(e){return new Qn({check:"overwrite",tx:e})}function $t(e){return le(r=>r.normalize(e))}function bt(){return le(e=>e.trim())}function _t(){return le(e=>e.toLowerCase())}function yt(){return le(e=>e.toUpperCase())}function Ko(e,r,n){return new e(m({type:"array",element:r},y(n)))}function xd(e,r,n){return new e(m({type:"union",options:r},y(n)))}function kd(e,r,n,i){return new e(m({type:"union",options:n,discriminator:r},y(i)))}function zd(e,r,n){return new e({type:"intersection",left:r,right:n})}function Id(e,r,n,i){let t=n instanceof O,o=t?i:n,u=t?n:null;return new e(m({type:"tuple",items:r,rest:u},y(o)))}function wd(e,r,n,i){return new e(m({type:"record",keyType:r,valueType:n},y(i)))}function Sd(e,r,n,i){return new e(m({type:"map",keyType:r,valueType:n},y(i)))}function jd(e,r,n){return new e(m({type:"set",valueType:r},y(n)))}function Od(e,r,n){let i=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e(m({type:"enum",entries:i},y(n)))}function Pd(e,r,n){return new e(m({type:"enum",entries:r},y(n)))}function Ud(e,r,n){return new e(m({type:"literal",values:Array.isArray(r)?r:[r]},y(n)))}function Go(e,r){return new e(m({type:"file"},y(r)))}function Nd(e,r){return new e({type:"transform",transform:r})}function Zd(e,r){return new e({type:"optional",innerType:r})}function Dd(e,r){return new e({type:"nullable",innerType:r})}function Td(e,r,n){return new e({type:"default",innerType:r,get defaultValue(){return typeof n=="function"?n():qr(n)}})}function Ed(e,r,n){return new e(m({type:"nonoptional",innerType:r},y(n)))}function Ad(e,r){return new e({type:"success",innerType:r})}function Rd(e,r,n){return new e({type:"catch",innerType:r,catchValue:typeof n=="function"?n:()=>n})}function Ld(e,r,n){return new e({type:"pipe",in:r,out:n})}function Cd(e,r){return new e({type:"readonly",innerType:r})}function Vd(e,r,n){return new e(m({type:"template_literal",parts:r},y(n)))}function Fd(e,r){return new e({type:"lazy",getter:r})}function Jd(e,r){return new e({type:"promise",innerType:r})}function Wo(e,r,n){var o;let i=y(n);return(o=i.abort)!=null||(i.abort=!0),new e(m({type:"custom",check:"custom",fn:r},i))}function Xo(e,r,n){return new e(m({type:"custom",check:"custom",fn:r},y(n)))}function qo(e){let r=_c(n=>(n.addIssue=i=>{var t,o,u,s;if(typeof i=="string")n.issues.push(Oe(i,n.value,r._zod.def));else{let c=i;c.fatal&&(c.continue=!1),(t=c.code)!=null||(c.code="custom"),(o=c.input)!=null||(c.input=n.value),(u=c.inst)!=null||(c.inst=r),(s=c.continue)!=null||(c.continue=!r._zod.def.abort),n.issues.push(Oe(c))}},e(n.value,n)));return r}function _c(e,r){let n=new R(m({check:"custom"},y(r)));return n._zod.check=e,n}function Yo(e,r){var h,x,S,I,C;let n=y(r),i=(h=n.truthy)!=null?h:["true","1","yes","on","y","enabled"],t=(x=n.falsy)!=null?x:["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(j=>typeof j=="string"?j.toLowerCase():j),t=t.map(j=>typeof j=="string"?j.toLowerCase():j));let o=new Set(i),u=new Set(t),s=(S=e.Codec)!=null?S:ot,c=(I=e.Boolean)!=null?I:it,a=(C=e.String)!=null?C:ke,l=new a({type:"string",error:n.error}),v=new c({type:"boolean",error:n.error}),f=new s({type:"pipe",in:l,out:v,transform:(j,g)=>{let $=j;return n.case!=="sensitive"&&($=$.toLowerCase()),o.has($)?!0:u.has($)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...u],input:g.value,inst:f,continue:!1}),{})},reverseTransform:(j,g)=>j===!0?i[0]||"true":t[0]||"false",error:n.error});return f}function Le(e,r,n,i={}){let t=y(i),o=m(z(m({},y(i)),{check:"string_format",type:"string",format:r,fn:typeof n=="function"?n:s=>n.test(s)}),t);return n instanceof RegExp&&(o.pattern=n),new e(o)}var xt=class{constructor(r){var n,i,t,o,u;this.counter=0,this.metadataRegistry=(n=r==null?void 0:r.metadata)!=null?n:oe,this.target=(i=r==null?void 0:r.target)!=null?i:"draft-2020-12",this.unrepresentable=(t=r==null?void 0:r.unrepresentable)!=null?t:"throw",this.override=(o=r==null?void 0:r.override)!=null?o:()=>{},this.io=(u=r==null?void 0:r.io)!=null?u:"output",this.seen=new Map}process(r,n={path:[],schemaPath:[]}){var v,f,h,x,S;var i;let t=r._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},u=this.seen.get(r);if(u)return u.count++,n.schemaPath.includes(r)&&(u.cycle=n.path),u.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(r,s);let c=(f=(v=r._zod).toJSONSchema)==null?void 0:f.call(v);if(c)s.schema=c;else{let I=z(m({},n),{schemaPath:[...n.schemaPath,r],path:n.path}),C=r._zod.parent;if(C)s.ref=C,this.process(C,I),this.seen.get(C).isParent=!0;else{let j=s.schema;switch(t.type){case"string":{let g=j;g.type="string";let{minimum:$,maximum:k,format:N,patterns:P,contentEncoding:w}=r._zod.bag;if(typeof $=="number"&&(g.minLength=$),typeof k=="number"&&(g.maxLength=k),N&&(g.format=(h=o[N])!=null?h:N,g.format===""&&delete g.format),w&&(g.contentEncoding=w),P&&P.size>0){let D=[...P];D.length===1?g.pattern=D[0].source:D.length>1&&(s.schema.allOf=[...D.map(B=>z(m({},this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{}),{pattern:B.source}))])}break}case"number":{let g=j,{minimum:$,maximum:k,format:N,multipleOf:P,exclusiveMaximum:w,exclusiveMinimum:D}=r._zod.bag;typeof N=="string"&&N.includes("int")?g.type="integer":g.type="number",typeof D=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(g.minimum=D,g.exclusiveMinimum=!0):g.exclusiveMinimum=D),typeof $=="number"&&(g.minimum=$,typeof D=="number"&&this.target!=="draft-4"&&(D>=$?delete g.minimum:delete g.exclusiveMinimum)),typeof w=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(g.maximum=w,g.exclusiveMaximum=!0):g.exclusiveMaximum=w),typeof k=="number"&&(g.maximum=k,typeof w=="number"&&this.target!=="draft-4"&&(w<=k?delete g.maximum:delete g.exclusiveMaximum)),typeof P=="number"&&(g.multipleOf=P);break}case"boolean":{let g=j;g.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(j.type="string",j.nullable=!0,j.enum=[null]):j.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{j.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let g=j,{minimum:$,maximum:k}=r._zod.bag;typeof $=="number"&&(g.minItems=$),typeof k=="number"&&(g.maxItems=k),g.type="array",g.items=this.process(t.element,z(m({},I),{path:[...I.path,"items"]}));break}case"object":{let g=j;g.type="object",g.properties={};let $=t.shape;for(let P in $)g.properties[P]=this.process($[P],z(m({},I),{path:[...I.path,"properties",P]}));let k=new Set(Object.keys($)),N=new Set([...k].filter(P=>{let w=t.shape[P]._zod;return this.io==="input"?w.optin===void 0:w.optout===void 0}));N.size>0&&(g.required=Array.from(N)),((x=t.catchall)==null?void 0:x._zod.def.type)==="never"?g.additionalProperties=!1:t.catchall?t.catchall&&(g.additionalProperties=this.process(t.catchall,z(m({},I),{path:[...I.path,"additionalProperties"]}))):this.io==="output"&&(g.additionalProperties=!1);break}case"union":{let g=j,$=t.options.map((k,N)=>this.process(k,z(m({},I),{path:[...I.path,"anyOf",N]})));g.anyOf=$;break}case"intersection":{let g=j,$=this.process(t.left,z(m({},I),{path:[...I.path,"allOf",0]})),k=this.process(t.right,z(m({},I),{path:[...I.path,"allOf",1]})),N=w=>"allOf"in w&&Object.keys(w).length===1,P=[...N($)?$.allOf:[$],...N(k)?k.allOf:[k]];g.allOf=P;break}case"tuple":{let g=j;g.type="array";let $=this.target==="draft-2020-12"?"prefixItems":"items",k=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",N=t.items.map((B,V)=>this.process(B,z(m({},I),{path:[...I.path,$,V]}))),P=t.rest?this.process(t.rest,z(m({},I),{path:[...I.path,k,...this.target==="openapi-3.0"?[t.items.length]:[]]})):null;this.target==="draft-2020-12"?(g.prefixItems=N,P&&(g.items=P)):this.target==="openapi-3.0"?(g.items={anyOf:N},P&&g.items.anyOf.push(P),g.minItems=N.length,P||(g.maxItems=N.length)):(g.items=N,P&&(g.additionalItems=P));let{minimum:w,maximum:D}=r._zod.bag;typeof w=="number"&&(g.minItems=w),typeof D=="number"&&(g.maxItems=D);break}case"record":{let g=j;g.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(g.propertyNames=this.process(t.keyType,z(m({},I),{path:[...I.path,"propertyNames"]}))),g.additionalProperties=this.process(t.valueType,z(m({},I),{path:[...I.path,"additionalProperties"]}));break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let g=j,$=Ge(t.entries);$.every(k=>typeof k=="number")&&(g.type="number"),$.every(k=>typeof k=="string")&&(g.type="string"),g.enum=$;break}case"literal":{let g=j,$=[];for(let k of t.values)if(k===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof k=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");$.push(Number(k))}else $.push(k);if($.length!==0)if($.length===1){let k=$[0];g.type=k===null?"null":typeof k,this.target==="draft-4"||this.target==="openapi-3.0"?g.enum=[k]:g.const=k}else $.every(k=>typeof k=="number")&&(g.type="number"),$.every(k=>typeof k=="string")&&(g.type="string"),$.every(k=>typeof k=="boolean")&&(g.type="string"),$.every(k=>k===null)&&(g.type="null"),g.enum=$;break}case"file":{let g=j,$={type:"string",format:"binary",contentEncoding:"binary"},{minimum:k,maximum:N,mime:P}=r._zod.bag;k!==void 0&&($.minLength=k),N!==void 0&&($.maxLength=N),P?P.length===1?($.contentMediaType=P[0],Object.assign(g,$)):g.anyOf=P.map(w=>z(m({},$),{contentMediaType:w})):Object.assign(g,$);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let g=this.process(t.innerType,I);this.target==="openapi-3.0"?(s.ref=t.innerType,j.nullable=!0):j.anyOf=[g,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,I),s.ref=t.innerType;break}case"success":{let g=j;g.type="boolean";break}case"default":{this.process(t.innerType,I),s.ref=t.innerType,j.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,I),s.ref=t.innerType,this.io==="input"&&(j._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,I),s.ref=t.innerType;let g;try{g=t.catchValue(void 0)}catch($){throw new Error("Dynamic catch values are not supported in JSON Schema")}j.default=g;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let g=j,$=r._zod.pattern;if(!$)throw new Error("Pattern not found in template literal");g.type="string",g.pattern=$.source;break}case"pipe":{let g=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(g,I),s.ref=g;break}case"readonly":{this.process(t.innerType,I),s.ref=t.innerType,j.readOnly=!0;break}case"promise":{this.process(t.innerType,I),s.ref=t.innerType;break}case"optional":{this.process(t.innerType,I),s.ref=t.innerType;break}case"lazy":{let g=r._zod.innerType;this.process(g,I),s.ref=g;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}default:}}}let a=this.metadataRegistry.get(r);return a&&Object.assign(s.schema,a),this.io==="input"&&J(r)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((S=(i=s.schema).default)!=null||(i.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(r).schema}emit(r,n){var l,v,f,h,x,S,I,C,j,g;let i={cycles:(l=n==null?void 0:n.cycles)!=null?l:"ref",reused:(v=n==null?void 0:n.reused)!=null?v:"inline",external:(f=n==null?void 0:n.external)!=null?f:void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=$=>{var D,B,V,re,F;let k=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let ne=(D=i.external.registry.get($[0]))==null?void 0:D.id,Je=(B=i.external.uri)!=null?B:Vr=>Vr;if(ne)return{ref:Je(ne)};let ee=(re=(V=$[1].defId)!=null?V:$[1].schema.id)!=null?re:"schema".concat(this.counter++);return $[1].defId=ee,{defId:ee,ref:"".concat(Je("__shared"),"#/").concat(k,"/").concat(ee)}}if($[1]===t)return{ref:"#"};let P="".concat("#","/").concat(k,"/"),w=(F=$[1].schema.id)!=null?F:"__schema".concat(this.counter++);return{defId:w,ref:P+w}},u=$=>{if($[1].schema.$ref)return;let k=$[1],{ref:N,defId:P}=o($);k.def=m({},k.schema),P&&(k.defId=P);let w=k.schema;for(let D in w)delete w[D];w.$ref=N};if(i.cycles==="throw")for(let $ of this.seen.entries()){let k=$[1];if(k.cycle)throw new Error("Cycle detected: "+"#/".concat((h=k.cycle)==null?void 0:h.join("/"),"/<root>")+\'\\n\\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.\')}for(let $ of this.seen.entries()){let k=$[1];if(r===$[0]){u($);continue}if(i.external){let P=(x=i.external.registry.get($[0]))==null?void 0:x.id;if(r!==$[0]&&P){u($);continue}}if((S=this.metadataRegistry.get($[0]))==null?void 0:S.id){u($);continue}if(k.cycle){u($);continue}if(k.count>1&&i.reused==="ref"){u($);continue}}let s=($,k)=>{var B,V,re;let N=this.seen.get($),P=(B=N.def)!=null?B:N.schema,w=m({},P);if(N.ref===null)return;let D=N.ref;if(N.ref=null,D){s(D,k);let F=this.seen.get(D).schema;F.$ref&&(k.target==="draft-7"||k.target==="draft-4"||k.target==="openapi-3.0")?(P.allOf=(V=P.allOf)!=null?V:[],P.allOf.push(F)):(Object.assign(P,F),Object.assign(P,w))}N.isParent||this.override({zodSchema:$,jsonSchema:P,path:(re=N.path)!=null?re:[]})};for(let $ of[...this.seen.entries()].reverse())s($[0],{target:this.target});let c={};if(this.target==="draft-2020-12"?c.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?c.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?c.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(I=i.external)!=null&&I.uri){let $=(C=i.external.registry.get(r))==null?void 0:C.id;if(!$)throw new Error("Schema is missing an `id` property");c.$id=i.external.uri($)}Object.assign(c,t.def);let a=(g=(j=i.external)==null?void 0:j.defs)!=null?g:{};for(let $ of this.seen.entries()){let k=$[1];k.def&&k.defId&&(a[k.defId]=k.def)}i.external||Object.keys(a).length>0&&(this.target==="draft-2020-12"?c.$defs=a:c.definitions=a);try{return JSON.parse(JSON.stringify(c))}catch($){throw new Error("Error converting schema to JSON.")}}};function Qo(e,r){if(e instanceof Te){let i=new xt(r),t={};for(let s of e._idmap.entries()){let[c,a]=s;i.process(a)}let o={},u={registry:e,uri:r==null?void 0:r.uri,defs:t};for(let s of e._idmap.entries()){let[c,a]=s;o[c]=i.emit(a,z(m({},r),{external:u}))}if(Object.keys(t).length>0){let s=i.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:t}}return{schemas:o}}let n=new xt(r);return n.process(e),n.emit(e,r)}function J(e,r){let n=r!=null?r:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return J(t.element,n);case"object":{for(let o in t.shape)if(J(t.shape[o],n))return!0;return!1}case"union":{for(let o of t.options)if(J(o,n))return!0;return!1}case"intersection":return J(t.left,n)||J(t.right,n);case"tuple":{for(let o of t.items)if(J(o,n))return!0;return!!(t.rest&&J(t.rest,n))}case"record":return J(t.keyType,n)||J(t.valueType,n);case"map":return J(t.keyType,n)||J(t.valueType,n);case"set":return J(t.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return J(t.innerType,n);case"lazy":return J(t.getter(),n);case"default":return J(t.innerType,n);case"prefault":return J(t.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return J(t.in,n)||J(t.out,n);case"success":return!1;case"catch":return!1;case"function":return!1;default:}throw new Error("Unknown schema type: ".concat(t.type))}var Ho={};var kt={};_e(kt,{ZodISODate:()=>wr,ZodISODateTime:()=>Ir,ZodISODuration:()=>jr,ZodISOTime:()=>Sr,date:()=>ta,datetime:()=>ea,duration:()=>na,time:()=>ra});var Ir=d("ZodISODateTime",(e,r)=>{mi.init(e,r),A.init(e,r)});function ea(e){return po(Ir,e)}var wr=d("ZodISODate",(e,r)=>{fi.init(e,r),A.init(e,r)});function ta(e){return go(wr,e)}var Sr=d("ZodISOTime",(e,r)=>{pi.init(e,r),A.init(e,r)});function ra(e){return vo(Sr,e)}var jr=d("ZodISODuration",(e,r)=>{gi.init(e,r),A.init(e,r)});function na(e){return ho(jr,e)}var xc=(e,r)=>{Qe.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>et(e,n)},flatten:{value:n=>He(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Se,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Se,2)}},isEmpty:{get(){return e.issues.length===0}}})},Bd=d("ZodError",xc),X=d("ZodError",xc,{Parent:Error});var ia=Pe(X),oa=Ue(X),aa=Ne(X),ua=Ze(X),ca=Tt(X),sa=Et(X),la=At(X),da=Rt(X),ma=Lt(X),fa=Ct(X),pa=Vt(X),ga=Ft(X);var U=d("ZodType",(e,r)=>(O.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...n)=>{var i;return e.clone(_.mergeDefs(r,{checks:[...(i=r.checks)!=null?i:[],...n.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}))},e.clone=(n,i)=>K(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>ia(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>aa(e,n,i),e.parseAsync=async(n,i)=>oa(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>ua(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>ca(e,n,i),e.decode=(n,i)=>sa(e,n,i),e.encodeAsync=async(n,i)=>la(e,n,i),e.decodeAsync=async(n,i)=>da(e,n,i),e.safeEncode=(n,i)=>ma(e,n,i),e.safeDecode=(n,i)=>fa(e,n,i),e.safeEncodeAsync=async(n,i)=>pa(e,n,i),e.safeDecodeAsync=async(n,i)=>ga(e,n,i),e.refine=(n,i)=>e.check(cs(n,i)),e.superRefine=n=>e.check(ss(n)),e.overwrite=n=>e.check(le(n)),e.optional=()=>Pr(e),e.nullable=()=>Ur(e),e.nullish=()=>Pr(Ur(e)),e.nonoptional=n=>qc(e,n),e.array=()=>Tr(e),e.or=n=>Ra([e,n]),e.and=n=>Ec(e,n),e.transform=n=>Nr(e,Va(n)),e.default=n=>Gc(e,n),e.prefault=n=>Xc(e,n),e.catch=n=>Hc(e,n),e.pipe=n=>Nr(e,n),e.readonly=()=>rs(e),e.describe=n=>{let i=e.clone();return oe.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=oe.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return oe.get(e);let i=e.clone();return oe.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),$a=d("_ZodString",(e,r)=>{var i,t,o;ke.init(e,r),U.init(e,r);let n=e._zod.bag;e.format=(i=n.format)!=null?i:null,e.minLength=(t=n.minimum)!=null?t:null,e.maxLength=(o=n.maximum)!=null?o:null,e.regex=(...u)=>e.check(dt(...u)),e.includes=(...u)=>e.check(pt(...u)),e.startsWith=(...u)=>e.check(gt(...u)),e.endsWith=(...u)=>e.check(vt(...u)),e.min=(...u)=>e.check($e(...u)),e.max=(...u)=>e.check(Ae(...u)),e.length=(...u)=>e.check(Re(...u)),e.nonempty=(...u)=>e.check($e(1,...u)),e.lowercase=u=>e.check(mt(u)),e.uppercase=u=>e.check(ft(u)),e.trim=()=>e.check(bt()),e.normalize=(...u)=>e.check($t(...u)),e.toLowerCase=()=>e.check(_t()),e.toUpperCase=()=>e.check(yt())}),It=d("ZodString",(e,r)=>{ke.init(e,r),$a.init(e,r),e.email=n=>e.check(or(ba,n)),e.url=n=>e.check(st(Zr,n)),e.jwt=n=>e.check(zr(Da,n)),e.emoji=n=>e.check(lr(_a,n)),e.guid=n=>e.check(ct(Or,n)),e.uuid=n=>e.check(ar(de,n)),e.uuidv4=n=>e.check(ur(de,n)),e.uuidv6=n=>e.check(cr(de,n)),e.uuidv7=n=>e.check(sr(de,n)),e.nanoid=n=>e.check(dr(ya,n)),e.guid=n=>e.check(ct(Or,n)),e.cuid=n=>e.check(mr(xa,n)),e.cuid2=n=>e.check(fr(ka,n)),e.ulid=n=>e.check(pr(za,n)),e.base64=n=>e.check(yr(Ua,n)),e.base64url=n=>e.check(xr(Na,n)),e.xid=n=>e.check(gr(Ia,n)),e.ksuid=n=>e.check(vr(wa,n)),e.ipv4=n=>e.check(hr(Sa,n)),e.ipv6=n=>e.check($r(ja,n)),e.cidrv4=n=>e.check(br(Oa,n)),e.cidrv6=n=>e.check(_r(Pa,n)),e.e164=n=>e.check(kr(Za,n)),e.datetime=n=>e.check(ea(n)),e.date=n=>e.check(ta(n)),e.time=n=>e.check(ra(n)),e.duration=n=>e.check(na(n))});function va(e){return lo(It,e)}var A=d("ZodStringFormat",(e,r)=>{T.init(e,r),$a.init(e,r)}),ba=d("ZodEmail",(e,r)=>{ni.init(e,r),A.init(e,r)});function Gd(e){return or(ba,e)}var Or=d("ZodGUID",(e,r)=>{ti.init(e,r),A.init(e,r)});function Wd(e){return ct(Or,e)}var de=d("ZodUUID",(e,r)=>{ri.init(e,r),A.init(e,r)});function Xd(e){return ar(de,e)}function qd(e){return ur(de,e)}function Yd(e){return cr(de,e)}function Qd(e){return sr(de,e)}var Zr=d("ZodURL",(e,r)=>{ii.init(e,r),A.init(e,r)});function Hd(e){return st(Zr,e)}function em(e){return st(Zr,m({protocol:/^https?$/,hostname:Q.domain},_.normalizeParams(e)))}var _a=d("ZodEmoji",(e,r)=>{oi.init(e,r),A.init(e,r)});function tm(e){return lr(_a,e)}var ya=d("ZodNanoID",(e,r)=>{ai.init(e,r),A.init(e,r)});function rm(e){return dr(ya,e)}var xa=d("ZodCUID",(e,r)=>{ui.init(e,r),A.init(e,r)});function nm(e){return mr(xa,e)}var ka=d("ZodCUID2",(e,r)=>{ci.init(e,r),A.init(e,r)});function im(e){return fr(ka,e)}var za=d("ZodULID",(e,r)=>{si.init(e,r),A.init(e,r)});function om(e){return pr(za,e)}var Ia=d("ZodXID",(e,r)=>{li.init(e,r),A.init(e,r)});function am(e){return gr(Ia,e)}var wa=d("ZodKSUID",(e,r)=>{di.init(e,r),A.init(e,r)});function um(e){return vr(wa,e)}var Sa=d("ZodIPv4",(e,r)=>{vi.init(e,r),A.init(e,r)});function cm(e){return hr(Sa,e)}var ja=d("ZodIPv6",(e,r)=>{hi.init(e,r),A.init(e,r)});function sm(e){return $r(ja,e)}var Oa=d("ZodCIDRv4",(e,r)=>{$i.init(e,r),A.init(e,r)});function lm(e){return br(Oa,e)}var Pa=d("ZodCIDRv6",(e,r)=>{bi.init(e,r),A.init(e,r)});function dm(e){return _r(Pa,e)}var Ua=d("ZodBase64",(e,r)=>{yi.init(e,r),A.init(e,r)});function mm(e){return yr(Ua,e)}var Na=d("ZodBase64URL",(e,r)=>{xi.init(e,r),A.init(e,r)});function fm(e){return xr(Na,e)}var Za=d("ZodE164",(e,r)=>{ki.init(e,r),A.init(e,r)});function pm(e){return kr(Za,e)}var Da=d("ZodJWT",(e,r)=>{zi.init(e,r),A.init(e,r)});function gm(e){return zr(Da,e)}var wt=d("ZodCustomStringFormat",(e,r)=>{Ii.init(e,r),A.init(e,r)});function vm(e,r,n={}){return Le(wt,e,r,n)}function hm(e){return Le(wt,"hostname",Q.hostname,e)}function $m(e){return Le(wt,"hex",Q.hex,e)}function bm(e,r){var o;let n=(o=r==null?void 0:r.enc)!=null?o:"hex",i="".concat(e,"_").concat(n),t=Q[i];if(!t)throw new Error("Unrecognized hash format: ".concat(i));return Le(wt,i,t,r)}var St=d("ZodNumber",(e,r)=>{var i,t,o,u,s,c,a,l,v;Yt.init(e,r),U.init(e,r),e.gt=(f,h)=>e.check(se(f,h)),e.gte=(f,h)=>e.check(W(f,h)),e.min=(f,h)=>e.check(W(f,h)),e.lt=(f,h)=>e.check(ce(f,h)),e.lte=(f,h)=>e.check(H(f,h)),e.max=(f,h)=>e.check(H(f,h)),e.int=f=>e.check(ha(f)),e.safe=f=>e.check(ha(f)),e.positive=f=>e.check(se(0,f)),e.nonnegative=f=>e.check(W(0,f)),e.negative=f=>e.check(ce(0,f)),e.nonpositive=f=>e.check(H(0,f)),e.multipleOf=(f,h)=>e.check(Ie(f,h)),e.step=(f,h)=>e.check(Ie(f,h)),e.finite=()=>e;let n=e._zod.bag;e.minValue=(o=Math.max((i=n.minimum)!=null?i:Number.NEGATIVE_INFINITY,(t=n.exclusiveMinimum)!=null?t:Number.NEGATIVE_INFINITY))!=null?o:null,e.maxValue=(c=Math.min((u=n.maximum)!=null?u:Number.POSITIVE_INFINITY,(s=n.exclusiveMaximum)!=null?s:Number.POSITIVE_INFINITY))!=null?c:null,e.isInt=((a=n.format)!=null?a:"").includes("int")||Number.isSafeInteger((l=n.multipleOf)!=null?l:.5),e.isFinite=!0,e.format=(v=n.format)!=null?v:null});function kc(e){return $o(St,e)}var Ve=d("ZodNumberFormat",(e,r)=>{wi.init(e,r),St.init(e,r)});function ha(e){return _o(Ve,e)}function _m(e){return yo(Ve,e)}function ym(e){return xo(Ve,e)}function xm(e){return ko(Ve,e)}function km(e){return zo(Ve,e)}var jt=d("ZodBoolean",(e,r)=>{it.init(e,r),U.init(e,r)});function zc(e){return Io(jt,e)}var Ot=d("ZodBigInt",(e,r)=>{var i,t,o;Qt.init(e,r),U.init(e,r),e.gte=(u,s)=>e.check(W(u,s)),e.min=(u,s)=>e.check(W(u,s)),e.gt=(u,s)=>e.check(se(u,s)),e.gte=(u,s)=>e.check(W(u,s)),e.min=(u,s)=>e.check(W(u,s)),e.lt=(u,s)=>e.check(ce(u,s)),e.lte=(u,s)=>e.check(H(u,s)),e.max=(u,s)=>e.check(H(u,s)),e.positive=u=>e.check(se(BigInt(0),u)),e.negative=u=>e.check(ce(BigInt(0),u)),e.nonpositive=u=>e.check(H(BigInt(0),u)),e.nonnegative=u=>e.check(W(BigInt(0),u)),e.multipleOf=(u,s)=>e.check(Ie(u,s));let n=e._zod.bag;e.minValue=(i=n.minimum)!=null?i:null,e.maxValue=(t=n.maximum)!=null?t:null,e.format=(o=n.format)!=null?o:null});function zm(e){return So(Ot,e)}var Ta=d("ZodBigIntFormat",(e,r)=>{Si.init(e,r),Ot.init(e,r)});function Im(e){return Oo(Ta,e)}function wm(e){return Po(Ta,e)}var Ic=d("ZodSymbol",(e,r)=>{ji.init(e,r),U.init(e,r)});function Sm(e){return Uo(Ic,e)}var wc=d("ZodUndefined",(e,r)=>{Oi.init(e,r),U.init(e,r)});function jm(e){return No(wc,e)}var Sc=d("ZodNull",(e,r)=>{Pi.init(e,r),U.init(e,r)});function jc(e){return Zo(Sc,e)}var Oc=d("ZodAny",(e,r)=>{Ui.init(e,r),U.init(e,r)});function Om(){return Do(Oc)}var Pc=d("ZodUnknown",(e,r)=>{Ni.init(e,r),U.init(e,r)});function Ce(){return To(Pc)}var Uc=d("ZodNever",(e,r)=>{Zi.init(e,r),U.init(e,r)});function Ea(e){return Eo(Uc,e)}var Nc=d("ZodVoid",(e,r)=>{Di.init(e,r),U.init(e,r)});function Pm(e){return Ao(Nc,e)}var Dr=d("ZodDate",(e,r)=>{Ti.init(e,r),U.init(e,r),e.min=(i,t)=>e.check(W(i,t)),e.max=(i,t)=>e.check(H(i,t));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Um(e){return Ro(Dr,e)}var Zc=d("ZodArray",(e,r)=>{Ei.init(e,r),U.init(e,r),e.element=r.element,e.min=(n,i)=>e.check($e(n,i)),e.nonempty=n=>e.check($e(1,n)),e.max=(n,i)=>e.check(Ae(n,i)),e.length=(n,i)=>e.check(Re(n,i)),e.unwrap=()=>e.element});function Tr(e,r){return Ko(Zc,e,r)}function Nm(e){let r=e._zod.def.shape;return Ca(Object.keys(r))}var Er=d("ZodObject",(e,r)=>{Ai.init(e,r),U.init(e,r),_.defineLazy(e,"shape",()=>r.shape),e.keyof=()=>Ca(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone(z(m({},e._zod.def),{catchall:n})),e.passthrough=()=>e.clone(z(m({},e._zod.def),{catchall:Ce()})),e.loose=()=>e.clone(z(m({},e._zod.def),{catchall:Ce()})),e.strict=()=>e.clone(z(m({},e._zod.def),{catchall:Ea()})),e.strip=()=>e.clone(z(m({},e._zod.def),{catchall:void 0})),e.extend=n=>_.extend(e,n),e.safeExtend=n=>_.safeExtend(e,n),e.merge=n=>_.merge(e,n),e.pick=n=>_.pick(e,n),e.omit=n=>_.omit(e,n),e.partial=(...n)=>_.partial(Fa,e,n[0]),e.required=(...n)=>_.required(Ja,e,n[0])});function Zm(e,r){let n=m({type:"object",shape:e!=null?e:{}},_.normalizeParams(r));return new Er(n)}function Dm(e,r){return new Er(m({type:"object",shape:e,catchall:Ea()},_.normalizeParams(r)))}function Tm(e,r){return new Er(m({type:"object",shape:e,catchall:Ce()},_.normalizeParams(r)))}var Aa=d("ZodUnion",(e,r)=>{Ht.init(e,r),U.init(e,r),e.options=r.options});function Ra(e,r){return new Aa(m({type:"union",options:e},_.normalizeParams(r)))}var Dc=d("ZodDiscriminatedUnion",(e,r)=>{Aa.init(e,r),Ri.init(e,r)});function Em(e,r,n){return new Dc(m({type:"union",options:r,discriminator:e},_.normalizeParams(n)))}var Tc=d("ZodIntersection",(e,r)=>{Li.init(e,r),U.init(e,r)});function Ec(e,r){return new Tc({type:"intersection",left:e,right:r})}var Ac=d("ZodTuple",(e,r)=>{er.init(e,r),U.init(e,r),e.rest=n=>e.clone(z(m({},e._zod.def),{rest:n}))});function Rc(e,r,n){let i=r instanceof O,t=i?n:r,o=i?r:null;return new Ac(m({type:"tuple",items:e,rest:o},_.normalizeParams(t)))}var La=d("ZodRecord",(e,r)=>{Ci.init(e,r),U.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Lc(e,r,n){return new La(m({type:"record",keyType:e,valueType:r},_.normalizeParams(n)))}function Am(e,r,n){let i=K(e);return i._zod.values=void 0,new La(m({type:"record",keyType:i,valueType:r},_.normalizeParams(n)))}var Cc=d("ZodMap",(e,r)=>{Vi.init(e,r),U.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Rm(e,r,n){return new Cc(m({type:"map",keyType:e,valueType:r},_.normalizeParams(n)))}var Vc=d("ZodSet",(e,r)=>{Fi.init(e,r),U.init(e,r),e.min=(...n)=>e.check(we(...n)),e.nonempty=n=>e.check(we(1,n)),e.max=(...n)=>e.check(Ee(...n)),e.size=(...n)=>e.check(lt(...n))});function Lm(e,r){return new Vc(m({type:"set",valueType:e},_.normalizeParams(r)))}var zt=d("ZodEnum",(e,r)=>{Ji.init(e,r),U.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);let n=new Set(Object.keys(r.entries));e.extract=(i,t)=>{let o={};for(let u of i)if(n.has(u))o[u]=r.entries[u];else throw new Error("Key ".concat(u," not found in enum"));return new zt(z(m(z(m({},r),{checks:[]}),_.normalizeParams(t)),{entries:o}))},e.exclude=(i,t)=>{let o=m({},r.entries);for(let u of i)if(n.has(u))delete o[u];else throw new Error("Key ".concat(u," not found in enum"));return new zt(z(m(z(m({},r),{checks:[]}),_.normalizeParams(t)),{entries:o}))}});function Ca(e,r){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new zt(m({type:"enum",entries:n},_.normalizeParams(r)))}function Cm(e,r){return new zt(m({type:"enum",entries:e},_.normalizeParams(r)))}var Fc=d("ZodLiteral",(e,r)=>{Mi.init(e,r),U.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function Vm(e,r){return new Fc(m({type:"literal",values:Array.isArray(e)?e:[e]},_.normalizeParams(r)))}var Jc=d("ZodFile",(e,r)=>{Bi.init(e,r),U.init(e,r),e.min=(n,i)=>e.check(we(n,i)),e.max=(n,i)=>e.check(Ee(n,i)),e.mime=(n,i)=>e.check(ht(Array.isArray(n)?n:[n],i))});function Fm(e){return Go(Jc,e)}var Mc=d("ZodTransform",(e,r)=>{Ki.init(e,r),U.init(e,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new me(e.constructor.name);n.addIssue=o=>{var u,s,c;if(typeof o=="string")n.issues.push(_.issue(o,n.value,r));else{let a=o;a.fatal&&(a.continue=!1),(u=a.code)!=null||(a.code="custom"),(s=a.input)!=null||(a.input=n.value),(c=a.inst)!=null||(a.inst=e),n.issues.push(_.issue(a))}};let t=r.transform(n.value,n);return t instanceof Promise?t.then(o=>(n.value=o,n)):(n.value=t,n)}});function Va(e){return new Mc({type:"transform",transform:e})}var Fa=d("ZodOptional",(e,r)=>{Gi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Pr(e){return new Fa({type:"optional",innerType:e})}var Bc=d("ZodNullable",(e,r)=>{Wi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Ur(e){return new Bc({type:"nullable",innerType:e})}function Jm(e){return Pr(Ur(e))}var Kc=d("ZodDefault",(e,r)=>{Xi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gc(e,r){return new Kc({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Wc=d("ZodPrefault",(e,r)=>{qi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Xc(e,r){return new Wc({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():_.shallowClone(r)}})}var Ja=d("ZodNonOptional",(e,r)=>{Yi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function qc(e,r){return new Ja(m({type:"nonoptional",innerType:e},_.normalizeParams(r)))}var Yc=d("ZodSuccess",(e,r)=>{Qi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Mm(e){return new Yc({type:"success",innerType:e})}var Qc=d("ZodCatch",(e,r)=>{Hi.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Hc(e,r){return new Qc({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}var es=d("ZodNaN",(e,r)=>{eo.init(e,r),U.init(e,r)});function Bm(e){return Co(es,e)}var Ma=d("ZodPipe",(e,r)=>{to.init(e,r),U.init(e,r),e.in=r.in,e.out=r.out});function Nr(e,r){return new Ma({type:"pipe",in:e,out:r})}var Ba=d("ZodCodec",(e,r)=>{Ma.init(e,r),ot.init(e,r)});function Km(e,r,n){return new Ba({type:"pipe",in:e,out:r,transform:n.decode,reverseTransform:n.encode})}var ts=d("ZodReadonly",(e,r)=>{ro.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function rs(e){return new ts({type:"readonly",innerType:e})}var ns=d("ZodTemplateLiteral",(e,r)=>{no.init(e,r),U.init(e,r)});function Gm(e,r){return new ns(m({type:"template_literal",parts:e},_.normalizeParams(r)))}var is=d("ZodLazy",(e,r)=>{ao.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.getter()});function os(e){return new is({type:"lazy",getter:e})}var as=d("ZodPromise",(e,r)=>{oo.init(e,r),U.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Wm(e){return new as({type:"promise",innerType:e})}var us=d("ZodFunction",(e,r)=>{io.init(e,r),U.init(e,r)});function Xm(e){var r,n;return new us({type:"function",input:Array.isArray(e==null?void 0:e.input)?Rc(e==null?void 0:e.input):(r=e==null?void 0:e.input)!=null?r:Tr(Ce()),output:(n=e==null?void 0:e.output)!=null?n:Ce()})}var Ar=d("ZodCustom",(e,r)=>{uo.init(e,r),U.init(e,r)});function qm(e){let r=new R({check:"custom"});return r._zod.check=e,r}function Ym(e,r){return Wo(Ar,e!=null?e:()=>!0,r)}function cs(e,r={}){return Xo(Ar,e,r)}function ss(e){return qo(e)}function Qm(e,r={error:"Input not instance of ".concat(e.name)}){let n=new Ar(m({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0},_.normalizeParams(r)));return n._zod.bag.Class=e,n}var Hm=(...e)=>Yo({Codec:Ba,Boolean:jt,String:It},...e);function ef(e){let r=os(()=>Ra([va(e),kc(),zc(),jc(),Tr(r),Lc(va(),r)]));return r}function tf(e,r){return Nr(Va(e),r)}var rf={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function nf(e){L({customError:e})}function of(){return L().customError}var Ka;Ka||(Ka={});var Rr={};_e(Rr,{bigint:()=>sf,boolean:()=>cf,date:()=>lf,number:()=>uf,string:()=>af});function af(e){return mo(It,e)}function uf(e){return bo(St,e)}function cf(e){return wo(jt,e)}function sf(e){return jo(Ot,e)}function lf(e){return Lo(Dr,e)}L(tr());var bv=Fe.union([Fe.enum(["low","medium","high","always-visible"]),Fe.number()]);var Lr=5;var df=9,be=200,Cr=10;function ls(e,r,n,i,t,o,u="-1"){var N,P;let s=1/0,c=1/0,a=-1/0,l=-1/0,v=new E(-Cr,0,5,n),f=new E(-Cr,0,r,5),h=new E(r-5,0,r+Cr,n),x=new E(0,n-5,r,n+Cr),S=mf(r,n,i,t,o),I=[v,f,h,x],C=new E(-be,-be,r+be*2,n+be*2);for(let w of e){let D,B;for(let V=0;V<w.bboxes.length;V++){if(w.bboxes[V]==null||(D=w.bboxes[V].boundingBox,B=w.bboxes[V].index,w.lockedToStrategyIndex!==-1&&B!==w.lockedToStrategyIndex))continue;let[re,F,ne,Je]=D,[ee,Vr,Ga,ms]=[w.y-re,w.y+F,w.x-ne,w.x+Je],Fr=Ga,Jr=ee,Wa=ms-Ga,Xa=Vr-ee;s=Math.min(s,Fr)-be,c=Math.min(c,Jr)-be,a=Math.max(a,Fr+Wa)+be,l=Math.max(l,Jr+Xa)+be,w.bboxes[V].boundingRect=new E(Fr,Jr,Wa,Xa)}}let j=new Me(new E(s,c,a-s,l-c)),g={msgId:u,colliders:new Array(e.length),staticColliders:[],debug:[]},$=0;for(let w=0;w<e.length;w++){let D=e[w];((P=(N=D.bboxes)==null?void 0:N[0])==null?void 0:P.index)===df&&(g.staticColliders.push(D.bboxes[0].boundingRect),j.insert(D.bboxes[0].boundingRect),$++)}e=e.slice($,e.length);let k;for(let w=0;w<e.length;w++)if(k=e[w],g.colliders[w]=[-1,0],k.enabledAndVisible){let[D,B,V]=[1/0,-1,void 0];for(let{index:re,boundingRect:F}of k.bboxes){if(F==null)continue;let ne=[];if(ne=j.queryRect(F).filter(ee=>F.intersects(ee)),k.shouldCollideWithScreenEdges&&I.forEach(ee=>{F.intersects(ee)&&ne.push(ee)}),F.intersects(S)){g.colliders[w]=[-1,0,F];break}if(ne.length<=D&&(V=F,B=re,D=ne.length),ne.length===0){j.insert(F),g.colliders[w]=[re,C.contains(F)?0:1,F];break}}k.rank===Lr&&V!=null&&(j.insert(V),g.colliders[w]=[B,C.contains(V)?0:1,V])}else g.colliders[w]=[-1,0];return g}function mf(e,r,n,i,t){switch(t){case"top-left":return new E(0,0,n,i);case"top-right":return new E(e-n,0,n,i);case"bottom-left":return new E(0,r-i,n,i);case"bottom-right":return new E(e-n,r-i,n,i);case"center":return new E((e-n)/2,(r-i)/2,n,i);case"top":return new E((e-n)/2,0,n,i);case"bottom":return new E((e-n)/2,r-i,n,i);case"left":return new E(0,(r-i)/2,n,i);case"right":return new E(e-n,(r-i)/2,n,i);default:return new E(0,r-i,n,i)}}function ds(e){let r=e[0].map(n=>{let i=n[0].map(t=>({index:t[4],boundingBox:[t[0],t[1],t[2],t[3]]}));return{enabledAndVisible:n[1]===1,rank:n[2]===1?Lr:0,x:n[3],y:n[4],shouldCollideWithScreenEdges:n[5]===1,bboxes:i,lockedToStrategyIndex:n[6]}});return{msgId:"-1",totalWidth:e[3],totalHeight:e[2],watermarkWidth:e[4],watermarkHeight:e[5],watermarkPosition:e[6],colliders:r,devicePixelRatio:e[1]}}self.onmessage=e=>{let r=ds(e.data);self.postMessage(ls(r.colliders,r.totalWidth,r.totalHeight,r.watermarkWidth,r.watermarkHeight,r.watermarkPosition,r.msgId))};})();\n';l();l();l();l();l();function bb(e,r){return r.x+r.w<e.x+e.w&&r.x>e.x&&r.y>e.y&&r.y+r.h<e.y+e.h}o(bb,"contains");l();function vb(e,r){let[t,n]=r;return t>=e.x&&t<=e.x+e.w&&n>=e.y&&n<=e.y+e.h}o(vb,"intersectPoint");l();function xb(e,r){let t=r.x,n=r.y,i=r.x+r.w,a=r.y+r.h,u=e.x,s=e.y,d=e.x+e.w,m=e.y+e.h;return t<d&&u<i&&n<m&&s<a}o(xb,"intersects");l();function bi(e,r){for(let t=0;t<r.length;t++)e.push(r[t])}o(bi,"appendItems");l();var tf=class tf{constructor(r,t,n,i,a){h(this,"x");h(this,"y");h(this,"w");h(this,"h");h(this,"userData");this.userData=typeof a>"u"?null:a,this.x=r,this.y=t,this.w=n,this.h=i}contains(r){return r===this?!1:bb(this,r)}intersects(r){return xb(this,r)}intersectsPoint(r){return vb(this,r)}draw(r){r.fillStyle="rgba(123,222,26, 0.8)",r.fillRect(this.x,this.y,this.w,this.h)}};o(tf,"Rectangle");var Pe=tf;var Ro=class Ro{constructor(r,t){h(this,"topLeft");h(this,"topRight");h(this,"bottomLeft");h(this,"bottomRight");h(this,"divided",!1);h(this,"boundary");h(this,"capacity",16);h(this,"objects",[]);h(this,"parent");this.parent=t,this.boundary=r}getSize(){return this.divided?this.objects.length+this.topLeft.getSize()+this.topRight.getSize()+this.bottomLeft.getSize()+this.bottomRight.getSize():this.objects.length}subdivide(){let{x:r,y:t,w:n,h:i}=this.boundary;this.topLeft=new Ro(new Pe(r,t,n/2,i/2),this),this.topRight=new Ro(new Pe(r+n/2,t,n/2,i/2),this),this.bottomLeft=new Ro(new Pe(r,t+i/2,n/2,i/2),this),this.bottomRight=new Ro(new Pe(r+n/2,t+i/2,n/2,i/2),this),this.divided=!0}queryRect(r){let t=[];if(this.boundary.intersects(r))t.push(...this.objects);else return[];return this.divided&&(bi(t,this.topLeft.queryRect(r)),bi(t,this.topRight.queryRect(r)),bi(t,this.bottomLeft.queryRect(r)),bi(t,this.bottomRight.queryRect(r))),t}queryPoint(r){let t=[];if(this.boundary.intersectsPoint(r))t.push(...this.objects);else return[];return this.divided&&(bi(t,this.topLeft.queryPoint(r)),bi(t,this.topRight.queryPoint(r)),bi(t,this.bottomLeft.queryPoint(r)),bi(t,this.bottomRight.queryPoint(r))),t}insert(r){return(this.parent?!this.boundary.contains(r):!this.boundary.intersects(r))?!1:this.objects.length<this.capacity?(this.objects.push(r),!0):(this.divided||this.subdivide(),(this.topLeft.insert(r)||this.topRight.insert(r)||this.bottomLeft.insert(r)||this.bottomRight.insert(r))===!1&&this.objects.push(r),!0)}drawObjects(r){this.objects.forEach(t=>t.draw(r)),this.divided&&(this.topLeft.drawObjects(r),this.topRight.drawObjects(r),this.bottomLeft.drawObjects(r),this.bottomRight.drawObjects(r))}draw(r){r.rect(this.boundary.x,this.boundary.y,this.boundary.w,this.boundary.h),this.divided&&(this.topLeft.draw(r),this.topRight.draw(r),this.bottomLeft.draw(r),this.bottomRight.draw(r)),r.strokeStyle="black",r.lineWidth=4,r.stroke()}};o(Ro,"QuadTree");var tn=Ro;l();var rf=9,to=200,ul=10;function Eb(e,r,t,n,i,a,u="-1"){var V,$;let s=1/0,d=1/0,m=-1/0,p=-1/0,g=new Pe(-ul,0,5,t),b=new Pe(-ul,0,r,5),v=new Pe(r-5,0,r+ul,t),C=new Pe(0,t-5,r,t+ul),A=yC(r,t,n,i,a),x=[g,b,v,C],E=new Pe(-to,-to,r+to*2,t+to*2);for(let O of e){let M,Z;for(let z=0;z<O.bboxes.length;z++){if(O.bboxes[z]==null||(M=O.bboxes[z].boundingBox,Z=O.bboxes[z].index,O.lockedToStrategyIndex!==-1&&Z!==O.lockedToStrategyIndex))continue;let[re,k,H,q]=M,[G,ae,oe,Y]=[O.y-re,O.y+k,O.x-H,O.x+q],le=oe,fe=G,xe=Y-oe,be=ae-G;s=Math.min(s,le)-to,d=Math.min(d,fe)-to,m=Math.max(m,le+xe)+to,p=Math.max(p,fe+be)+to,O.bboxes[z].boundingRect=new Pe(le,fe,xe,be)}}let S=new tn(new Pe(s,d,m-s,p-d)),D={msgId:u,colliders:new Array(e.length),staticColliders:[],debug:[]},I=0;for(let O=0;O<e.length;O++){let M=e[O];(($=(V=M.bboxes)==null?void 0:V[0])==null?void 0:$.index)===rf&&(D.staticColliders.push(M.bboxes[0].boundingRect),S.insert(M.bboxes[0].boundingRect),I++)}e=e.slice(I,e.length);let T;for(let O=0;O<e.length;O++)if(T=e[O],D.colliders[O]=[-1,0],T.enabledAndVisible){let[M,Z,z]=[1/0,-1,void 0];for(let{index:re,boundingRect:k}of T.bboxes){if(k==null)continue;let H=[];if(H=S.queryRect(k).filter(G=>k.intersects(G)),T.shouldCollideWithScreenEdges&&x.forEach(G=>{k.intersects(G)&&H.push(G)}),k.intersects(A)){D.colliders[O]=[-1,0,k];break}if(H.length<=M&&(z=k,Z=re,M=H.length),H.length===0){S.insert(k),D.colliders[O]=[re,E.contains(k)?0:1,k];break}}T.rank===Pa&&z!=null&&(S.insert(z),D.colliders[O]=[Z,E.contains(z)?0:1,z])}else D.colliders[O]=[-1,0];return D}o(Eb,"processColliders");function yC(e,r,t,n,i){switch(i){case"top-left":return new Pe(0,0,t,n);case"top-right":return new Pe(e-t,0,t,n);case"bottom-left":return new Pe(0,r-n,t,n);case"bottom-right":return new Pe(e-t,r-n,t,n);case"center":return new Pe((e-t)/2,(r-n)/2,t,n);case"top":return new Pe((e-t)/2,0,t,n);case"bottom":return new Pe((e-t)/2,r-n,t,n);case"left":return new Pe(0,(r-n)/2,t,n);case"right":return new Pe(e-t,(r-n)/2,t,n);default:return new Pe(0,r-n,t,n)}}o(yC,"getWatermarkBoundary");l();l();function Ib(e){let r=e[0].map(t=>{let n=t[0].map(i=>({index:i[4],boundingBox:[i[0],i[1],i[2],i[3]]}));return{enabledAndVisible:t[1]===1,rank:t[2]===1?Pa:0,x:t[3],y:t[4],shouldCollideWithScreenEdges:t[5]===1,bboxes:n,lockedToStrategyIndex:t[6]}});return{msgId:"-1",totalWidth:e[3],totalHeight:e[2],watermarkWidth:e[4],watermarkHeight:e[5],watermarkPosition:e[6],colliders:r,devicePixelRatio:e[1]}}o(Ib,"unpackMessage");var nf=class nf{constructor(){h(this,"onerror",o(()=>{},"onerror"));h(this,"onmessage",o(()=>{},"onmessage"));h(this,"postMessage",o(r=>{let t=Ib(r);this.onmessage({data:Eb(t.colliders,t.totalWidth,t.totalHeight,t.watermarkWidth,t.watermarkHeight,t.watermarkPosition,t.msgId)})},"postMessage"));h(this,"terminate",o(()=>{},"terminate"))}};o(nf,"SyncWorker");var ns=nf;l();l();globalThis.MappedinDebug||(globalThis.MappedinDebug={});globalThis.MappedinDebug.__idleCallbackInteractionState={isInteracting:!1,interactionCheckers:[],pendingCallbacks:[],registerInteractionChecker:o(function(e){this.interactionCheckers.push(e)},"registerInteractionChecker"),unregisterInteractionChecker:o(function(e){let r;for(let t=this.interactionCheckers.length-1;t>=0;t--)if(r=this.interactionCheckers[t],r===e){this.interactionCheckers.splice(t,1);break}},"unregisterInteractionChecker"),checkInteraction:o(function(){let e=!1;for(let r=0;r<this.interactionCheckers.length;r++)if(e=this.interactionCheckers[r](),e)return!0;return!1},"checkInteraction"),addPendingCallback:o(function(e,r){this.pendingCallbacks.push({callback:e,timeoutId:r}),this.scheduleDeferredCheck()},"addPendingCallback"),scheduleDeferredCheck:o(function(){var e=this;this.checkTimeoutId||(this.checkTimeoutId=setTimeout(o(function r(){if(e.checkInteraction())e.checkTimeoutId=setTimeout(r,16);else{e.checkTimeoutId=null;var t=e.pendingCallbacks.slice();e.pendingCallbacks=[];let n;for(let i=0;i<t.length;i++)if(n=t[i],n&&n.callback)try{n.callback()}catch(a){}}},"checkAndExecute"),16))},"scheduleDeferredCheck"),removePendingCallback:o(function(e){let r;for(let t=this.pendingCallbacks.length-1;t>=0;t--)if(r=this.pendingCallbacks[t],r.timeoutId===e){this.pendingCallbacks.splice(t,1);break}},"removePendingCallback")};globalThis.requestIdleCallback=globalThis.requestIdleCallback||function(e){var a,u;var r=performance.now(),t,n=!1,i=o(function(){if(!n){n=!0;try{e({didTimeout:!1,timeRemaining:o(function(){return Math.max(0,50-(performance.now()-r))},"timeRemaining")})}catch(s){}}},"wrappedCallback");return(u=(a=globalThis.MappedinDebug)==null?void 0:a.__idleCallbackInteractionState)!=null&&u.checkInteraction()?(t=Date.now()+Math.random(),globalThis.MappedinDebug.__idleCallbackInteractionState.addPendingCallback(i,t),t):(t=setTimeout(i,0),t)};globalThis.cancelIdleCallback=globalThis.cancelIdleCallback||function(e){var r,t;clearTimeout(e),(t=(r=globalThis.MappedinDebug)==null?void 0:r.__idleCallbackInteractionState)==null||t.removePendingCallback(e)};l();l();l();l();l();l();l();l();l();l();l();l();function of(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}o(of,"getCoord");function No(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}o(No,"getCoords");function ka(e){return e.type==="Feature"?e.geometry:e}o(ka,"getGeom");function ro(e,r,t){if(t===void 0&&(t={}),!e)throw new Error("point is required");if(!r)throw new Error("polygon is required");var n=of(e),i=ka(r),a=i.type,u=r.bbox,s=i.coordinates;if(u&&bC(n,u)===!1)return!1;a==="Polygon"&&(s=[s]);for(var d=!1,m=0;m<s.length&&!d;m++)if(Cb(n,s[m][0],t.ignoreBoundary)){for(var p=!1,g=1;g<s[m].length&&!p;)Cb(n,s[m][g],!t.ignoreBoundary)&&(p=!0),g++;p||(d=!0)}return d}o(ro,"booleanPointInPolygon");function Cb(e,r,t){var n=!1;r[0][0]===r[r.length-1][0]&&r[0][1]===r[r.length-1][1]&&(r=r.slice(0,r.length-1));for(var i=0,a=r.length-1;i<r.length;a=i++){var u=r[i][0],s=r[i][1],d=r[a][0],m=r[a][1],p=e[1]*(u-d)+s*(d-e[0])+m*(e[0]-u)===0&&(u-e[0])*(d-e[0])<=0&&(s-e[1])*(m-e[1])<=0;if(p)return!t;var g=s>e[1]!=m>e[1]&&e[0]<(d-u)*(e[1]-s)/(m-s)+u;g&&(n=!n)}return n}o(Cb,"inRing");function bC(e,r){return r[0]<=e[0]&&r[1]<=e[1]&&r[2]>=e[0]&&r[3]>=e[1]}o(bC,"inBBox");l();l();l();l();l();l();l();l();l();l();var CC=Tc(uf());l();var xC=Hc("Navigator");l();l();l();var SC=Tc(uf());l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();l();var Ne={};Ki(Ne,{HasPropertyKey:()=>wC,IsArray:()=>hr,IsAsyncIterator:()=>sf,IsBigInt:()=>os,IsBoolean:()=>no,IsDate:()=>Uo,IsFunction:()=>cf,IsIterator:()=>lf,IsNull:()=>df,IsNumber:()=>Cn,IsObject:()=>ut,IsRegExp:()=>as,IsString:()=>pt,IsSymbol:()=>mf,IsUint8Array:()=>vi,IsUndefined:()=>It});l();function wC(e,r){return r in e}o(wC,"HasPropertyKey");function sf(e){return ut(e)&&!hr(e)&&!vi(e)&&Symbol.asyncIterator in e}o(sf,"IsAsyncIterator");function hr(e){return Array.isArray(e)}o(hr,"IsArray");function os(e){return typeof e=="bigint"}o(os,"IsBigInt");function no(e){return typeof e=="boolean"}o(no,"IsBoolean");function Uo(e){return e instanceof globalThis.Date}o(Uo,"IsDate");function cf(e){return typeof e=="function"}o(cf,"IsFunction");function lf(e){return ut(e)&&!hr(e)&&!vi(e)&&Symbol.iterator in e}o(lf,"IsIterator");function df(e){return e===null}o(df,"IsNull");function Cn(e){return typeof e=="number"}o(Cn,"IsNumber");function ut(e){return typeof e=="object"&&e!==null}o(ut,"IsObject");function as(e){return e instanceof globalThis.RegExp}o(as,"IsRegExp");function pt(e){return typeof e=="string"}o(pt,"IsString");function mf(e){return typeof e=="symbol"}o(mf,"IsSymbol");function vi(e){return e instanceof globalThis.Uint8Array}o(vi,"IsUint8Array");function It(e){return e===void 0}o(It,"IsUndefined");function AC(e){return e.map(r=>dl(r))}o(AC,"ArrayType");function PC(e){return new Date(e.getTime())}o(PC,"DateType");function FC(e){return new Uint8Array(e)}o(FC,"Uint8ArrayType");function BC(e){return new RegExp(e.source,e.flags)}o(BC,"RegExpType");function OC(e){let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=dl(e[t]);for(let t of Object.getOwnPropertySymbols(e))r[t]=dl(e[t]);return r}o(OC,"ObjectType");function dl(e){return hr(e)?AC(e):Uo(e)?PC(e):vi(e)?FC(e):as(e)?BC(e):ut(e)?OC(e):e}o(dl,"Visit");function gt(e){return dl(e)}o(gt,"Clone");function Db(e){return e.map(r=>us(r))}o(Db,"CloneRest");function us(e,r){return r===void 0?gt(e):gt(N(N({},r),e))}o(us,"CloneType");l();l();l();function ml(e){return we(e)&&Symbol.asyncIterator in e}o(ml,"IsAsyncIterator");function pl(e){return we(e)&&Symbol.iterator in e}o(pl,"IsIterator");function pf(e){return we(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}o(pf,"IsStandardObject");function fl(e){return e instanceof Promise}o(fl,"IsPromise");function Pr(e){return e instanceof Date&&Number.isFinite(e.getTime())}o(Pr,"IsDate");function Sb(e){return e instanceof globalThis.Map}o(Sb,"IsMap");function wb(e){return e instanceof globalThis.Set}o(wb,"IsSet");function rn(e){return ArrayBuffer.isView(e)}o(rn,"IsTypedArray");function _a(e){return e instanceof globalThis.Uint8Array}o(_a,"IsUint8Array");function ye(e,r){return r in e}o(ye,"HasPropertyKey");function we(e){return e!==null&&typeof e=="object"}o(we,"IsObject");function Ie(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}o(Ie,"IsArray");function Ct(e){return e===void 0}o(Ct,"IsUndefined");function xi(e){return e===null}o(xi,"IsNull");function Kn(e){return typeof e=="boolean"}o(Kn,"IsBoolean");function me(e){return typeof e=="number"}o(me,"IsNumber");function hl(e){return Number.isInteger(e)}o(hl,"IsInteger");function ir(e){return typeof e=="bigint"}o(ir,"IsBigInt");function Ue(e){return typeof e=="string"}o(Ue,"IsString");function io(e){return typeof e=="function"}o(io,"IsFunction");function Ei(e){return typeof e=="symbol"}o(Ei,"IsSymbol");function or(e){return ir(e)||Kn(e)||xi(e)||me(e)||Ue(e)||Ei(e)||Ct(e)}o(or,"IsValueType");var et;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function r(u,s){return e.ExactOptionalPropertyTypes?s in u:u[s]!==void 0}o(r,"IsExactOptionalProperty"),e.IsExactOptionalProperty=r;function t(u){let s=we(u);return e.AllowArrayObject?s:s&&!Ie(u)}o(t,"IsObjectLike"),e.IsObjectLike=t;function n(u){return t(u)&&!(u instanceof Date)&&!(u instanceof Uint8Array)}o(n,"IsRecordLike"),e.IsRecordLike=n;function i(u){return e.AllowNaN?me(u):Number.isFinite(u)}o(i,"IsNumberLike"),e.IsNumberLike=i;function a(u){let s=Ct(u);return e.AllowNullVoid?s||u===null:s}o(a,"IsVoidLike"),e.IsVoidLike=a})(et||(et={}));l();function MC(e){return globalThis.Object.freeze(e).map(r=>ss(r))}o(MC,"ImmutableArray");function TC(e){let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=ss(e[t]);for(let t of Object.getOwnPropertySymbols(e))r[t]=ss(e[t]);return globalThis.Object.freeze(r)}o(TC,"ImmutableObject");function ss(e){return hr(e)?MC(e):Uo(e)?e:vi(e)?e:as(e)?e:ut(e)?TC(e):e}o(ss,"Immutable");function W(e,r){let t=r!==void 0?N(N({},r),e):e;switch(et.InstanceMode){case"freeze":return ss(t);case"clone":return gt(t);default:return t}}o(W,"CreateType");l();var ff=class ff extends Error{constructor(r){super(r)}};o(ff,"TypeBoxError");var he=ff;l();l();l();var yt=Symbol.for("TypeBox.Transform"),Ii=Symbol.for("TypeBox.Readonly"),Fr=Symbol.for("TypeBox.Optional"),nn=Symbol.for("TypeBox.Hint"),L=Symbol.for("TypeBox.Kind");function Ab(e){return ut(e)&&e[Ii]==="Readonly"}o(Ab,"IsReadonly");function qn(e){return ut(e)&&e[Fr]==="Optional"}o(qn,"IsOptional");function hf(e){return Ge(e,"Any")}o(hf,"IsAny");function Ci(e){return Ge(e,"Array")}o(Ci,"IsArray");function cs(e){return Ge(e,"AsyncIterator")}o(cs,"IsAsyncIterator");function gf(e){return Ge(e,"BigInt")}o(gf,"IsBigInt");function yf(e){return Ge(e,"Boolean")}o(yf,"IsBoolean");function ls(e){return Ge(e,"Constructor")}o(ls,"IsConstructor");function kC(e){return Ge(e,"Date")}o(kC,"IsDate");function ds(e){return Ge(e,"Function")}o(ds,"IsFunction");function jo(e){return Ge(e,"Integer")}o(jo,"IsInteger");function Rt(e){return Ge(e,"Intersect")}o(Rt,"IsIntersect");function ms(e){return Ge(e,"Iterator")}o(ms,"IsIterator");function Ge(e,r){return ut(e)&&L in e&&e[L]===r}o(Ge,"IsKindOf");function Di(e){return Ge(e,"Literal")}o(Di,"IsLiteral");function Gr(e){return Ge(e,"MappedKey")}o(Gr,"IsMappedKey");function bt(e){return Ge(e,"MappedResult")}o(bt,"IsMappedResult");function oo(e){return Ge(e,"Never")}o(oo,"IsNever");function _C(e){return Ge(e,"Not")}o(_C,"IsNot");function LC(e){return Ge(e,"Null")}o(LC,"IsNull");function zo(e){return Ge(e,"Number")}o(zo,"IsNumber");function $t(e){return Ge(e,"Object")}o($t,"IsObject");function $o(e){return Ge(e,"Promise")}o($o,"IsPromise");function bf(e){return Ge(e,"Record")}o(bf,"IsRecord");function vf(e){return Ge(e,"Ref")}o(vf,"IsRef");function xf(e){return Ge(e,"RegExp")}o(xf,"IsRegExp");function ps(e){return Ge(e,"String")}o(ps,"IsString");function RC(e){return Ge(e,"Symbol")}o(RC,"IsSymbol");function Zr(e){return Ge(e,"TemplateLiteral")}o(Zr,"IsTemplateLiteral");function NC(e){return Ge(e,"This")}o(NC,"IsThis");function La(e){return ut(e)&&yt in e}o(La,"IsTransform");function Dn(e){return Ge(e,"Tuple")}o(Dn,"IsTuple");function UC(e){return Ge(e,"Undefined")}o(UC,"IsUndefined");function Ke(e){return Ge(e,"Union")}o(Ke,"IsUnion");function jC(e){return Ge(e,"Uint8Array")}o(jC,"IsUint8Array");function zC(e){return Ge(e,"Unknown")}o(zC,"IsUnknown");function $C(e){return Ge(e,"Unsafe")}o($C,"IsUnsafe");function GC(e){return Ge(e,"Void")}o(GC,"IsVoid");function ao(e){return ut(e)&&L in e&&pt(e[L])}o(ao,"IsKind");function Sn(e){return hf(e)||Ci(e)||yf(e)||gf(e)||cs(e)||ls(e)||kC(e)||ds(e)||jo(e)||Rt(e)||ms(e)||Di(e)||Gr(e)||bt(e)||oo(e)||_C(e)||LC(e)||zo(e)||$t(e)||$o(e)||bf(e)||vf(e)||xf(e)||ps(e)||RC(e)||Zr(e)||NC(e)||Dn(e)||UC(e)||Ke(e)||jC(e)||zC(e)||$C(e)||GC(e)||ao(e)}o(Sn,"IsSchema");var w={};Ki(w,{IsAny:()=>Ob,IsArray:()=>Mb,IsAsyncIterator:()=>Tb,IsBigInt:()=>kb,IsBoolean:()=>_b,IsConstructor:()=>Lb,IsDate:()=>Rb,IsFunction:()=>Nb,IsInteger:()=>Ub,IsIntersect:()=>jb,IsIterator:()=>zb,IsKind:()=>d1,IsKindOf:()=>ze,IsLiteral:()=>hs,IsLiteralBoolean:()=>qC,IsLiteralNumber:()=>Gb,IsLiteralString:()=>$b,IsLiteralValue:()=>Zb,IsMappedKey:()=>Vb,IsMappedResult:()=>Wb,IsNever:()=>Hb,IsNot:()=>Kb,IsNull:()=>qb,IsNumber:()=>Xb,IsObject:()=>Jb,IsOptional:()=>KC,IsPromise:()=>Yb,IsProperties:()=>Df,IsReadonly:()=>HC,IsRecord:()=>Qb,IsRecursive:()=>XC,IsRef:()=>e1,IsRegExp:()=>t1,IsSchema:()=>je,IsString:()=>r1,IsSymbol:()=>n1,IsTemplateLiteral:()=>i1,IsThis:()=>o1,IsTransform:()=>ft,IsTuple:()=>a1,IsUint8Array:()=>u1,IsUndefined:()=>Ra,IsUnion:()=>Sf,IsUnionLiteral:()=>JC,IsUnknown:()=>s1,IsUnsafe:()=>c1,IsVoid:()=>l1,TypeGuardUnknownTypeError:()=>Ef});l();var wf=class wf extends he{};o(wf,"TypeGuardUnknownTypeError");var Ef=wf,ZC=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function Pb(e){try{return new RegExp(e),!0}catch(r){return!1}}o(Pb,"IsPattern");function If(e){if(!pt(e))return!1;for(let r=0;r<e.length;r++){let t=e.charCodeAt(r);if(t>=7&&t<=13||t===27||t===127)return!1}return!0}o(If,"IsControlCharacterFree");function Fb(e){return Cf(e)||je(e)}o(Fb,"IsAdditionalProperties");function fs(e){return It(e)||os(e)}o(fs,"IsOptionalBigInt");function dt(e){return It(e)||Cn(e)}o(dt,"IsOptionalNumber");function Cf(e){return It(e)||no(e)}o(Cf,"IsOptionalBoolean");function rt(e){return It(e)||pt(e)}o(rt,"IsOptionalString");function VC(e){return It(e)||pt(e)&&If(e)&&Pb(e)}o(VC,"IsOptionalPattern");function WC(e){return It(e)||pt(e)&&If(e)}o(WC,"IsOptionalFormat");function Bb(e){return It(e)||je(e)}o(Bb,"IsOptionalSchema");function HC(e){return ut(e)&&e[Ii]==="Readonly"}o(HC,"IsReadonly");function KC(e){return ut(e)&&e[Fr]==="Optional"}o(KC,"IsOptional");function Ob(e){return ze(e,"Any")&&rt(e.$id)}o(Ob,"IsAny");function Mb(e){return ze(e,"Array")&&e.type==="array"&&rt(e.$id)&&je(e.items)&&dt(e.minItems)&&dt(e.maxItems)&&Cf(e.uniqueItems)&&Bb(e.contains)&&dt(e.minContains)&&dt(e.maxContains)}o(Mb,"IsArray");function Tb(e){return ze(e,"AsyncIterator")&&e.type==="AsyncIterator"&&rt(e.$id)&&je(e.items)}o(Tb,"IsAsyncIterator");function kb(e){return ze(e,"BigInt")&&e.type==="bigint"&&rt(e.$id)&&fs(e.exclusiveMaximum)&&fs(e.exclusiveMinimum)&&fs(e.maximum)&&fs(e.minimum)&&fs(e.multipleOf)}o(kb,"IsBigInt");function _b(e){return ze(e,"Boolean")&&e.type==="boolean"&&rt(e.$id)}o(_b,"IsBoolean");function Lb(e){return ze(e,"Constructor")&&e.type==="Constructor"&&rt(e.$id)&&hr(e.parameters)&&e.parameters.every(r=>je(r))&&je(e.returns)}o(Lb,"IsConstructor");function Rb(e){return ze(e,"Date")&&e.type==="Date"&&rt(e.$id)&&dt(e.exclusiveMaximumTimestamp)&&dt(e.exclusiveMinimumTimestamp)&&dt(e.maximumTimestamp)&&dt(e.minimumTimestamp)&&dt(e.multipleOfTimestamp)}o(Rb,"IsDate");function Nb(e){return ze(e,"Function")&&e.type==="Function"&&rt(e.$id)&&hr(e.parameters)&&e.parameters.every(r=>je(r))&&je(e.returns)}o(Nb,"IsFunction");function Ub(e){return ze(e,"Integer")&&e.type==="integer"&&rt(e.$id)&&dt(e.exclusiveMaximum)&&dt(e.exclusiveMinimum)&&dt(e.maximum)&&dt(e.minimum)&&dt(e.multipleOf)}o(Ub,"IsInteger");function Df(e){return ut(e)&&Object.entries(e).every(([r,t])=>If(r)&&je(t))}o(Df,"IsProperties");function jb(e){return ze(e,"Intersect")&&!(pt(e.type)&&e.type!=="object")&&hr(e.allOf)&&e.allOf.every(r=>je(r)&&!ft(r))&&rt(e.type)&&(Cf(e.unevaluatedProperties)||Bb(e.unevaluatedProperties))&&rt(e.$id)}o(jb,"IsIntersect");function zb(e){return ze(e,"Iterator")&&e.type==="Iterator"&&rt(e.$id)&&je(e.items)}o(zb,"IsIterator");function ze(e,r){return ut(e)&&L in e&&e[L]===r}o(ze,"IsKindOf");function $b(e){return hs(e)&&pt(e.const)}o($b,"IsLiteralString");function Gb(e){return hs(e)&&Cn(e.const)}o(Gb,"IsLiteralNumber");function qC(e){return hs(e)&&no(e.const)}o(qC,"IsLiteralBoolean");function hs(e){return ze(e,"Literal")&&rt(e.$id)&&Zb(e.const)}o(hs,"IsLiteral");function Zb(e){return no(e)||Cn(e)||pt(e)}o(Zb,"IsLiteralValue");function Vb(e){return ze(e,"MappedKey")&&hr(e.keys)&&e.keys.every(r=>Cn(r)||pt(r))}o(Vb,"IsMappedKey");function Wb(e){return ze(e,"MappedResult")&&Df(e.properties)}o(Wb,"IsMappedResult");function Hb(e){return ze(e,"Never")&&ut(e.not)&&Object.getOwnPropertyNames(e.not).length===0}o(Hb,"IsNever");function Kb(e){return ze(e,"Not")&&je(e.not)}o(Kb,"IsNot");function qb(e){return ze(e,"Null")&&e.type==="null"&&rt(e.$id)}o(qb,"IsNull");function Xb(e){return ze(e,"Number")&&e.type==="number"&&rt(e.$id)&&dt(e.exclusiveMaximum)&&dt(e.exclusiveMinimum)&&dt(e.maximum)&&dt(e.minimum)&&dt(e.multipleOf)}o(Xb,"IsNumber");function Jb(e){return ze(e,"Object")&&e.type==="object"&&rt(e.$id)&&Df(e.properties)&&Fb(e.additionalProperties)&&dt(e.minProperties)&&dt(e.maxProperties)}o(Jb,"IsObject");function Yb(e){return ze(e,"Promise")&&e.type==="Promise"&&rt(e.$id)&&je(e.item)}o(Yb,"IsPromise");function Qb(e){return ze(e,"Record")&&e.type==="object"&&rt(e.$id)&&Fb(e.additionalProperties)&&ut(e.patternProperties)&&(r=>{let t=Object.getOwnPropertyNames(r.patternProperties);return t.length===1&&Pb(t[0])&&ut(r.patternProperties)&&je(r.patternProperties[t[0]])})(e)}o(Qb,"IsRecord");function XC(e){return ut(e)&&nn in e&&e[nn]==="Recursive"}o(XC,"IsRecursive");function e1(e){return ze(e,"Ref")&&rt(e.$id)&&pt(e.$ref)}o(e1,"IsRef");function t1(e){return ze(e,"RegExp")&&rt(e.$id)&&pt(e.source)&&pt(e.flags)&&dt(e.maxLength)&&dt(e.minLength)}o(t1,"IsRegExp");function r1(e){return ze(e,"String")&&e.type==="string"&&rt(e.$id)&&dt(e.minLength)&&dt(e.maxLength)&&VC(e.pattern)&&WC(e.format)}o(r1,"IsString");function n1(e){return ze(e,"Symbol")&&e.type==="symbol"&&rt(e.$id)}o(n1,"IsSymbol");function i1(e){return ze(e,"TemplateLiteral")&&e.type==="string"&&pt(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}o(i1,"IsTemplateLiteral");function o1(e){return ze(e,"This")&&rt(e.$id)&&pt(e.$ref)}o(o1,"IsThis");function ft(e){return ut(e)&&yt in e}o(ft,"IsTransform");function a1(e){return ze(e,"Tuple")&&e.type==="array"&&rt(e.$id)&&Cn(e.minItems)&&Cn(e.maxItems)&&e.minItems===e.maxItems&&(It(e.items)&&It(e.additionalItems)&&e.minItems===0||hr(e.items)&&e.items.every(r=>je(r)))}o(a1,"IsTuple");function Ra(e){return ze(e,"Undefined")&&e.type==="undefined"&&rt(e.$id)}o(Ra,"IsUndefined");function JC(e){return Sf(e)&&e.anyOf.every(r=>$b(r)||Gb(r))}o(JC,"IsUnionLiteral");function Sf(e){return ze(e,"Union")&&rt(e.$id)&&ut(e)&&hr(e.anyOf)&&e.anyOf.every(r=>je(r))}o(Sf,"IsUnion");function u1(e){return ze(e,"Uint8Array")&&e.type==="Uint8Array"&&rt(e.$id)&&dt(e.minByteLength)&&dt(e.maxByteLength)}o(u1,"IsUint8Array");function s1(e){return ze(e,"Unknown")&&rt(e.$id)}o(s1,"IsUnknown");function c1(e){return ze(e,"Unsafe")}o(c1,"IsUnsafe");function l1(e){return ze(e,"Void")&&e.type==="void"&&rt(e.$id)}o(l1,"IsVoid");function d1(e){return ut(e)&&L in e&&pt(e[L])&&!ZC.includes(e[L])}o(d1,"IsKind");function je(e){return ut(e)&&(Ob(e)||Mb(e)||_b(e)||kb(e)||Tb(e)||Lb(e)||Rb(e)||Nb(e)||Ub(e)||jb(e)||zb(e)||hs(e)||Vb(e)||Wb(e)||Hb(e)||Kb(e)||qb(e)||Xb(e)||Jb(e)||Yb(e)||Qb(e)||e1(e)||t1(e)||r1(e)||n1(e)||i1(e)||o1(e)||a1(e)||Ra(e)||Sf(e)||u1(e)||s1(e)||c1(e)||l1(e)||d1(e))}o(je,"IsSchema");l();var Af="(true|false)",gs="(0|[1-9][0-9]*)",Pf="(.*)",YC="(?!.*)",fR="^".concat(Af,"$"),Si="^".concat(gs,"$"),wi="^".concat(Pf,"$"),m1="^".concat(YC,"$");l();var Br={};Ki(Br,{Clear:()=>e2,Delete:()=>t2,Entries:()=>QC,Get:()=>i2,Has:()=>r2,Set:()=>n2});l();var Na=new Map;function QC(){return new Map(Na)}o(QC,"Entries");function e2(){return Na.clear()}o(e2,"Clear");function t2(e){return Na.delete(e)}o(t2,"Delete");function r2(e){return Na.has(e)}o(r2,"Has");function n2(e,r){Na.set(e,r)}o(n2,"Set");function i2(e){return Na.get(e)}o(i2,"Get");var Gt={};Ki(Gt,{Clear:()=>a2,Delete:()=>u2,Entries:()=>o2,Get:()=>l2,Has:()=>s2,Set:()=>c2});l();var Ua=new Map;function o2(){return new Map(Ua)}o(o2,"Entries");function a2(){return Ua.clear()}o(a2,"Clear");function u2(e){return Ua.delete(e)}o(u2,"Delete");function s2(e){return Ua.has(e)}o(s2,"Has");function c2(e,r){Ua.set(e,r)}o(c2,"Set");function l2(e){return Ua.get(e)}o(l2,"Get");l();function p1(e,r){return e.includes(r)}o(p1,"SetIncludes");function f1(e){return[...new Set(e)]}o(f1,"SetDistinct");function d2(e,r){return e.filter(t=>r.includes(t))}o(d2,"SetIntersect");function m2(e,r){return e.reduce((t,n)=>d2(t,n),r)}o(m2,"SetIntersectManyResolve");function h1(e){return e.length===1?e[0]:e.length>1?m2(e.slice(1),e[0]):[]}o(h1,"SetIntersectMany");function g1(e){let r=[];for(let t of e)r.push(...t);return r}o(g1,"SetUnionMany");l();function uo(e){return W({[L]:"Any"},e)}o(uo,"Any");l();function gl(e,r){return W({[L]:"Array",type:"array",items:e},r)}o(gl,"Array");l();function yl(e,r){return W({[L]:"AsyncIterator",type:"AsyncIterator",items:e},r)}o(yl,"AsyncIterator");l();l();l();function p2(e,r){let i=e,{[r]:t}=i;return Bo(i,[Mc(r)])}o(p2,"DiscardKey");function Ot(e,r){return r.reduce((t,n)=>p2(t,n),e)}o(Ot,"Discard");l();function nt(e){return W({[L]:"Never",not:{}},e)}o(nt,"Never");l();l();function Ze(e){return W({[L]:"MappedResult",properties:e})}o(Ze,"MappedResult");l();l();function bl(e,r,t){return W({[L]:"Constructor",type:"Constructor",parameters:e,returns:r},t)}o(bl,"Constructor");l();function so(e,r,t){return W({[L]:"Function",type:"Function",parameters:e,returns:r},t)}o(so,"Function");l();l();l();l();function ys(e,r){return W({[L]:"Union",anyOf:e},r)}o(ys,"UnionCreate");function f2(e){return e.some(r=>qn(r))}o(f2,"IsUnionOptional");function y1(e){return e.map(r=>qn(r)?h2(r):r)}o(y1,"RemoveOptionalFromRest");function h2(e){return Ot(e,[Fr])}o(h2,"RemoveOptionalFromType");function g2(e,r){return f2(e)?Lr(ys(y1(e),r)):ys(y1(e),r)}o(g2,"ResolveUnion");function Xn(e,r){return e.length===0?nt(r):e.length===1?W(e[0],r):g2(e,r)}o(Xn,"UnionEvaluated");l();function it(e,r){return e.length===0?nt(r):e.length===1?W(e[0],r):ys(e,r)}o(it,"Union");l();l();l();var Bf=class Bf extends he{};o(Bf,"TemplateLiteralParserError");var vl=Bf;function y2(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}o(y2,"Unescape");function Ff(e,r,t){return e[r]===t&&e.charCodeAt(r-1)!==92}o(Ff,"IsNonEscaped");function Ai(e,r){return Ff(e,r,"(")}o(Ai,"IsOpenParen");function bs(e,r){return Ff(e,r,")")}o(bs,"IsCloseParen");function b1(e,r){return Ff(e,r,"|")}o(b1,"IsSeparator");function b2(e){if(!(Ai(e,0)&&bs(e,e.length-1)))return!1;let r=0;for(let t=0;t<e.length;t++)if(Ai(e,t)&&(r+=1),bs(e,t)&&(r-=1),r===0&&t!==e.length-1)return!1;return!0}o(b2,"IsGroup");function v2(e){return e.slice(1,e.length-1)}o(v2,"InGroup");function x2(e){let r=0;for(let t=0;t<e.length;t++)if(Ai(e,t)&&(r+=1),bs(e,t)&&(r-=1),b1(e,t)&&r===0)return!0;return!1}o(x2,"IsPrecedenceOr");function E2(e){for(let r=0;r<e.length;r++)if(Ai(e,r))return!0;return!1}o(E2,"IsPrecedenceAnd");function I2(e){let[r,t]=[0,0],n=[];for(let a=0;a<e.length;a++)if(Ai(e,a)&&(r+=1),bs(e,a)&&(r-=1),b1(e,a)&&r===0){let u=e.slice(t,a);u.length>0&&n.push(ja(u)),t=a+1}let i=e.slice(t);return i.length>0&&n.push(ja(i)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}o(I2,"Or");function C2(e){function r(i,a){if(!Ai(i,a))throw new vl("TemplateLiteralParser: Index must point to open parens");let u=0;for(let s=a;s<i.length;s++)if(Ai(i,s)&&(u+=1),bs(i,s)&&(u-=1),u===0)return[a,s];throw new vl("TemplateLiteralParser: Unclosed group parens in expression")}o(r,"Group");function t(i,a){for(let u=a;u<i.length;u++)if(Ai(i,u))return[a,u];return[a,i.length]}o(t,"Range");let n=[];for(let i=0;i<e.length;i++)if(Ai(e,i)){let[a,u]=r(e,i),s=e.slice(a,u+1);n.push(ja(s)),i=u}else{let[a,u]=t(e,i),s=e.slice(a,u);s.length>0&&n.push(ja(s)),i=u-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}o(C2,"And");function ja(e){return b2(e)?ja(v2(e)):x2(e)?I2(e):E2(e)?C2(e):{type:"const",const:y2(e)}}o(ja,"TemplateLiteralParse");function za(e){return ja(e.slice(1,e.length-1))}o(za,"TemplateLiteralParseExact");var Mf=class Mf extends he{};o(Mf,"TemplateLiteralFiniteError");var Of=Mf;function D2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}o(D2,"IsNumberExpression");function S2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}o(S2,"IsBooleanExpression");function w2(e){return e.type==="const"&&e.const===".*"}o(w2,"IsStringExpression");function Go(e){return D2(e)||w2(e)?!1:S2(e)?!0:e.type==="and"?e.expr.every(r=>Go(r)):e.type==="or"?e.expr.every(r=>Go(r)):e.type==="const"?!0:(()=>{throw new Of("Unknown expression type")})()}o(Go,"IsTemplateLiteralExpressionFinite");function xl(e){let r=za(e.pattern);return Go(r)}o(xl,"IsTemplateLiteralFinite");l();var kf=class kf extends he{};o(kf,"TemplateLiteralGenerateError");var Tf=kf;function*v1(e){if(e.length===1)return yield*X(e[0]);for(let r of e[0])for(let t of v1(e.slice(1)))yield"".concat(r).concat(t)}o(v1,"GenerateReduce");function*A2(e){return yield*X(v1(e.expr.map(r=>[...vs(r)])))}o(A2,"GenerateAnd");function*P2(e){for(let r of e.expr)yield*X(vs(r))}o(P2,"GenerateOr");function*F2(e){return yield e.const}o(F2,"GenerateConst");function*vs(e){return e.type==="and"?yield*X(A2(e)):e.type==="or"?yield*X(P2(e)):e.type==="const"?yield*X(F2(e)):(()=>{throw new Tf("Unknown expression")})()}o(vs,"TemplateLiteralExpressionGenerate");function $a(e){let r=za(e.pattern);return Go(r)?[...vs(r)]:[]}o($a,"TemplateLiteralGenerate");l();l();function qe(e,r){return W({[L]:"Literal",const:e,type:typeof e},r)}o(qe,"Literal");l();function El(e){return W({[L]:"Boolean",type:"boolean"},e)}o(El,"Boolean");l();function Ga(e){return W({[L]:"BigInt",type:"bigint"},e)}o(Ga,"BigInt");l();function Jn(e){return W({[L]:"Number",type:"number"},e)}o(Jn,"Number");l();function on(e){return W({[L]:"String",type:"string"},e)}o(on,"String");function*B2(e){let r=e.trim().replace(/"|'/g,"");return r==="boolean"?yield El():r==="number"?yield Jn():r==="bigint"?yield Ga():r==="string"?yield on():yield(()=>{let t=r.split("|").map(n=>qe(n.trim()));return t.length===0?nt():t.length===1?t[0]:Xn(t)})()}o(B2,"FromUnion");function*O2(e){if(e[1]!=="{"){let r=qe("$"),t=_f(e.slice(1));return yield*X([r,...t])}for(let r=2;r<e.length;r++)if(e[r]==="}"){let t=B2(e.slice(2,r)),n=_f(e.slice(r+1));return yield*X([...t,...n])}yield qe(e)}o(O2,"FromTerminal");function*_f(e){for(let r=0;r<e.length;r++)if(e[r]==="$"){let t=qe(e.slice(0,r)),n=O2(e.slice(r));return yield*X([t,...n])}yield qe(e)}o(_f,"FromSyntax");function x1(e){return[..._f(e)]}o(x1,"TemplateLiteralSyntax");l();var Nf=class Nf extends he{};o(Nf,"TemplateLiteralPatternError");var Lf=Nf;function M2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(M2,"Escape");function E1(e,r){return Zr(e)?e.pattern.slice(1,e.pattern.length-1):Ke(e)?"(".concat(e.anyOf.map(t=>E1(t,r)).join("|"),")"):zo(e)?"".concat(r).concat(gs):jo(e)?"".concat(r).concat(gs):gf(e)?"".concat(r).concat(gs):ps(e)?"".concat(r).concat(Pf):Di(e)?"".concat(r).concat(M2(e.const.toString())):yf(e)?"".concat(r).concat(Af):(()=>{throw new Lf("Unexpected Kind '".concat(e[L],"'"))})()}o(E1,"Visit");function Rf(e){return"^".concat(e.map(r=>E1(r,"")).join(""),"$")}o(Rf,"TemplateLiteralPattern");l();function Zo(e){let t=$a(e).map(n=>qe(n));return Xn(t)}o(Zo,"TemplateLiteralToUnion");l();function Il(e,r){let t=pt(e)?Rf(x1(e)):Rf(e);return W({[L]:"TemplateLiteral",type:"string",pattern:t},r)}o(Il,"TemplateLiteral");function T2(e){return $a(e).map(t=>t.toString())}o(T2,"FromTemplateLiteral");function k2(e){let r=[];for(let t of e)r.push(...Rr(t));return r}o(k2,"FromUnion");function _2(e){return[e.toString()]}o(_2,"FromLiteral");function Rr(e){return[...new Set(Zr(e)?T2(e):Ke(e)?k2(e.anyOf):Di(e)?_2(e.const):zo(e)?["[number]"]:jo(e)?["[number]"]:[])]}o(Rr,"IndexPropertyKeys");l();function L2(e,r,t){let n={};for(let i of Object.getOwnPropertyNames(r))n[i]=Za(e,Rr(r[i]),t);return n}o(L2,"FromProperties");function R2(e,r,t){return L2(e,r.properties,t)}o(R2,"FromMappedResult");function I1(e,r,t){let n=R2(e,r,t);return Ze(n)}o(I1,"IndexFromMappedResult");function D1(e,r){return e.map(t=>S1(t,r))}o(D1,"FromRest");function N2(e){return e.filter(r=>!oo(r))}o(N2,"FromIntersectRest");function U2(e,r){return Cl(N2(D1(e,r)))}o(U2,"FromIntersect");function j2(e){return e.some(r=>oo(r))?[]:e}o(j2,"FromUnionRest");function z2(e,r){return Xn(j2(D1(e,r)))}o(z2,"FromUnion");function $2(e,r){return r in e?e[r]:r==="[number]"?Xn(e):nt()}o($2,"FromTuple");function G2(e,r){return r==="[number]"?e:nt()}o(G2,"FromArray");function Z2(e,r){return r in e?e[r]:nt()}o(Z2,"FromProperty");function S1(e,r){var t;return Rt(e)?U2(e.allOf,r):Ke(e)?z2(e.anyOf,r):Dn(e)?$2((t=e.items)!=null?t:[],r):Ci(e)?G2(e.items,r):$t(e)?Z2(e.properties,r):nt()}o(S1,"IndexFromPropertyKey");function xs(e,r){return r.map(t=>S1(e,t))}o(xs,"IndexFromPropertyKeys");function C1(e,r){return Xn(xs(e,r))}o(C1,"FromSchema");function Za(e,r,t){return bt(r)?I1(e,r,t):Gr(r)?w1(e,r,t):W(Sn(r)?C1(e,Rr(r)):C1(e,r),t)}o(Za,"Index");function V2(e,r,t){return{[r]:Za(e,[r],gt(t))}}o(V2,"MappedIndexPropertyKey");function W2(e,r,t){return r.reduce((n,i)=>N(N({},n),V2(e,i,t)),{})}o(W2,"MappedIndexPropertyKeys");function H2(e,r,t){return W2(e,r.keys,t)}o(H2,"MappedIndexProperties");function w1(e,r,t){let n=H2(e,r,t);return Ze(n)}o(w1,"IndexFromMappedKey");l();function Dl(e,r){return W({[L]:"Iterator",type:"Iterator",items:e},r)}o(Dl,"Iterator");l();function K2(e){let r=[];for(let t in e)qn(e[t])||r.push(t);return r}o(K2,"RequiredKeys");function q2(e,r){let t=K2(e),n=t.length>0?{[L]:"Object",type:"object",properties:e,required:t}:{[L]:"Object",type:"object",properties:e};return W(n,r)}o(q2,"_Object");var st=q2;l();function Sl(e,r){return W({[L]:"Promise",type:"Promise",item:e},r)}o(Sl,"Promise");l();l();function X2(e){return W(Ot(e,[Ii]))}o(X2,"RemoveReadonly");function J2(e){return W(Ce(N({},e),{[Ii]:"Readonly"}))}o(J2,"AddReadonly");function Y2(e,r){return r===!1?X2(e):J2(e)}o(Y2,"ReadonlyWithFlag");function an(e,r){let t=r!=null?r:!0;return bt(e)?A1(e,t):Y2(e,t)}o(an,"Readonly");function Q2(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=an(e[n],r);return t}o(Q2,"FromProperties");function eD(e,r){return Q2(e.properties,r)}o(eD,"FromMappedResult");function A1(e,r){let t=eD(e,r);return Ze(t)}o(A1,"ReadonlyFromMappedResult");l();function Yn(e,r){return W(e.length>0?{[L]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[L]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},r)}o(Yn,"Tuple");function P1(e,r){return e in r?un(e,r[e]):Ze(r)}o(P1,"FromMappedResult");function tD(e){return{[e]:qe(e)}}o(tD,"MappedKeyToKnownMappedResultProperties");function rD(e){let r={};for(let t of e)r[t]=qe(t);return r}o(rD,"MappedKeyToUnknownMappedResultProperties");function nD(e,r){return p1(r,e)?tD(e):rD(r)}o(nD,"MappedKeyToMappedResultProperties");function iD(e,r){let t=nD(e,r);return P1(e,t)}o(iD,"FromMappedKey");function Es(e,r){return r.map(t=>un(e,t))}o(Es,"FromRest");function oD(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(r))t[n]=un(e,r[n]);return t}o(oD,"FromProperties");function un(e,r){var n;let t=N({},r);return qn(r)?Lr(un(e,Ot(r,[Fr]))):Ab(r)?an(un(e,Ot(r,[Ii]))):bt(r)?P1(e,r.properties):Gr(r)?iD(e,r.keys):ls(r)?bl(Es(e,r.parameters),un(e,r.returns),t):ds(r)?so(Es(e,r.parameters),un(e,r.returns),t):cs(r)?yl(un(e,r.items),t):ms(r)?Dl(un(e,r.items),t):Rt(r)?Nr(Es(e,r.allOf),t):Ke(r)?it(Es(e,r.anyOf),t):Dn(r)?Yn(Es(e,(n=r.items)!=null?n:[]),t):$t(r)?st(oD(e,r.properties),t):Ci(r)?gl(un(e,r.items),t):$o(r)?Sl(un(e,r.item),t):r}o(un,"FromSchemaType");function aD(e,r){let t={};for(let n of e)t[n]=un(n,r);return t}o(aD,"MappedFunctionReturnType");function F1(e,r,t){let n=Sn(e)?Rr(e):e,i=r({[L]:"MappedKey",keys:n}),a=aD(n,i);return st(a,t)}o(F1,"Mapped");l();function uD(e){return W(Ot(e,[Fr]))}o(uD,"RemoveOptional");function sD(e){return W(Ce(N({},e),{[Fr]:"Optional"}))}o(sD,"AddOptional");function cD(e,r){return r===!1?uD(e):sD(e)}o(cD,"OptionalWithFlag");function Lr(e,r){let t=r!=null?r:!0;return bt(e)?B1(e,t):cD(e,t)}o(Lr,"Optional");function lD(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Lr(e[n],r);return t}o(lD,"FromProperties");function dD(e,r){return lD(e.properties,r)}o(dD,"FromMappedResult");function B1(e,r){let t=dD(e,r);return Ze(t)}o(B1,"OptionalFromMappedResult");l();function Is(e,r={}){let t=e.every(i=>$t(i)),n=Sn(r.unevaluatedProperties)?{unevaluatedProperties:r.unevaluatedProperties}:{};return W(r.unevaluatedProperties===!1||Sn(r.unevaluatedProperties)||t?Ce(N({},n),{[L]:"Intersect",type:"object",allOf:e}):Ce(N({},n),{[L]:"Intersect",allOf:e}),r)}o(Is,"IntersectCreate");function mD(e){return e.every(r=>qn(r))}o(mD,"IsIntersectOptional");function pD(e){return Ot(e,[Fr])}o(pD,"RemoveOptionalFromType");function O1(e){return e.map(r=>qn(r)?pD(r):r)}o(O1,"RemoveOptionalFromRest");function fD(e,r){return mD(e)?Lr(Is(O1(e),r)):Is(O1(e),r)}o(fD,"ResolveIntersect");function Cl(e,r={}){if(e.length===0)return nt(r);if(e.length===1)return W(e[0],r);if(e.some(t=>La(t)))throw new Error("Cannot intersect transform types");return fD(e,r)}o(Cl,"IntersectEvaluated");l();function Nr(e,r){if(e.length===0)return nt(r);if(e.length===1)return W(e[0],r);if(e.some(t=>La(t)))throw new Error("Cannot intersect transform types");return Is(e,r)}o(Nr,"Intersect");function M1(e){return e.map(r=>Uf(r))}o(M1,"FromRest");function hD(e){return Nr(M1(e))}o(hD,"FromIntersect");function gD(e){return it(M1(e))}o(gD,"FromUnion");function yD(e){return Uf(e)}o(yD,"FromPromise");function Uf(e){return Rt(e)?hD(e.allOf):Ke(e)?gD(e.anyOf):$o(e)?yD(e.item):e}o(Uf,"AwaitedResolve");function T1(e,r){return W(Uf(e),r)}o(T1,"Awaited");l();l();l();l();function k1(e){let r=[];for(let t of e)r.push(Xt(t));return r}o(k1,"FromRest");function bD(e){let r=k1(e);return g1(r)}o(bD,"FromIntersect");function vD(e){let r=k1(e);return h1(r)}o(vD,"FromUnion");function xD(e){return e.map((r,t)=>t.toString())}o(xD,"FromTuple");function ED(e){return["[number]"]}o(ED,"FromArray");function ID(e){return globalThis.Object.getOwnPropertyNames(e)}o(ID,"FromProperties");function CD(e){return jf?globalThis.Object.getOwnPropertyNames(e).map(t=>t[0]==="^"&&t[t.length-1]==="$"?t.slice(1,t.length-1):t):[]}o(CD,"FromPatternProperties");function Xt(e){var r;return Rt(e)?bD(e.allOf):Ke(e)?vD(e.anyOf):Dn(e)?xD((r=e.items)!=null?r:[]):Ci(e)?ED(e.items):$t(e)?ID(e.properties):bf(e)?CD(e.patternProperties):[]}o(Xt,"KeyOfPropertyKeys");var jf=!1;function Pi(e){jf=!0;let r=Xt(e);jf=!1;let t=r.map(n=>"(".concat(n,")"));return"^(".concat(t.join("|"),")$")}o(Pi,"KeyOfPattern");function DD(e){return e.map(r=>r==="[number]"?Jn():qe(r))}o(DD,"KeyOfPropertyKeysToRest");function wl(e,r){if(bt(e))return _1(e,r);{let t=Xt(e),n=DD(t),i=Xn(n);return W(i,r)}}o(wl,"KeyOf");function SD(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=wl(e[n],gt(r));return t}o(SD,"FromProperties");function wD(e,r){return SD(e.properties,r)}o(wD,"FromMappedResult");function _1(e,r){let t=wD(e,r);return Ze(t)}o(_1,"KeyOfFromMappedResult");l();function co(e){let r=Xt(e),t=xs(e,r);return r.map((n,i)=>[r[i],t[i]])}o(co,"KeyOfPropertyEntries");function AD(e){let r=[];for(let t of e)r.push(...Xt(t));return f1(r)}o(AD,"CompositeKeys");function PD(e){return e.filter(r=>!oo(r))}o(PD,"FilterNever");function FD(e,r){let t=[];for(let n of e)t.push(...xs(n,[r]));return PD(t)}o(FD,"CompositeProperty");function BD(e,r){let t={};for(let n of r)t[n]=Cl(FD(e,n));return t}o(BD,"CompositeProperties");function L1(e,r){let t=AD(e),n=BD(e,t);return st(n,r)}o(L1,"Composite");l();l();function Al(e){return W({[L]:"Date",type:"Date"},e)}o(Al,"Date");l();function Pl(e){return W({[L]:"Null",type:"null"},e)}o(Pl,"Null");l();function Fl(e){return W({[L]:"Symbol",type:"symbol"},e)}o(Fl,"Symbol");l();function Bl(e){return W({[L]:"Undefined",type:"undefined"},e)}o(Bl,"Undefined");l();function Ol(e){return W({[L]:"Uint8Array",type:"Uint8Array"},e)}o(Ol,"Uint8Array");l();function Fi(e){return W({[L]:"Unknown"},e)}o(Fi,"Unknown");function OD(e){return e.map(r=>zf(r,!1))}o(OD,"FromArray");function MD(e){let r={};for(let t of globalThis.Object.getOwnPropertyNames(e))r[t]=an(zf(e[t],!1));return r}o(MD,"FromProperties");function Ml(e,r){return r===!0?e:an(e)}o(Ml,"ConditionalReadonly");function zf(e,r){return sf(e)?Ml(uo(),r):lf(e)?Ml(uo(),r):hr(e)?an(Yn(OD(e))):vi(e)?Ol():Uo(e)?Al():ut(e)?Ml(st(MD(e)),r):cf(e)?Ml(so([],Fi()),r):It(e)?Bl():df(e)?Pl():mf(e)?Fl():os(e)?Ga():Cn(e)?qe(e):no(e)?qe(e):pt(e)?qe(e):st({})}o(zf,"FromValue");function R1(e,r){return W(zf(e,!0),r)}o(R1,"Const");l();function N1(e,r){return Yn(e.parameters,r)}o(N1,"ConstructorParameters");l();function Cs(e,r){return e.map(t=>wn(t,r))}o(Cs,"FromRest");function TD(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=wn(e[n],r);return t}o(TD,"FromProperties");function kD(e,r){return e.parameters=Cs(e.parameters,r),e.returns=wn(e.returns,r),e}o(kD,"FromConstructor");function _D(e,r){return e.parameters=Cs(e.parameters,r),e.returns=wn(e.returns,r),e}o(_D,"FromFunction");function LD(e,r){return e.allOf=Cs(e.allOf,r),e}o(LD,"FromIntersect");function RD(e,r){return e.anyOf=Cs(e.anyOf,r),e}o(RD,"FromUnion");function ND(e,r){return It(e.items)||(e.items=Cs(e.items,r)),e}o(ND,"FromTuple");function UD(e,r){return e.items=wn(e.items,r),e}o(UD,"FromArray");function jD(e,r){return e.properties=TD(e.properties,r),e}o(jD,"FromObject");function zD(e,r){return e.item=wn(e.item,r),e}o(zD,"FromPromise");function $D(e,r){return e.items=wn(e.items,r),e}o($D,"FromAsyncIterator");function GD(e,r){return e.items=wn(e.items,r),e}o(GD,"FromIterator");function ZD(e,r){let t=r.find(i=>i.$id===e.$ref);if(t===void 0)throw Error("Unable to dereference schema with $id ".concat(e.$ref));let n=Ot(t,["$id"]);return wn(n,r)}o(ZD,"FromRef");function VD(e,r){return ls(e)?kD(e,r):ds(e)?_D(e,r):Rt(e)?LD(e,r):Ke(e)?RD(e,r):Dn(e)?ND(e,r):Ci(e)?UD(e,r):$t(e)?jD(e,r):$o(e)?zD(e,r):cs(e)?$D(e,r):ms(e)?GD(e,r):vf(e)?ZD(e,r):e}o(VD,"DerefResolve");function wn(e,r){return VD(us(e),Db(r))}o(wn,"Deref");l();function U1(e,r){if(It(e))throw new Error("Enum undefined or empty");let t=globalThis.Object.getOwnPropertyNames(e).filter(a=>isNaN(a)).map(a=>e[a]),i=[...new Set(t)].map(a=>qe(a));return it(i,Ce(N({},r),{[nn]:"Enum"}))}o(U1,"Enum");l();l();l();var Kf=class Kf extends he{};o(Kf,"ExtendsResolverError");var Gf=Kf,j;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(j||(j={}));function sn(e){return e===j.False?e:j.True}o(sn,"IntoBooleanResult");function Va(e){throw new Gf(e)}o(Va,"Throw");function Nt(e){return w.IsNever(e)||w.IsIntersect(e)||w.IsUnion(e)||w.IsUnknown(e)||w.IsAny(e)}o(Nt,"IsStructuralRight");function Ut(e,r){return w.IsNever(r)?W1(e,r):w.IsIntersect(r)?Tl(e,r):w.IsUnion(r)?Hf(e,r):w.IsUnknown(r)?X1(e,r):w.IsAny(r)?Wf(e,r):Va("StructuralRight")}o(Ut,"StructuralRight");function Wf(e,r){return j.True}o(Wf,"FromAnyRight");function WD(e,r){return w.IsIntersect(r)?Tl(e,r):w.IsUnion(r)&&r.anyOf.some(t=>w.IsAny(t)||w.IsUnknown(t))?j.True:w.IsUnion(r)?j.Union:w.IsUnknown(r)||w.IsAny(r)?j.True:j.Union}o(WD,"FromAny");function HD(e,r){return w.IsUnknown(e)?j.False:w.IsAny(e)?j.Union:w.IsNever(e)?j.True:j.False}o(HD,"FromArrayRight");function KD(e,r){return w.IsObject(r)&&kl(r)?j.True:Nt(r)?Ut(e,r):w.IsArray(r)?sn(ot(e.items,r.items)):j.False}o(KD,"FromArray");function qD(e,r){return Nt(r)?Ut(e,r):w.IsAsyncIterator(r)?sn(ot(e.items,r.items)):j.False}o(qD,"FromAsyncIterator");function XD(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsBigInt(r)?j.True:j.False}o(XD,"FromBigInt");function Z1(e,r){return w.IsLiteralBoolean(e)||w.IsBoolean(e)?j.True:j.False}o(Z1,"FromBooleanRight");function JD(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsBoolean(r)?j.True:j.False}o(JD,"FromBoolean");function YD(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsConstructor(r)?e.parameters.length>r.parameters.length?j.False:e.parameters.every((t,n)=>sn(ot(r.parameters[n],t))===j.True)?sn(ot(e.returns,r.returns)):j.False:j.False}o(YD,"FromConstructor");function QD(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsDate(r)?j.True:j.False}o(QD,"FromDate");function eS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsFunction(r)?e.parameters.length>r.parameters.length?j.False:e.parameters.every((t,n)=>sn(ot(r.parameters[n],t))===j.True)?sn(ot(e.returns,r.returns)):j.False:j.False}o(eS,"FromFunction");function V1(e,r){return w.IsLiteral(e)&&Ne.IsNumber(e.const)||w.IsNumber(e)||w.IsInteger(e)?j.True:j.False}o(V1,"FromIntegerRight");function tS(e,r){return w.IsInteger(r)||w.IsNumber(r)?j.True:Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):j.False}o(tS,"FromInteger");function Tl(e,r){return r.allOf.every(t=>ot(e,t)===j.True)?j.True:j.False}o(Tl,"FromIntersectRight");function rS(e,r){return e.allOf.some(t=>ot(t,r)===j.True)?j.True:j.False}o(rS,"FromIntersect");function nS(e,r){return Nt(r)?Ut(e,r):w.IsIterator(r)?sn(ot(e.items,r.items)):j.False}o(nS,"FromIterator");function iS(e,r){return w.IsLiteral(r)&&r.const===e.const?j.True:Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsString(r)?q1(e,r):w.IsNumber(r)?H1(e,r):w.IsInteger(r)?V1(e,r):w.IsBoolean(r)?Z1(e,r):j.False}o(iS,"FromLiteral");function W1(e,r){return j.False}o(W1,"FromNeverRight");function oS(e,r){return j.True}o(oS,"FromNever");function j1(e){let[r,t]=[e,0];for(;w.IsNot(r);)r=r.not,t+=1;return t%2===0?r:Fi()}o(j1,"UnwrapTNot");function aS(e,r){return w.IsNot(e)?ot(j1(e),r):w.IsNot(r)?ot(e,j1(r)):Va("Invalid fallthrough for Not")}o(aS,"FromNot");function uS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsNull(r)?j.True:j.False}o(uS,"FromNull");function H1(e,r){return w.IsLiteralNumber(e)||w.IsNumber(e)||w.IsInteger(e)?j.True:j.False}o(H1,"FromNumberRight");function sS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsInteger(r)||w.IsNumber(r)?j.True:j.False}o(sS,"FromNumber");function Ur(e,r){return Object.getOwnPropertyNames(e.properties).length===r}o(Ur,"IsObjectPropertyCount");function z1(e){return kl(e)}o(z1,"IsObjectStringLike");function $1(e){return Ur(e,0)||Ur(e,1)&&"description"in e.properties&&w.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(w.IsString(e.properties.description.anyOf[0])&&w.IsUndefined(e.properties.description.anyOf[1])||w.IsString(e.properties.description.anyOf[1])&&w.IsUndefined(e.properties.description.anyOf[0]))}o($1,"IsObjectSymbolLike");function $f(e){return Ur(e,0)}o($f,"IsObjectNumberLike");function G1(e){return Ur(e,0)}o(G1,"IsObjectBooleanLike");function cS(e){return Ur(e,0)}o(cS,"IsObjectBigIntLike");function lS(e){return Ur(e,0)}o(lS,"IsObjectDateLike");function dS(e){return kl(e)}o(dS,"IsObjectUint8ArrayLike");function mS(e){let r=Jn();return Ur(e,0)||Ur(e,1)&&"length"in e.properties&&sn(ot(e.properties.length,r))===j.True}o(mS,"IsObjectFunctionLike");function pS(e){return Ur(e,0)}o(pS,"IsObjectConstructorLike");function kl(e){let r=Jn();return Ur(e,0)||Ur(e,1)&&"length"in e.properties&&sn(ot(e.properties.length,r))===j.True}o(kl,"IsObjectArrayLike");function fS(e){let r=so([uo()],uo());return Ur(e,0)||Ur(e,1)&&"then"in e.properties&&sn(ot(e.properties.then,r))===j.True}o(fS,"IsObjectPromiseLike");function K1(e,r){return ot(e,r)===j.False||w.IsOptional(e)&&!w.IsOptional(r)?j.False:j.True}o(K1,"Property");function gr(e,r){return w.IsUnknown(e)?j.False:w.IsAny(e)?j.Union:w.IsNever(e)||w.IsLiteralString(e)&&z1(r)||w.IsLiteralNumber(e)&&$f(r)||w.IsLiteralBoolean(e)&&G1(r)||w.IsSymbol(e)&&$1(r)||w.IsBigInt(e)&&cS(r)||w.IsString(e)&&z1(r)||w.IsSymbol(e)&&$1(r)||w.IsNumber(e)&&$f(r)||w.IsInteger(e)&&$f(r)||w.IsBoolean(e)&&G1(r)||w.IsUint8Array(e)&&dS(r)||w.IsDate(e)&&lS(r)||w.IsConstructor(e)&&pS(r)||w.IsFunction(e)&&mS(r)?j.True:w.IsRecord(e)&&w.IsString(Zf(e))?r[nn]==="Record"?j.True:j.False:w.IsRecord(e)&&w.IsNumber(Zf(e))?Ur(r,0)?j.True:j.False:j.False}o(gr,"FromObjectRight");function hS(e,r){return Nt(r)?Ut(e,r):w.IsRecord(r)?cn(e,r):w.IsObject(r)?(()=>{for(let t of Object.getOwnPropertyNames(r.properties)){if(!(t in e.properties)&&!w.IsOptional(r.properties[t]))return j.False;if(w.IsOptional(r.properties[t]))return j.True;if(K1(e.properties[t],r.properties[t])===j.False)return j.False}return j.True})():j.False}o(hS,"FromObject");function gS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)&&fS(r)?j.True:w.IsPromise(r)?sn(ot(e.item,r.item)):j.False}o(gS,"FromPromise");function Zf(e){return Si in e.patternProperties?Jn():wi in e.patternProperties?on():Va("Unknown record key pattern")}o(Zf,"RecordKey");function Vf(e){return Si in e.patternProperties?e.patternProperties[Si]:wi in e.patternProperties?e.patternProperties[wi]:Va("Unable to get record value schema")}o(Vf,"RecordValue");function cn(e,r){let[t,n]=[Zf(r),Vf(r)];return w.IsLiteralString(e)&&w.IsNumber(t)&&sn(ot(e,n))===j.True?j.True:w.IsUint8Array(e)&&w.IsNumber(t)||w.IsString(e)&&w.IsNumber(t)||w.IsArray(e)&&w.IsNumber(t)?ot(e,n):w.IsObject(e)?(()=>{for(let i of Object.getOwnPropertyNames(e.properties))if(K1(n,e.properties[i])===j.False)return j.False;return j.True})():j.False}o(cn,"FromRecordRight");function yS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?ot(Vf(e),Vf(r)):j.False}o(yS,"FromRecord");function bS(e,r){let t=w.IsRegExp(e)?on():e,n=w.IsRegExp(r)?on():r;return ot(t,n)}o(bS,"FromRegExp");function q1(e,r){return w.IsLiteral(e)&&Ne.IsString(e.const)||w.IsString(e)?j.True:j.False}o(q1,"FromStringRight");function vS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsString(r)?j.True:j.False}o(vS,"FromString");function xS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsSymbol(r)?j.True:j.False}o(xS,"FromSymbol");function ES(e,r){return w.IsTemplateLiteral(e)?ot(Zo(e),r):w.IsTemplateLiteral(r)?ot(e,Zo(r)):Va("Invalid fallthrough for TemplateLiteral")}o(ES,"FromTemplateLiteral");function IS(e,r){return w.IsArray(r)&&e.items!==void 0&&e.items.every(t=>ot(t,r.items)===j.True)}o(IS,"IsArrayOfTuple");function CS(e,r){return w.IsNever(e)?j.True:w.IsUnknown(e)?j.False:w.IsAny(e)?j.Union:j.False}o(CS,"FromTupleRight");function DS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)&&kl(r)||w.IsArray(r)&&IS(e,r)?j.True:w.IsTuple(r)?Ne.IsUndefined(e.items)&&!Ne.IsUndefined(r.items)||!Ne.IsUndefined(e.items)&&Ne.IsUndefined(r.items)?j.False:Ne.IsUndefined(e.items)&&!Ne.IsUndefined(r.items)||e.items.every((t,n)=>ot(t,r.items[n])===j.True)?j.True:j.False:j.False}o(DS,"FromTuple");function SS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsUint8Array(r)?j.True:j.False}o(SS,"FromUint8Array");function wS(e,r){return Nt(r)?Ut(e,r):w.IsObject(r)?gr(e,r):w.IsRecord(r)?cn(e,r):w.IsVoid(r)?FS(e,r):w.IsUndefined(r)?j.True:j.False}o(wS,"FromUndefined");function Hf(e,r){return r.anyOf.some(t=>ot(e,t)===j.True)?j.True:j.False}o(Hf,"FromUnionRight");function AS(e,r){return e.anyOf.every(t=>ot(t,r)===j.True)?j.True:j.False}o(AS,"FromUnion");function X1(e,r){return j.True}o(X1,"FromUnknownRight");function PS(e,r){return w.IsNever(r)?W1(e,r):w.IsIntersect(r)?Tl(e,r):w.IsUnion(r)?Hf(e,r):w.IsAny(r)?Wf(e,r):w.IsString(r)?q1(e,r):w.IsNumber(r)?H1(e,r):w.IsInteger(r)?V1(e,r):w.IsBoolean(r)?Z1(e,r):w.IsArray(r)?HD(e,r):w.IsTuple(r)?CS(e,r):w.IsObject(r)?gr(e,r):w.IsUnknown(r)?j.True:j.False}o(PS,"FromUnknown");function FS(e,r){return w.IsUndefined(e)||w.IsUndefined(e)?j.True:j.False}o(FS,"FromVoidRight");function BS(e,r){return w.IsIntersect(r)?Tl(e,r):w.IsUnion(r)?Hf(e,r):w.IsUnknown(r)?X1(e,r):w.IsAny(r)?Wf(e,r):w.IsObject(r)?gr(e,r):w.IsVoid(r)?j.True:j.False}o(BS,"FromVoid");function ot(e,r){return w.IsTemplateLiteral(e)||w.IsTemplateLiteral(r)?ES(e,r):w.IsRegExp(e)||w.IsRegExp(r)?bS(e,r):w.IsNot(e)||w.IsNot(r)?aS(e,r):w.IsAny(e)?WD(e,r):w.IsArray(e)?KD(e,r):w.IsBigInt(e)?XD(e,r):w.IsBoolean(e)?JD(e,r):w.IsAsyncIterator(e)?qD(e,r):w.IsConstructor(e)?YD(e,r):w.IsDate(e)?QD(e,r):w.IsFunction(e)?eS(e,r):w.IsInteger(e)?tS(e,r):w.IsIntersect(e)?rS(e,r):w.IsIterator(e)?nS(e,r):w.IsLiteral(e)?iS(e,r):w.IsNever(e)?oS(e,r):w.IsNull(e)?uS(e,r):w.IsNumber(e)?sS(e,r):w.IsObject(e)?hS(e,r):w.IsRecord(e)?yS(e,r):w.IsString(e)?vS(e,r):w.IsSymbol(e)?xS(e,r):w.IsTuple(e)?DS(e,r):w.IsPromise(e)?gS(e,r):w.IsUint8Array(e)?SS(e,r):w.IsUndefined(e)?wS(e,r):w.IsUnion(e)?AS(e,r):w.IsUnknown(e)?PS(e,r):w.IsVoid(e)?BS(e,r):Va("Unknown left type operand '".concat(e[L],"'"))}o(ot,"Visit");function lo(e,r){return ot(e,r)}o(lo,"ExtendsCheck");l();l();l();function OS(e,r,t,n,i){let a={};for(let u of globalThis.Object.getOwnPropertyNames(e))a[u]=Wa(e[u],r,t,n,gt(i));return a}o(OS,"FromProperties");function MS(e,r,t,n,i){return OS(e.properties,r,t,n,i)}o(MS,"FromMappedResult");function J1(e,r,t,n,i){let a=MS(e,r,t,n,i);return Ze(a)}o(J1,"ExtendsFromMappedResult");function TS(e,r,t,n){let i=lo(e,r);return i===j.Union?it([t,n]):i===j.True?t:n}o(TS,"ExtendsResolve");function Wa(e,r,t,n,i){return bt(e)?J1(e,r,t,n,i):Gr(e)?W(Y1(e,r,t,n,i)):W(TS(e,r,t,n),i)}o(Wa,"Extends");function kS(e,r,t,n,i){return{[e]:Wa(qe(e),r,t,n,gt(i))}}o(kS,"FromPropertyKey");function _S(e,r,t,n,i){return e.reduce((a,u)=>N(N({},a),kS(u,r,t,n,i)),{})}o(_S,"FromPropertyKeys");function LS(e,r,t,n,i){return _S(e.keys,r,t,n,i)}o(LS,"FromMappedKey");function Y1(e,r,t,n,i){let a=LS(e,r,t,n,i);return Ze(a)}o(Y1,"ExtendsFromMappedKey");l();function RS(e){return e.allOf.every(r=>Bi(r))}o(RS,"Intersect");function NS(e){return e.anyOf.some(r=>Bi(r))}o(NS,"Union");function US(e){return!Bi(e.not)}o(US,"Not");function Bi(e){return e[L]==="Intersect"?RS(e):e[L]==="Union"?NS(e):e[L]==="Not"?US(e):e[L]==="Undefined"}o(Bi,"ExtendsUndefinedCheck");l();function Q1(e,r){return Ha(Zo(e),r)}o(Q1,"ExcludeFromTemplateLiteral");function jS(e,r){let t=e.filter(n=>lo(n,r)===j.False);return t.length===1?t[0]:it(t)}o(jS,"ExcludeRest");function Ha(e,r,t={}){return Zr(e)?W(Q1(e,r),t):bt(e)?W(ev(e,r),t):W(Ke(e)?jS(e.anyOf,r):lo(e,r)!==j.False?nt():e,t)}o(Ha,"Exclude");function zS(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Ha(e[n],r);return t}o(zS,"FromProperties");function $S(e,r){return zS(e.properties,r)}o($S,"FromMappedResult");function ev(e,r){let t=$S(e,r);return Ze(t)}o(ev,"ExcludeFromMappedResult");l();l();l();function tv(e,r){return Ka(Zo(e),r)}o(tv,"ExtractFromTemplateLiteral");function GS(e,r){let t=e.filter(n=>lo(n,r)!==j.False);return t.length===1?t[0]:it(t)}o(GS,"ExtractRest");function Ka(e,r,t){return Zr(e)?W(tv(e,r),t):bt(e)?W(rv(e,r),t):W(Ke(e)?GS(e.anyOf,r):lo(e,r)!==j.False?e:nt(),t)}o(Ka,"Extract");function ZS(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Ka(e[n],r);return t}o(ZS,"FromProperties");function VS(e,r){return ZS(e.properties,r)}o(VS,"FromMappedResult");function rv(e,r){let t=VS(e,r);return Ze(t)}o(rv,"ExtractFromMappedResult");l();function nv(e,r){return W(e.returns,r)}o(nv,"InstanceType");l();function iv(e){return W({[L]:"Integer",type:"integer"},e)}o(iv,"Integer");l();l();l();function WS(e,r,t){return{[e]:An(qe(e),r,gt(t))}}o(WS,"MappedIntrinsicPropertyKey");function HS(e,r,t){return e.reduce((i,a)=>N(N({},i),WS(a,r,t)),{})}o(HS,"MappedIntrinsicPropertyKeys");function KS(e,r,t){return HS(e.keys,r,t)}o(KS,"MappedIntrinsicProperties");function ov(e,r,t){let n=KS(e,r,t);return Ze(n)}o(ov,"IntrinsicFromMappedKey");function qS(e){let[r,t]=[e.slice(0,1),e.slice(1)];return[r.toLowerCase(),t].join("")}o(qS,"ApplyUncapitalize");function XS(e){let[r,t]=[e.slice(0,1),e.slice(1)];return[r.toUpperCase(),t].join("")}o(XS,"ApplyCapitalize");function JS(e){return e.toUpperCase()}o(JS,"ApplyUppercase");function YS(e){return e.toLowerCase()}o(YS,"ApplyLowercase");function QS(e,r,t){let n=za(e.pattern);if(!Go(n))return Ce(N({},e),{pattern:av(e.pattern,r)});let u=[...vs(n)].map(m=>qe(m)),s=uv(u,r),d=it(s);return Il([d],t)}o(QS,"FromTemplateLiteral");function av(e,r){return typeof e=="string"?r==="Uncapitalize"?qS(e):r==="Capitalize"?XS(e):r==="Uppercase"?JS(e):r==="Lowercase"?YS(e):e:e.toString()}o(av,"FromLiteralValue");function uv(e,r){return e.map(t=>An(t,r))}o(uv,"FromRest");function An(e,r,t={}){return Gr(e)?ov(e,r,t):Zr(e)?QS(e,r,t):Ke(e)?it(uv(e.anyOf,r),t):Di(e)?qe(av(e.const,r),t):W(e,t)}o(An,"Intrinsic");function sv(e,r={}){return An(e,"Capitalize",r)}o(sv,"Capitalize");l();function cv(e,r={}){return An(e,"Lowercase",r)}o(cv,"Lowercase");l();function lv(e,r={}){return An(e,"Uncapitalize",r)}o(lv,"Uncapitalize");l();function dv(e,r={}){return An(e,"Uppercase",r)}o(dv,"Uppercase");l();function mv(e,r){return W({[L]:"Not",not:e},r)}o(mv,"Not");l();l();l();function ew(e,r,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=qa(e[i],r,gt(t));return n}o(ew,"FromProperties");function tw(e,r,t){return ew(e.properties,r,t)}o(tw,"FromMappedResult");function pv(e,r,t){let n=tw(e,r,t);return Ze(n)}o(pv,"OmitFromMappedResult");function rw(e,r){return e.map(t=>qf(t,r))}o(rw,"FromIntersect");function nw(e,r){return e.map(t=>qf(t,r))}o(nw,"FromUnion");function iw(e,r){let i=e,{[r]:t}=i;return Bo(i,[Mc(r)])}o(iw,"FromProperty");function ow(e,r){return r.reduce((t,n)=>iw(t,n),e)}o(ow,"FromProperties");function aw(e,r){let t=Ot(e,[yt,"$id","required","properties"]),n=ow(e.properties,r);return st(n,t)}o(aw,"FromObject");function qf(e,r){return Rt(e)?Nr(rw(e.allOf,r)):Ke(e)?it(nw(e.anyOf,r)):$t(e)?aw(e,r):st({})}o(qf,"OmitResolve");function qa(e,r,t){if(Gr(r))return fv(e,r,t);if(bt(e))return pv(e,r,t);let n=Sn(r)?Rr(r):r;return W(N(N({},qf(e,n)),t))}o(qa,"Omit");function uw(e,r,t){return{[r]:qa(e,[r],gt(t))}}o(uw,"FromPropertyKey");function sw(e,r,t){return r.reduce((n,i)=>N(N({},n),uw(e,i,t)),{})}o(sw,"FromPropertyKeys");function cw(e,r,t){return sw(e,r.keys,t)}o(cw,"FromMappedKey");function fv(e,r,t){let n=cw(e,r,t);return Ze(n)}o(fv,"OmitFromMappedKey");l();function hv(e,r){return Yn(e.parameters,r)}o(hv,"Parameters");l();l();function gv(e){return e.map(r=>yv(r))}o(gv,"FromRest");function lw(e){let r={};for(let t of globalThis.Object.getOwnPropertyNames(e))r[t]=Lr(e[t]);return r}o(lw,"FromProperties");function dw(e){let r=Ot(e,[yt,"$id","required","properties"]),t=lw(e.properties);return st(t,r)}o(dw,"FromObject");function yv(e){return Rt(e)?Nr(gv(e.allOf)):Ke(e)?it(gv(e.anyOf)):$t(e)?dw(e):st({})}o(yv,"PartialResolve");function _l(e,r){return bt(e)?bv(e,r):W(N(N({},yv(e)),r))}o(_l,"Partial");function mw(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=_l(e[n],gt(r));return t}o(mw,"FromProperties");function pw(e,r){return mw(e.properties,r)}o(pw,"FromMappedResult");function bv(e,r){let t=pw(e,r);return Ze(t)}o(bv,"PartialFromMappedResult");l();l();l();function fw(e,r,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Xa(e[i],r,gt(t));return n}o(fw,"FromProperties");function hw(e,r,t){return fw(e.properties,r,t)}o(hw,"FromMappedResult");function vv(e,r,t){let n=hw(e,r,t);return Ze(n)}o(vv,"PickFromMappedResult");function gw(e,r){return e.map(t=>Xf(t,r))}o(gw,"FromIntersect");function yw(e,r){return e.map(t=>Xf(t,r))}o(yw,"FromUnion");function bw(e,r){let t={};for(let n of r)n in e&&(t[n]=e[n]);return t}o(bw,"FromProperties");function vw(e,r){let t=Ot(e,[yt,"$id","required","properties"]),n=bw(e.properties,r);return st(n,t)}o(vw,"FromObject");function Xf(e,r){return Rt(e)?Nr(gw(e.allOf,r)):Ke(e)?it(yw(e.anyOf,r)):$t(e)?vw(e,r):st({})}o(Xf,"PickResolve");function Xa(e,r,t){if(Gr(r))return xv(e,r,t);if(bt(e))return vv(e,r,t);let n=Sn(r)?Rr(r):r;return W(N(N({},Xf(e,n)),t))}o(Xa,"Pick");function xw(e,r,t){return{[r]:Xa(e,[r],gt(t))}}o(xw,"FromPropertyKey");function Ew(e,r,t){return r.reduce((n,i)=>N(N({},n),xw(e,i,t)),{})}o(Ew,"FromPropertyKeys");function Iw(e,r,t){return Ew(e,r.keys,t)}o(Iw,"FromMappedKey");function xv(e,r,t){let n=Iw(e,r,t);return Ze(n)}o(xv,"PickFromMappedKey");l();function Ev(e){return an(Lr(e))}o(Ev,"ReadonlyOptional");l();function Vo(e,r,t){return W({[L]:"Record",type:"object",patternProperties:{[e]:r}},t)}o(Vo,"RecordCreateFromPattern");function Jf(e,r,t){let n={};for(let i of e)n[i]=r;return st(n,Ce(N({},t),{[nn]:"Record"}))}o(Jf,"RecordCreateFromKeys");function Cw(e,r,t){return xl(e)?Jf(Rr(e),r,t):Vo(e.pattern,r,t)}o(Cw,"FromTemplateLiteralKey");function Dw(e,r,t){return Jf(Rr(it(e)),r,t)}o(Dw,"FromUnionKey");function Sw(e,r,t){return Jf([e.toString()],r,t)}o(Sw,"FromLiteralKey");function ww(e,r,t){return Vo(e.source,r,t)}o(ww,"FromRegExpKey");function Aw(e,r,t){let n=It(e.pattern)?wi:e.pattern;return Vo(n,r,t)}o(Aw,"FromStringKey");function Pw(e,r,t){return Vo(wi,r,t)}o(Pw,"FromAnyKey");function Fw(e,r,t){return Vo(m1,r,t)}o(Fw,"FromNeverKey");function Bw(e,r,t){return Vo(Si,r,t)}o(Bw,"FromIntegerKey");function Ow(e,r,t){return Vo(Si,r,t)}o(Ow,"FromNumberKey");function Iv(e,r,t={}){return Ke(e)?Dw(e.anyOf,r,t):Zr(e)?Cw(e,r,t):Di(e)?Sw(e.const,r,t):jo(e)?Bw(e,r,t):zo(e)?Ow(e,r,t):xf(e)?ww(e,r,t):ps(e)?Aw(e,r,t):hf(e)?Pw(e,r,t):oo(e)?Fw(e,r,t):nt(t)}o(Iv,"Record");l();var Mw=0;function Cv(e,r={}){It(r.$id)&&(r.$id="T".concat(Mw++));let t=us(e({[L]:"This",$ref:"".concat(r.$id)}));return t.$id=r.$id,W(N({[nn]:"Recursive"},t),r)}o(Cv,"Recursive");l();function Dv(e,r){if(pt(e))return W({[L]:"Ref",$ref:e},r);if(It(e.$id))throw new Error("Reference target type must specify an $id");return W({[L]:"Ref",$ref:e.$id},r)}o(Dv,"Ref");l();function Sv(e,r){let t=pt(e)?new globalThis.RegExp(e):e;return W({[L]:"RegExp",type:"RegExp",source:t.source,flags:t.flags},r)}o(Sv,"RegExp");l();l();function wv(e){return e.map(r=>Av(r))}o(wv,"FromRest");function Tw(e){let r={};for(let t of globalThis.Object.getOwnPropertyNames(e))r[t]=Ot(e[t],[Fr]);return r}o(Tw,"FromProperties");function kw(e){let r=Ot(e,[yt,"$id","required","properties"]),t=Tw(e.properties);return st(t,r)}o(kw,"FromObject");function Av(e){return Rt(e)?Nr(wv(e.allOf)):Ke(e)?it(wv(e.anyOf)):$t(e)?kw(e):st({})}o(Av,"RequiredResolve");function Ll(e,r){return bt(e)?Pv(e,r):W(N(N({},Av(e)),r))}o(Ll,"Required");function _w(e,r){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=Ll(e[n],r);return t}o(_w,"FromProperties");function Lw(e,r){return _w(e.properties,r)}o(Lw,"FromMappedResult");function Pv(e,r){let t=Lw(e,r);return Ze(t)}o(Pv,"RequiredFromMappedResult");l();function Rw(e){var r;return Rt(e)?e.allOf:Ke(e)?e.anyOf:Dn(e)?(r=e.items)!=null?r:[]:[]}o(Rw,"RestResolve");function Fv(e){return Rw(e)}o(Fv,"Rest");l();function Bv(e,r){return W(e.returns,r)}o(Bv,"ReturnType");l();function Ov(e){return JSON.parse(JSON.stringify(e))}o(Ov,"Strict");l();var e0=class e0{constructor(r){this.schema=r}Decode(r){return new Qf(this.schema,r)}};o(e0,"TransformDecodeBuilder");var Yf=e0,t0=class t0{constructor(r,t){this.schema=r,this.decode=t}EncodeTransform(r,t){let a={Encode:o(u=>t[yt].Encode(r(u)),"Encode"),Decode:o(u=>this.decode(t[yt].Decode(u)),"Decode")};return Ce(N({},t),{[yt]:a})}EncodeSchema(r,t){let n={Decode:this.decode,Encode:r};return Ce(N({},t),{[yt]:n})}Encode(r){return La(this.schema)?this.EncodeTransform(r,this.schema):this.EncodeSchema(r,this.schema)}};o(t0,"TransformEncodeBuilder");var Qf=t0;function Mv(e){return new Yf(e)}o(Mv,"Transform");l();function Rl(e={}){var r;return W({[L]:(r=e[L])!=null?r:"Unsafe"},e)}o(Rl,"Unsafe");l();function Tv(e){return W({[L]:"Void",type:"void"},e)}o(Tv,"Void");l();var r0={};Ki(r0,{Any:()=>uo,Array:()=>gl,AsyncIterator:()=>yl,Awaited:()=>T1,BigInt:()=>Ga,Boolean:()=>El,Capitalize:()=>sv,Composite:()=>L1,Const:()=>R1,Constructor:()=>bl,ConstructorParameters:()=>N1,Date:()=>Al,Deref:()=>wn,Enum:()=>U1,Exclude:()=>Ha,Extends:()=>Wa,Extract:()=>Ka,Function:()=>so,Index:()=>Za,InstanceType:()=>nv,Integer:()=>iv,Intersect:()=>Nr,Iterator:()=>Dl,KeyOf:()=>wl,Literal:()=>qe,Lowercase:()=>cv,Mapped:()=>F1,Never:()=>nt,Not:()=>mv,Null:()=>Pl,Number:()=>Jn,Object:()=>st,Omit:()=>qa,Optional:()=>Lr,Parameters:()=>hv,Partial:()=>_l,Pick:()=>Xa,Promise:()=>Sl,Readonly:()=>an,ReadonlyOptional:()=>Ev,Record:()=>Iv,Recursive:()=>Cv,Ref:()=>Dv,RegExp:()=>Sv,Required:()=>Ll,Rest:()=>Fv,ReturnType:()=>Bv,Strict:()=>Ov,String:()=>on,Symbol:()=>Fl,TemplateLiteral:()=>Il,Transform:()=>Mv,Tuple:()=>Yn,Uint8Array:()=>Ol,Uncapitalize:()=>lv,Undefined:()=>Bl,Union:()=>it,Unknown:()=>Fi,Unsafe:()=>Rl,Uppercase:()=>dv,Void:()=>Tv});l();var f=r0;l();var Ds=f.Object({externalId:f.String({description:"An identifier that can be used to link this entity to data outside of the MVF."}),name:f.String({description:"The name of the entity."}),shortName:f.String({description:"A short name for the entity."}),description:f.String({description:"A description of the entity."}),icon:f.String({format:"uri",description:"A URL to an icon for the entity."})},{$id:"BaseDetails",description:"Additional information about a given entity."}),n0=f.Partial(Ds,{$id:"Details",description:"Additional information about a given entity."}),Vr=f.Object({details:f.Optional(f.Ref(n0))},{$id:"WithDetails"}),Wo=o(e=>{let r=[...e].sort(),t=f.Pick(Ds,e),n=f.Omit(Ds,e);return f.Object({details:f.Intersect([t,f.Partial(n)])},{$id:"WithRequiredDetails_".concat(r.join("_"))})},"WithRequiredDetails"),i0=[Ds,n0];l();var Ja=f.Number({$id:"Longitude",minimum:-180,maximum:180,description:"A WGS 84-compatible longitude coordinate value."}),Ya=f.Number({$id:"Latitude",minimum:-90,maximum:90,description:"A WGS 84-compatible latitude coordinate value."}),Ho=f.Tuple([f.Ref(Ja),f.Ref(Ya)],{$id:"Position",minItems:2,maxItems:2,description:"A valid WGS 84 position consisting of a longitude value, followed by a latitude value."}),yr=f.Object({type:f.Literal("Point"),coordinates:f.Ref(Ho)},{$id:"Point",description:"An RFC-7946 compatible GeoJSON Point geometry."}),Nl=f.Object({type:f.Literal("MultiPoint"),coordinates:f.Array(f.Ref(Ho))},{$id:"MultiPoint",description:"An RFC-7946 compatible GeoJSON MultiPoint geometry."}),Ul=f.Object({type:f.Literal("LineString"),coordinates:f.Array(f.Ref(Ho),{minItems:2,description:"At least two positions are required."})},{$id:"LineString",description:"An RFC-7946 compatible GeoJSON LineString geometry."}),jl=f.Object({type:f.Literal("MultiLineString"),coordinates:f.Array(f.Array(f.Ref(Ho),{minItems:2}))},{$id:"MultiLineString",description:"An RFC-7946 compatible GeoJSON MultiLineString geometry."}),kv=f.Array(f.Ref(Ho),{$id:"LinearRing",minItems:4,description:"A linear ring is a building block of a polygon or multi-polygon."}),o0=f.Array(f.Ref(kv),{$id:"LinearRings",minItems:1,description:"A collection of linear rings, at least one of which is the exterior ring of a polygon."}),Qa=f.Object({type:f.Literal("Polygon"),coordinates:f.Ref(o0)},{$id:"Polygon",description:"An RFC-7946 compatible GeoJSON Polygon geometry."}),eu=f.Object({type:f.Literal("MultiPolygon"),coordinates:f.Array(f.Ref(o0))},{$id:"MultiPolygon",description:"An RFC-7946 compatible GeoJSON MultiPolygon geometry."}),ar=o((e,r,t)=>f.Object({type:f.Literal("Feature"),geometry:e,properties:r},t),"Feature"),Or=o((e,r,t)=>f.Object({type:f.Literal("FeatureCollection"),features:f.Array(e,t)},r),"FeatureCollection"),a0=[Ja,Ya,Ho,yr,Nl,Ul,jl,kv,o0,Qa,eu];l();var Mt=o((e,r)=>f.Unsafe(f.String({$id:r,pattern:"^".concat(e,"_[A-Za-z0-9-]+$")})),"Ident"),br=Mt("g","GeometryId"),Le=Mt("f","FloorId"),u0=[br,Le];l();l();l();var s0=class s0{constructor(r){h(this,"_value");this._value=r}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let r=this._value;return this._value=null,{done:!1,value:r}}};o(s0,"OptionIterator");var zl=s0,c0=class c0{constructor(r){h(this,"_tag","Some");h(this,"_value");this._value=r}get value(){return this._value}isSome(){return!0}isSomeAnd(r){return r(this.value)}isNone(){return!1}equals(r){return r.isSome()&&r.value===this.value}expect(r){return this.value}unwrap(){return this.value}unwrapOr(r){return this.value}unwrapOrElse(r){return this.value}inspect(r){return r(this.value),this}inspectNone(r){return this}map(r){return _v(r(this.value))}mapAsync(r){return r(this.value).then(t=>_v(t))}mapOr(r,t){return this.map(r).unwrapOr(t)}mapOrAsync(r,t){return this.mapAsync(r).then(n=>n.unwrapOr(t))}mapOrElse(r,t){return this.map(r).unwrapOrElse(t)}mapOrElseAsync(r,t){return this.mapAsync(r).then(n=>n.unwrapOrElse(t))}and(r){return r}andThen(r){return r(this.value)}andThenAsync(r){return r(this.value)}filter(r){return r(this.value)?this:mo()}or(r){return this}orElse(r){return this}xor(r){return r.isSome()?mo():this}toString(){return"Some(".concat(this.value,")")}okOr(r){return ue(this.value)}okOrElse(r){return ue(this.value)}iter(){return new zl(this.value)}[Symbol.iterator](){return this.iter()}zip(r){return r.isSome()?tu([this.value,r.value]):mo()}zipWith(r,t){return r.isSome()?tu(t(this.value,r.value)):mo()}get[Symbol.toStringTag](){return"Some"}};o(c0,"Some");var $l=c0,l0=class l0{constructor(){h(this,"_tag","None")}get value(){return null}isSome(){return!1}isSomeAnd(r){return!1}isNone(){return!0}equals(r){return r.isNone()}expect(r){throw new Error(r)}unwrap(){throw new Error("Tried to unwrap a None value!")}unwrapOr(r){return r}unwrapOrElse(r){return r()}inspect(r){return this}inspectNone(r){return r(),this}map(r){return this}mapAsync(r){return Promise.resolve(this)}mapOr(r,t){return t}mapOrAsync(r,t){return Promise.resolve(t)}mapOrElse(r,t){return t()}mapOrElseAsync(r,t){return t()}and(r){return this}andThen(r){return this}andThenAsync(r){return Promise.resolve(this)}filter(r){return this}or(r){return r}orElse(r){return r()}xor(r){return r}toString(){return"None"}okOr(r){return se(r)}okOrElse(r){return se(r())}iter(){return new zl(null)}[Symbol.iterator](){return this.iter()}zip(r){return this}zipWith(r,t){return this}get[Symbol.toStringTag](){return"None"}};o(l0,"None");var Gl=l0,tu=o(e=>new $l(e),"some"),mo=o(()=>new Gl,"none"),_v=o(e=>e instanceof $l||e instanceof Gl?e:e==null?mo():tu(e),"option");var p0=class p0{constructor(r){h(this,"_value");this._value=r}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let r=this._value;return this._value=null,{done:!1,value:r}}};o(p0,"ResultIterator");var Zl=p0,f0=class f0{constructor(r){h(this,"_tag","Ok");h(this,"_value");this._value=r}get value(){return this._value}get error(){return null}isOk(){return!0}isOkAnd(r){return r(this.value)}isErr(){return!1}isErrAnd(r){return!1}ok(){return tu(this.value)}err(){return mo()}expect(r){return this.value}expectErr(r){throw new Error(r)}unwrap(){return this.value}unwrapOr(r){return this.value}unwrapOrElse(r){return this.value}inspect(r){return r(this.value),this}inspectErr(){return this}map(r){return ue(r(this.value))}async mapAsync(r){return r(this.value).then(ue)}mapOr(r,t){return r(this.value)}async mapOrAsync(r,t){return r(this.value)}mapOrElse(r,t){return r(this.value)}async mapOrElseAsync(r,t){return r(this.value)}mapErr(r){return this}iter(){return new Zl(this.value)}[Symbol.iterator](){return this.iter()}and(r){return r}andThen(r){return r(this.value)}or(r){return this}orElse(r){return this}async andThenAsync(r){return r(this.value)}toString(){return"Ok(".concat(this.value,")")}get[Symbol.toStringTag](){return"Ok"}};o(f0,"Ok");var d0=f0,Vl=class Vl{constructor(r){h(this,"_tag","Err");h(this,"_error");this._error=r}get value(){return null}get error(){return this._error}isOk(){return!1}isOkAnd(r){return!1}isErr(){return!0}isErrAnd(r){return r(this.error)}ok(){return mo()}err(){return tu(this.error)}expect(r){throw new Error(r)}expectErr(r){return this.error}unwrap(){throw this.error}unwrapOr(r){return r}unwrapOrElse(r){return r()}inspect(){return this}inspectErr(r){return r(this.error),this}map(r){return this}iter(){return new Zl(null)}[Symbol.iterator](){return this.iter()}async mapAsync(r){return this}mapOr(r,t){return t}async mapOrAsync(r,t){return t}mapOrElse(r,t){return t()}async mapOrElseAsync(r,t){return t()}mapErr(r){return new Vl(r(this.error))}and(r){return this}andThen(r){return this}async andThenAsync(r){return this}or(r){return r}orElse(r){return r(this.error)}toString(){return"Err(".concat(this.error,")")}get[Symbol.toStringTag](){return"Err"}};o(Vl,"Err");var m0=Vl,ue=o(e=>new d0(e),"ok"),se=o(e=>new m0(e),"err");l();var jr;(function(e){e.GeometryMissingError="GeometryMissingError",e.FloorMissingError="FloorMissingError",e.UnknownFloorError="UnknownFloorError",e.UnknownGeometryError="UnknownGeometryError",e.DuplicateIdError="DuplicateIdError"})(jr||(jr={}));l();l();l();l();var g0=class g0 extends he{constructor(r){super("Duplicate type kind '".concat(r,"' detected"))}};o(g0,"TypeSystemDuplicateTypeKind");var h0=g0,y0=class y0 extends he{constructor(r){super("Duplicate string format '".concat(r,"' detected"))}};o(y0,"TypeSystemDuplicateFormat");var Ss=y0,Wl;(function(e){function r(n,i){if(Gt.Has(n))throw new h0(n);return Gt.Set(n,i),(a={})=>Rl(Ce(N({},a),{[L]:n}))}o(r,"Type"),e.Type=r;function t(n,i){if(Br.Has(n))throw new Ss(n);return Br.Set(n,i),n}o(t,"Format"),e.Format=t})(Wl||(Wl={}));l();function Nw(e){switch(e.errorType){case U.ArrayContains:return"Expected array to contain at least one matching value";case U.ArrayMaxContains:return"Expected array to contain no more than ".concat(e.schema.maxContains," matching values");case U.ArrayMinContains:return"Expected array to contain at least ".concat(e.schema.minContains," matching values");case U.ArrayMaxItems:return"Expected array length to be less or equal to ".concat(e.schema.maxItems);case U.ArrayMinItems:return"Expected array length to be greater or equal to ".concat(e.schema.minItems);case U.ArrayUniqueItems:return"Expected array elements to be unique";case U.Array:return"Expected array";case U.AsyncIterator:return"Expected AsyncIterator";case U.BigIntExclusiveMaximum:return"Expected bigint to be less than ".concat(e.schema.exclusiveMaximum);case U.BigIntExclusiveMinimum:return"Expected bigint to be greater than ".concat(e.schema.exclusiveMinimum);case U.BigIntMaximum:return"Expected bigint to be less or equal to ".concat(e.schema.maximum);case U.BigIntMinimum:return"Expected bigint to be greater or equal to ".concat(e.schema.minimum);case U.BigIntMultipleOf:return"Expected bigint to be a multiple of ".concat(e.schema.multipleOf);case U.BigInt:return"Expected bigint";case U.Boolean:return"Expected boolean";case U.DateExclusiveMinimumTimestamp:return"Expected Date timestamp to be greater than ".concat(e.schema.exclusiveMinimumTimestamp);case U.DateExclusiveMaximumTimestamp:return"Expected Date timestamp to be less than ".concat(e.schema.exclusiveMaximumTimestamp);case U.DateMinimumTimestamp:return"Expected Date timestamp to be greater or equal to ".concat(e.schema.minimumTimestamp);case U.DateMaximumTimestamp:return"Expected Date timestamp to be less or equal to ".concat(e.schema.maximumTimestamp);case U.DateMultipleOfTimestamp:return"Expected Date timestamp to be a multiple of ".concat(e.schema.multipleOfTimestamp);case U.Date:return"Expected Date";case U.Function:return"Expected function";case U.IntegerExclusiveMaximum:return"Expected integer to be less than ".concat(e.schema.exclusiveMaximum);case U.IntegerExclusiveMinimum:return"Expected integer to be greater than ".concat(e.schema.exclusiveMinimum);case U.IntegerMaximum:return"Expected integer to be less or equal to ".concat(e.schema.maximum);case U.IntegerMinimum:return"Expected integer to be greater or equal to ".concat(e.schema.minimum);case U.IntegerMultipleOf:return"Expected integer to be a multiple of ".concat(e.schema.multipleOf);case U.Integer:return"Expected integer";case U.IntersectUnevaluatedProperties:return"Unexpected property";case U.Intersect:return"Expected all values to match";case U.Iterator:return"Expected Iterator";case U.Literal:return"Expected ".concat(typeof e.schema.const=="string"?"'".concat(e.schema.const,"'"):e.schema.const);case U.Never:return"Never";case U.Not:return"Value should not match";case U.Null:return"Expected null";case U.NumberExclusiveMaximum:return"Expected number to be less than ".concat(e.schema.exclusiveMaximum);case U.NumberExclusiveMinimum:return"Expected number to be greater than ".concat(e.schema.exclusiveMinimum);case U.NumberMaximum:return"Expected number to be less or equal to ".concat(e.schema.maximum);case U.NumberMinimum:return"Expected number to be greater or equal to ".concat(e.schema.minimum);case U.NumberMultipleOf:return"Expected number to be a multiple of ".concat(e.schema.multipleOf);case U.Number:return"Expected number";case U.Object:return"Expected object";case U.ObjectAdditionalProperties:return"Unexpected property";case U.ObjectMaxProperties:return"Expected object to have no more than ".concat(e.schema.maxProperties," properties");case U.ObjectMinProperties:return"Expected object to have at least ".concat(e.schema.minProperties," properties");case U.ObjectRequiredProperty:return"Expected required property";case U.Promise:return"Expected Promise";case U.RegExp:return"Expected string to match regular expression";case U.StringFormatUnknown:return"Unknown format '".concat(e.schema.format,"'");case U.StringFormat:return"Expected string to match '".concat(e.schema.format,"' format");case U.StringMaxLength:return"Expected string length less or equal to ".concat(e.schema.maxLength);case U.StringMinLength:return"Expected string length greater or equal to ".concat(e.schema.minLength);case U.StringPattern:return"Expected string to match '".concat(e.schema.pattern,"'");case U.String:return"Expected string";case U.Symbol:return"Expected symbol";case U.TupleLength:return"Expected tuple to have ".concat(e.schema.maxItems||0," elements");case U.Tuple:return"Expected tuple";case U.Uint8ArrayMaxByteLength:return"Expected byte length less or equal to ".concat(e.schema.maxByteLength);case U.Uint8ArrayMinByteLength:return"Expected byte length greater or equal to ".concat(e.schema.minByteLength);case U.Uint8Array:return"Expected Uint8Array";case U.Undefined:return"Expected undefined";case U.Union:return"Expected union value";case U.Void:return"Expected void";case U.Kind:return"Expected kind '".concat(e.schema[L],"'");default:return"Unknown error type"}}o(Nw,"DefaultErrorFunction");var Uw=Nw;function Lv(){return Uw}o(Lv,"GetErrorFunction");l();var v0=class v0 extends he{constructor(r){super("Unable to dereference schema with $id '".concat(r.$ref,"'")),this.schema=r}};o(v0,"TypeDereferenceError");var b0=v0;function jw(e,r){let t=r.find(n=>n.$id===e.$ref);if(t===void 0)throw new b0(e);return Ve(t,r)}o(jw,"Resolve");function ln(e,r){return!Ue(e.$id)||r.some(t=>t.$id===e.$id)||r.push(e),r}o(ln,"Pushref");function Ve(e,r){return e[L]==="This"||e[L]==="Ref"?jw(e,r):e}o(Ve,"Deref");l();var E0=class E0 extends he{constructor(r){super("Unable to hash value"),this.value=r}};o(E0,"ValueHashError");var x0=E0,Wr;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(Wr||(Wr={}));var ru=BigInt("14695981039346656037"),[zw,$w]=[BigInt("1099511628211"),BigInt("18446744073709551616")],Gw=Array.from({length:256}).map((e,r)=>BigInt(r)),Rv=new Float64Array(1),Nv=new DataView(Rv.buffer),Uv=new Uint8Array(Rv.buffer);function*Zw(e){let r=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let t=0;t<r;t++)yield e>>8*(r-1-t)&255}o(Zw,"NumberToBytes");function Vw(e){vr(Wr.Array);for(let r of e)nu(r)}o(Vw,"ArrayType");function Ww(e){vr(Wr.Boolean),vr(e?1:0)}o(Ww,"BooleanType");function Hw(e){vr(Wr.BigInt),Nv.setBigInt64(0,e);for(let r of Uv)vr(r)}o(Hw,"BigIntType");function Kw(e){vr(Wr.Date),nu(e.getTime())}o(Kw,"DateType");function qw(e){vr(Wr.Null)}o(qw,"NullType");function Xw(e){vr(Wr.Number),Nv.setFloat64(0,e);for(let r of Uv)vr(r)}o(Xw,"NumberType");function Jw(e){vr(Wr.Object);for(let r of globalThis.Object.getOwnPropertyNames(e).sort())nu(r),nu(e[r])}o(Jw,"ObjectType");function Yw(e){vr(Wr.String);for(let r=0;r<e.length;r++)for(let t of Zw(e.charCodeAt(r)))vr(t)}o(Yw,"StringType");function Qw(e){vr(Wr.Symbol),nu(e.description)}o(Qw,"SymbolType");function eA(e){vr(Wr.Uint8Array);for(let r=0;r<e.length;r++)vr(e[r])}o(eA,"Uint8ArrayType");function tA(e){return vr(Wr.Undefined)}o(tA,"UndefinedType");function nu(e){if(Ie(e))return Vw(e);if(Kn(e))return Ww(e);if(ir(e))return Hw(e);if(Pr(e))return Kw(e);if(xi(e))return qw(e);if(me(e))return Xw(e);if(we(e))return Jw(e);if(Ue(e))return Yw(e);if(Ei(e))return Qw(e);if(_a(e))return eA(e);if(Ct(e))return tA(e);throw new x0(e)}o(nu,"Visit");function vr(e){ru=ru^Gw[e],ru=ru*zw%$w}o(vr,"FNV1A64");function po(e){return ru=BigInt("14695981039346656037"),nu(e),ru}o(po,"Hash");l();var C0=class C0 extends he{constructor(r){super("Unknown type"),this.schema=r}};o(C0,"ValueCheckUnknownTypeError");var I0=C0;function rA(e){return e[L]==="Any"||e[L]==="Unknown"}o(rA,"IsAnyOrUnknown");function Te(e){return e!==void 0}o(Te,"IsDefined");function nA(e,r,t){return!0}o(nA,"FromAny");function iA(e,r,t){if(!Ie(t)||Te(e.minItems)&&!(t.length>=e.minItems)||Te(e.maxItems)&&!(t.length<=e.maxItems)||!t.every(a=>ur(e.items,r,a))||e.uniqueItems===!0&&!function(){let a=new Set;for(let u of t){let s=po(u);if(a.has(s))return!1;a.add(s)}return!0}())return!1;if(!(Te(e.contains)||me(e.minContains)||me(e.maxContains)))return!0;let n=Te(e.contains)?e.contains:nt(),i=t.reduce((a,u)=>ur(n,r,u)?a+1:a,0);return!(i===0||me(e.minContains)&&i<e.minContains||me(e.maxContains)&&i>e.maxContains)}o(iA,"FromArray");function oA(e,r,t){return ml(t)}o(oA,"FromAsyncIterator");function aA(e,r,t){return!(!ir(t)||Te(e.exclusiveMaximum)&&!(t<e.exclusiveMaximum)||Te(e.exclusiveMinimum)&&!(t>e.exclusiveMinimum)||Te(e.maximum)&&!(t<=e.maximum)||Te(e.minimum)&&!(t>=e.minimum)||Te(e.multipleOf)&&t%e.multipleOf!==BigInt(0))}o(aA,"FromBigInt");function uA(e,r,t){return Kn(t)}o(uA,"FromBoolean");function sA(e,r,t){return ur(e.returns,r,t.prototype)}o(sA,"FromConstructor");function cA(e,r,t){return!(!Pr(t)||Te(e.exclusiveMaximumTimestamp)&&!(t.getTime()<e.exclusiveMaximumTimestamp)||Te(e.exclusiveMinimumTimestamp)&&!(t.getTime()>e.exclusiveMinimumTimestamp)||Te(e.maximumTimestamp)&&!(t.getTime()<=e.maximumTimestamp)||Te(e.minimumTimestamp)&&!(t.getTime()>=e.minimumTimestamp)||Te(e.multipleOfTimestamp)&&t.getTime()%e.multipleOfTimestamp!==0)}o(cA,"FromDate");function lA(e,r,t){return io(t)}o(lA,"FromFunction");function dA(e,r,t){return!(!hl(t)||Te(e.exclusiveMaximum)&&!(t<e.exclusiveMaximum)||Te(e.exclusiveMinimum)&&!(t>e.exclusiveMinimum)||Te(e.maximum)&&!(t<=e.maximum)||Te(e.minimum)&&!(t>=e.minimum)||Te(e.multipleOf)&&t%e.multipleOf!==0)}o(dA,"FromInteger");function mA(e,r,t){let n=e.allOf.every(i=>ur(i,r,t));if(e.unevaluatedProperties===!1){let i=new RegExp(Pi(e)),a=Object.getOwnPropertyNames(t).every(u=>i.test(u));return n&&a}else if(je(e.unevaluatedProperties)){let i=new RegExp(Pi(e)),a=Object.getOwnPropertyNames(t).every(u=>i.test(u)||ur(e.unevaluatedProperties,r,t[u]));return n&&a}else return n}o(mA,"FromIntersect");function pA(e,r,t){return pl(t)}o(pA,"FromIterator");function fA(e,r,t){return t===e.const}o(fA,"FromLiteral");function hA(e,r,t){return!1}o(hA,"FromNever");function gA(e,r,t){return!ur(e.not,r,t)}o(gA,"FromNot");function yA(e,r,t){return xi(t)}o(yA,"FromNull");function bA(e,r,t){return!(!et.IsNumberLike(t)||Te(e.exclusiveMaximum)&&!(t<e.exclusiveMaximum)||Te(e.exclusiveMinimum)&&!(t>e.exclusiveMinimum)||Te(e.minimum)&&!(t>=e.minimum)||Te(e.maximum)&&!(t<=e.maximum)||Te(e.multipleOf)&&t%e.multipleOf!==0)}o(bA,"FromNumber");function vA(e,r,t){if(!et.IsObjectLike(t)||Te(e.minProperties)&&!(Object.getOwnPropertyNames(t).length>=e.minProperties)||Te(e.maxProperties)&&!(Object.getOwnPropertyNames(t).length<=e.maxProperties))return!1;let n=Object.getOwnPropertyNames(e.properties);for(let i of n){let a=e.properties[i];if(e.required&&e.required.includes(i)){if(!ur(a,r,t[i])||(Bi(a)||rA(a))&&!(i in t))return!1}else if(et.IsExactOptionalProperty(t,i)&&!ur(a,r,t[i]))return!1}if(e.additionalProperties===!1){let i=Object.getOwnPropertyNames(t);return e.required&&e.required.length===n.length&&i.length===n.length?!0:i.every(a=>n.includes(a))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(t).every(a=>n.includes(a)||ur(e.additionalProperties,r,t[a])):!0}o(vA,"FromObject");function xA(e,r,t){return fl(t)}o(xA,"FromPromise");function EA(e,r,t){if(!et.IsRecordLike(t)||Te(e.minProperties)&&!(Object.getOwnPropertyNames(t).length>=e.minProperties)||Te(e.maxProperties)&&!(Object.getOwnPropertyNames(t).length<=e.maxProperties))return!1;let[n,i]=Object.entries(e.patternProperties)[0],a=new RegExp(n),u=Object.entries(t).every(([m,p])=>a.test(m)?ur(i,r,p):!0),s=typeof e.additionalProperties=="object"?Object.entries(t).every(([m,p])=>a.test(m)?!0:ur(e.additionalProperties,r,p)):!0,d=e.additionalProperties===!1?Object.getOwnPropertyNames(t).every(m=>a.test(m)):!0;return u&&s&&d}o(EA,"FromRecord");function IA(e,r,t){return ur(Ve(e,r),r,t)}o(IA,"FromRef");function CA(e,r,t){let n=new RegExp(e.source,e.flags);return Te(e.minLength)&&!(t.length>=e.minLength)||Te(e.maxLength)&&!(t.length<=e.maxLength)?!1:n.test(t)}o(CA,"FromRegExp");function DA(e,r,t){return!Ue(t)||Te(e.minLength)&&!(t.length>=e.minLength)||Te(e.maxLength)&&!(t.length<=e.maxLength)||Te(e.pattern)&&!new RegExp(e.pattern).test(t)?!1:Te(e.format)?Br.Has(e.format)?Br.Get(e.format)(t):!1:!0}o(DA,"FromString");function SA(e,r,t){return Ei(t)}o(SA,"FromSymbol");function wA(e,r,t){return Ue(t)&&new RegExp(e.pattern).test(t)}o(wA,"FromTemplateLiteral");function AA(e,r,t){return ur(Ve(e,r),r,t)}o(AA,"FromThis");function PA(e,r,t){if(!Ie(t)||e.items===void 0&&t.length!==0||t.length!==e.maxItems)return!1;if(!e.items)return!0;for(let n=0;n<e.items.length;n++)if(!ur(e.items[n],r,t[n]))return!1;return!0}o(PA,"FromTuple");function FA(e,r,t){return Ct(t)}o(FA,"FromUndefined");function BA(e,r,t){return e.anyOf.some(n=>ur(n,r,t))}o(BA,"FromUnion");function OA(e,r,t){return!(!_a(t)||Te(e.maxByteLength)&&!(t.length<=e.maxByteLength)||Te(e.minByteLength)&&!(t.length>=e.minByteLength))}o(OA,"FromUint8Array");function MA(e,r,t){return!0}o(MA,"FromUnknown");function TA(e,r,t){return et.IsVoidLike(t)}o(TA,"FromVoid");function kA(e,r,t){return Gt.Has(e[L])?Gt.Get(e[L])(e,t):!1}o(kA,"FromKind");function ur(e,r,t){let n=Te(e.$id)?[...r,e]:r,i=e;switch(i[L]){case"Any":return nA(i,n,t);case"Array":return iA(i,n,t);case"AsyncIterator":return oA(i,n,t);case"BigInt":return aA(i,n,t);case"Boolean":return uA(i,n,t);case"Constructor":return sA(i,n,t);case"Date":return cA(i,n,t);case"Function":return lA(i,n,t);case"Integer":return dA(i,n,t);case"Intersect":return mA(i,n,t);case"Iterator":return pA(i,n,t);case"Literal":return fA(i,n,t);case"Never":return hA(i,n,t);case"Not":return gA(i,n,t);case"Null":return yA(i,n,t);case"Number":return bA(i,n,t);case"Object":return vA(i,n,t);case"Promise":return xA(i,n,t);case"Record":return EA(i,n,t);case"Ref":return IA(i,n,t);case"RegExp":return CA(i,n,t);case"String":return DA(i,n,t);case"Symbol":return SA(i,n,t);case"TemplateLiteral":return wA(i,n,t);case"This":return AA(i,n,t);case"Tuple":return PA(i,n,t);case"Undefined":return FA(i,n,t);case"Union":return BA(i,n,t);case"Uint8Array":return OA(i,n,t);case"Unknown":return MA(i,n,t);case"Void":return TA(i,n,t);default:if(!Gt.Has(i[L]))throw new I0(i);return kA(i,n,t)}}o(ur,"Visit");function Be(...e){return e.length===3?ur(e[0],e[1],e[2]):ur(e[0],[],e[1])}o(Be,"Check");var U;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(U||(U={}));var S0=class S0 extends he{constructor(r){super("Unknown type"),this.schema=r}};o(S0,"ValueErrorsUnknownTypeError");var D0=S0;function Oi(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Oi,"EscapeKey");function ke(e){return e!==void 0}o(ke,"IsDefined");var w0=class w0{constructor(r){this.iterator=r}[Symbol.iterator](){return this.iterator}First(){let r=this.iterator.next();return r.done?void 0:r.value}};o(w0,"ValueErrorIterator");var dn=w0;function ie(e,r,t,n,i=[]){return{type:e,schema:r,path:t,value:n,message:Lv()({errorType:e,path:t,schema:r,value:n,errors:i}),errors:i}}o(ie,"Create");function*_A(e,r,t,n){}o(_A,"FromAny");function*LA(e,r,t,n){if(!Ie(n))return yield ie(U.Array,e,t,n);ke(e.minItems)&&!(n.length>=e.minItems)&&(yield ie(U.ArrayMinItems,e,t,n)),ke(e.maxItems)&&!(n.length<=e.maxItems)&&(yield ie(U.ArrayMaxItems,e,t,n));for(let u=0;u<n.length;u++)yield*X(sr(e.items,r,"".concat(t,"/").concat(u),n[u]));if(e.uniqueItems===!0&&!function(){let u=new Set;for(let s of n){let d=po(s);if(u.has(d))return!1;u.add(d)}return!0}()&&(yield ie(U.ArrayUniqueItems,e,t,n)),!(ke(e.contains)||ke(e.minContains)||ke(e.maxContains)))return;let i=ke(e.contains)?e.contains:nt(),a=n.reduce((u,s,d)=>sr(i,r,"".concat(t).concat(d),s).next().done===!0?u+1:u,0);a===0&&(yield ie(U.ArrayContains,e,t,n)),me(e.minContains)&&a<e.minContains&&(yield ie(U.ArrayMinContains,e,t,n)),me(e.maxContains)&&a>e.maxContains&&(yield ie(U.ArrayMaxContains,e,t,n))}o(LA,"FromArray");function*RA(e,r,t,n){ml(n)||(yield ie(U.AsyncIterator,e,t,n))}o(RA,"FromAsyncIterator");function*NA(e,r,t,n){if(!ir(n))return yield ie(U.BigInt,e,t,n);ke(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield ie(U.BigIntExclusiveMaximum,e,t,n)),ke(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield ie(U.BigIntExclusiveMinimum,e,t,n)),ke(e.maximum)&&!(n<=e.maximum)&&(yield ie(U.BigIntMaximum,e,t,n)),ke(e.minimum)&&!(n>=e.minimum)&&(yield ie(U.BigIntMinimum,e,t,n)),ke(e.multipleOf)&&n%e.multipleOf!==BigInt(0)&&(yield ie(U.BigIntMultipleOf,e,t,n))}o(NA,"FromBigInt");function*UA(e,r,t,n){Kn(n)||(yield ie(U.Boolean,e,t,n))}o(UA,"FromBoolean");function*jA(e,r,t,n){yield*X(sr(e.returns,r,t,n.prototype))}o(jA,"FromConstructor");function*zA(e,r,t,n){if(!Pr(n))return yield ie(U.Date,e,t,n);ke(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)&&(yield ie(U.DateExclusiveMaximumTimestamp,e,t,n)),ke(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)&&(yield ie(U.DateExclusiveMinimumTimestamp,e,t,n)),ke(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)&&(yield ie(U.DateMaximumTimestamp,e,t,n)),ke(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)&&(yield ie(U.DateMinimumTimestamp,e,t,n)),ke(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0&&(yield ie(U.DateMultipleOfTimestamp,e,t,n))}o(zA,"FromDate");function*$A(e,r,t,n){io(n)||(yield ie(U.Function,e,t,n))}o($A,"FromFunction");function*GA(e,r,t,n){if(!hl(n))return yield ie(U.Integer,e,t,n);ke(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield ie(U.IntegerExclusiveMaximum,e,t,n)),ke(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield ie(U.IntegerExclusiveMinimum,e,t,n)),ke(e.maximum)&&!(n<=e.maximum)&&(yield ie(U.IntegerMaximum,e,t,n)),ke(e.minimum)&&!(n>=e.minimum)&&(yield ie(U.IntegerMinimum,e,t,n)),ke(e.multipleOf)&&n%e.multipleOf!==0&&(yield ie(U.IntegerMultipleOf,e,t,n))}o(GA,"FromInteger");function*ZA(e,r,t,n){let i=!1;for(let a of e.allOf)for(let u of sr(a,r,t,n))i=!0,yield u;if(i)return yield ie(U.Intersect,e,t,n);if(e.unevaluatedProperties===!1){let a=new RegExp(Pi(e));for(let u of Object.getOwnPropertyNames(n))a.test(u)||(yield ie(U.IntersectUnevaluatedProperties,e,"".concat(t,"/").concat(u),n))}if(typeof e.unevaluatedProperties=="object"){let a=new RegExp(Pi(e));for(let u of Object.getOwnPropertyNames(n))if(!a.test(u)){let s=sr(e.unevaluatedProperties,r,"".concat(t,"/").concat(u),n[u]).next();s.done||(yield s.value)}}}o(ZA,"FromIntersect");function*VA(e,r,t,n){pl(n)||(yield ie(U.Iterator,e,t,n))}o(VA,"FromIterator");function*WA(e,r,t,n){n!==e.const&&(yield ie(U.Literal,e,t,n))}o(WA,"FromLiteral");function*HA(e,r,t,n){yield ie(U.Never,e,t,n)}o(HA,"FromNever");function*KA(e,r,t,n){sr(e.not,r,t,n).next().done===!0&&(yield ie(U.Not,e,t,n))}o(KA,"FromNot");function*qA(e,r,t,n){xi(n)||(yield ie(U.Null,e,t,n))}o(qA,"FromNull");function*XA(e,r,t,n){if(!et.IsNumberLike(n))return yield ie(U.Number,e,t,n);ke(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)&&(yield ie(U.NumberExclusiveMaximum,e,t,n)),ke(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)&&(yield ie(U.NumberExclusiveMinimum,e,t,n)),ke(e.maximum)&&!(n<=e.maximum)&&(yield ie(U.NumberMaximum,e,t,n)),ke(e.minimum)&&!(n>=e.minimum)&&(yield ie(U.NumberMinimum,e,t,n)),ke(e.multipleOf)&&n%e.multipleOf!==0&&(yield ie(U.NumberMultipleOf,e,t,n))}o(XA,"FromNumber");function*JA(e,r,t,n){if(!et.IsObjectLike(n))return yield ie(U.Object,e,t,n);ke(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)&&(yield ie(U.ObjectMinProperties,e,t,n)),ke(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)&&(yield ie(U.ObjectMaxProperties,e,t,n));let i=Array.isArray(e.required)?e.required:[],a=Object.getOwnPropertyNames(e.properties),u=Object.getOwnPropertyNames(n);for(let s of i)u.includes(s)||(yield ie(U.ObjectRequiredProperty,e.properties[s],"".concat(t,"/").concat(Oi(s)),void 0));if(e.additionalProperties===!1)for(let s of u)a.includes(s)||(yield ie(U.ObjectAdditionalProperties,e,"".concat(t,"/").concat(Oi(s)),n[s]));if(typeof e.additionalProperties=="object")for(let s of u)a.includes(s)||(yield*X(sr(e.additionalProperties,r,"".concat(t,"/").concat(Oi(s)),n[s])));for(let s of a){let d=e.properties[s];e.required&&e.required.includes(s)?(yield*X(sr(d,r,"".concat(t,"/").concat(Oi(s)),n[s])),Bi(e)&&!(s in n)&&(yield ie(U.ObjectRequiredProperty,d,"".concat(t,"/").concat(Oi(s)),void 0))):et.IsExactOptionalProperty(n,s)&&(yield*X(sr(d,r,"".concat(t,"/").concat(Oi(s)),n[s])))}}o(JA,"FromObject");function*YA(e,r,t,n){fl(n)||(yield ie(U.Promise,e,t,n))}o(YA,"FromPromise");function*QA(e,r,t,n){if(!et.IsRecordLike(n))return yield ie(U.Object,e,t,n);ke(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)&&(yield ie(U.ObjectMinProperties,e,t,n)),ke(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties)&&(yield ie(U.ObjectMaxProperties,e,t,n));let[i,a]=Object.entries(e.patternProperties)[0],u=new RegExp(i);for(let[s,d]of Object.entries(n))u.test(s)&&(yield*X(sr(a,r,"".concat(t,"/").concat(Oi(s)),d)));if(typeof e.additionalProperties=="object")for(let[s,d]of Object.entries(n))u.test(s)||(yield*X(sr(e.additionalProperties,r,"".concat(t,"/").concat(Oi(s)),d)));if(e.additionalProperties===!1){for(let[s,d]of Object.entries(n))if(!u.test(s))return yield ie(U.ObjectAdditionalProperties,e,"".concat(t,"/").concat(Oi(s)),d)}}o(QA,"FromRecord");function*e5(e,r,t,n){yield*X(sr(Ve(e,r),r,t,n))}o(e5,"FromRef");function*t5(e,r,t,n){if(!Ue(n))return yield ie(U.String,e,t,n);if(ke(e.minLength)&&!(n.length>=e.minLength)&&(yield ie(U.StringMinLength,e,t,n)),ke(e.maxLength)&&!(n.length<=e.maxLength)&&(yield ie(U.StringMaxLength,e,t,n)),!new RegExp(e.source,e.flags).test(n))return yield ie(U.RegExp,e,t,n)}o(t5,"FromRegExp");function*r5(e,r,t,n){if(!Ue(n))return yield ie(U.String,e,t,n);ke(e.minLength)&&!(n.length>=e.minLength)&&(yield ie(U.StringMinLength,e,t,n)),ke(e.maxLength)&&!(n.length<=e.maxLength)&&(yield ie(U.StringMaxLength,e,t,n)),Ue(e.pattern)&&(new RegExp(e.pattern).test(n)||(yield ie(U.StringPattern,e,t,n))),Ue(e.format)&&(Br.Has(e.format)?Br.Get(e.format)(n)||(yield ie(U.StringFormat,e,t,n)):yield ie(U.StringFormatUnknown,e,t,n))}o(r5,"FromString");function*n5(e,r,t,n){Ei(n)||(yield ie(U.Symbol,e,t,n))}o(n5,"FromSymbol");function*i5(e,r,t,n){if(!Ue(n))return yield ie(U.String,e,t,n);new RegExp(e.pattern).test(n)||(yield ie(U.StringPattern,e,t,n))}o(i5,"FromTemplateLiteral");function*o5(e,r,t,n){yield*X(sr(Ve(e,r),r,t,n))}o(o5,"FromThis");function*a5(e,r,t,n){if(!Ie(n))return yield ie(U.Tuple,e,t,n);if(e.items===void 0&&n.length!==0)return yield ie(U.TupleLength,e,t,n);if(n.length!==e.maxItems)return yield ie(U.TupleLength,e,t,n);if(e.items)for(let i=0;i<e.items.length;i++)yield*X(sr(e.items[i],r,"".concat(t,"/").concat(i),n[i]))}o(a5,"FromTuple");function*u5(e,r,t,n){Ct(n)||(yield ie(U.Undefined,e,t,n))}o(u5,"FromUndefined");function*s5(e,r,t,n){if(Be(e,r,n))return;let i=e.anyOf.map(a=>new dn(sr(a,r,t,n)));yield ie(U.Union,e,t,n,i)}o(s5,"FromUnion");function*c5(e,r,t,n){if(!_a(n))return yield ie(U.Uint8Array,e,t,n);ke(e.maxByteLength)&&!(n.length<=e.maxByteLength)&&(yield ie(U.Uint8ArrayMaxByteLength,e,t,n)),ke(e.minByteLength)&&!(n.length>=e.minByteLength)&&(yield ie(U.Uint8ArrayMinByteLength,e,t,n))}o(c5,"FromUint8Array");function*l5(e,r,t,n){}o(l5,"FromUnknown");function*d5(e,r,t,n){et.IsVoidLike(n)||(yield ie(U.Void,e,t,n))}o(d5,"FromVoid");function*m5(e,r,t,n){Gt.Get(e[L])(e,n)||(yield ie(U.Kind,e,t,n))}o(m5,"FromKind");function*sr(e,r,t,n){let i=ke(e.$id)?[...r,e]:r,a=e;switch(a[L]){case"Any":return yield*X(_A(a,i,t,n));case"Array":return yield*X(LA(a,i,t,n));case"AsyncIterator":return yield*X(RA(a,i,t,n));case"BigInt":return yield*X(NA(a,i,t,n));case"Boolean":return yield*X(UA(a,i,t,n));case"Constructor":return yield*X(jA(a,i,t,n));case"Date":return yield*X(zA(a,i,t,n));case"Function":return yield*X($A(a,i,t,n));case"Integer":return yield*X(GA(a,i,t,n));case"Intersect":return yield*X(ZA(a,i,t,n));case"Iterator":return yield*X(VA(a,i,t,n));case"Literal":return yield*X(WA(a,i,t,n));case"Never":return yield*X(HA(a,i,t,n));case"Not":return yield*X(KA(a,i,t,n));case"Null":return yield*X(qA(a,i,t,n));case"Number":return yield*X(XA(a,i,t,n));case"Object":return yield*X(JA(a,i,t,n));case"Promise":return yield*X(YA(a,i,t,n));case"Record":return yield*X(QA(a,i,t,n));case"Ref":return yield*X(e5(a,i,t,n));case"RegExp":return yield*X(t5(a,i,t,n));case"String":return yield*X(r5(a,i,t,n));case"Symbol":return yield*X(n5(a,i,t,n));case"TemplateLiteral":return yield*X(i5(a,i,t,n));case"This":return yield*X(o5(a,i,t,n));case"Tuple":return yield*X(a5(a,i,t,n));case"Undefined":return yield*X(u5(a,i,t,n));case"Union":return yield*X(s5(a,i,t,n));case"Uint8Array":return yield*X(c5(a,i,t,n));case"Unknown":return yield*X(l5(a,i,t,n));case"Void":return yield*X(d5(a,i,t,n));default:if(!Gt.Has(a[L]))throw new D0(e);return yield*X(m5(a,i,t,n))}}o(sr,"Visit");function Qn(...e){let r=e.length===3?sr(e[0],e[1],"",e[2]):sr(e[0],[],"",e[1]);return new dn(r)}o(Qn,"Errors");l();l();var p5=function(e,r,t,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?e!==r||!i:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,t):i?i.value=t:r.set(e,t),t},zv=function(e,r,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?e!==r||!n:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(e):n?n.value:r.get(e)},A0,Hl,$v,F0=class F0 extends he{constructor(r){let t=r.First();super(t===void 0?"Invalid Value":t.message),A0.add(this),Hl.set(this,void 0),p5(this,Hl,r,"f"),this.error=t}Errors(){return new dn(zv(this,A0,"m",$v).call(this))}};o(F0,"AssertError");var P0=F0;Hl=new WeakMap,A0=new WeakSet,$v=o(function*(){this.error&&(yield this.error),yield*X(zv(this,Hl,"f"))},"_AssertError_Iterator");function jv(e,r,t){if(!Be(e,r,t))throw new P0(Qn(e,r,t))}o(jv,"AssertValue");function Kl(...e){return e.length===3?jv(e[0],e[1],e[2]):jv(e[0],[],e[1])}o(Kl,"Assert");l();l();l();function f5(e){let r={};for(let t of Object.getOwnPropertyNames(e))r[t]=We(e[t]);for(let t of Object.getOwnPropertySymbols(e))r[t]=We(e[t]);return r}o(f5,"FromObject");function h5(e){return e.map(r=>We(r))}o(h5,"FromArray");function g5(e){return e.slice()}o(g5,"FromTypedArray");function y5(e){return new Map(We([...e.entries()]))}o(y5,"FromMap");function b5(e){return new Set(We([...e.entries()]))}o(b5,"FromSet");function v5(e){return new Date(e.toISOString())}o(v5,"FromDate");function We(e){if(Ie(e))return h5(e);if(Pr(e))return v5(e);if(rn(e))return g5(e);if(Sb(e))return y5(e);if(wb(e))return b5(e);if(we(e))return f5(e);if(or(e))return e;throw new Error("ValueClone: Unable to clone value")}o(We,"Clone");var B0=class B0 extends he{constructor(r,t){super(t),this.schema=r}};o(B0,"ValueCreateError");var Hr=B0;function He(e){return io(e)?e():We(e)}o(He,"FromDefault");function x5(e,r){return ye(e,"default")?He(e.default):{}}o(x5,"FromAny");function E5(e,r){if(e.uniqueItems===!0&&!ye(e,"default"))throw new Hr(e,"Array with the uniqueItems constraint requires a default value");if("contains"in e&&!ye(e,"default"))throw new Hr(e,"Array with the contains constraint requires a default value");return"default"in e?He(e.default):e.minItems!==void 0?Array.from({length:e.minItems}).map(t=>Kr(e.items,r)):[]}o(E5,"FromArray");function I5(e,r){return ye(e,"default")?He(e.default):function(){return Vy(this,null,function*(){})}()}o(I5,"FromAsyncIterator");function C5(e,r){return ye(e,"default")?He(e.default):BigInt(0)}o(C5,"FromBigInt");function D5(e,r){return ye(e,"default")?He(e.default):!1}o(D5,"FromBoolean");function S5(e,r){if(ye(e,"default"))return He(e.default);{let t=Kr(e.returns,r);return typeof t=="object"&&!Array.isArray(t)?class{constructor(){for(let[n,i]of Object.entries(t)){let a=this;a[n]=i}}}:class{}}}o(S5,"FromConstructor");function w5(e,r){return ye(e,"default")?He(e.default):e.minimumTimestamp!==void 0?new Date(e.minimumTimestamp):new Date}o(w5,"FromDate");function A5(e,r){return ye(e,"default")?He(e.default):()=>Kr(e.returns,r)}o(A5,"FromFunction");function P5(e,r){return ye(e,"default")?He(e.default):e.minimum!==void 0?e.minimum:0}o(P5,"FromInteger");function F5(e,r){if(ye(e,"default"))return He(e.default);{let t=e.allOf.reduce((n,i)=>{let a=Kr(i,r);return typeof a=="object"?N(N({},n),a):a},{});if(!Be(e,r,t))throw new Hr(e,"Intersect produced invalid value. Consider using a default value.");return t}}o(F5,"FromIntersect");function B5(e,r){return ye(e,"default")?He(e.default):function*(){}()}o(B5,"FromIterator");function O5(e,r){return ye(e,"default")?He(e.default):e.const}o(O5,"FromLiteral");function M5(e,r){if(ye(e,"default"))return He(e.default);throw new Hr(e,"Never types cannot be created. Consider using a default value.")}o(M5,"FromNever");function T5(e,r){if(ye(e,"default"))return He(e.default);throw new Hr(e,"Not types must have a default value")}o(T5,"FromNot");function k5(e,r){return ye(e,"default")?He(e.default):null}o(k5,"FromNull");function _5(e,r){return ye(e,"default")?He(e.default):e.minimum!==void 0?e.minimum:0}o(_5,"FromNumber");function L5(e,r){if(ye(e,"default"))return He(e.default);{let t=new Set(e.required),n={};for(let[i,a]of Object.entries(e.properties))t.has(i)&&(n[i]=Kr(a,r));return n}}o(L5,"FromObject");function R5(e,r){return ye(e,"default")?He(e.default):Promise.resolve(Kr(e.item,r))}o(R5,"FromPromise");function N5(e,r){let[t,n]=Object.entries(e.patternProperties)[0];if(ye(e,"default"))return He(e.default);if(t===wi||t===Si)return{};{let i=t.slice(1,t.length-1).split("|"),a={};for(let u of i)a[u]=Kr(n,r);return a}}o(N5,"FromRecord");function U5(e,r){return ye(e,"default")?He(e.default):Kr(Ve(e,r),r)}o(U5,"FromRef");function j5(e,r){if(ye(e,"default"))return He(e.default);throw new Hr(e,"RegExp types cannot be created. Consider using a default value.")}o(j5,"FromRegExp");function z5(e,r){if(e.pattern!==void 0){if(ye(e,"default"))return He(e.default);throw new Hr(e,"String types with patterns must specify a default value")}else if(e.format!==void 0){if(ye(e,"default"))return He(e.default);throw new Hr(e,"String types with formats must specify a default value")}else return ye(e,"default")?He(e.default):e.minLength!==void 0?Array.from({length:e.minLength}).map(()=>" ").join(""):""}o(z5,"FromString");function $5(e,r){return ye(e,"default")?He(e.default):"value"in e?Symbol.for(e.value):Symbol()}o($5,"FromSymbol");function G5(e,r){if(ye(e,"default"))return He(e.default);if(!xl(e))throw new Hr(e,"Can only create template literals that produce a finite variants. Consider using a default value.");return $a(e)[0]}o(G5,"FromTemplateLiteral");function Z5(e,r){if(Gv++>Y5)throw new Hr(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");return ye(e,"default")?He(e.default):Kr(Ve(e,r),r)}o(Z5,"FromThis");function V5(e,r){return ye(e,"default")?He(e.default):e.items===void 0?[]:Array.from({length:e.minItems}).map((t,n)=>Kr(e.items[n],r))}o(V5,"FromTuple");function W5(e,r){if(ye(e,"default"))return He(e.default)}o(W5,"FromUndefined");function H5(e,r){if(ye(e,"default"))return He(e.default);if(e.anyOf.length===0)throw new Error("ValueCreate.Union: Cannot create Union with zero variants");return Kr(e.anyOf[0],r)}o(H5,"FromUnion");function K5(e,r){return ye(e,"default")?He(e.default):e.minByteLength!==void 0?new Uint8Array(e.minByteLength):new Uint8Array(0)}o(K5,"FromUint8Array");function q5(e,r){return ye(e,"default")?He(e.default):{}}o(q5,"FromUnknown");function X5(e,r){if(ye(e,"default"))return He(e.default)}o(X5,"FromVoid");function J5(e,r){if(ye(e,"default"))return He(e.default);throw new Error("User defined types must specify a default value")}o(J5,"FromKind");function Kr(e,r){let t=ln(e,r),n=e;switch(n[L]){case"Any":return x5(n,t);case"Array":return E5(n,t);case"AsyncIterator":return I5(n,t);case"BigInt":return C5(n,t);case"Boolean":return D5(n,t);case"Constructor":return S5(n,t);case"Date":return w5(n,t);case"Function":return A5(n,t);case"Integer":return P5(n,t);case"Intersect":return F5(n,t);case"Iterator":return B5(n,t);case"Literal":return O5(n,t);case"Never":return M5(n,t);case"Not":return T5(n,t);case"Null":return k5(n,t);case"Number":return _5(n,t);case"Object":return L5(n,t);case"Promise":return R5(n,t);case"Record":return N5(n,t);case"Ref":return U5(n,t);case"RegExp":return j5(n,t);case"String":return z5(n,t);case"Symbol":return $5(n,t);case"TemplateLiteral":return G5(n,t);case"This":return Z5(n,t);case"Tuple":return V5(n,t);case"Undefined":return W5(n,t);case"Union":return H5(n,t);case"Uint8Array":return K5(n,t);case"Unknown":return q5(n,t);case"Void":return X5(n,t);default:if(!Gt.Has(n[L]))throw new Hr(n,"Unknown type");return J5(n,t)}}o(Kr,"Visit");var Y5=512,Gv=0;function mn(...e){return Gv=0,e.length===2?Kr(e[0],e[1]):Kr(e[0],[])}o(mn,"Create");var M0=class M0 extends he{constructor(r,t){super(t),this.schema=r}};o(M0,"ValueCastError");var ql=M0;function Q5(e,r,t){if(e[L]==="Object"&&typeof t=="object"&&!xi(t)){let n=e,i=Object.getOwnPropertyNames(t),a=Object.entries(n.properties),[u,s]=[1/a.length,a.length];return a.reduce((d,[m,p])=>{let g=p[L]==="Literal"&&p.const===t[m]?s:0,b=Be(p,r,t[m])?u:0,v=i.includes(m)?u:0;return d+(g+b+v)},0)}else return Be(e,r,t)?1:0}o(Q5,"ScoreUnion");function eP(e,r,t){let n=e.anyOf.map(u=>Ve(u,r)),[i,a]=[n[0],0];for(let u of n){let s=Q5(u,r,t);s>a&&(i=u,a=s)}return i}o(eP,"SelectUnion");function tP(e,r,t){if("default"in e)return typeof t=="function"?e.default:We(e.default);{let n=eP(e,r,t);return O0(n,r,t)}}o(tP,"CastUnion");function rP(e,r,t){return Be(e,r,t)?We(t):mn(e,r)}o(rP,"DefaultClone");function nP(e,r,t){return Be(e,r,t)?t:mn(e,r)}o(nP,"Default");function iP(e,r,t){if(Be(e,r,t))return We(t);let n=Ie(t)?We(t):mn(e,r),i=me(e.minItems)&&n.length<e.minItems?[...n,...Array.from({length:e.minItems-n.length},()=>null)]:n,u=(me(e.maxItems)&&i.length>e.maxItems?i.slice(0,e.maxItems):i).map(d=>ei(e.items,r,d));if(e.uniqueItems!==!0)return u;let s=[...new Set(u)];if(!Be(e,r,s))throw new ql(e,"Array cast produced invalid data due to uniqueItems constraint");return s}o(iP,"FromArray");function oP(e,r,t){if(Be(e,r,t))return mn(e,r);let n=new Set(e.returns.required||[]),i=o(function(){},"result");for(let[a,u]of Object.entries(e.returns.properties))!n.has(a)&&t.prototype[a]===void 0||(i.prototype[a]=ei(u,r,t.prototype[a]));return i}o(oP,"FromConstructor");function aP(e,r,t){let n=mn(e,r),i=we(n)&&we(t)?N(N({},n),t):t;return Be(e,r,i)?i:mn(e,r)}o(aP,"FromIntersect");function uP(e,r,t){throw new ql(e,"Never types cannot be cast")}o(uP,"FromNever");function sP(e,r,t){if(Be(e,r,t))return t;if(t===null||typeof t!="object")return mn(e,r);let n=new Set(e.required||[]),i={};for(let[a,u]of Object.entries(e.properties))!n.has(a)&&t[a]===void 0||(i[a]=ei(u,r,t[a]));if(typeof e.additionalProperties=="object"){let a=Object.getOwnPropertyNames(e.properties);for(let u of Object.getOwnPropertyNames(t))a.includes(u)||(i[u]=ei(e.additionalProperties,r,t[u]))}return i}o(sP,"FromObject");function cP(e,r,t){if(Be(e,r,t))return We(t);if(t===null||typeof t!="object"||Array.isArray(t)||t instanceof Date)return mn(e,r);let n=Object.getOwnPropertyNames(e.patternProperties)[0],i=e.patternProperties[n],a={};for(let[u,s]of Object.entries(t))a[u]=ei(i,r,s);return a}o(cP,"FromRecord");function lP(e,r,t){return ei(Ve(e,r),r,t)}o(lP,"FromRef");function dP(e,r,t){return ei(Ve(e,r),r,t)}o(dP,"FromThis");function mP(e,r,t){return Be(e,r,t)?We(t):Ie(t)?e.items===void 0?[]:e.items.map((n,i)=>ei(n,r,t[i])):mn(e,r)}o(mP,"FromTuple");function pP(e,r,t){return Be(e,r,t)?We(t):tP(e,r,t)}o(pP,"FromUnion");function ei(e,r,t){let n=Ue(e.$id)?[...r,e]:r,i=e;switch(e[L]){case"Array":return iP(i,n,t);case"Constructor":return oP(i,n,t);case"Intersect":return aP(i,n,t);case"Never":return uP(i,n,t);case"Object":return sP(i,n,t);case"Record":return cP(i,n,t);case"Ref":return lP(i,n,t);case"This":return dP(i,n,t);case"Tuple":return mP(i,n,t);case"Union":return pP(i,n,t);case"Date":case"Symbol":case"Uint8Array":return rP(e,r,t);default:return nP(i,n,t)}}o(ei,"Visit");function O0(...e){return e.length===3?ei(e[0],e[1],e[2]):ei(e[0],[],e[1])}o(O0,"Cast");l();function fP(e){return ao(e)&&e[L]!=="Unsafe"}o(fP,"IsCheckable");function hP(e,r,t){return Ie(t)?t.map(n=>qr(e.items,r,n)):t}o(hP,"FromArray");function gP(e,r,t){let n=e.unevaluatedProperties,a=e.allOf.map(s=>qr(s,r,We(t))).reduce((s,d)=>we(d)?N(N({},s),d):d,{});if(!we(t)||!we(a)||!ao(n))return a;let u=Xt(e);for(let s of Object.getOwnPropertyNames(t))u.includes(s)||Be(n,r,t[s])&&(a[s]=qr(n,r,t[s]));return a}o(gP,"FromIntersect");function yP(e,r,t){if(!we(t)||Ie(t))return t;let n=e.additionalProperties;for(let i of Object.getOwnPropertyNames(t)){if(ye(e.properties,i)){t[i]=qr(e.properties[i],r,t[i]);continue}if(ao(n)&&Be(n,r,t[i])){t[i]=qr(n,r,t[i]);continue}delete t[i]}return t}o(yP,"FromObject");function bP(e,r,t){if(!we(t))return t;let n=e.additionalProperties,i=Object.getOwnPropertyNames(t),[a,u]=Object.entries(e.patternProperties)[0],s=new RegExp(a);for(let d of i){if(s.test(d)){t[d]=qr(u,r,t[d]);continue}if(ao(n)&&Be(n,r,t[d])){t[d]=qr(n,r,t[d]);continue}delete t[d]}return t}o(bP,"FromRecord");function vP(e,r,t){return qr(Ve(e,r),r,t)}o(vP,"FromRef");function xP(e,r,t){return qr(Ve(e,r),r,t)}o(xP,"FromThis");function EP(e,r,t){if(!Ie(t))return t;if(Ct(e.items))return[];let n=Math.min(t.length,e.items.length);for(let i=0;i<n;i++)t[i]=qr(e.items[i],r,t[i]);return t.length>n?t.slice(0,n):t}o(EP,"FromTuple");function IP(e,r,t){for(let n of e.anyOf)if(fP(n)&&Be(n,r,t))return qr(n,r,t);return t}o(IP,"FromUnion");function qr(e,r,t){let n=Ue(e.$id)?[...r,e]:r,i=e;switch(i[L]){case"Array":return hP(i,n,t);case"Intersect":return gP(i,n,t);case"Object":return yP(i,n,t);case"Record":return bP(i,n,t);case"Ref":return vP(i,n,t);case"This":return xP(i,n,t);case"Tuple":return EP(i,n,t);case"Union":return IP(i,n,t);default:return t}}o(qr,"Visit");function Xl(...e){return e.length===3?qr(e[0],e[1],e[2]):qr(e[0],[],e[1])}o(Xl,"Clean");l();function Jl(e){return Ue(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}o(Jl,"IsStringNumeric");function CP(e){return ir(e)||Kn(e)||me(e)}o(CP,"IsValueToString");function ws(e){return e===!0||me(e)&&e===1||ir(e)&&e===BigInt("1")||Ue(e)&&(e.toLowerCase()==="true"||e==="1")}o(ws,"IsValueTrue");function As(e){return e===!1||me(e)&&(e===0||Object.is(e,-0))||ir(e)&&e===BigInt("0")||Ue(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}o(As,"IsValueFalse");function DP(e){return Ue(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(DP,"IsTimeStringWithTimeZone");function SP(e){return Ue(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(SP,"IsTimeStringWithoutTimeZone");function wP(e){return Ue(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(wP,"IsDateTimeStringWithTimeZone");function AP(e){return Ue(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(AP,"IsDateTimeStringWithoutTimeZone");function PP(e){return Ue(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}o(PP,"IsDateString");function FP(e,r){let t=Vv(e);return t===r?t:e}o(FP,"TryConvertLiteralString");function BP(e,r){let t=Wv(e);return t===r?t:e}o(BP,"TryConvertLiteralNumber");function OP(e,r){let t=Zv(e);return t===r?t:e}o(OP,"TryConvertLiteralBoolean");function MP(e,r){return Ue(e.const)?FP(r,e.const):me(e.const)?BP(r,e.const):Kn(e.const)?OP(r,e.const):r}o(MP,"TryConvertLiteral");function Zv(e){return ws(e)?!0:As(e)?!1:e}o(Zv,"TryConvertBoolean");function TP(e){let r=o(t=>t.split(".")[0],"truncateInteger");return Jl(e)?BigInt(r(e)):me(e)?BigInt(Math.trunc(e)):As(e)?BigInt(0):ws(e)?BigInt(1):e}o(TP,"TryConvertBigInt");function Vv(e){return CP(e)?e.toString():Ei(e)&&e.description!==void 0?e.description.toString():e}o(Vv,"TryConvertString");function Wv(e){return Jl(e)?parseFloat(e):ws(e)?1:As(e)?0:e}o(Wv,"TryConvertNumber");function kP(e){return Jl(e)?parseInt(e):me(e)?e|0:ws(e)?1:As(e)?0:e}o(kP,"TryConvertInteger");function _P(e){return Ue(e)&&e.toLowerCase()==="null"?null:e}o(_P,"TryConvertNull");function LP(e){return Ue(e)&&e==="undefined"?void 0:e}o(LP,"TryConvertUndefined");function RP(e){return Pr(e)?e:me(e)?new Date(e):ws(e)?new Date(1):As(e)?new Date(0):Jl(e)?new Date(parseInt(e)):SP(e)?new Date("1970-01-01T".concat(e,".000Z")):DP(e)?new Date("1970-01-01T".concat(e)):AP(e)?new Date("".concat(e,".000Z")):wP(e)?new Date(e):PP(e)?new Date("".concat(e,"T00:00:00.000Z")):e}o(RP,"TryConvertDate");function NP(e,r,t){return(Ie(t)?t:[t]).map(i=>ti(e.items,r,i))}o(NP,"FromArray");function UP(e,r,t){return TP(t)}o(UP,"FromBigInt");function jP(e,r,t){return Zv(t)}o(jP,"FromBoolean");function zP(e,r,t){return RP(t)}o(zP,"FromDate");function $P(e,r,t){return kP(t)}o($P,"FromInteger");function GP(e,r,t){return e.allOf.reduce((n,i)=>ti(i,r,n),t)}o(GP,"FromIntersect");function ZP(e,r,t){return MP(e,t)}o(ZP,"FromLiteral");function VP(e,r,t){return _P(t)}o(VP,"FromNull");function WP(e,r,t){return Wv(t)}o(WP,"FromNumber");function HP(e,r,t){if(!we(t))return t;for(let n of Object.getOwnPropertyNames(e.properties))ye(t,n)&&(t[n]=ti(e.properties[n],r,t[n]));return t}o(HP,"FromObject");function KP(e,r,t){if(!we(t))return t;let i=Object.getOwnPropertyNames(e.patternProperties)[0],a=e.patternProperties[i];for(let[u,s]of Object.entries(t))t[u]=ti(a,r,s);return t}o(KP,"FromRecord");function qP(e,r,t){return ti(Ve(e,r),r,t)}o(qP,"FromRef");function XP(e,r,t){return Vv(t)}o(XP,"FromString");function JP(e,r,t){return Ue(t)||me(t)?Symbol(t):t}o(JP,"FromSymbol");function YP(e,r,t){return ti(Ve(e,r),r,t)}o(YP,"FromThis");function QP(e,r,t){return Ie(t)&&!Ct(e.items)?t.map((i,a)=>a<e.items.length?ti(e.items[a],r,i):i):t}o(QP,"FromTuple");function eF(e,r,t){return LP(t)}o(eF,"FromUndefined");function tF(e,r,t){for(let n of e.anyOf){let i=ti(n,r,We(t));if(Be(n,r,i))return i}return t}o(tF,"FromUnion");function ti(e,r,t){let n=ln(e,r),i=e;switch(e[L]){case"Array":return NP(i,n,t);case"BigInt":return UP(i,n,t);case"Boolean":return jP(i,n,t);case"Date":return zP(i,n,t);case"Integer":return $P(i,n,t);case"Intersect":return GP(i,n,t);case"Literal":return ZP(i,n,t);case"Null":return VP(i,n,t);case"Number":return WP(i,n,t);case"Object":return HP(i,n,t);case"Record":return KP(i,n,t);case"Ref":return qP(i,n,t);case"String":return XP(i,n,t);case"Symbol":return JP(i,n,t);case"This":return YP(i,n,t);case"Tuple":return QP(i,n,t);case"Undefined":return eF(i,n,t);case"Union":return tF(i,n,t);default:return t}}o(ti,"Visit");function Yl(...e){return e.length===3?ti(e[0],e[1],e[2]):ti(e[0],[],e[1])}o(Yl,"Convert");l();l();var T0=class T0 extends he{constructor(r,t,n){super("Unable to decode value as it does not match the expected schema"),this.schema=r,this.value=t,this.error=n}};o(T0,"TransformDecodeCheckError");var iu=T0,k0=class k0 extends he{constructor(r,t,n,i){super(i instanceof Error?i.message:"Unknown error"),this.schema=r,this.path=t,this.value=n,this.error=i}};o(k0,"TransformDecodeError");var Ko=k0;function Dt(e,r,t){try{return ft(e)?e[yt].Decode(t):t}catch(n){throw new Ko(e,r,t,n)}}o(Dt,"Default");function rF(e,r,t,n){return Ie(n)?Dt(e,t,n.map((i,a)=>ri(e.items,r,"".concat(t,"/").concat(a),i))):Dt(e,t,n)}o(rF,"FromArray");function nF(e,r,t,n){if(!we(n)||or(n))return Dt(e,t,n);let i=co(e),a=i.map(p=>p[0]),u=N({},n);for(let[p,g]of i)p in u&&(u[p]=ri(g,r,"".concat(t,"/").concat(p),u[p]));if(!ft(e.unevaluatedProperties))return Dt(e,t,u);let s=Object.getOwnPropertyNames(u),d=e.unevaluatedProperties,m=N({},u);for(let p of s)a.includes(p)||(m[p]=Dt(d,"".concat(t,"/").concat(p),m[p]));return Dt(e,t,m)}o(nF,"FromIntersect");function iF(e,r,t,n){return Dt(e,t,ri(e.not,r,t,n))}o(iF,"FromNot");function oF(e,r,t,n){if(!we(n))return Dt(e,t,n);let i=Xt(e),a=N({},n);for(let m of i)ye(a,m)&&(Ct(a[m])&&(!Ra(e.properties[m])||et.IsExactOptionalProperty(a,m))||(a[m]=ri(e.properties[m],r,"".concat(t,"/").concat(m),a[m])));if(!je(e.additionalProperties))return Dt(e,t,a);let u=Object.getOwnPropertyNames(a),s=e.additionalProperties,d=N({},a);for(let m of u)i.includes(m)||(d[m]=Dt(s,"".concat(t,"/").concat(m),d[m]));return Dt(e,t,d)}o(oF,"FromObject");function aF(e,r,t,n){if(!we(n))return Dt(e,t,n);let i=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(i),u=N({},n);for(let p of Object.getOwnPropertyNames(n))a.test(p)&&(u[p]=ri(e.patternProperties[i],r,"".concat(t,"/").concat(p),u[p]));if(!je(e.additionalProperties))return Dt(e,t,u);let s=Object.getOwnPropertyNames(u),d=e.additionalProperties,m=N({},u);for(let p of s)a.test(p)||(m[p]=Dt(d,"".concat(t,"/").concat(p),m[p]));return Dt(e,t,m)}o(aF,"FromRecord");function uF(e,r,t,n){let i=Ve(e,r);return Dt(e,t,ri(i,r,t,n))}o(uF,"FromRef");function sF(e,r,t,n){let i=Ve(e,r);return Dt(e,t,ri(i,r,t,n))}o(sF,"FromThis");function cF(e,r,t,n){return Ie(n)&&Ie(e.items)?Dt(e,t,e.items.map((i,a)=>ri(i,r,"".concat(t,"/").concat(a),n[a]))):Dt(e,t,n)}o(cF,"FromTuple");function lF(e,r,t,n){for(let i of e.anyOf){if(!Be(i,r,n))continue;let a=ri(i,r,t,n);return Dt(e,t,a)}return Dt(e,t,n)}o(lF,"FromUnion");function ri(e,r,t,n){let i=ln(e,r),a=e;switch(e[L]){case"Array":return rF(a,i,t,n);case"Intersect":return nF(a,i,t,n);case"Not":return iF(a,i,t,n);case"Object":return oF(a,i,t,n);case"Record":return aF(a,i,t,n);case"Ref":return uF(a,i,t,n);case"Symbol":return Dt(a,t,n);case"This":return sF(a,i,t,n);case"Tuple":return cF(a,i,t,n);case"Union":return lF(a,i,t,n);default:return Dt(a,t,n)}}o(ri,"Visit");function ou(e,r,t){return ri(e,r,"",t)}o(ou,"TransformDecode");l();var _0=class _0 extends he{constructor(r,t,n){super("The encoded value does not match the expected schema"),this.schema=r,this.value=t,this.error=n}};o(_0,"TransformEncodeCheckError");var au=_0,L0=class L0 extends he{constructor(r,t,n,i){super("".concat(i instanceof Error?i.message:"Unknown error")),this.schema=r,this.path=t,this.value=n,this.error=i}};o(L0,"TransformEncodeError");var qo=L0;function xr(e,r,t){try{return ft(e)?e[yt].Encode(t):t}catch(n){throw new qo(e,r,t,n)}}o(xr,"Default");function dF(e,r,t,n){let i=xr(e,t,n);return Ie(i)?i.map((a,u)=>ni(e.items,r,"".concat(t,"/").concat(u),a)):i}o(dF,"FromArray");function mF(e,r,t,n){let i=xr(e,t,n);if(!we(n)||or(n))return i;let a=co(e),u=a.map(g=>g[0]),s=N({},i);for(let[g,b]of a)g in s&&(s[g]=ni(b,r,"".concat(t,"/").concat(g),s[g]));if(!ft(e.unevaluatedProperties))return s;let d=Object.getOwnPropertyNames(s),m=e.unevaluatedProperties,p=N({},s);for(let g of d)u.includes(g)||(p[g]=xr(m,"".concat(t,"/").concat(g),p[g]));return p}o(mF,"FromIntersect");function pF(e,r,t,n){return xr(e.not,t,xr(e,t,n))}o(pF,"FromNot");function fF(e,r,t,n){let i=xr(e,t,n);if(!we(i))return i;let a=Xt(e),u=N({},i);for(let p of a)ye(u,p)&&(Ct(u[p])&&(!Ra(e.properties[p])||et.IsExactOptionalProperty(u,p))||(u[p]=ni(e.properties[p],r,"".concat(t,"/").concat(p),u[p])));if(!je(e.additionalProperties))return u;let s=Object.getOwnPropertyNames(u),d=e.additionalProperties,m=N({},u);for(let p of s)a.includes(p)||(m[p]=xr(d,"".concat(t,"/").concat(p),m[p]));return m}o(fF,"FromObject");function hF(e,r,t,n){let i=xr(e,t,n);if(!we(n))return i;let a=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(a),s=N({},i);for(let g of Object.getOwnPropertyNames(n))u.test(g)&&(s[g]=ni(e.patternProperties[a],r,"".concat(t,"/").concat(g),s[g]));if(!je(e.additionalProperties))return s;let d=Object.getOwnPropertyNames(s),m=e.additionalProperties,p=N({},s);for(let g of d)u.test(g)||(p[g]=xr(m,"".concat(t,"/").concat(g),p[g]));return p}o(hF,"FromRecord");function gF(e,r,t,n){let i=Ve(e,r),a=ni(i,r,t,n);return xr(e,t,a)}o(gF,"FromRef");function yF(e,r,t,n){let i=Ve(e,r),a=ni(i,r,t,n);return xr(e,t,a)}o(yF,"FromThis");function bF(e,r,t,n){let i=xr(e,t,n);return Ie(e.items)?e.items.map((a,u)=>ni(a,r,"".concat(t,"/").concat(u),i[u])):[]}o(bF,"FromTuple");function vF(e,r,t,n){for(let i of e.anyOf){if(!Be(i,r,n))continue;let a=ni(i,r,t,n);return xr(e,t,a)}for(let i of e.anyOf){let a=ni(i,r,t,n);if(Be(e,r,a))return xr(e,t,a)}return xr(e,t,n)}o(vF,"FromUnion");function ni(e,r,t,n){let i=ln(e,r),a=e;switch(e[L]){case"Array":return dF(a,i,t,n);case"Intersect":return mF(a,i,t,n);case"Not":return pF(a,i,t,n);case"Object":return fF(a,i,t,n);case"Record":return hF(a,i,t,n);case"Ref":return gF(a,i,t,n);case"This":return yF(a,i,t,n);case"Tuple":return bF(a,i,t,n);case"Union":return vF(a,i,t,n);default:return xr(a,t,n)}}o(ni,"Visit");function Ql(e,r,t){return ni(e,r,"",t)}o(Ql,"TransformEncode");l();function xF(e,r){return ft(e)||Jt(e.items,r)}o(xF,"FromArray");function EF(e,r){return ft(e)||Jt(e.items,r)}o(EF,"FromAsyncIterator");function IF(e,r){return ft(e)||Jt(e.returns,r)||e.parameters.some(t=>Jt(t,r))}o(IF,"FromConstructor");function CF(e,r){return ft(e)||Jt(e.returns,r)||e.parameters.some(t=>Jt(t,r))}o(CF,"FromFunction");function DF(e,r){return ft(e)||ft(e.unevaluatedProperties)||e.allOf.some(t=>Jt(t,r))}o(DF,"FromIntersect");function SF(e,r){return ft(e)||Jt(e.items,r)}o(SF,"FromIterator");function wF(e,r){return ft(e)||Jt(e.not,r)}o(wF,"FromNot");function AF(e,r){return ft(e)||Object.values(e.properties).some(t=>Jt(t,r))||je(e.additionalProperties)&&Jt(e.additionalProperties,r)}o(AF,"FromObject");function PF(e,r){return ft(e)||Jt(e.item,r)}o(PF,"FromPromise");function FF(e,r){let t=Object.getOwnPropertyNames(e.patternProperties)[0],n=e.patternProperties[t];return ft(e)||Jt(n,r)||je(e.additionalProperties)&&ft(e.additionalProperties)}o(FF,"FromRecord");function BF(e,r){return ft(e)?!0:Jt(Ve(e,r),r)}o(BF,"FromRef");function OF(e,r){return ft(e)?!0:Jt(Ve(e,r),r)}o(OF,"FromThis");function MF(e,r){return ft(e)||!Ct(e.items)&&e.items.some(t=>Jt(t,r))}o(MF,"FromTuple");function TF(e,r){return ft(e)||e.anyOf.some(t=>Jt(t,r))}o(TF,"FromUnion");function Jt(e,r){let t=ln(e,r),n=e;if(e.$id&&R0.has(e.$id))return!1;switch(e.$id&&R0.add(e.$id),e[L]){case"Array":return xF(n,t);case"AsyncIterator":return EF(n,t);case"Constructor":return IF(n,t);case"Function":return CF(n,t);case"Intersect":return DF(n,t);case"Iterator":return SF(n,t);case"Not":return wF(n,t);case"Object":return AF(n,t);case"Promise":return PF(n,t);case"Record":return FF(n,t);case"Ref":return BF(n,t);case"This":return OF(n,t);case"Tuple":return MF(n,t);case"Union":return TF(n,t);default:return ft(e)}}o(Jt,"Visit");var R0=new Set;function ii(e,r){return R0.clear(),Jt(e,r)}o(ii,"HasTransform");function Hv(...e){let[r,t,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!Be(r,t,n))throw new iu(r,n,Qn(r,t,n).First());return ii(r,t)?ou(r,t,n):n}o(Hv,"Decode");l();function Mi(e,r){let t=ye(e,"default")?e.default:void 0,n=io(t)?t():We(t);return Ct(r)?n:we(r)&&we(n)?Object.assign(n,r):r}o(Mi,"ValueOrDefault");function N0(e){return ao(e)&&"default"in e}o(N0,"HasDefaultProperty");function kF(e,r,t){let n=Mi(e,t);if(!Ie(n))return n;for(let i=0;i<n.length;i++)n[i]=Xr(e.items,r,n[i]);return n}o(kF,"FromArray");function _F(e,r,t){return Pr(t)?t:Mi(e,t)}o(_F,"FromDate");function LF(e,r,t){let n=Mi(e,t);return e.allOf.reduce((i,a)=>{let u=Xr(a,r,n);return we(u)?N(N({},i),u):u},{})}o(LF,"FromIntersect");function RF(e,r,t){let n=Mi(e,t);if(!we(n))return n;let i=Object.getOwnPropertyNames(e.properties);for(let a of i){let u=Xr(e.properties[a],r,n[a]);Ct(u)||(n[a]=Xr(e.properties[a],r,n[a]))}if(!N0(e.additionalProperties))return n;for(let a of Object.getOwnPropertyNames(n))i.includes(a)||(n[a]=Xr(e.additionalProperties,r,n[a]));return n}o(RF,"FromObject");function NF(e,r,t){let n=Mi(e,t);if(!we(n))return n;let i=e.additionalProperties,[a,u]=Object.entries(e.patternProperties)[0],s=new RegExp(a);for(let d of Object.getOwnPropertyNames(n))s.test(d)&&N0(u)&&(n[d]=Xr(u,r,n[d]));if(!N0(i))return n;for(let d of Object.getOwnPropertyNames(n))s.test(d)||(n[d]=Xr(i,r,n[d]));return n}o(NF,"FromRecord");function UF(e,r,t){return Xr(Ve(e,r),r,Mi(e,t))}o(UF,"FromRef");function jF(e,r,t){return Xr(Ve(e,r),r,t)}o(jF,"FromThis");function zF(e,r,t){let n=Mi(e,t);if(!Ie(n)||Ct(e.items))return n;let[i,a]=[e.items,Math.max(e.items.length,n.length)];for(let u=0;u<a;u++)u<i.length&&(n[u]=Xr(i[u],r,n[u]));return n}o(zF,"FromTuple");function $F(e,r,t){let n=Mi(e,t);for(let i of e.anyOf){let a=Xr(i,r,We(n));if(Be(i,r,a))return a}return n}o($F,"FromUnion");function Xr(e,r,t){let n=ln(e,r),i=e;switch(i[L]){case"Array":return kF(i,n,t);case"Date":return _F(i,n,t);case"Intersect":return LF(i,n,t);case"Object":return RF(i,n,t);case"Record":return NF(i,n,t);case"Ref":return UF(i,n,t);case"This":return jF(i,n,t);case"Tuple":return zF(i,n,t);case"Union":return $F(i,n,t);default:return Mi(i,t)}}o(Xr,"Visit");function ed(...e){return e.length===3?Xr(e[0],e[1],e[2]):Xr(e[0],[],e[1])}o(ed,"Default");l();l();var pn={};Ki(pn,{Delete:()=>ZF,Format:()=>Ps,Get:()=>WF,Has:()=>VF,Set:()=>GF,ValuePointerRootDeleteError:()=>rd,ValuePointerRootSetError:()=>td});l();var U0=class U0 extends he{constructor(r,t,n){super("Cannot set root value"),this.value=r,this.path=t,this.update=n}};o(U0,"ValuePointerRootSetError");var td=U0,j0=class j0 extends he{constructor(r,t){super("Cannot delete root value"),this.value=r,this.path=t}};o(j0,"ValuePointerRootDeleteError");var rd=j0;function Kv(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}o(Kv,"Escape");function*Ps(e){if(e==="")return;let[r,t]=[0,0];for(let n=0;n<e.length;n++)e.charAt(n)==="/"?(n===0||(t=n,yield Kv(e.slice(r,t))),r=n+1):t=n;yield Kv(e.slice(r))}o(Ps,"Format");function GF(e,r,t){if(r==="")throw new td(e,r,t);let[n,i,a]=[null,e,""];for(let u of Ps(r))i[u]===void 0&&(i[u]={}),n=i,i=i[u],a=u;n[a]=t}o(GF,"Set");function ZF(e,r){if(r==="")throw new rd(e,r);let[t,n,i]=[null,e,""];for(let a of Ps(r)){if(n[a]===void 0||n[a]===null)return;t=n,n=n[a],i=a}if(Array.isArray(t)){let a=parseInt(i);t.splice(a,1)}else delete t[i]}o(ZF,"Delete");function VF(e,r){if(r==="")return!0;let[t,n,i]=[null,e,""];for(let a of Ps(r)){if(n[a]===void 0)return!1;t=n,n=n[a],i=a}return Object.getOwnPropertyNames(t).includes(i)}o(VF,"Has");function WF(e,r){if(r==="")return e;let t=e;for(let n of Ps(r)){if(t[n]===void 0)return;t=t[n]}return t}o(WF,"Get");l();function HF(e,r){if(!we(r))return!1;let t=[...Object.keys(e),...Object.getOwnPropertySymbols(e)],n=[...Object.keys(r),...Object.getOwnPropertySymbols(r)];return t.length!==n.length?!1:t.every(i=>Xo(e[i],r[i]))}o(HF,"ObjectType");function KF(e,r){return Pr(r)&&e.getTime()===r.getTime()}o(KF,"DateType");function qF(e,r){return!Ie(r)||e.length!==r.length?!1:e.every((t,n)=>Xo(t,r[n]))}o(qF,"ArrayType");function XF(e,r){return!rn(r)||e.length!==r.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(r).constructor.name?!1:e.every((t,n)=>Xo(t,r[n]))}o(XF,"TypedArrayType");function JF(e,r){return e===r}o(JF,"ValueType");function Xo(e,r){if(Pr(e))return KF(e,r);if(rn(e))return XF(e,r);if(Ie(e))return qF(e,r);if(we(e))return HF(e,r);if(or(e))return JF(e,r);throw new Error("ValueEquals: Unable to compare value")}o(Xo,"Equal");var YF=st({type:qe("insert"),path:on(),value:Fi()}),QF=st({type:qe("update"),path:on(),value:Fi()}),eB=st({type:qe("delete"),path:on()}),Xv=it([YF,QF,eB]),z0=class z0 extends he{constructor(r,t){super(t),this.value=r}};o(z0,"ValueDiffError");var nd=z0;function id(e,r){return{type:"update",path:e,value:r}}o(id,"CreateUpdate");function Jv(e,r){return{type:"insert",path:e,value:r}}o(Jv,"CreateInsert");function Yv(e){return{type:"delete",path:e}}o(Yv,"CreateDelete");function qv(e){if(globalThis.Object.getOwnPropertySymbols(e).length>0)throw new nd(e,"Cannot diff objects with symbols")}o(qv,"AssertDiffable");function*tB(e,r,t){if(qv(r),qv(t),!pf(t))return yield id(e,t);let n=globalThis.Object.getOwnPropertyNames(r),i=globalThis.Object.getOwnPropertyNames(t);for(let a of i)ye(r,a)||(yield Jv("".concat(e,"/").concat(a),t[a]));for(let a of n)ye(t,a)&&(Xo(r,t)||(yield*X(od("".concat(e,"/").concat(a),r[a],t[a]))));for(let a of n)ye(t,a)||(yield Yv("".concat(e,"/").concat(a)))}o(tB,"ObjectType");function*rB(e,r,t){if(!Ie(t))return yield id(e,t);for(let n=0;n<Math.min(r.length,t.length);n++)yield*X(od("".concat(e,"/").concat(n),r[n],t[n]));for(let n=0;n<t.length;n++)n<r.length||(yield Jv("".concat(e,"/").concat(n),t[n]));for(let n=r.length-1;n>=0;n--)n<t.length||(yield Yv("".concat(e,"/").concat(n)))}o(rB,"ArrayType");function*nB(e,r,t){if(!rn(t)||r.length!==t.length||globalThis.Object.getPrototypeOf(r).constructor.name!==globalThis.Object.getPrototypeOf(t).constructor.name)return yield id(e,t);for(let n=0;n<Math.min(r.length,t.length);n++)yield*X(od("".concat(e,"/").concat(n),r[n],t[n]))}o(nB,"TypedArrayType");function*iB(e,r,t){r!==t&&(yield id(e,t))}o(iB,"ValueType");function*od(e,r,t){if(pf(r))return yield*X(tB(e,r,t));if(Ie(r))return yield*X(rB(e,r,t));if(rn(r))return yield*X(nB(e,r,t));if(or(r))return yield*X(iB(e,r,t));throw new nd(r,"Unable to diff value")}o(od,"Visit");function Qv(e,r){return[...od("",e,r)]}o(Qv,"Diff");function oB(e){return e.length>0&&e[0].path===""&&e[0].type==="update"}o(oB,"IsRootUpdate");function aB(e){return e.length===0}o(aB,"IsIdentity");function ex(e,r){if(oB(r))return We(r[0].value);if(aB(r))return We(e);let t=We(e);for(let n of r)switch(n.type){case"insert":{pn.Set(t,n.path,n.value);break}case"update":{pn.Set(t,n.path,n.value);break}case"delete":{pn.Delete(t,n.path);break}}return t}o(ex,"Patch");l();function tx(...e){let[r,t,n]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]],i=ii(r,t)?Ql(r,t,n):n;if(!Be(r,t,i))throw new au(r,i,Qn(r,t,i).First());return i}o(tx,"Encode");l();var G0=class G0 extends he{constructor(r){super(r)}};o(G0,"ValueMutateError");var ad=G0;function uB(e,r,t,n){if(!we(t))pn.Set(e,r,We(n));else{let i=Object.getOwnPropertyNames(t),a=Object.getOwnPropertyNames(n);for(let u of i)a.includes(u)||delete t[u];for(let u of a)i.includes(u)||(t[u]=null);for(let u of a)$0(e,"".concat(r,"/").concat(u),t[u],n[u])}}o(uB,"ObjectType");function sB(e,r,t,n){if(!Ie(t))pn.Set(e,r,We(n));else{for(let i=0;i<n.length;i++)$0(e,"".concat(r,"/").concat(i),t[i],n[i]);t.splice(n.length)}}o(sB,"ArrayType");function cB(e,r,t,n){if(rn(t)&&t.length===n.length)for(let i=0;i<t.length;i++)t[i]=n[i];else pn.Set(e,r,We(n))}o(cB,"TypedArrayType");function lB(e,r,t,n){t!==n&&pn.Set(e,r,n)}o(lB,"ValueType");function $0(e,r,t,n){if(Ie(n))return sB(e,r,t,n);if(rn(n))return cB(e,r,t,n);if(we(n))return uB(e,r,t,n);if(or(n))return lB(e,r,t,n)}o($0,"Visit");function rx(e){return rn(e)||or(e)}o(rx,"IsNonMutableValue");function dB(e,r){return we(e)&&Ie(r)||Ie(e)&&we(r)}o(dB,"IsMismatchedValue");function nx(e,r){if(rx(e)||rx(r))throw new ad("Only object and array types can be mutated at the root level");if(dB(e,r))throw new ad("Cannot assign due type mismatch of assignable values");$0(e,"",e,r)}o(nx,"Mutate");l();var mB=[(e,r,t)=>We(t),(e,r,t)=>ed(e,r,t),(e,r,t)=>Xl(e,r,t),(e,r,t)=>Yl(e,r,t),(e,r,t)=>(Kl(e,r,t),t),(e,r,t)=>ii(e,r)?ou(e,r,t):t];function ix(e,r,t){return mB.reduce((n,i)=>i(e,r,n),t)}o(ix,"ParseValue");function ox(...e){return e.length===3?ix(e[0],e[1],e[2]):ix(e[0],[],e[1])}o(ox,"Parse");l();var fn={};Ki(fn,{Assert:()=>Kl,Cast:()=>O0,Check:()=>Be,Clean:()=>Xl,Clone:()=>We,Convert:()=>Yl,Create:()=>mn,Decode:()=>Hv,Default:()=>ed,Diff:()=>Qv,Edit:()=>Xv,Encode:()=>tx,Equal:()=>Xo,Errors:()=>Qn,Hash:()=>po,Mutate:()=>nx,Parse:()=>ox,Patch:()=>ex,ValueErrorIterator:()=>dn});l();l();var ax={},pB=o(function(e,r,t,n,i){var a=new Worker(ax[r]||(ax[r]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return a.onmessage=function(u){var s=u.data,d=s.$e$;if(d){var m=new Error(d[0]);m.code=d[1],m.stack=d[2],i(m,null)}else i(null,s)},a.postMessage(t,n),a},"wk"),ct=Uint8Array,Mr=Uint16Array,Ms=Int32Array,du=new ct([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),mu=new ct([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Fs=new ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),cx=o(function(e,r){for(var t=new Mr(31),n=0;n<31;++n)t[n]=r+=1<<e[n-1];for(var i=new Ms(t[30]),n=1;n<30;++n)for(var a=t[n];a<t[n+1];++a)i[a]=a-t[n]<<5|n;return{b:t,r:i}},"freb"),lx=cx(du,2),q0=lx.b,dd=lx.r;q0[28]=258,dd[258]=28;var dx=cx(mu,0),mx=dx.b,V0=dx.r,Bs=new Mr(32768);for(Ye=0;Ye<32768;++Ye)Ti=(Ye&43690)>>1|(Ye&21845)<<1,Ti=(Ti&52428)>>2|(Ti&13107)<<2,Ti=(Ti&61680)>>4|(Ti&3855)<<4,Bs[Ye]=((Ti&65280)>>8|(Ti&255)<<8)>>1;var Ti,Ye,gn=o(function(e,r,t){for(var n=e.length,i=0,a=new Mr(r);i<n;++i)e[i]&&++a[e[i]-1];var u=new Mr(r);for(i=1;i<r;++i)u[i]=u[i-1]+a[i-1]<<1;var s;if(t){s=new Mr(1<<r);var d=15-r;for(i=0;i<n;++i)if(e[i])for(var m=i<<4|e[i],p=r-e[i],g=u[e[i]-1]++<<p,b=g|(1<<p)-1;g<=b;++g)s[Bs[g]>>d]=m}else for(s=new Mr(n),i=0;i<n;++i)e[i]&&(s[i]=Bs[u[e[i]-1]++]>>15-e[i]);return s},"hMap"),ki=new ct(288);for(Ye=0;Ye<144;++Ye)ki[Ye]=8;var Ye;for(Ye=144;Ye<256;++Ye)ki[Ye]=9;var Ye;for(Ye=256;Ye<280;++Ye)ki[Ye]=7;var Ye;for(Ye=280;Ye<288;++Ye)ki[Ye]=8;var Ye,cu=new ct(32);for(Ye=0;Ye<32;++Ye)cu[Ye]=5;var Ye,px=gn(ki,9,0),fx=gn(ki,9,1),hx=gn(cu,5,0),gx=gn(cu,5,1),sd=o(function(e){for(var r=e[0],t=1;t<e.length;++t)e[t]>r&&(r=e[t]);return r},"max"),hn=o(function(e,r,t){var n=r/8|0;return(e[n]|e[n+1]<<8)>>(r&7)&t},"bits"),cd=o(function(e,r){var t=r/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(r&7)},"bits16"),Ts=o(function(e){return(e+7)/8|0},"shft"),fo=o(function(e,r,t){return(r==null||r<0)&&(r=0),(t==null||t>e.length)&&(t=e.length),new ct(e.subarray(r,t))},"slc"),hd={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},yx=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],St=o(function(e,r,t){var n=new Error(r||yx[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,St),!t)throw n;return n},"err"),bx=o(function(e,r,t,n){var i=e.length,a=n?n.length:0;if(!i||r.f&&!r.l)return t||new ct(0);var u=!t,s=u||r.i!=2,d=r.i;u&&(t=new ct(i*3));var m=o(function(F){var ce=t.length;if(F>ce){var Q=new ct(Math.max(ce*2,F));Q.set(t),t=Q}},"cbuf"),p=r.f||0,g=r.p||0,b=r.b||0,v=r.l,C=r.d,A=r.m,x=r.n,E=i*8;do{if(!v){p=hn(e,g,1);var S=hn(e,g+1,3);if(g+=3,S)if(S==1)v=fx,C=gx,A=9,x=5;else if(S==2){var V=hn(e,g,31)+257,$=hn(e,g+10,15)+4,O=V+hn(e,g+5,31)+1;g+=14;for(var M=new ct(O),Z=new ct(19),z=0;z<$;++z)Z[Fs[z]]=hn(e,g+z*3,7);g+=$*3;for(var re=sd(Z),k=(1<<re)-1,H=gn(Z,re,1),z=0;z<O;){var q=H[hn(e,g,k)];g+=q&15;var D=q>>4;if(D<16)M[z++]=D;else{var G=0,ae=0;for(D==16?(ae=3+hn(e,g,3),g+=2,G=M[z-1]):D==17?(ae=3+hn(e,g,7),g+=3):D==18&&(ae=11+hn(e,g,127),g+=7);ae--;)M[z++]=G}}var oe=M.subarray(0,V),Y=M.subarray(V);A=sd(oe),x=sd(Y),v=gn(oe,A,1),C=gn(Y,x,1)}else St(1);else{var D=Ts(g)+4,I=e[D-4]|e[D-3]<<8,T=D+I;if(T>i){d&&St(0);break}s&&m(b+I),t.set(e.subarray(D,T),b),r.b=b+=I,r.p=g=T*8,r.f=p;continue}if(g>E){d&&St(0);break}}s&&m(b+131072);for(var le=(1<<A)-1,fe=(1<<x)-1,xe=g;;xe=g){var G=v[cd(e,g)&le],be=G>>4;if(g+=G&15,g>E){d&&St(0);break}if(G||St(2),be<256)t[b++]=be;else if(be==256){xe=g,v=null;break}else{var Fe=be-254;if(be>264){var z=be-257,De=du[z];Fe=hn(e,g,(1<<De)-1)+q0[z],g+=De}var ht=C[cd(e,g)&fe],vt=ht>>4;ht||St(3),g+=ht&15;var Y=mx[vt];if(vt>3){var De=mu[vt];Y+=cd(e,g)&(1<<De)-1,g+=De}if(g>E){d&&St(0);break}s&&m(b+131072);var Sr=b+Fe;if(b<Y){var P=a-Y,J=Math.min(Y,Sr);for(P+b<0&&St(3);b<J;++b)t[b]=n[P+b]}for(;b<Sr;++b)t[b]=t[b-Y]}}r.l=v,r.p=xe,r.b=b,r.f=p,v&&(p=1,r.m=A,r.d=C,r.n=x)}while(!p);return b!=t.length&&u?fo(t,0,b):t.subarray(0,b)},"inflt"),oi=o(function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8},"wbits"),uu=o(function(e,r,t){t<<=r&7;var n=r/8|0;e[n]|=t,e[n+1]|=t>>8,e[n+2]|=t>>16},"wbits16"),ld=o(function(e,r){for(var t=[],n=0;n<e.length;++n)e[n]&&t.push({s:n,f:e[n]});var i=t.length,a=t.slice();if(!i)return{t:J0,l:0};if(i==1){var u=new ct(t[0].s+1);return u[t[0].s]=1,{t:u,l:1}}t.sort(function(T,V){return T.f-V.f}),t.push({s:-1,f:25001});var s=t[0],d=t[1],m=0,p=1,g=2;for(t[0]={s:-1,f:s.f+d.f,l:s,r:d};p!=i-1;)s=t[t[m].f<t[g].f?m++:g++],d=t[m!=p&&t[m].f<t[g].f?m++:g++],t[p++]={s:-1,f:s.f+d.f,l:s,r:d};for(var b=a[0].s,n=1;n<i;++n)a[n].s>b&&(b=a[n].s);var v=new Mr(b+1),C=md(t[p-1],v,0);if(C>r){var n=0,A=0,x=C-r,E=1<<x;for(a.sort(function(V,$){return v[$.s]-v[V.s]||V.f-$.f});n<i;++n){var S=a[n].s;if(v[S]>r)A+=E-(1<<C-v[S]),v[S]=r;else break}for(A>>=x;A>0;){var D=a[n].s;v[D]<r?A-=1<<r-v[D]++-1:++n}for(;n>=0&&A;--n){var I=a[n].s;v[I]==r&&(--v[I],++A)}C=r}return{t:new ct(v),l:C}},"hTree"),md=o(function(e,r,t){return e.s==-1?Math.max(md(e.l,r,t+1),md(e.r,r,t+1)):r[e.s]=t},"ln"),W0=o(function(e){for(var r=e.length;r&&!e[--r];);for(var t=new Mr(++r),n=0,i=e[0],a=1,u=o(function(d){t[n++]=d},"w"),s=1;s<=r;++s)if(e[s]==i&&s!=r)++a;else{if(!i&&a>2){for(;a>138;a-=138)u(32754);a>2&&(u(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(u(i),--a;a>6;a-=6)u(8304);a>2&&(u(a-3<<5|8208),a=0)}for(;a--;)u(i);a=1,i=e[s]}return{c:t.subarray(0,n),n:r}},"lc"),su=o(function(e,r){for(var t=0,n=0;n<r.length;++n)t+=e[n]*r[n];return t},"clen"),X0=o(function(e,r,t){var n=t.length,i=Ts(r+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=t[a];return(i+4+n)*8},"wfblk"),H0=o(function(e,r,t,n,i,a,u,s,d,m,p){oi(r,p++,t),++i[256];for(var g=ld(i,15),b=g.t,v=g.l,C=ld(a,15),A=C.t,x=C.l,E=W0(b),S=E.c,D=E.n,I=W0(A),T=I.c,V=I.n,$=new Mr(19),O=0;O<S.length;++O)++$[S[O]&31];for(var O=0;O<T.length;++O)++$[T[O]&31];for(var M=ld($,7),Z=M.t,z=M.l,re=19;re>4&&!Z[Fs[re-1]];--re);var k=m+5<<3,H=su(i,ki)+su(a,cu)+u,q=su(i,b)+su(a,A)+u+14+3*re+su($,Z)+2*$[16]+3*$[17]+7*$[18];if(d>=0&&k<=H&&k<=q)return X0(r,p,e.subarray(d,d+m));var G,ae,oe,Y;if(oi(r,p,1+(q<H)),p+=2,q<H){G=gn(b,v,0),ae=b,oe=gn(A,x,0),Y=A;var le=gn(Z,z,0);oi(r,p,D-257),oi(r,p+5,V-1),oi(r,p+10,re-4),p+=14;for(var O=0;O<re;++O)oi(r,p+3*O,Z[Fs[O]]);p+=3*re;for(var fe=[S,T],xe=0;xe<2;++xe)for(var be=fe[xe],O=0;O<be.length;++O){var Fe=be[O]&31;oi(r,p,le[Fe]),p+=Z[Fe],Fe>15&&(oi(r,p,be[O]>>5&127),p+=be[O]>>12)}}else G=px,ae=ki,oe=hx,Y=cu;for(var O=0;O<s;++O){var De=n[O];if(De>255){var Fe=De>>18&31;uu(r,p,G[Fe+257]),p+=ae[Fe+257],Fe>7&&(oi(r,p,De>>23&31),p+=du[Fe]);var ht=De&31;uu(r,p,oe[ht]),p+=Y[ht],ht>3&&(uu(r,p,De>>5&8191),p+=mu[ht])}else uu(r,p,G[De]),p+=ae[De]}return uu(r,p,G[256]),p+ae[256]},"wblk"),vx=new Ms([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),J0=new ct(0),xx=o(function(e,r,t,n,i,a){var u=a.z||e.length,s=new ct(n+u+5*(1+Math.ceil(u/7e3))+i),d=s.subarray(n,s.length-i),m=a.l,p=(a.r||0)&7;if(r){p&&(d[0]=a.r>>3);for(var g=vx[r-1],b=g>>13,v=g&8191,C=(1<<t)-1,A=a.p||new Mr(32768),x=a.h||new Mr(C+1),E=Math.ceil(t/3),S=2*E,D=o(function(ne){return(e[ne]^e[ne+1]<<E^e[ne+2]<<S)&C},"hsh"),I=new Ms(25e3),T=new Mr(288),V=new Mr(32),$=0,O=0,M=a.i||0,Z=0,z=a.w||0,re=0;M+2<u;++M){var k=D(M),H=M&32767,q=x[k];if(A[H]=q,x[k]=H,z<=M){var G=u-M;if(($>7e3||Z>24576)&&(G>423||!m)){p=H0(e,d,0,I,T,V,O,Z,re,M-re,p),Z=$=O=0,re=M;for(var ae=0;ae<286;++ae)T[ae]=0;for(var ae=0;ae<30;++ae)V[ae]=0}var oe=2,Y=0,le=v,fe=H-q&32767;if(G>2&&k==D(M-fe))for(var xe=Math.min(b,G)-1,be=Math.min(32767,M),Fe=Math.min(258,G);fe<=be&&--le&&H!=q;){if(e[M+oe]==e[M+oe-fe]){for(var De=0;De<Fe&&e[M+De]==e[M+De-fe];++De);if(De>oe){if(oe=De,Y=fe,De>xe)break;for(var ht=Math.min(fe,De-2),vt=0,ae=0;ae<ht;++ae){var Sr=M-fe+ae&32767,P=A[Sr],J=Sr-P&32767;J>vt&&(vt=J,q=Sr)}}}H=q,q=A[H],fe+=H-q&32767}if(Y){I[Z++]=268435456|dd[oe]<<18|V0[Y];var F=dd[oe]&31,ce=V0[Y]&31;O+=du[F]+mu[ce],++T[257+F],++V[ce],z=M+oe,++$}else I[Z++]=e[M],++T[e[M]]}}for(M=Math.max(M,z);M<u;++M)I[Z++]=e[M],++T[e[M]];p=H0(e,d,m,I,T,V,O,Z,re,M-re,p),m||(a.r=p&7|d[p/8|0]<<3,p-=7,a.h=x,a.p=A,a.i=M,a.w=z)}else{for(var M=a.w||0;M<u+m;M+=65535){var Q=M+65535;Q>=u&&(d[p/8|0]=m,Q=u),p=X0(d,p+1,e.subarray(M,Q))}a.i=u}return fo(s,0,n+Ts(p)+i)},"dflt"),fB=function(){for(var e=new Int32Array(256),r=0;r<256;++r){for(var t=r,n=9;--n;)t=(t&1&&-306674912)^t>>>1;e[r]=t}return e}(),Ex=o(function(){var e=-1;return{p:o(function(r){for(var t=e,n=0;n<r.length;++n)t=fB[t&255^r[n]]^t>>>8;e=t},"p"),d:o(function(){return~e},"d")}},"crc");var Ix=o(function(e,r,t,n,i){if(!i&&(i={l:1},r.dictionary)){var a=r.dictionary.subarray(-32768),u=new ct(a.length+e.length);u.set(a),u.set(e,a.length),e=u,i.w=a.length}return xx(e,r.level==null?6:r.level,r.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+r.mem,t,n,i)},"dopt"),gd=o(function(e,r){var t={};for(var n in e)t[n]=e[n];for(var n in r)t[n]=r[n];return t},"mrg"),ux=o(function(e,r,t){for(var n=e(),i=e.toString(),a=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),u=0;u<n.length;++u){var s=n[u],d=a[u];if(typeof s=="function"){r+=";"+d+"=";var m=s.toString();if(s.prototype)if(m.indexOf("[native code]")!=-1){var p=m.indexOf(" ",8)+1;r+=m.slice(p,m.indexOf("(",p))}else{r+=m;for(var g in s.prototype)r+=";"+d+".prototype."+g+"="+s.prototype[g].toString()}else r+=m}else t[d]=s}return r},"wcln"),ud=[],hB=o(function(e){var r=[];for(var t in e)e[t].buffer&&r.push((e[t]=new e[t].constructor(e[t])).buffer);return r},"cbfs"),gB=o(function(e,r,t,n){if(!ud[t]){for(var i="",a={},u=e.length-1,s=0;s<u;++s)i=ux(e[s],i,a);ud[t]={c:ux(e[u],i,a),e:a}}var d=gd({},ud[t].e);return pB(ud[t].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r.toString()+"}",t,d,hB(d),n)},"wrkr"),yB=o(function(){return[ct,Mr,Ms,du,mu,Fs,q0,mx,fx,gx,Bs,yx,gn,sd,hn,cd,Ts,fo,St,bx,vd,yd,Cx]},"bInflt"),bB=o(function(){return[ct,Mr,Ms,du,mu,Fs,dd,V0,px,ki,hx,cu,Bs,vx,J0,gn,oi,uu,ld,md,W0,su,X0,H0,Ts,fo,xx,Ix,bd,yd]},"bDflt");var yd=o(function(e){return postMessage(e,[e.buffer])},"pbf"),Cx=o(function(e){return e&&{out:e.size&&new ct(e.size),dictionary:e.dictionary}},"gopt"),Dx=o(function(e,r,t,n,i,a){var u=gB(t,n,i,function(s,d){u.terminate(),a(s,d)});return u.postMessage([e,r],r.consume?[e.buffer]:[]),function(){u.terminate()}},"cbify");var Pn=o(function(e,r){return e[r]|e[r+1]<<8},"b2"),lr=o(function(e,r){return(e[r]|e[r+1]<<8|e[r+2]<<16|e[r+3]<<24)>>>0},"b4"),Z0=o(function(e,r){return lr(e,r)+lr(e,r+4)*4294967296},"b8"),cr=o(function(e,r,t){for(;t;++r)e[r]=t,t>>>=8},"wbytes");function vB(e,r,t){return t||(t=r,r={}),typeof t!="function"&&St(7),Dx(e,r,[bB],function(n){return yd(bd(n.data[0],n.data[1]))},0,t)}o(vB,"deflate");function bd(e,r){return Ix(e,r||{},0,0)}o(bd,"deflateSync");function xB(e,r,t){return t||(t=r,r={}),typeof t!="function"&&St(7),Dx(e,r,[yB],function(n){return yd(vd(n.data[0],Cx(n.data[1])))},1,t)}o(xB,"inflate");function vd(e,r){return bx(e,{i:2},r&&r.out,r&&r.dictionary)}o(vd,"inflateSync");var Y0=o(function(e,r,t,n){for(var i in e){var a=e[i],u=r+i,s=n;Array.isArray(a)&&(s=gd(n,a[1]),a=a[0]),a instanceof ct?t[u]=[a,s]:(t[u+="/"]=[new ct(0),s],Y0(a,u,t,n))}},"fltn"),sx=typeof TextEncoder<"u"&&new TextEncoder,K0=typeof TextDecoder<"u"&&new TextDecoder,EB=0;try{K0.decode(J0,{stream:!0}),EB=1}catch(e){}var IB=o(function(e){for(var r="",t=0;;){var n=e[t++],i=(n>127)+(n>223)+(n>239);if(t+i>e.length)return{s:r,r:fo(e,t-1)};i?i==3?(n=((n&15)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,r+=String.fromCharCode(55296|n>>10,56320|n&1023)):i&1?r+=String.fromCharCode((n&31)<<6|e[t++]&63):r+=String.fromCharCode((n&15)<<12|(e[t++]&63)<<6|e[t++]&63):r+=String.fromCharCode(n)}},"dutf8");function lu(e,r){if(r){for(var t=new ct(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}if(sx)return sx.encode(e);for(var i=e.length,a=new ct(e.length+(e.length>>1)),u=0,s=o(function(p){a[u++]=p},"w"),n=0;n<i;++n){if(u+5>a.length){var d=new ct(u+8+(i-n<<1));d.set(a),a=d}var m=e.charCodeAt(n);m<128||r?s(m):m<2048?(s(192|m>>6),s(128|m&63)):m>55295&&m<57344?(m=65536+(m&1047552)|e.charCodeAt(++n)&1023,s(240|m>>18),s(128|m>>12&63),s(128|m>>6&63),s(128|m&63)):(s(224|m>>12),s(128|m>>6&63),s(128|m&63))}return fo(a,0,u)}o(lu,"strToU8");function Q0(e,r){if(r){for(var t="",n=0;n<e.length;n+=16384)t+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return t}else{if(K0)return K0.decode(e);var i=IB(e),a=i.s,t=i.r;return t.length&&St(8),a}}o(Q0,"strFromU8");var Sx=o(function(e,r){return r+30+Pn(e,r+26)+Pn(e,r+28)},"slzh"),wx=o(function(e,r,t){var n=Pn(e,r+28),i=Q0(e.subarray(r+46,r+46+n),!(Pn(e,r+8)&2048)),a=r+46+n,u=lr(e,r+20),s=t&&u==4294967295?CB(e,a):[u,lr(e,r+24),lr(e,r+42)],d=s[0],m=s[1],p=s[2];return[Pn(e,r+10),d,m,i,a+Pn(e,r+30)+Pn(e,r+32),p]},"zh"),CB=o(function(e,r){for(;Pn(e,r)!=1;r+=4+Pn(e,r+2));return[Z0(e,r+12),Z0(e,r+4),Z0(e,r+20)]},"z64e"),Os=o(function(e){var r=0;if(e)for(var t in e){var n=e[t].length;n>65535&&St(9),r+=n+4}return r},"exfl"),pd=o(function(e,r,t,n,i,a,u,s){var d=n.length,m=t.extra,p=s&&s.length,g=Os(m);cr(e,r,u!=null?33639248:67324752),r+=4,u!=null&&(e[r++]=20,e[r++]=t.os),e[r]=20,r+=2,e[r++]=t.flag<<1|(a<0&&8),e[r++]=i&&8,e[r++]=t.compression&255,e[r++]=t.compression>>8;var b=new Date(t.mtime==null?Date.now():t.mtime),v=b.getFullYear()-1980;if((v<0||v>119)&&St(10),cr(e,r,v<<25|b.getMonth()+1<<21|b.getDate()<<16|b.getHours()<<11|b.getMinutes()<<5|b.getSeconds()>>1),r+=4,a!=-1&&(cr(e,r,t.crc),cr(e,r+4,a<0?-a-2:a),cr(e,r+8,t.size)),cr(e,r+12,d),cr(e,r+14,g),r+=16,u!=null&&(cr(e,r,p),cr(e,r+6,t.attrs),cr(e,r+10,u),r+=14),e.set(n,r),r+=d,g)for(var C in m){var A=m[C],x=A.length;cr(e,r,+C),cr(e,r+2,x),e.set(A,r+4),r+=4+x}return p&&(e.set(s,r),r+=p),r},"wzh"),Ax=o(function(e,r,t,n,i){cr(e,r,101010256),cr(e,r+8,t),cr(e,r+10,t),cr(e,r+12,n),cr(e,r+16,i)},"wzf");function Px(e,r,t){t||(t=r,r={}),typeof t!="function"&&St(7);var n={};Y0(e,"",n,r);var i=Object.keys(n),a=i.length,u=0,s=0,d=a,m=new Array(a),p=[],g=o(function(){for(var x=0;x<p.length;++x)p[x]()},"tAll"),b=o(function(x,E){fd(function(){t(x,E)})},"cbd");fd(function(){b=t});var v=o(function(){var x=new ct(s+22),E=u,S=s-u;s=0;for(var D=0;D<d;++D){var I=m[D];try{var T=I.c.length;pd(x,s,I,I.f,I.u,T);var V=30+I.f.length+Os(I.extra),$=s+V;x.set(I.c,$),pd(x,u,I,I.f,I.u,T,s,I.m),u+=16+V+(I.m?I.m.length:0),s=$+T}catch(O){return b(O,null)}}Ax(x,u,m.length,S,E),b(null,x)},"cbf");a||v();for(var C=o(function(x){var E=i[x],S=n[E],D=S[0],I=S[1],T=Ex(),V=D.length;T.p(D);var $=lu(E),O=$.length,M=I.comment,Z=M&&lu(M),z=Z&&Z.length,re=Os(I.extra),k=I.level==0?0:8,H=o(function(q,G){if(q)g(),b(q,null);else{var ae=G.length;m[x]=gd(I,{size:V,crc:T.d(),c:G,f:$,m:Z,u:O!=E.length||Z&&M.length!=z,compression:k}),u+=30+O+re+ae,s+=76+2*(O+re)+(z||0)+ae,--a||v()}},"cbl");if(O>65535&&H(St(11,0,1),null),!k)H(null,D);else if(V<16e4)try{H(null,bd(D,I))}catch(q){H(q,null)}else p.push(vB(D,I,H))},"_loop_1"),A=0;A<d;++A)C(A);return g}o(Px,"zip");function Fx(e,r){r||(r={});var t={},n=[];Y0(e,"",t,r);var i=0,a=0;for(var u in t){var s=t[u],d=s[0],m=s[1],p=m.level==0?0:8,g=lu(u),b=g.length,v=m.comment,C=v&&lu(v),A=C&&C.length,x=Os(m.extra);b>65535&&St(11);var E=p?bd(d,m):d,S=E.length,D=Ex();D.p(d),n.push(gd(m,{size:d.length,crc:D.d(),c:E,f:g,m:C,u:b!=u.length||C&&v.length!=A,o:i,compression:p})),i+=30+b+x+S,a+=76+2*(b+x)+(A||0)+S}for(var I=new ct(a+22),T=i,V=a-i,$=0;$<n.length;++$){var g=n[$];pd(I,g.o,g,g.f,g.u,g.c.length);var O=30+g.f.length+Os(g.extra);I.set(g.c,g.o+O),pd(I,i,g,g.f,g.u,g.c.length,g.o,g.m),i+=16+O+(g.m?g.m.length:0)}return Ax(I,i,n.length,V,T),I}o(Fx,"zipSync");var fd=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function Bx(e,r,t){t||(t=r,r={}),typeof t!="function"&&St(7);var n=[],i=o(function(){for(var x=0;x<n.length;++x)n[x]()},"tAll"),a={},u=o(function(x,E){fd(function(){t(x,E)})},"cbd");fd(function(){u=t});for(var s=e.length-22;lr(e,s)!=101010256;--s)if(!s||e.length-s>65558)return u(St(13,0,1),null),i;var d=Pn(e,s+8);if(d){var m=d,p=lr(e,s+16),g=p==4294967295||m==65535;if(g){var b=lr(e,s-12);g=lr(e,b)==101075792,g&&(m=d=lr(e,b+32),p=lr(e,b+48))}for(var v=r&&r.filter,C=o(function(x){var E=wx(e,p,g),S=E[0],D=E[1],I=E[2],T=E[3],V=E[4],$=E[5],O=Sx(e,$);p=V;var M=o(function(z,re){z?(i(),u(z,null)):(re&&(a[T]=re),--d||u(null,a))},"cbl");if(!v||v({name:T,size:D,originalSize:I,compression:S}))if(!S)M(null,fo(e,O,O+D));else if(S==8){var Z=e.subarray(O,O+D);if(I<524288||D>.8*I)try{M(null,vd(Z,{out:new ct(I)}))}catch(z){M(z,null)}else n.push(xB(Z,{size:I},M))}else M(St(14,"unknown compression type "+S,1),null);else M(null,null)},"_loop_3"),A=0;A<m;++A)C(A)}else u(null,{});return i}o(Bx,"unzip");function Ox(e,r){for(var t={},n=e.length-22;lr(e,n)!=101010256;--n)(!n||e.length-n>65558)&&St(13);var i=Pn(e,n+8);if(!i)return{};var a=lr(e,n+16),u=a==4294967295||i==65535;if(u){var s=lr(e,n-12);u=lr(e,s)==101075792,u&&(i=lr(e,s+32),a=lr(e,s+48))}for(var d=r&&r.filter,m=0;m<i;++m){var p=wx(e,a,u),g=p[0],b=p[1],v=p[2],C=p[3],A=p[4],x=p[5],E=Sx(e,x);a=A,(!d||d({name:C,size:b,originalSize:v,compression:g}))&&(g?g==8?t[C]=vd(e.subarray(E,E+b),{out:new ct(v)}):St(14,"unknown compression type "+g):t[C]=fo(e,E,E+b))}return t}o(Ox,"unzipSync");l();var DB=o(e=>{if(e!=null)return e.trim()===""?void 0:e},"maybePath"),SB=o(e=>e!=null,"notNull"),xd=o((e,r,t=0)=>{var n;if(w.IsNull(e))return"null";if(w.IsUndefined(e))return"undefined";if(w.IsString(e))return"<string>";if(w.IsNumber(e))return"<number>";if(w.IsBoolean(e))return"<boolean>";if(w.IsLiteral(e))return typeof e.const=="string"?"'".concat(e.const,"'"):"".concat(e.const);if(w.IsRef(e)){let i=r.find(a=>a.$id===e.$ref);return i==null?e.$ref:xd(i,r,t)}if(w.IsArray(e))return"".concat(xd(e.items,r,t+1),"[]");if(w.IsUnion(e)&&(!(e.anyOf.length>5)||e.$id==null)){let a="".concat(e.anyOf.map(u=>xd(u,r,t+1)).filter(SB).join(" | "));return t>0?"(".concat(a,")"):a}return(n=e.$id)!=null?n:""},"resolveSchemaIdent"),wB=o((e,r,t)=>{var a;let n=r.message;w.IsUnion(r.schema)&&(n="Expected one of: ".concat(xd(r.schema,t)));let i="#/definitions/".concat(e).concat((a=DB(r.path))!=null?a:"");return"".concat(i,": ").concat(n)},"errorHandler"),Ed=o((e,r,t)=>{let n=r.First();if(n!=null)return wB(e,n,t)},"shortError");var pu;(function(e){e.Archive="Archive",e.Validate="Validate",e.Encode="Encode",e.Unknown="Unknown"})(pu||(pu={}));var eh=class eh extends Error{constructor(t,n){super(n);h(this,"name");h(this,"kind");this.name="CompressError",this.kind=t}};o(eh,"CompressError");var fu=eh,AB=o(e=>new fu(pu.Archive,e.message),"flateErrorIntoCompressError"),PB=o(e=>{let r=Object.values(hd);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&r.includes(e.code)},"isFlateError"),FB=o((e,r,t)=>{var n;return new fu(pu.Validate,(n=Ed(e,r,t))!=null?n:"Unknown validate error")},"checkErrorIntoCompressError"),BB=o(e=>new fu(pu.Encode,e.message),"encodeErrorIntoCompressError"),OB=o(e=>new fu(pu.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoCompressError"),ks=o((e,r,t)=>r instanceof qo?BB(r):r instanceof dn?FB(e,r,t):PB(r)?AB(r):OB(r),"intoCompressError");l();var hu;(function(e){e.Unarchive="Unarchive",e.Validate="Validate",e.Decode="Decode",e.Unknown="Unknown"})(hu||(hu={}));var th=class th extends Error{constructor(t,n){super(n);h(this,"name");h(this,"kind");this.name="DecompressError",this.kind=t}};o(th,"DecompressError");var gu=th,MB=o(e=>new gu(hu.Unarchive,e.message),"flateErrorIntoDecompressError"),TB=o(e=>{let r=Object.values(hd);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&r.includes(e.code)},"isFlateError"),kB=o((e,r,t)=>{var n;return new gu(hu.Validate,(n=Ed(e,r,t))!=null?n:"Unknown validate error")},"checkErrorIntoDecompressError"),_B=o(e=>new gu(hu.Decode,e.message),"decodeErrorIntoDecompressError"),LB=o(e=>new gu(hu.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoDecompressError"),_s=o((e,r,t)=>r instanceof Ko?_B(r):r instanceof dn?kB(e,r,t):TB(r)?MB(r):LB(r),"intoDecompressError");var Mx=o(function*(e,r=""){if(e!=null){if(Array.isArray(e)){for(let t=0;t<e.length;t++)yield[r+"[".concat(t,"]"),e[t]];return}if("features"in e){for(let t=0;t<e.features.length;t++)yield[r===""?"features[".concat(t,"]"):"".concat(r,".features[").concat(t,"]"),e.features[t]];return}for(let[t,n]of Object.entries(e)){let i=r===""?t:"".concat(r,".").concat(t);yield*X(Mx(n,i))}}},"iterRecord"),RB=o((e,r)=>e===""?r:r.startsWith("[")?"".concat(e).concat(r):"".concat(e,".").concat(r),"getPath"),Tt=o((e,r,t)=>{let n=new Set;for(let[i,a]of Mx(e)){let u=r(a);if(n.has(u))return se({kind:jr.DuplicateIdError,properties:{id:u,path:RB(t,i)}});n.add(u)}return ue(!0)},"ensureUniqueIds");var Tx=o(e=>e.floors==null?se({kind:jr.FloorMissingError,properties:null}):Tt(e.floors.features,r=>r.properties.id,"floors"),"validateFloors");var kx=f.Intersect([f.Object({id:f.Ref(Le),elevation:f.Integer({description:"An ordinal representing the elevation of this map relative to other maps in the stack."}),subtitle:f.Optional(f.String({description:"The subtitle of the floor."})),maxHeight:f.Optional(f.Number({description:"The maximum height of the floor in meters. This includes the thickness of the floor itself, up to the tallest point on any wall. If the floor does not have a consistent height (eg, one room on the floor has a vaulted ceiling, the rest do not), this value represents the highest point anywhere on the floor. Must be a positive number, or undefined.",minimum:0}))}),Vr],{$id:"FloorProperties"}),_x=ar(f.Union([f.Ref(Qa),f.Ref(eu),f.Null()]),f.Ref(kx),{$id:"FloorFeature"}),Lx=Or(f.Ref(_x),{$id:"FloorCollection"}),NB=f.Object({floors:f.Ref(Lx)}),Rx={name:"core:floors",intoBundle:o(function*(e){e.floors!=null&&(yield{path:"floors.geojson",contents:e.floors})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e==="floors.geojson")return{floors:t(r)}},"fromBundle"),integrityCheck:Tx,schema:NB,references:[kx,_x,Lx]};l();l();var kt=o(e=>f.Unsafe(e),"PartialRecord");l();var tt=o(e=>Object.keys(e),"typedKeys");l();l();var UB=o(e=>{var r,t;return new Map((t=(r=e.floors)==null?void 0:r.features.map(n=>[n.properties.id,n]))!=null?t:[])},"createFloorMap"),Fn=o(e=>{let r=UB(e);return o(n=>{let i=r.get(n);return i==null?se({kind:jr.UnknownFloorError,properties:{floorId:n}}):ue(i)},"floorLookup")},"createFloorLookup");var Nx=o(e=>{if(e.floors==null)return se({kind:jr.FloorMissingError,properties:null});if(e.geometry==null)return se({kind:jr.GeometryMissingError,properties:null});let r=Tt(e.geometry,n=>n.properties.id,"geometry");if(r.isErr())return r;let t=Fn(e);for(let n of tt(e.geometry)){let i=t(n);if(i.isErr())return i}return ue(!0)},"validateGeometry");var Ux=f.Intersect([f.Object({id:f.Ref(br)}),Vr],{$id:"GeometryProperties"}),jx=ar(f.Union([f.Ref(yr),f.Ref(Nl),f.Ref(Ul),f.Ref(jl),f.Ref(Qa),f.Ref(eu)]),f.Ref(Ux),{$id:"GeometryFeature"}),zx=Or(f.Ref(jx),{$id:"GeometryCollection"}),jB=f.Object({geometry:kt(f.Record(Le,f.Ref(zx),{additionalProperties:!1}))},{$id:"GeometrySchema"}),zB=/^geometry\/(.*)\.geojson$/,$x={name:"core:geometry",schema:jB,intoBundle:o(function*(e){if(e.geometry!=null)for(let r of tt(e.geometry))yield{path:"geometry/".concat(r,".geojson"),contents:e.geometry[r]}},"intoBundle"),fromBundle:o((e,r,t)=>{var i;let n=(i=e.match(zB))==null?void 0:i[1];if(n)return{geometry:{[n]:t(r)}}},"fromBundle"),references:[Ux,jx,zx],integrityCheck:Nx};l();var rh=f.Object({type:f.Literal("file"),name:f.String({description:"The name of the file."})},{$id:"ManifestFile"}),Gx=f.Recursive(e=>f.Object({type:f.Literal("folder"),name:f.String({description:"The name of the folder."}),children:f.Array(f.Union([e,f.Ref(rh)]),{minItems:1,description:"The children of the folder."})}),{$id:"ManifestFolder"}),Zx=f.Object({name:f.String({description:"The name of the map."}),version:f.Literal("3.0.0",{description:"The version of the manifest."}),orgId:f.Optional(f.String({description:"The identifier of the organization that the map this MVF is for belongs to."})),mapId:f.Optional(f.String({description:"The identifier of the map that this MVF is for."})),contents:f.Array(f.Union([f.Ref(Gx),f.Ref(rh)]),{minItems:1,description:"The contents of the MVF bundle."}),time:f.String({format:"date-time",description:"An ISO 8601 date-time string, including timezone offset."}),tzid:f.Optional(f.Unsafe(f.String({description:"A valid IANA timezone identifier.",pattern:"^[A-Za-z0-9_-]+/[A-Za-z0-9_-]+$"}))),naturalBearing:f.Optional(f.Number({minimum:0,maximum:360,description:'The angle, in degrees, the map is considered to be "naturally oriented" as, rather than facing directly north. 90 degrees means East is "up"'})),defaultFloor:f.Optional(f.Ref(Le,{description:"The default floor ID of the map."})),language:f.Optional(f.String({description:"The language code of the map."}))},{$id:"ManifestProperties"}),Vx=Or(ar(yr,f.Ref(Zx)),{$id:"ManifestCollection"},{minItems:1,maxItems:1}),$B=f.Object({manifest:f.Ref(Vx)}),Wx={name:"core:manifest",intoBundle:o(function*(e){e.manifest!=null&&(yield{path:"manifest.geojson",contents:e.manifest})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e==="manifest.geojson")return{manifest:t(r)}},"fromBundle"),schema:$B,references:[rh,Gx,Zx,Vx]};l();l();l();l();var ih=class ih extends he{constructor(t){super("Unable to dereference schema with $id '".concat(t.$ref,"'"));h(this,"schema");this.schema=t}};o(ih,"TypeDereferenceError");var nh=ih;function GB(e,r){let t=r.find(n=>n.$id===e.$ref);if(t===void 0)throw new nh(e);return Jo(t,r)}o(GB,"Resolve");function Id(e,r){return!Ne.IsString(e.$id)||r.some(t=>t.$id===e.$id)||r.push(e),r}o(Id,"Pushref");function Jo(e,r){return e[L]==="This"||e[L]==="Ref"?GB(e,r):e}o(Jo,"Deref");l();function ZB(e,r,t){let n=e.get(r);if(n!==void 0)return n;let i=ii(r,t);return e.set(r,i),i}o(ZB,"HasTransformCached");function Cd(){let e=new WeakMap;return{HasTransform:o((r,t)=>ZB(e,r,t),"HasTransform")}}o(Cd,"CreateTransformCache");function wt(e,r,t){try{return w.IsTransform(e)?e[yt].Decode(t):t}catch(n){throw new Ko(e,r,t,n)}}o(wt,"Default");function VB(e,r,t,n,i){return Ne.IsArray(n)?wt(e,t,n.map((a,u)=>ai(e.items,r,"".concat(t,"/").concat(u),a,i))):wt(e,t,n)}o(VB,"FromArray");function WB(e,r,t,n,i){if(!Ne.IsObject(n)||or(n))return wt(e,t,n);let a=co(e),u=a.map(g=>g[0]),s=N({},n);for(let[g,b]of a)g in s&&(s[g]=ai(b,r,"".concat(t,"/").concat(g),s[g],i));if(!w.IsTransform(e.unevaluatedProperties))return wt(e,t,s);let d=Object.getOwnPropertyNames(s),m=e.unevaluatedProperties,p=N({},s);for(let g of d)u.includes(g)||(p[g]=wt(m,"".concat(t,"/").concat(g),p[g]));return wt(e,t,p)}o(WB,"FromIntersect");function HB(e,r,t,n,i){return wt(e,t,ai(e.not,r,t,n,i))}o(HB,"FromNot");function KB(e,r,t,n,i){if(!Ne.IsObject(n))return wt(e,t,n);let a=Xt(e),u=N({},n);for(let p of a)Ne.HasPropertyKey(u,p)&&(Ne.IsUndefined(u[p])&&(!w.IsUndefined(e.properties[p])||et.IsExactOptionalProperty(u,p))||(u[p]=ai(e.properties[p],r,"".concat(t,"/").concat(p),u[p],i)));if(!w.IsSchema(e.additionalProperties))return wt(e,t,u);let s=Object.getOwnPropertyNames(u),d=e.additionalProperties,m=N({},u);for(let p of s)a.includes(p)||(m[p]=wt(d,"".concat(t,"/").concat(p),m[p]));return wt(e,t,m)}o(KB,"FromObject");function qB(e,r,t,n,i){if(!Ne.IsObject(n))return wt(e,t,n);let a=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(a),s=N({},n);for(let g of Object.getOwnPropertyNames(n))u.test(g)&&(s[g]=ai(e.patternProperties[a],r,"".concat(t,"/").concat(g),s[g],i));if(!w.IsSchema(e.additionalProperties))return wt(e,t,s);let d=Object.getOwnPropertyNames(s),m=e.additionalProperties,p=N({},s);for(let g of d)u.test(g)||(p[g]=wt(m,"".concat(t,"/").concat(g),p[g]));return wt(e,t,p)}o(qB,"FromRecord");function XB(e,r,t,n,i){let a=Jo(e,r);return wt(e,t,ai(a,r,t,n,i))}o(XB,"FromRef");function JB(e,r,t,n,i){let a=Jo(e,r);return wt(e,t,ai(a,r,t,n,i))}o(JB,"FromThis");function YB(e,r,t,n,i){return Ne.IsArray(n)&&Ne.IsArray(e.items)?wt(e,t,e.items.map((a,u)=>ai(a,r,"".concat(t,"/").concat(u),n[u],i))):wt(e,t,n)}o(YB,"FromTuple");function QB(e,r,t,n,i){for(let a of e.anyOf){if(!fn.Check(a,r,n))continue;let u=ai(a,r,t,n,i);return wt(e,t,u)}return wt(e,t,n)}o(QB,"FromUnion");function ai(e,r,t,n,i){if(!i.HasTransform(e,r))return n;let a=Id(e,r),u=e;switch(e[L]){case"Array":return VB(u,a,t,n,i);case"Intersect":return WB(u,a,t,n,i);case"Not":return HB(u,a,t,n,i);case"Object":return KB(u,a,t,n,i);case"Record":return qB(u,a,t,n,i);case"Ref":return XB(u,a,t,n,i);case"Symbol":return wt(u,t,n);case"This":return JB(u,a,t,n,i);case"Tuple":return YB(u,a,t,n,i);case"Union":return QB(u,a,t,n,i);default:return wt(u,t,n)}}o(ai,"Visit");function Hx(e,r,t){let n=Cd();return ai(e,r,"",t,n)}o(Hx,"FastTransformDecode");l();function Er(e,r,t){try{return w.IsTransform(e)?e[yt].Encode(t):t}catch(n){throw new qo(e,r,t,n)}}o(Er,"Default");function eO(e,r,t,n,i){let a=Er(e,t,n);return Ne.IsArray(a)?a.map((u,s)=>ui(e.items,r,"".concat(t,"/").concat(s),u,i)):a}o(eO,"FromArray");function tO(e,r,t,n,i){let a=Er(e,t,n);if(!Ne.IsObject(n)||or(n))return a;let u=co(e),s=u.map(b=>b[0]),d=N({},a);for(let[b,v]of u)b in d&&(d[b]=ui(v,r,"".concat(t,"/").concat(b),d[b],i));if(!w.IsTransform(e.unevaluatedProperties))return d;let m=Object.getOwnPropertyNames(d),p=e.unevaluatedProperties,g=N({},d);for(let b of m)s.includes(b)||(g[b]=Er(p,"".concat(t,"/").concat(b),g[b]));return g}o(tO,"FromIntersect");function rO(e,r,t,n){return Er(e.not,t,Er(e,t,n))}o(rO,"FromNot");function nO(e,r,t,n,i){let a=Er(e,t,n);if(!Ne.IsObject(a))return a;let u=Xt(e),s=N({},a);for(let g of u)Ne.HasPropertyKey(s,g)&&(Ne.IsUndefined(s[g])&&(!w.IsUndefined(e.properties[g])||et.IsExactOptionalProperty(s,g))||(s[g]=ui(e.properties[g],r,"".concat(t,"/").concat(g),s[g],i)));if(!w.IsSchema(e.additionalProperties))return s;let d=Object.getOwnPropertyNames(s),m=e.additionalProperties,p=N({},s);for(let g of d)u.includes(g)||(p[g]=Er(m,"".concat(t,"/").concat(g),p[g]));return p}o(nO,"FromObject");function iO(e,r,t,n,i){let a=Er(e,t,n);if(!Ne.IsObject(n))return a;let u=Object.getOwnPropertyNames(e.patternProperties)[0],s=new RegExp(u),d=N({},a);for(let b of Object.getOwnPropertyNames(n))s.test(b)&&(d[b]=ui(e.patternProperties[u],r,"".concat(t,"/").concat(b),d[b],i));if(!w.IsSchema(e.additionalProperties))return d;let m=Object.getOwnPropertyNames(d),p=e.additionalProperties,g=N({},d);for(let b of m)s.test(b)||(g[b]=Er(p,"".concat(t,"/").concat(b),g[b]));return g}o(iO,"FromRecord");function oO(e,r,t,n,i){let a=Jo(e,r),u=ui(a,r,t,n,i);return Er(e,t,u)}o(oO,"FromRef");function aO(e,r,t,n,i){let a=Jo(e,r),u=ui(a,r,t,n,i);return Er(e,t,u)}o(aO,"FromThis");function uO(e,r,t,n,i){let a=Er(e,t,n);return Ne.IsArray(e.items)?e.items.map((u,s)=>ui(u,r,"".concat(t,"/").concat(s),a[s],i)):[]}o(uO,"FromTuple");function sO(e,r,t,n,i){for(let a of e.anyOf){if(!fn.Check(a,r,n))continue;let u=ui(a,r,t,n,i);return Er(e,t,u)}for(let a of e.anyOf){let u=ui(a,r,t,n,i);if(fn.Check(e,r,u))return Er(e,t,u)}return Er(e,t,n)}o(sO,"FromUnion");function ui(e,r,t,n,i){if(!i.HasTransform(e,r))return n;let a=Id(e,r),u=e;switch(e[L]){case"Array":return eO(u,a,t,n,i);case"Intersect":return tO(u,a,t,n,i);case"Not":return rO(u,a,t,n);case"Object":return nO(u,a,t,n,i);case"Record":return iO(u,a,t,n,i);case"Ref":return oO(u,a,t,n,i);case"This":return aO(u,a,t,n,i);case"Tuple":return uO(u,a,t,n,i);case"Union":return sO(u,a,t,n,i);default:return Er(u,t,n)}}o(ui,"Visit");function Kx(e,r,t){let n=Cd();return ui(e,r,"",t,n)}o(Kx,"FastTransformEncode");l();var ch=class ch{constructor(r,t,n,i){this.schema=r,this.references=t,this.checkFunc=n,this.code=i,this.hasTransform=ii(r,t)}Code(){return this.code}Errors(r){return Qn(this.schema,this.references,r)}Check(r){return this.checkFunc(r)}Decode(r){if(!this.checkFunc(r))throw new iu(this.schema,r,this.Errors(r).First());return this.hasTransform?ou(this.schema,this.references,r):r}Encode(r){let t=this.hasTransform?Ql(this.schema,this.references,r):r;if(!this.checkFunc(t))throw new au(this.schema,r,this.Errors(r).First());return t}};o(ch,"TypeCheck");var oh=ch,_i;(function(e){function r(a){return a===36}o(r,"DollarSign"),e.DollarSign=r;function t(a){return a===95}o(t,"IsUnderscore"),e.IsUnderscore=t;function n(a){return a>=65&&a<=90||a>=97&&a<=122}o(n,"IsAlpha"),e.IsAlpha=n;function i(a){return a>=48&&a<=57}o(i,"IsNumeric"),e.IsNumeric=i})(_i||(_i={}));var Dd;(function(e){function r(a){return a.length===0?!1:_i.IsNumeric(a.charCodeAt(0))}o(r,"IsFirstCharacterNumeric");function t(a){if(r(a))return!1;for(let u=0;u<a.length;u++){let s=a.charCodeAt(u);if(!(_i.IsAlpha(s)||_i.IsNumeric(s)||_i.DollarSign(s)||_i.IsUnderscore(s)))return!1}return!0}o(t,"IsAccessor");function n(a){return a.replace(/'/g,"\\'")}o(n,"EscapeHyphen");function i(a,u){return t(u)?"".concat(a,".").concat(u):"".concat(a,"['").concat(n(u),"']")}o(i,"Encode"),e.Encode=i})(Dd||(Dd={}));var ah;(function(e){function r(t){let n=[];for(let i=0;i<t.length;i++){let a=t.charCodeAt(i);_i.IsNumeric(a)||_i.IsAlpha(a)?n.push(t.charAt(i)):n.push("_".concat(a,"_"))}return n.join("").replace(/__/g,"_")}o(r,"Encode"),e.Encode=r})(ah||(ah={}));var uh;(function(e){function r(t){return t.replace(/'/g,"\\'")}o(r,"Escape"),e.Escape=r})(uh||(uh={}));var lh=class lh extends he{constructor(r){super("Unknown type"),this.schema=r}};o(lh,"TypeCompilerUnknownTypeError");var sh=lh,dh=class dh extends he{constructor(r){super("Preflight validation check failed to guard for the given schema"),this.schema=r}};o(dh,"TypeCompilerTypeGuardError");var Sd=dh,Yo;(function(e){function r(u,s,d){return et.ExactOptionalPropertyTypes?"('".concat(s,"' in ").concat(u," ? ").concat(d," : true)"):"(".concat(Dd.Encode(u,s)," !== undefined ? ").concat(d," : true)")}o(r,"IsExactOptionalProperty"),e.IsExactOptionalProperty=r;function t(u){return et.AllowArrayObject?"(typeof ".concat(u," === 'object' && ").concat(u," !== null)"):"(typeof ".concat(u," === 'object' && ").concat(u," !== null && !Array.isArray(").concat(u,"))")}o(t,"IsObjectLike"),e.IsObjectLike=t;function n(u){return et.AllowArrayObject?"(typeof ".concat(u," === 'object' && ").concat(u," !== null && !(").concat(u," instanceof Date) && !(").concat(u," instanceof Uint8Array))"):"(typeof ".concat(u," === 'object' && ").concat(u," !== null && !Array.isArray(").concat(u,") && !(").concat(u," instanceof Date) && !(").concat(u," instanceof Uint8Array))")}o(n,"IsRecordLike"),e.IsRecordLike=n;function i(u){return et.AllowNaN?"typeof ".concat(u," === 'number'"):"Number.isFinite(".concat(u,")")}o(i,"IsNumberLike"),e.IsNumberLike=i;function a(u){return et.AllowNullVoid?"(".concat(u," === undefined || ").concat(u," === null)"):"".concat(u," === undefined")}o(a,"IsVoidLike"),e.IsVoidLike=a})(Yo||(Yo={}));var wd;(function(e){function r(P){return P[L]==="Any"||P[L]==="Unknown"}o(r,"IsAnyOrUnknown");function*t(P,J,F){yield"true"}o(t,"FromAny");function*n(P,J,F){yield"Array.isArray(".concat(F,")");let[ce,Q]=[Fe("value","any"),Fe("acc","number")];me(P.maxItems)&&(yield"".concat(F,".length <= ").concat(P.maxItems)),me(P.minItems)&&(yield"".concat(F,".length >= ").concat(P.minItems));let ne=le(P.items,J,"value");if(yield"".concat(F,".every((").concat(ce,") => ").concat(ne,")"),je(P.contains)||me(P.minContains)||me(P.maxContains)){let pe=je(P.contains)?P.contains:nt(),Je=le(pe,J,"value"),Ft=me(P.minContains)?["(count >= ".concat(P.minContains,")")]:[],Lt=me(P.maxContains)?["(count <= ".concat(P.maxContains,")")]:[],tr="const count = value.reduce((".concat(Q,", ").concat(ce,") => ").concat(Je," ? acc + 1 : acc, 0)"),Un=["(count > 0)",...Ft,...Lt].join(" && ");yield"((".concat(ce,") => { ").concat(tr,"; return ").concat(Un,"})(").concat(F,")")}if(P.uniqueItems===!0){let Je="const set = new Set(); for(const element of value) { ".concat("const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true"," }");yield"((".concat(ce,") => { ").concat(Je," )(").concat(F,")")}}o(n,"FromArray");function*i(P,J,F){yield"(typeof value === 'object' && Symbol.asyncIterator in ".concat(F,")")}o(i,"FromAsyncIterator");function*a(P,J,F){yield"(typeof ".concat(F," === 'bigint')"),ir(P.exclusiveMaximum)&&(yield"".concat(F," < BigInt(").concat(P.exclusiveMaximum,")")),ir(P.exclusiveMinimum)&&(yield"".concat(F," > BigInt(").concat(P.exclusiveMinimum,")")),ir(P.maximum)&&(yield"".concat(F," <= BigInt(").concat(P.maximum,")")),ir(P.minimum)&&(yield"".concat(F," >= BigInt(").concat(P.minimum,")")),ir(P.multipleOf)&&(yield"(".concat(F," % BigInt(").concat(P.multipleOf,")) === 0"))}o(a,"FromBigInt");function*u(P,J,F){yield"(typeof ".concat(F," === 'boolean')")}o(u,"FromBoolean");function*s(P,J,F){yield*X(oe(P.returns,J,"".concat(F,".prototype")))}o(s,"FromConstructor");function*d(P,J,F){yield"(".concat(F," instanceof Date) && Number.isFinite(").concat(F,".getTime())"),me(P.exclusiveMaximumTimestamp)&&(yield"".concat(F,".getTime() < ").concat(P.exclusiveMaximumTimestamp)),me(P.exclusiveMinimumTimestamp)&&(yield"".concat(F,".getTime() > ").concat(P.exclusiveMinimumTimestamp)),me(P.maximumTimestamp)&&(yield"".concat(F,".getTime() <= ").concat(P.maximumTimestamp)),me(P.minimumTimestamp)&&(yield"".concat(F,".getTime() >= ").concat(P.minimumTimestamp)),me(P.multipleOfTimestamp)&&(yield"(".concat(F,".getTime() % ").concat(P.multipleOfTimestamp,") === 0"))}o(d,"FromDate");function*m(P,J,F){yield"(typeof ".concat(F," === 'function')")}o(m,"FromFunction");function*p(P,J,F){yield"Number.isInteger(".concat(F,")"),me(P.exclusiveMaximum)&&(yield"".concat(F," < ").concat(P.exclusiveMaximum)),me(P.exclusiveMinimum)&&(yield"".concat(F," > ").concat(P.exclusiveMinimum)),me(P.maximum)&&(yield"".concat(F," <= ").concat(P.maximum)),me(P.minimum)&&(yield"".concat(F," >= ").concat(P.minimum)),me(P.multipleOf)&&(yield"(".concat(F," % ").concat(P.multipleOf,") === 0"))}o(p,"FromInteger");function*g(P,J,F){let ce=P.allOf.map(Q=>le(Q,J,F)).join(" && ");if(P.unevaluatedProperties===!1){let Q=xe("".concat(new RegExp(Pi(P)),";")),ne="Object.getOwnPropertyNames(".concat(F,").every(key => ").concat(Q,".test(key))");yield"(".concat(ce," && ").concat(ne,")")}else if(je(P.unevaluatedProperties)){let Q=xe("".concat(new RegExp(Pi(P)),";")),ne="Object.getOwnPropertyNames(".concat(F,").every(key => ").concat(Q,".test(key) || ").concat(le(P.unevaluatedProperties,J,"".concat(F,"[key]")),")");yield"(".concat(ce," && ").concat(ne,")")}else yield"(".concat(ce,")")}o(g,"FromIntersect");function*b(P,J,F){yield"(typeof value === 'object' && Symbol.iterator in ".concat(F,")")}o(b,"FromIterator");function*v(P,J,F){typeof P.const=="number"||typeof P.const=="boolean"?yield"(".concat(F," === ").concat(P.const,")"):yield"(".concat(F," === '").concat(uh.Escape(P.const),"')")}o(v,"FromLiteral");function*C(P,J,F){yield"false"}o(C,"FromNever");function*A(P,J,F){let ce=le(P.not,J,F);yield"(!".concat(ce,")")}o(A,"FromNot");function*x(P,J,F){yield"(".concat(F," === null)")}o(x,"FromNull");function*E(P,J,F){yield Yo.IsNumberLike(F),me(P.exclusiveMaximum)&&(yield"".concat(F," < ").concat(P.exclusiveMaximum)),me(P.exclusiveMinimum)&&(yield"".concat(F," > ").concat(P.exclusiveMinimum)),me(P.maximum)&&(yield"".concat(F," <= ").concat(P.maximum)),me(P.minimum)&&(yield"".concat(F," >= ").concat(P.minimum)),me(P.multipleOf)&&(yield"(".concat(F," % ").concat(P.multipleOf,") === 0"))}o(E,"FromNumber");function*S(P,J,F){yield Yo.IsObjectLike(F),me(P.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(F,").length >= ").concat(P.minProperties)),me(P.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(F,").length <= ").concat(P.maxProperties));let ce=Object.getOwnPropertyNames(P.properties);for(let Q of ce){let ne=Dd.Encode(F,Q),pe=P.properties[Q];if(P.required&&P.required.includes(Q))yield*X(oe(pe,J,ne)),(Bi(pe)||r(pe))&&(yield"('".concat(Q,"' in ").concat(F,")"));else{let Je=le(pe,J,ne);yield Yo.IsExactOptionalProperty(F,Q,Je)}}if(P.additionalProperties===!1)if(P.required&&P.required.length===ce.length)yield"Object.getOwnPropertyNames(".concat(F,").length === ").concat(ce.length);else{let Q="[".concat(ce.map(ne=>"'".concat(ne,"'")).join(", "),"]");yield"Object.getOwnPropertyNames(".concat(F,").every(key => ").concat(Q,".includes(key))")}if(typeof P.additionalProperties=="object"){let Q=le(P.additionalProperties,J,"".concat(F,"[key]")),ne="[".concat(ce.map(pe=>"'".concat(pe,"'")).join(", "),"]");yield"(Object.getOwnPropertyNames(".concat(F,").every(key => ").concat(ne,".includes(key) || ").concat(Q,"))")}}o(S,"FromObject");function*D(P,J,F){yield"(typeof value === 'object' && typeof ".concat(F,".then === 'function')")}o(D,"FromPromise");function*I(P,J,F){yield Yo.IsRecordLike(F),me(P.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(F,").length >= ").concat(P.minProperties)),me(P.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(F,").length <= ").concat(P.maxProperties));let[ce,Q]=Object.entries(P.patternProperties)[0],ne=xe("".concat(new RegExp(ce))),pe=le(Q,J,"value"),Je=je(P.additionalProperties)?le(P.additionalProperties,J,F):P.additionalProperties===!1?"false":"true",Ft="(".concat(ne,".test(key) ? ").concat(pe," : ").concat(Je,")");yield"(Object.entries(".concat(F,").every(([key, value]) => ").concat(Ft,"))")}o(I,"FromRecord");function*T(P,J,F){let ce=Ve(P,J);if(Y.functions.has(P.$ref))return yield"".concat(fe(P.$ref),"(").concat(F,")");yield*X(oe(ce,J,F))}o(T,"FromRef");function*V(P,J,F){let ce=xe("".concat(new RegExp(P.source,P.flags),";"));yield"(typeof ".concat(F," === 'string')"),me(P.maxLength)&&(yield"".concat(F,".length <= ").concat(P.maxLength)),me(P.minLength)&&(yield"".concat(F,".length >= ").concat(P.minLength)),yield"".concat(ce,".test(").concat(F,")")}o(V,"FromRegExp");function*$(P,J,F){if(yield"(typeof ".concat(F," === 'string')"),me(P.maxLength)&&(yield"".concat(F,".length <= ").concat(P.maxLength)),me(P.minLength)&&(yield"".concat(F,".length >= ").concat(P.minLength)),P.pattern!==void 0){let ce=xe("".concat(new RegExp(P.pattern),";"));yield"".concat(ce,".test(").concat(F,")")}P.format!==void 0&&(yield"format('".concat(P.format,"', ").concat(F,")"))}o($,"FromString");function*O(P,J,F){yield"(typeof ".concat(F," === 'symbol')")}o(O,"FromSymbol");function*M(P,J,F){yield"(typeof ".concat(F," === 'string')");let ce=xe("".concat(new RegExp(P.pattern),";"));yield"".concat(ce,".test(").concat(F,")")}o(M,"FromTemplateLiteral");function*Z(P,J,F){yield"".concat(fe(P.$ref),"(").concat(F,")")}o(Z,"FromThis");function*z(P,J,F){if(yield"Array.isArray(".concat(F,")"),P.items===void 0)return yield"".concat(F,".length === 0");yield"(".concat(F,".length === ").concat(P.maxItems,")");for(let ce=0;ce<P.items.length;ce++){let Q=le(P.items[ce],J,"".concat(F,"[").concat(ce,"]"));yield"".concat(Q)}}o(z,"FromTuple");function*re(P,J,F){yield"".concat(F," === undefined")}o(re,"FromUndefined");function*k(P,J,F){let ce=P.anyOf.map(Q=>le(Q,J,F));yield"(".concat(ce.join(" || "),")")}o(k,"FromUnion");function*H(P,J,F){yield"".concat(F," instanceof Uint8Array"),me(P.maxByteLength)&&(yield"(".concat(F,".length <= ").concat(P.maxByteLength,")")),me(P.minByteLength)&&(yield"(".concat(F,".length >= ").concat(P.minByteLength,")"))}o(H,"FromUint8Array");function*q(P,J,F){yield"true"}o(q,"FromUnknown");function*G(P,J,F){yield Yo.IsVoidLike(F)}o(G,"FromVoid");function*ae(P,J,F){let ce=Y.instances.size;Y.instances.set(ce,P),yield"kind('".concat(P[L],"', ").concat(ce,", ").concat(F,")")}o(ae,"FromKind");function*oe(P,J,F,ce=!0){let Q=Ue(P.$id)?[...J,P]:J,ne=P;if(ce&&Ue(P.$id)){let pe=fe(P.$id);if(Y.functions.has(pe))return yield"".concat(pe,"(").concat(F,")");{let Je=be(pe,P,J,"value",!1);return Y.functions.set(pe,Je),yield"".concat(pe,"(").concat(F,")")}}switch(ne[L]){case"Any":return yield*X(t(ne,Q,F));case"Array":return yield*X(n(ne,Q,F));case"AsyncIterator":return yield*X(i(ne,Q,F));case"BigInt":return yield*X(a(ne,Q,F));case"Boolean":return yield*X(u(ne,Q,F));case"Constructor":return yield*X(s(ne,Q,F));case"Date":return yield*X(d(ne,Q,F));case"Function":return yield*X(m(ne,Q,F));case"Integer":return yield*X(p(ne,Q,F));case"Intersect":return yield*X(g(ne,Q,F));case"Iterator":return yield*X(b(ne,Q,F));case"Literal":return yield*X(v(ne,Q,F));case"Never":return yield*X(C(ne,Q,F));case"Not":return yield*X(A(ne,Q,F));case"Null":return yield*X(x(ne,Q,F));case"Number":return yield*X(E(ne,Q,F));case"Object":return yield*X(S(ne,Q,F));case"Promise":return yield*X(D(ne,Q,F));case"Record":return yield*X(I(ne,Q,F));case"Ref":return yield*X(T(ne,Q,F));case"RegExp":return yield*X(V(ne,Q,F));case"String":return yield*X($(ne,Q,F));case"Symbol":return yield*X(O(ne,Q,F));case"TemplateLiteral":return yield*X(M(ne,Q,F));case"This":return yield*X(Z(ne,Q,F));case"Tuple":return yield*X(z(ne,Q,F));case"Undefined":return yield*X(re(ne,Q,F));case"Union":return yield*X(k(ne,Q,F));case"Uint8Array":return yield*X(H(ne,Q,F));case"Unknown":return yield*X(q(ne,Q,F));case"Void":return yield*X(G(ne,Q,F));default:if(!Gt.Has(ne[L]))throw new sh(P);return yield*X(ae(ne,Q,F))}}o(oe,"Visit");let Y={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function le(P,J,F,ce=!0){return"(".concat([...oe(P,J,F,ce)].join(" && "),")")}o(le,"CreateExpression");function fe(P){return"check_".concat(ah.Encode(P))}o(fe,"CreateFunctionName");function xe(P){let J="local_".concat(Y.variables.size);return Y.variables.set(J,"const ".concat(J," = ").concat(P)),J}o(xe,"CreateVariable");function be(P,J,F,ce,Q=!0){let[ne,pe]=["\n",tr=>"".padStart(tr," ")],Je=Fe("value","any"),Ft=De("boolean"),Lt=[...oe(J,F,ce,Q)].map(tr=>"".concat(pe(4)).concat(tr)).join(" &&".concat(ne));return"function ".concat(P,"(").concat(Je,")").concat(Ft," {").concat(ne).concat(pe(2),"return (").concat(ne).concat(Lt).concat(ne).concat(pe(2),")\n}")}o(be,"CreateFunction");function Fe(P,J){let F=Y.language==="typescript"?": ".concat(J):"";return"".concat(P).concat(F)}o(Fe,"CreateParameter");function De(P){return Y.language==="typescript"?": ".concat(P):""}o(De,"CreateReturns");function ht(P,J,F){let ce=be("check",P,J,"value"),Q=Fe("value","any"),ne=De("boolean"),pe=[...Y.functions.values()],Je=[...Y.variables.values()],Ft=Ue(P.$id)?"return function check(".concat(Q,")").concat(ne," {\n return ").concat(fe(P.$id),"(value)\n}"):"return ".concat(ce);return[...Je,...pe,Ft].join("\n")}o(ht,"Build");function vt(...P){let J={language:"javascript"},[F,ce,Q]=P.length===2&&Ie(P[1])?[P[0],P[1],J]:P.length===2&&!Ie(P[1])?[P[0],[],P[1]]:P.length===3?[P[0],P[1],P[2]]:P.length===1?[P[0],[],J]:[null,[],J];if(Y.language=Q.language,Y.variables.clear(),Y.functions.clear(),Y.instances.clear(),!je(F))throw new Sd(F);for(let ne of ce)if(!je(ne))throw new Sd(ne);return ht(F,ce,Q)}o(vt,"Code"),e.Code=vt;function Sr(P,J=[]){let F=vt(P,J,{language:"javascript"}),ce=globalThis.Function("kind","format","hash",F),Q=new Map(Y.instances);function ne(Lt,tr,Un){if(!Gt.Has(Lt)||!Q.has(tr))return!1;let fa=Gt.Get(Lt),ha=Q.get(tr);return fa(ha,Un)}o(ne,"typeRegistryFunction");function pe(Lt,tr){return Br.Has(Lt)?Br.Get(Lt)(tr):!1}o(pe,"formatRegistryFunction");function Je(Lt){return po(Lt)}o(Je,"hashFunction");let Ft=ce(ne,pe,Je);return new oh(P,J,Ft,F)}o(Sr,"Compile"),e.Compile=Sr})(wd||(wd={}));l();l();l();var cO=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,lO=[0,31,28,31,30,31,30,31,31,30,31,30,31],dO=o(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Ad=o(e=>{let r=cO.exec(e);if(!r)return!1;let t=+r[1],n=+r[2],i=+r[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&dO(t)?29:lO[n])},"isDate");l();var mO=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i,Pd=o(e=>{let r=mO.exec(e);if(!r)return!1;let t=+r[1],n=+r[2],i=+r[3],a=r[4],u=r[5]==="-"?-1:1,s=+(r[6]||0),d=+(r[7]||0);if(s>23||d>59||!a)return!1;if(t<=23&&n<=59&&i<60)return!0;let m=n-d*u,p=t-s*u-(m<0?1:0);return(p===23||p===-1)&&(m===59||m===-1)&&i<61},"isTime");var pO=/t|\s/i,qx=o(e=>{let r=e.split(pO);return r.length===2&&Ad(r[0])&&Pd(r[1])},"isDateTime");l();var fO=/\/|:/,hO=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Xx=o(e=>fO.test(e)&&hO.test(e),"isUri");var gO=[["date",Ad],["time",Pd],["date-time",qx],["uri",Xx]],Jx=o(()=>{for(let[e,r]of gO)try{Wl.Format(e,r)}catch(t){if(t instanceof Ss)continue;throw t}},"registerFormats");l();var mh=f.Record(f.String(),f.Unknown(),{$id:"Extra"}),Bn=f.Object({extra:f.Optional(f.Ref(mh))}),ph=[mh];l();l();l();l();l();l();var Ir=o(e=>Object.entries(e),"typedEntries");var yO=o(e=>{var t;let r=new Map;for(let[n,i]of Ir((t=e.geometry)!=null?t:{}))r.set(n,new Map(i==null?void 0:i.features.map(a=>[a.properties.id,a])));return r},"createLookupMap"),Zt=o(e=>{let r=yO(e);return o((n,i)=>{let a=r.get(n);if(a==null)return se({kind:jr.UnknownFloorError,properties:{floorId:n}});let u=a.get(i);return u==null?se({kind:jr.UnknownGeometryError,properties:{floorId:n,geometryId:i}}):ue(u)},"geometryLookup")},"createGeometryLookup");l();var yn=f.Object({geometryId:f.Ref(br)},{$id:"WithGeometryId"}),yu=f.Object({geometryIds:f.Array(f.Ref(br))},{$id:"WithGeometryIds"}),fh=[yn,yu];l();l();l();var Yx=o(e=>e instanceof Error?e:new Error(String(e)),"asError");var bu=o(e=>(...r)=>{try{return ue(e(...r))}catch(t){return se(Yx(t))}},"safeFn");var Qx=bu((e,r)=>{let t={};for(let n of r)for(let i of n.intoBundle(e))t[i.path]=lu(JSON.stringify(i.contents));return t}),hh=o(async(e,r,t)=>Qx(e,r).andThenAsync(n=>new Promise(i=>{Px(n,Ce(N({},t),{consume:!0}),(a,u)=>{i(a?se(a):ue(u))})})),"compress"),bO=bu(Fx),gh=o((e,r,t)=>Qx(e,r).andThen(n=>bO(n,t)),"compressSync");l();l();function Fd(e,r,t=[]){let n=N({},e);for(let[i,a]of Object.entries(r))if(a!==void 0)if(i in n){let u=i;if(Array.isArray(a)&&a.length>0){let s=vO(a[0],t);if(s){let d=n[u];if(!Array.isArray(d))throw new Error("Expected array at ".concat(i,", got ").concat(typeof d));let m=new Map(a.map(b=>[e3(b,s),b])),g=d.map(b=>{let v=m.get(e3(b,s));return v?Fd(b,v,t):b});n[u]=g}else n[u]=a}else{let s=n[u];typeof s=="object"&&s!==null&&typeof a=="object"&&a!==null?Object.keys(a).length===0?n[u]=a:n[u]=Fd(s,a,t):n[i]=a}}else n[i]=a;return n}o(Fd,"deepMergeOn");function vO(e,r){function t(n){if(typeof n!="object"||n===null)return null;for(let i of r)if(i in n&&typeof n[i]<"u")return[i];if(Array.isArray(n))return null;for(let[i,a]of Object.entries(n)){let u=t(a);if(u)return[i,...u]}return null}return o(t,"search"),t(e)}o(vO,"findIdentifierKey");function e3(e,r){return r.reduce((t,n)=>{if(t&&typeof t=="object")return t[n]},e)}o(e3,"getValueByKeyPath");var xO=o(e=>e,"identity"),EO=o(e=>JSON.parse(Q0(e)),"jsonDecode"),t3=o((e,r)=>r.some(t=>t.fromBundle(e.name,new Uint8Array,xO)!==void 0),"isFileExpected"),r3=bu((e,r)=>{let t={};for(let n of Object.keys(e)){let i=e[n];for(let a of r){let u=a.fromBundle(n,i,EO);if(u){t=Fd(t,u,[]);break}}}return t}),yh=o(async(e,r)=>new Promise(t=>Bx(e,{filter:o(n=>t3(n,r),"filter")},(n,i)=>{t(n?se(n):ue(i))})).then(t=>t.andThen(n=>r3(n,r))),"decompress"),IO=bu(Ox),bh=o((e,r)=>IO(e,{filter:o(t=>t3(t,r),"filter")}).andThen(t=>r3(t,r)),"decompressSync");l();var CO=o(e=>typeof e=="object"&&e!=null&&"$ref"in e&&typeof e.$ref=="string","isRef"),DO=o(e=>{if(e.length<2)return!1;let r=e.filter(CO);if(r.length!==e.length)return!1;let t=r[0].$ref;return r.slice(1).every(n=>n.$ref===t)},"isDuplicateRef"),Bd=o(e=>typeof e=="object"&&e!=null&&"allOf"in e&&Array.isArray(e.allOf)&&DO(e.allOf)?e.allOf[0]:typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([r,t])=>[r,Bd(t)])):Array.isArray(e)?e.map(Bd):e,"fixDuplicateAllOf");l();var Od=o(e=>typeof e=="object"&&e!=null&&"$ref"in e?Ce(N({},e),{$ref:"#/definitions/".concat(e.$ref)}):typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([r,t])=>[r,Od(t)])):Array.isArray(e)?e.map(Od):e,"prefixReferences");var vu;(function(e){e.InvalidTypeboxSchema="InvalidTypeboxSchema",e.MissingReferenceId="MissingReferenceId",e.DuplicateReferenceId="DuplicateReferenceId",e.TypeboxError="TypeboxError",e.UnknownError="UnknownError"})(vu||(vu={}));var SO=o(e=>({next(){for(let t of e){let n=t.next();if(!n.done)return n}return{done:!0,value:void 0}},[Symbol.iterator](){return this}}),"join"),wO=o((...e)=>{let r=new Map;for(let t of SO(e)){if(!t.$id)continue;let n=r.get(t.$id);if(n!=null&&n!==t)return se({kind:vu.DuplicateReferenceId,message:"Failed to register a reference for a schema with an $id that has already been used",schema:t});r.set(t.$id,t)}return ue(r)},"computeReferenceMap"),Yt,xu,Jr,dr,Td=class Td{constructor(r,t,n,i){R(this,Yt);R(this,xu);R(this,Jr,[]);R(this,dr);K(this,Yt,r),K(this,xu,t),K(this,Jr,n),K(this,dr,i),this.is=this.is.bind(this),this.parse=this.parse.bind(this),this.verify=this.verify.bind(this),this.jsonSchema=this.jsonSchema.bind(this),this.compress=this.compress.bind(this),this.decompress=this.decompress.bind(this)}static create(r,t="CoreMVF",n=!1){let i=f.Composite(r.extensions.map(u=>u.schema),{$id:t});if(!w.IsSchema(i))return se({kind:vu.InvalidTypeboxSchema,message:"Attempting to merge schemas produced an invalid schema",schema:i});let a=wO(a0.values(),u0.values(),i0.values(),ph.values(),vh.values(),fh.values(),r.extensions.flatMap(u=>{var s;return(s=u.references)!=null?s:[]}).values());if(!a.isOk())return a;try{Jx();let u=n?null:wd.Compile(i,[...a.value.values()]);return ue(new Td(i,u,r.extensions,a.value))}catch(u){return u instanceof he?se({kind:vu.TypeboxError,message:u.message,original:u}):se({kind:vu.UnknownError,message:"An unknown error occurred while compiling the schema",original:u})}}is(r){var t,n;return(n=(t=c(this,xu))==null?void 0:t.Check(r))!=null?n:fn.Check(c(this,Yt),[...c(this,dr).values()],r)}parse(r){var t,n;return this.is(r)?ue(r):se((n=(t=c(this,xu))==null?void 0:t.Errors(r))!=null?n:fn.Errors(c(this,Yt),[...c(this,dr).values()],r))}decode(r){try{return ue(Hx(c(this,Yt),[...c(this,dr).values()],r))}catch(t){return se(t)}}encode(r){try{return ue(Kx(c(this,Yt),[...c(this,dr).values()],r))}catch(t){return se(t)}}verify(r){for(let t of c(this,Jr))if(t.integrityCheck){let n=t.integrityCheck(r);if(n.isErr())return se(n.error)}return ue(!0)}jsonSchema(){var n;let r=JSON.parse(JSON.stringify([c(this,Yt),...c(this,dr).values()])),t=Bd(Od({$id:"#/definitions/".concat((n=c(this,Yt).$id)!=null?n:"CoreMVF"),$schema:"http://json-schema.org/draft-07/schema#",references:r}));return JSON.stringify(t,null,2)}async compress(r){return this.encode(r).andThen(t=>this.parse(t)).andThenAsync(t=>hh(t,c(this,Jr))).then(t=>t.mapErr(n=>{var i;return ks((i=c(this,Yt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}async compressUnsafe(r){return this.encode(r).andThenAsync(t=>hh(t,c(this,Jr))).then(t=>t.mapErr(n=>{var i;return ks((i=c(this,Yt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}compressSync(r){return this.encode(r).andThen(t=>this.parse(t)).andThen(t=>gh(t,c(this,Jr))).mapErr(t=>{var n;return ks((n=c(this,Yt).$id)!=null?n:"CoreMVF",t,[...c(this,dr).values()])})}compressUnsafeSync(r){return this.encode(r).andThen(t=>gh(t,c(this,Jr))).mapErr(t=>{var n;return ks((n=c(this,Yt).$id)!=null?n:"CoreMVF",t,[...c(this,dr).values()])})}async decompress(r){return yh(r,c(this,Jr)).then(t=>t.andThen(n=>this.parse(n)).andThen(n=>this.decode(n)).mapErr(n=>{var i;return _s((i=c(this,Yt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}async decompressUnsafe(r){return yh(r,c(this,Jr)).then(t=>t.andThen(n=>this.decode(n)).mapErr(n=>{var i;return _s((i=c(this,Yt).$id)!=null?i:"CoreMVF",n,[...c(this,dr).values()])}))}decompressSync(r){return bh(r,c(this,Jr)).andThen(t=>this.parse(t)).andThen(t=>this.decode(t)).mapErr(t=>{var n;return _s((n=c(this,Yt).$id)!=null?n:"CoreMVF",t,[...c(this,dr).values()])})}decompressUnsafeSync(r){return bh(r,c(this,Jr)).andThen(t=>this.decode(t)).mapErr(t=>{var n;return _s((n=c(this,Yt).$id)!=null?n:"CoreMVF",t,[...c(this,dr).values()])})}};Yt=new WeakMap,xu=new WeakMap,Jr=new WeakMap,dr=new WeakMap,o(Td,"MVFParser");var Md=Td;var Eu,xh=class xh{constructor(){R(this,Eu,[]);this.extend=this.extend.bind(this)}extend(r){return c(this,Eu).push(r),this}extendOptional(r){let t=Ce(N({},r),{schema:f.Partial(r.schema)});return c(this,Eu).push(t),this}build(r){return Md.create(this,void 0,r==null?void 0:r.cspSafe)}get extensions(){return c(this,Eu)}};Eu=new WeakMap,o(xh,"MVFParserBuilder");var kd=xh;l();l();l();l();var Iu=f.Object({geometryId:f.Ref(br),floorId:f.Ref(Le)},{$id:"GeometryAnchor"}),AO=f.Object({geometryAnchor:f.Ref(Iu)}),Ls=o((e,r)=>f.Object({geometryAnchors:f.Array(f.Ref(Iu),e)},r),"WithGeometryAnchors"),vh=[Iu];l();l();l();var n3=o((e,r)=>f.Unsafe(f.Transform(f.String(r)).Decode(t=>e.includes(t)?t:"unknown").Encode(t=>t)),"SafeStringEnumSchema"),mr=o((e,r)=>{let t=n3(e,r),n=[...e,"unknown"],i=Object.freeze(Object.fromEntries([...e,"unknown"].map(u=>[u,u])));return{schema:t,values:n,record:i,is:o(u=>Object.hasOwn(i,u),"is")}},"SafeStringEnum");var i3=o(()=>new kd().extend(Rx).extend($x).extend(Wx),"createParser");l();l();l();l();l();l();var Rs;(function(e){e.AnnotationNonPointGeometryError="AnnotationNonPointGeometryError",e.AnnotationUnknownSymbolError="AnnotationUnknownSymbolError"})(Rs||(Rs={}));var o3=o(e=>{var i;if(e.annotations==null)return ue(!0);let r=Tt(e.annotations,a=>a.id,"annotations");if(r.isErr())return r;let t=Zt(e),n=new Set(tt((i=e.annotationSymbols)!=null?i:{}));for(let a of tt(e.annotations)){let u=e.annotations[a];if(u!=null)for(let s of u){if(!n.has(s.symbolKey))return se({kind:Rs.AnnotationUnknownSymbolError,properties:{annotationId:s.id,symbolKey:s.symbolKey}});let d=t(a,s.geometryId);if(d.isErr())return d;if(d.value.geometry.type!=="Point")return se({kind:Rs.AnnotationNonPointGeometryError,properties:{annotationId:s.id,floorId:a,geometryId:s.geometryId}})}}return ue(!0)},"validateAnnotations");var a3=Mt("a","AnnotationId"),Eh=f.Intersect([yn,f.Object({id:f.Ref(a3,{description:"The unique identifier for the annotation."}),externalId:f.Optional(f.String({description:"The external identifier for the annotation."})),symbolKey:f.String({description:"The symbol identifier for the annotation."})})],{$id:"AnnotationProperties"}),u3=f.Object({url:f.String({format:"uri",description:"The URL for the symbol."}),name:f.String({description:"The name of the symbol."})},{$id:"AnnotationSymbol"}),PO=f.Object({annotations:kt(f.Record(Le,f.Array(f.Ref(Eh)),{additionalProperties:!1})),annotationSymbols:kt(f.Record(f.Index(Eh,["symbolKey"]),f.Ref(u3)))},{$id:"AnnotationsSchema"}),FO=/^annotations\/(.*)\.json$/,s3={name:"ext:mvf-annotations",schema:PO,intoBundle:o(function*(e){if(e.annotations!=null)for(let r of tt(e.annotations))yield{path:"annotations/".concat(r,".json"),contents:e.annotations[r]};e.annotationSymbols!=null&&(yield{path:"annotation-symbols.json",contents:e.annotationSymbols})},"intoBundle"),fromBundle:o((e,r,t)=>{var i;if(e==="annotation-symbols.json")return{annotationSymbols:t(r)};let n=(i=e.match(FO))==null?void 0:i[1];if(n)return{annotations:{[n]:t(r)}}},"fromBundle"),references:[a3,Eh,u3],integrityCheck:o3};l();l();l();var Li=Mt("lcat","LocationCategoryId"),Ih=f.Intersect([f.Object({id:f.Ref(Li),parent:f.Optional(f.Ref(Li))}),Wo(["name"]),Bn],{$id:"LocationCategory"}),c3=[Li,Ih];l();l();var Qo;(function(e){e.UnknownCategoryError="UnknownCategoryError",e.UnknownParentCategoryError="UnknownParentCategoryError",e.UnknownParentLocationError="UnknownParentLocationError"})(Qo||(Qo={}));var l3=o(e=>{var i,a,u,s,d,m,p,g,b;if(e.locationCategories==null&&e.locations==null)return ue(!0);if(e.locationCategories!=null){let v=Tt(e.locationCategories,C=>C.id,"locationCategories");if(v.isErr())return v}if(e.locations!=null){let v=Tt(e.locations,C=>C.id,"locations");if(v.isErr())return v}if(e.locationInstances!=null){let v=Tt(e.locationInstances,C=>C.id,"locationInstances");if(v.isErr())return v}let r=new Set((a=(i=e.locationCategories)==null?void 0:i.map(v=>v.id))!=null?a:[]);for(let v of(u=e.locationCategories)!=null?u:[])if(v.parent!=null&&!r.has(v.parent))return se({kind:Qo.UnknownParentCategoryError,properties:{categoryId:v.id,parentCategoryId:v.parent}});let t=Zt(e);for(let v of(s=e.locations)!=null?s:[]){for(let C of v.categories)if(!r.has(C))return se({kind:Qo.UnknownCategoryError,properties:{locationId:v.id,categoryId:C}});for(let C of v.geometryAnchors){let A=t(C.floorId,C.geometryId);if(A.isErr())return A}}let n=new Set((m=(d=e.locations)==null?void 0:d.map(v=>v.id))!=null?m:[]);for(let v of(p=e.locationInstances)!=null?p:[]){if(!n.has(v.parentId))return se({kind:Qo.UnknownParentLocationError,properties:{locationInstanceId:v.id,parentLocationId:v.parentId}});for(let C of(g=v.categories)!=null?g:[])if(!r.has(C))return se({kind:Qo.UnknownCategoryError,properties:{locationId:v.id,categoryId:C}});for(let C of(b=v.geometryAnchors)!=null?b:[]){let A=t(C.floorId,C.geometryId);if(A.isErr())return A}}return ue(!0)},"validateLocations");l();var Ri=Mt("loc","LocationId"),_d=Mt("loci","LocationInstanceId"),d3=f.Object({name:f.String(),url:f.String({format:"uri"})},{$id:"LocationSocial"}),m3=f.Object({url:f.String({format:"uri"})},{$id:"LocationImage"}),Ch=f.Object({label:f.String(),url:f.String({format:"uri"})},{$id:"LocationLink"}),Dh=f.String({pattern:"^[0-2][0-9]:[0-6][0-9](:[0-6][0-9])?$",$id:"OpeningHoursTime"}),p3=f.Union([f.Literal("Sunday"),f.Literal("Monday"),f.Literal("Tuesday"),f.Literal("Wednesday"),f.Literal("Thursday"),f.Literal("Friday"),f.Literal("Saturday")],{$id:"OpeningHoursDay"}),BO="PublicHolidays",Sh=f.Union([p3,f.Literal(BO)],{$id:"OpeningHoursDayOrPublicHoliday"}),Ld=f.Object({"@type":f.Optional(f.Literal("OpeningHoursSpecification",{description:"The type of opening hours"})),opens:f.Optional(f.Ref(Dh,{description:"The time the opening hours start"})),closes:f.Optional(f.Ref(Dh,{description:"The time the opening hours end"})),dayOfWeek:f.Optional(f.Union([f.Ref(Sh),f.Array(f.Ref(Sh))],{description:"The days of the week the opening hours apply to"})),validFrom:f.Optional(f.String({format:"date",description:"The date the opening hours start, in ISO 8601 format"})),validThrough:f.Optional(f.String({format:"date",description:"The date the opening hours end, in ISO 8601 format"}))},{$id:"OpeningHoursSpecification"}),Rd=f.Intersect([f.Object({id:f.Ref(Ri),categories:f.Array(f.Ref(Li)),logo:f.Optional(f.String({format:"uri"})),phone:f.Optional(f.String()),social:f.Array(f.Ref(d3)),images:f.Array(f.Ref(m3)),links:f.Array(f.Ref(Ch)),website:f.Optional(f.Ref(Ch)),openingHours:f.Optional(f.Array(f.Ref(Ld)))}),Wo(["name"]),Ls(),Bn],{$id:"Location"}),wh=f.Intersect([f.Object({id:f.Ref(_d),parentId:f.Ref(Ri)}),f.Partial(f.Omit(Rd,["id","parentId","details"])),Vr],{$id:"LocationInstance",description:"A location instance is a particular instance of an location that has some properties different from the parent."}),Nd=[Ri,_d,d3,m3,Ch,Dh,p3,Sh,Ld,Rd,wh];var OO=f.Object({locations:f.Array(f.Ref(Rd)),locationCategories:f.Array(f.Ref(Ih)),locationInstances:f.Optional(f.Array(f.Ref(wh)))},{$id:"LocationsExtensionSchema"}),f3="locations.json",h3="location-categories.json",g3="location-instances.json",y3={name:"ext:locations",schema:OO,intoBundle:o(function*(e){e.locations!=null&&(yield{path:f3,contents:e.locations}),e.locationCategories!=null&&(yield{path:h3,contents:e.locationCategories}),e.locationInstances!=null&&(yield{path:g3,contents:e.locationInstances})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e===f3)return{locations:t(r)};if(e===h3)return{locationCategories:t(r)};if(e===g3)return{locationInstances:t(r)}},"fromBundle"),references:[...c3,...Nd],integrityCheck:l3};l();l();var On;(function(e){e.EnterpriseLocationWithUnknownLocationError="EnterpriseLocationWithUnknownLocationError",e.EnterpriseCategoryWithUnknownLocationCategoryError="EnterpriseCategoryWithUnknownLocationCategoryError",e.InstanceWithUnknownLocationInstanceError="InstanceWithUnknownLocationInstanceError",e.InstanceWithUnknownEnterpriseLocationError="InstanceWithUnknownEnterpriseLocationError",e.EnterpriseLocationWithUnknownSibling="EnterpriseLocationWithUnknownSibling",e.EnterpriseLocationInstanceWithUnknownSibling="EnterpriseLocationInstanceWithUnknownSibling",e.EnterpriseVenueWithUnknownTopLocationError="EnterpriseVenueWithUnknownTopLocationError",e.EnterpriseLocationWithInvalidPrimaryCategory="EnterpriseLocationWithInvalidPrimaryCategory"})(On||(On={}));var b3=o(e=>{var b,v,C,A,x,E,S,D,I,T,V,$,O,M,Z,z,re,k,H,q;if(e.cms==null)return ue(!0);let r=e.cms,t=Tt(e.cms.categories,G=>G.id,"cms.categories");if(t.isErr())return t;let n=new Set((v=(b=e.locationCategories)==null?void 0:b.map(G=>G.id))!=null?v:[]);for(let G of(C=r.categories)!=null?C:[])if(!n.has(G.categoryId))return se({kind:On.EnterpriseCategoryWithUnknownLocationCategoryError,properties:{enterpriseCategoryId:G.id,locationCategoryId:G.categoryId}});let i=Tt(e.cms.locations,G=>G.id,"cms.locations");if(i.isErr())return i;let a=new Map((x=(A=e.locations)==null?void 0:A.map(G=>[G.id,G]))!=null?x:[]);for(let G of(E=r.locations)!=null?E:[]){if(!a.has(G.locationId))return se({kind:On.EnterpriseLocationWithUnknownLocationError,properties:{enterpriseLocationId:G.id,locationId:G.locationId}});for(let ae of(S=G.siblingGroups)!=null?S:[])for(let oe of(D=ae.siblings)!=null?D:[])if(!a.has(oe))return se({kind:On.EnterpriseLocationWithUnknownSibling,properties:{enterpriseLocationId:G.id,siblingLocationId:oe,label:ae.label}});if(G.primaryCategory!=null){let ae=a.get(G.locationId);if(ae!=null&&!ae.categories.includes(G.primaryCategory))return se({kind:On.EnterpriseLocationWithInvalidPrimaryCategory,properties:{enterpriseLocationId:G.id,locationId:G.locationId,primaryCategory:G.primaryCategory}})}}if(((I=r.venue)==null?void 0:I.topLocations)!=null){for(let G of r.venue.topLocations)if(!a.has(G))return se({kind:On.EnterpriseVenueWithUnknownTopLocationError,properties:{locationId:G}})}let u=new Set((V=(T=e.cms.locations)==null?void 0:T.map(G=>G.id))!=null?V:[]),s=Tt(e.cms.locationInstances,G=>G.id,"cms.locationInstances");if(s.isErr())return s;let d=new Set((O=($=e.locationInstances)==null?void 0:$.map(G=>G.id))!=null?O:[]);for(let G of(M=r.locationInstances)!=null?M:[]){if(!u.has(G.parentId))return se({kind:On.InstanceWithUnknownEnterpriseLocationError,properties:{enterpriseLocationInstanceId:G.id,enterpriseLocationId:G.parentId}});if(!d.has(G.locationInstanceId))return se({kind:On.InstanceWithUnknownLocationInstanceError,properties:{enterpriseLocationInstanceId:G.id,locationInstanceId:G.locationInstanceId}});for(let ae of(Z=G.siblingGroups)!=null?Z:[])for(let oe of(z=ae.siblings)!=null?z:[])if(!a.has(oe))return se({kind:On.EnterpriseLocationInstanceWithUnknownSibling,properties:{enterpriseLocationInstanceId:G.id,siblingLocationId:oe,label:ae.label}})}let m=Fn(e),p=Zt(e),g=Tt(e.cms.floorText,G=>G.properties.id,"cms.floorText");if(g.isErr())return g;for(let[G,ae]of Ir((re=r.floorText)!=null?re:{})){let oe=m(G);if(oe.isErr())return oe;for(let Y of ae.features){if(!("geometryId"in Y.properties))continue;let le=p(G,Y.properties.geometryId);if(le.isErr())return le}}for(let[G,ae]of Ir((k=r.textures)!=null?k:{})){let oe=m(G);if(oe.isErr())return oe;for(let Y of ae){let le=p(G,Y.geometryId);if(le.isErr())return le}}for(let[G,ae]of Ir((H=r.layers)!=null?H:{})){let oe=m(G);if(oe.isErr())return oe;for(let Y of tt(ae!=null?ae:{})){let le=p(G,Y);if(le.isErr())return le}}for(let[G,ae]of Ir((q=r.textAreas)!=null?q:{})){let oe=m(G);if(oe.isErr())return oe;for(let Y of ae.features)if("geometryId"in Y.properties){let le=p(G,Y.properties.geometryId);if(le.isErr())return le}}return ue(!0)},"validateCMS");l();l();var Ns=Mt("el","EnterpriseLocationId"),Ah=Mt("ec","EnterpriseCategoryId"),Ph=Mt("eli","EnterpriseLocationInstanceId"),Fh=Mt("ev","EnterpriseVenueId"),Bh=Mt("eft","EnterpriseFloorTextId"),v3=[Ns,Ah,Ph,Fh,Bh];var x3=f.Object({id:f.Ref(Ah),categoryId:f.Ref(Li),color:f.Optional(f.String()),sortOrder:f.Number(),iconFromDefaultList:f.Optional(f.Union([f.String(),f.Null()])),picture:f.Optional(f.String({format:"uri",description:"The category's picture"}))},{$id:"EnterpriseCategory"}),Oh=f.Object({categories:f.Optional(f.Array(f.Ref(x3)))},{$id:"EnterpriseCategoriesSchema"}),E3=[x3,Oh];l();var Ud=mr(["left","center","right"]),MO=Ud.schema,Eue=Ud.values,Iue=Ud.record,Cue=Ud.is,Mh=f.Object({id:f.Ref(Bh),text:f.String(),visible:f.Boolean({default:!0}),fontSize:f.Number({default:12,exclusiveMinimum:0}),fontFamily:f.String({default:"Droid Sans"}),color:f.String({default:"black"}),rotation:f.Number({minimum:0,maximum:360}),align:MO},{$id:"FloorTextCommonProperties"}),Th=f.Intersect([f.Ref(Mh),yn],{$id:"AnchoredFloorTextProperties"}),kh=f.Intersect([f.Ref(Mh),f.Object({verticalOffset:f.Number()})],{$id:"FloatingFloorTextProperties"}),I3=f.Union([f.Ref(Th),f.Ref(kh)],{$id:"FloorTextProperties"}),C3=ar(yr,f.Ref(I3),{$id:"FloorTextFeature"}),TO=ar(yr,f.Ref(Th),{$id:"AnchoredFloorTextFeature"}),kO=ar(yr,f.Ref(kh),{$id:"FloatingFloorTextFeature"}),D3=Or(f.Ref(C3),{$id:"EnterpriseFloorTextFeatureCollection"}),S3=f.Record(Le,f.Ref(D3),{$id:"EnterpriseFloorTextCollectionsByFloor",additionalProperties:!1}),_h=f.Object({floorText:f.Optional(f.Ref(S3))},{$id:"EnterpriseFloorTextSchema"}),w3=[Mh,Th,kh,I3,C3,TO,kO,D3,S3,_h];l();var A3=kt(f.Record(br,f.String({minLength:1}),{additionalProperties:!1,$id:"EnterpriseLayers"})),P3=kt(f.Record(Le,f.Ref(A3),{additionalProperties:!1,$id:"EnterpriseLayersByFloor"})),Lh=f.Object({layers:f.Optional(f.Ref(P3))},{$id:"EnterpriseLayersSchema"}),F3=[A3,P3,Lh];l();l();l();var{schema:B3,values:kue,record:_ue,is:Lue}=mr(["reference-point","checkpoint","checkpoint-passport","parent"],{$id:"EnterpriseSiblingGroupType"}),jd=mr(["closed-temporarily","new","pop-up","coming-soon","relocated"]),_O=jd.schema,Rue=jd.values,Nue=jd.record,Uue=jd.is,Rh=f.Object({type:_O,start:f.Optional(f.String({format:"date",description:"The start date of the state"})),end:f.Optional(f.String({format:"date",description:"The end date of the state"}))},{$id:"LocationState",description:"The state of a location. Start and end dates are optional."}),Nh=f.Object({label:f.String(),siblings:f.Array(f.Ref(Ri)),type:f.Optional(f.Ref(B3)),subtype:f.Optional(f.String())},{$id:"SiblingGroup"}),zd=f.Object({name:f.String(),code:f.String()},{$id:"Language"}),O3=[Rh,Nh,zd,B3];var $d=f.Object({id:f.Ref(Ns),locationId:f.Ref(Ri),cmsId:f.String(),type:f.String(),sortOrder:f.Number(),tags:f.Optional(f.Array(f.String())),picture:f.Optional(f.String({format:"uri",description:"The picture of the location"})),states:f.Optional(f.Array(f.Ref(Rh),{description:"The location's state. No more than one state should be active at a time, and all but at most one should have dates set"})),siblingGroups:f.Optional(f.Array(f.Ref(Nh))),gallery:f.Optional(f.Array(f.Object({caption:f.Optional(f.String()),image:f.String({format:"uri"}),embeddedUrl:f.Optional(f.String({format:"uri",description:"The URL to link from the image"}))},{description:"The location's image gallery"}),{description:"The location's image gallery"})),showFloatingLabelWhenImagePresent:f.Optional(f.Boolean({description:"Whether to show the flat label when an image is present"})),amenity:f.Optional(f.String({description:"The location's amenity type. Only set if the location is an amenity"})),showLogo:f.Optional(f.Boolean({description:"Whether to show the logo of the location"})),primaryCategory:f.Optional(f.Ref(Li)),headerImage:f.Optional(f.String({format:"uri",description:"The location's header image"}))},{$id:"EnterpriseLocation"}),Uh=f.Object({locations:f.Optional(f.Array(f.Ref($d)))},{$id:"EnterpriseLocationsSchema"}),M3=[$d,Uh];var T3=f.Intersect([f.Object({id:f.Ref(Ph),parentId:f.Ref(Ns),locationInstanceId:f.Ref(_d)}),f.Partial(f.Omit($d,["id","parentId","locationId"]))],{$id:"EnterpriseLocationInstance",description:"A locationInstance is a particular instance of an Enterprise Location that has some properties different from the parent."}),jh=f.Object({locationInstances:f.Optional(f.Array(f.Ref(T3)))},{$id:"EnterpriseLocationInstancesSchema"}),k3=[T3,jh];l();var Gd=mr(["near","center"],{$id:"EnterpriseTextAreaAlignment"}),_3=Gd.schema,ise=Gd.values,ose=Gd.record,ase=Gd.is,zh=f.Object({maxWidth:f.Number({exclusiveMinimum:0,description:"The maximum width of the label, in meters."}),maxHeight:f.Number({exclusiveMinimum:0,description:"The maximum height of the label, in meters."}),align:f.Ref(_3),rotation:f.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"EnterpriseBaseTextAreaProperties"}),L3=f.Intersect([f.Ref(zh),yn],{$id:"EnterpriseAnchoredTextAreaProperties"}),R3=f.Intersect([f.Ref(zh),f.Object({verticalOffset:f.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"EnterpriseFloatingTextAreaProperties"}),N3=f.Union([L3,R3],{$id:"EnterpriseTextAreaProperties"}),U3=ar(f.Ref(yr),N3,{$id:"EnterpriseTextAreaFeature"}),j3=Or(f.Ref(U3),{$id:"EnterpriseTextAreaCollection"}),z3=f.Record(Le,f.Ref(j3),{$id:"EnterpriseTextAreasByFloor",additionalProperties:!1}),$3=f.Object({textAreas:f.Optional(f.Ref(z3))},{$id:"EnterpriseTextAreasSchema"}),G3=[_3,zh,L3,R3,N3,U3,j3,z3];l();var $h=f.Object({u:f.Number(),v:f.Number()},{$id:"EnterpriseTextureUV"}),Zd=mr(["top","side"],{$id:"EnterpriseTextureFace"}),Z3=Zd.schema,dse=Zd.values,mse=Zd.record,pse=Zd.is,Vd=mr(["inside","outside","both"],{$id:"EnterpriseTextureSurface"}),V3=Vd.schema,fse=Vd.values,hse=Vd.record,gse=Vd.is,W3=f.Tuple([Ja,Ya,Ja,Ya],{$id:"EnterpriseTextureBounds"}),H3=f.Intersect([f.Object({repeat:f.Ref($h),offset:f.Ref($h),rotation:f.Number({minimum:0,maximum:360}),path:f.String({format:"uri"}),face:f.Ref(Z3),surface:f.Ref(V3),bounds:f.Ref(W3)},{$id:"EnterpriseTextureProperties"}),yn],{$id:"EnterpriseTexture"}),K3=f.Array(f.Ref(H3),{$id:"EnterpriseTextures"}),q3=f.Record(Le,f.Ref(K3),{$id:"EnterpriseTexturesByFloor",additionalProperties:!1}),Gh=f.Object({textures:f.Optional(f.Ref(q3))},{$id:"EnterpriseTexturesSchema"}),X3=[H3,K3,Gh,$h,Z3,V3,W3,q3];l();var{schema:J3,values:Dse,record:Sse,is:wse}=mr(["agriculture","airport","casino","city-district","convention-center","entertainment","event-centre","first-responder-building","government-building","grocery-store","healthcare","higher-education","hotel","library","manufacturing","medical-centre","mixed-use","multifamily","museum","office-building","oil-and-energy","other","parking-facility","religious-institution","resort","retail-store","schools-k-12","shopping-mall","stadium-or-arena","storage-facility","theme-park","transit","transportation-hub","warehousing"],{$id:"EnterpriseVenueType"}),Y3=f.Intersect([f.Object({id:f.Ref(Fh),slug:f.String(),defaultLanguage:f.Ref(zd),languages:f.Array(f.Ref(zd)),countrycode:f.Optional(f.String()),logo:f.Optional(f.String({format:"uri"})),mappedinWebUrl:f.Optional(f.String({format:"uri"})),topLocations:f.Optional(f.Array(f.Ref(Ri))),operationHours:f.Optional(f.Array(f.Ref(Ld))),coverImage:f.Optional(f.String({format:"uri"})),type:f.Optional(f.Ref(J3))}),Wo(["name"]),Bn],{$id:"EnterpriseVenue"}),Zh=f.Object({venue:f.Optional(f.Ref(Y3))},{$id:"EnterpriseVenueSchema"}),Q3=[Y3,Zh,J3];var tE=f.Intersect([Zh,Uh,jh,Oh,Gh,_h,Lh,$3],{$id:"CMSProperties"}),eE=f.Object({cms:f.Optional(f.Ref(tE))},{$id:"CMSExtensionSchema"}),LO=/^cms\/(?:([^/]+)\/)?([^/]+)\.(?:json|geojson)$/,rE={name:"ext:cms",schema:eE,intoBundle:o(function*(e){var t,n,i,a,u,s;if(e.cms==null)return;let r=e.cms;for(let d of tt(r))switch(d){case"floorText":for(let m of tt((t=r.floorText)!=null?t:{}))yield{path:"cms/floorText/".concat(m,".geojson"),contents:((n=r.floorText)!=null?n:{})[m]};continue;case"textures":for(let m of tt((i=r.textures)!=null?i:{}))yield{path:"cms/textures/".concat(m,".json"),contents:((a=r.textures)!=null?a:{})[m]};continue;case"textAreas":for(let m of tt((u=r.textAreas)!=null?u:{}))yield{path:"cms/textAreas/".concat(m,".geojson"),contents:((s=r.textAreas)!=null?s:{})[m]};continue;default:yield{path:"cms/".concat(d,".json"),contents:r[d]};continue}},"intoBundle"),fromBundle:o((e,r,t)=>{let n=e.match(LO);if(!n)return;let[,i,a]=n,u=t(r);switch(i){case"floorText":case"textures":case"textAreas":return{cms:{[i]:{[a]:u}}};default:return{cms:{[a]:u}}}},"fromBundle"),references:[tE,eE,...Q3,...M3,...k3,...E3,...X3,...F3,...w3,...G3,...v3,...O3,...Nd],integrityCheck:b3};l();l();l();l();var Mn;(function(e){e.NavigationFlagMissingDeclaration="NavigationFlagMissingDeclaration",e.NavigationFlagDuplicateBit="NavigationFlagDuplicateBit",e.NavigationFlagIncorrectFlagsLength="NavigationFlagIncorrectFlagsLength",e.NavigationFlagValueTooBig="NavigationFlagValueTooBig"})(Mn||(Mn={}));var nE=o(e=>{let{navigationFlags:r}=e;if(!r||Object.keys(r).length===0)return ue(!0);let t=Object.entries(r).map(([a,u])=>N({key:a},u)).sort((a,u)=>a.index!==u.index?a.index-u.index:a.bit-u.bit),n=0,i=-1;for(let a of t){if(a.bit===i)return se({kind:Mn.NavigationFlagDuplicateBit,properties:{index:a.index,bit:a.bit,path:"navigationFlags.".concat(a.key)}});if(a.index!=n){if(i!=31)return se({kind:Mn.NavigationFlagMissingDeclaration,properties:{index:n,bit:i+1,path:"navigationFlags"}});if(a.index!=n+1||a.bit!=0)return se({kind:Mn.NavigationFlagMissingDeclaration,properties:{index:n+1,bit:0,path:"navigationFlags"}});n=a.index,i=0}else{if(a.bit!==i+1)return se({kind:Mn.NavigationFlagMissingDeclaration,properties:{index:a.index,bit:i+1,path:"navigationFlags"}});i=a.bit}}return ue(!0)},"validateNavigationFlags");l();var iE=2**32-1,Us=o(e=>{var i;let r=Object.keys((i=e.navigationFlags)!=null?i:{}).length;if(r===0)return{index:-1,flag:0};let t=Math.floor(r/32),n=r%32;return{index:t,flag:2**n-1}},"determineMaxNavigationFlags"),Cu=o((e,r,t)=>{if(r.index==-1&&e.length===0)return ue(!0);let n=r.flag>0||r.index===-1?r.index+1:r.index;if(e.length!==n)return se({kind:Mn.NavigationFlagIncorrectFlagsLength,properties:{expected:n,actual:e.length,path:t}});for(let i=0;i<e.length;i++){let a=e[i];if(i<r.index){if(a>iE)return se({kind:Mn.NavigationFlagValueTooBig,properties:{index:i,flagValue:a,expectedMaxFlagValue:iE,path:t}});continue}else if(a>r.flag)return se({kind:Mn.NavigationFlagValueTooBig,properties:{index:i,flagValue:a,expectedMaxFlagValue:r.flag,path:t}})}return ue(!0)},"validateFlags");var RO=f.Object({index:f.Integer({description:"The index of the flag in a flags array.",minimum:0}),bit:f.Integer({description:"The bit position of the flag in a flag's bitfield.",minimum:0,maximum:31})},{$id:"NavigationFlagDeclarationCore"}),oE=f.Intersect([RO,Vr],{$id:"NavigationFlagDeclaration",description:'A NavigationFlagDeclaration describes the relationship between a "key" that a developer might use to wayfind using that flag, and the index and bit position in an object\'s `flags` array.'});var aE=f.Record(f.String(),oE,{$id:"NavigationFlagDeclarations",description:"Any well known and custom flags present in the MVF"}),NO=f.Object({navigationFlags:f.Ref(aE)},{$id:"NavigationFlagsSchema"}),Wd=f.Array(f.Integer({minimum:0,maximum:Math.pow(2,32)-1}),{$id:"Flags"}),Vh=f.Object({flags:f.Ref(Wd)},{$id:"WithFlags"}),ea=f.Intersect([Iu,Vh],{$id:"FlaggedGeometryAnchor"}),UO=f.Object({geometryAnchor:ea},{$id:"WithFlaggedGeometryAnchor"}),jO=f.Object({geometryAnchors:f.Array(ea)},{$id:"WithFlaggedGeometryAnchors"}),uE={name:"ext:mvf-navigation-flags",schema:NO,intoBundle:o(function*(e){e.navigationFlags!=null&&(yield{path:"navigationFlags.json",contents:e.navigationFlags})},"intoBundle"),fromBundle:o((e,r,t)=>e!=="navigationFlags.json"?void 0:{navigationFlags:t(r)},"fromBundle"),references:[oE,aE,Wd,ea,UO,jO],integrityCheck:nE};l();var sE=o(e=>{if(e.connections==null)return ue(!0);let r=Tt(e.connections,i=>i.id,"connections");if(r.isErr())return r;let t=Zt(e),n=Us(e);for(let[i,a]of e.connections.entries()){for(let[u,s]of a.entrances.entries()){let d=t(s.floorId,s.geometryId);if(d.isErr())return d;let m=Cu(s.flags,n,"connections[".concat(i,"].entrances[").concat(u,"]"));if(m.isErr())return m}for(let[u,s]of a.exits.entries()){let d=t(s.floorId,s.geometryId);if(d.isErr())return d;let m=Cu(s.flags,n,"connections[".concat(i,"].exits[").concat(u,"]"));if(m.isErr())return m}}return ue(!0)},"validateConnections");var lE=Mt("c","ConnectionId"),{schema:zO,values:Dce,record:Sce,is:wce}=mr(["elevator","escalator","travelator","stairs","door","ramp","ladder"],{$id:"ConnectionType"}),dE=zO;var mE=f.Intersect([f.Object({id:f.Ref(lE,{description:"The unique identifier for the connection."}),entrances:f.Array(f.Ref(ea)),exits:f.Array(f.Ref(ea)),entryCost:f.Number({description:"The cost to enter the connection.",minimum:0}),floorCostMultiplier:f.Number({description:"The cost multiplier for each floor transitioned.",minimum:1}),type:f.Ref(dE,{description:"The type of connection."})}),Vr,Bn],{$id:"ConnectionsProperties"}),pE=f.Array(f.Ref(mE),{$id:"ConnectionsCollection"}),$O=f.Object({connections:f.Ref(pE)},{$id:"ConnectionsExtensionSchema"}),cE="connections.json",fE={name:"ext:connections",schema:$O,intoBundle:o(function*(e){e.connections!=null&&(yield{path:cE,contents:e.connections})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e===cE)return{connections:t(r)}},"fromBundle"),references:[mE,pE,dE,lE,ea,Wd],integrityCheck:sE};l();l();var hE=o(e=>{if(e.defaultStyle==null)return ue(!0);let r=Zt(e);for(let t of Object.values(e.defaultStyle))if(t!=null)for(let n of t.geometryAnchors){let i=r(n.floorId,n.geometryId);if(i.isErr())return i}return ue(!0)},"validateDefaultStyle");var gE=f.Intersect([Ls(),Bn,f.Object({altitude:f.Number({description:"How far off the bottom of the floor the objects with this style should be drawn, in meters."}),color:f.String({pattern:"^#[0-9a-fA-F]{6}$",description:"Color should be represented with a hash (#), followed by 6 hexadecimal digits. ex: #RRGGBB"}),height:f.Number({minimum:0,description:"The height of the objects belonging to this layer, in meters."}),opacity:f.Number({minimum:0,maximum:1,description:"The opacity of the objects belonging to this layer, from 0 to 1."}),buffer:f.Number({description:"The buffer amount to apply to the geometry, in meters. This can be used to inflate line string geometry for walls, but might also be applicable as a way to grow or shrink polygon geometry for aesthetic purposes. Can be negative."}),hidden:f.Optional(f.Boolean({description:"Whether or not the objects with this style should be hidden."}))})],{$id:"DefaultStyle"}),yE=f.Record(f.String(),f.Ref(gE),{$id:"DefaultStyleCollection",additionalProperties:!1}),GO=f.Object({defaultStyle:f.Ref(yE)},{$id:"DefaultStyleSchema"}),bE={name:"ext:mvf-default-style",schema:GO,intoBundle:o(function*(e){e.defaultStyle!=null&&(yield{path:"default-style.json",contents:e.defaultStyle})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e==="default-style.json")return{defaultStyle:t(r)}},"fromBundle"),references:[gE,yE],integrityCheck:hE};l();l();l();l();var Hd;(function(e){e.InvalidDefaultFloorError="InvalidDefaultFloorError"})(Hd||(Hd={}));var vE=o(e=>{if(e.floorStacks==null)return ue(!0);let r=Tt(e.floorStacks,n=>n.id,"floorStacks");if(r.isErr())return r;let t=Fn(e);for(let n of e.floorStacks){for(let i of n.floors){let a=t(i);if(a.isErr())return a}if(n.defaultFloor!=null&&!n.floors.includes(n.defaultFloor))return se({kind:Hd.InvalidDefaultFloorError,properties:{floorStackId:n.id,floorId:n.defaultFloor}})}return ue(!0)},"validateFloorStacks");var js=Mt("fs","FloorStackId"),EE=f.Intersect([f.Object({id:f.Ref(js,{description:"The unique identifier for the floor stack."}),floors:f.Array(f.Ref(Le),{uniqueItems:!0,minItems:1,description:"The floors that are part of this floor stack."}),defaultFloor:f.Optional(f.Ref(Le,{description:"The default floor for the floor stack."}))}),Vr],{$id:"FloorStacksProperties"}),IE=f.Array(f.Ref(EE),{$id:"FloorStackCollection"}),ZO=f.Object({floorStacks:f.Ref(IE)},{$id:"FloorStackExtensionSchema"}),xE="floor-stacks.json",CE={name:"ext:floor-stacks",schema:ZO,intoBundle:o(function*(e){e.floorStacks!=null&&(yield{path:xE,contents:e.floorStacks})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e===xE)return{floorStacks:t(r)}},"fromBundle"),references:[js,EE,IE],integrityCheck:vE};l();l();var zs;(function(e){e.MissingFloorStackError="MissingFloorStackError",e.UnknownFloorStackError="UnknownFloorStackError"})(zs||(zs={}));var DE=o(e=>{if(e.facade==null)return ue(!0);if(e.floorStacks==null)return se({kind:zs.MissingFloorStackError,properties:null});let r=new Set(e.floorStacks.map(i=>i.id)),t=Zt(e),n=Fn(e);for(let[i,a]of Ir(e.facade)){if(a==null)continue;let u=n(i);if(u.isErr())return u;for(let s of a){let{floorStackId:d,geometryIds:m}=s;if(!r.has(d))return se({kind:zs.UnknownFloorStackError,properties:{floorStackId:d}});for(let p of m){let g=t(i,p);if(g.isErr())return g}}}return ue(!0)},"validateFacade");var SE=f.Intersect([f.Object({floorStackId:f.Ref(js)}),yu],{$id:"Facade"}),VO=f.Object({facade:kt(f.Record(Le,f.Array(f.Ref(SE)),{additionalProperties:!1}))},{$id:"FacadeExtensionSchema"}),WO=/^facade\/(.*)\.json$/,wE={name:"ext:facade",schema:VO,intoBundle:o(function*(e){if(e.facade!=null)for(let r of tt(e.facade))yield{path:"facade/".concat(r,".json"),contents:e.facade[r]}},"intoBundle"),fromBundle:o((e,r,t)=>{var i;let n=(i=e.match(WO))==null?void 0:i[1];if(n)return{facade:{[n]:t(r)}}},"fromBundle"),references:[js,SE],integrityCheck:DE};l();l();var AE=o(e=>{if(e.floorImages==null)return ue(!0);let r=Zt(e);for(let[t,n]of Ir(e.floorImages))if(n!=null)for(let i of n.features){if(!("geometryId"in i.properties))continue;let a=i.properties.geometryId,u=r(t,a);if(u.isErr())return u}return ue(!0)},"validateFloorImages");var Wh=f.Object({path:f.String({format:"uri",description:"The path to the image. This will be a remote URL."}),width:f.Number({minimum:0,description:"The width of the image when represented on the map, in meters."}),height:f.Number({minimum:0,description:"The height of the image when represented on the map, in meters."}),rotation:f.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"BaseFloorImageProperties"}),PE=f.Intersect([f.Ref(Wh),yn],{$id:"AnchoredFloorImageProperties"}),FE=f.Intersect([f.Ref(Wh),f.Object({verticalOffset:f.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"FloatingFloorImageProperties"}),BE=f.Union([PE,FE],{$id:"FloorImageProperties"}),OE=ar(f.Ref(yr),BE,{$id:"FloorImageFeature"}),ME=Or(f.Ref(OE),{$id:"FloorImageCollection"}),HO=f.Object({floorImages:kt(f.Record(Le,f.Ref(ME),{additionalProperties:!1}))},{$id:"FloorImagesExtensionSchema"}),KO=/^floorImages\/(.*)\.geojson$/,TE={name:"ext:floor-images",schema:HO,intoBundle:o(function*(e){if(e.floorImages!=null)for(let r of tt(e.floorImages))yield{path:"floorImages/".concat(r,".geojson"),contents:e.floorImages[r]}},"intoBundle"),fromBundle:o((e,r,t)=>{var i;let n=(i=e.match(KO))==null?void 0:i[1];if(n)return{floorImages:{[n]:t(r)}}},"fromBundle"),references:[Wh,PE,FE,BE,OE,ME],integrityCheck:AE};l();l();var kE=o(e=>{if(e.kinds==null)return ue(!0);let r=Zt(e);for(let[t,n]of Ir(e.kinds))if(n!=null)for(let i of tt(n)){let a=r(t,i);if(a.isErr())return a}return ue(!0)},"validateKinds");var{values:Kle,schema:qO,record:qle,is:Xle}=mr(["room","hallway","wall","object","poi","area","window"],{$id:"Kind"}),_E=qO;var LE=kt(f.Record(br,f.Ref(_E),{additionalProperties:!1,$id:"GeometryKinds"})),XO=f.Object({kinds:kt(f.Record(Le,f.Ref(LE),{additionalProperties:!1}))},{$id:"KindsExtensionSchema"}),JO=/^kinds\/(.*)\.json$/,RE={name:"ext:kinds",schema:XO,intoBundle:o(function*(e){if(e.kinds!=null)for(let r of tt(e.kinds))yield{path:"kinds/".concat(r,".json"),contents:e.kinds[r]}},"intoBundle"),fromBundle:o((e,r,t)=>{var i;let n=(i=e.match(JO))==null?void 0:i[1];if(n)return{kinds:{[n]:t(r)}}},"fromBundle"),references:[_E,LE],integrityCheck:kE};l();l();l();var $s;(function(e){e.UnknownNeighbor="UnknownNeighbor",e.SelfReference="SelfReference"})($s||($s={}));var NE=o(e=>{if(e.nodes==null)return ue(!0);let r=Tt(e.nodes,i=>i.properties.id,"nodes");if(r.isErr())return r;let t=Zt(e),n=Us(e);for(let[i,a]of Ir(e.nodes)){if(a==null)continue;let u=new Set(a.features.map(s=>s.properties.id));for(let[s,d]of a.features.entries()){for(let m of d.properties.geometryIds){let p=t(i,m);if(p.isErr())return p}for(let[m,p]of d.properties.neighbors.entries()){if(!u.has(p.id))return se({kind:$s.UnknownNeighbor,properties:{floorId:i,nodeId:d.properties.id,neighborId:p.id}});if(p.id===d.properties.id)return se({kind:$s.SelfReference,properties:{floorId:i,nodeId:d.properties.id}});let g=Cu(p.flags,n,'nodes["'.concat(i,'"].features[').concat(s,"].properties.neighbors[").concat(m,"]"));if(g.isErr())return g}}}return ue(!0)},"validateNodes");var Hh=Mt("n","NodeId"),UE=f.Intersect([f.Object({id:f.Ref(Hh,{description:"The unique identifier for the node."}),extraCost:f.Number({minimum:0,description:"The extra cost to traverse to the node, above the straight-line distance."})}),Vh],{$id:"NodeNeighbor"}),jE=f.Intersect([f.Object({id:f.Ref(Hh,{description:"The unique identifier for the node."}),neighbors:f.Array(f.Ref(UE),{description:"The neighbors of the node."})}),yu],{$id:"NodeProperties"}),zE=ar(f.Ref(yr),jE,{$id:"NodeFeature"}),$E=Or(f.Ref(zE),{$id:"NodeCollection"}),YO=f.Object({nodes:kt(f.Record(Le,f.Ref($E),{additionalProperties:!1}))},{$id:"NodesExtensionSchema"}),QO=/^nodes\/(.*)\.(geo)?json$/,GE={name:"ext:nodes",schema:YO,intoBundle:o(function*(e){if(e.nodes!=null)for(let r of tt(e.nodes))yield{path:"nodes/".concat(r,".geojson"),contents:e.nodes[r]}},"intoBundle"),fromBundle:o((e,r,t)=>{var i;let n=(i=e.match(QO))==null?void 0:i[1];if(n)return{nodes:{[n]:t(r)}}},"fromBundle"),references:[Hh,UE,jE,zE,$E],integrityCheck:NE};l();l();l();var Kd;(function(e){e.FloorInFloorStackError="FloorInFloorStackError"})(Kd||(Kd={}));var ZE=o(e=>{if(e.outdoors==null)return ue(!0);let r=Fn(e);for(let t of e.outdoors.floors){let n=r(t);if(n.isErr())return n;if(e.floorStacks!=null){for(let i of e.floorStacks)if(i.floors.includes(t))return se({kind:Kd.FloorInFloorStackError,properties:{floorId:t,floorStackId:i.id}})}}return ue(!0)},"validateOutdoors");var WE=f.Object({floors:f.Array(f.Ref(Le),{uniqueItems:!0,description:"A list of floor IDs that should be considered to contain outdoor features."})},{$id:"Outdoors"}),eM=f.Object({outdoors:f.Ref(WE)},{$id:"OutdoorsExtensionSchema"}),VE="outdoors.json",HE={name:"ext:outdoors",schema:eM,intoBundle:o(function*(e){e.outdoors!=null&&(yield{path:VE,contents:e.outdoors})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e===VE)return{outdoors:t(r)}},"fromBundle"),references:[WE],integrityCheck:ZE};l();l();l();var qd;(function(e){e.TilesetDuplicateKeyError="TilesetDuplicateKeyError"})(qd||(qd={}));var KE=o(e=>{if(e.tileset==null)return ue(!0);let r=new Set;if(r.add(e.tileset.default.key),e.tileset.others)for(let t of e.tileset.others){if(r.has(t.key))return se({kind:qd.TilesetDuplicateKeyError,properties:{key:t.key}});r.add(t.key)}return ue(!0)},"validateTilesets");var Kh=f.Object({key:f.String({minLength:1,description:"Unique identifier for the tileset style."}),name:f.String({minLength:1,description:"Display name of the tileset style."}),url:f.String({format:"uri",description:"URL of the tileset style."})},{$id:"TilesetStyle",description:"A tileset style definition."}),qE=f.Object({default:f.Ref(Kh,{description:"The default tileset style, which should be used."}),others:f.Optional(f.Array(f.Ref(Kh,{description:"Additional tileset styles that can be used."})))},{$id:"TilesetCollection"}),tM=f.Object({tileset:f.Ref(qE)},{$id:"TilesetExtensionSchema"}),XE={name:"ext:mvf-tileset",schema:tM,intoBundle:o(function*(e){e.tileset!=null&&(yield{path:"tileset.json",contents:e.tileset})},"intoBundle"),fromBundle:o((e,r,t)=>{if(e==="tileset.json")return{tileset:t(r)}},"fromBundle"),references:[Kh,qE],integrityCheck:KE};l();var JE=f.Object({},{$id:"WalkableProperties"}),YE=f.Object({},{$id:"NonWalkableProperties"}),QE=kt(f.Record(br,f.Ref(JE),{$id:"WalkableGeometries",additionalProperties:!1})),e6=kt(f.Record(br,f.Ref(YE),{$id:"NonWalkableGeometries",additionalProperties:!1})),rM=f.Object({walkable:kt(f.Record(Le,f.Ref(QE),{additionalProperties:!1})),nonwalkable:kt(f.Record(Le,f.Ref(e6),{additionalProperties:!1}))},{$id:"TraversabilitySchema"}),nM=/^walkable\/(.*)\.json$/,iM=/^nonwalkable\/(.*)\.json$/,t6={name:"ext:mvf-traversability",schema:rM,intoBundle:o(function*(e){if(e.walkable!=null)for(let r of tt(e.walkable))yield{path:"walkable/".concat(r,".json"),contents:e.walkable[r]};if(e.nonwalkable!=null)for(let r of tt(e.nonwalkable))yield{path:"nonwalkable/".concat(r,".json"),contents:e.nonwalkable[r]}},"intoBundle"),fromBundle:o((e,r,t)=>{var a,u;let n=(a=e.match(nM))==null?void 0:a[1];if(n!=null)return{walkable:{[n]:t(r)}};let i=(u=e.match(iM))==null?void 0:u[1];if(i!=null)return{nonwalkable:{[i]:t(r)}}},"fromBundle"),references:[JE,YE,QE,e6]};l();l();l();l();l();l();l();l();l();l();l();var cM=Tc(i6(),1);l();l();l();l();var tfe=i3().extendOptional(uE).extendOptional(GE).extendOptional(fE).extendOptional(RE).extendOptional(t6).extendOptional(bE).extendOptional(CE).extendOptional(HE).extendOptional(XE).extendOptional(TE).extendOptional(wE).extendOptional(s3).extendOptional(y3).extendOptional(rE).build({cspSafe:!0}).expect("Invalid parser, this should never happen. Likely a bug in the MVFv2 library, or one of the extensions.");l();var Yh="\xA9 Mappedin",dM="https://info.mappedin.com/feedback",eg=["top-left","top-right","bottom-left","bottom-right"],mM=640,pM=o(()=>"<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill-rule='evenodd' viewBox='0 0 20 20'>\n <circle cx='10' cy='10' r='5.9' style='fill:rgba(255,255,255,1);'/>\n <path style='fill:rgba(0,0,0,0.7);' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/>\n </svg>","getAttributionButtonIcon"),Qh={custom:[],position:"bottom-right",feedback:!0},Du,tg=class tg{constructor(r,t={}){h(this,"controlContainerEl");h(this,"controlPositions");h(this,"compact");R(this,Du);h(this,"attribContainerEl");h(this,"attribInnerEl");h(this,"attribButtonEl");h(this,"feedbackLinkEl");h(this,"attribHTML",Yh);h(this,"customAttributions",[]);h(this,"toggleAttribution",o(r=>{this.attribContainerEl!=null&&(r.preventDefault(),this.attribContainerEl.classList.contains("mappedin-compact")&&(this.attribContainerEl.classList.contains("mappedin-compact-show")?(this.attribContainerEl.removeAttribute("open"),this.attribContainerEl.classList.remove("mappedin-compact-show")):(this.attribContainerEl.classList.add("mappedin-compact-show"),this.attribContainerEl.setAttribute("open",""))))},"toggleAttribution"));K(this,Du,!!t.outdoorEnabled),this.controlContainerEl=document.createElement("div"),this.controlContainerEl.classList.add("mappedin-control-container"),r.appendChild(this.controlContainerEl),this.controlPositions=eg.reduce((n,i)=>{let a=document.createElement("div");return a.classList.add("mappedin-ctrl-".concat(i)),this.controlContainerEl.appendChild(a),n[i]=a,n},{})}addAttributionControl(r=Qh){var i;let t=r.position&&eg.includes(r.position)?r.position:Qh.position;this.attribContainerEl=document.createElement("details"),this.attribContainerEl.classList.add("mappedin-ctrl-attrib","mappedin-ctrl-attrib-".concat(t)),this.attribContainerEl.open=!0,this.attribContainerEl.ariaLabel="Attribution",this.controlPositions[t].appendChild(this.attribContainerEl),this.attribButtonEl=document.createElement("summary"),this.attribButtonEl.addEventListener("click",this.toggleAttribution),this.attribButtonEl.classList.add("mappedin-ctrl-attrib-button"),this.attribButtonEl.title="Toggle attribution",this.attribButtonEl.ariaLabel="Toggle attribution",this.attribButtonEl.tabIndex=0,this.attribButtonEl.innerHTML=pM(),this.attribContainerEl.appendChild(this.attribButtonEl),this.attribInnerEl=document.createElement("div"),this.attribInnerEl.classList.add("mappedin-ctrl-attrib-inner"),this.attribHTML=c(this,Du)?Yh:"",this.attribInnerEl.innerHTML=this.attribHTML,this.attribContainerEl.appendChild(this.attribInnerEl),((i=r.feedback)!=null?i:Qh.feedback)&&(this.feedbackLinkEl=document.createElement("a"),this.feedbackLinkEl.href=dM,this.feedbackLinkEl.target="_blank",this.feedbackLinkEl.rel="noopener",this.feedbackLinkEl.textContent="Provide Feedback",this.feedbackLinkEl.classList.add("mappedin-ctrl-attrib-inner"),this.feedbackLinkEl.classList.add("mappedin-ctrl-attrib-inner-bold"),this.attribContainerEl.appendChild(this.feedbackLinkEl)),r.custom&&(this.customAttributions=r.custom),this.updateAttributionDisplay()}updateAttribution(r){if(!r.style||!this.attribInnerEl||!this.attribContainerEl)return;let t=c(this,Du)?[Yh]:[],n=r.style.sourceCaches;for(let i in n){let a=n[i];if(a.used||a.usedForTerrain){let u=a.getSource();u.attribution&&t.indexOf(u.attribution)<0&&t.push(u.attribution)}}t=t.filter(i=>String(i).trim()),t=t.filter((i,a)=>{for(let u=a+1;u<t.length;u++)if(t[u].indexOf(i)>=0)return!1;return!0}),this.attribHTML=t.join(" "),this.updateAttributionDisplay()}updateAttributionDisplay(){let r=[...new Set([this.attribHTML,...this.customAttributions])].filter(Boolean).join(" ");this.attribInnerEl&&(this.attribInnerEl.innerHTML=r)}resizeAttribution(r){this.attribContainerEl&&(r<=mM||this.compact?this.compact===!1?this.attribContainerEl.setAttribute("open",""):!this.attribContainerEl.classList.contains("mappedin-compact")&&!this.attribContainerEl.classList.contains("mappedin-attrib-empty")&&(this.attribContainerEl.setAttribute("open",""),this.attribContainerEl.classList.add("mappedin-compact","mappedin-compact-show")):(this.attribContainerEl.setAttribute("open",""),this.attribContainerEl.classList.contains("mappedin-compact")&&this.attribContainerEl.classList.remove("mappedin-compact","mappedin-compact-show")))}destroyAttributionControl(){this.attribButtonEl&&this.attribButtonEl.removeEventListener("click",this.toggleAttribution),this.attribContainerEl&&(this.attribContainerEl.remove(),this.attribContainerEl=void 0,this.attribInnerEl=void 0,this.attribButtonEl=void 0)}resize(r){this.resizeAttribution(r)}updateData(r){this.updateAttribution(r)}destroy(){this.destroyAttributionControl(),this.controlContainerEl.remove(),this.compact=void 0}};Du=new WeakMap,o(tg,"HTMLControlsSystem");var Jd=tg;l();l();var bn=Object.freeze({Linear:Object.freeze({None:o(function(e){return e},"None"),In:o(function(e){return e},"In"),Out:o(function(e){return e},"Out"),InOut:o(function(e){return e},"InOut")}),Quadratic:Object.freeze({In:o(function(e){return e*e},"In"),Out:o(function(e){return e*(2-e)},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},"InOut")}),Cubic:Object.freeze({In:o(function(e){return e*e*e},"In"),Out:o(function(e){return--e*e*e+1},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},"InOut")}),Quartic:Object.freeze({In:o(function(e){return e*e*e*e},"In"),Out:o(function(e){return 1- --e*e*e*e},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},"InOut")}),Quintic:Object.freeze({In:o(function(e){return e*e*e*e*e},"In"),Out:o(function(e){return--e*e*e*e*e+1},"Out"),InOut:o(function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},"InOut")}),Sinusoidal:Object.freeze({In:o(function(e){return 1-Math.sin((1-e)*Math.PI/2)},"In"),Out:o(function(e){return Math.sin(e*Math.PI/2)},"Out"),InOut:o(function(e){return .5*(1-Math.sin(Math.PI*(.5-e)))},"InOut")}),Exponential:Object.freeze({In:o(function(e){return e===0?0:Math.pow(1024,e-1)},"In"),Out:o(function(e){return e===1?1:1-Math.pow(2,-10*e)},"Out"),InOut:o(function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},"InOut")}),Circular:Object.freeze({In:o(function(e){return 1-Math.sqrt(1-e*e)},"In"),Out:o(function(e){return Math.sqrt(1- --e*e)},"Out"),InOut:o(function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},"InOut")}),Elastic:Object.freeze({In:o(function(e){return e===0?0:e===1?1:-Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI)},"In"),Out:o(function(e){return e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e-.1)*5*Math.PI)+1},"Out"),InOut:o(function(e){return e===0?0:e===1?1:(e*=2,e<1?-.5*Math.pow(2,10*(e-1))*Math.sin((e-1.1)*5*Math.PI):.5*Math.pow(2,-10*(e-1))*Math.sin((e-1.1)*5*Math.PI)+1)},"InOut")}),Back:Object.freeze({In:o(function(e){var r=1.70158;return e===1?1:e*e*((r+1)*e-r)},"In"),Out:o(function(e){var r=1.70158;return e===0?0:--e*e*((r+1)*e+r)+1},"Out"),InOut:o(function(e){var r=2.5949095;return(e*=2)<1?.5*(e*e*((r+1)*e-r)):.5*((e-=2)*e*((r+1)*e+r)+2)},"InOut")}),Bounce:Object.freeze({In:o(function(e){return 1-bn.Bounce.Out(1-e)},"In"),Out:o(function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375},"Out"),InOut:o(function(e){return e<.5?bn.Bounce.In(e*2)*.5:bn.Bounce.Out(e*2-1)*.5+.5},"InOut")}),generatePow:o(function(e){return e===void 0&&(e=4),e=e<Number.EPSILON?Number.EPSILON:e,e=e>1e4?1e4:e,{In:o(function(r){return Math.pow(r,e)},"In"),Out:o(function(r){return 1-Math.pow(1-r,e)},"Out"),InOut:o(function(r){return r<.5?Math.pow(r*2,e)/2:(1-Math.pow(2-r*2,e))/2+.5},"InOut")}},"generatePow")}),Gs=o(function(){return performance.now()},"now"),Yd=function(){function e(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];this._tweens={},this._tweensAddedDuringUpdate={},this.add.apply(this,r)}return o(e,"Group"),e.prototype.getAll=function(){var r=this;return Object.keys(this._tweens).map(function(t){return r._tweens[t]})},e.prototype.removeAll=function(){this._tweens={}},e.prototype.add=function(){for(var r,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=0,a=t;i<a.length;i++){var u=a[i];(r=u._group)===null||r===void 0||r.remove(u),u._group=this,this._tweens[u.getId()]=u,this._tweensAddedDuringUpdate[u.getId()]=u}},e.prototype.remove=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var n=0,i=r;n<i.length;n++){var a=i[n];a._group=void 0,delete this._tweens[a.getId()],delete this._tweensAddedDuringUpdate[a.getId()]}},e.prototype.allStopped=function(){return this.getAll().every(function(r){return!r.isPlaying()})},e.prototype.update=function(r,t){r===void 0&&(r=Gs()),t===void 0&&(t=!0);var n=Object.keys(this._tweens);if(n.length!==0)for(;n.length>0;){this._tweensAddedDuringUpdate={};for(var i=0;i<n.length;i++){var a=this._tweens[n[i]],u=!t;a&&a.update(r,u)===!1&&!t&&this.remove(a)}n=Object.keys(this._tweensAddedDuringUpdate)}},e}(),Su={Linear:o(function(e,r){var t=e.length-1,n=t*r,i=Math.floor(n),a=Su.Utils.Linear;return r<0?a(e[0],e[1],n):r>1?a(e[t],e[t-1],t-n):a(e[i],e[i+1>t?t:i+1],n-i)},"Linear"),Bezier:o(function(e,r){for(var t=0,n=e.length-1,i=Math.pow,a=Su.Utils.Bernstein,u=0;u<=n;u++)t+=i(1-r,n-u)*i(r,u)*e[u]*a(n,u);return t},"Bezier"),CatmullRom:o(function(e,r){var t=e.length-1,n=t*r,i=Math.floor(n),a=Su.Utils.CatmullRom;return e[0]===e[t]?(r<0&&(i=Math.floor(n=t*(1+r))),a(e[(i-1+t)%t],e[i],e[(i+1)%t],e[(i+2)%t],n-i)):r<0?e[0]-(a(e[0],e[0],e[1],e[1],-n)-e[0]):r>1?e[t]-(a(e[t],e[t],e[t-1],e[t-1],n-t)-e[t]):a(e[i?i-1:0],e[i],e[t<i+1?t:i+1],e[t<i+2?t:i+2],n-i)},"CatmullRom"),Utils:{Linear:o(function(e,r,t){return(r-e)*t+e},"Linear"),Bernstein:o(function(e,r){var t=Su.Utils.Factorial;return t(e)/t(r)/t(e-r)},"Bernstein"),Factorial:function(){var e=[1];return function(r){var t=1;if(e[r])return e[r];for(var n=r;n>1;n--)t*=n;return e[r]=t,t}}(),CatmullRom:o(function(e,r,t,n,i){var a=(t-e)*.5,u=(n-r)*.5,s=i*i,d=i*s;return(2*r-2*t+a+u)*d+(-3*r+3*t-2*a-u)*s+a*i+r},"CatmullRom")}},o6=function(){function e(){}return o(e,"Sequence"),e.nextId=function(){return e._nextId++},e._nextId=0,e}(),rg=new Yd,a6=function(){function e(r,t){this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._isDynamic=!1,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=bn.Linear.None,this._interpolationFunction=Su.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._id=o6.nextId(),this._isChainStopped=!1,this._propertiesAreSetUp=!1,this._goToEnd=!1,this._object=r,typeof t=="object"?(this._group=t,t.add(this)):t===!0&&(this._group=rg,rg.add(this))}return o(e,"Tween"),e.prototype.getId=function(){return this._id},e.prototype.isPlaying=function(){return this._isPlaying},e.prototype.isPaused=function(){return this._isPaused},e.prototype.getDuration=function(){return this._duration},e.prototype.to=function(r,t){if(t===void 0&&(t=1e3),this._isPlaying)throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");return this._valuesEnd=r,this._propertiesAreSetUp=!1,this._duration=t<0?0:t,this},e.prototype.duration=function(r){return r===void 0&&(r=1e3),this._duration=r<0?0:r,this},e.prototype.dynamic=function(r){return r===void 0&&(r=!1),this._isDynamic=r,this},e.prototype.start=function(r,t){if(r===void 0&&(r=Gs()),t===void 0&&(t=!1),this._isPlaying)return this;if(this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var n in this._valuesStartRepeat)this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n]}if(this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=r,this._startTime+=this._delayTime,!this._propertiesAreSetUp||t){if(this._propertiesAreSetUp=!0,!this._isDynamic){var i={};for(var a in this._valuesEnd)i[a]=this._valuesEnd[a];this._valuesEnd=i}this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat,t)}return this},e.prototype.startFromCurrentValues=function(r){return this.start(r,!0)},e.prototype._setupProperties=function(r,t,n,i,a){for(var u in n){var s=r[u],d=Array.isArray(s),m=d?"array":typeof s,p=!d&&Array.isArray(n[u]);if(!(m==="undefined"||m==="function")){if(p){var g=n[u];if(g.length===0)continue;for(var b=[s],v=0,C=g.length;v<C;v+=1){var A=this._handleRelativeValue(s,g[v]);if(isNaN(A)){p=!1,console.warn("Found invalid interpolation list. Skipping.");break}b.push(A)}p&&(n[u]=b)}if((m==="object"||d)&&s&&!p){t[u]=d?[]:{};var x=s;for(var E in x)t[u][E]=x[E];i[u]=d?[]:{};var g=n[u];if(!this._isDynamic){var S={};for(var E in g)S[E]=g[E];n[u]=g=S}this._setupProperties(x,t[u],g,i[u],a)}else(typeof t[u]>"u"||a)&&(t[u]=s),d||(t[u]*=1),p?i[u]=n[u].slice().reverse():i[u]=t[u]||0}}},e.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},e.prototype.end=function(){return this._goToEnd=!0,this.update(this._startTime+this._duration),this},e.prototype.pause=function(r){return r===void 0&&(r=Gs()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=r,this)},e.prototype.resume=function(r){return r===void 0&&(r=Gs()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=r-this._pauseStart,this._pauseStart=0,this)},e.prototype.stopChainedTweens=function(){for(var r=0,t=this._chainedTweens.length;r<t;r++)this._chainedTweens[r].stop();return this},e.prototype.group=function(r){return r?(r.add(this),this):(console.warn("tween.group() without args has been removed, use group.add(tween) instead."),this)},e.prototype.remove=function(){var r;return(r=this._group)===null||r===void 0||r.remove(this),this},e.prototype.delay=function(r){return r===void 0&&(r=0),this._delayTime=r,this},e.prototype.repeat=function(r){return r===void 0&&(r=0),this._initialRepeat=r,this._repeat=r,this},e.prototype.repeatDelay=function(r){return this._repeatDelayTime=r,this},e.prototype.yoyo=function(r){return r===void 0&&(r=!1),this._yoyo=r,this},e.prototype.easing=function(r){return r===void 0&&(r=bn.Linear.None),this._easingFunction=r,this},e.prototype.interpolation=function(r){return r===void 0&&(r=Su.Linear),this._interpolationFunction=r,this},e.prototype.chain=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return this._chainedTweens=r,this},e.prototype.onStart=function(r){return this._onStartCallback=r,this},e.prototype.onEveryStart=function(r){return this._onEveryStartCallback=r,this},e.prototype.onUpdate=function(r){return this._onUpdateCallback=r,this},e.prototype.onRepeat=function(r){return this._onRepeatCallback=r,this},e.prototype.onComplete=function(r){return this._onCompleteCallback=r,this},e.prototype.onStop=function(r){return this._onStopCallback=r,this},e.prototype.update=function(r,t){var n=this,i;if(r===void 0&&(r=Gs()),t===void 0&&(t=e.autoStartOnUpdate),this._isPaused)return!0;var a;if(!this._goToEnd&&!this._isPlaying)if(t)this.start(r,!0);else return!1;if(this._goToEnd=!1,r<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0);var u=r-this._startTime,s=this._duration+((i=this._repeatDelayTime)!==null&&i!==void 0?i:this._delayTime),d=this._duration+this._repeat*s,m=o(function(){if(n._duration===0||u>d)return 1;var A=Math.trunc(u/s),x=u-A*s,E=Math.min(x/n._duration,1);return E===0&&u===n._duration?1:E},"calculateElapsedPortion"),p=m(),g=this._easingFunction(p);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,g),this._onUpdateCallback&&this._onUpdateCallback(this._object,p),this._duration===0||u>=this._duration)if(this._repeat>0){var b=Math.min(Math.trunc((u-this._duration)/s)+1,this._repeat);isFinite(this._repeat)&&(this._repeat-=b);for(a in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[a]=="string"&&(this._valuesStartRepeat[a]=this._valuesStartRepeat[a]+parseFloat(this._valuesEnd[a])),this._yoyo&&this._swapEndStartRepeatValues(a),this._valuesStart[a]=this._valuesStartRepeat[a];return this._yoyo&&(this._reversed=!this._reversed),this._startTime+=s*b,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var v=0,C=this._chainedTweens.length;v<C;v++)this._chainedTweens[v].start(this._startTime+this._duration,!1);return this._isPlaying=!1,!1}return!0},e.prototype._updateProperties=function(r,t,n,i){for(var a in n)if(t[a]!==void 0){var u=t[a]||0,s=n[a],d=Array.isArray(r[a]),m=Array.isArray(s),p=!d&&m;p?r[a]=this._interpolationFunction(s,i):typeof s=="object"&&s?this._updateProperties(r[a],u,s,i):(s=this._handleRelativeValue(u,s),typeof s=="number"&&(r[a]=u+(s-u)*i))}},e.prototype._handleRelativeValue=function(r,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?r+parseFloat(t):parseFloat(t)},e.prototype._swapEndStartRepeatValues=function(r){var t=this._valuesStartRepeat[r],n=this._valuesEnd[r];typeof n=="string"?this._valuesStartRepeat[r]=this._valuesStartRepeat[r]+parseFloat(n):this._valuesStartRepeat[r]=this._valuesEnd[r],this._valuesEnd[r]=t},e.autoStartOnUpdate=!1,e}();var n0e=o6.nextId,si=rg,i0e=si.getAll.bind(si),o0e=si.removeAll.bind(si),a0e=si.add.bind(si),u0e=si.remove.bind(si),s0e=si.update.bind(si);l();l();l();function Qd(e,r,t){return e.type==="portion"?{top:e.top*t,left:e.left*r,bottom:e.bottom*t,right:e.right*r,type:"pixel"}:e}o(Qd,"getPaddingInPixels");l();l();l();var u6=o((e,r)=>(r-e+Math.PI)%(Math.PI*2)+Math.PI*2%(Math.PI*2)-Math.PI,"differenceBetweenAngles"),s6=o((e,r)=>new $e(e.clientX-r.offsetLeft,e.clientY-r.offsetTop),"getTouchPos"),ng=o((e,r)=>Math.atan2(r.y-e.y,r.x-e.x),"angle"),Zs=o((e,r)=>Math.sqrt((r.y-e.y)**2+(r.x-e.x)**2),"distance"),ig=o((e,r)=>new $e((e.x+r.x)/2,(e.y+r.y)/2),"average"),og=o(e=>{let r=0,{wheelDelta:t,detail:n}=e;return t!==void 0?r=t:n!==void 0&&(r=-n),r},"getScrollDelta");var ag=class ag{constructor(r,t){h(this,"input1");h(this,"input2");h(this,"lastAngle");h(this,"lastDistance");h(this,"totalDistance");h(this,"first");h(this,"second");this.input1=r,this.input2=t,this.lastAngle=ng(r,t),this.lastDistance=Zs(r,t),this.totalDistance=0,this.first=r,this.second=t}update(r,t){let n=Zs(r,t);this.input1=r,this.input2=t;let i=ng(r,t);this.lastAngle=i,this.lastDistance=n,this.totalDistance+=(Zs(this.first,r)+Zs(this.second,t))/2,this.first=ig(this.first,r),this.second=ig(this.second,t)}};o(ag,"InputSet");var em=ag;l();var ug=class ug{constructor(r,t,n){h(this,"touch");h(this,"camera");h(this,"cameraPlane");h(this,"viewCoordinate");h(this,"snapHolderMatrix");h(this,"snapCamera");h(this,"cameraPosition");h(this,"raycaster");h(this,"worldCoordinate");h(this,"snapshotted",!1);this.touch=r,this.camera=t,this.cameraPlane=n,this.viewCoordinate={x:r.x,y:r.y},this.camera.updateMatrixWorld(),this.camera.updateMatrix(),this.snapHolderMatrix=this.camera.matrixWorld.clone(),this.snapCamera=this.camera.clone(),this.snapshotCameraState()}snapshotCameraState(){this.camera.updateMatrix(),this.camera.updateMatrixWorld(),this.cameraPosition=this.camera.position.clone();let r=new $e(this.viewCoordinate.x,this.viewCoordinate.y);this.raycaster=this.raycaster||new Ji,this.raycaster.setFromCamera(r,this.snapCamera);let t=this.raycaster.intersectObject(this.cameraPlane,!0);this.worldCoordinate=t&&t.length>0?t[0].point:null,this.snapshotted=!0}updateAnchorState(r,t){this.camera=r,this.snapCamera=r.clone(),this.snapHolderMatrix=r.matrixWorld.clone(),this.updateViewCoordinate(t),this.snapshotCameraState()}updateViewCoordinate(r){this.viewCoordinate={x:r.x,y:r.y}}reUnproject(){var n,i;let r=new $e(this.viewCoordinate.x,this.viewCoordinate.y);(n=this.raycaster)==null||n.setFromCamera(r,this.snapCamera);let t=(i=this.raycaster)==null?void 0:i.intersectObject(this.cameraPlane,!0)[0];return t?t.point:void 0}};o(ug,"TouchAnchor");var Vs=ug;var vn={};Ki(vn,{BLOCK_MERCATOR_ZOOM_LEVEL:()=>hM,CLIPPING_RADIUS:()=>Ws,CONTROL_OPTIONS:()=>fM,DEFAULT_ANIMATION_DURATION:()=>mg,DEFAULT_BEARING:()=>xM,DEFAULT_MAX_ZOOM_LEVEL:()=>bM,DEFAULT_MIN_ZOOM_LEVEL:()=>fg,DEFAULT_PITCH:()=>vM,DEFAULT_ZOOM_LEVEL:()=>yM,EVENTS:()=>pg,MAPLIBRE_TILE_SIZE:()=>tm,MAX_LAT:()=>cg,MAX_MERCATOR_ZOOM_LEVEL:()=>nm,MIN_LAT:()=>sg,MIN_MERCATOR_ZOOM_LEVEL:()=>rm,ROOM_MERCATOR_ZOOM_LEVEL:()=>gM,TWO_PI:()=>lg,WHEEL_ZOOM_MULTIPLIER:()=>dg,ZRANGE:()=>wu});l();var tm=512,sg=-85.051129,cg=85.051129,Ws=1e4,fM={chain:"chain",cancel:"cancel"},lg=Math.PI*2,wu=100,dg=1e4,rm=0,nm=24,hM=17,gM=20,mg=200,pg=["change","pan-start","pan-end","rotate-start","rotate-end","zoom-start","zoom-end","multi-start","multi-end","multi-cancel","pedestal-start","pedestal-change","pedestal-end","user-pan-start","user-pedestal-start","user-rotate-start","user-dolly-start","user-zoom-start","user-tilt-start","user-pan-end","user-pedestal-end","user-rotate-end","user-dolly-end","user-zoom-end","user-tilt-end","position-updated","zoom-updated","tilt-updated","rotation-updated"],yM=18,fg=12,bM=22,vM=0,xM=0;var im=!1,EM=!1;var om,am=class am extends Ae{constructor(t,n,i,a,u){super();h(this,"dirty",!1);h(this,"zoomDirty",!1);h(this,"rotationDirty",!1);h(this,"panDirty",!1);h(this,"stateDirty",!1);R(this,om,fg);h(this,"zoomSpeed",5);h(this,"rotateSpeed",100);h(this,"enabled",!0);h(this,"enableZoom",!0);h(this,"enablePan",!0);h(this,"enablePedestal",!1);h(this,"maxPedestal",1/0);h(this,"minPedestal",0);h(this,"enableRotate",!0);h(this,"minZoomAltitude",0);h(this,"maxZoomAltitude",1/0);h(this,"ignoreZoomLimits",!1);h(this,"zoomFactor",1);h(this,"panBounds",{min:new te(1/0,1/0),max:new te(-1/0,-1/0),center:new te(0,0,0),radius:1/0});h(this,"minTilt",0);h(this,"maxTilt",1.2);h(this,"MOUSE_BUTTONS",{ORBIT:kc.RIGHT,ZOOM:kc.MIDDLE,PAN:kc.LEFT});h(this,"camera");h(this,"scene");h(this,"renderer");h(this,"elevation");h(this,"orbit");h(this,"cameraPlane");h(this,"raycaster",new Ji);h(this,"rendererState");h(this,"options");h(this,"state",-1);h(this,"intersection");h(this,"viewState",null);h(this,"tweens",new Map);h(this,"clock",new c4(!0));h(this,"coords",{mouse:new $e,rotateStart:new $e,rotateEnd:new $e,rotateDelta:new $e,panStart:new te,panCameraStart:new te,panEnd:new te,panDelta:new te,initialShiftPos:new $e,initialPedestal:0,floorAnchor:new te});h(this,"touch",{origin:{offsetLeft:0,offsetTop:0},touches:[],anchor1:null,anchor2:null,inputs:null});h(this,"scrollTimer",null);h(this,"lastWheelTime",0);h(this,"resetZoom",!1);h(this,"zoomStart");h(this,"pedestalScaleFactor",1);h(this,"isUserZooming",!1);h(this,"stayInsideBounds",!0);h(this,"userInteracting",!1);h(this,"cameraMoving",!1);h(this,"lastCameraMoveTime",Date.now());h(this,"raycastToFloor",o(t=>{this.raycaster.setFromCamera(t,this.camera);let n=this.raycaster.intersectObject(this.cameraPlane,!1)[0];return n?n.point:new te},"raycastToFloor"));h(this,"isUserInteracting",o(()=>this.userInteracting,"isUserInteracting"));h(this,"getPosition",o(()=>new te(this.orbit.position.x,this.orbit.position.y,this.orbit.position.z),"getPosition"));h(this,"getPedestal",o(()=>this.orbit.position.z,"getPedestal"));h(this,"pan",o((t,n)=>{isNaN(t)||isNaN(n)||(this.setPosition(this.orbit.position.x+t,this.orbit.position.y+n),this.publish("position-updated"))},"pan"));h(this,"postRender",o(()=>{(this.state===2||this.state===6)&&(this.raycaster.setFromCamera(this.coords.mouse,this.camera),this.intersection=this.raycaster.intersectObject(this.cameraPlane,!1)[0],this.intersection&&(this.coords.panStart.set(this.intersection.point.x,this.intersection.point.y,0),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0))),this.state===3&&this.resetZoom&&(this.resetZoom=!1,this.zoomStart=this.getZoomAltitude(),this.coords.floorAnchor=this.raycastToFloor(this.coords.mouse),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0)),this.state===7&&this.isAnimating===!1&&(this.state=-1,this.publish("multi-end"))},"postRender"));h(this,"isCameraMoving",o(()=>this.cameraMoving,"isCameraMoving"));h(this,"lastCameraStoppedMovingTime",o(()=>this.lastCameraMoveTime,"lastCameraStoppedMovingTime"));h(this,"setPosition",o((t,n)=>{t===void 0||n===void 0||isNaN(t)||isNaN(n)||(this.state===-1&&this.publish("pan-start"),this.updateCameraPosition(t,n),this.publish("position-updated"),this.publish("change"),this.state===-1&&this.publish("pan-end"),this.dirty=!0,this.stateDirty=!0)},"setPosition"));h(this,"updateCameraPosition",o((t,n)=>{let i=t-this.panBounds.center.x,a=n-this.panBounds.center.y,u=Math.sqrt(i*i+a*a);if(this.stayInsideBounds&&u>this.panBounds.radius){let s=Math.atan2(a,i),d={x:Math.cos(s)*this.panBounds.radius+this.panBounds.center.x,y:Math.sin(s)*this.panBounds.radius+this.panBounds.center.y};this.orbit.position.x=d.x,this.orbit.position.y=d.y}else this.orbit.position.x=t,this.orbit.position.y=n},"updateCameraPosition"));h(this,"tilt",o(t=>{if(isNaN(t))return;this.state===-1&&this.publish("rotate-start");let n=this.stayInsideBounds?Math.max(Math.min(t+this.getTilt(),this.maxTilt),this.minTilt):t+this.getTilt();n!==this.elevation.rotation.x&&(this.elevation.rotation.x=n,this.publish("tilt-updated")),this.publish("change"),this.state===-1&&this.publish("rotate-end"),this.stateDirty=!0},"tilt"));h(this,"zoomIn",o((t,n,i)=>{let a=this.getZoomAltitude();this.animateCamera({zoom:a/1.5},t,n,i)},"zoomIn"));h(this,"zoomOut",o((t,n,i)=>{let a=this.getZoomAltitude();this.animateCamera({zoom:a*1.5},t,n,i)},"zoomOut"));h(this,"getRotation",o(()=>(-this.orbit.rotation.z+Math.PI*2)%(Math.PI*2),"getRotation"));h(this,"cancelAnimation",o(()=>{let t=Array.from(this.tweens.keys());if(t.length<1)return;let n=t[t.length-1];n.state===7&&this.publish("multi-cancel",{zooming:!0,rotating:!0,tilting:!0}),this.completeTween(n)},"cancelAnimation"));h(this,"animateCamera",o((t,n,i,a,u,s)=>{let d=N({interruptible:!0},s),m={},p={},g=this.getPosition();if(t.position!=null&&(t.position.x!==void 0&&(m.x=g.x,p.x=t.position.x),t.position.y!==void 0&&(m.y=g.y,p.y=t.position.y),t.position.z!==void 0&&(m.z=g.z,p.z=t.position.z)),t.zoom!==void 0&&(m.zoom=this.stayInsideBounds?Math.min(Math.max(this.getZoomAltitude(),this.getZoomScaledMin()),this.getZoomScaledMax()):this.getZoomAltitude(),this.viewState==="multi_floor"||!this.stayInsideBounds?p.zoom=t.zoom:p.zoom=Math.min(Math.max(t.zoom,this.getZoomScaledMin()),this.getZoomScaledMax())),t.rotation!==void 0){let{start:D,end:I}=g4(this.getRotation(),t.rotation);m.rotation=D,p.rotation=I}t.tilt!==void 0&&(m.tilt=this.getTilt(),this.viewState==="multi_floor"||!this.stayInsideBounds?p.tilt=t.tilt:p.tilt=Math.max(Math.min(t.tilt,this.maxTilt),this.minTilt));let b=m.zoom!==p.zoom,v=m.rotation!==p.rotation,C=m.tilt!==p.tilt,A=new a6(m).to(p,y.env.TESTING?0:n).onUpdate(D=>{this.setMulti({x:D.x,y:D.y,z:D.z},D.zoom,D.rotation,D.tilt)}).onComplete(()=>{this.completeTween(A),this.publish("multi-end",{zooming:b,rotating:v,tilting:C}),a&&a()}).onStart(()=>{this.state!==7&&(this.state=7,A.state=7,this.publish("multi-start",{zooming:b,rotating:v,tilting:C})),this.publish("change")});this.rendererState.internalTweenGroup.add(A);let x=Array.from(this.tweens.entries()),E=x[x.length-1],S=!1;return E!=null&&(E[1].interruptible?(typeof E[1].cancelledCallback=="function"&&E[1].cancelledCallback(),this.completeTween(E[0])):(S=!0,E[0].chain(A))),this.tweens.set(A,{cancelledCallback:u,interruptible:d.interruptible}),i?A.easing(i):A.easing(bn.Quadratic.In),!t.doNotAutoStart&&!S&&(A.start(),this.publish("change")),A.cameraAnimation=!0,A},"animateCamera"));h(this,"setMulti",o((t,n,i,a,u=!0)=>{this.state===-1&&this.publish("multi-start");let s=!1;t!=null&&(t.x!==void 0&&!isNaN(t.x)&&t.y!==void 0&&!isNaN(t.y)&&(this.updateCameraPosition(t.x,t.y),s=!0),t.z!==void 0&&!isNaN(t.z)&&(this.setPedestal(t.z,!0,!1),s=!0)),s&&this.publish("position-updated");let d={zooming:!1,tilting:!!n,rotating:!1};if(n!==void 0&&!isNaN(n)){let m=this.stayInsideBounds?Math.min(Math.max(n,this.getZoomScaledMin()),this.getZoomScaledMax()):n;m!==this.camera.position.z&&(d.zooming=!0,this.camera.position.z=m,this.publish("zoom-updated"),this.zoomDirty=!0,this.viewState==="multi_floor"?n>Ws&&(this.camera.near=n-Ws,this.camera.far=n+Ws):(this.camera.near=n/wu,this.camera.far=n*wu),this.camera.updateProjectionMatrix())}if(i!==void 0&&!isNaN(i)&&i!==this.getRotation()&&(d.rotating=!0,this.orbit.rotation.z=-i,this.publish("rotation-updated")),a!==void 0&&!isNaN(a)){let m=this.stayInsideBounds?Math.max(Math.min(a,this.maxTilt),this.minTilt):a;m!==this.elevation.rotation.x&&(d.tilting=!0,this.elevation.rotation.x=m,this.publish("tilt-updated"))}u&&this.publish("change"),this.state===-1&&this.publish("multi-end",d),this.stateDirty=!0},"setMulti"));h(this,"getZoomScaledMin",o(()=>this.minZoomAltitude*this.zoomFactor,"getZoomScaledMin"));h(this,"getZoomScaledMax",o(()=>{let t=this.minZoomAltitude*this.zoomFactor;return Math.max(this.maxZoomAltitude,t)},"getZoomScaledMax"));h(this,"setRotation",o((t,n)=>{if(isNaN(t))return;this.state===-1&&!n&&this.publish("rotate-start");let i=-(t%lg);i!==this.orbit.rotation.z&&(this.orbit.rotation.z=i,n||this.publish("rotation-updated")),n||this.publish("change"),this.state===-1&&!n&&this.publish("rotate-end"),this.dirty=!0,this.rotationDirty=!0,n||(this.stateDirty=!0)},"setRotation"));h(this,"setZoomAltitude",o(t=>{if(isNaN(t))return;this.state===-1&&this.publish("zoom-start");let n=this.stayInsideBounds?Math.min(Math.max(t,this.getZoomScaledMin()),this.getZoomScaledMax()):t;n!==this.camera.position.z&&(this.camera.position.z=n,this.publish("zoom-updated"),this.zoomDirty=!0),this.camera.near=n/wu,this.camera.far=n*wu,this.camera.updateProjectionMatrix(),this.publish("change"),this.state===-1&&this.publish("zoom-end"),this.dirty=!0,this.stateDirty=!0},"setZoomAltitude"));h(this,"setZoomLevel",o(t=>{this.setZoomAltitude(this.convertZoomLevelToAltitude(t))},"setZoomLevel"));h(this,"getZoomAltitude",o(()=>this.camera.position.z,"getZoomAltitude"));h(this,"getZoomLevel",o(()=>this.convertAltitudeToZoomLevel(this.getZoomAltitude()),"getZoomLevel"));h(this,"setTilt",o((t,n)=>{if(isNaN(t))return;this.state===-1&&!n&&this.publish("rotate-start");let i=this.stayInsideBounds?Math.max(Math.min(t,this.maxTilt),this.minTilt):t;i!==this.elevation.rotation.x&&(this.elevation.rotation.x=i,n||this.publish("tilt-updated")),n||this.publish("change"),this.state===-1&&!n&&this.publish("rotate-end"),this.dirty=!0,n||(this.stateDirty=!0)},"setTilt"));h(this,"getTilt",o(()=>this.elevation.rotation.x,"getTilt"));h(this,"setCameraPlaneElevation",o(t=>{this.cameraPlane.position.z=t},"setCameraPlaneElevation"));h(this,"zoom",o(t=>{if(isNaN(t))return;this.state===-1&&this.publish("zoom-start");let n=this.getZoomAltitude()-t;this.camera.position.z=this.stayInsideBounds?Math.min(Math.max(n,this.minZoomAltitude*this.zoomFactor),this.maxZoomAltitude*this.zoomFactor):n,this.publish("zoom-updated"),this.zoomDirty=!0,this.publish("change"),this.state===-1&&this.publish("zoom-end"),this.stateDirty=!0},"zoom"));h(this,"getProjectionScaleFactor",o((t,n,i)=>$p(t,n,i),"getProjectionScaleFactor"));h(this,"update",o(()=>{this.orbit.updateMatrixWorld(),this.lastWheelTime>0&&this.state===3&&this.clock.getElapsedTime()-this.lastWheelTime>.2&&(this.lastWheelTime=0,this.state=-1,this.publish("zoom-end"),this.removeMouseMoveEventListeners())},"update"));h(this,"setPedestal",o((t,n=!1,i=!0)=>{typeof t=="number"&&!isNaN(t)&&(this.orbit.position.z=t,n&&(this.publishPedestalChangeEvent(t),this.publish("pedestal-change",{pedestal:t})),this.publish("change"),this.dirty=!0,i&&(this.stateDirty=!0))},"setPedestal"));h(this,"dispose",o(()=>{this.scene.remove(this.cameraPlane),this.destroy()},"dispose"));h(this,"createCameraPlane",o(()=>{let t=im?2e3:1e10,n=im?100:1,i=new In(t,t,n,n),a=new _r({color:0,wireframe:im,visible:im}),u=new _e(i,a);return this.scene.add(u),u},"createCameraPlane"));h(this,"addEventListeners",o(()=>{let{domElement:t}=this.renderer;for(let n of pg)n.endsWith("start")?(this.on(n,this.setCameraMoving),n.startsWith("user")&&this.on(n,this.setUserInteracting)):(n.endsWith("end")||n.endsWith("cancel"))&&(this.on(n,this.unsetCameraMoving),n.startsWith("user")&&this.on(n,this.unsetUserInteracting));t.addEventListener("contextmenu",this.onContextMenu,{capture:!1,signal:this.signal}),t.addEventListener("mousedown",this.onMouseDown,{capture:!1,signal:this.signal}),t.addEventListener("wheel",this.onMouseWheel,{capture:!1,passive:!1,signal:this.signal}),t.addEventListener("touchstart",this.onTouchStart,{capture:!1,signal:this.signal}),t.addEventListener("touchend",this.onTouchEnd,{capture:!1,signal:this.signal}),t.addEventListener("touchmove",this.onTouchMove,{capture:!1,signal:this.signal})},"addEventListeners"));h(this,"addMouseEventListeners",o(()=>{this.addMouseMoveEventListeners(),window.addEventListener("mouseup",this.onMouseUp,{capture:!1,signal:this.signal}),window.addEventListener("mouseout",this.onMouseUp,{capture:!1,signal:this.signal})},"addMouseEventListeners"));h(this,"addMouseMoveEventListeners",o(()=>{this.renderer.domElement.addEventListener("mousemove",this.onMouseMove,{capture:!1,signal:this.signal})},"addMouseMoveEventListeners"));h(this,"removeMouseMoveEventListeners",o(()=>{this.renderer.domElement.removeEventListener("mousemove",this.onMouseMove,{capture:!1})},"removeMouseMoveEventListeners"));h(this,"removeMouseUpEventListeners",o(()=>{this.renderer.domElement.removeEventListener("mousemove",this.onMouseMove,{capture:!1}),window.removeEventListener("mouseup",this.onMouseUp,{capture:!1}),window.removeEventListener("mouseout",this.onMouseUp,{capture:!1})},"removeMouseUpEventListeners"));h(this,"onContextMenu",o(t=>{t.preventDefault()},"onContextMenu"));h(this,"onMouseUp",o(()=>{if(this.enabled!==!1){switch(this.removeMouseUpEventListeners(),this.state){case 2:this.publish("pan-end"),this.publish("user-pan-end");break;case 1:this.publish("zoom-end"),this.publish("user-dolly-end");break;case 0:this.publish("rotate-end"),this.publish("user-rotate-end");break;case 8:this.publish("pedestal-end"),this.publish("user-pedestal-end");break}this.state=-1,this.panDirty=!1}},"onMouseUp"));h(this,"onMouseMove",o(t=>{if(this.enabled!==!1)if(t.preventDefault(),this.mouseToScene(t),this.state===0){if(this.enableRotate===!1)return;this.handleMouseMoveRotate(t)}else if(this.state===2){if(this.enablePan===!1)return;this.handleMouseMovePan()}else this.state===3?(this.resetZoom=!0,this.state=-1):this.state===8&&this.handleMouseMovePedestal(t)},"onMouseMove"));h(this,"onTouchStart",o(t=>{if(this.enabled!==!1){switch(this.updateTouchOrigin(),this.touchToScene(t),t.touches.length){case 1:this.enablePedestal?(this.handleTouchStartPedestal(t),this.state=9):this.enablePan&&(this.handleTouchStartPan(t),this.state=6);break;case 2:this.touch.inputs=new em(this.touch.touches[0],this.touch.touches[1]);break;default:this.state=-1}this.state}},"onTouchStart"));h(this,"onTouchMove",o(t=>{if(this.enabled!==!1)switch(this.touchToScene(t),t.touches.length){case 2:t.preventDefault(),t.stopPropagation();let n=N({},this.touch.inputs.first),i=N({},this.touch.inputs.second),a=new $e(this.touch.touches[0].x,this.touch.touches[0].y),u=new $e(this.touch.touches[1].x,this.touch.touches[1].y);if(this.touch.inputs.update(this.touch.touches[0],this.touch.touches[1]),this.enableRotate&&this.state===4)this.handleTouchMoveTilt(t);else if(this.state===5)this.handleTouchMoveDolly();else if(this.state!==5&&this.touch.inputs.totalDistance>.05){let s=n.y<a.y&&i.y<u.y,d=n.y>a.y&&i.y>u.y;this.enableRotate&&this.state!==4&&(d||s)?(this.handleTouchStartTilt(t),this.state=4):(this.handleTouchStartDolly(),this.state=5)}break;case 1:(this.enablePedestal||this.enablePan)&&(t.preventDefault(),t.stopPropagation()),this.enablePedestal&&this.state===9?this.handleTouchMovePedestal(t):this.enablePan&&this.state===6&&this.handleTouchMovePan(t);break;default:this.state=-1}},"onTouchMove"));h(this,"onTouchEnd",o(t=>{if(this.enabled!==!1){switch(this.handleTouchEnd(),this.state){case 2:case 6:this.publish("user-pan-end");break;case 4:this.publish("pan-end"),this.publish("user-tilt-end");break;case 1:case 5:this.publish("zoom-end"),this.publish("user-dolly-end");break;case 0:this.publish("rotate-end"),this.publish("user-rotate-end");break;case 8:case 9:this.publish("pedestal-end"),this.publish("user-pedestal-end");break}t.touches.length?this.onTouchStart(t):this.state=-1}},"onTouchEnd"));h(this,"handleTouchMovePan",o(t=>{let n=Object.hasOwn(t,"x")?new $e(t.x,t.y):this.touch.touches[0],i=this.raycastToFloor(n);this.coords.panEnd.set(i.x,i.y,0),this.coords.panDelta.subVectors(this.coords.panEnd,this.coords.panStart),this.setPosition(this.coords.panCameraStart.x-this.coords.panDelta.x,this.coords.panCameraStart.y-this.coords.panDelta.y),this.publish("change"),this.panDirty=!0},"handleTouchMovePan"));h(this,"handleTouchStartDolly",o(()=>{let t=this.touch.touches[0].x-this.touch.touches[1].x,n=this.touch.touches[0].y-this.touch.touches[1].y;this.zoomStart=this.getZoomAltitude();let i=new $e(this.touch.touches[0].x-t/2,this.touch.touches[0].y-n/2);this.coords.floorAnchor=this.raycastToFloor(i),this.orbit.updateMatrixWorld(),this.touch.anchor1=new Vs(this.touch.touches[0],this.camera,this.cameraPlane),this.touch.anchor2=new Vs(this.touch.touches[1],this.camera,this.cameraPlane),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("user-dolly-start"),this.publish("zoom-start"),this.publish("multi-start")},"handleTouchStartDolly"));h(this,"handleMouseMovePan",o(()=>{let t=this.raycastToFloor(this.coords.mouse);this.coords.panEnd.set(t.x,t.y,0),this.coords.panDelta.subVectors(this.coords.panEnd,this.coords.panStart),this.setPosition(this.coords.panCameraStart.x-this.coords.panDelta.x,this.coords.panCameraStart.y-this.coords.panDelta.y),this.publish("change"),this.panDirty=!0},"handleMouseMovePan"));h(this,"handleTouchStartTilt",o(t=>{this.coords.rotateStart.set(t.touches[1].clientX,t.touches[1].clientY),this.publish("user-tilt-start"),this.publish("rotate-start")},"handleTouchStartTilt"));h(this,"handleTouchMovePedestal",o(t=>{this.handleMouseMovePedestal(t.touches[0])},"handleTouchMovePedestal"));h(this,"handleTouchMoveTilt",o(t=>{this.coords.rotateEnd.set(t.touches[1].clientX,t.touches[1].clientY),this.coords.rotateDelta.subVectors(this.coords.rotateEnd,this.coords.rotateStart),this.setTilt(this.getTilt()-this.coords.rotateDelta.y/this.rotateSpeed),this.coords.rotateStart.copy(this.coords.rotateEnd)},"handleTouchMoveTilt"));h(this,"handleTouchMoveDolly",o(()=>{let t=this.touch.inputs.first,n=this.touch.inputs.second;this.touch.anchor1.viewCoordinate={x:t.x,y:t.y},this.touch.anchor2.viewCoordinate={x:n.x,y:n.y};let i=this.makeTransformFromTouchAnchors(this.touch.anchor1,this.touch.anchor2);i&&this.setCameraFromTransformMatrix(i),this.orbit.updateMatrixWorld(),this.touch.anchor1.updateAnchorState(this.camera,t),this.touch.anchor2.updateAnchorState(this.camera,n)},"handleTouchMoveDolly"));h(this,"handleTouchEnd",o(()=>{this.state===4||this.state===5?this.publish("multi-end"):this.state===6&&this.publish("pan-end"),this.panDirty=!1},"handleTouchEnd"));h(this,"handleTouchStartPan",o(t=>{let n=Object.hasOwn(t,"x")?new $e(t.x,t.y):this.touch.touches[0],i=this.raycastToFloor(n);this.coords.panStart.set(i.x,i.y,0),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("user-pan-start"),this.publish("pan-start")},"handleTouchStartPan"));h(this,"handleTouchStartPedestal",o(t=>{this.handleMouseDownPedestal(t.touches[0])},"handleTouchStartPedestal"));h(this,"onMouseDown",o(t=>{if(this.enabled!==!1){if(this.mouseToScene(t),t.preventDefault(),this.state===3&&this.publish("zoom-end"),t.button===this.MOUSE_BUTTONS.ORBIT){if(this.enableRotate===!1)return;this.handleMouseDownRotate(t),this.state=0}else t.button===this.MOUSE_BUTTONS.PAN&&(this.enablePan?(this.handleMouseDownPan(),this.state=2):this.enablePedestal&&(this.handleMouseDownPedestal(t),this.state=8));this.state!==-1&&this.addMouseEventListeners()}},"onMouseDown"));h(this,"onMouseWheel",o(t=>{this.enabled===!1||this.enableZoom===!1||this.state!==-1&&this.state!==3||(t.preventDefault(),t.stopPropagation(),this.mouseToScene(t),this.canScrollZoom(t)&&(this.lastWheelTime=this.clock.getElapsedTime(),this.publishUserZoomEvent()),this.state!==3&&this.canScrollZoom(t)&&(this.addMouseMoveEventListeners(),this.state=3,this.zoomStart=this.getZoomAltitude(),this.coords.floorAnchor=this.raycastToFloor(this.coords.mouse),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("zoom-start")),this.scrollTimer!=null&&clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{this.publish("zoom-end")},50),this.handleMouseWheel(t))},"onMouseWheel"));h(this,"handleMouseWheel",o(t=>{if(this.publish("zoom-start"),!this.canScrollZoom(t)){this.lastWheelTime>0&&this.publish("zoom-end"),this.lastWheelTime=0,this.state=-1;return}let n=this.getZoomAltitude(),i=n-og(t)*n/dg*this.zoomSpeed;if(this.setZoomAltitude(i),this.enablePan){let a=i/this.zoomStart;this.coords.panDelta.subVectors(this.coords.floorAnchor,this.coords.panCameraStart).multiplyScalar(1-a),this.setPosition(this.coords.panCameraStart.x+this.coords.panDelta.x,this.coords.panCameraStart.y+this.coords.panDelta.y)}this.publish("change")},"handleMouseWheel"));h(this,"setCameraFromTransformMatrix",o(t=>{this.orbit.updateMatrixWorld();let n=new va;n.setFromRotationMatrix(t,"ZYX");let i=(t.elements[14]-this.cameraPlane.position.z)/Math.cos(n.x),a=n.z,u=new te(0,0,1);u.applyEuler(n),u.setLength(i);let s=new te;s.setFromMatrixPosition(t),s.sub(u),this.enablePan&&this.setPosition(s.x,s.y),this.enableZoom&&this.setZoomAltitude(i),this.enableRotate&&this.setRotation(-a)},"setCameraFromTransformMatrix"));h(this,"makeTransformFromTouchAnchors",o((t,n)=>{this.orbit.updateMatrixWorld(),this.camera.updateProjectionMatrix();let i=this.camera.projectionMatrix.clone(),a=t.worldCoordinate,u=n.worldCoordinate,s=t.reUnproject(),d=n.reUnproject();if(!s||!d||!a||!u)return null;let m=t.viewCoordinate,p=n.viewCoordinate,g=u.x-a.x,b=u.y-a.y,v=Math.atan2(b,g),C=d.x-s.x,A=d.y-s.y,x=Math.atan2(A,C),E=u6(v,x),S=new wr;S.makeRotationZ(-E);let D=S.clone();D.multiply(t.snapHolderMatrix);let I=o((mC,pC,fC)=>mC.elements[(pC-1)*4+fC-1],"m"),T=I(i,1,1)*I(D,1,1)-m.x*I(i,3,4)*I(D,3,1),V=I(i,1,1)*I(D,1,2)-m.x*I(i,3,4)*I(D,3,2),$=I(i,1,1)*I(D,1,3)-m.x*I(i,3,4)*I(D,3,3),O=a.x*T+a.y*V+a.z*$,M=I(i,2,2)*I(D,2,1)-m.y*I(i,3,4)*I(D,3,1),Z=I(i,2,2)*I(D,2,2)-m.y*I(i,3,4)*I(D,3,2),z=I(i,2,2)*I(D,2,3)-m.y*I(i,3,4)*I(D,3,3),re=a.x*M+a.y*Z+a.z*z,k=I(i,1,1)*I(D,1,1)-p.x*I(i,3,4)*I(D,3,1),H=I(i,1,1)*I(D,1,2)-p.x*I(i,3,4)*I(D,3,2),q=I(i,1,1)*I(D,1,3)-p.x*I(i,3,4)*I(D,3,3),G=u.x*k+u.y*H+u.z*q,ae=I(i,2,2)*I(D,2,1)-p.y*I(i,3,4)*I(D,3,1),oe=I(i,2,2)*I(D,2,2)-p.y*I(i,3,4)*I(D,3,2),Y=I(i,2,2)*I(D,2,3)-p.y*I(i,3,4)*I(D,3,3),le=u.x*ae+u.y*oe+u.z*Y,fe=Math.abs(k-T),xe=Math.abs(H-V),be=Math.abs(q-$),Fe=Math.abs(k-M),De=Math.abs(H-Z),ht=Math.abs(q-z),vt=Math.abs(ae-T),Sr=Math.abs(oe-V),P=Math.abs(Y-$),J=Math.abs(ae-M),F=Math.abs(oe-Z),ce=Math.abs(Y-z),Q=Math.min(fe+xe+be,Fe+De+ht),ne=Math.min(vt+Sr+P,J+F+ce);Q<ne&&(k=ae,H=oe,q=Y,G=le);let pe=M*$-T*z,Je=Z*$-V*z,Ft=re*$-O*z,Lt=k*z-M*q,tr=H*z-Z*q,Un=G*z-re*q,fa=(Un*Je-Ft*tr)/(Lt*Je-pe*tr),ha=(Un*pe-Ft*Lt)/(tr*pe-Je*Lt),Ku=Z*T-V*M,Oe=z*T-$*M,Ee=re*T-O*M,Et=H*M-Z*k,ga=q*M-z*k,Oc=((G*M-re*k)*Ku-Ee*Et)/(ga*Ku-Oe*Et),Hi=D.clone();return Hi.elements[12]=fa,Hi.elements[13]=ha,Hi.elements[14]=Oc,Oc>0?Hi:null},"makeTransformFromTouchAnchors"));h(this,"updateTouchOrigin",o(()=>{let t=this.renderer.domElement;this.touch.origin.offsetLeft=t.getBoundingClientRect().left,this.touch.origin.offsetTop=t.getBoundingClientRect().top},"updateTouchOrigin"));h(this,"touchToScene",o(t=>{this.touch.touches=[];for(let n=0,i=t.touches.length;n<i;n++){let a=t.touches[n],u=s6(a,this.touch.origin);this.touch.touches.push(new $e(u.x/this.renderer.domElement.width*this.rendererState.pixelRatio*2-1,-(u.y/this.renderer.domElement.height*this.rendererState.pixelRatio)*2+1))}this.coords.mouse=this.touch.touches[0]},"touchToScene"));h(this,"canScrollZoom",o(t=>{let n=og(t),i=this.getZoomAltitude();return!(n<0&&i===this.getZoomScaledMax()||n>0&&i===this.getZoomScaledMin())},"canScrollZoom"));h(this,"mouseToScene",o(t=>{let n=this.getMousePos(t);return this.coords.mouse.x=n.x/this.renderer.domElement.width*this.rendererState.pixelRatio*2-1,this.coords.mouse.y=-(n.y/this.renderer.domElement.height*this.rendererState.pixelRatio)*2+1,this.coords.mouse},"mouseToScene"));h(this,"getMousePos",o(t=>({x:t.offsetX,y:t.offsetY}),"getMousePos"));h(this,"handleMouseDownRotate",o(t=>{this.coords.rotateStart.set(t.clientX,t.clientY),this.publish("rotate-start"),this.publish("user-rotate-start")},"handleMouseDownRotate"));h(this,"handleMouseDownPan",o(()=>{let t=this.raycastToFloor(this.coords.mouse);this.coords.panStart.set(t.x,t.y,0),this.coords.panCameraStart.set(this.orbit.position.x,this.orbit.position.y,0),this.publish("pan-start"),this.publish("user-pan-start")},"handleMouseDownPan"));h(this,"handleMouseDownPedestal",o(t=>{let n=new $e(t.clientX,t.clientY);this.coords.initialShiftPos=n,this.coords.initialPedestal=this.getPedestal(),this.pedestalScaleFactor=$p(this.camera.fov,this.renderer.domElement.clientHeight,this.getZoomAltitude()),this.publish("pedestal-start"),this.publish("user-pedestal-start")},"handleMouseDownPedestal"));h(this,"handleMouseMovePedestal",o(t=>{let n={x:t.clientX,y:t.clientY},i=this.coords.initialPedestal+this.pedestalScaleFactor*(n.y-this.coords.initialShiftPos.y);this.stayInsideBounds&&(i<this.minPedestal?i=Math.max(i,this.minPedestal):i>this.maxPedestal&&(i=Math.min(i,this.maxPedestal))),i!==this.getPedestal()&&this.setPedestal(i,!0)},"handleMouseMovePedestal"));h(this,"handleMouseMoveRotate",o(t=>{this.coords.rotateEnd.set(t.clientX,t.clientY),this.coords.rotateDelta.subVectors(this.coords.rotateEnd,this.coords.rotateStart),this.setRotation(this.getRotation()+this.coords.rotateDelta.x/this.rotateSpeed),this.setTilt(this.getTilt()-this.coords.rotateDelta.y/this.rotateSpeed),this.coords.rotateStart.copy(this.coords.rotateEnd),this.publish("change")},"handleMouseMoveRotate"));h(this,"publishUserZoomDebounced",Sa(()=>{this.isUserZooming=!1,this.publish("user-zoom-end")},250));h(this,"publishUserZoomEvent",o(()=>{this.isUserZooming?this.publishUserZoomDebounced():(this.publish("user-zoom-start"),this.isUserZooming=!0,this.publishUserZoomDebounced())},"publishUserZoomEvent"));h(this,"setCameraMoving",o(()=>{this.cameraMoving=!0},"setCameraMoving"));h(this,"unsetCameraMoving",o(()=>{this.cameraMoving=!1,this.lastCameraMoveTime=Date.now()},"unsetCameraMoving"));h(this,"setUserInteracting",o(()=>{this.userInteracting=!0},"setUserInteracting"));h(this,"unsetUserInteracting",o(()=>{this.userInteracting=!1},"unsetUserInteracting"));h(this,"publishPedestalChangeEvent",o(t=>{this.publish("pedestal-change",{pedestal:t,scrolledToTop:this.scrolledToTop,scrolledToBottom:this.scrolledToBottom,scrollPercent:this.scrollPercent})},"publishPedestalChangeEvent"));h(this,"convertAltitudeToZoomLevel",o(t=>{let[,n]=this.center,i=this.computeMetersPerPixelFromAltitude(t),a=Math.cos(Me.degToRad(n))*2*Math.PI*Rp/i;return Me.clamp(Math.log2(a/512),rm,nm)},"convertAltitudeToZoomLevel"));h(this,"convertZoomLevelToAltitude",o(t=>this.computeMetersPerPixelFromZoomLevel(t)*this.options.canvasHeight/2/Math.tan(Me.degToRad(this.camera.fov)/2),"convertZoomLevelToAltitude"));h(this,"completeTween",o(t=>{t.isPlaying()&&t.stop(),this.rendererState.internalTweenGroup.remove(t),this.tweens.delete(t)},"completeTween"));h(this,"debugContainer",new Qr);this.camera=t,this.renderer=i,this.rendererState=a,this.scene=n,this.options=u,this.elevation=t.parent,this.orbit=this.elevation.parent,this.cameraPlane=this.createCameraPlane(),this.zoomStart=t.position.z,u.mode!=="outdoors-overlay"&&this.addEventListeners()}get maxZoomLevel(){return this.convertAltitudeToZoomLevel(this.minZoomAltitude)}setMaxZoomLevel(t){this.minZoomAltitude=this.convertZoomLevelToAltitude(t),this.stateDirty=!0}get defaultMinZoomLevel(){return c(this,om)}get minZoomLevel(){return this.convertAltitudeToZoomLevel(this.maxZoomAltitude)}setMinZoomLevel(t){this.maxZoomAltitude=this.convertZoomLevelToAltitude(t),this.stateDirty=!0}get scrollPercent(){let t=this.minPedestal,n=this.maxPedestal,i=this.getPedestal();return i=Math.min(i,n),i=Math.max(i,t),(i-t)/(n-t)*100}get fov(){return this.camera.fov}get scrolledToBottom(){return this.minPedestal===0||Math.floor(this.getPedestal())<=this.minPedestal}get scrolledToTop(){return this.maxPedestal===0||Math.ceil(this.getPedestal())>=this.maxPedestal}get center(){var a,u,s,d;let t=this.getPosition(),{lat:n,lon:i}=Jc((u=(a=this.rendererState.center)==null?void 0:a[1])!=null?u:0,(d=(s=this.rendererState.center)==null?void 0:s[0])!=null?d:0,t.x,t.y);return[i,n]}setCenter(t,n){var u,s,d,m;let{x:i,y:a}=Yc((s=(u=this.rendererState.center)==null?void 0:u[1])!=null?s:0,(m=(d=this.rendererState.center)==null?void 0:d[0])!=null?m:0,n,t);this.setPosition(i,a)}get isAnimating(){return this.rendererState.internalTweenGroup.getAll().some(t=>t.cameraAnimation)}getCameraFrameForCoordinates(t,n){var b,v;let i=n.minZoom!==void 0?n.minZoom:this.minZoomAltitude,a=n.maxZoom!==void 0?n.maxZoom:this.maxZoomAltitude,u=this.options.canvasWidth,s=this.options.canvasHeight,d=this.getRotation(),m=this.getTilt(),p=this.getPosition();this.setRotation((b=n.rotation)!=null?b:d,!0),this.setTilt((v=n.tilt)!=null?v:m,!0);let g=c6(t,{canvasWidth:u,canvasHeight:s,paddingOption:n.padding,verticalPadding:n.verticalPadding,minZoom:i,maxZoom:a,position:p,camera:this.camera,orbit:this.orbit});return this.setRotation(d,!0),this.setTilt(m,!0),{center:g.position,zoomLevel:this.convertAltitudeToZoomLevel(g.zoom)}}focusOn(t,n){if(EM){this.debugContainer&&fr(this.debugContainer);let x=new xa(4,4,4),E=new _r({color:65280,depthTest:!1}),S=new Gn(x,E,t.length),D=new wr;t.forEach((I,T)=>{D.setPosition(I),S.setMatrixAt(T,D)}),S.instanceMatrix.needsUpdate=!0,this.debugContainer.add(S),this.scene.add(this.debugContainer)}let i=n.curve,a=n.callback,u=n.cancelledCallback,s=n.minZoom!==void 0?n.minZoom:this.minZoomAltitude,d=n.maxZoom!==void 0?n.maxZoom:this.maxZoomAltitude,m=this.options.canvasWidth,p=this.options.canvasHeight,g;n.duration!==void 0?g=n.duration:y.env.TESTING==="true"?g=0:g=mg;let b=n.padding,v=this.getRotation(),C=this.getTilt();n.rotation!=null&&this.setRotation(n.rotation),n.tilt!=null&&this.setTilt(n.tilt);let A=c6(t,{canvasHeight:p,paddingOption:b,canvasWidth:m,minZoom:s,maxZoom:d,camera:this.camera,orbit:this.orbit,position:this.getPosition(),verticalPadding:n.verticalPadding});this.setRotation(v),this.setTilt(C),this.animateCamera({position:A.position,tilt:n.tilt,rotation:n.rotation,zoom:A.zoom},g,i,a,u,n)}resize(t,n){this.options.canvasWidth=t,this.options.canvasHeight=n}computeMetersPerPixelFromZoomLevel(t){let[,n]=this.center,i=Me.clamp(t,rm,nm),a=Math.pow(2,i),u=Me.clamp(n,sg,cg),s=a*512;return Math.cos(Me.degToRad(u))*Math.PI*2*Rp/s}computeMetersPerPixelFromAltitude(t){return t*2*Math.tan(Me.degToRad(this.camera.fov)/2)/this.options.canvasHeight}getCurrentMetersPerPixel(){return this.computeMetersPerPixelFromAltitude(this.getZoomAltitude())}};om=new WeakMap,o(am,"CameraSystem"),h(am,"CAMERA_FRAME_PADDING_SIDES",["top","bottom","left","right"]);var Au=am;function c6(e,{canvasWidth:r,orbit:t,paddingOption:n,verticalPadding:i=0,canvasHeight:a,minZoom:u,maxZoom:s,camera:d,position:m}){let p={zoom:u,position:m};if(e.length===0)return p;for(let pe of Au.CAMERA_FRAME_PADDING_SIDES)typeof n[pe]!="number"&&(n[pe]=0);let g=Qd(n,r,a);if(g.left+g.right>=r||g.top+g.bottom>=a)return p;t.updateMatrixWorld();let b=d.matrixWorldInverse,v=d.fov*(Math.PI/180)/2,C=v,x=Math.atan(Math.tan(v)*(r/a)),E=new te(1/0,1/0,1/0),S=new te(-1/0,-1/0,-1/0),D=new rr,I=new te;for(let pe=0,Je=e.length;pe<Je;pe++)I.copy(e[pe]),D.expandByPoint(I),I.applyMatrix4(b),E.min(I),S.max(I),I.copy(e[pe]),I.z-=i,I.applyMatrix4(b),E.min(I),S.max(I),I.copy(e[pe]),I.z+=i,I.applyMatrix4(b),E.min(I),S.max(I);let T=S.x-E.x,V=S.y-E.y,$=r-g.left-g.right,O=a-g.top-g.bottom,M=(S.x+E.x)/2,Z=(S.y+E.y)/2,z=T/$,re=V/O,k=u,H=s,q=k*Math.tan(x)*2,G=H*Math.tan(x)*2,ae=q/r,oe=G/r,Y=Math.max(z,re);Y=Me.clamp(Y,ae,oe);let le=$*Y,fe=O*Y,xe={min:{x:M-le/2-g.left*Y,y:Z-fe/2-g.bottom*Y},max:{x:M+le/2+g.right*Y,y:Z+fe/2+g.top*Y}},be=(xe.min.x+xe.max.x)/2,Fe=(xe.min.y+xe.max.y)/2,De=D.getCenter(new te),ht=Math.abs(be-xe.min.x),vt=Math.abs(Fe-xe.min.y),Sr=ht/Math.tan(x),P=vt/Math.tan(C),J=new te;J.set(be,Fe,S.z+Math.max(Sr,P)),J.applyMatrix4(d.matrixWorld);let F=new te;F.set(be,Fe,S.z),F.applyMatrix4(d.matrixWorld);let ce=new te().subVectors(F,J),Q=(De.z-J.z)/ce.z,ne=new te().copy(J).add(ce.clone().multiplyScalar(Q));return F.set(ne.x,ne.y,ne.z),J.sub(F),{position:ne,zoom:J.length()}}o(c6,"getCameraFrameForPoints");var IM=0,CM=90,DM=(y.env.NODE_ENV==="test",!1),um={linear:bn.Linear.None,"ease-in":bn.Quadratic.In,"ease-out":bn.Quadratic.Out,"ease-in-out":bn.Quadratic.InOut},SM=-50,de,ve,ci,Hs,Ks,gg,yg=class yg extends Ae{constructor(t,n,i){super();R(this,Ks);R(this,de);R(this,ve);R(this,ci);R(this,Hs);K(this,de,t),K(this,ve,n),K(this,ci,i),c(this,de).map&&c(this,de).map.transform.setMinElevationForCurrentTile(SM),c(this,ve).cameraSystem.on("pedestal-change",({pedestal:a})=>{c(this,ve).cameraSystem.setCameraPlaneElevation(a)})}get center(){var t,n;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(n=(t=c(this,de).map).getCenter)==null?void 0:n.call(t).toArray():c(this,ve).cameraSystem.center}setCenter(t){var n;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map){(n=c(this,de).map)==null||n.setCenter(t),c(this,ve).interactionSystem.handleHover();return}c(this,ve).cameraSystem.setCenter(t[0],t[1]),c(this,ve).interactionSystem.handleHover()}get zoomLevel(){var t;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(t=c(this,de).map)==null?void 0:t.getZoom():c(this,ve).cameraSystem.getZoomLevel()}setZoomLevel(t){var n;c(this,de).mode==="outdoors-overlay"&&c(this,de).map&&((n=c(this,de).map)==null||n.setZoom(t)),c(this,ve).cameraSystem.setZoomLevel(Zn(t,this.minZoomLevel,this.maxZoomLevel,"zoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMinZoomLevel() and mapView.Camera.setMaxZoomLevel() to adjust limits."))}getState(){return{zoomLevel:this.zoomLevel,minZoomLevel:this.minZoomLevel,maxZoomLevel:this.maxZoomLevel,minPitch:this.minPitch,maxPitch:this.maxPitch,autoMinZoomLevel:this.autoMinZoomLevel,panMode:this.panMode,screenOffsets:this.insetsPadding,center:this.center,bearing:this.bearing,pitch:this.pitch,elevation:this.elevation}}get isAnimating(){return c(this,ve).cameraSystem.isAnimating}cancelAnimation(){c(this,ve).cameraSystem.cancelAnimation()}get maxZoomLevel(){return c(this,ve).cameraSystem.maxZoomLevel}get minZoomLevel(){return c(this,ve).cameraSystem.minZoomLevel}setAutoMinZoomLevel(t){c(this,ve).panBoundsSystem.autoMinZoomLevel=t,t&&(c(this,ve).panBoundsSystem.dirty=!0,c(this,ve).panBoundsSystem.update())}get autoMinZoomLevel(){return c(this,ve).panBoundsSystem.autoMinZoomLevel}setMinZoomLevel(t,n=!1){var a;n&&this.setAutoMinZoomLevel(!1);let i=Zn(t,vn.MIN_MERCATOR_ZOOM_LEVEL,this.maxZoomLevel,"setMinZoomLevel was clamped. minZoomLevel must be between ".concat(vn.MIN_MERCATOR_ZOOM_LEVEL," and maxZoomLevel."));c(this,ve).cameraSystem.setMinZoomLevel(i),this.zoomLevel<i&&this.setZoomLevel(i),(a=c(this,de).map)==null||a.setMinZoom(i)}setMaxZoomLevel(t){var i;let n=Zn(t,this.minZoomLevel,vn.MAX_MERCATOR_ZOOM_LEVEL,"setMaxZoomLevel was clamped. maxZoomLevel must be between minZoomLevel and ".concat(vn.MAX_MERCATOR_ZOOM_LEVEL,"."));c(this,ve).cameraSystem.setMaxZoomLevel(n),this.zoomLevel>n&&this.setZoomLevel(n),(i=c(this,de).map)==null||i.setMaxZoom(n)}get maxPitch(){var t,n;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(n=(t=c(this,de).map)==null?void 0:t.getMaxPitch)==null?void 0:n.call(t):Me.radToDeg(c(this,ve).cameraSystem.maxTilt)}get minPitch(){var t,n;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(n=(t=c(this,de).map)==null?void 0:t.getMinPitch)==null?void 0:n.call(t):Me.radToDeg(c(this,ve).cameraSystem.minTilt)}setMinPitch(t){var i;let n=Math.max(IM,t);(i=c(this,de).map)==null||i.setMinPitch(n),c(this,ve).cameraSystem.minTilt=Me.degToRad(n)}setMaxPitch(t){var i;let n=Math.min(CM,t);(i=c(this,de).map)==null||i.setMaxPitch(n),c(this,ve).cameraSystem.maxTilt=Me.degToRad(n)}get bearing(){var t;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(t=c(this,de).map)==null?void 0:t.getBearing():Me.radToDeg(c(this,ve).cameraSystem.getRotation())}setBearing(t){var n;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map){(n=c(this,de).map)==null||n.setBearing(t);return}c(this,ve).cameraSystem.setRotation(Me.degToRad(t))}get pitch(){var t;return c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(t=c(this,de).map)==null?void 0:t.getPitch():Me.radToDeg(c(this,ve).cameraSystem.getTilt())}setPitch(t){var n;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map){(n=c(this,de).map)==null||n.setPitch(t);return}c(this,ve).cameraSystem.setTilt(Me.degToRad(Zn(t,this.minPitch,this.maxPitch,"pitch was clamped to minPitch/maxPitch bounds. Use mapView.Camera.setMinPitch() and mapView.Camera.setMaxPitch() to adjust limits.")))}get elevation(){return c(this,ve).cameraSystem.getPedestal()}setElevation(t){c(this,ve).cameraSystem.setPedestal(t,!0)}animateElevation(t,n){return c(this,Hs)&&c(this,Hs).stop(),new Promise(i=>{var a;c(this,ve).cameraSystem.animateCamera({position:{z:t}},(n==null?void 0:n.duration)||300,um[(n==null?void 0:n.easing)||"ease-in-out"],i,i,{interruptible:(a=n==null?void 0:n.interruptible)!=null?a:!0})})}get insetsPadding(){return c(this,ci).insetsPadding}get panMode(){return c(this,ve).cameraSystem.enablePan===!1&&c(this,ve).cameraSystem.enablePedestal===!0?"elevation":"default"}setPanMode(t){if(t!=="default"&&t!=="elevation")throw new Error("Invalid pan mode");t!==this.panMode&&(t==="default"?(c(this,ve).cameraSystem.enablePan=!0,c(this,ve).cameraSystem.enablePedestal=!1):(c(this,ve).cameraSystem.enablePan=!1,c(this,ve).cameraSystem.enablePedestal=!0))}setInsetPadding(t){c(this,ci).insetsPadding=Object.assign({},c(this,ci).insetsPadding,t),this.publish("padding-change",{padding:c(this,ci).insetsPadding})}animateTo(t){var s,d,m,p,g,b;if(c(this,de).mode==="outdoors-overlay"&&c(this,de).map)return(b=c(this,de).map)==null||b.flyTo({center:(s=t.center)!=null?s:this.center,zoom:(d=t.zoomLevel)!=null?d:this.zoomLevel,bearing:(m=t.bearing)!=null?m:this.bearing,pitch:(p=t.pitch)!=null?p:this.pitch,duration:(g=t.duration)!=null?g:600}),Promise.resolve();let n=t.center?c(this,de).convertTo3DMapPosition(t.center[1],t.center[0],t.center[2]||this.elevation):void 0,i=t.zoomLevel!==void 0?c(this,ve).cameraSystem.convertZoomLevelToAltitude(Zn(t.zoomLevel,this.minZoomLevel,this.maxZoomLevel,"zoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMinZoomLevel() and mapView.Camera.setMaxZoomLevel() to adjust limits.")):void 0,a=t.bearing!==void 0?Me.degToRad(t.bearing):void 0,u=t.pitch!==void 0?Me.degToRad(Zn(t.pitch,this.minPitch,this.maxPitch,"pitch was clamped to minPitch/maxPitch bounds. Use mapView.Camera.setMinPitch() and mapView.Camera.setMaxPitch() to adjust limits.")):void 0;return new Promise(v=>{var C;c(this,ve).cameraSystem.animateCamera({position:n,zoom:i,rotation:a,tilt:u},t.duration||0,um[t.easing||"ease-in-out"],()=>{c(this,ve).interactionSystem.handleHover(),v()},v,{interruptible:(C=t==null?void 0:t.interruptible)!=null?C:!0})})}getCameraFrameForCoordinates(t,n){let i=mt(this,Ks,gg).call(this,n||{},()=>Promise.resolve()),{pointCloud:a}=l6(t,c(this,de),c(this,ci).geometry3DMap);if(a.length===0)return Se.error("No valid coordinates found in targets:",t),{center:this.center,zoomLevel:this.zoomLevel};let{center:u,zoomLevel:s}=c(this,ve).cameraSystem.getCameraFrameForCoordinates(a,i);return{center:c(this,de).convert3DMapPositionToCoordinate(u),zoomLevel:s}}focusOn(t,n){var s,d,m,p;let{pointCloud:i,geoBounds:a,firstPosition:u}=l6(t,c(this,de),c(this,ci).geometry3DMap);return i.length===0?(Se.error("No valid coordinates found in targets:",t),Promise.resolve()):c(this,de).mode==="outdoors-overlay"&&c(this,de).map?(i.length===1&&u?(s=c(this,de).map)==null||s.flyTo({center:[u[0],u[1]],duration:(n==null?void 0:n.duration)||c(this,de).map.getBearing(),animate:!0,bearing:(n==null?void 0:n.bearing)===void 0?c(this,de).map.getBearing():n==null?void 0:n.bearing,pitch:(n==null?void 0:n.pitch)===void 0?c(this,de).map.getPitch():n==null?void 0:n.pitch,zoom:(n==null?void 0:n.maxZoomLevel)||c(this,de).map.getMaxZoom()}):(DM&&wM(c(this,de),a),(p=c(this,de).map)==null||p.fitBounds(a,{duration:(d=n==null?void 0:n.duration)!=null?d:vn.DEFAULT_ANIMATION_DURATION,bearing:(n==null?void 0:n.bearing)===void 0?c(this,de).map.getBearing():n==null?void 0:n.bearing,pitch:(n==null?void 0:n.pitch)===void 0?c(this,de).map.getPitch():n==null?void 0:n.pitch,maxZoom:(m=n==null?void 0:n.maxZoomLevel)!=null?m:c(this,de).map.getMaxZoom()})),c(this,ve).interactionSystem.handleHover(),Promise.resolve()):new Promise(g=>{c(this,ve).cameraSystem.focusOn(i,mt(this,Ks,gg).call(this,n||{},g))})}};de=new WeakMap,ve=new WeakMap,ci=new WeakMap,Hs=new WeakMap,Ks=new WeakSet,gg=o(function(t,n){var i;return{minZoom:(t==null?void 0:t.maxZoomLevel)===void 0?void 0:c(this,ve).cameraSystem.convertZoomLevelToAltitude(Zn(t.maxZoomLevel,this.minZoomLevel,this.maxZoomLevel,"maxZoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMaxZoomLevel() to adjust limits.")),maxZoom:(t==null?void 0:t.minZoomLevel)===void 0?void 0:c(this,ve).cameraSystem.convertZoomLevelToAltitude(Zn(t.minZoomLevel,this.minZoomLevel,this.maxZoomLevel,"minZoomLevel was clamped to minZoomLevel/maxZoomLevel bounds. Use mapView.Camera.setMinZoomLevel() to adjust limits.")),padding:t!=null&&t.padding?Object.assign({},Xc,t==null?void 0:t.padding):this.insetsPadding,curve:um[(t==null?void 0:t.easing)||"ease-in-out"],rotation:(t==null?void 0:t.bearing)===void 0?void 0:Me.degToRad(t.bearing),tilt:(t==null?void 0:t.pitch)!==void 0?Me.degToRad(Zn(t.pitch,this.minPitch,this.maxPitch,"pitch was clamped to minPitch/maxPitch bounds. Use mapView.Camera.setMinPitch() and mapView.Camera.setMaxPitch() to adjust limits.")):void 0,duration:t==null?void 0:t.duration,callback:o(()=>{c(this,ve).interactionSystem.handleHover(),n()},"callback"),cancelledCallback:n,interruptible:(i=t==null?void 0:t.interruptible)!=null?i:!0,verticalPadding:t==null?void 0:t.verticalPadding}},"#convertToLegacy"),o(yg,"Camera");var sm=yg;function hg(e,r){e[0]=Math.min(e[0],r[0]),e[1]=Math.min(e[1],r[1]),e[2]=Math.max(e[2],r[0]),e[3]=Math.max(e[3],r[1])}o(hg,"updateBounds");function l6(e,r,t){var s;let n=[],i=[1/0,1/0,-1/0,-1/0],a=null;if(!e||!Array.isArray(e)||e.length===0)return{pointCloud:n,geoBounds:i,firstPosition:a};let u=r.getSystems().renderSystem;for(let d of e)if(typeof d=="string"){(u.threeDdirty||u.twoDdirty)&&r.renderSync();let m=t.get(d);if(!m){Se.error("Entity not found with id:",d);continue}let p=new rr;S4(r,"userData"in m&&(s=m.userData.entityId)!=null?s:m.id,n,p,m instanceof nr?m.position.z:void 0);let g=r.convert3DMapPositionToCoordinate(p.min),b=r.convert3DMapPositionToCoordinate(p.max);hg(i,g),hg(i,b),a||(a=r.convert3DMapPositionToCoordinate(p.getCenter(new te)))}else n.push(r.convertTo3DMapPosition(d[1],d[0],d[2]||0)),hg(i,d),a||(a=d);return{pointCloud:n,geoBounds:i,firstPosition:a}}o(l6,"processTargets");function wM(e,r){var n,i,a,u;let t=[[r[0],r[1]],[r[0],r[3]],[r[2],r[3]],[r[2],r[1]],[r[0],r[1]]];(n=e.map)!=null&&n.getLayer("bounds-outline")&&e.map.removeLayer("bounds-outline"),(i=e.map)!=null&&i.getSource("bounds-source")&&e.map.removeSource("bounds-source"),(a=e.map)==null||a.addSource("bounds-source",{type:"geojson",data:{type:"Feature",properties:{},geometry:{type:"LineString",coordinates:t}}}),(u=e.map)==null||u.addLayer({id:"bounds-outline",type:"line",source:"bounds-source",layout:{},paint:{"line-color":"#FF0000","line-width":2,"line-opacity":.8}})}o(wM,"drawBounds");var bg="";var Pu=!1,AM=150,xg=class xg extends Ae{constructor(t,n,i=!0){super();h(this,"worker");h(this,"debugContext");h(this,"debugCanvas");h(this,"collidersDirty",!0);h(this,"packedMessage",[[],0,0,0,0,0,"bottom-left"]);h(this,"visibleCollidersQTree",new tn(new Pe(0,0,0,0)));h(this,"interactiveCollidersQTree",new tn(new Pe(0,0,0,0)));h(this,"coreState");h(this,"postMessage");h(this,"showCollisionBoxes",o(()=>{Pu=!0,this.debugCanvas.style.display="block"},"showCollisionBoxes"));h(this,"hideCollisionBoxes",o(()=>{Pu=!1,this.debugContext.clearRect(0,0,this.debugCanvas.width,this.debugCanvas.height),this.debugCanvas.style.display="none"},"hideCollisionBoxes"));h(this,"currentMsgId","");h(this,"working",!1);h(this,"_postMessage",o(()=>{this.worker.postMessage(this.packedMessage)},"_postMessage"));h(this,"componentArray",[]);h(this,"update",o((t,n,i="bottom-left",a=!1,u=[])=>{let s=!1;if(this.collidersDirty){this.packedMessage=[[],0,0,0,0,0,"bottom-left"],this.componentArray=[];let p;for(let g of this.coreState.geometry2DsInScene)p=g.components[0],this.componentArray.push(p);this.resize(t,n,i),this.collidersDirty=!1,s=!0}else s=this.componentArray.some(p=>p.collisionDirty===!0);s&&this.componentArray.sort((p,g)=>g.rank-p.rank);let d=0;for(let p of u)this.packedMessage[0][d]==null&&(this.packedMessage[0][d]=[]),this.packedMessage[0][d][0]==null&&(this.packedMessage[0][d][0]=[]),this.packedMessage[0][d][0]=[[p.h/2,p.h/2,p.w/2,p.w/2,rf]],this.packedMessage[0][d][1]=1,this.packedMessage[0][d][2]=1,this.packedMessage[0][d][3]=p.x,this.packedMessage[0][d][4]=p.y,this.packedMessage[0][d][5]=0,this.packedMessage[0][d][6]=-1,d++;let m=0;for(;d<this.componentArray.length+u.length;){if(this.packedMessage){let p=this.componentArray[m].toPackedMessage(a&&!s);this.packedMessage[0][d]==null&&(this.packedMessage[0][d]=[]),this.packedMessage[0][d][0]==null&&(this.packedMessage[0][d][0]=[]),this.packedMessage[0][d][0]=p.bboxes,this.packedMessage[0][d][1]=p.enabled&&this.componentArray[m].visible&&!this.componentArray[m].isOccluded?1:0,this.packedMessage[0][d][2]=p.rank===Pa?1:0,this.packedMessage[0][d][3]=p.x,this.packedMessage[0][d][4]=p.y,this.packedMessage[0][d][5]=p.shouldCollideWithScreenEdges?1:0,this.packedMessage[0][d][6]=p.lockedToStrategyIndex}d++,m++}this.working||this.postMessage()},"update"));h(this,"resolve",o(t=>{if(this.working=!1,this.collidersDirty||!t.data)return;let n=t.data.colliders,i=-1,a,u,s,d=new Pe(0,0,this.debugCanvas.width,this.debugCanvas.height);if(this.visibleCollidersQTree=new tn(d),this.interactiveCollidersQTree=new tn(d),Pu)for(let m of t.data.staticColliders)this.visibleCollidersQTree.insert(new Pe(m.x,m.y,m.w,m.h));for(let m=0;m<this.componentArray.length;m++){let p=this.componentArray[m];if(n[m]==null)continue;i=n[m][0],a=n[m][2];let g=p.offscreen,b=n[m][1]===1;p.offscreen=b,i!==-1&&a!=null?(s=new Pe(a.x,a.y,a.w,a.h,{entityId:p.id}),this.visibleCollidersQTree.insert(s),u=this.coreState.geometry2DMap.get(p.id),(u==null?void 0:u.components[1])!=null&&this.interactiveCollidersQTree.insert(s),(p.canShow===!1||p.visibilityNeedsUpdate!==!1||g&&!b)&&"visibilityNeedsUpdate"in p&&(p.visibilityNeedsUpdate="show"),i!==-1&&i!==p.currentStrategyIndex&&(p.activeBoundingBox=s,p.onStrategySelected(i))):((p.canShow===!0||p.visibilityNeedsUpdate!==!1)&&"visibilityNeedsUpdate"in p&&(p.visibilityNeedsUpdate="hide"),i!==-1&&i!==p.currentStrategyIndex&&p.onStrategySelected(i))}Pu&&this.drawDebug(),this.publish("visibility-changed")},"resolve"));h(this,"drawDebug",o(()=>{Pu&&this.visibleCollidersQTree&&(this.debugContext.clearRect(0,0,this.debugCanvas.width,this.debugCanvas.height),this.debugContext.beginPath(),this.visibleCollidersQTree.drawObjects(this.debugContext))},"drawDebug"));h(this,"destroy",o(()=>{this.worker.terminate()},"destroy"));this.worker=i===!1?new ns:bg!==""?new Worker(bg):new Worker(URL.createObjectURL(new Blob([yb],{type:"text/javascript"}))),this.worker.onerror=()=>{this.worker=new ns,this.worker.onmessage=a=>this.resolve(a)},this.coreState=n,this.debugCanvas=t,this.debugContext=t.getContext("2d"),this.worker.onmessage=a=>this.resolve(a),this.postMessage=wa(this._postMessage,AM),Pu?this.showCollisionBoxes():this.hideCollisionBoxes()}resize(t,n,i){this.packedMessage[6]=i,this.packedMessage[5]=n,this.packedMessage[4]=t,this.packedMessage[3]=this.debugCanvas.width,this.packedMessage[2]=this.debugCanvas.height}};o(xg,"CollisionSystem");var cm=xg;l();l();l();l();var Ig=class Ig{constructor(r){h(this,"type");h(this,"event");this.type=0,this.event=r}get timestamp(){return this.event.timeStamp}};o(Ig,"Tap");var lm=Ig,Cg=class Cg{constructor(){h(this,"taps",[])}add(r){this.lastPointerDown&&r.timestamp-this.lastPointerDown.timestamp<50?this.lastPointerDown.type=1:this.taps.push(r)}get lastPointerDown(){return this.taps.length>=1?this.taps[this.taps.length-1]:void 0}get isSingleTapWithTwoFingers(){var r;return this.isSingleTap&&((r=this.lastPointerDown)==null?void 0:r.type)===1}get isSingleTapWithOneFinger(){var r;return this.isSingleTap&&((r=this.lastPointerDown)==null?void 0:r.type)===0}get isDoubleTapWithOneFinger(){var r,t;return this.isDoubleTap&&((r=this.taps[0])==null?void 0:r.type)===0&&((t=this.taps[1])==null?void 0:t.type)===0}get isSingleTap(){return this.taps.length===1}get isDoubleTap(){return this.taps.length===2}discardOutsideOfWaitWindow(r){this.taps=this.taps.filter(t=>r-t.timestamp<300)}flush(){this.taps=[]}get _taps(){return this.taps}destroy(){this.flush()}};o(Cg,"TapsController");var dm=Cg;l();function Dg(e){let r=new Set;for(let t of e){let n=t.object;for(;n.visible&&n.parent&&n.parent.visible===!0&&!r.has(n.parent);)n=n.parent,n instanceof nr&&n.type==="group-container"&&n.visible&&n.components[0]&&r.add(n)}return Array.from(r)}o(Dg,"getUniqueIntersectedGroupContainers");var Sg=class Sg extends Ae{constructor(t,n,i,a,u){super();h(this,"raycaster",new Ji);h(this,"state",{hovered3DEntity:void 0,hovered2DEntities:new Set,hovered3DContainers:void 0,lastHover:void 0,interaction:{mouseDownStart:void 0,distanceFromMouseDown:void 0,isPanning:!1}});h(this,"coreState");h(this,"camera");h(this,"worldPlane");h(this,"_quadtree",new tn(new Pe(0,0,0,0)));h(this,"_container");h(this,"lastPointerEvent");h(this,"cursor","grab");h(this,"touchesCount",0);h(this,"isUserMovingCamera");h(this,"hasTouched",!1);h(this,"onPointerMove",wa(t=>{t&&(t.preventDefault(),this.updateInteractionStateIfPanning(t),(t.pointerType!=="touch"||t.pointerType===void 0&&this.hasTouched)&&this.handleHover(t),this.handleCursor())},y.env.NODE_ENV==="test"?0:16,{leading:!0}));h(this,"tapsControl",new dm);h(this,"onPointerDown",o(t=>{t.target===this._container&&(this._container.addEventListener("pointerup",this.onPointerUp,{capture:!1,signal:this.signal}),this._container.addEventListener("pointercancel",this.onPointerUp,{capture:!1,signal:this.signal}),this.state.interaction.mouseDownStart={time:Date.now(),timestamp:t.timeStamp,offsetX:t.offsetX,offsetY:t.offsetY},this.lastPointerEvent=t,this.state.interaction.distanceFromMouseDown=0,this.handleCursor(),t.pointerType==="touch"&&(this.tapsControl.add(new lm(t)),this.touchesCount=Math.max(0,this.touchesCount+1)))},"onPointerDown"));h(this,"clickTimeout");h(this,"onPointerUp",o(t=>{this.tapsControl.discardOutsideOfWaitWindow(t.timeStamp),this.lastPointerEvent=t,this.touchesCount=Math.max(0,this.touchesCount-1),this.touchesCount===0&&(this._container.removeEventListener("pointerup",this.onPointerUp,{capture:!1}),this._container.removeEventListener("pointercancel",this.onPointerUp,{capture:!1})),this.updateInteractionStateIfPanning(t);let{mouseDownStart:n}=this.state.interaction;!n||this.state.interaction.distanceFromMouseDown==null||(Date.now()<n.time+300&&(this.tapsControl.isSingleTapWithTwoFingers||this.state.interaction.distanceFromMouseDown<=15)&&(t.pointerType==="touch"&&!this.isUserMovingCamera()?this.tapsControl.isSingleTapWithTwoFingers?(this.publish("singletap-with-twofinger",t),this.flush()):this.tapsControl.isSingleTapWithOneFinger&&this.touchesCount===0?(this.clickTimeout&&clearTimeout(this.clickTimeout),this.clickTimeout=window.setTimeout(()=>{this.handleClick(t),this.flush()},300)):this.tapsControl.isDoubleTapWithOneFinger&&(this.publish("doubletap-with-onefinger",t),this.flush()):this.handleClick(t)),this.state.interaction.mouseDownStart=void 0,this.state.interaction.distanceFromMouseDown=void 0,this.state.interaction.isPanning=!1,this.handleCursor())},"onPointerUp"));h(this,"dirty3D",!0);h(this,"cachedHitBoxes",{entities:[]});h(this,"ndcPoint",new $e);h(this,"debugPanel");this.isUserMovingCamera=u,this.raycaster.layers.enableAll(),this.raycaster.layers.disable(1),this.camera=i,this._container=t,this.coreState=n,this.worldPlane=a,this._container.addEventListener("pointerdown",this.onPointerDown,{capture:!1,signal:this.signal}),this._container.addEventListener("pointermove",this.onPointerMove,{capture:!1,signal:this.signal}),this._container.classList.add("mappedin-interactive")}updateQuadtree(t){this._quadtree=t}setHovered3DEntityInteractionComponentDirty(){if(this.state.hovered3DEntity){let t=this.state.hovered3DEntity.components[2];t&&(t.dirty=!0)}}getThreeDIntersectsFromXY(t){this.raycaster.setFromCamera(t,this.camera),this.raycaster.layers.enable(0);let n=this.raycaster.intersectObjects(this._hitBoxes.entities,!0).filter(a=>{var u,s;return((u=a.object)==null?void 0:u.name)==="worldPlane"||((s=a.object)==null?void 0:s.visible)}),i=n.findIndex(a=>{var u;return((u=a.object)==null?void 0:u.name)==="worldPlane"});return i!==-1&&n.push(n.splice(i,1)[0]),n}getGroupContainerIntersectsFromXY(t){let n=this.getThreeDIntersectsFromXY(t),i;return n!=null&&n.length>0&&(i=Dg(n)),i}flush(){this.tapsControl.flush(),this.clickTimeout!=null&&(clearTimeout(this.clickTimeout),this.clickTimeout=void 0)}handleHover(t){let n=t||this.lastPointerEvent;if(this.state.interaction.mouseDownStart||!n||this.isUserMovingCamera())return;let{entity3D:i,entity2D:a,position:u,groupContainers:s}=this.intersect(n);(this.detect3DEntityHover(i)||this.detect2DEntityHover(a)||this.detect3DContainerHover(s))&&(this.state.hovered3DEntity=i,this.state.lastHover=i,this.state.hovered2DEntities=new Set(a.map(d=>d.id)),this.state.hovered3DContainers=s,this.publish("hover",{entity2D:a,entity3D:this.state.hovered3DEntity,position:u,groupContainers:s})),this.handleCursor()}handleCursor(){var u;let t=!!(this.state.hovered3DEntity&&((u=this.state.hovered3DEntity)!=null&&u.components[2])||this.state.hovered2DEntities.size>0),n=!!this.state.interaction.mouseDownStart,i=this.state.interaction.isPanning,a=BM(t,i,n);this.cursor!==a&&(this.cursor=a,a==="pointer"?this._container.classList.add("mappedin-interaction-hover"):this._container.classList.remove("mappedin-interaction-hover"))}detect2DEntityHover(t){if(t.length!==this.state.hovered2DEntities.size)return!0;for(let n=0;n<t.length;n++)if(!this.state.hovered2DEntities.has(t[n].id))return!0;return!1}handleClick(t){let n=this.intersect(t);this.publish("click",{entity2D:n.entity2D,entity3D:n.entity3D,position:n.position,groupContainers:n.groupContainers,pointerEvent:{button:t.button}})}get _hitBoxes(){if(this.dirty3D){this.cachedHitBoxes.entities=[];let t;for(let n of this.coreState.geometry3DIdsInScene)t=this.coreState.geometry3DMap.get(n),((t==null?void 0:t.type)==="geometry"||(t==null?void 0:t.type)==="model"||(t==null?void 0:t.type)==="path"||(t==null?void 0:t.type)==="custom-geometry")&&t.components[0].mesh&&!this.cachedHitBoxes.entities.includes(t.components[0].mesh)&&this.cachedHitBoxes.entities.push(t.components[0].mesh);return this.dirty3D=!1,this.cachedHitBoxes.entities.push(this.worldPlane),this.cachedHitBoxes}return this.cachedHitBoxes}intersect(t){var S,D,I,T,V;let{offsetX:n,offsetY:i}=t,a=[n,i],s=this._quadtree.queryPoint(a).filter($=>$.intersectsPoint(a));this.ndcPoint.x=n/this._container.clientWidth*2-1,this.ndcPoint.y=-(i/this._container.clientHeight)*2+1;let d=this.getThreeDIntersectsFromXY(this.ndcPoint),m=(S=d[0])==null?void 0:S.point,p=[],g=[],b=d.filter($=>$.object.name!=="worldPlane");for(let $ of b)$.object instanceof _e&&$.object.material.depthTest===!1?p.push($):g.push($);let v=(I=(D=p[0])!=null?D:g[0])!=null?I:void 0,C,A;if(v!=null){if(C=MM(v.object,this.coreState.geometry3DMap),!C){let $=(T=v==null?void 0:v.instanceId)!=null?T:v==null?void 0:v.batchId;C=$!=null&&(v!=null&&v.object.userData.entities)?this.coreState.geometry3DMap.get(v==null?void 0:v.object.userData.entities[$]):this.coreState.geometry3DMap.get(v==null?void 0:v.object.userData.entityId)}C!=null&&C.components[2]&&(A=C)}let x=Dg(b),E=[];for(let $ of s)if(((V=$==null?void 0:$.userData)==null?void 0:V.entityId)==="watermark")E.push({id:"watermark"});else{let O=this.coreState.geometry2DMap.get($==null?void 0:$.userData.entityId);O&&E.push(O)}return TM(E),{entity2D:E,entity3D:A,position:m,groupContainers:x.length>0?x:void 0}}detect3DEntityHover(t){return this.state.lastHover!==t&&(this.state.lastHover&&g6(this.state.lastHover,!1,this.coreState),t&&g6(t,!0,this.coreState)),this.state.hovered3DEntity!==t}detect3DContainerHover(t){return!f4(this.state.hovered3DContainers,t)}updateInteractionStateIfPanning(t){this.state.interaction.mouseDownStart&&(this.state.interaction.distanceFromMouseDown=Math.sqrt(Math.pow(t.offsetX-this.state.interaction.mouseDownStart.offsetX,2)+Math.pow(t.offsetY-this.state.interaction.mouseDownStart.offsetY,2)),!this.state.interaction.isPanning&&this.state.interaction.distanceFromMouseDown>15&&(this.state.interaction.isPanning=!0))}getMouseRayIntersects(){return this.raycaster.intersectObjects([this.worldPlane],!1)}destroy(){this._container.removeEventListener("pointerdown",this.onPointerDown,{capture:!1}),this._container.removeEventListener("pointermove",this.onPointerMove,{capture:!1}),this._container.removeEventListener("pointerup",this.onPointerUp,{capture:!1}),this._container.removeEventListener("pointercancel",this.onPointerUp,{capture:!1}),super.destroy()}enableDebug(){let t=document.createElement("div");t.style.position="absolute",t.style.top="0",t.style.right="0",t.style.backgroundColor="white",t.style.padding="10px",document.body.append(t),t.id="interaction-debug-panel",this.debugPanel=t,this.on("doubletap-with-onefinger",()=>{this.queueDebugMessage("doubletap-with-onefinger","#ffadad")}),this.on("singletap-with-twofinger",()=>{this.queueDebugMessage("singletap-with-twofinger","#ffd6a5")}),this.on("click",n=>{var i,a,u;this.queueDebugMessage("CLICK \n3D: ".concat((i=n.entity3D)==null?void 0:i.id," \n2D: ").concat((a=n.entity2D)==null?void 0:a.map(s=>s.id).join(", ")," \nPos: ").concat((u=n.position)==null?void 0:u.toArray().join(", ")),"#fdffb6")}),this.on("hover",n=>{var i,a,u;this.queueDebugMessage("HOVER \n3D: ".concat((i=n.entity3D)==null?void 0:i.id," \n2D: ").concat((a=n.entity2D)==null?void 0:a.map(s=>s.id).join(", ")," \nPos: ").concat((u=n.position)==null?void 0:u.toArray().join(", ")),"#caffbf")})}get _state(){return this.state}queueDebugMessage(t,n){var a;let i=document.createElement("pre");i.style.maxWidth="300px",i.style.transition="opacity 500ms cubic-bezier(0.4, 0, 0.2, 1)",i.style.backgroundColor=n,i.textContent=t,(a=this.debugPanel)==null||a.prepend(i),setTimeout(()=>{i.style.opacity="0",setTimeout(()=>{i.remove()},500)},2500)}getCursor(){return this.cursor}};o(Sg,"InteractionSystem");var qs=Sg;function g6(e,r,t){var u;let n=e.components[2];n&&n.hover!==!0&&(n.hover=r?"user-interaction":!1,n.dirty=!0);let i=(u=e.components[0].textMesh)==null?void 0:u.userData.entityId;if(!i)return;let a=t.geometry3DMap.get(i);(a==null?void 0:a.type)==="text3d"&&(a.components[1].hoverByPolygon=r,a.components[1].dirty=!0)}o(g6,"updateHover");function BM(e,r,t){return r?"grabbing":e?"pointer":t?"grabbing":"grab"}o(BM,"processCursor");function OM(e){let r=e;for(;r!=null&&r.parent;){if(r instanceof Xi)return;if(r.userData.isSingleModel)return r;r=r.parent}}o(OM,"findModelParent");function MM(e,r){let t=OM(e);return t?r.get(t.userData.entityId):void 0}o(MM,"findModelParentEntity");function TM(e){if(e.length<=1)return;let r=[],t=[];for(let i=0;i<e.length;i++){let a=e[i];a.type==="marker"?r.push(a):t.push(a)}if(r.length>1){let i,a;r.sort((u,s)=>{i=u.components[0],a=s.components[0];let d=i.projection.y,m=a.projection.y;return d!==m?m-d:i.markerContainer.compareDocumentPosition(a.markerContainer)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})}if(t.length>1){let i=[];for(let a=0;a<t.length;a++){let u=t[a],s=u.components[0];i.push({entity:u,y:s.projection.y,idx:a})}i.sort((a,u)=>a.y!==u.y?u.y-a.y:u.idx-a.idx);for(let a=0;a<i.length;a++)t[a]=i[a].entity}let n=0;for(let i=0;i<r.length;i++)e[n++]=r[i];for(let i=0;i<t.length;i++)e[n++]=t[i]}o(TM,"sort2DEntitiesByVisualPriority");l();l();var ta,go,mm,yo,y6,Js,pm,b6,v6,Ys,fm,Qs,ec,hm,wg=class wg{constructor(r){R(this,yo);R(this,ta,null);R(this,go);h(this,"getCurrentSceneGLTF",o(async r=>{let t=N({onlyVisible:!0,binary:!0,light:!0,scale:1},r),n=await mt(this,yo,y6).call(this),i=c(this,mm).call(this,t),a=await n.parseAsync(i,{trs:!1,maxTextureSize:1/0,onlyVisible:t.onlyVisible,binary:t.binary,scale:t.scale}),u;if(a instanceof ArrayBuffer)u=new Blob([a],{type:"application/octet-stream"});else{let s=JSON.stringify(a,null,2);u=new Blob([s],{type:"text/plain"})}return u},"getCurrentSceneGLTF"));R(this,mm,o(r=>{let{scale:t,light:n,onlyVisible:i}=r,a=new Xi,u=new rr().setFromObject(c(this,go).geometryScene);if(c(this,Js).call(this,c(this,go).geometryScene,a,i),n){let s=new Zc(16777215,.3*Math.PI);s.position.set(0,Math.max(u.max.x,u.max.y)*t*.5,u.max.y*t*4),s.lookAt(0,0,-1),s.target.position.set(0,0,-1),s.add(s.target),a.add(s)}return a},"#getExportedScene"));R(this,Js,o((r,t,n)=>{r.material&&(r instanceof zc?mt(this,yo,b6).call(this,r).forEach(i=>t.add(i)):r instanceof Mo&&t.add(mt(this,yo,v6).call(this,r))),r.children.forEach(i=>{(!n||i.visible)&&c(this,Js).call(this,i,t,n)})},"#processObject3D"));R(this,pm,o((r,t,n)=>{let i=new Ju({color:new Bt(r),metalness:0});return i.opacity=t,i.transparent=n,i},"#createStandardMaterial"));R(this,Ys,o(r=>{let{geometry:t,material:n,position:i,rotation:a,quaternion:u,scale:s}=r;if(!(t!=null&&t.isBufferGeometry))return r;let d=t.attributes.position,m=t.attributes.normal,p=t.attributes.uv;return c(this,fm).call(this,d,m),c(this,ec).call(this,i,s,a,u),p&&c(this,hm).call(this,p),n!=null&&n.map&&t.type==="PlaneGeometry"&&(r.side=fi),r},"#convertGeometry"));R(this,fm,o((r,t)=>{let n=new te,i=new te;for(let a=0;a<r.count;a++)n.fromBufferAttribute(r,a),c(this,Qs).call(this,n),r.setXYZ(a,n.x,n.y,n.z),t&&(i.fromBufferAttribute(t,a),c(this,Qs).call(this,i),t.setXYZ(a,i.x,i.y,i.z))},"#convertAttributes"));R(this,Qs,o(r=>{let t=r.y;r.y=r.z,r.z=-t},"#convertVector"));R(this,ec,o((r,t,n,i)=>{let a=r.y;r.y=r.z,r.z=-a;let u=t.y;if(t.y=t.z,t.z=u,n instanceof va)n.order="YXZ",n.set(n.x,n.y,n.z,n.order);else{let s=i.y;i.set(i.x,i.z,-s,i.w)}},"#convertObjectProperties"));R(this,hm,o(r=>{for(let t=0;t<r.count;t++){let n=r.getX(t),i=r.getY(t);r.setXY(t,n,i)}},"#convertUVs"));K(this,go,r)}destroy(){K(this,ta,null)}};ta=new WeakMap,go=new WeakMap,mm=new WeakMap,yo=new WeakSet,y6=o(async function(){if(!c(this,ta)){let{GLTFExporter:r}=await import("./GLTFExporter-6K4BSJEC.js");K(this,ta,new r)}return c(this,ta)},"#getGLTFExporter"),Js=new WeakMap,pm=new WeakMap,b6=o(function(r){var u,s;let t=[],i=((u=r.userData)!=null&&u.entities?Object.values((s=r.userData)==null?void 0:s.entities):[]).map(d=>c(this,go).geometry3DMap.get(d)),a=new Map;return i.forEach(d=>{var v;if(!d||!(d instanceof at))return;let m=d.components[1],p=d.components[2];if(!m.visible||m instanceof Wn&&m.opacity===0||m instanceof rs||m instanceof el)return;let g=p!=null&&p.hover?m.hoverColor||c(this,go).hoverColor:m.color,b="".concat(g,"-").concat(m.opacity,"-").concat(Number(m.visible));a.has(b)||a.set(b,[]),(v=a.get(b))==null||v.push(d)}),a.forEach((d,m)=>{let[p,g,b]=m.split("-"),v=d.reduce((E,S)=>{if(S.type==="custom-geometry")return E;let D=S.components[0];return"geometry"in D&&D.geometry instanceof Uc&&E.push(D.geometry),E},[]);if(v.length===0){Se.error("No geometries found for batched mesh");return}let C=c(this,pm).call(this,p,Number(g),r.material.transparent),A=en(v,!0);if(!A){Se.error("No merged geometry found for batched mesh");return}let x=new _e(A,C);x.position.copy(r.position),x.rotation.copy(r.rotation),x.scale.copy(r.scale),x.visible=!!b,c(this,ec).call(this,x.position,x.scale,x.rotation,x.quaternion),t.push(c(this,Ys).call(this,x))}),t},"#processBatchedMesh"),v6=o(function(r){let t=r.geometry.clone(),n=r.material,i=new _r({color:n.color,side:fi});i.opacity=n.opacity,i.transparent=n.transparent;let a=new Mo(t,i);return a.position.copy(r.position),a.rotation.copy(r.rotation),a.scale.copy(r.scale),a.visible=r.visible,c(this,Ys).call(this,a)},"#processLineSegments"),Ys=new WeakMap,fm=new WeakMap,Qs=new WeakMap,ec=new WeakMap,hm=new WeakMap,o(wg,"ExporterSystem");var Xs=wg;l();l();var kM="gray",_M=.1,tc=100,Ag=new Vn.ClipperOffset;function LM(e,r){Ag.Clear(),r/=2;let t=e.map(i=>({X:i.x*tc,Y:i.y*tc}));Ag.AddPath(t,Vn.JoinType.jtMiter,Vn.EndType.etClosedPolygon);let n=new Vn.Paths;return Ag.Execute(n,r*tc),n.length?n.map(a=>a.map(u=>({x:u.X/tc,y:u.Y/tc}))):[e]}o(LM,"offset");function ym(e,r,t){var v,C,A,x,E;let{color:n=kM,opacity:i=1,altitude:a=0,height:u=_M}=t||{};Array.isArray(i)&&(i=1);let s={min:{x:1/0,y:1/0,z:a},max:{x:-1/0,y:-1/0,z:u+a},center:{x:0,y:0,z:(u+a)/2}},m=e.geometry.coordinates[0].map(S=>{let D=r(S[1],S[0]);return s.min.x=Math.min(s.min.x,D.x),s.min.y=Math.min(s.min.y,D.y),s.max.x=Math.max(s.max.x,D.x),s.max.y=Math.max(s.max.y,D.y),D});((C=(v=e.properties)==null?void 0:v.style)==null?void 0:C.edgeOffset)!=null&&e.properties.style.edgeOffset!==0||((A=e.properties)==null?void 0:A.image)!=null?m=LM(m,((E=(x=e.properties)==null?void 0:x.style)==null?void 0:E.edgeOffset)||0):m=[m];let p=[];for(let S of m){let D=new Ca;D.moveTo(S[0].x,S[0].y),S.slice(1).forEach($=>D.lineTo($.x,$.y)),D.lineTo(S[0].x,S[0].y);let I=e.geometry.coordinates.slice(1);D.holes=I.map($=>{let O=$.map(Z=>r(Z[1],Z[0])),M=new Ia;return M.moveTo(O[0].x,O[0].y),O.slice(1).forEach(Z=>M.lineTo(Z.x,Z.y)),M.lineTo(O[0].x,O[0].y),M});let T=es(t==null?void 0:t.bevel,u),V=new Da(D,T);V.userData={style:{color:n,opacity:i},usedBevelSettings:T},p.push(V)}if(p.length===1)return p[0];let g=en(p);p.forEach(S=>S.dispose());let b=es(t==null?void 0:t.bevel,u);return g.userData={style:{color:n,opacity:i},usedBevelSettings:b,_split:!0},g}o(ym,"renderPolygonGeometry");l();var RM="gray",NM=.1;function bm(e,r,t){let{color:n=RM,opacity:i=1,altitude:a=0,height:u=NM}=t||{};Array.isArray(i)&&(i=1);let s={min:{x:1/0,y:1/0,z:a},max:{x:-1/0,y:-1/0,z:u+a}},d=es(t==null?void 0:t.bevel,u),m=[];e.geometry.coordinates.forEach(g=>{let b=new Ca,v=g[0].map(x=>{let E=r(x[1],x[0]);return s.min.x=Math.min(s.min.x,E.x),s.min.y=Math.min(s.min.y,E.y),s.max.x=Math.max(s.max.x,E.x),s.max.y=Math.max(s.max.y,E.y),E});b.moveTo(v[0].x,v[0].y),v.slice(1).forEach(x=>b.lineTo(x.x,x.y)),b.lineTo(v[0].x,v[0].y);let C=g.slice(1);b.holes=C.map(x=>{let E=x.map(D=>r(D[1],D[0])),S=new Ia;return S.moveTo(E[0].x,E[0].y),E.slice(1).forEach(D=>S.lineTo(D.x,D.y)),S.lineTo(E[0].x,E[0].y),S});let A=new Da(b,d);m.push(A)});let p=en(m);return m.forEach(g=>g.dispose()),p.translate(0,0,a||0),p.userData={style:{color:n,opacity:i},usedBevelSettings:d},p}o(bm,"renderMultiPolygonGeometry");l();var Tr=100,UM=.22,jM=.01;function x6(e,r,t={}){let{width:n=UM,height:i=jM,color:a="gray",opacity:u=1,altitude:s=0}=t,d={min:{x:1/0,y:1/0,z:s},max:{x:-1/0,y:-1/0,z:s+i}},m={bevelEnabled:!1,depth:i},p=new Vn.ClipperOffset,g=e.geometry.coordinates.map(A=>A.map(x=>r(x[1],x[0])));p.AddPaths(g.map(A=>A.map(x=>({X:x.x*Tr,Y:x.y*Tr}))),Vn.JoinType.jsMiter,Vn.EndType.etOpenRound);let b=new Vn.PolyTree;p.Execute(b,n/2*Tr);let v=[];for(let A of b.m_AllPolys){let x=new Ca;if(A.IsHole())continue;d.min.x=Math.min(d.min.x,A.m_polygon[0].X),d.min.y=Math.min(d.min.y,A.m_polygon[0].Y),d.max.x=Math.max(d.max.x,A.m_polygon[0].X),d.max.y=Math.max(d.max.y,A.m_polygon[0].Y);let E=A.m_polygon;x.moveTo(E[0].X/Tr,E[0].Y/Tr),E.slice(1).forEach(S=>x.lineTo(S.X/Tr,S.Y/Tr)),x.lineTo(E[0].X/Tr,E[0].Y/Tr),x.holes=A.m_Childs.map(S=>{let D=new Ia,I=S.m_polygon;return D.moveTo(I[0].X/Tr,I[0].Y/Tr),I.slice(1).forEach(T=>D.lineTo(T.X/Tr,T.Y/Tr)),D.lineTo(I[0].X/Tr,I[0].Y/Tr),D}),v.push(new Da(x,m))}let C=en(v);return C.translate(0,0,s||0),C.userData={style:{color:a,opacity:u}},p.Clear(),C}o(x6,"renderMultiLineStringGeometry");l();l();var Fu=ee.object({type:ee.enum(["Point"]),coordinates:ee.array(ee.number()).min(2).max(3)});var zM=ee.object({rotation:ee.array(ee.number()).length(3).optional(),altitude:ee.number().optional(),scale:ee.array(ee.number()).length(3).optional(),interactive:ee.boolean().optional(),verticalOffset:ee.number().optional(),id:ee.union([ee.number(),ee.string()]).optional()}),$M=ee.object({type:ee.enum(["Feature"]),geometry:Fu,properties:zM}),GM=ee.object({type:ee.enum(["FeatureCollection"]),features:ee.array($M)}),ZM=ee.object({color:ee.string()}),VM=ee.object({url:ee.string(),color:ee.string().optional(),opacity:ee.number().optional(),material:ee.record(ee.string(),ZM).optional()});function I6(e,r,t){ee.union([ee.number(),ee.string()]).parse(e),GM.parse(r),VM.parse(t)}o(I6,"validateModelGroup");var rc,nc,ic,Bu,Tn,Pg=class Pg{constructor(r){h(this,"mesh");h(this,"type","model");h(this,"positionDirty",!0);h(this,"outline");h(this,"geometry");h(this,"material");h(this,"feature");h(this,"instanceIndex",-1);R(this,rc,!0);h(this,"color",new Bt);h(this,"clippingPlane");h(this,"position",new te);R(this,nc,0);R(this,ic,1);R(this,Bu,qt.GEOMETRY);R(this,Tn,!1);this.feature=r}get visible(){var r,t;return(t=(r=this.mesh)==null?void 0:r.visible)!=null?t:c(this,rc)}set visible(r){K(this,rc,r),this.mesh&&(this.mesh.visible=r)}setOpacity(){}setColor(){}get modelScene(){var r;return this.clippingPlane?(r=this.mesh)==null?void 0:r.children.find(t=>t.name!=="hole-fill-mesh"):this.mesh}get altitude(){return c(this,nc)}set altitude(r){this.modelScene&&(this.modelScene.position.z=r,K(this,nc,r))}getRotation(){return this.modelScene?[this.modelScene.rotation.x,this.modelScene.rotation.y,this.modelScene.rotation.z]:void 0}setRotation(r){this.modelScene&&this.modelScene.rotation.set(Me.degToRad(r[0]),Me.degToRad(r[1]),Me.degToRad(r[2]))}getScale(){return this.modelScene?[this.modelScene.scale.x,this.modelScene.scale.y,this.modelScene.scale.z]:void 0}setScale(r){var t;this.modelScene&&((t=this.modelScene)==null||t.scale.set(r[0],r[1],r[2]))}get opacity(){return c(this,ic)}set opacity(r){var t,n,i;if(this.mesh){if(this.mesh.children[0]instanceof Gn){for(let a of this.mesh.children)if(a instanceof Gn){((t=a.userData)==null?void 0:t.originalOpacity)===void 0&&(a.userData.originalOpacity=a.material.opacity);let u=ko(r,0,(n=a.userData)==null?void 0:n.originalOpacity,0,1);a.material.opacity=u,a.material.transparent=u<1,a.material.needsUpdate=!0}}else(i=this.mesh)==null||i.traverse(a=>{a instanceof _e&&a.material&&(Array.isArray(a.material)?a.material.forEach(u=>{E6(u,r)}):E6(a.material,r))});K(this,ic,r)}}get renderOrder(){return c(this,Bu)}set renderOrder(r){var t;if(!(!this.mesh||r===c(this,Bu)))if(K(this,Bu,r),this.mesh.children[0]instanceof Gn){this.mesh.renderOrder=r;for(let n of this.mesh.children)n instanceof Gn&&(n.material.depthWrite=!c(this,Tn),n.material.depthTest=!c(this,Tn),n.material.needsUpdate=!0)}else(t=this.mesh)==null||t.traverse(n=>{n instanceof _e&&n.material&&(n.renderOrder=r,Array.isArray(n.material)?n.material.forEach(i=>{i.depthWrite=!c(this,Tn),i.depthTest=!c(this,Tn),i.needsUpdate=!0}):(n.material.depthWrite=!c(this,Tn),n.material.depthTest=!c(this,Tn),n.material.needsUpdate=!0))})}get visibleThroughGeometry(){return c(this,Tn)}set visibleThroughGeometry(r){K(this,Tn,r)}};rc=new WeakMap,nc=new WeakMap,ic=new WeakMap,Bu=new WeakMap,Tn=new WeakMap,o(Pg,"ModelComponent");var bo=Pg;function E6(e,r){e.opacity!==r&&(r===1?(e.opacity=1,e.transparent=!1):(e.opacity=r,e.transparent=!0),e.needsUpdate=!0)}o(E6,"updateMaterialOpacity");l();function vm(e){var s,d;let r=e.components[0],t=e.components[1];t.opacity!=null&&t.opacity!==r.opacity&&(r.opacity=t.opacity);let n=t.material,i=t.color;if(n||i){let m=WM(i,n);(s=r.mesh)==null||s.traverse(p=>{p instanceof _e&&p.material&&(Array.isArray(p.material)?p.material.forEach(g=>{m[g.name]?(g.color.set(m[g.name].color),g.vertexColors=!1):g.color.set(i)}):m[p.material.name]?(p.material.color.set(m[p.material.name].color),p.material.vertexColors=!1):p.material.color.set(i))})}let a=(d=r.feature.geometry.coordinates[2])!=null?d:0,u=t.verticalOffset+a;r.altitude!==u&&(r.altitude=u),t.visible!==r.visible&&(r.visible=t.visible),t.rotation&&r.setRotation(t.rotation),t.scale&&r.setScale(t.scale),t.visibleThroughGeometry!==r.visibleThroughGeometry&&(r.visibleThroughGeometry=t.visibleThroughGeometry)}o(vm,"applyModelGeometryStyle");function WM(e,r){let t={};if(r)for(let n in r)r[n].color&&(t[n]={color:r[n].color});if(e){let n=["Default","Fabric","Mpdn_Logo","CouchLogo"];for(let i of n)t[i]||(t[i]={color:e})}return t}o(WM,"consolidateColorAndMaterial");function C6(e,r){var u,s;let t=e.components[0],i=(u=e.components[1].verticalOffset)!=null?u:0,a=t.feature.geometry.coordinates.slice();a[2]=((s=a[2])!=null?s:0)+i,t.mesh?t.mesh.position.copy(r(a)):t.position.copy(r(a))}o(C6,"applyModelPosition");function Ui(e){return e instanceof zt?e.material:null}o(Ui,"getMaterial");function D6(e){return e.side===qu?"back":e.side===Oo?"front":"double"}o(D6,"getMaterialSide");function S6(e,r){e.side=r==="back"?qu:r==="front"?Oo:fi}o(S6,"setMaterialSide");function HM(e){let r=e[1],t=e[6],{opacity:n}=r!=null?r:{},{texture:i,topTexture:a}=t!=null?t:{};return"".concat(n).concat((i==null?void 0:i.path)||"").concat((a==null?void 0:a.path)||"")}o(HM,"generateIndex");var Fg=class Fg extends Ae{constructor(t,n){super();h(this,"state");h(this,"convertTo3DMapPosition");h(this,"loader");h(this,"optimizePromise",[]);this.state=t,this.convertTo3DMapPosition=n}async getGLTFLoader(){if(this.loader)return this.loader;let{GLTFLoader:t}=await import("./GLTFLoader-PXZYSKBG.js");return this.loader=new t,this.loader}createEntityFromFeature(t,n,i){var p,g,b,v;let a=new zt(n),u=(p=n==null?void 0:n.properties)==null?void 0:p.bevel,s=i&&"bevel"in i?i.bevel:void 0,d;s?d=N(N({},u),s):u&&(d=u);let m=new at(a,new Wn(Ce(N({},i),{url:(b=(g=n.properties)==null?void 0:g.image)==null?void 0:b.path,bevel:d})));return i!=null&&i.outline&&(m.components[3]=new R4(U4(i.color))),i!=null&&i.focusable&&(m.components[4]=new V4),((v=n.properties)==null?void 0:v.textures)!=null&&Array.isArray(n.properties.textures)&&n.properties.textures.length>0?m.components[6]=new Lo(n.properties.textures.find(C=>C.face==="side"),n.properties.textures.find(C=>C.face==="top")):(i!=null&&"texture"in i&&i.texture!=null||i!=null&&"topTexture"in i&&i.topTexture!=null)&&(m.components[6]=new Lo(i.texture,i.topTexture)),m.id=t,m}createModelFromFeature(t,n,i){let a=new bo(n),u=N({},i);n.properties.verticalOffset!=null&&(u.verticalOffset=n.properties.verticalOffset),n.properties.rotation!=null&&(u.rotation=n.properties.rotation),n.properties.scale!=null&&(u.scale=n.properties.scale);let s=new el(u),d=new at(a,s);return d.id=t,d}populateEntityMesh(t,n){let i=t.components[0];i.geometry=n,i.batchedProps={range:{start:0,count:1/0,indexCount:1/0,indexStart:0,vertexCount:1/0,vertexStart:0,reservedVertexCount:1/0,reservedIndexCount:1/0},geometryId:-1,positionCount:n.attributes.position.count},i.currentHeight=t.components[1].height,i.dirty=!1}async populateModelGroup(t,n,i){let a=new wr,u=new va,s=new Nc,d=new te,m=new Qi,p=await this.getGLTFLoader(),g=new Promise(b=>{let v=o(C=>{"entities3D"in i.userData&&(i.userData.entities3D.size>1?C.scene.traverse(A=>{let x=A;if("isMesh"in x&&x.isMesh===!0){let E=new Gn(x.geometry,x.material,t.size);E.userData={entities:{}},m.add(E),i.add(m)}}):(C.scene.traverse(A=>{"isMesh"in A&&A.isMesh===!0&&(A.position.set(0,0,0),A.rotation.set(0,0,0),A.scale.set(1,1,1),A.updateMatrix())}),m.add(C.scene),i.add(m),m.userData.isSingleModel=!0,m.userData.entityId=t.values().next().value,m.userData.type="model")),b()},"processGLTF");z4(n)?p.parse($4(n),"",v):G4(n)?p.parse(Z4(n),"",v):p.load(n,v)});return this.optimizePromise.push(g.then(()=>{var C,A,x,E,S,D,I,T,V,$,O,M;let b=0,v;for(let Z of t.values()){if(v=this.state.geometry3DMap.get(Z),!v||(v==null?void 0:v.type)!=="model")continue;let z=v.components[0],re=v.components[1],k=v.components[0].feature;z.mesh=m,z.instanceIndex=b,vm(v),v.components[1].dirty=!1;let{x:H,y:q}=this.convertTo3DMapPosition(k.geometry.coordinates[1],k.geometry.coordinates[0],0);z.position.set(H,q,z.altitude),u.set(Me.degToRad((A=(C=re.rotation)==null?void 0:C[0])!=null?A:Ma[0]),Me.degToRad((E=(x=re.rotation)==null?void 0:x[1])!=null?E:Ma[1]),Me.degToRad((D=(S=re.rotation)==null?void 0:S[2])!=null?D:Ma[2])),d.set((T=(I=re.scale)==null?void 0:I[0])!=null?T:Oa[0],($=(V=re.scale)==null?void 0:V[1])!=null?$:Oa[1],(M=(O=re.scale)==null?void 0:O[2])!=null?M:Oa[2]),s.setFromEuler(u),a.compose(z.position,s,d),m.children.forEach(G=>{!v||(v==null?void 0:v.type)!=="model"||!(G instanceof Gn)||(G.setMatrixAt(b,a),G.userData.entities[b]=v.id)}),z.mesh.userData.isSingleModel&&(z.mesh.matrix.copy(a),z.mesh.matrix.decompose(z.mesh.position,z.mesh.quaternion,z.mesh.scale)),b++}this.publish("model-loaded")})),m}populateEntityGroup(t){var s;let n,i,a,u;for(let d of t.values())u=this.state.geometry3DMap.get(d),u.components[0]instanceof zt&&(i=u.components[0].feature,a=u.components[1],i.geometry.type==="Polygon"?(n=ym(i,this.convertTo3DMapPosition,a),(s=i.properties)!=null&&s.textures&&i.properties.textures.length>0&&j4(n,i.properties.textures,this.state.naturalBearing,this.convertTo3DMapPosition),this.populateEntityMesh(u,n)):i.geometry.type==="MultiPolygon"?(n=bm(i,this.convertTo3DMapPosition,a),this.populateEntityMesh(u,n)):i.geometry.type==="LineString"?(n=mb(i,this.convertTo3DMapPosition,a),this.populateEntityMesh(u,n)):i.geometry.type==="MultiLineString"&&(n=x6(i,this.convertTo3DMapPosition,a),this.populateEntityMesh(u,n)));return t}update(){var t;for(let n of this.state.geometryGroupIdsToLoad.values()){let i=this.state.geometry3DMap.get(n);if(i instanceof Hn&&i.userData.dirty){if(i.userData.modelURL)i.userData.modelURL&&(this.populateModelGroup(i.userData.entities3D,i.userData.modelURL,i),i.userData.dirty=!1);else try{this.populateEntityGroup(i.userData.entities3D)}catch(s){Se.warn(s)}let a,u={};for(let s of i.userData.entities3D.values()){a=this.state.geometry3DMap.get(s);let d=a==null?void 0:a.components[0];if((a==null?void 0:a.type)==="geometry"){let m=HM(a.components);u[m]===void 0&&(u[m]={style:a.components[1],entities:[]}),u[m].entities.push(a)}else d&&"mesh"in d&&d.mesh&&((t=d.mesh)==null?void 0:t.parent)!==i&&i.add(d.mesh)}for(let s in u){let d=N4(u[s].entities,u[s].style);i.add(d)}for(let s of i.userData.entities3D.values())if(a=this.state.geometry3DMap.get(s),a!=null&&a.entities2D.size>0)for(let d of a.entities2D.values())d&&(a.attach(d),this.publish("geometry-2d-added"));this.publish("geometry-group-added"),i.userData.dirty=!1}}return Promise.resolve()}};o(Fg,"MeshCreationAndOptimizationSystem");var xm=Fg;l();var Bg=class Bg{constructor(r,t){h(this,"state");h(this,"dirty",!0);h(this,"domTree");this.state=r,this.domTree=t}update(){if(this.dirty){let r;for(let t of Array.from(this.domTree.children))if(r=this.state.geometry2DMap.get(t.userData.entityId),r){let n=r.components[0];(!n.enabled||!n.visible||!this.state.geometry2DIdsInScene.has(t.userData.entityId))&&this.domTree.removeChild(t)}else this.domTree.removeChild(t);for(let t of this.state.geometry2DIdsInScene)if(r=this.state.geometry2DMap.get(t),r){let n=r.components[0];n instanceof gi&&n.enabled&&n.markerContainer&&!this.domTree.contains(n.markerContainer)&&(n.markerContainer.userData={entityId:r.id},this.domTree.appendChild(n.markerContainer),n.updateDimensionsIfZeroWidthHeight())}this.dirty=!1}}};o(Bg,"DOMVisibilitySystem");var Em=Bg;l();var Og=class Og{constructor(r,t){h(this,"state");h(this,"project");this.state=r,this.project=t}update(){let r=0,t=0,n,i;for(let a of this.state.geometry2DsInScene){i=a.components[0];let u=a.attachedTo?this.state.geometry3DMap.get(a.attachedTo):void 0;if(u instanceof at)if(this.state.geometry3DsInScene.has(u)){n=u.components[1],i=a.components[0],(n.dirty||a.components[0].attachedDirty)&&(r=n.height,t=n.altitude,a.setAltitude(r+t));let s=n.visible;i.visible!==s&&(i.visible=s)}else i.visible===!0&&(i.visible=!1);this.project(a.components[0].projection,a.position),a.components[0].attachedDirty=!1}}};o(Og,"TwoDProjectionSystem");var Im=Og;l();l();l();var KM=o(function(){let r,t;return n=>{if((!t||!t)&&(r=document.createElement("canvas"),r.width=500*n,r.height=500*n,r.style.width="500px",r.style.height="500px",t=r.getContext("2d")),!t)throw new Error("Could not get 2D context");return{measureCanvas:r,measureCanvasContext:t}}},"createMeasureCanvasContext")(),w6=o(({text:e,size:r,maxWidth:t,pixelRatio:n,maxLines:i=2,lineHeight:a=1.2,options:u={strokeText:!0}})=>{let s="bold ".concat(r*n,"px 'InterUI-Regular', Helvetica Neue, Arial, sans-serif"),{measureCanvasContext:d}=KM(n);d.font=s;let m=[],p=e.split(" "),g=0,b=0,v=0;for(;b<p.length;){let E=p[b];if(g===i&&g>0){m[g-1]+="...";break}if(m[g]==null&&(m[g]=E,b++),p.length===1){m[g]=E;break}if(p[b]==null)break;let{width:S}=d.measureText(m[g]+" "+p[b]);S<=t*n?(m[g]+=" "+p[b],b++):g++}m.forEach(E=>{let{width:S}=d.measureText(E);v=Math.max(S,v)});let C=r*n*a,A=m.length*C;return{maxWidth:v,maxHeight:A,lines:m.length,draw:o((E,S,D)=>{m.length===1?(u.strokeText&&E.strokeText(m[0],S,D),E.fillText(m[0],S,D)):(u.strokeText&&(E.strokeText(m[0],S,D-C/2),E.strokeText(m[1],S,D+C/2)),E.fillText(m[0],S,D-C/2),E.fillText(m[1],S,D+C/2))},"draw")}},"shaveText");l();function A6(e){let r=new Image;return e&&(/<svg[\s\S]*>/i.test(e)?r.src="data:image/svg+xml;base64,".concat(btoa(e)):r.src=e),r}o(A6,"createImage");l();var qM=(()=>{let e;return{getDeviceType(){if(e)return e;let{userAgent:r,platform:t,maxTouchPoints:n}=window.navigator,i=/(iphone|ipod|ipad)/i.test(r),a=t==="iPad"||t.indexOf("Mac")===0&&n>0&&!window.MSStream,u=/android/i.test(r);return e={isIpad:a,isMobile:u||i||a,isIOS:i,isAndroid:u,isSafari12:/Version\/12.+Safari/.test(r),isFirefox:/Firefox/.test(r),isWindows:/windows/i.test(r)},e},_reset(){e=void 0}}})(),P6=qM.getDeviceType,F6=(()=>{let e,r,t;function n(){if(r!==void 0)return r;e||(e=document.createElement("canvas"));let a=e.getContext("webgl")||e.getContext("experimental-webgl");if(!a)return r;try{let u=P6().isFirefox?null:a.getExtension("WEBGL_debug_renderer_info");return r=u?a.getParameter(u.UNMASKED_RENDERER_WEBGL):a.getParameter(a.RENDERER),r}catch(u){let s=new Error("Failed getting device info");throw s.name="FailedGettingDeviceInfo",s}}o(n,"getInfo");function i(){var u,s;if(!P6().isWindows)return!1;if(t!==void 0)return t;let a=(s=(u=XM())==null?void 0:u.toLowerCase())!=null?s:"";return t=a.includes("intel")&&(a.includes("uhd")||a.includes("iris")),t}return o(i,"shouldDisableOffscreenCanvas"),{getInfo:n,shouldDisableOffscreenCanvas:i,_setCanvas(a){e=a,r=void 0,t=void 0}}})(),XM=F6.getInfo,B6=F6.shouldDisableOffscreenCanvas;var Tg=class Tg extends Ae{constructor(t,n,i){super();h(this,"dirty",!1);h(this,"state");h(this,"colliderContext");h(this,"colliderCanvas");h(this,"transformRequestFunc");h(this,"transformRequest",o(async t=>this.transformRequestFunc?await this.transformRequestFunc(t):{url:t},"transformRequest"));h(this,"pinCache",{});h(this,"imageCache",{});h(this,"imagePromiseCache",{});h(this,"imageDimensionsCache",{});h(this,"textCache",{});h(this,"update",o(t=>{let n=this.state.pixelRatio;this.colliderContext.clearRect(0,0,this.colliderCanvas.width,this.colliderCanvas.height);let i,a,u,s,d,m;for(let p of this.state.geometry2DsInScene)if((p==null?void 0:p.components[0])instanceof hi&&!p.disposed){if(m=p.components[0],d=m.appearance.iconVisible,m.appearance.icon!=null&&d!=null){let b=typeof d=="boolean"?d:t>=d;b!==m.iconVisible&&(m.iconVisible=b,m.dirty=!0)}if((m.pinDirty||m.dirty||this.dirty)&&m.calculatePinSize(),m.offscreen||!m.visible)continue;if(a={active:m.appearance.pinColor,inactive:m.appearance.pinColorInactive},u={active:m.appearance.pinOutlineColor,inactive:m.appearance.pinOutlineColorInactive},s=Zp(m.pinSize),i="".concat(a.active,"-").concat(a.inactive,"-").concat(u.active,"-").concat(u.inactive,"-").concat(s,"-").concat(m.iconVisible),m.labelCacheId=i,(!this.pinCache[i]||this.dirty)&&(this.prepare(m,i,this.colliderContext),m.dirty=!0),(m.appearance.icon&&(!m.imageHash||m.pinDirty)||this.dirty)&&this.cacheImage(m),this.textCache[m.id]==null||m.textDirty||this.dirty){m.dirty=!0,this.textCache[m.id]={};let{textDrawFn:b,width:v,height:C}=this.processText(m.text,m.appearance.textSize,m.appearance.maxWidth,m.appearance.maxLines,m.appearance.lineHeight);["left","center","right"].forEach(A=>{this.textCache[m.id][A]=this.textToCanvas(b,m.appearance.textSize,A,v,C,m.appearance.textColor,m.appearance.textOutlineColor)}),m.dimensions={width:Math.ceil(v/n),height:Math.ceil(C/n)}}let g=1;if(m.appearance.iconScale)if(typeof m.appearance.iconScale=="number")g=m.appearance.iconScale;else{let{on:b,input:v,output:C,easing:A}=m.appearance.iconScale;b==="zoom-level"?g=Zp(E4(t,v,C,A!=null?A:"linear")):Se.warn("Unsupported interpolation property: ".concat(b))}m.recomputeCurrentStrategy(m.iconVisible?g:1),m.canShow&&(m.enabled||m.visibilityNeedsUpdate!==!1)&&this.draw(m,i,this.colliderContext),m.textDirty=!1,m.pinDirty=!1}this.dirty=!1},"update"));h(this,"processText",o((t,n,i,a,u)=>{let s=this.state.pixelRatio,{draw:d,maxWidth:m,maxHeight:p}=w6({text:t,size:n,pixelRatio:s,maxWidth:i,maxLines:a,lineHeight:u});return{textDrawFn:d,width:m+2.5*s*2,height:p+2.5*s*2}},"processText"));h(this,"textToCanvas",o((t,n,i,a,u,s,d)=>{let m=this.state.pixelRatio,p,g=a,b=u;window.OffscreenCanvas!=null&&!B6()?p=new OffscreenCanvas(g,b):(p=document.createElement("canvas"),p.width=g,p.height=b,p.style.width=g+"px",p.style.height=b+"px");let v=p.getContext("2d",{willReadFrequently:!0});if(!v)return;let C=2.5*m;v.textAlign=i,v.font="bold ".concat(n*m,"px 'InterUI-Regular', Helvetica Neue, Arial, sans-serif"),v.textBaseline="middle",v.lineJoin="miter",v.miterLimit=2,v.strokeStyle="white",v.lineWidth=C,v.fillStyle=s,v.strokeStyle=d;let A=i==="left"?C/2:i==="center"?g/2:g-C/2;return t(v,A,(b+C/2)/2),p},"textToCanvas"));h(this,"cacheImage",o(t=>{if(!t.appearance.icon)return;let n=F4(t.appearance.icon);this.imagePromiseCache[n]||(this.imagePromiseCache[n]=new Promise(i=>{this.transformRequest(t.appearance.icon).then(a=>{let u=A6(a.url);u.onload=()=>{this.imageCache[n]=u,this.publish("img:loaded"),i(u)}})})),t.imageHash!==n&&(t.imageHash=n,this.imagePromiseCache[n].then(()=>{t.dirty=!0}))},"cacheImage"));h(this,"createPinCanvas",o((t,n,i,a,u=1)=>{let s,d=this.state.pixelRatio,m=t.totalPinSize*2*d*u;window.OffscreenCanvas!=null?s=new OffscreenCanvas(m,m):(s=document.createElement("canvas"),s.width=m,s.height=m,s.style.width=m/d+"px",s.style.height=m/d+"px");let p=s.getContext("2d");return p.shadowColor="rgba(0,0,0,0.3)",p.shadowOffsetY=2*d,p.shadowBlur=5*d,p.beginPath(),p.arc(m/2,m/2,(n/2+2.5*d/2)*u,0,2*Math.PI),p.fillStyle=i,p.fill(),p.beginPath(),p.arc(m/2,m/2,n/2*u,0,2*Math.PI),p.shadowColor="transparent",p.fillStyle=a,p.fill(),s},"createPinCanvas"));h(this,"prepare",o((t,n,i)=>{let a=this.state.pixelRatio;i.lineWidth=4*a;let u=typeof t.appearance.iconScale=="number"?[t.appearance.iconScale]:t.appearance.iconScale==null?[]:t.appearance.iconScale.output,s=u.length>0?Math.max(...u):void 0,d=this.createPinCanvas(t,t.pinSize,t.appearance.pinOutlineColor,t.appearance.pinColor,s),m=this.createPinCanvas(t,3.5*a,t.appearance.pinOutlineColorInactive,t.appearance.pinColorInactive,s);this.pinCache[n]=[d,m]},"prepare"));this.state=t,this.colliderCanvas=n,this.colliderContext=n.getContext("2d"),this.transformRequestFunc=i}draw(t,n,i){var p;if(!t.canShow||!t.visible)return;i.save(),i.globalAlpha=t.currentOpacity;let a=this.state.pixelRatio,u=t.projection.x*a,s=t.projection.y*a,d=t.style.pinVisibility===1?this.pinCache[n][0]:this.pinCache[n][1],m=t.style.pinVisibility===1?t.scaledPinSize*a:t.totalPinSize*a;if(t.style.pinVisibility!==0&&i.drawImage(d,u-m,s-m,m*2,m*2),t.appearance.icon&&t.iconVisible&&t.imageHash&&t.appearance.iconSize&&this.imageCache[t.imageHash]&&t.style.pinVisibility===1){let g=this.imageCache[t.imageHash],b=(t.scaledPinSize-t.scaledIconPadding)*a,v=t.appearance.iconFit,C=b,A=b,x="".concat(t.imageHash,"_").concat(v);if(this.imageDimensionsCache[x])C=this.imageDimensionsCache[x].width,A=this.imageDimensionsCache[x].height;else{let E=g.width*a,S=g.height*a;if(v==="contain"){let D=Math.sqrt(E**2+S**2),I=b/D;C=E*I,A=S*I}if(v==="cover"){let D=b/E,I=b/S,T=Math.max(D,I);C=E*T,A=S*T}}i.save(),i.beginPath(),i.arc(u,s,b/2,0,2*Math.PI),i.closePath(),((p=t==null?void 0:t.appearance)==null?void 0:p.iconOverflow)!=="visible"&&i.clip(),i.drawImage(g,u-C/2,s-A/2,C,A),i.restore()}t.style.textLabelVisible&&t.style.textAlign!=null&&t.style.left!=null&&t.style.top!=null&&i.drawImage(this.textCache[t.id][t.style.textAlign],u+t.style.left*a,s+t.style.top*a),i.restore()}};o(Tg,"TwoDDrawSystem");var Cm=Tg;l();function t7(e,r){let t=e.components[2],n=e.components[1];return t!=null&&t.hover?[n.hoverColor||r,n.hoverColor||r]:[n.color,n.topColor||n.color]}o(t7,"processColor");var kg=class kg{constructor(r,t){h(this,"state");h(this,"convertTo3DMapPosition");this.convertTo3DMapPosition=t,this.state=r}determineTextureVisiblity(r,t,n){let i=Ui(r);((i==null?void 0:i.texture)!=null||(i==null?void 0:i.topTexture)!=null)&&(n!=null&&n.hover&&i.texturesVisible?i.hideTextures(r.instanceIndex):i.texturesVisible||i.showTextures(r.instanceIndex),t.texture==null&&i.removeSideTexture(r.instanceIndex),t.topTexture==null&&i.removeTopTexture(r.instanceIndex))}update(){var n,i,a,u,s,d,m,p,g,b,v,C,A,x,E,S,D,I,T,V,$;let r,t;for(let O of this.state.geometry3DsInScene)if((O.type==="geometry"||O.type==="custom-geometry")&&((n=O.components[1])!=null&&n.dirty||(i=O.components[2])!=null&&i.dirty)){let M=O.components[0],Z=O.components[1];t=O.components[2];let z=t7(O,this.state.hoverColor);M.setColor(z[0],z[1]);let re=Ui(M);if(Z.visible!==M.visible&&(M.visible=Z.visible,M instanceof zt&&M.textMesh)){let H=this.state.geometry3DMap.get(M.textMesh.userData.entityId);(H==null?void 0:H.type)==="text3d"&&H.components[0].polygonEntityId!=null&&(H.components[0].visible=Z.visible)}Z.altitude!==M.altitude&&(M.altitude=Z.altitude);let k=Z.opacity*Fa(O);if(k!==M.opacity&&(M.opacity=k),Z.renderOrder!==M.renderOrder&&(M.renderOrder=Z.renderOrder),re&&Z.side!==D6(re)&&S6(re,Z.side),M instanceof zt&&Z.shading!=null&&(((a=Z.shading)==null?void 0:a.start)!==((u=Ui(M))==null?void 0:u.getGradientShading().start)||((s=Z.shading)==null?void 0:s.end)!==((d=Ui(M))==null?void 0:d.getGradientShading().end)||((m=Z.shading)==null?void 0:m.intensity)!==((p=Ui(M))==null?void 0:p.getGradientShading().intensity))&&((E=Ui(M))==null||E.setGradientShading((b=(g=Z.shading)==null?void 0:g.start)!=null?b:0,(C=(v=Z.shading)==null?void 0:v.end)!=null?C:0,(x=(A=Z.shading)==null?void 0:A.intensity)!=null?x:0)),Z.dirty=!1,M instanceof zt){let H=O.components[6];H instanceof Lo&&this.determineTextureVisiblity(M,H,t)}O.components[2]&&(O.components[2].dirty=!1)}else if((O==null?void 0:O.type)==="model")O.components[1].dirty&&(vm(O),O.components[1].dirty=!1),O.components[0].positionDirty&&(C6(O,this.convertTo3DMapPosition),O.components[0].positionDirty=!1);else if((O==null?void 0:O.type)==="image"&&((S=O.components[1])!=null&&S.dirty)){r=O.components[0];let M=O.components[1];M.visible!==r.visible&&(r.visible=M.visible),M.dirty=!1}else if((O==null?void 0:O.type)==="text3d"&&((D=O.components[1])!=null&&D.dirty)&&O.components[0].polygonEntityId!=null){r=O.components[0];let M=O.components[1];M.visible!=null&&M.visible!==r.visible&&(r.visible=M.visible);let{textMesh:Z}=r;if(Z){Object.assign(Z,M.getState());let z=(I=M.hoverColor)!=null?I:this.state.text3dHoverColor;Z.color=M.hoverByPolygon?z:(T=M.color)!=null?T:Ba.color,Z.outlineColor=M.hoverByPolygon?z:(V=M.outlineColor)!=null?V:Ba.outlineColor,Z.strokeColor=M.hoverByPolygon?z:($=M.strokeColor)!=null?$:Ba.strokeColor}M.dirty=!1}}};o(kg,"DrawSystem");var Dm=kg;l();var _g=class _g extends Ae{constructor(t){super();h(this,"state");h(this,"animating",new Map);h(this,"isAnimating",!1);h(this,"startTime",-1);h(this,"showDuration",300);h(this,"hideDuration",250);h(this,"update",o(()=>{var i;this.animating.clear();let t,n;for(let a of this.state.geometry2DIdsInScene)t=this.state.geometry2DMap.get(a),t&&(n=t.components[0],n instanceof hi&&(n.visibilityNeedsUpdate==="show"?(n.canShow=!0,this.animating.set(n,[n.currentOpacity,(i=n.appearance.opacity)!=null?i:1])):n.visibilityNeedsUpdate==="hide"&&this.animating.set(n,[n.currentOpacity,0])));this.startTime=performance.now(),this.publish("animate:2d")},"update"));h(this,"playAnimations");this.state=t,this.playAnimations=this._playAnimations}_playAnimations(){let t=performance.now();for(let[n,[i,a]]of this.animating.entries()){let u=a===1?this.showDuration:this.hideDuration,s=(t-this.startTime)/u;n.currentOpacity=ko(s,0,1,i,a,a===0?b4:v4),t-this.startTime>=u&&(a===1?n.canShow=!0:a===0&&(n.canShow=!1),n.visibilityNeedsUpdate=!1,this.animating.delete(n))}this.publish("draw:2d"),this.animating.size>0&&this.publish("animate:2d")}};o(_g,"TwoDVisibilitySystem");var Sm=_g;l();var Lg=class Lg extends Ae{constructor(t,n,i,a,u,s,d){super();h(this,"state");h(this,"renderer");h(this,"mode");h(this,"scene");h(this,"cameraObject");h(this,"viewCamera");h(this,"systems");h(this,"needs2DRecompute",!1);h(this,"twoDdirty",!0);h(this,"threeDdirty",!0);h(this,"frameId",null);h(this,"twoDFrameId",null);h(this,"animationFrameId",null);h(this,"nextFrame",null);h(this,"updateEntitiesFrameId",null);h(this,"update",o((t=!1)=>{var n;if(((n=this.renderer)==null?void 0:n.renderer)==null)return Promise.resolve();if(t){this.renderer.startFrame();let i=this.commitRenderState();return this.paint(),i}else return this.frameId?Promise.resolve():new Promise((i,a)=>{this.frameId=requestAnimationFrame(()=>{var u,s;return((u=this.renderer)==null?void 0:u.renderer)==null?i():this.mode==="standalone"?(this.renderer.startFrame(),(s=this.commitRenderState())==null?void 0:s.then(()=>{this.paint(),i()}).catch(d=>{a(d)})):i()})})},"update"));h(this,"animate2D",o(()=>{this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),this.animationFrameId=requestAnimationFrame(()=>{this.animationFrameId=null,this.systems.twoDVisiblitySystem.playAnimations()})},"animate2D"));h(this,"drawEntities2D",o(()=>{this.twoDFrameId&&(cancelAnimationFrame(this.twoDFrameId),this.twoDFrameId=null),this.twoDFrameId=requestAnimationFrame(()=>{this.twoDFrameId=null,this.systems.twoDDrawSystem.update(this.systems.cameraSystem.getZoomLevel()),this.systems.domDrawSystem.update(this.systems.cameraSystem.isUserInteracting())})},"drawEntities2D"));h(this,"updateEntities2D",o(()=>{this.updateEntitiesFrameId&&(cancelAnimationFrame(this.updateEntitiesFrameId),this.updateEntitiesFrameId=null),this.updateEntitiesFrameId=requestAnimationFrame(()=>{this.updateEntitiesFrameId=null,this.systems.watermarkSystem.insertIntoQuadTree(this.systems.collisionSystem.interactiveCollidersQTree),this.systems.interactionSystem.updateQuadtree(this.systems.collisionSystem.interactiveCollidersQTree),this.systems.twoDVisiblitySystem.update(),this.drawEntities2D()})},"updateEntities2D"));h(this,"commitRenderState",o(()=>{try{let t=[];this.frameId=null,this.publish("pre-render"),this.state.internalTweenGroup.update(),this.state.externalTweenGroup.update(),(this.mode==="outdoors-interleaved"||this.mode==="standalone")&&this.systems.cameraSystem.update(),this.state.shouldMeasureCanvas&&(this.state.shouldMeasureCanvas=!1,this.publish("measure-canvas")),this.twoDdirty&&(this.state.geometry2DIdsInScene.clear(),this.state.geometry2DsInScene.clear(),P4(this.state.geometryScene,this.state.geometry2DMap,this.state.geometry2DIdsInScene,this.state.geometry2DsInScene),this.systems.domVisiblitySystem.dirty=!0,this.systems.collisionSystem.collidersDirty=!0,this.systems.domMutationSystem.dirty=!0,this.systems.panBoundsSystem.dirty=!0,this.twoDdirty=!1),this.threeDdirty&&(this.state.geometry3DIdsInScene.clear(),this.state.geometry3DsInScene.clear(),this.state.geometryGroupIdsToLoad.clear(),A4(this.state.geometryScene,this.state.geometry3DMap,this.state.geometry3DIdsInScene,this.state.geometry3DsInScene,this.state.geometryGroupIdsToLoad),this.systems.interactionSystem.dirty3D=!0,this.systems.panBoundsSystem.dirty=!0,this.systems.outlineInterpolationSystem.geometries3DDirty=!0,this.systems.geometryInFocusSystem.focusablesDirty=!0,this.threeDdirty=!1);let n=this.systems.meshOptimizationSystem.update();n&&t.push(n),this.systems.borderSystem.update(),this.systems.meshModificationSystem.update(),this.systems.meshDetachmentSystem.update(),this.systems.renderOrderSystem.update(),this.systems.clippingPlaneSystem.update(),this.systems.imageSystem.update(this.systems.cameraSystem.getRotation()),t.push(this.systems.text3DSystem.update(this.systems.cameraSystem.getRotation())),this.systems.customGeometrySystem.update(),this.systems.panBoundsSystem.update(),this.systems.geometryInFocusSystem.update(this.systems.cameraSystem.isCameraMoving(),this.systems.cameraSystem.lastCameraStoppedMovingTime()),this.systems.outlineInterpolationSystem.update(this.systems.cameraSystem.getZoomLevel(),this.systems.cameraSystem.zoomDirty),this.systems.pathSystem.update(this.systems.cameraSystem.minZoomAltitude,this.systems.cameraSystem.maxZoomAltitude,this.systems.cameraSystem.getZoomAltitude()),this.systems.cameraSystem.postRender(),this.systems.domVisiblitySystem.update(),this.systems.domMutationSystem.update(),this.systems.twoDProjectionSystem.update(),this.systems.occlusion2DSystem.update(),this.twoDFrameId&&(cancelAnimationFrame(this.twoDFrameId),this.twoDFrameId=null),this.systems.twoDDrawSystem.update(this.systems.cameraSystem.getZoomLevel()),this.systems.domDrawSystem.update(this.systems.cameraSystem.isUserInteracting()),this.systems.watermarkSystem.update();let i=this.needs2DRecompute;return this.nextFrame=requestAnimationFrame(()=>{this.nextFrame=null,this.systems.collisionSystem.update(this.systems.watermarkSystem.width,this.systems.watermarkSystem.height,this.systems.watermarkSystem.options.position,!i&&this.systems.cameraSystem.isCameraMoving(),this.systems.imageSystem.currentImageScreenBBoxes)}),this.systems.textureSystem.update(),this.systems.pluginSystem.update(this.state),this.systems.drawSystem.update(),this.systems.geometryDisposalSystem.update(),this.systems.maskingSystem.update(),this.systems.cameraSystem.dirty=!1,this.systems.cameraSystem.zoomDirty=!1,this.systems.cameraSystem.rotationDirty=!1,this.systems.cameraSystem.stateDirty&&(this.publish("camera-state-change"),this.systems.cameraSystem.stateDirty=!1),this.publish("post-render"),this.needs2DRecompute=!1,Promise.all(t)}catch(t){return Promise.reject(t)}},"commitRenderState"));this.renderer=t,this.state=n,this.mode=i,this.scene=a,this.cameraObject=u,this.viewCamera=s,this.systems=d,this.systems.collisionSystem.on("visibility-changed",this.updateEntities2D,{signal:this.signal}),this.systems.twoDVisiblitySystem.on("draw:2d",this.drawEntities2D,{signal:this.signal}),this.systems.twoDVisiblitySystem.on("animate:2d",this.animate2D,{signal:this.signal}),this.systems.cameraSystem.on("pan-start",()=>this.needs2DRecompute=!1,{signal:this.signal}),this.systems.cameraSystem.on("zoom-start",()=>this.needs2DRecompute=!1,{signal:this.signal}),this.systems.cameraSystem.on("zoom-end",()=>this.needs2DRecompute=!0,{signal:this.signal}),this.systems.cameraSystem.on("rotate-start",()=>this.needs2DRecompute=!1,{signal:this.signal}),this.systems.cameraSystem.on("rotate-end",()=>this.needs2DRecompute=!0,{signal:this.signal})}paint(){var t;(t=this.renderer)!=null&&t.renderer&&(this.mode==="standalone"&&this.renderer.clear(),this.renderer.renderFullScene(this.scene,this.state.useStandaloneCamera||this.mode==="standalone"?this.cameraObject:this.viewCamera))}destroy(){this.frameId&&cancelAnimationFrame(this.frameId),this.twoDFrameId&&cancelAnimationFrame(this.twoDFrameId),this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),this.nextFrame&&cancelAnimationFrame(this.nextFrame),this.state.geometry2DIdsInScene.clear(),this.state.geometry3DIdsInScene.clear(),this.systems.domVisiblitySystem.dirty=!0,this.systems.collisionSystem.collidersDirty=!0,this.update(),super.destroy()}};o(Lg,"RenderSystem");var wm=Lg;l();var r7=ee.object({interactive:ee.boolean().optional(),id:ee.string().optional(),width:ee.union([ee.number(),ee.object({on:ee.literal("zoom-level").optional(),input:ee.array(ee.number()).nonempty(),output:ee.array(ee.number()).nonempty(),easing:ee.string().optional()})]).optional(),accentColor:ee.string().optional(),displayArrowsOnPath:ee.boolean().optional(),animateArrowsOnPath:ee.boolean().optional(),visibleThroughGeometry:ee.boolean().optional(),dashed:ee.boolean().optional(),smoothingTension:ee.number().optional(),smoothingCornerRadius:ee.number().optional(),dashLength:ee.number().optional(),dashGap:ee.number().optional(),dashRelativeToWidth:ee.boolean().optional(),dashSize:ee.number().optional(),gapSize:ee.number().optional(),dashAbsolute:ee.boolean().optional(),dashMeters:ee.number().optional(),gapMeters:ee.number().optional()}),n7=ee.object({type:ee.enum(["Feature"]),geometry:Fu,properties:ee.object({parentId:ee.any().optional()})});function O6(e,r){ee.object({features:ee.array(n7)}).parse(e),r7.parse(r)}o(O6,"validatePath");var oc,Rg=class Rg{constructor(r,t){h(this,"type","path");h(this,"mesh",new Qi);h(this,"material");h(this,"geometry");h(this,"outline");h(this,"feature");h(this,"options");h(this,"width",{on:"zoom-level",input:[17,22],output:[.8,.4]});h(this,"breakpoint",0);h(this,"altitudeBreakpoints");h(this,"accentColor","blue");h(this,"completeFraction",1);h(this,"altitudeAdjustment",1);h(this,"displayArrowsOnPath",!1);h(this,"animateArrowsOnPath",!1);h(this,"visibleThroughGeometry",!1);h(this,"highlightStartFraction",0);h(this,"highlightEndFraction",0);h(this,"highlightCompleteFraction",1);h(this,"highlightWidthMultiplier",1.1);h(this,"highlightColor","red");h(this,"xrayOpacity",.25);h(this,"dashed",!1);h(this,"smoothingTension",yi.tension);h(this,"smoothingCornerRadius",yi.cornerRadius);h(this,"dashLength",.1);h(this,"dashGap",.1);h(this,"dashRelativeToWidth",!1);h(this,"dashSize",3);h(this,"gapSize",2);h(this,"dashAbsolute",!1);h(this,"dashMeters",1);h(this,"gapMeters",.5);h(this,"isVertical",!1);h(this,"dirty",!0);h(this,"materialDirty",!0);h(this,"position",new te);R(this,oc,0);var n,i,a,u,s,d,m,p,g,b,v,C,A,x,E,S,D;this.feature=r,this.options=t||{},this.width=(n=t==null?void 0:t.width)!=null?n:this.width,this.accentColor=(i=t==null?void 0:t.accentColor)!=null?i:this.accentColor,this.displayArrowsOnPath=(a=t==null?void 0:t.displayArrowsOnPath)!=null?a:this.displayArrowsOnPath,this.animateArrowsOnPath=(u=t==null?void 0:t.animateArrowsOnPath)!=null?u:this.animateArrowsOnPath,this.visibleThroughGeometry=(s=t==null?void 0:t.visibleThroughGeometry)!=null?s:this.visibleThroughGeometry,this.dashed=(d=t==null?void 0:t.dashed)!=null?d:this.dashed,this.xrayOpacity=(m=t==null?void 0:t.xrayOpacity)!=null?m:this.xrayOpacity,this.smoothingTension=(p=t==null?void 0:t.smoothingTension)!=null?p:yi.tension,this.smoothingCornerRadius=(g=t==null?void 0:t.smoothingCornerRadius)!=null?g:yi.cornerRadius,this.dashLength=(b=t==null?void 0:t.dashLength)!=null?b:this.dashLength,this.dashGap=(v=t==null?void 0:t.dashGap)!=null?v:this.dashGap,this.dashRelativeToWidth=(C=t==null?void 0:t.dashRelativeToWidth)!=null?C:this.dashRelativeToWidth,this.dashSize=(A=t==null?void 0:t.dashSize)!=null?A:this.dashSize,this.gapSize=(x=t==null?void 0:t.gapSize)!=null?x:this.gapSize,this.dashAbsolute=(E=t==null?void 0:t.dashAbsolute)!=null?E:this.dashAbsolute,this.dashMeters=(S=t==null?void 0:t.dashMeters)!=null?S:this.dashMeters,this.gapMeters=(D=t==null?void 0:t.gapMeters)!=null?D:this.gapMeters}setColor(){}setOpacity(){}set visible(r){this.mesh&&(this.mesh.visible=r)}get visible(){return this.mesh?this.mesh.visible:!1}get altitude(){return c(this,oc)}set altitude(r){this.mesh&&(this.mesh.position.z=r,K(this,oc,r))}set complete(r){this.material&&(this.material.uniforms.complete.value=r,this.material.needsUpdate=!0)}};oc=new WeakMap,o(Rg,"PathComponent");var vo=Rg;l();var i7=300,o7=["running","paused"],ac,uc,Ng=class Ng{constructor(r){h(this,"state");R(this,ac,new te);R(this,uc,new te);this.state=r}update(r){let t;this.state.cameraObject.getWorldPosition(c(this,uc));for(let n of this.state.geometry2DsInScene)if(n&&(t=n.components[0],t&&"containerEl"in t&&t.markerContainer!=null)){t.visibilityNeedsUpdate!==!1&&(t.visibilityNeedsUpdate==="show"?t.canShow=!0:t.canShow=!1),t.offscreen&&(t.animation&&(t.animation.cancel(),t.animation=null),t.markerContainer.style.opacity="0");let i=t.animation!=null&&(t.animation.pending===!0||o7.includes(t.animation.playState));if((t.canShow&&t.visible===!0||i)&&!t.offscreen)if(t.options.zIndex!=null)t.markerContainer.style.transform="translate3D(".concat(t.projection.x,"px, ").concat(t.projection.y,"px, ").concat(t.options.zIndex,"px)");else{n.object3d.getWorldPosition(c(this,ac));let a=c(this,uc).distanceTo(c(this,ac));t.markerContainer.style.transform="translate3D(".concat(t.projection.x,"px, ").concat(t.projection.y,"px, ").concat(-a,"px)")}if(t.canShow===!0&&t.visible===!0&&!t.offscreen?t.markerContainer.style.pointerEvents=r?"none":t.pointerEvents:t.markerContainer.style.pointerEvents="none",t.currentStrategyIndex===-1&&t.visible&&t.visibilityNeedsUpdate==="show")continue;t.visibilityNeedsUpdate!==!1&&!t.offscreen&&(t.visibilityNeedsUpdate==="show"&&(t.markerContainer.style.opacity="0"),t.animation&&t.animation.cancel(),t.animation=t.markerContainer.animate([{opacity:t.canShow&&t.visible?"1":"0"}],{duration:i7,easing:"ease-in-out",fill:"forwards"}),t.visibilityNeedsUpdate=!1)}}};ac=new WeakMap,uc=new WeakMap,o(Ng,"DOMDrawSystem");var Am=Ng;l();var Ug=class Ug extends Ae{constructor(t,n){super();h(this,"state");h(this,"dirty",!0);h(this,"domTree");h(this,"observers",new Map);h(this,"updateDimensions",o(t=>{t.forEach(n=>{var u;let a=(u=n.target.parentElement)==null?void 0:u.getAttribute("data-marker-id");if(a){let s=this.state.geometry2DMap.get(a),d=s==null?void 0:s.components[0];s&&d instanceof gi&&(d.updateDimensions(n.contentRect.width,n.contentRect.height),d.collisionDirty=!0)}}),this.publish("dimensions-update")},"updateDimensions"));this.state=t,this.domTree=n}setupObserver(){var i;if(this.observers){for(let a of this.observers.values())a.disconnect();this.observers.clear()}let t,n;for(let a of this.domTree.children){let u=a.getAttribute("data-marker-id");if(u!=null&&(t=this.state.geometry2DMap.get(u),n=t.components[0],(i=n.options)!=null&&i.dynamicResize)){let s=new ResizeObserver(this.updateDimensions);s.observe(n.containerEl),this.observers.set(a.userData.entityId,s)}}}update(){this.dirty&&(this.setupObserver(),this.dirty=!1)}destroy(){for(let t of this.observers.values())t.disconnect();this.observers.clear()}};o(Ug,"DOMResizeSystem");var Pm=Ug;l();l();var M6="uniform vec4 uSize;\nvarying vec2 vUv;\nvoid main() {\n vUv = uv;\n // Scale the position by the size of the quad\n // and shift to top left corner for 0,0\n vec2 transformed = position.xy * uSize.xy - vec2(1.0, -1.0);\n // Apply width .x and height .y of image\n transformed += vec2(uSize.x, -uSize.y);\n // Apply left .w and top .z offset\n transformed += vec2(uSize.w, -uSize.z) * 2.0;\n gl_Position = vec4(transformed, 1.0, 1.0);\n}";l();var T6="varying vec2 vUv;\nuniform sampler2D uTexture;\nuniform float uOpacity;\nvoid main() {\n #ifndef debug\n vec4 texture = texture2D(uTexture, vUv);\n gl_FragColor = vec4(texture.rgb, texture.a * uOpacity);\n #else\n gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);\n #endif\n}";l();var k6=4.291666666666667,_6=15,L6=25,R6=43/60;l();var N6=["horizontal","icon"],a7=new Map([[N6[0],'<svg viewBox="0 0 206 48">\n <path d="M27.2678 14.2261H22.3187C21.0695 14.2261 20.4695 14.7801 20.4695 15.9852V31.142L10.3966 15.5591C9.69665 14.4784 9.2475 14.2773 7.8475 14.2261H2.97462C1.67462 14.2261 1.07631 14.7801 1.07631 15.9852V44.7665C1.07631 45.9716 1.67462 46.5256 2.97462 46.5256H7.92377C9.22207 46.5256 9.82207 45.9716 9.82207 44.7665V29.6847L19.9441 45.1926C20.695 46.3244 21.095 46.5256 22.4933 46.5256H27.2933C28.5916 46.5256 29.1916 45.9716 29.1916 44.7665V15.9852C29.1407 14.7801 28.5424 14.2261 27.2678 14.2261Z"/>\n <path d="M5.44915 10.9602C8.45863 10.9602 10.8983 8.50669 10.8983 5.48011C10.8983 2.45353 8.45863 0 5.44915 0C2.43967 0 0 2.45353 0 5.48011C0 8.50669 2.43967 10.9602 5.44915 10.9602Z"/>\n <path d="M61.7899 25.0449C63.2306 23.1903 65.078 22.2051 67.556 22.2051C72.0526 22.2051 74.7611 25.3347 74.7611 29.4511V39.2489C74.8187 39.7125 74.5306 39.9443 74.0695 39.9443H72.5136C72.0526 39.9443 71.7645 39.7125 71.8221 39.2489V29.5091C71.8221 27.1909 69.9187 25.2187 67.4984 25.2187C65.1339 25.2187 63.2323 27.1329 63.2323 29.2773V39.2489C63.2899 39.7125 63.0018 39.9443 62.5407 39.9443H60.9831C60.5221 39.9443 60.2916 39.7125 60.2916 39.2489V29.4511C60.2916 27.1329 58.3899 25.2187 56.0255 25.2187C53.7204 25.2187 51.7594 27.075 51.7594 29.2773V39.3068C51.817 39.7705 51.5289 40.0023 51.0102 40.0023H49.5119C49.0509 40.0023 48.7628 39.7705 48.7628 39.3068V23.25C48.7051 22.7864 48.9933 22.4966 49.5119 22.4966H50.9526C51.356 22.4966 51.5289 22.6704 51.5289 23.0182V24.2352C52.7407 22.9602 54.239 22.2648 56.0255 22.2648C58.4475 22.2068 60.3492 23.192 61.7899 25.0466V25.0449ZM77.1255 31.2477C77.1255 26.3216 81.1018 22.2051 86.1187 22.2051C88.539 22.2051 90.6136 23.1903 92.3441 25.1608V23.1903C92.3441 22.7267 92.5746 22.5528 93.0357 22.5528H94.4187C94.8797 22.5528 95.1102 22.7847 95.1102 23.3062V39.3648C95.1102 39.8284 94.8797 40.0602 94.4187 40.0602H93.0357C92.5746 40.0602 92.3441 39.8284 92.3441 39.4227V37.4523C90.6712 39.3648 88.5967 40.35 86.1746 40.35C81.1018 40.2341 77.1238 36.1773 77.1238 31.2477H77.1255ZM92.1136 31.2477C92.1136 27.8284 89.4611 25.2187 86.0594 25.2187C82.7746 25.2187 80.1221 27.8864 80.1221 31.2477C80.1221 34.6687 82.7746 37.2784 86.1187 37.2784C86.9062 37.2789 87.6861 37.1232 88.4138 36.8202C89.1414 36.5173 89.8026 36.0731 90.3593 35.513C90.9161 34.9528 91.3577 34.2878 91.6587 33.556C91.9597 32.8241 92.1143 32.0397 92.1136 31.2477ZM100.992 37.3943V46.3807C101.049 46.8443 100.761 47.1341 100.298 47.1341H98.7424C98.2814 47.1341 97.9933 46.9023 97.9933 46.3807V23.1903C97.9933 22.7267 98.2238 22.4369 98.7424 22.4369H100.183C100.646 22.379 100.934 22.6687 100.934 23.0744V24.9869C102.605 23.0744 104.68 22.1472 107.044 22.1472C112.002 22.1472 116.037 26.2619 116.037 31.1898C116.037 36.1176 112.059 40.2341 107.044 40.2341C104.622 40.2341 102.603 39.3068 100.992 37.3943ZM106.987 25.2187C103.7 25.2187 101.049 27.8864 101.049 31.2477C101.049 34.6687 103.7 37.2784 107.044 37.2784C110.446 37.2784 113.039 34.6108 113.039 31.2477C113.039 27.8864 110.388 25.2187 106.987 25.2187ZM121.11 37.3943V46.3807C121.168 46.8443 120.88 47.1341 120.419 47.1341H118.861C118.4 47.1341 118.112 46.9023 118.112 46.3807V23.1903C118.112 22.7267 118.342 22.4369 118.861 22.4369H120.302C120.764 22.379 121.053 22.6687 121.053 23.0744V24.9869C122.724 23.0744 124.798 22.1472 127.163 22.1472C132.12 22.1472 136.156 26.2619 136.156 31.1898C136.156 36.1176 132.178 40.2341 127.163 40.2341C124.742 40.2341 122.781 39.3068 121.11 37.3943ZM127.105 25.2187C123.819 25.2187 121.168 27.8864 121.168 31.2477C121.168 34.6687 123.819 37.2784 127.163 37.2784C130.564 37.2784 133.158 34.6108 133.158 31.2477C133.158 27.8864 130.507 25.2187 127.107 25.2187H127.105ZM153.97 32.3506H141.054C141.342 35.2483 143.995 37.4523 147.164 37.4523C148.893 37.4523 150.393 37.0466 151.719 36.0597C152.007 35.8858 152.295 35.7699 152.353 35.7699C152.583 35.7699 152.756 35.8858 152.929 36.1773L153.505 37.1625C153.622 37.3364 153.68 37.4523 153.68 37.5682C153.68 37.8 153.507 38.0318 153.103 38.3216C151.258 39.5966 149.183 40.292 146.992 40.292C141.688 40.292 137.883 36.3511 137.883 31.2477C137.883 26.204 141.803 22.2051 146.703 22.2051C151.546 22.2051 154.717 25.7983 154.717 31.0176C154.717 31.5972 154.717 32.3506 153.968 32.3506H153.97ZM141.056 30.0324H151.72C151.432 26.8432 149.473 24.929 146.648 24.929C145.241 24.8904 143.875 25.3995 142.833 26.3501C141.791 27.3007 141.154 28.6194 141.056 30.0307V30.0324ZM156.332 31.2477C156.332 26.3216 160.31 22.2051 165.326 22.2051C167.748 22.2051 169.707 23.1324 171.32 25.0449V16.2324C171.263 15.7687 171.551 15.479 172.012 15.479H173.57C174.031 15.479 174.319 15.7108 174.319 16.2324V39.3068C174.319 39.7705 174.088 40.0023 173.57 40.0023H172.129C171.666 40.0602 171.378 39.7705 171.378 39.3648V37.3943C169.649 39.3068 167.632 40.292 165.268 40.292C160.31 40.2341 156.332 36.1773 156.332 31.2477ZM171.264 31.2477C171.264 27.8284 168.612 25.2187 165.21 25.2187C161.924 25.2187 159.273 27.8864 159.273 31.2477C159.273 34.6687 161.924 37.2784 165.268 37.2784C166.057 37.2838 166.839 37.1316 167.569 36.8304C168.299 36.5292 168.962 36.0852 169.52 35.5241C170.077 34.963 170.519 34.296 170.818 33.5619C171.117 32.8277 171.268 32.0411 171.263 31.2477H171.264ZM177.72 19.0739C177.715 18.8594 177.754 18.646 177.833 18.4468C177.912 18.2476 178.031 18.0667 178.182 17.915C178.333 17.7633 178.512 17.6439 178.71 17.5642C178.909 17.4845 179.121 17.446 179.334 17.4511C179.546 17.4507 179.756 17.4923 179.952 17.5737C180.148 17.6551 180.326 17.7746 180.476 17.9254C180.626 18.0762 180.745 18.2553 180.826 18.4523C180.907 18.6494 180.948 18.8606 180.948 19.0739C180.953 19.2884 180.914 19.5017 180.835 19.7009C180.756 19.9001 180.637 20.081 180.486 20.2327C180.335 20.3845 180.156 20.5038 179.957 20.5835C179.759 20.6633 179.547 20.7017 179.334 20.6966C178.412 20.7545 177.72 20.0591 177.72 19.0739ZM177.836 39.2489V23.1903C177.836 22.7267 178.066 22.4369 178.527 22.4369H180.083C180.544 22.4369 180.832 22.6687 180.775 23.1903V39.2489C180.832 39.7125 180.544 39.9443 180.083 39.9443H178.527C178.066 39.9443 177.836 39.7125 177.836 39.2489ZM186.944 23.0165V24.1756C188.212 22.8426 189.71 22.2051 191.497 22.2051C195.937 22.2051 198.646 25.2767 198.646 29.3932V39.2489C198.703 39.7125 198.415 39.9443 197.954 39.9443H196.398C195.936 39.9443 195.705 39.7125 195.705 39.2489V29.4511C195.705 27.1329 193.803 25.2187 191.439 25.2187C189.134 25.2187 187.175 27.075 187.175 29.2773V39.3068C187.232 39.7705 186.944 40.0023 186.424 40.0023H184.868C184.407 40.0023 184.119 39.7705 184.119 39.3068V23.1903C184.061 22.7267 184.349 22.4949 184.868 22.4949H186.309C186.712 22.4949 186.944 22.6687 186.944 23.0165Z"/>\n <path d="M204 40C205.115 40 206 39.0857 206 38V37.9886C206 36.9029 205.126 36 204 36C202.885 36 202 36.9143 202 38V38.0114C202 39.0971 202.874 40 204 40ZM204 39.7829C202.989 39.7829 202.23 38.9829 202.23 38.0114V38C202.23 37.0286 203 36.2171 204 36.2171C205.011 36.2171 205.77 37.0171 205.77 37.9886V38C205.77 38.9714 205 39.7829 204 39.7829ZM203.218 38.9714H203.609V38.2743H204.034L204.517 38.9714H204.989L204.448 38.2057C204.724 38.1257 204.92 37.92 204.92 37.5886C204.92 37.1657 204.586 36.9486 204.138 36.9486H203.218V38.9714ZM203.609 37.9543V37.2914H204.103C204.368 37.2914 204.517 37.4057 204.517 37.6229C204.517 37.8171 204.368 37.9543 204.103 37.9543H203.609Z"/>\n </svg>'],[N6[1],'<svg viewBox="0 0 43 60">\n <path d="M14.0291 7.06645C14.0291 10.9691 10.8885 14.1329 7.01453 14.1329C3.14051 14.1329 0 10.9691 0 7.06645C0 3.16376 3.14051 0 7.01453 0C10.8885 0 14.0291 3.16376 14.0291 7.06645Z"/>\n <path d="M28.7335 18.3468H35.1045C36.7455 18.3468 37.5178 19.0599 37.5821 20.6158V57.7309C37.5821 59.2868 36.8099 60 35.1367 60H28.9588C27.1569 60 26.642 59.7406 25.6767 58.282L12.6452 38.282V57.7309C12.6452 59.2868 11.8729 60 10.1997 60H3.82873C2.15554 60 1.3833 59.2868 1.3833 57.7309V20.6158C1.3833 19.0599 2.15554 18.3468 3.82873 18.3468H10.1032C11.9051 18.4116 12.4843 18.671 13.3852 20.0648L26.3524 40.162V20.6158C26.3524 19.0599 27.1247 18.3468 28.7335 18.3468Z"/>\n <path d="M41.5 60C42.3362 60 43 59.3143 43 58.5V58.4914C43 57.6771 42.3448 57 41.5 57C40.6638 57 40 57.6857 40 58.5V58.5086C40 59.3229 40.6552 60 41.5 60ZM41.5 59.8371C40.7414 59.8371 40.1724 59.2371 40.1724 58.5086V58.5C40.1724 57.7714 40.75 57.1629 41.5 57.1629C42.2586 57.1629 42.8276 57.7629 42.8276 58.4914V58.5C42.8276 59.2286 42.25 59.8371 41.5 59.8371ZM40.9138 59.2286H41.2069V58.7057H41.5259L41.8879 59.2286H42.2414L41.8362 58.6543C42.0431 58.5943 42.1897 58.44 42.1897 58.1914C42.1897 57.8743 41.9397 57.7114 41.6034 57.7114H40.9138V59.2286ZM41.2069 58.4657V57.9686H41.5776C41.7759 57.9686 41.8879 58.0543 41.8879 58.2171C41.8879 58.3629 41.7759 58.4657 41.5776 58.4657H41.2069Z"/>\n </svg>']]),u7=/<svg([^>]*)>/g;function U6(e,r,t,n){let i=a7.get(e);return i?i.replace(u7,'<svg$1 width="'.concat(t,'" height="').concat(n,'" xmlns="http://www.w3.org/2000/svg" style="fill: ').concat(r,';">')):""}o(U6,"getLogoIcon");l();var xo=class xo{constructor(){h(this,"loader");this.loader=new Gc}static getInstance(){return xo.instance||(xo.instance=new xo),xo.instance}getLoader(){return this.loader}load(r){return new Promise((t,n)=>{this.loader.load(r,t,void 0,n)})}};o(xo,"TextureLoaderSingleton"),h(xo,"instance");var jg=xo,Eo=jg.getInstance();var j6=!1,lt,ji,Ou,Vt,kr,ra,kn,li,zg=class zg extends Ae{constructor(t,n,i){super();R(this,lt,{padding:16,scale:1,iconOnly:!1,position:"bottom-left",color:"dark",onClick:o(()=>{window!=null&&window.open("https://www.mappedin.com")},"onClick"),interactive:!0,visible:!0});R(this,ji);R(this,Ou);R(this,Vt);R(this,kr);R(this,ra);R(this,kn,0);R(this,li,0);h(this,"dirty",!0);h(this,"getPositionAlignedCanvasCoordinates",o((t,n)=>({"top-left":{x:0,y:0},"top-right":{x:t,y:0},"bottom-left":{x:0,y:n},"bottom-right":{x:t,y:n},center:{x:t/2,y:n/2},top:{x:t/2,y:0},bottom:{x:t/2,y:n},left:{x:0,y:n/2},right:{x:t,y:n/2}})[c(this,lt).position],"getPositionAlignedCanvasCoordinates"));h(this,"getPositionAlignedPadding",o(()=>{var i,a,u,s;let t=c(this,lt).padding;if(typeof t=="number")return{"top-left":{x:t,y:t},"top-right":{x:-t,y:t},"bottom-left":{x:t,y:-t},"bottom-right":{x:-t,y:-t},center:{x:0,y:0},top:{x:0,y:t},bottom:{x:0,y:-t},left:{x:t,y:0},right:{x:-t,y:0}}[c(this,lt).position];let n={top:(i=t.top)!=null?i:0,right:(a=t.right)!=null?a:0,bottom:(u=t.bottom)!=null?u:0,left:(s=t.left)!=null?s:0};return{x:n.left-n.right,y:n.top-n.bottom}},"getPositionAlignedPadding"));i&&Object.entries(i).forEach(([a,u])=>{u!==void 0&&(c(this,lt)[a]=u)}),K(this,Ou,t),K(this,ji,n)}get color(){return c(this,lt).color==="light"?"white":"#293136"}get iconName(){return c(this,lt).iconOnly?"icon":"horizontal"}get minWidth(){return c(this,lt).iconOnly?_6:75}get defaultWidth(){return c(this,lt).iconOnly?L6:150}get aspectRatio(){return c(this,lt).iconOnly?R6:k6}get options(){return N({},c(this,lt))}set options(t){var n,i;K(this,lt,{padding:t.padding||c(this,lt).padding,position:t.position||c(this,lt).position,iconOnly:t.iconOnly||c(this,lt).iconOnly,color:t.color||c(this,lt).color,scale:t.scale||c(this,lt).scale,onClick:c(this,lt).onClick,interactive:(n=t.interactive)!=null?n:c(this,lt).interactive,visible:(i=t.visible)!=null?i:c(this,lt).visible})}get icon(){return U6(this.iconName,this.color,c(this,kn)*c(this,ji).pixelRatio,c(this,li)*c(this,ji).pixelRatio)}setSize(t,n){c(this,kr)&&(c(this,kr).uniforms.uSize.value.x=t,c(this,kr).uniforms.uSize.value.y=n)}setXY(t,n){c(this,kr)&&(c(this,kr).uniforms.uSize.value.w=t,c(this,kr).uniforms.uSize.value.z=n)}get width(){return c(this,kn)}get height(){return c(this,li)}getPositionAlignedOffset(t,n){return{"top-left":{x:0,y:0},"top-right":{x:-t,y:0},"bottom-left":{x:0,y:-n},"bottom-right":{x:-t,y:-n},center:{x:-(t/2),y:-(n/2)},top:{x:-(t/2),y:0},bottom:{x:-(t/2),y:-n},left:{x:0,y:-(n/2)},right:{x:-t,y:-(n/2)}}[c(this,lt).position]}insertIntoQuadTree(t){c(this,ra)!=null&&typeof c(this,lt).onClick=="function"&&c(this,lt).interactive&&t.insert(c(this,ra))}resize(t,n){if(c(this,lt).visible!==!0)return;let i=this.getPositionAlignedCanvasCoordinates(t,n),a=this.getPositionAlignedPadding(),u=this.getPositionAlignedOffset(c(this,kn),c(this,li)),s=Math.min(t-c(this,kn),Math.max(0,i.x+a.x+u.x)),d=Math.min(n-c(this,li),Math.max(0,i.y+a.y+u.y));this.setSize(c(this,kn)/t,c(this,li)/n),this.setXY(s/t,d/n),K(this,ra,new Pe(s,d,c(this,kn),c(this,li),{entityId:"watermark"}))}update(){this.dirty&&(c(this,lt).visible===!0?(K(this,kn,Math.min(c(this,ji).canvasWidth,Math.max(this.minWidth,this.defaultWidth*c(this,lt).scale))),K(this,li,c(this,kn)/this.aspectRatio),Eo.getLoader().load("data:image/svg+xml;base64,".concat(btoa(this.icon)),t=>{if(K(this,kr,new qi({uniforms:{uTexture:{value:t},uSize:{value:new Yy(0,0,0,0)},uOpacity:{value:.7}},vertexShader:M6,fragmentShader:T6,depthWrite:!1,depthTest:!1,defines:{debug:j6},wireframe:j6,transparent:!0,visible:!0})),c(this,Vt))c(this,Vt).visible=!0,c(this,Vt).material=c(this,kr),c(this,Vt).material.needsUpdate=!0;else{let n=new In(2,2,1,1);K(this,Vt,new _e(n,c(this,kr))),c(this,Vt).position.set(0,0,-1),c(this,Vt).frustumCulled=!1,c(this,Vt).renderOrder=999;let i=new xa(1,1,1),a=new _e(i,new _r({transparent:!0,opacity:0,depthTest:!1,depthWrite:!1}));a.frustumCulled=!1,a.layers.set(1),c(this,Vt).add(a),c(this,Ou).add(c(this,Vt))}this.resize(c(this,ji).canvasWidth,c(this,ji).canvasHeight),this.publish("texture-loaded")})):c(this,Vt)&&(c(this,Vt).visible=!1),this.dirty=!1)}destroy(){c(this,Vt)&&(c(this,Ou).remove(c(this,Vt)),fr(c(this,Vt))),K(this,Vt,void 0),c(this,kr)&&c(this,kr).dispose(),K(this,kr,void 0),K(this,ra,void 0)}};lt=new WeakMap,ji=new WeakMap,Ou=new WeakMap,Vt=new WeakMap,kr=new WeakMap,ra=new WeakMap,kn=new WeakMap,li=new WeakMap,o(zg,"WatermarkSystem");var Fm=zg;l();var Bm=100,l7=!1,$g=class $g extends Ae{constructor(t,n){super();h(this,"currentTotalBoundingBox");h(this,"state");h(this,"cameraSystem");h(this,"debugMesh",null);h(this,"dirty",!0);h(this,"autoMinZoomLevel",!0);this.state=t,this.cameraSystem=n}update(){if(this.dirty){this.currentTotalBoundingBox==null&&(this.currentTotalBoundingBox=new rr,this.state.geometryScene.children.length===0?this.currentTotalBoundingBox.setFromCenterAndSize(new te(0,0,0),new te(Bm*2,Bm*2,0)):(this.currentTotalBoundingBox.setFromObject(this.state.geometryScene),this.currentTotalBoundingBox.expandByScalar(Bm)));let t=new rr().setFromObject(this.state.geometryScene);this.currentTotalBoundingBox.union(t);let n=t.getSize(new te),i=Math.max(n.x,n.y,n.z);for(let u of this.state.geometry2DMap.values())u.positionDirty===!0&&(this.currentTotalBoundingBox.expandByPoint(u.position),u.positionDirty=!1);let a=Om.copy(this.currentTotalBoundingBox).expandByScalar(Math.max(i,Bm)).getBoundingSphere(d7).radius;if(this.cameraSystem.panBounds={center:this.currentTotalBoundingBox.getCenter(new te),min:Om.min,max:Om.max,radius:a},this.publish("update"),this.cameraSystem.dirty=!0,this.dirty=!1,l7&&this.state.geometryScene.parent instanceof Xi){this.debugMesh&&(this.state.geometryScene.parent.remove(this.debugMesh),this.debugMesh=null),this.debugMesh=new Qr,this.debugMesh.add(new _e(new $c(this.cameraSystem.panBounds.radius),new _r({color:16711680,transparent:!0,opacity:.2}))),this.debugMesh.position.copy(this.cameraSystem.panBounds.center),this.state.geometryScene.parent.add(this.debugMesh);let u=new te;Om.getSize(u);let s=new xa(u.x,u.y,u.z),d=new _r({color:65280,wireframe:!0,transparent:!0,opacity:.5}),m=new _e(s,d);m.position.copy(this.currentTotalBoundingBox.getCenter(new te)),this.debugMesh.add(m)}}}};o($g,"PanBoundsSystem");var Mm=$g,Om=new rr,d7=new e4;l();var sc,cc,Gg=class Gg{constructor(r,t){h(this,"mesh");h(this,"type","custom-geometry");h(this,"dirty",!0);h(this,"feature");h(this,"builder");h(this,"outline");R(this,sc,1);h(this,"color",new Bt);R(this,cc,0);this.mesh=new Qi,this.feature=r,this.builder=t}get visible(){return this.mesh.visible}set visible(r){this.mesh.visible=r}set opacity(r){K(this,sc,r)}get opacity(){return c(this,sc)}setColor(r){this.color.set(r)}get position(){var r;return(r=this.mesh)==null?void 0:r.position}get altitude(){return c(this,cc)}set altitude(r){this.mesh&&(this.mesh.position.z=r,K(this,cc,r))}get renderOrder(){return this.mesh?this.mesh.renderOrder:0}set renderOrder(r){this.mesh&&(this.mesh.renderOrder=r)}};sc=new WeakMap,cc=new WeakMap,o(Gg,"CustomGeometryComponent");var Mu=Gg;l();var Zg=class Zg{constructor(r,t){h(this,"state");h(this,"convertTo3DMapPosition");this.state=r,this.convertTo3DMapPosition=t}update(){let r,t;for(let n of this.state.geometry3DsInScene)(n==null?void 0:n.type)==="custom-geometry"&&(r=n.components[0],t=n.components[1],r.dirty&&t.visible!==!1&&(r.position.copy(this.convertTo3DMapPosition(r.feature.geometry.coordinates[1],r.feature.geometry.coordinates[0],t.altitude)),r.builder.setup(r.mesh),r.mesh.traverse(i=>{i.userData=Ce(N({},i.userData),{entityId:n.id,type:"custom-geometry"})}),r.dirty=!1),t.visible!==!1&&r.builder.update(r.mesh))}};o(Zg,"CustomGeometrySystem");var Tm=Zg;l();l();function km(e){return e.children.some(r=>r.userData.isOutline)}o(km,"hasOutline");function lc(e,r){var n;let t=e.userData.entities3D.values().next().value;return t?((n=r.geometry3DMap.get(t))==null?void 0:n.components[3])!==void 0:!1}o(lc,"needsOutline");function _m(e,r,t,n,i){let u=e.getAttribute("position").array,s=1/0,d=-1/0;for(let p=0;p<r.count;p++){let b=(r.start+p)*3,v=u[b+2];s=Math.min(s,v),d=Math.max(d,v)}let m=d-s;if(!i||i.thickness===0||m===0)for(let p=0;p<r.count;p++){let b=(r.start+p)*3,v=u[b+2];Math.abs(v-d)<1e-4?u[b+2]=Math.max(t+n,2e-4+n):u[b+2]=n}else{let p=i.thickness,g=s+p,b=s+p,v=d-p,C=d-p,A=n-p,x=n,E=n,S=n+t,D=n+t,I=n+t+p;for(let T=0;T<r.count;T++){let $=(r.start+T)*3,O=u[$+2],M;if(O<=g){let Z=p>0?(O-s)/p:0;M=A+Z*(x-A)}else if(O>=C){let Z=p>0?(O-C)/p:0;M=D+Z*(I-D)}else{let Z=v-b,z=Z>0?(O-b)/Z:0;M=E+z*(S-E)}u[$+2]=M}}e.attributes.position.needsUpdate=!0}o(_m,"updateBufferGeometryHeight");l();function Vg(e){var m,p;let r=new Uc,t=(m=e.mesh)==null?void 0:m.geometry;if(!t||!((p=e.batchedProps)!=null&&p.range))return;let n=e.batchedProps.range,i=n.start,a=n.count,u=t.getAttribute("position");if(u){let g=new Float32Array(a*3);for(let b=0;b<a;b++){let v=i+b;g[b*3]=u.array[v*3],g[b*3+1]=u.array[v*3+1],g[b*3+2]=u.array[v*3+2]}r.setAttribute("position",new Ar(g,3))}let s=t.getAttribute("normal");if(s){let g=new Float32Array(a*3);for(let b=0;b<a;b++){let v=i+b;g[b*3]=s.array[v*3],g[b*3+1]=s.array[v*3+1],g[b*3+2]=s.array[v*3+2]}r.setAttribute("normal",new Ar(g,3))}let d=t.getAttribute("uv");if(d){let g=new Float32Array(a*2);for(let b=0;b<a;b++){let v=i+b;g[b*2]=d.array[v*2],g[b*2+1]=d.array[v*2+1]}r.setAttribute("uv",new Ar(g,2))}if(t.index){let g=t.index,b=new Uint32Array(a);for(let v=0;v<a;v++)b[v]=g.array[i+v];r.setIndex(new Ar(b,1))}return r}o(Vg,"extractBufferGeometryFromBatchedGeometry");function z6(e,r,t){let n=Vg(e);if(!n||!e.mesh)return;e.mesh.getMatrixAt(e.instanceIndex,t),e.mesh.deleteInstance(e.instanceIndex),e.mesh.optimize();let i=r.addGeometry(n);r.addInstance(i),r.setMatrixAt(i,t);let a=r.getGeometryIdAt(i),u=r.getGeometryRangeAt(a);return u&&e.batchedProps&&(e.batchedProps.range=u),n.dispose(),i}o(z6,"transferGeometryToNewBatchedMesh");l();l();var $6="// Modified from https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderLib/linedashed.glsl.js\nuniform float scale;\nattribute float lineDistance;\n\nvarying float vLineDistance;\nattribute float visibility;\nvarying vec4 v_color;\n\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n\nvoid main() {\n\n vLineDistance = scale * lineDistance;\n v_color = color;\n\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n if (visibility < 0.5) {\n gl_Position = vec4(-2.0, -2.0, -2.0, 1.0);\n }\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n\n}";l();var G6="// Modified from https://github.com/mrdoob/three.js/blob/dev/src/renderers/shaders/ShaderLib/linedashed.glsl.js\nuniform vec3 diffuse;\nuniform float opacity;\n\nuniform float dashSize;\nuniform float totalSize;\n\nvarying float vLineDistance;\nvarying vec4 v_color;\n\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\n\nvoid main() {\n\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n\n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n\n discard;\n\n }\n\n vec3 outgoingLight = vec3( 0.0 );\n\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n\n outgoingLight = diffuseColor.rgb; // simple shader\n\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n\n // Discard alpha lower than 0.01 to avoid opacity fighting\n if (v_color.a <= 0.01) { \n discard;\n }\n}\n";var Wg=class Wg extends i4{constructor(r){super(r),this.onBeforeCompile=t=>{t.vertexShader=$6,t.fragmentShader=G6}}};o(Wg,"OutlineLineMaterial");var Lm=Wg;l();var _n,na,Io,Co,dc,Hg,Kg=class Kg{constructor(){R(this,dc);R(this,_n,[]);R(this,na,!1);R(this,Io);R(this,Co)}get size(){return c(this,_n).length}add(r){c(this,_n).push(r),c(this,na)||mt(this,dc,Hg).call(this)}onComplete(r){K(this,Io,r)}clearOnComplete(){K(this,Io,void 0)}clearAll(){K(this,_n,[]),K(this,na,!1),K(this,Io,void 0),c(this,Co)!==void 0&&(cancelIdleCallback(c(this,Co)),K(this,Co,void 0))}};_n=new WeakMap,na=new WeakMap,Io=new WeakMap,Co=new WeakMap,dc=new WeakSet,Hg=o(function(){K(this,na,!0),K(this,Co,requestIdleCallback(r=>{let t=0;for(;c(this,_n).length>0&&r.timeRemaining()>2;){let n=c(this,_n).shift();n&&(n(),t++)}if(t===0&&c(this,_n).length>0&&r.timeRemaining()<2){let n=c(this,_n).shift();n&&n()}K(this,Co,void 0),c(this,_n).length>0?mt(this,dc,Hg).call(this):(K(this,na,!1),c(this,Io)&&c(this,Io).call(this))},{timeout:3e3}))},"#processQueue"),o(Kg,"IdleQueue");var ia=Kg;var f7=80,oa,Tu,Nm,Um,qg=class qg extends Ae{constructor(t){super();h(this,"rendererState");h(this,"outlineOpacitiesDirty",!0);h(this,"useIdleFramesOnly",!0);R(this,oa,!0);R(this,Tu,-1/0);h(this,"idleBuildQueue",new ia);h(this,"idleComputeBoundingSphereQueue",new ia);R(this,Nm,new Map);R(this,Um,o(()=>{this.publish("needs-render")},"#publishRender"));this.rendererState=t,this.idleBuildQueue.onComplete(c(this,Um))}get geometries3DDirty(){return c(this,oa)}set geometries3DDirty(t){K(this,oa,t)}buildOutlines(t){var b;let n=[];for(let v of t.userData.entities3D.values()){let C=this.rendererState.geometry3DMap.get(v);if(C instanceof at&&C.type==="geometry"&&C.components[3]&&C.components[3].dirty===!0&&C.components[0].material!=null){let A=C.components[0].geometry,x=!1;A||(A=Vg(C.components[0]),x=!0);let E=C.components[1];n.push([C.components[3],new a4(A,(b=E.bevel)!=null&&b.enabled?1:f7)]),x&&(A==null||A.dispose(),A=void 0)}}if(n.length===0)return;let i=en(n.map(v=>v[1]),!1);if(i==null)return;let a=i.getAttribute("position"),u=new Float32Array(a.count*4),s=new Ar(u,4);i.setAttribute("color",s);let d=new Uint8Array(a.count);d.fill(0);let m=new Ar(d,1,!1);i.setAttribute("visibility",m);let p=0;for(let v=0;v<n.length;v++){let[C,A]=n[v],x=A.getAttribute("position").count;C.edgeColors=s,C.edgeVisibility=m,C.geometry=i,C.ranges={count:x,start:p},p+=x,A.dispose()}let g=new Mo(i,new Lm({vertexColors:!0,linewidth:1,transparent:!0,opacity:1,side:Oo}));g.userData.isOutline=!0,t.add(g)}update(t,n=!0){var a;if(this.geometries3DDirty){for(let u of this.rendererState.geometry3DsInScene)u.type==="geometry-group"&&lc(u,this.rendererState)&&!km(u)&&u.userData.entities3D.size>0&&(this.useIdleFramesOnly?this.idleBuildQueue.add(()=>this.buildOutlines(u)):this.buildOutlines(u));K(this,oa,!1),this.outlineOpacitiesDirty=!0}for(let u of this.rendererState.geometry3DsInScene)if(u.type==="geometry"&&u.components[3]&&u.components[3].dirty===!0&&u.components[0].material!=null&&u.parentObject3D instanceof Hn){let s=u.components[3].geometry;if(!s)continue;let d=u.components[3];if(!d)continue;let m=d.enabled&&u.components[1].visible;if(d.visible!==m&&(d.visible=m),!d.visible)continue;let p=d.edgeColors;if(!p||!d.ranges)continue;let g=new Bt(d.color);for(let A=0;A<d.ranges.count;A++){let x=d.ranges.start+A;p.setXYZ(x,g.r,g.g,g.b)}let b=u.components[1].height,v=u.components[1].altitude,C=(a=u.components[1])==null?void 0:a.bevel;_m(s,d.ranges,b,v,C),s.attributes.color.needsUpdate=!0,this.idleComputeBoundingSphereQueue.add(()=>s.computeBoundingSphere()),d.dirty=!1}let i=n?ko(t,16,19,0,1):c(this,Tu);if((i!==c(this,Tu)||this.outlineOpacitiesDirty)&&this.rendererState.geometry3DsInScene.size>0){for(let u of this.rendererState.geometry3DsInScene)if(u.type==="geometry"&&u.components[0]instanceof zt){let s=u.components[3];if(s&&s.edgeColors&&s.geometry&&s.visible){let d=Math.min(i,u.components[1].opacity*Fa(u));if(s.currentOpacity!==d){for(let m=0;m<s.ranges.count;m++){let p=s.ranges.start+m;s.edgeColors.setW(p,d)}s.geometry.attributes.color.needsUpdate=!0}}}}K(this,Tu,i),K(this,oa,!1),this.outlineOpacitiesDirty=!1}destroy(){c(this,Nm).clear(),this.idleBuildQueue.clearAll(),this.idleComputeBoundingSphereQueue.clearAll()}};oa=new WeakMap,Tu=new WeakMap,Nm=new WeakMap,Um=new WeakMap,o(qg,"OutlineInterpolationSystem");var Rm=qg;l();l();var Xg=class Xg extends _e{constructor(){super(...arguments);h(this,"userData",{entityId:""})}};o(Xg,"EntityMesh");var jm=Xg,h7=ee.object({flipImageToFaceCamera:ee.boolean().optional(),url:ee.string()}),g7=ee.object({type:ee.enum(["Feature"]),properties:ee.object({width:ee.number(),height:ee.number(),rotation:ee.number().min(0).max(360).optional(),verticalOffset:ee.number().optional()}),geometry:Fu});function Z6(e,r,t){ee.union([ee.number(),ee.string()]).parse(e),g7.parse(r),h7.parse(t)}o(Z6,"validateImage");var Jg=class Jg{constructor(r){h(this,"mesh",new Qi);h(this,"imageMesh");h(this,"outline");h(this,"type","image");h(this,"instanceIndex",-1);h(this,"geometry");h(this,"material");h(this,"feature");h(this,"position",new te);this.feature=r}get visible(){var r,t;return(t=(r=this.mesh)==null?void 0:r.visible)!=null?t:!1}set visible(r){this.mesh&&(this.mesh.visible=r)}};o(Jg,"ImageComponent");var zm=Jg;l();function Yg(e,r){return{x:e.x*Math.cos(r)-e.y*Math.sin(r),y:e.x*Math.sin(r)+e.y*Math.cos(r)}}o(Yg,"rotatePoint");function y7(e,r){return e.map(t=>Yg(t,r))}o(y7,"rotatePoints");function b7(e){let r=1/0,t=1/0,n=-1/0,i=-1/0;for(let a of e)r=Math.min(r,a.x),t=Math.min(t,a.y),n=Math.max(n,a.x),i=Math.max(i,a.y);return{minX:r,minY:t,maxX:n,maxY:i}}o(b7,"getBounds");function v7(e,r){let t=!1;for(let n=0,i=r.length-1;n<r.length;i=n++){let a=r[n].x,u=r[n].y,s=r[i].x,d=r[i].y;u>e.y!=d>e.y&&e.x<(s-a)*(e.y-u)/(d-u)+a&&(t=!t)}return t}o(v7,"pointInPolygon");function V6(e,r,t,n,i){for(let a=0;a<i;a++)for(let u=0;u<n;u++)if(e[t+a][r+u]!==1)return!1;return!0}o(V6,"isValidRectangle");function x7(e,r,t){let n=e.maxX-e.minX,i=e.maxY-e.minY,a,u,s=N({},e);return n/i>r?(u=i/t,a=u*r,s.minX+=(n-a*t)/2):(a=n/t,u=a/r,s.minY+=(i-u*t)/2),{dx:a,dy:u,gridBounds:s}}o(x7,"calculateGridDimensions");function E7(e,r,t,n,i){let a=Array(t).fill(0).map(()=>Array(t).fill(0));for(let u=0;u<t;u++)for(let s=0;s<t;s++){let d={x:r.minX+s*n,y:r.minY+u*i};v7(d,e)&&(a[u][s]=1)}return a}o(E7,"createAndFillGrid");function I7(e,r){let t=Array(r).fill(0).map(()=>Array(r).fill(0));for(let n=0;n<r;n++)for(let i=0;i<r;i++)if(e[n][i]===1){let a=0;for(let u=1;u<=Math.min(r-i,r-n)&&V6(e,i,n,u,u);u++)a=u;t[n][i]=a}return t}o(I7,"calculateRectSizes");function C7(e,r,t,n,i,a){let u=0,s=0,d=0;for(let m=0;m<n;m++)for(let p=0;p<n;p++)if(e[m][p]===1){let g=Math.pow(r[m][p],2),b=t.minX+p*i,v=t.minY+m*a;u+=g,s+=b*g,d+=v*g}return{x:s/u,y:d/u}}o(C7,"calculatePolygonCenter");function D7(e,r,t,n,i,a,u){let s=-1/0,d=null,m=e.length,p=Math.sqrt(Math.pow(r.maxX-r.minX,2)+Math.pow(r.maxY-r.minY,2));for(let g=0;g<m;g++)for(let b=0;b<m;b++)if(e[g][b]===1)for(let v=1;v<=m-b;v++){let C=v;if(!(C>m-g)&&V6(e,b,g,v,C)){let A=v*C,x=r.minX+(b+v/2)*t,E=r.minY+(g+C/2)*n,S={x,y:E},I=Math.sqrt(Math.pow(S.x-i.x,2)+Math.pow(S.y-i.y,2))/p,T=A*(1-a)-I*a*A;T>s&&(s=T,d={center:S,width:v*t*u,height:v*n*u})}}return d}o(D7,"findBestRectangle");function Qg(e,r,t,n={}){let{scaleFactor:i=.9,centerPriority:a=.5,resolution:u=100,minimumSizeRatio:s=.5}=n,d=h4(t),m=e.width/e.height,p=y7(r,d),g=b7(p),{dx:b,dy:v,gridBounds:C}=x7(g,m,u),A=E7(p,C,u,b,v),x=I7(A,u),E=C7(A,x,C,u,b,v),S=D7(A,C,b,v,E,a,i);return!S||S.width<e.width*s||S.height<e.height*s?e:Ce(N({},S),{center:Yg(S.center,-d),rotation:t,polygonCenter:Yg(E,-d)})}o(Qg,"findLargestInteriorRectangle");var mc=Math.PI*2,S7=Math.PI/2,w7=Math.PI*1.5,A7=Kc(S7,2),P7=Kc(w7,2),F7=.01,W6=!1,ey=class ey extends Ae{constructor(t,n,i,a=0,u=0,s={}){super();h(this,"rendererState");h(this,"convertTo3DMapPosition");h(this,"projectToScreen");h(this,"initialBearing",0);h(this,"naturalBearing",0);h(this,"imagePlacementOptions");h(this,"cameraFrustum",new Ea);h(this,"imageLoadingCache",new Map);h(this,"currentImageScreenBBoxes",[]);h(this,"viewProjectionMatrix",new wr);this.rendererState=t,this.convertTo3DMapPosition=n,this.projectToScreen=i,this.initialBearing=a,this.naturalBearing=u,this.imagePlacementOptions=s}createImageMesh(t,n,i,a=0,u,s){var C,A,x;let d={width:i.width,height:i.height,center:this.convertTo3DMapPosition(u),rotation:(C=i.rotation)!=null?C:0},m=(A=this.imagePlacementOptions.mode)!=null?A:"default",p=(()=>{switch(m){case"fit-nearest-90":let E=(this.initialBearing-this.naturalBearing+360)%180;return E>=45&&E<=135?Qg(d,s,d.rotation+90,this.imagePlacementOptions):d;case"fit-initial-bearing":return Qg(d,s,this.initialBearing,this.imagePlacementOptions);case"default":case"none":default:return d}})();if(W6&&p.polygonCenter){let E=new _e(new $c(1),new Yu({color:65280}));E.position.set(p.polygonCenter.x,p.polygonCenter.y,a),this.rendererState.geometryScene.add(E)}let g=new Yu({transparent:!0,depthWrite:!1,side:fi}),b=new In(p.width,p.height),v=new jm(b);if(v.visible=!1,v.renderOrder=qt.IMAGE_MESH,(x=this.getOrDownloadImage(n))==null||x.then(E=>{g.map=E,g.needsUpdate=!0,g.map.colorSpace=_c,v.visible=!0,this.publish("image-loaded")}),v.userData.entityId=t,v.material=g,W6){let E=new _e(new In(i.width,i.height),new Yu({color:"gray"}));v.add(E);let S=new l4;v.add(S),S.scale.set(10,10,10)}return v.position.set(p.center.x,p.center.y,a+F7),v.rotation.z=(-Me.degToRad(p.rotation)+mc)%mc,v}getOrDownloadImage(t){var n;if(this.imageLoadingCache.has(t))return(n=this.imageLoadingCache.get(t))==null?void 0:n.promise;{let i=new Promise(a=>{Eo.getLoader().load(t,u=>{let s=this.imageLoadingCache.get(t);s&&!s.loaded&&(s.loaded=!0),a(u)})});return this.imageLoadingCache.set(t,{loaded:!1,promise:i}),i}}flipIfNeeded(t,n){if(t.imageMesh==null)return;let i=-n,a=t.imageMesh.rotation.z,u=Kc((a-i+mc)%mc,2);u>A7&&u<P7&&(t.imageMesh.rotation.z=(a+Math.PI)%mc)}update(t){var a,u,s,d,m;this.currentImageScreenBBoxes=[],this.viewProjectionMatrix.identity().multiply(this.rendererState.cameraObject.projectionMatrix).multiply(this.rendererState.cameraObject.matrixWorldInverse),this.cameraFrustum.setFromProjectionMatrix(this.viewProjectionMatrix);let n,i;for(let p of this.rendererState.geometry3DsInScene)if(p.type==="image"){if(n=p.components[0],i=p.components[1],i.url&&n.imageMesh==null){let g=this.convertTo3DMapPosition(n.feature.geometry.coordinates),b={x:g.x,y:g.y};n.imageMesh=this.createImageMesh(p.id,i.url,n.feature.properties,n.feature.properties.verticalOffset,n.feature.geometry.coordinates,[b]),n.mesh.add(n.imageMesh),n.position.copy(n.imageMesh.position)}n.imageMesh&&(i.flipImageToFaceCamera&&this.flipIfNeeded(n,t),n.imageMesh.material instanceof Yu&&i.dirty&&n.imageMesh.material.opacity!==i.opacity&&(n.imageMesh.material.opacity=i.opacity))}else if((p==null?void 0:p.type)==="geometry"){if(n=p.components[0],i=p.components[1],i.showImage&&((a=n.feature.properties)!=null&&a.image)&&n.imageMesh==null&&n.visible&&n.mesh!=null&&n.mesh.parent!=null&&((u=n.feature.properties)==null?void 0:u.image.position)!=null&&n.feature.geometry.coordinates!=null&&n.feature.geometry.coordinates.length>0){let g=n.feature.geometry.coordinates[0].map(v=>{let C=this.convertTo3DMapPosition(v);return{x:C.x,y:C.y}}),b=this.createImageMesh(p.id,(s=n.feature.properties)==null?void 0:s.image.path,(d=n.feature.properties)==null?void 0:d.image,i.height+i.altitude,(m=n.feature.properties)==null?void 0:m.image.position,g);n.mesh.parent.add(b),n.imageMesh=b}if(n.imageMesh){if(!n.visible)n.imageMesh.visible=!1;else if(i.showImage&&!n.imageMesh.visible)if(i.url){let g=this.imageLoadingCache.get(i.url);g&&g.loaded&&(n.imageMesh.visible=!0)}else n.imageMesh.visible=!0;else!i.showImage&&n.imageMesh.visible&&(n.imageMesh.visible=!1);i.flipImageToFaceCamera&&this.flipIfNeeded(n,t),i.enableImageCollisions===!0&&this.updateImageScreenBBoxes(n)}}}updateImageScreenBBoxes(t){if(t.imageMesh==null)return;let n=t.imageMesh.geometry.boundingBox;if(n!=null){let i=new te;if(t.imageMesh.getWorldPosition(i),!this.cameraFrustum.containsPoint(i))return;let a=new $e;this.projectToScreen(a,i);let u=[new te(n.min.x,n.min.y,n.min.z),new te(n.max.x,n.min.y,n.min.z),new te(n.min.x,n.max.y,n.min.z),new te(n.max.x,n.max.y,n.min.z),new te(n.min.x,n.min.y,n.max.z),new te(n.max.x,n.min.y,n.max.z),new te(n.min.x,n.max.y,n.max.z),new te(n.max.x,n.max.y,n.max.z)],s=[];for(let v of u){let C=v.clone().applyMatrix4(t.imageMesh.matrixWorld),A=new $e;this.projectToScreen(A,C),s.push(A)}let d=1/0,m=1/0,p=-1/0,g=-1/0;for(let v of s)d=Math.min(d,v.x),m=Math.min(m,v.y),p=Math.max(p,v.x),g=Math.max(g,v.y);let b=new Pe(a.x,a.y,p-d,g-m);this.currentImageScreenBBoxes.push(b)}}};o(ey,"ImageSystem");var $m=ey;l();l();function ty(e){let r=1/0,t=1/0,n=-1/0,i=-1/0;for(let a of e)a.x<r&&(r=a.x),a.x>n&&(n=a.x),a.y<t&&(t=a.y),a.y>i&&(i=a.y);return{minX:r,minY:t,maxX:n,maxY:i}}o(ty,"computeBoundingBox2D");function B7(e,r){return!(e.maxX<r.minX||e.minX>r.maxX||e.maxY<r.minY||e.minY>r.maxY)}o(B7,"intersects");function O7(e,r){if(!B7(e,r))return 0;let t=Math.max(e.minX,r.minX),n=Math.min(e.maxX,r.maxX),i=Math.max(e.minY,r.minY),a=Math.min(e.maxY,r.maxY),u=n-t,s=a-i;return u*s}o(O7,"intersectionArea");function H6(e,r){let t=O7(e,r);if(t===0)return 0;let n=r.maxX-r.minX,i=r.maxY-r.minY,a=n*i;return a===0?0:t/a}o(H6,"percentIntersected");l();function M7(e){let r=0;for(let t=1;t<e.length;t++)(e[t].y<e[r].y||e[t].y===e[r].y&&e[t].x<e[r].x)&&(r=t);return r}o(M7,"findBottomMostPoint");function T7(e,r){let t=[...e];return t.sort((n,i)=>{let a=n.point.x-r.x,u=n.point.y-r.y,s=i.point.x-r.x,d=i.point.y-r.y,m=a*d-u*s;if(m===0){let p=a*a+u*u,g=s*s+d*d;return p-g}return m>0?-1:1}),t}o(T7,"sortByPolarAngle");function k7(e,r){let t=[r];for(let n=0;n<e.length;n++){for(;t.length>1;){let i=t[t.length-2].point,a=t[t.length-1].point,u=e[n].point,s=a.x-i.x,d=a.y-i.y,m=u.x-a.x,p=u.y-a.y;if(s*p-d*m<=0)t.pop();else break}t.push(e[n])}return t}o(k7,"grahamScan");function K6(e){if(e.length<3)return e.map((a,u)=>({point:a,index:u}));let r=M7(e),t=e.map((a,u)=>({point:a,index:u})),n=t[r];t.splice(r,1);let i=T7(t,n.point);return k7(i,n)}o(K6,"convexHull2D");function pc(e,r,t,n){if(e.length===0)return[];let i=[],a=e[e.length-1],u=r*a.x+t*a.y+n;for(let s=0;s<e.length;s++){let d=e[s],m=r*d.x+t*d.y+n;if(m>=0){if(u<0){let p=u/(u-m);i.push({x:a.x+p*(d.x-a.x),y:a.y+p*(d.y-a.y)})}i.push(d)}else if(u>=0){let p=u/(u-m);i.push({x:a.x+p*(d.x-a.x),y:a.y+p*(d.y-a.y)})}a=d,u=m}return i}o(pc,"clipPolygonAgainstHalfPlane");l();function _7(e,r){let t=document.createElement("div");return t.id="focus-bbox-".concat(e),t.style.position="absolute",t.style.pointerEvents="none",t.style.overflow="hidden",t.style.zIndex="1000",r.appendChild(t),t}o(_7,"createBBoxElement");function L7(e,r){let t=r.maxX-r.minX,n=r.maxY-r.minY;e.style.left=r.minX+"px",e.style.top=r.minY+"px",e.style.width=t+"px",e.style.height=n+"px"}o(L7,"updateBBoxPosition");function R7(e,r){r?(e.style.border="2px solid green",e.style.backgroundColor="rgba(0, 255, 0, 0.1)"):(e.style.border="2px solid red",e.style.backgroundColor="rgba(255, 0, 0, 0.1)")}o(R7,"updateBBoxStyling");function N7(e){let r=e.querySelector(".entity-id-label");return r||(r=document.createElement("div"),r.className="entity-id-label",r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.padding="2px 4px",r.style.color="white",r.style.fontSize="10px",r.style.fontWeight="bold",r.style.fontFamily="monospace",r.style.zIndex="1001",e.appendChild(r)),r}o(N7,"getOrCreateEntityIdLabel");function U7(e){let r=e.querySelector(".score-label");return r||(r=document.createElement("div"),r.className="score-label",r.style.position="absolute",r.style.bottom="0",r.style.right="0",r.style.padding="2px 4px",r.style.color="white",r.style.fontSize="12px",r.style.fontWeight="bold",r.style.fontFamily="monospace",r.style.zIndex="1001",e.appendChild(r)),r}o(U7,"getOrCreateScoreLabel");function j7(e,r,t,n,i){n?e.style.backgroundColor="green":e.style.backgroundColor="red",e.textContent=t,i!==void 0?(r.style.backgroundColor=n?"green":"red",r.textContent=i.toFixed(3)):(r.style.backgroundColor=n?"green":"red",r.textContent="")}o(j7,"updateBBoxLabels");function q6(e,r){for(let[t,n]of e)r.has(t)||(n.remove(),e.delete(t))}o(q6,"removeOldBBoxes");function X6(e,r,t,n,i,a){var m;let u=t.get(e);u||(u=_7(e,n),t.set(e,u)),L7(u,(m=r.clippedScreenBBox)!=null?m:r.screenBBox),R7(u,i);let s=N7(u),d=U7(u);return j7(s,d,e,i,a),u}o(X6,"updateOrCreateBBox");function J6(){let e=document.createElement("div");return Object.assign(e.style,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",pointerEvents:"none",overflow:"hidden"}),document.body.append(e),e}o(J6,"createDebugContainer");function Y6(e,r){let t=document.createElement("div");t.style.position="absolute",t.style.top=e.minY+"px",t.style.left=e.minX+"px",t.style.width=e.maxX-e.minX+"px",t.style.height=e.maxY-e.minY+"px",t.style.border="2px solid gray",t.style.backgroundColor="rgba(128, 128, 128, 0.1)",t.style.pointerEvents="none",r.append(t);let n=document.createElement("div");n.textContent="viewfinder",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.padding="2px 4px",n.style.backgroundColor="gray",n.style.color="white",n.style.fontSize="12px",n.style.fontWeight="bold",n.style.fontFamily="monospace",n.style.zIndex="1001",t.appendChild(n);let i=document.createElement("div");return i.textContent="",i.style.position="absolute",i.style.bottom="0",i.style.right="0",i.style.padding="2px 4px",i.style.backgroundColor="gray",i.style.color="white",i.style.fontSize="12px",i.style.fontWeight="bold",i.style.fontFamily="monospace",i.style.zIndex="1001",t.appendChild(i),{squareEl:t,labelEl:n,scoreLabelEl:i}}o(Y6,"createViewfinderBox");function Q6(e,r){e.textContent=r}o(Q6,"updateViewfinderLabel");function eI(e,r){r!==void 0?e.textContent="Score: ".concat(r.toFixed(3)):e.textContent=""}o(eI,"updateViewfinderScore");l();function tI(e,r,t){if(!e.visible)return;let n=e;if(n.isMesh||n.isLine||n.isPoints){let i=n.geometry;if(i!=null&&i.isBufferGeometry){let a=i.attributes.position;if(a)for(let u=0;u<a.count;u++)t.fromBufferAttribute(a,u),t.applyMatrix4(e.matrixWorld),r.push(t.clone())}}for(let i of e.children)tI(i,r,t)}o(tI,"traverseForVertices");function rI(e,r){let t=[];return e instanceof Qr&&tI(e,t,r),t}o(rI,"getVerticesFromEntity");var ku=.001;function nI(e){if(e.length===0)return[];let r=[],t=e[e.length-1],n=t.w>ku;for(let i=0;i<e.length;i++){let a=e[i],u=a.w>ku;if(u){if(!n){let s=(ku-t.w)/(a.w-t.w);r.push({x:t.x+s*(a.x-t.x),y:t.y+s*(a.y-t.y),z:t.z+s*(a.z-t.z),w:ku})}r.push(a)}else if(n){let s=(ku-t.w)/(a.w-t.w);r.push({x:t.x+s*(a.x-t.x),y:t.y+s*(a.y-t.y),z:t.z+s*(a.z-t.z),w:ku})}t=a,n=u}return r}o(nI,"clipPolygonAgainstNearPlane");function iI(e,r,t){if(e.length===0)return[];let n=e;return n=pc(n,1,0,0),n=pc(n,-1,0,r),n=pc(n,0,1,0),n=pc(n,0,-1,t),n}o(iI,"clipPolygonAgainstScreenEdges");l();var ry=class ry{constructor(){h(this,"bbox");h(this,"center");h(this,"el",null);h(this,"labelEl",null);h(this,"scoreLabelEl",null)}create(r,t,n,i,a){this.labelEl&&(this.labelEl.remove(),this.labelEl=null),this.scoreLabelEl&&(this.scoreLabelEl.remove(),this.scoreLabelEl=null),this.el&&(this.el.remove(),this.el=null);let u=Qd(n,r,t),s=u.left,d=u.top,m=r-u.left-u.right,p=t-u.top-u.bottom,g=new $e(s+m/2,d+p/2),v=m/2*(2-2/1.2)/2,C=Math.max(s,g.x-v),A=Math.min(r-u.right,g.x+v),x=Math.max(d,g.y-v),E=Math.min(t-u.bottom,g.y+v),S=(C+A)/2,D=(x+E)/2;if(this.bbox={minX:C,maxX:A,minY:x,maxY:E},this.center=new $e(S,D),i&&a){let{squareEl:I,labelEl:T,scoreLabelEl:V}=Y6(this.bbox,a);this.el=I,this.labelEl=T,this.scoreLabelEl=V}}updateLabel(r){this.labelEl&&Q6(this.labelEl,r)}updateScore(r){this.scoreLabelEl&&eI(this.scoreLabelEl,r)}destroy(){this.labelEl&&(this.labelEl.remove(),this.labelEl=null),this.scoreLabelEl&&(this.scoreLabelEl.remove(),this.scoreLabelEl=null),this.el&&(this.el.remove(),this.el=null)}};o(ry,"Viewfinder");var Gm=ry;var z7=250,Do,ny=class ny extends Ae{constructor(t,n){super();h(this,"cameraDirty",!0);h(this,"focusablesDirty",!0);h(this,"state");h(this,"camera");h(this,"cameraFrustum",new Ea);h(this,"viewProjectionMatrix",new wr);h(this,"tempScreenPos",new te);h(this,"debugEl",null);h(this,"collisions",new Map);h(this,"focusableEntities",new Map);h(this,"debug",!1);h(this,"debugBBoxElements",new Map);h(this,"viewfinder",new Gm);h(this,"screenBoundsMap",new Map);h(this,"screenDiagonal",1);R(this,Do);h(this,"update",o((t=!1,n=Date.now())=>{this.focusablesDirty&&this.updateFocusableEntities(),!t&&(Date.now()-n>z7||(c(this,Do)&&cancelAnimationFrame(c(this,Do)),K(this,Do,requestAnimationFrame(()=>{this.updateRaf()}))))},"update"));this.state=t,this.camera=n,this.resize()}resize(){this.screenDiagonal=Math.sqrt(this.state.canvasWidth*this.state.canvasWidth+this.state.canvasHeight*this.state.canvasHeight),this.createViewfinder()}createViewfinder(){this.debugEl&&this.debugEl.remove();for(let t of this.debugBBoxElements.values())t.remove();this.debugBBoxElements.clear(),this.debug&&(this.debugEl=J6()),this.viewfinder.create(this.state.canvasWidth,this.state.canvasHeight,this.state.insetsPadding,this.debug,this.debugEl)}simplifyVertices(t){return t.length<3?t:K6(t).map(n=>t[n.index])}computeScreenSpaceBounds(t){let{vertices:n,boundingBox:i}=t;if(n==null||n.length<3||i==null||i.isEmpty()||!this.cameraFrustum.intersectsBox(i))return;let a=this.camera.projectionMatrix.elements,u=n.map(g=>({x:a[0]*g.x+a[4]*g.y+a[8]*g.z+a[12],y:a[1]*g.x+a[5]*g.y+a[9]*g.z+a[13],z:a[2]*g.x+a[6]*g.y+a[10]*g.z+a[14],w:a[3]*g.x+a[7]*g.y+a[11]*g.z+a[15]})),s=nI(u);if(s.length<3)return;let d=1/0,m=[];for(let g of s){let b=g.x/g.w,v=g.y/g.w;m.push({x:(b+1)/2*this.state.canvasWidth,y:(-v+1)/2*this.state.canvasHeight}),g.w<d&&(d=g.w)}let p=iI(m,this.state.canvasWidth,this.state.canvasHeight);if(!(p.length<=0))return{screenBBox:ty(m),clippedScreenBBox:this.debug?ty(p):void 0,closestZ:d}}updateFocusableEntities(){var n;this.focusableEntities.clear();let t;for(let i of this.state.geometry3DsInScene){if(i==null)continue;let a;if(i.type==="group-container"||i.type==="geometry-group")a=i.visible;else{let u=i.components[1];a=(n=u==null?void 0:u.visible)!=null?n:!0}if(a&&(t=i.type==="group-container"?i.components[1]:i.components[4],t!==void 0&&t.type==="focusable")){let u=String(i.type==="group-container"?i.userData.entityId:i.id);if(t.dirty===!0){let s=null;i instanceof Qr?s=i:"object3d"in i&&i.object3d instanceof Qr&&(s=i.object3d),s&&(t.vertices=this.simplifyVertices(rI(s,this.tempScreenPos)),t.boundingBox=new rr().setFromObject(s),t.dirty=!1)}this.focusableEntities.set(u,t)}}this.focusablesDirty=!1}updateRaf(){if(this.focusableEntities.size===0){this.publish("geometry-in-focus",[]);return}this.cameraDirty&&this.compute()}updateDebugBBoxes(t,n){if(!(!this.debug||!this.debugEl)){q6(this.debugBBoxElements,t);for(let[i,a]of t){let u=n.has(i),s=this.collisions.get(i);X6(i,a,this.debugBBoxElements,this.debugEl,u,s)}}}compute(){if(this.collisions.clear(),this.screenBoundsMap.clear(),!this.viewfinder.center)return;this.viewProjectionMatrix.copy(this.camera.projectionMatrix),this.cameraFrustum.setFromProjectionMatrix(this.viewProjectionMatrix);let t=[];for(let[i,a]of this.focusableEntities){let u=this.computeScreenSpaceBounds(a);if(!u)continue;this.screenBoundsMap.set(i,u);let{screenBBox:s}=u,d=H6(s,this.viewfinder.bbox);if(d>0){t.push(i);let m=(s.minX+s.maxX)/2,p=(s.minY+s.maxY)/2,g=m-this.viewfinder.center.x,b=p-this.viewfinder.center.y,C=1/(1+Math.sqrt(g*g+b*b)/this.screenDiagonal),A=1/(1+Math.abs(u.closestZ)),x=C*.5+d*.35+A*.15;this.collisions.set(i,x)}}let n=Array.from(this.collisions,([i,a])=>({entityId:i,score:a})).sort((i,a)=>a.score-i.score).map(({entityId:i})=>i);if(this.debug){let i=n[0];this.viewfinder.updateLabel(i||"viewfinder");let a=i?this.collisions.get(i):void 0;this.viewfinder.updateScore(a);let u=new Set(t);this.updateDebugBBoxes(this.screenBoundsMap,u)}this.publish("geometry-in-focus",n),this.cameraDirty=!1}showDebug(){this.debug||(this.debug=!0,this.cameraDirty=!0,this.createViewfinder())}hideDebug(){this.debug&&(this.debug=!1,this.createViewfinder())}destroy(){c(this,Do)&&cancelAnimationFrame(c(this,Do)),this.debugEl&&this.debugEl.remove();for(let t of this.debugBBoxElements.values())t.remove();this.debugBBoxElements.clear(),this.collisions.clear(),this.focusableEntities.clear(),this.viewfinder.destroy()}};Do=new WeakMap,o(ny,"GeometryInFocusSystem");var Zm=ny;l();l();l();l();l();function $7(e){if(!e)throw new Error("geojson is required");var r=[];return Yi(e,function(t){G7(t,r)}),To(r)}o($7,"lineSegment");function G7(e,r){var t=[],n=e.geometry;if(n!==null){switch(n.type){case"Polygon":t=No(n);break;case"LineString":t=[No(n)]}t.forEach(function(i){var a=Z7(i,e.properties);a.forEach(function(u){u.id=r.length,r.push(u)})})}}o(G7,"lineSegmentFeature");function Z7(e,r){var t=[];return e.reduce(function(n,i){var a=Wc([n,i],r);return a.bbox=V7(n,i),t.push(a),i}),t}o(Z7,"createSegments");function V7(e,r){var t=e[0],n=e[1],i=r[0],a=r[1],u=t<i?t:i,s=n<a?n:a,d=t>i?t:i,m=n>a?n:a;return[u,s,d,m]}o(V7,"bbox");var iy=$7;var _I=Tc(TI(),1);function ZT(e,r){var t={},n=[];if(e.type==="LineString"&&(e=Tp(e)),r.type==="LineString"&&(r=Tp(r)),e.type==="Feature"&&r.type==="Feature"&&e.geometry!==null&&r.geometry!==null&&e.geometry.type==="LineString"&&r.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&r.geometry.coordinates.length===2){var i=kI(e,r);return i&&n.push(i),To(n)}var a=(0,_I.default)();return a.load(iy(r)),_p(iy(e),function(u){_p(a.search(u),function(s){var d=kI(u,s);if(d){var m=No(d).join(",");t[m]||(t[m]=!0,n.push(d))}})}),To(n)}o(ZT,"lineIntersect");function kI(e,r){var t=No(e),n=No(r);if(t.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(n.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var i=t[0][0],a=t[0][1],u=t[1][0],s=t[1][1],d=n[0][0],m=n[0][1],p=n[1][0],g=n[1][1],b=(g-m)*(u-i)-(p-d)*(s-a),v=(p-d)*(a-m)-(g-m)*(i-d),C=(u-i)*(a-m)-(s-a)*(i-d);if(b===0)return null;var A=v/b,x=C/b;if(A>=0&&A<=1&&x>=0&&x<=1){var E=i+A*(u-i),S=a+A*(s-a);return kp([E,S])}return null}o(kI,"intersects");var Ym=ZT;l();function gc(e,r){r===void 0&&(r={});var t=ka(e);switch(!r.properties&&e.type==="Feature"&&(r.properties=e.properties),t.type){case"Polygon":return VT(t,r);case"MultiPolygon":return WT(t,r);default:throw new Error("invalid poly")}}o(gc,"default");function VT(e,r){r===void 0&&(r={});var t=ka(e),n=t.coordinates,i=r.properties?r.properties:e.type==="Feature"?e.properties:{};return LI(n,i)}o(VT,"polygonToLine");function WT(e,r){r===void 0&&(r={});var t=ka(e),n=t.coordinates,i=r.properties?r.properties:e.type==="Feature"?e.properties:{},a=[];return n.forEach(function(u){a.push(LI(u,i))}),To(a)}o(WT,"multiPolygonToLine");function LI(e,r){return e.length>1?m4(e,r):Wc(e[0],r)}o(LI,"coordsToLine");function HT(e,r){var t=!0;return Yi(e,function(n){Yi(r,function(i){if(t===!1)return!1;t=KT(n.geometry,i.geometry)})}),t}o(HT,"booleanDisjoint");function KT(e,r){switch(e.type){case"Point":switch(r.type){case"Point":return!YT(e.coordinates,r.coordinates);case"LineString":return!RI(r,e);case"Polygon":return!ro(e,r)}break;case"LineString":switch(r.type){case"Point":return!RI(e,r);case"LineString":return!qT(e,r);case"Polygon":return!NI(r,e)}break;case"Polygon":switch(r.type){case"Point":return!ro(r,e);case"LineString":return!NI(e,r);case"Polygon":return!XT(r,e)}}return!1}o(KT,"disjoint");function RI(e,r){for(var t=0;t<e.coordinates.length-1;t++)if(JT(e.coordinates[t],e.coordinates[t+1],r.coordinates))return!0;return!1}o(RI,"isPointOnLine");function qT(e,r){var t=Ym(e,r);return t.features.length>0}o(qT,"isLineOnLine");function NI(e,r){for(var t=0,n=r.coordinates;t<n.length;t++){var i=n[t];if(ro(i,e))return!0}var a=Ym(r,gc(e));return a.features.length>0}o(NI,"isLineInPoly");function XT(e,r){for(var t=0,n=e.coordinates[0];t<n.length;t++){var i=n[t];if(ro(i,r))return!0}for(var a=0,u=r.coordinates[0];a<u.length;a++){var s=u[a];if(ro(s,e))return!0}var d=Ym(gc(e),gc(r));return d.features.length>0}o(XT,"isPolyInPoly");function JT(e,r,t){var n=t[0]-e[0],i=t[1]-e[1],a=r[0]-e[0],u=r[1]-e[1],s=n*u-i*a;return s!==0?!1:Math.abs(a)>=Math.abs(u)?a>0?e[0]<=t[0]&&t[0]<=r[0]:r[0]<=t[0]&&t[0]<=e[0]:u>0?e[1]<=t[1]&&t[1]<=r[1]:r[1]<=t[1]&&t[1]<=e[1]}o(JT,"isPointOnLineSegment");function YT(e,r){return e[0]===r[0]&&e[1]===r[1]}o(YT,"compareCoords");var UI=HT;function Ey(e,r){var t=!1;return Yi(e,function(n){Yi(r,function(i){if(t===!0)return!0;t=!UI(n.geometry,i.geometry)})}),t}o(Ey,"booleanIntersects");var QT=5e3,Iy="outdoor-system-debug-container",jI=!1,zi,er,yc,Lu,$i,mi,xn,Ru,bc,Nu,ep,tp,Ln,Cy,vc,aa,zI,rp,np,$I,GI,Dy=class Dy extends Ae{constructor(t){super();R(this,Ln);R(this,zi,!0);R(this,er);h(this,"idleQueue",new ia);R(this,yc,"");R(this,Lu,new Set);R(this,$i,new Set);R(this,mi);R(this,xn,null);R(this,Ru,!1);R(this,bc,o(t=>{if(!c(this,er))throw new Error("Map not initialized");let i=[[t[0],t[1]],[t[2],t[1]],[t[2],t[3]],[t[0],t[3]]].map(m=>c(this,er).project(m)),a=Math.max(...i.map(m=>m.x)),u=Math.min(...i.map(m=>m.x)),s=Math.max(...i.map(m=>m.y)),d=Math.min(...i.map(m=>m.y));return[new Op.default(u,d),new Op.default(a,s)]},"#getScreenPoints"));R(this,Nu,o((t,n)=>{if(!c(this,er))return;let i=c(this,er).on(t,n);i!=null&&i.unsubscribe&&this.onAbort(()=>i.unsubscribe())},"#onMapLibreEvent"));R(this,ep,o(()=>{c(this,xn)&&(clearTimeout(c(this,xn)),K(this,xn,null),K(this,zi,!1))},"#stopTrying"));R(this,tp,o(()=>{c(this,xn)&&(clearTimeout(c(this,xn)),K(this,xn,null)),K(this,xn,setTimeout(()=>{c(this,ep).call(this)},QT))},"#startTrying"));R(this,vc,o(async()=>{if(jI&&c(this,mi)&&mt(this,Ln,GI).call(this),!(!c(this,er)||!c(this,Ru))&&c(this,zi)&&!(!c(this,$i)||c(this,$i).size===0)&&(c(this,Ln,zI)&&c(this,rp).call(this),c(this,mi))){let t=new Set;this.idleQueue.onComplete(()=>{c(this,aa).length>0&&(c(this,$i).forEach(n=>{var i;(i=c(this,er))==null||i.setFilter(n,["all",...c(this,aa)])}),K(this,zi,!1)),K(this,aa,[])});for(let n of c(this,mi)){let i=Lp(n),a=c(this,bc).call(this,i),u=c(this,er).queryRenderedFeatures(a,{layers:Array.from(c(this,$i))});for(let s of u)s.id==null||t.has(s.id)||this.idleQueue.add(()=>{if(s.geometry!=null&&"coordinates"in s.geometry){let d;if(s.geometry.type==="Polygon"?d=Vc(s.geometry.coordinates):s.geometry.type==="MultiPolygon"&&(d=p4(s.geometry.coordinates)),!d)return;Ey(n,d)&&s.id!=null&&(t.add(s.id),c(this,aa).push(["!=",["id"],s.id]))}})}}},"#handleRender"));R(this,aa,[]);R(this,rp,o(()=>{this.idleQueue.clearAll()},"#cancelJobs"));R(this,np,o(t=>{var n,i;if(c(this,er)&&t&&t.dataType==="style"&&t.type==="styledata"&&c(this,Lu).size>0){let a=(i=(n=t==null?void 0:t.style)==null?void 0:n.stylesheet)==null?void 0:i.id;(!a||a!==c(this,yc))&&(K(this,yc,a),mt(this,Ln,Cy).call(this),K(this,zi,!0))}},"#handleStyleChange"));t&&(K(this,er,t),c(this,Nu).call(this,"styledata",c(this,np)),c(this,Nu).call(this,"render",c(this,vc)),K(this,Ru,c(this,er).loaded()),c(this,Nu).call(this,"load",()=>{K(this,Ru,!0)})),jI&&mt(this,Ln,$I).call(this)}hideLayersIntersectingPolygons(t,n){c(this,xn)&&clearTimeout(c(this,xn)),c(this,tp).call(this),K(this,mi,t.reduce((i,a)=>{if(a.geometry.type==="Polygon"){let u=Vc(a.geometry.coordinates);i.push(u)}else a.geometry.type==="MultiPolygon"&&i.push(...a.geometry.coordinates.map(u=>Vc(u)));return i},[]));for(let i of n)c(this,Lu).add(i);K(this,zi,!0),mt(this,Ln,Cy).call(this),c(this,vc).call(this)}destroy(){this.idleQueue.clearAll(),super.destroy()}};zi=new WeakMap,er=new WeakMap,yc=new WeakMap,Lu=new WeakMap,$i=new WeakMap,mi=new WeakMap,xn=new WeakMap,Ru=new WeakMap,bc=new WeakMap,Nu=new WeakMap,ep=new WeakMap,tp=new WeakMap,Ln=new WeakSet,Cy=o(function(){if(K(this,$i,new Set),c(this,er))for(let t of c(this,Lu))c(this,er).getLayer(t)&&c(this,$i).add(t)},"#filterStylesInMap"),vc=new WeakMap,aa=new WeakMap,zI=o(function(){return this.idleQueue.size!==0},"#running"),rp=new WeakMap,np=new WeakMap,$I=o(function(){if(!document.getElementById(Iy)&&c(this,er)){let t=document.createElement("div");t.id=Iy,t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.bottom="0",t.style.right="0",t.style.pointerEvents="none",t.style.zIndex="1000",c(this,er).getContainer().appendChild(t)}},"#addDebugContainer"),GI=o(function(){let t=document.getElementById(Iy);if(!t||!c(this,mi)||!c(this,er))return;let n=t.querySelectorAll('[id^="polygon-box-"]');for(let i=0;i<n.length;i++)n[i].remove();for(let i=0;i<c(this,mi).length;i++){let a=c(this,mi)[i],u=Lp(a),s=c(this,bc).call(this,u),d=document.createElement("div");d.id="polygon-box-".concat(i),d.style.position="absolute",t.appendChild(d);let m=[Math.min(s[0].x,s[1].x),Math.min(s[0].y,s[1].y)],p=[Math.max(s[0].x,s[1].x),Math.max(s[0].y,s[1].y)];d.style.top=m[1]+"px",d.style.left=m[0]+"px",d.style.width=p[0]-m[0]+"px",d.style.height=p[1]-m[1]+"px",d.style.border="2px solid ".concat(c(this,zi)?"red":"blue")}},"#updateDebugBBoxes"),o(Dy,"OutdoorLayers");var Qm=Dy;l();l();l();l();var ip="attribute float pathDistance;\nattribute vec3 pathNormal;\nattribute vec3 pathTangent;\n\n\nuniform vec2 uvScale;\nuniform float vertexes;\nuniform float complete;\nuniform float nearRadius;\nuniform float farRadius;\nuniform float nearZoom;\nuniform float farZoom;\nuniform float pulse;\nuniform float pulseLength;\nuniform bool pathIsVertical;\nuniform bool displayArrowsOnPath;\nuniform vec2 cameraParameters;\n\nvarying float zoomLevel;\nvarying float radius;\nvarying vec2 fragTexcoord;\nvarying float fragTopTextureU;\nvarying float fragPathDistance;\n\nuniform float highlightStartFraction;\nuniform float highlightEndFraction;\nuniform float highlightCompleteFraction;\nuniform float highlightWidthMultiplier;\nuniform vec3 highlightColor;\n\nfloat flattenFactor = 0.0;\n// Map the x value from the range [xMin, xMax] to the range [yMin, yMax] using\n// linear interpolation/extrapolation.\n//\n// This performs a pure linear mapping y = mx + b where\n// 'm = (yMax - yMin) / (xMax - xMin)',\n// 'b = -xMin * (yMax - yMin) / (xMax - xMin) + yMin'.\nfloat remap(float x, float xMin, float xMax, float yMin, float yMax) {\n return (x - xMin) / (xMax - xMin) * (yMax - yMin) + yMin;\n}\n\n// Map the x value from [xMin, xMax] to the range [yMin, yMax] using linear\n// interpolation, clamping result values outside [yMin, yMax].\nfloat clampRemap(float x, float xMin, float xMax, float yMin, float yMax) {\n return clamp(remap(x, xMin, xMax, yMin, yMax), yMin, yMax);\n}\n\nvoid main() {\n fragPathDistance = pathDistance;\n\n // We can get an origin point for the cross-section of the path by\n // subtracting the surface normal times the radius, since the surface normal\n // points strictly away from the centre.\n vec3 origin = position - nearRadius * normal;\n \n // Inflate the path along its surface normal to increase its radius from\n // 'nearRadius' to 'farRadius' when the camera is at 'farZoom'.\n vec3 adjustedPosition = position;\n zoomLevel = clampRemap(cameraParameters.x, nearZoom, farZoom, 0.0, 1.0);\n\n // expansion factor uses the zoom level to increase/decrease the radius\n // for fixed widths, this number is ZERO\n float expansionFactor = (farRadius - nearRadius) * zoomLevel;\n\n adjustedPosition += normal * expansionFactor;\n\n\n // TODO: optimize by removing branching\n bool isHighlighted = fragPathDistance >= highlightStartFraction && fragPathDistance <= (highlightEndFraction * highlightCompleteFraction);\n // adjust the color based on the highlight but only if the fragment is within the highlight start and end\n if (isHighlighted) {\n // we have to subtract 1., don't ask why\n adjustedPosition += normal * (highlightWidthMultiplier - 1.) / 2.;\n }\n \n\n // Determine how far the path extends \"up\" or \"down\" in the direction of the\n // path normal.\n float height = dot(adjustedPosition - origin, pathNormal);\n\n // For horizontal paths, flatten the bottom half entirely so that it's flat\n // against the floor. This makes the path look nicer when it's\n // semitransparent behind opaque geometry, so you don't see it\n // peeking through. For vertical paths, preserve the full tube geometry.\n if (!pathIsVertical) {\n float desiredHeight = max(height, 0.0);\n desiredHeight = desiredHeight * flattenFactor;\n float flattenMagnitude = height - desiredHeight;\n adjustedPosition = adjustedPosition - pathNormal * flattenMagnitude;\n }\n\n // Transform the vertices into NDC.\n vec4 mvPosition = modelViewMatrix * vec4(adjustedPosition, 1.0);\n gl_Position = projectionMatrix * mvPosition;\n\n fragTexcoord = uv;\n\n // Compute a texture coordinate for mapping the arrow texture to the path.\n // We don't want to use the u-value that Three.js provides, because the\n // path may end up twisting arbitrarily -- but we want the arrow texture to\n // always be on the top of the path.\n vec3 bitangent = cross(normal, pathTangent);\n fragTopTextureU = -dot(bitangent, pathNormal) * 0.5 + 0.5;\n // adjust the color based on the highlight but only if the fragment is within the highlight start and end\n if (isHighlighted) {\n // TODO: fix scaling\n fragTopTextureU = -dot(bitangent, pathNormal * highlightWidthMultiplier) * 0.5 + 0.5;\n }\n\n radius = mix(nearRadius, farRadius, zoomLevel);\n}\n";l();var Sy="#define ARROW_FADING_POINT 0.15\n\nuniform float complete;\nuniform float nearRadius;\nuniform float farRadius;\nuniform vec2 resolution;\nuniform vec2 cameraParameters;\nuniform vec3 color;\nuniform float pathLength;\nuniform bool showPulse;\nuniform vec3 pulseColor;\nuniform float pulse;\nuniform float pulseLength;\nuniform bool pathIsVertical;\nuniform bool displayArrowsOnPath;\nuniform float arrowAnimationTimer;\nuniform float opacityMultiplier;\nuniform bool dashed;\nuniform float dashLength;\nuniform float dashGap;\nuniform bool dashRelativeToWidth;\nuniform float dashSize;\nuniform float gapSize;\nuniform bool dashAbsolute;\nuniform float dashMeters;\nuniform float gapMeters;\nuniform sampler2D arrowTexture;\n\nvarying float zoomLevel;\nvarying float radius;\nvarying vec2 fragTexcoord;\nvarying float fragTopTextureU;\nvarying float fragPathDistance;\n\n\nuniform float highlightStartFraction;\nuniform float highlightEndFraction;\nuniform float highlightCompleteFraction;\nuniform vec3 highlightColor;\n\n// How long the arrow should be, as a factor of pathRadius. Since we've\n// mostly flattened the top of the path, values near 2.0 (the diameter)\n// will probably look best.\nconst float arrowLength = 2.0;\n\n// How much of a relative margin the arrow texture should have inside the\n// area laid out for it. Useful to pull the arrow away from the edges of the\n// path, which slope down.\nconst float arrowMargin = 0.1;\n\n// How many arrow-lengths of space should be between arrows on a short path.\nconst float arrowSpacingOnShortPath = 6.0;\n\n// How many arrow-lengths of space should be between arrows on a long path.\nconst float arrowSpacingOnLongPath = 7.5;\n\n// How long a path must be to be considered \"long\", as a factor of\n// the path radius.\nconst float longPathLength = 200.;\n\n// How long a path must be to be considered \"short\", as a factor of the\n// path radius.\nconst float shortPathLength = 75.;\n\n// How much of the path's length the fade-in should comprise when going from\n// zero opacity to full opacity.\nconst float completeLength = 0.1;\n\n// Map the x value from the range [xMin, xMax] to the range [yMin, yMax] using\n// linear interpolation/extrapolation.\n//\n// This performs a pure linear mapping 'y = mx + b' where\n// 'm = (yMax - yMin) / (xMax - xMin)',\n// 'b = -xMin * (yMax - yMin) / (xMax - xMin) + yMin'.\nfloat remap(float x, float xMin, float xMax, float yMin, float yMax) {\n return (x - xMin) / (xMax - xMin) * (yMax - yMin) + yMin;\n}\n\n// Map the x value from [xMin, xMax] to the range [yMin, yMax] using linear\n// interpolation, clamping result values outside [yMin, yMax].\nfloat clampRemap(float x, float xMin, float xMax, float yMin, float yMax) {\n return clamp(remap(x, xMin, xMax, yMin, yMax), yMin, yMax);\n}\n\nvoid main(void) {\n // Compute the opacity of the path based on the distance from the current\n // fragment to the 'complete' value as it varies from 0.0 to 1.0.\n // Fragments that are at the 'complete' value or past it will be fully\n // transparent, while fragments that are at 'complete - completeLength'\n // or before it will be fully opaque. However, we adjust the 'complete'\n // value here so that it overshoots by one full 'completeLength', so that\n // the entire path will be opaque when the 'complete' value is at 1.0.\n float completeLocation = complete * (1.0 + completeLength);\n float completeAmount = clampRemap(\n fragPathDistance,\n completeLocation - completeLength,\n completeLocation,\n 0.0,\n 1.0\n );\n float opacity = 1.0 - smoothstep(0.0, 1.0, completeAmount);\n\n // 2020/01/09 Terence Dickson\n // When we render the background and overlay for the mapbox outdoor context\n // behind everything else in single-buffer rendering, the fact that the path\n // writes to the depth buffer means that the background and overlay will not\n // be drawn behind the path even when the path is still fading in. The effect\n // is subtle and is only visible in single-buffer rendering so this quick fix\n // prevents writes to the depth buffer for zero opacity fragments, which gets\n // rid of the most visually-offensive ghosting.\n if (opacity <= 0.0) {\n discard;\n }\n\n // Push in the texture coordinates so that they ramp up\n // at 'arrowMargin' instead of at zero; this remapping looks somewhat\n // like this:\n // 1 ^ ___\n // | /\n // | /\n // | /\n // | /\n // |___/\n // 0 +---------->\n // 0 ^ 1\n // arrowMargin\n // Making the arrows narrower on the path.\n float u = fragTopTextureU;\n u = clamp(\n u * (1. / (1. - arrowMargin * 2.)) - (1. / (1. - arrowMargin * 2.) - 1.) / 2.,\n 0.0,\n 1.0\n );\n\n float arrowSpacing = clampRemap(\n pathLength,\n shortPathLength * radius,\n longPathLength * radius,\n arrowSpacingOnShortPath,\n arrowSpacingOnLongPath\n );\n\n // Reduce the spacing between arrows when the camera zooms out, as increasing\n // the path radius will increase the arrow size and thus be able to fit\n // fewer arrows on in total, and this secondary movement of the arrows\n // \"zooming off\" the end of the path is unpleasant\n float expandAmount = mix(1.0, farRadius / nearRadius, zoomLevel);\n float effectiveArrowSpacing =\n arrowSpacing * 1.0 / expandAmount +\n arrowMargin * 2.0;\n\n float effectiveArrowLength = arrowLength * radius * (1. - arrowMargin * 2.0);\n\n // Adjust the slope of the vertical texture coordinate so that it goes\n // from 0 to 1 along the length of the arrow plus the spacing between\n // arrows, and adjust its x-intercept so that one arrow moves to the\n // exact position of the next arrow as 'arrowAnimationTimer' goes\n // from 0 to 1\n float v = (\n fragTexcoord.x * (pathLength / effectiveArrowLength)\n - arrowAnimationTimer * (1. + effectiveArrowSpacing)\n );\n\n // Compute a \"looping sawtooth\" wave for determining the vertical texture\n // coordinates of the arrow texture, roughly as follows:\n // 3 ^ /\n // | ___/\n // 2 | /\n // | ___/\n // 1 | /\n // |___/\n // 0 +--------------->\n // 0 ^ ^\n // ^ |_|\n // | effectiveArrowLength\n // |___|\n // effectiveArrowSpacing\n //\n // This is effectively equivalent to this sort of sawtooth wave:\n // ^\n // 1 | / / /\n // |___/ ___/ ___/\n // 0 +--------------->\n //\n // Causing the image of the arrow to repeat, with dead space (the bottom\n // edge of the texture stretched out) between the arrows at the provided\n // spacing. The reason why the \"looping\" design is preferred is because\n // it takes advantage of WebGL's 'GL_REPEAT' texture wrapping behaviour\n // to avoid the discontinuity that can end up causing visual artifacts.\n if (mod(v, (1. + effectiveArrowSpacing)) < 1.) {\n v = v - effectiveArrowSpacing * floor(v / (1. + effectiveArrowSpacing));\n } else {\n v = ceil(v / (1. + effectiveArrowSpacing));\n }\n\n // Use the r-component of the texture to determine whether the arrow covers\n // this fragment or not\n vec2 sampleTexcoord = vec2(u, v);\n float arrowAmount = 0.0;\n vec3 secondColor = pulseColor;\n\n vec3 finalColor = color;\n\n\n\n // adjust the color based on the highlight but only if the fragment is within the highlight start and end\n // [Anzor] I added 0.005 to make the highlight transition a little smoother when the width multiplier is too high\n if (fragPathDistance >= highlightStartFraction - 0.005 && fragPathDistance <= (highlightEndFraction * highlightCompleteFraction)) {\n finalColor = highlightColor;\n }\n\n\n if (displayArrowsOnPath) {\n arrowAmount = texture2D(arrowTexture, sampleTexcoord).r;\n float delta = 1.0 - abs(fragPathDistance * 2.0 - 1.0);\n secondColor = mix(finalColor, pulseColor, 1.0 - smoothstep(ARROW_FADING_POINT, 0.0, delta));\n }\n\n if (dashed) {\n float effectiveDashLength;\n float effectiveGapLength;\n\n if (dashAbsolute) {\n // Absolute mode: dashMeters/gapMeters are in meters\n // Convert to path-distance fraction using pathLength\n effectiveDashLength = dashMeters / pathLength;\n effectiveGapLength = gapMeters / pathLength;\n } else if (dashRelativeToWidth) {\n // Width-relative mode: dashSize/gapSize are multiples of path width\n // Convert to path-distance fraction using radius\n effectiveDashLength = (dashSize * radius * 2.0) / pathLength;\n effectiveGapLength = (gapSize * radius * 2.0) / pathLength;\n } else {\n // Length-fraction mode: use dashLength/dashGap directly as path fractions\n effectiveDashLength = dashLength;\n effectiveGapLength = dashGap;\n }\n\n float totalLength = effectiveDashLength + effectiveGapLength;\n float numSegments = ceil(1.0 / totalLength);\n float adjustedTotalLength = 1.0 / numSegments;\n float adjustedDashLength = adjustedTotalLength * (effectiveDashLength / totalLength);\n float pattern = mod(fragPathDistance, adjustedTotalLength);\n opacity = pattern < adjustedDashLength ? 1.0 : 0.0;\n }\n\n\n\n if (showPulse) {\n // Add the pulse color to the path by determining how far the current fragment\n // is from 'pulse'\n float pulseLocation = remap(\n pulse,\n 0.0,\n 1.0,\n -pulseLength,\n 1.0 + pulseLength\n );\n float pulseDistance = smoothstep(\n 0.0,\n pulseLength,\n abs(fragPathDistance - pulseLocation)\n );\n\n // Blend the pulse color to the path based on how close this fragment is to\n // the 'pulse' value and whether it's covered by an arrow -- but if it's\n // covered by *both*, then we go back to using the regular path color\n // (making arrows look like \"holes\" when they're overlapping the pulse.)\n float pulseLevel = abs(1.0 - pulseDistance - arrowAmount);\n\n\n gl_FragColor = vec4(mix(finalColor, secondColor, pulseLevel), opacity * opacityMultiplier);\n } else if (displayArrowsOnPath) {\n gl_FragColor = vec4(mix(finalColor, pulseColor, arrowAmount), opacity * opacityMultiplier);\n } else {\n\n gl_FragColor = vec4(finalColor, opacity * opacityMultiplier);\n }\n #include <colorspace_fragment>\n}\n";l();var ZI="uniform float complete;\nuniform float nearRadius;\nuniform float farRadius;\nvarying float fragPathDistance;\nconst float completeLength = 0.1;\n\n// Map the x value from the range [xMin, xMax] to the range [yMin, yMax] using\n// linear interpolation/extrapolation.\n//\n// This performs a pure linear mapping 'y = mx + b' where\n// 'm = (yMax - yMin) / (xMax - xMin)',\n// 'b = -xMin * (yMax - yMin) / (xMax - xMin) + yMin'.\nfloat remap(float x, float xMin, float xMax, float yMin, float yMax) {\n return (x - xMin) / (xMax - xMin) * (yMax - yMin) + yMin;\n}\n\n// Map the x value from [xMin, xMax] to the range [yMin, yMax] using linear\n// interpolation, clamping result values outside [yMin, yMax].\nfloat clampRemap(float x, float xMin, float xMax, float yMin, float yMax) {\n return clamp(remap(x, xMin, xMax, yMin, yMax), yMin, yMax);\n}\n\nvoid main(void) {\n // this ensures that the stencil mask moves along with the path above it, to avoid the progress bar effect\n float completeLocation = complete * (1.0 + completeLength);\n float completeAmount = clampRemap(\n fragPathDistance,\n completeLocation - completeLength,\n completeLocation,\n 0.0,\n 1.0\n );\n float opacity = 1.0 - smoothstep(0.0, 1.0, completeAmount);\n\n // 2020/01/09 Terence Dickson\n // When we render the background and overlay for the mapbox outdoor context\n // behind everything else in single-buffer rendering, the fact that the path\n // writes to the depth buffer means that the background and overlay will not\n // be drawn behind the path even when the path is still fading in. The effect\n // is subtle and is only visible in single-buffer rendering so this quick fix\n // prevents writes to the depth buffer for zero opacity fragments, which gets\n // rid of the most visually-offensive ghosting.\n if (opacity <= 0.0) {\n discard;\n }\n\n gl_FragColor = vec4(0.0, 1.0, 0.0, opacity);\n}";var VI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAAAAAB5Gfe6AAAQkHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZpZciQ7rkT/uYpeAicQ5HI4mr0dvOX3ATOl0li3q3SVJkUqFMEBcHc4IuX2///fcf/hK7cSXRatpZXi+cott9h5U/3j63EMPt+fL1/h+fPdeff6NnJMHNPjD2U/7+qcl183aH6eH+/PO52PN7E+B3qZ+Tlgspkjb57X1edAKT7Oh+fvrj3v6/nNdp7ftd057abHnz78npVgLGG8FF3cKSTPz2oXJFaQWuocCz9D0mhnEu8Tx54k6dexc98F77vY+f48n96HwvnyvKB8iNHzfJCvY3cj9HZF4dfM7/6QZ4j+7deb2J2z6jn7sbueC5Eq7rmpl63cd1w4GCrd2wov5Vt4r/fVeFW2OMnYIpuD13ShhUi0T8hhhR5O2Pc4w2SJOe5IuGOMM6Z7rhL+FudNSrZXOFFJz3KpkqtJ1hKn4+tawp233flmqMy8AlfGwGCBOz693Fcn/+b1OtA5Bt0QfH2NFeuKFnCWYZmzn1xFQsJ5xlRufO/LvcGNf5PYRAblhrmywe7HY4gh4Re20s1z4jrx2fkHNYKu5wCEiLmFxYREBnwJSUIJXmPUEIhjJT+dlceU4yADQSSu4A65SamQnBptbu7RcK+NEh+nkRYSIZBGSQ0EIlk5C/jRXMFQlyTZiUgRlSpNekklFymlaDGN6po0q2hR1apNe001V6mlaq211d5iS0iYtNLUtdpa651JO0N37u5c0fuII408ZJSho442+gQ+M0+ZZeqss82+4koL+q+y1K262uo7bKC085Zdtu662+4HrJ108pFTjp562umvWXtm9X3WwofM/T5r4Zk1y1i+1+mvrHFa9WWIYHIiljMyFnMg42oZANDRcuZryDla5ixnvkVIIZGsBbHkrGAZI4N5hygnvObuV+Z+mzcn+Y/yFr/LnLPU/RuZc5a6Z+Y+5+2LrK1+K0q6CTIWWkx9OggbF+zaY+1Wk/766H46wF8ONFY+O8hBMEc7oc4Vdh+8JsE+PUSrVjr70Zz1+H56PH3o9sRR1ql5Ha8bUMQxpe89Tki8Sb0tE23cw3DcfEo+ugnj2G3WEmononVfoag71pVjR+EmAE53eT5tqYfEHl/7ThMusaI+St0jktFa9gKnreiQqCNpZ2mJdSkbaiK6DrovYR4/JhJfRsx5d5EVZnEIPetHnU5KynJPTSuCPuC0lOuXH7n1DNq7DpUtHbhM5lDA0c2bnDCJoOObMnyj+aPjPwx0yiDUxKKsg35VnRnBEVhonKwK5hOk5NttUrhr2+tMOXkPJb1RZ+iAelYjL2MuO3pGRQ78GdxwOOaTAcJZcewq7ilB1RJCSozUdSEdwVJVb6asiBsHH1Bqgbiv3Cmkkis6ktVnZGRRwMNJjUA3Ao2127YWdhAIblxF51hzMcZsVZc0r0dJo5Liqfn41Q+q193SGhhkMkgaLJRNnEpqBtyVvbcVffIk+LE9QPFBTMTQe0aWkMXMnx3dy5sfHreDE60Ql50E+SqRcmfK16L2p0Ol8JFATu3qASXy7SvmiGW2cdMBxsty44CvtLogfGlv7WkCSV0WId2270EaD5Ym40cs+SAwZuNjPSTywAvEfLmzQhtLDntfCnhl/fNmUNnzyA2g76Zn0SP+c+I6bCC0FONUQ4L50e95dif+DH/m9htQjBEhPPpOjYjmm2ChbfEMIUaYtAIxmWJHlilLU8ZRs9pCsHbDpFaRgZljz2QandjDIBPZDGTuoZW1KdlYh52ALzisKJRNWSQmLAWx8iv9mGttT15bBc2oxd57bZtVF98CYtK3UH22Yd/A7WaKa+ZjNTOXEzNhMJ5kmQOvfzsbxbZALJ2xwGBjX2HFQybhi7kpbA7DVpS3RxMJwFyHwGk5gs6a4lrRHVqhYT0QTJC9UZcC9Yrelkn6yXch68NKNtG7CiU3vf/zMZAYXPWdrR9XZ/ctMV1sJQ2wJEGxzaHs7LmmHIwnUwbwnNAapBY9xhE19DNJW3ua0dDk/AjwITacR0PqZxkbyJ+E5jYbxI84x1TBE+y90hwDCYZIM0tqAKPZfCzFrbH8kYCm3eqQkZ2+2GovcL8Suokyg8yyCJes6dcouSLiNSLb0ETJU+/N/WFsBBSOXBbm9Cwp4CzlOag7ro7R2vC19nSsCPmAjIEMiobFwaoVXhjTU2XMpgEsDH/L3Sx54OCTMUSXI/IIA2V4QcLQpwVz12pInI0bY56pIQ2BSGRLL+yLfZ7JkiimbK+aepsbwRStpokx5gCqe1hjdMAwcINbkk5jmedrNRAG5pUXPe0sZIoXy1h7lSDxApzheg24JeDNtDS1oBDBUC4iWZFilBPhZx0Kqx2lihpbG9q4sYidksCN4yRYhNM4nxfBbTi4E3AT6B3igbvs9Gv8ZkHsIfdlep+2HelEDbkJdNjqZQ90B7k6OIoFfkkPNoY+z0gzACa1f2qcBYxVJpT2QQgS19dKQlbC24S92xiEAFRKB5Uy1qrBgOtwIge55G0kRPfIytGx0tMOrGfrijB2FHOk/TKcMjDTMPeBo4FnXD5cQ8vtdgoAN0yuzZQHQI09wm/5vAB6RHyI9rYKiZ6YWC6rbaiLmDtoaToC1bViXQFNtgWsOfEEKCleC3GWPSfgQWRQWMgw/9FDgvOZrFAT3SmsA3DLbqlsSppQG5QeOjPXavUUkxF/qgLM05vW5o7UakuBqo2ZW8Nj0LB7imVJC9QSA+wd7RPztIUZ80xQZq0ROrc8CSVncWzkTA/RwmunldCPAQKjqVC7bhRuTIv0plbk7gOX4m5OAi2YesYZ0KBQRToG8iv9x8dgGtgECYRBeEU87OxoSc8epu+s7Mq/MN0VbBT19dii7ekO66UZwdAMtoAVQd13J5nwZe98OgGslmVqAGBkeLZNVNVlWpV18qihntXKnBZvrDIVgFpx4q5poLqREOVplMPSpTF2KvjBAzDpprkruXIaaUmUD4Xo2yrGWcYlixKIwRFjl0jPQhKznUXZAoSjlg9c/NwAI4p3Q/w5bCNfhUZS7bGfqesHqKAlyZZxZgNrhGevZXccaqBys4NEqB3Vqfptji9uUrhCL6yXFqxtm0hhLyYU3Tjd8I/HZaWD1oyVjnG5hhpCN5yHSf8BQUZlVNd00OP4M0TK+JSM7iqWi01SinFkCQXWxiZJLqqAHiEt3G3I2WYd46KU9pIJIOkoRQYCcEAAPguHo0Y4k8Hl6SW50MoW0uZU8jJOUghKo38Nl5ZSwsJNAUC2/lFZWkfMjrU8dFrTjHpJnUrLCILQIxINiYdQlDXaE/razQ4jjQluN5jW1Eh/S7yYvI5gigSjdLYU9TiFXAcHjISiLhQd9obb3OQmwY+YqVwiBMCkOGLXaK/ljBShh56c1g0uyIb2lBRKO7ZTAFncw5c5UGjGSy3CsI1Jt2mtruZkfhBZmbR+842Yu1eDiWEl0V6LZcGem6Ct+LW4Wy3oAjyNObazKBHomhJ3HMKEKHgiGksH+Ig1nTidfNMyA+oYHqVFaRGLiQreVLc9GvQgftKjW9cfUSKNYL80rqU7Um2rwqQJR1ai31Wq7vzKJEsFHDj0bAEMUKXgvfD5bWbaLPBTKz1Nk/Fg+GUZvUzFw80CLaKtPAACVAWrismh863FU4IJ0716SXBUNVb/SDMVvZgDt34CXoOq1JKvg0n08gPHTwXBNgD5W8pZZ8E9EVWcv1DZMB2NFysIwkqBSaH5QRmsAHdkHB+UANvLJvFpQKAahSmYTLEd2AFO+5rsqRRU6sVv5IP0wsSPLcWsbC1Y95mte71CUm6RJJWwkg6Q4k+xWMM0ByElJPQ6j2ED5hY42ALpZRytx9RlgQlJLijzhKi5eX5JBSIRGfo9o2xhd/0aWku8OS+4D9ZnovHDQMPaYo4qm2mlZbUnd7pR6oQj29Z2BqJ9n3LRT+MTLu3IR+ZP2TCPh3EDw8H1NHpoT7FibNYU8WHd9ESHcY12aDOQCUBddi4Ucp+4yuzz8ybcCCu1h8zvzXhDN4HYLq1R+U0xzUqg5QSA3iSBgdDouy55Ifx0DaeEhgezxBRGmoEJ6AJitVuzwtKPlUskHgU2F0LS7AFIwW5jPu0RUL7sp+fkNk0ee8P6uXYgl40WM+cdCOW21r13e0ivt0ff/mYcUfrQZWs2BiN6G+MDTGz1BKORmUTNQp9YGSHFxAeTkQrKd6FoVUogyytW25OLy3OpaO5oZCQp46aPzb5LnJiFEIwAKkmbYVYIjzVv3vj7rA6HignEeQAXTAHKDhoD7Uujh0QjtsB6fTP1NzO7T1Nzq4F1GnfHdXCG1Yxjwdtjf+PGRGTzEtEAUCz7KLfTdItLwCXuSOAzVjaZB6LvbUZhYGWmifSZlcMDnGHPd6gPeiK9erhpiw7ZP9ahTrMhFDa1J53m9ri2DloziqGETTcVSppCbTDDjExg6RrZ6cPEzB8XArEjQSB29odrUoLyoS/65RfM9fprGGjlHpbhGgbYD8MtmW1eFcAWX5dbcMHcl8sUI2k+H7GPW9VrArw3G+BefcCrCaAT/N53YLvP26Uy0kMFnDEZz0DJkmQqEOlL7SlKweYhH8gxpYeAYi0f9magqPbMYZuUI6007lSZQoyoGfYQHsNRzHXR3MMINTSMZpq1KD2A5MDJgtMLdRU6R4CEOJcKGiIJ7K6P/vAM6xpECHI8rRHsaEj6smkngAUjXTzrRoSI48ZpHOqgOY5OejKVdpnmiYUChQnVdIPa6ekGqRSRgEO119oDHOiIUQ5ciYVgaF1oG8Udo8WYtD+DEi8D/w8rAJE2k2PoyV0oMtpauxreaFjpujAvxFlwBhjuNqM9P0IfI5iD8Nh8y1kG4igjJkDNkOijnlLhItAd9lhRd670yNRTu95cR/Xuu0c5WO4DEFk5YQAPtLvU4TYPGRh4APPEDNiuuwR6SC21JoFbQBBMr+zJmT32QplNI6p16PbculN/pCX1wAyTWGTeJ774aln0gvQikw7TmkfsNbdQNs0adutYUDqNtGc0RqngUYdhUYuHSL1/eLrgvqDTC5neu++vufRkEgP9D2T64Kg/c4n+s7k3dDr3me8nOr0c72MRNmgF7D4WySPP0YAI/bI4eixwc7K13QiRiL85A8fnSsUj+mvTrsZtVUEQZ6sTpVafW8nYJZyaZS0U+0xIb6et9PhhtoObozQbjKAoDf6eiFgx1UUvpUYj1GweH0MNMrofhynfWn7+KYu7n5r83hN9aqm+6qjcH7dUlgvZVLV3xqq4fbP16qv+eofuTz43eomAqfS7GBAB9zEE31WJ37eVIPtdGN5A8nMYPvvLt8t2/V/6gM19G4g/hIL7UXf9JgbuLRZ+AoW//AzyMxTcWyz8BAruLRZ+AgX3r3y2+mT/PwfiN1DoVI+QT3CZDmvb8022JeYb6HiQPQpPPvboFB+i1MZdcqWZqthHmix6vttw0UAI1z8oEnGwVe++c7JamxslC+8xKJE41XJmug1npz+6CUAKyURd9gSxo+kWxvtZth848GBlws/0SKjYhmbZ9IiV+mcGBSdWHk8sqSr2zz5J7QME/0yD+z4Pe+JuGn1MV/vUyZwOHojWPlmPXgf9CuoeN9UAT+FGwaLg44v3dWe6QpvuL3Ln/p3k/2AgqNDcfwHgqUmIIqn+hwAAAAJiS0dEAACqjSMyAAAACXBIWXMAAAsSAAALEgHS3X78AAAAB3RJTUUH4wYRESAMujenGAAAB9FJREFUeNrtnWlsFVUUx899fS1gUoKioEY+WBRUEohGkUhAKxgEjSgGoRGB4AJCNKAIJBJZJSiyGYMKKkIoLlEUKhUraxFkKUE2kU1aCrRgW2jpg9f29R2/sBTo67v3zL2zvfP73MzM+XU6mf+5504BGIZhGIZhGIZhGIZhGMZGGq3JvSmR62++BXHH7Ylbf9ouRMT99yVq/e0PICIiHumUmPV3PooXOf5EItafXoCXOdUn8ep/pgjrUDY40ervX4JXUTEiocoXL5/FawiNEwlU/6hzeB3hqQljQIwJYT3UzEkQA2JiGOslsiAhDIgZ1RiD6NIEMBD8NIKxyQr6vv7FtdgQa31uILg0ig2zsZmv4//yePUj7rjNv/U3yUEJ/r7Xr/XfvBmlOPKwT+vfhpIUdvdj/Wm7UZpTz/mv/g4HUYGyQb5r/+SjEhXD/VV/j5OoSGisj16LRe9iVCY8xTcGxIulSKBmtk8MiKHlSMIn8ViMqkQivojHgfcuIJ0VAc/XPzmMVljrcQOBmdVojY1NvVx/8mcRtEqeh+NxypJatM6+ezxb/7Io6uBwR4/e/1moicJunvz956A2ip/1Xv3Nt6JGSgd6rf47/0KtlHssHrfZi5rxVDwWDx5C7XgoHotHC9AANbO8YqBXERohMt8bv/8X/kNDRDM9cA+IgWVojhWuNxAYXo4mWePyeBwYHUKz5Lo6HidNvICmybvVxfXPqEbz7Gvr2vrn1KAdHH7IpX//8yNoD8dcGY+TM6NoF26MxzLTL26Mx0majtM4q5ed7yhNulVsd5WAxqset/mGS6/d5CIBLXI62/7I6ZKyzjUC0rIfsP+hE3zkxt9c8vy7tPnJbiKfuyP+Xdn8ZDeuiMei+zF0juWOGyBNv+iMxw4bEBkl6CzOxmPx6ll0mryWDtb/ViU6z17H4rEYG0I3cMiheByYFEZ34Ew8Dn5UjW7BiXisY/rFDfGYmgWCCwcngXto0q08z1YBSUsy3NWgb5Qe2WSjgJRlfdy2RJPcNXm9bQIarexpsP5VdxHjcbMcm2Q3/5P64i71U8k/ELuLNsVjcct2cnST+rGg+Jo4XmhLPBZ376GOfoOkAIB5NWTHxuu/nzj9ElkA8gLgA+pLlvF43IU4/VI9G1QEAHnIPjfVaP1PnqRdVngKqAkActDMa2Hw/u9zijjjNg5UBcBr1FbD3jbG6h9QSruk8ovfyFESABnUWSNT8VgMI06/lF7aBqomAJ4n3m+G4nHgbeJfZfHljcCKAqDHcWo87m2g/gnE53LhlS+lqQqATv9S4/FL2u//qcT2T34XoAuAdvuJBspf11z/LOKbyYG6q4bqAqDVTqKByjFa21/U6ZfdaWBNADTdTDQQnqSv/pRMYjrZevVLCUUAiF+JBqpnaqv/J2I+zb3mxZwkAMTPDq8ep1A3P/1y3ZOEJABgiaPxuOnvxLN/B7oEwELq/sPl1utvSdz8VPsl6BMAn1AbBKut1t96F+3ENXOFTgFiehXRwAZL8Vi0JW5+qppW7+HIAgDGnyca2G4hHouOh2knvTARdAuAkedsj8cinTj9Ujka9AuAV87YHI/F08TNT2eHgQkB0I/aIDhGmuIU/YnnKxkAZgTAU8SGHC0eDyJufiqKfTKrAqBrPtFAiXo8HlFBO1VBA7ebZQHQifhUVo7H4p2QgQeOdQHQbp8t8Tg4idj+2dPgwJIGAdBqhw3xmDz9EuelQ4cASP3DeDwOziW+ecdbldEiACDbcDxOWkBs/8QNHpoEAPXjLNFMmfpv+IZ4+PjRU5cAWGwwHqcQNz/J2NUmAMgjavHjMfEPTGpvvz4BQH1MrzMkoHoW2CsAppEaBFskemQUA+HJYLcAeJfQINgpNVuvbiA0FuwXAG8qNwh2S07WqxqQ/saPXgEwRDGu7W8te2Q1A6XSH0HWLAD6nVa5zoPS9asZKJb/DLZuAdDzhPx1Hu2gkobkDRQq/J8w7QJAfstevuI3+WQN1F39dkAAtP9H7jpPdFVtiMgZOKC0Z9aAAEiT+mrbScLQjIyBXWngtABokRf/kKefonRF4xvYqrjmYEQApG6Md8SyvrS+eDwDG5QbzUYExL3QMxnUlZGGD5wFbhEADQ7YVwyhr401YCD6LbhHACyK3SA4N9TK6mhMA5EvwE0CYF6sBkFopLXl8exYq9/gLgHwYf3x+PxoqwMC9RoIvw9uE1D/gH3VeOsjItnSq9/OCqhvwL5qAoABA5XU28qsAHjj2tW8mukABgzEXP12WgAMvrpBEPkYwICB2KvfjguAvnUH7GvnARgwUGRhEt24gLoD9tGvAAwYKLDyySzzAqDzpQH76CIAAwYOWtqNYoMAaH9xwP57AAMG9ljbj2SHALhjJyLijwAGDGyzuCPNFgGQuhlxpfw1yR94dfAxi5cmojI/lRyx+rtaX9XDhADr2CVABc//JycWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWAALYAEsgAWwABbAAlgAC2ABLIAFsAAWwAJYAAtgASyABbAAFsACWIDToH8FyJUWtVWAALedDoFhGIZhGIZhGIZhGIYxyf+YwEMsIhMo/AAAAABJRU5ErkJggg==";l();var op=new te,ap=new te,Uu=new te,WI=new te,Ao=new te,tk=.5,rk=2;function nk(e,r,t){let n=e.x-r.x,i=e.y-r.y,a=e.z-r.z,u=t.x-r.x,s=t.y-r.y,d=t.z-r.z,m=n*u+i*s+a*d,p=Math.sqrt(n*n+i*i+a*a),g=Math.sqrt(u*u+s*s+d*d);if(p===0||g===0)return 0;let b=m/(p*g),v=Math.max(-1,Math.min(1,b));return Math.acos(v)}o(nk,"calculateCornerAngle");function KI(e,r=20){if(e.length<3||r<=0)return e;let t=r,n=r/2,i=[e[0]];for(let a=1;a<e.length-1;a++){let u=e[a],s=e[a-1],d=e[a+1],m=u.distanceTo(s),p=u.distanceTo(d);m>t&&(Ao.subVectors(u,s).normalize(),Uu.set(u.x-Ao.x*n,u.y-Ao.y*n,u.z-Ao.z*n),i.push(Uu.clone())),i.push(u),p>t&&(Ao.subVectors(d,u).normalize(),Uu.set(u.x+Ao.x*n,u.y+Ao.y*n,u.z+Ao.z*n),i.push(Uu.clone()))}return i.push(e[e.length-1]),i}o(KI,"reduceEdgeLengths");var HI=.0025;function qI(e,r,t,n=Math.PI*2/3){if(e.length<3||r<=0||t<=0)return e;let i=[e[0]];for(let a=1;a<e.length-1;a++){let u=e[a-1],s=e[a],d=e[a+1],m=s.distanceToSquared(u),p=s.distanceToSquared(d);if(m<HI||p<HI){i.push(s);continue}if(nk(u,s,d)<n){op.subVectors(s,u).normalize(),ap.subVectors(d,s).normalize();let b=Math.sqrt(m),v=Math.sqrt(p),C=Math.max(tk,Math.min(rk,r)),A=Math.min(C,b*.5),x=Math.min(C,v*.5);Uu.set(s.x-op.x*A,s.y-op.y*A,s.z-op.z*A),WI.set(s.x+ap.x*x,s.y+ap.y*x,s.z+ap.z*x),i.push(Uu.clone(),WI.clone())}else i.push(s)}return i.push(e[e.length-1]),i}o(qI,"insertCornerControlPoints");var ik=new Gc;function XI(e,r,t){var Un,fa,ha,Ku;let{breakpoint:n,width:i,accentColor:a,completeFraction:u,isVertical:s,visibleThroughGeometry:d,dashed:m,highlightCompleteFraction:p,highlightStartFraction:g,highlightEndFraction:b,highlightColor:v,highlightWidthMultiplier:C,xrayOpacity:A}=r,{color:x}=t,E=!0,S=0,D=1/0,I=r.displayArrowsOnPath,T=!0,V=I,$=typeof i=="object"?Number(i.output[n])/2:i/2,O=typeof i=="object"?Number((Un=i.output[n+1])!=null?Un:i.output[n])/2:i/2,M=((fa=t.altitude)!=null?fa:0)+ok,Z=0;e[0].z+=M;for(let Oe=1;Oe<e.length;++Oe){e[Oe].z+=M;let Ee=e[Oe].x-e[Oe-1].x,Et=e[Oe].z-e[Oe-1].z;if(s)Z+=Math.sqrt(Ee*Ee+Et*Et);else{let ga=e[Oe].y-e[Oe-1].y;Z+=Math.sqrt(Ee*Ee+ga*ga+Et*Et)}}let z=e,re=(ha=r.smoothingCornerRadius)!=null?ha:yi.cornerRadius,k=(Ku=r.smoothingTension)!=null?Ku:yi.tension,H=re>0&&k>0;if(H&&(z=KI(z),z=qI(z,re,k)),!s){let Oe=z[0],Ee=z[z.length-1],Et=H?.01:-.01;z.push(Ee.clone().setZ(Ee.z+Et)),z.unshift(Oe.clone().setZ(Oe.z+Et))}let q=new Jy;V&&(q=ik.load(VI),q.colorSpace=_c);let G=new Bt(x),ae=new Bt(a),oe={vertexes:{type:"f",value:1},resolution:{type:"v2",value:new $e(1,1)},cameraParameters:{type:"v2",value:new $e(S,0)},complete:{type:"f",value:E?0:1},color:{type:"c",value:G},pathLength:{type:"f",value:Z},nearRadius:{type:"f",value:$},farRadius:{type:"f",value:O},nearZoom:{type:"f",value:S},farZoom:{type:"f",value:D},pulseColor:{type:"c",value:ae},pulse:{type:"f",value:0},pulseLength:{type:"f",value:.075},pathIsVertical:{type:"b",value:s},arrowAnimationTimer:{type:"f",value:0},arrowTexture:{type:"t",value:q},displayArrowsOnPath:{type:"b",value:I},showPulse:{type:"b",value:T},opacityMultiplier:{type:"f",value:1},dashed:{type:"b",value:m},highlightCompleteFraction:{type:"f",value:p},highlightStartFraction:{type:"f",value:g},highlightEndFraction:{type:"f",value:b},highlightColor:{type:"c",value:new Bt(v)},highlightWidthMultiplier:{type:"f",value:C},dashLength:{type:"f",value:r.dashLength},dashGap:{type:"f",value:r.dashGap},dashRelativeToWidth:{type:"b",value:r.dashRelativeToWidth},dashSize:{type:"f",value:r.dashSize},gapSize:{type:"f",value:r.gapSize},dashAbsolute:{type:"b",value:r.dashAbsolute},dashMeters:{type:"f",value:r.dashMeters},gapMeters:{type:"f",value:r.gapMeters}};H&&z.length>=2&&(z.unshift(z[0].clone()),z.push(z[z.length-1].clone()));let Y=new o4(z);Y.curveType="catmullrom",Y.tension=k;let le=30,fe=8,xe=le*z.length,be=new u4(Y,xe,$,fe,!1),Fe=new Float32Array(be.attributes.position.count);for(let Oe=z.length;Oe<Fe.length;Oe++)Fe[Oe]=Oe;be.setAttribute("vertexIndex",new Ar(Fe,1));let De=new Float32Array(be.attributes.position.count),ht=new Ar(De,1);for(let Oe=0;Oe<=xe;Oe++)for(let Ee=0;Ee<=fe;++Ee)ht.setX(Oe*(fe+1)+Ee,Oe/xe);be.setAttribute("pathDistance",ht);let vt=new Float32Array(be.attributes.normal.count*3),Sr=new Ar(vt,3);for(let Oe=0;Oe<xe;Oe++){let Ee=be.tangents[Oe];for(let Et=0;Et<=fe;++Et)Sr.setXYZ(Oe*(fe+1)+Et,Ee.x,Ee.y,Ee.z)}be.setAttribute("pathTangent",Sr);let P=new Float32Array(be.attributes.normal.count*3),J=new Ar(P,3);for(let Oe=0;Oe<xe;Oe++){let Ee=be.tangents[Oe];var F,ce,Q;s?(F=Ee.x*Ee.y,ce=-1+Ee.y*Ee.y,Q=Ee.z*Ee.y):(F=-Ee.x*Ee.z,ce=-Ee.y*Ee.z,Q=1-Ee.z*Ee.z);let Et=Math.sqrt(F*F+ce*ce+Q*Q);Et===0&&(Et=1);let ga=F/Et,Zy=ce/Et,Oc=Q/Et;for(let Hi=0;Hi<=fe;++Hi)J.setXYZ(Oe*(fe+1)+Hi,ga,Zy,Oc)}be.setAttribute("pathNormal",J);let ne=new qi({uniforms:oe,vertexShader:ip,fragmentShader:Sy});ne.transparent=!0,ne.alphaTest=.5,oe.resolution.value.x=1,oe.resolution.value.y=1,oe.vertexes.value=Fe.length,oe.arrowTexture.value.wrapS=Xu,oe.arrowTexture.value.wrapT=Xu,oe.arrowTexture.value.anisotropy=16;let pe=new _e(be,ne);pe.name="path";let Je=pe.clone();Je.name="xray";let Ft=Ce(N({},oe),{opacityMultiplier:{type:"f",value:A},pathIsVertical:{type:"b",value:s}});Ft.complete.value=1,Je.material=new qi({uniforms:Ft,vertexShader:ip,fragmentShader:Sy}),Je.material.transparent=!0,Je.material.alphaTest=.5,Je.material.depthWrite=!1,Je.material.depthTest=!1,Ft.resolution.value.x=1,Ft.resolution.value.y=1,Ft.vertexes.value=Fe.length,Ft.arrowTexture.value.wrapS=Xu,Ft.arrowTexture.value.wrapT=Xu,Ft.arrowTexture.value.anisotropy=16,Ft.complete.value=u,pe.userData=Je.userData=r.mesh.userData;let Lt=r.mesh;if(!d){let Oe=new qi({uniforms:oe,vertexShader:ip,fragmentShader:ZI}),Ee=new _e(be,Oe);Ee.name="stencil",Ee.material.colorWrite=!1,Ee.material.stencilWrite=!0,Ee.material.stencilRef=1,Ee.material.stencilFunc=ba,Ee.material.stencilZPass=$n,Ee.material.stencilZFail=$n,Ee.material.stencilFail=$n,Ee.material.depthWrite=!1,Ee.material.depthTest=!1,Ee.userData=r.mesh.userData,Lt.add(Ee),Lt.add(Je),Je.renderOrder=qt.XRAY_PATH,pe.renderOrder=qt.STENCIL_PATH}if(Lt.add(pe),s){let Oe=new rr().setFromObject(pe),Ee=new te;Oe.getCenter(Ee),Lt.children.forEach(Et=>{Et.geometry.center(),Et.position.copy(Ee)})}d&&(pe.material.stencilWrite=!0,pe.material.stencilRef=1,pe.material.stencilFunc=ya,pe.material.stencilZPass=zn,pe.material.stencilZFail=zn,pe.material.stencilFail=zn,pe.material.needsUpdate=!0,pe.layers.disableAll(),pe.layers.enable(qt.ALWAYS_ON_TOP_PATHS)),be.computeBoundingBox();let tr=new te;return be.boundingBox.getCenter(tr),{mesh:Lt,material:ne,center:tr}}o(XI,"buildPath");var ok=.15;var ak=.5,wy=class wy extends Ae{constructor(t,n,i,a){super();h(this,"rendererState");h(this,"verticalDistanceDirty",!0);h(this,"convertTo3DMapPosition");h(this,"getParentContainer");h(this,"convertZoomLevelToAltitude");this.rendererState=t,this.convertTo3DMapPosition=n,this.getParentContainer=i,this.convertZoomLevelToAltitude=a}update(t,n,i){let a=!1;for(let u of this.rendererState.geometry3DsInScene)if(u&&u.type==="path"&&u.components[0].type==="path"){let s=u.components[0],d=u.components[1],m=s.isVertical&&this.verticalDistanceDirty;if(!(s instanceof vo))continue;let p=[];if(s.dirty||d.dirty||m){if(s.mesh.parent!=null)for(let g=s.mesh.children.length-1;g>=0;g--)fr(s.mesh.children[0]);if(s.feature.features.length===2&&s.feature.features[0].properties.parentId&&s.feature.features[1].properties.parentId){let g=s.feature.features[0],b=s.feature.features[s.feature.features.length-1],v,C,A=g.geometry.coordinates[2]||0,x=b.geometry.coordinates[2]||0;g.properties.parentId&&(v=this.getParentContainer(g.properties.parentId,!0),v!=null&&v.altitude!=null&&(A+=v.altitude,s.isVertical=!0)),b.properties.parentId&&(C=this.getParentContainer(b.properties.parentId,!0),C!=null&&C.altitude!=null&&(x+=C.altitude,s.isVertical=!0));let E=this.convertTo3DMapPosition(g.geometry.coordinates[1],g.geometry.coordinates[0],A),S=this.convertTo3DMapPosition(b.geometry.coordinates[1],b.geometry.coordinates[0],x);Math.abs(E.z-S.z)>ak&&v!=null&&v.visible&&C!=null&&C.visible&&(p=[E,S])}else{let g=s.feature.features;for(let b=0;b<g.length;b++)if(b===0||!M4(g[b].geometry.coordinates,g[b-1].geometry.coordinates)){let v=this.convertTo3DMapPosition(g[b].geometry.coordinates[1],g[b].geometry.coordinates[0],g[b].geometry.coordinates[2]||0);p.push(v)}}if(p.length>1){let{mesh:g,material:b,center:v}=XI(p,s,{color:d.color,altitude:d.altitude,isVertical:s.isVertical});s.mesh=g,s.material=b,s.position=v}s.dirty&&typeof s.width=="object"&&s.width.on==="zoom-level"&&(s.altitudeBreakpoints=s.width.input.map(g=>this.convertZoomLevelToAltitude(g))),s.dirty=!1}d.dirty&&(s.mesh.children.forEach(g=>{g.name!=="stencil"&&(g.material.uniforms.color.value.set(d.color),g.material.visible=d.visible,g.material.needsUpdate=!0)}),s.mesh.position.z=d.altitude,d.dirty=!1),s.material&&(s.mesh.children.forEach(g=>{var v,C,A,x,E,S,D;let b=g.material.uniforms;if(g.name==="stencil"){s.materialDirty&&JI(s,g.material);return}if(s.materialDirty&&g.name==="xray"&&b.opacityMultiplier&&(b.opacityMultiplier.value=s.xrayOpacity),typeof s.width=="object"&&s.width.on==="zoom-level"){s.altitudeBreakpoints&&s.altitudeBreakpoints.length>2&&Se.warn("Path width interpolation does not yet support more than 2 breakpoints! This will be added in a future version. Path width will only use the first two breakpoints.");let I=x4(i,(C=(v=s.altitudeBreakpoints)==null?void 0:v.slice(0,2))!=null?C:[t,n]);s.breakpoint=I,b.nearZoom.value=(x=(A=s.altitudeBreakpoints)==null?void 0:A[I])!=null?x:t,b.farZoom.value=(S=(E=s.altitudeBreakpoints)==null?void 0:E[I+1])!=null?S:n,b.nearRadius.value=Number(s.width.output[I])/2,b.farRadius.value=Number((D=s.width.output[I+1])!=null?D:s.width.output[I])/2}b.cameraParameters.value.x=i,s.materialDirty&&(b.displayArrowsOnPath.value=s.displayArrowsOnPath,b.pulseColor.value.set(s.accentColor),b.complete.value=s.completeFraction,JI(s,g.material),b.dashed.value=s.dashed,b.dashLength.value=s.dashLength,b.dashGap.value=s.dashGap,b.dashRelativeToWidth.value=s.dashRelativeToWidth,b.dashSize.value=s.dashSize,b.gapSize.value=s.gapSize,b.dashAbsolute.value=s.dashAbsolute,b.dashMeters.value=s.dashMeters,b.gapMeters.value=s.gapMeters,typeof s.width=="number"&&(b.nearZoom.value=t,b.farZoom.value=n,b.nearRadius.value=Number(s.width)/2,b.farRadius.value=Number(s.width)/2))}),s.displayArrowsOnPath&&s.animateArrowsOnPath&&(s.mesh.children.forEach(g=>{g.name!=="stencil"&&(g.material.uniforms.arrowAnimationTimer.value=performance.now()/3e3,g.material.needsUpdate=!0)}),a=!0),s.materialDirty=!1)}this.verticalDistanceDirty=!1,a&&this.publish("animate:path")}};o(wy,"PathSystem");var xc=wy;function JI(e,r){let t=r.uniforms;t.highlightCompleteFraction.value=e.highlightCompleteFraction,t.highlightStartFraction.value=e.highlightStartFraction,t.highlightEndFraction.value=e.highlightEndFraction,t.highlightWidthMultiplier.value=e.highlightWidthMultiplier,t.highlightColor.value.set(e.highlightColor)}o(JI,"updateHighlightPathUniforms");l();var jt,ju,Gi,sp,Ay=class Ay{constructor(r){h(this,"rendererState");h(this,"dirty",!1);R(this,jt);R(this,ju);R(this,Gi);R(this,sp,new wr);this.rendererState=r}updateOne(r){if(r instanceof at&&r.components[0]instanceof zt&&r.components[1]instanceof Wn&&r.parentObject3D instanceof Hn&&(K(this,jt,r.components[0]),K(this,Gi,r.components[1]),!c(this,jt).detached&&c(this,jt).shouldDetach&&c(this,jt).mesh!=null&&c(this,jt).material!=null&&c(this,jt).batchedProps!=null)){K(this,ju,r.parentObject3D),c(this,jt).visible=!1;let t=c(this,Gi).color,n=c(this,Gi).opacity*Fa(r),a=c(this,jt).material.clone({color:t,side:fi,opacity:n!=null?n:1,transparent:n!==void 0?n<1:!1}),u=new fb(1,c(this,jt).batchedProps.positionCount,0,a),s=z6(c(this,jt),u,c(this,sp));if(s==null)return;u.userData={entities:{0:r.id},detached:!0},c(this,jt).instanceIndex=s,a.setColor(c(this,jt).instanceIndex,new Bt(t),c(this,Gi).topColor?new Bt(c(this,Gi).topColor):new Bt(t)),c(this,jt).mesh=u,c(this,jt).material=a,c(this,ju).add(u),c(this,jt).shouldDetach=!1,c(this,jt).detached=!0}}update(){if(!this.dirty)return;let r;for(let t of this.rendererState.geometry3DIdsInScene)r=this.rendererState.geometry3DMap.get(t),this.updateOne(r);this.dirty=!1,this.cleanup()}cleanup(){K(this,jt,void 0),K(this,ju,void 0),K(this,Gi,void 0)}};jt=new WeakMap,ju=new WeakMap,Gi=new WeakMap,sp=new WeakMap,o(Ay,"MeshDetachmentSystem");var up=Ay;l();l();function YI(e,r,t){var n;if((n=e.batchedProps)!=null&&n.range&&e.mesh){let i=r||1e-4,a=i/Math.max(t,1e-4);return _m(e.mesh.geometry,e.batchedProps.range,i,0),e.material&&(e.material.repeatYFactor=a),e.currentHeight=i,!0}return!1}o(YI,"updateHeight");function QI(e,r,t,n,i,a){return e.mesh&&e.instanceIndex!==-1?(e.mesh.getMatrixAt(e.instanceIndex,t),t.decompose(n,i,a),n.z=r,t.compose(n,i,a),e.mesh.setMatrixAt(e.instanceIndex,t),e.altitude=r,!0):!1}o(QI,"updateAltitude");var Rn,pi,lp,dp,mp,pp,Py=class Py{constructor(r){h(this,"rendererState");h(this,"dirty",!1);R(this,Rn);R(this,pi);R(this,lp,new wr);R(this,dp,new te);R(this,mp,new Nc);R(this,pp,new te);this.rendererState=r}updateOne(r){var t;if(r instanceof at&&r.type==="geometry"&&((t=r.components[1])!=null&&t.dirty)&&(K(this,Rn,r.components[0]),K(this,pi,r.components[1]),r.type==="geometry")){let n=!1;c(this,pi).height!==c(this,Rn).currentHeight&&(n=YI(c(this,Rn),c(this,pi).height,c(this,pi).initialHeight)),c(this,pi).altitude!==c(this,Rn).altitude&&(n=QI(c(this,Rn),c(this,pi).altitude,c(this,lp),c(this,dp),c(this,mp),c(this,pp))),n&&c(this,Rn).mesh!=null&&c(this,Rn).mesh.computeBoundingSphere()}}update(){for(let r of this.rendererState.geometry3DsInScene)this.updateOne(r);this.cleanup()}cleanup(){K(this,Rn,void 0),K(this,pi,void 0)}};Rn=new WeakMap,pi=new WeakMap,lp=new WeakMap,dp=new WeakMap,mp=new WeakMap,pp=new WeakMap,o(Py,"MeshModificationSystem");var cp=Py;l();var uk={showPolygonLabelTextAreaMesh:!1,showEnvMap:!1,showCollisionBoxes:!1,showGeometryInFocus:!1},Fy=class Fy{constructor(r){h(this,"state",uk);h(this,"core");this.core=r}update(r){let t={};for(let[n,i]of Object.entries(r))n in this.state&&this.state[n]!==r[n]&&(this.state[n]=i,t[n]=i);this.handleUpdate(t)}handleUpdate(r){r.showPolygonLabelTextAreaMesh!=null&&(r.showPolygonLabelTextAreaMesh?this.core.getSystems().text3DSystem.showTextAreaMesh():this.core.getSystems().text3DSystem.hideTextAreaMesh()),r.showEnvMap!=null&&(r.showEnvMap?this.core.setEnvironment("basic"):this.core.setEnvironment(!1)),r.showCollisionBoxes!=null&&(r.showCollisionBoxes?(this.core.getSystems().collisionSystem.showCollisionBoxes(),this.core.render()):this.core.getSystems().collisionSystem.hideCollisionBoxes()),r.showGeometryInFocus!=null&&(r.showGeometryInFocus?this.core.getSystems().geometryInFocusSystem.showDebug():this.core.getSystems().geometryInFocusSystem.hideDebug())}};o(Fy,"Debug");var fp=Fy;l();var Ec=9,sk=!1,eC=.1;function ck(e,r,t){for(let n=0;n<r;n++){let i=(t&16711680)>>16,a=(t&65280)>>8,u=t&255;e[n*3]=i/255,e[n*3+1]=a/255,e[n*3+2]=u/255}}o(ck,"fillArrayWithColor");var By=class By{constructor(r,t,n){h(this,"state");h(this,"renderer");h(this,"renderService");h(this,"pickingTexture");h(this,"pickingMaterial");h(this,"pixelBuffer");h(this,"width",0);h(this,"height",0);h(this,"scale",1/2);h(this,"color",1);h(this,"convertTo3DMapPosition");h(this,"destroyed",!1);h(this,"enabled",!1);h(this,"backgroundId",16777215);h(this,"resize",o(()=>{let r=this.state.pixelRatio;this.width=Math.floor(this.renderer.domElement.width/r*this.scale),this.height=Math.floor(this.renderer.domElement.height/r*this.scale),this.pixelBuffer=new Uint8Array(4*this.width*this.height),this.pickingTexture=new Qy(this.width,this.height,{format:Ky,type:Hy,internalFormat:"RGBA"})},"resize"));h(this,"shouldShowByXY",o((r,t,n)=>{if(this.pixelBuffer==null)return!1;let i=r+(this.height-t-1)*this.width,a=this.pixelBuffer[i*4],u=this.pixelBuffer[i*4+1],s=this.pixelBuffer[i*4+2],d=a<<16|u<<8|s;return d===n||d===this.backgroundId},"shouldShowByXY"));h(this,"activeOccluders",new Set);h(this,"update",o(()=>{if(!this.enabled||this.destroyed||(this.activeOccluders.clear(),this.activeOccluders.add(this.backgroundId),!this.pickingTexture||!this.pixelBuffer))return;let r,t;for(let i of this.state.geometry3DsInScene)if((i==null?void 0:i.type)==="group-container"&&i.userData.occluderFeature!=null&&i.userData.occluderId!=null&&(this.activeOccluders.add(i.userData.occluderId),i.userData.occluderDirty)){if(r=i.userData.occluderFeature,r.geometry.type==="Polygon"&&r.geometry.coordinates.length>0){let a=ym(r,this.convertTo3DMapPosition,{color:"white",height:eC});t=this.createOccluderMesh(a,i.userData.occluderId),i.add(t)}else if(r.geometry.type==="MultiPolygon"){let a=bm(r,this.convertTo3DMapPosition,{color:"white",height:eC});t=this.createOccluderMesh(a,i.userData.occluderId),i==null||i.add(t)}i.userData.occluderDirty=!1}this.renderer.setRenderTarget(this.pickingTexture);let n=new Bt(this.backgroundId);this.renderer.setClearColor(n),this.renderer.clear(),this.state.cameraObject.layers.disableAll(),this.state.cameraObject.layers.enable(Ec),this.renderService.renderScene(this.state.geometryScene.parent,this.state.cameraObject),this.renderer.setRenderTarget(null),this.state.cameraObject.layers.disable(Ec),sk?this.renderService.enabledLayers.add(Ec):this.renderService.enabledLayers.delete(Ec),this.renderer.readRenderTargetPixelsAsync(this.pickingTexture,0,0,this.width,this.height,this.pixelBuffer).then(()=>{if(!this.destroyed)for(let i of this.state.geometry2DsInScene){let a=i==null?void 0:i.components[2];if(i&&(a==null?void 0:a.id)!=null&&this.activeOccluders.has(a.id)&&(a!=null&&a.enabled)){let u=i.components[0].projection,s=Math.floor(u.x*this.scale),d=Math.floor(u.y*this.scale),m=this.shouldShowByXY(s,d,a.id);i.components[0].isOccluded=!m}else i&&a&&!a.enabled&&(i.components[0].isOccluded=!1)}}).catch(i=>{this.destroyed||Se.error(i)})},"update"));if(this.state=r,this.convertTo3DMapPosition=t,(n==null?void 0:n.renderer)==null)throw new Error("No Renderer");this.renderService=n,this.renderer=n.renderer,this.resize(),this.pickingMaterial=new qi({glslVersion:Xy,vertexShader:"\n attribute vec3 color;\n varying vec3 vColor;\n void main() {\n vColor = color;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n }\n ",fragmentShader:"\n varying vec3 vColor;\n out vec4 fragColor;\n\n void main() {\n fragColor = vec4(vColor, 1.0);\n }\n "})}applyId(r,t){let n=r.attributes.position,i=new Float32Array(n.count*3);ck(i,n.count,t),r.setAttribute("color",new Ar(i,3))}createOccluderMesh(r,t){let n=new _e(r,this.pickingMaterial);return n.layers.set(Ec),this.applyId(n.geometry,t),n.userData.occluderId=t,n}reserveOccluderId(){return this.color++,this.color}enable(){this.enabled=!0}disable(){this.enabled=!1}destroy(){var r;this.destroyed=!0,(r=this.pickingTexture)==null||r.dispose(),this.pickingMaterial.dispose(),this.pickingTexture=void 0,this.pixelBuffer=void 0}};o(By,"Occlusion2DSystem");var hp=By;l();var Oy=class Oy{constructor(r){this.state=r;h(this,"dirty",!0)}update(){var r;if(this.dirty){for(let t of this.state.geometry3DIdsInScene){let n=this.state.geometry3DMap.get(t);if(n instanceof at&&n.type==="geometry"&&((r=n.components[0])==null?void 0:r.geometry)!=null){let i=n.components[0];i.geometry&&(i.geometry.dispose(),i.geometry=void 0)}}this.dirty=!1}}};o(Oy,"GeometryDisposalSystem");var gp=Oy;l();var My=class My extends Ae{constructor(t){super();h(this,"dirty",!0);h(this,"state");h(this,"texturePromiseCache",new Map);this.state=t}async loadTexture(t){if(this.texturePromiseCache.has(t))return this.texturePromiseCache.get(t);let n=new Promise((i,a)=>{Eo.getLoader().load(t,i,void 0,a)});return this.texturePromiseCache.set(t,n),n}update(){for(let t of this.state.geometry3DsInScene){if(!(t instanceof at))continue;let n=t.components[6];if(!(n instanceof Lo))continue;let i=t.components[0];if(!(i instanceof zt)||!n.dirty)continue;let a=Ui(i);a!=null&&(n.texture!=null&&(n.texture.path===""?(a.texture=null,a.hideTextures(i.instanceIndex),n.dirty=!1):this.loadTexture(n.texture.path).then(u=>{u&&(n.textureInstance=u,a.texture=u,a.blendTexture=!0,a.showTextures(i.instanceIndex)),this.publish("texture-added")})),n.topTexture!=null&&(n.topTexture.path===""?(a.topTexture=null,a.hideTextures(i.instanceIndex),n.dirty=!1):this.loadTexture(n.topTexture.path).then(u=>{u&&(n.topTextureInstance=u,a.topTexture=u,a.blendTexture=!0,a.showTextures(i.instanceIndex)),this.publish("texture-added")})),n.dirty=!1)}}destroy(){this.texturePromiseCache.forEach(async t=>{(await t).dispose()}),this.texturePromiseCache.clear()}};o(My,"TextureSystem");var yp=My;l();var Ty=class Ty{constructor(r){h(this,"currentOrder",qt.ALWAYS_ON_TOP_MODELS);h(this,"assignedOrders",new WeakMap);h(this,"state");this.state=r}assignOrder(r){return this.assignedOrders.has(r)?this.assignedOrders.get(r):(this.currentOrder+=1,this.assignedOrders.set(r,this.currentOrder),this.currentOrder)}releaseOrder(r){return this.assignedOrders.delete(r),qt.GEOMETRY}getHighestOrder(){return this.currentOrder}getOrder(r){return this.assignedOrders.get(r)}update(){var n;let r,t;for(let i of this.state.geometry3DsInScene)if(i&&i.type==="model"&&(n=i.components[1])!=null&&n.dirty)if(r=i.components[1],t=i.components[0],r.visibleThroughGeometry===!0){let a=this.assignOrder(t);t.renderOrder!==a&&(t.renderOrder=a)}else t.renderOrder>qt.GEOMETRY&&(t.renderOrder=this.releaseOrder(t))}};o(Ty,"RenderOrderSystem");var bp=Ty;l();var ky=class ky{constructor(r){h(this,"state");this.state=r}applyMask(r,t,n){this.disableMask(r,t),n.mode==="mask"&&n.maskId!=null&&n.enabled?this.enableMaskProducer(r,t,n):n.mode==="masked-object"&&n.maskId!=null&&n.enabled&&this.enableMaskReciever(r,n)}update(){let r;for(let t of this.state.geometry3DsInScene)(t==null?void 0:t.type)==="geometry-group"&&(!lc(t,this.state)||km(t)&&lc(t,this.state))&&(r=t.components[0],r!=null&&r.dirty&&t.userData&&(t.traverse(n=>{(n instanceof _e||n instanceof Mo)&&n.material instanceof t4&&r!=null&&!n.userData.detached&&(this.disableMask(n.material,n),this.applyMask(n.material,n,r))}),r.dirty=!1))}enableMaskProducer(r,t,n){r.stencilWrite=!0,r.colorWrite=!1,r.stencilRef=n.maskId,r.stencilFunc=ba,r.stencilZPass=$n,r.stencilZFail=zn,r.stencilFail=zn,r.needsUpdate=!0,r.depthWrite=!1,t.layers.disableAll(),t.layers.set(qt.MASKS)}enableMaskReciever(r,t){r.stencilWrite=!0,r.stencilRef=t.maskId,r.stencilFunc=t.effect==="reveal"?qy:ya,r.stencilZPass=zn,r.stencilZFail=zn,r.stencilFail=zn,r.needsUpdate=!0}disableMask(r,t){r.stencilWrite=!1,r.colorWrite=!0,r.needsUpdate=!0,t.layers.disableAll(),t.layers.set(qt.GEOMETRY)}};o(ky,"MaskingSystem");var vp=ky;l();var tC=1e4,_y=class _y{constructor(r){h(this,"rendererState");h(this,"dirty",!1);this.rendererState=r}update(){var n;let r,t;for(let i of this.rendererState.geometry3DsInScene)if(t=i.components[0],r=i.components[7],i.type==="model"&&r!=null&&(r.dirty&&t.mesh!=null&&(r==null?void 0:r.verticalOffset)!==1/0&&(r.plane==null&&(r.plane=new n4(new te(0,0,-1),r.verticalOffset),this.process(t,r)),r.plane.constant!==r.verticalOffset&&(r.plane.constant=r.verticalOffset),r.topColor!=null&&((n=r.holeFillMesh)==null?void 0:n.material)instanceof Ju&&r.holeFillMesh.material.color.set(r.topColor),r.topVisible!=null&&r.holeFillMesh!=null&&(r.holeFillMesh.visible=r.topVisible),r.dirty=!1),r.plane!=null&&r.holeFillMesh!=null&&r.topVisible===!0)){let a=r.plane,u=r.holeFillMesh;a.coplanarPoint(u.position),u.lookAt(u.position.x-a.normal.x,u.position.y-a.normal.y,u.position.z-a.normal.z)}}process(r,t){var b;if(r.mesh==null)return;let n=r.mesh.parent,i=[];r.mesh.traverse(v=>{if(v instanceof _e){let C=v.geometry.clone();v.updateWorldMatrix(!0,!1),C.applyMatrix4(v.matrixWorld),i.push(C),C.computeVertexNormals(),v.material.clippingPlanes=[t.plane],v.material.transparent=!1}});let a=en(i),u=new jc,s=new jc,d=this.createHoleFillGeometry(a,t.plane,1);d.name="hole-fill-group";let m=new Ju({color:(b=t.topColor)!=null?b:"#E67B5B",clippingPlanes:[],stencilWrite:!0,stencilFunc:ya,stencilFail:$n,stencilZFail:$n,stencilZPass:$n}),p=new In(tC,tC),g=new _e(p,m);g.name="hole-fill-mesh",t.holeFillMesh=g,g.renderOrder=1.1,s.add(d),s.add(r.mesh),u.add(s),u.add(g),n==null||n.add(u),r.mesh=u}createHoleFillGeometry(r,t,n=0){let i=new jc,a=new _r;a.depthWrite=!1,a.depthTest=!1,a.colorWrite=!1,a.stencilWrite=!0,a.stencilFunc=ba;let u=a.clone();u.side=qu,u.clippingPlanes=[t],u.stencilFail=Lc,u.stencilZFail=Lc,u.stencilZPass=Lc;let s=new _e(r,u);s.renderOrder=n,i.add(s);let d=a.clone();d.side=Oo,d.clippingPlanes=[t],d.stencilFail=Rc,d.stencilZFail=Rc,d.stencilZPass=Rc;let m=new _e(r,d);return m.renderOrder=n,i.add(m),i}};o(_y,"ClippingPlaneSystem");var xp=_y;l();var Ly=class Ly{constructor(){h(this,"plugins",new Set)}registerPlugin(r){this.plugins.add(r)}unregisterPlugin(r){this.plugins.delete(r)}update(r){for(let t of this.plugins)t.update(r)}};o(Ly,"PluginSystem");var Ep=Ly;l();var Ry=class Ry{constructor(r){h(this,"type","occlusion2d");h(this,"enabled",!0);h(this,"id");this.id=r}};o(Ry,"Occlusion2DComponent");var Ip=Ry;var rC=new Ji;var{DEFAULT_PITCH:d6,DEFAULT_BEARING:m6,DEFAULT_ZOOM_LEVEL:p6,DEFAULT_MIN_ZOOM_LEVEL:dk,DEFAULT_MAX_ZOOM_LEVEL:mk}=vn,pk=Me.radToDeg(.6435011087932844),xt,At,ua,zu,$u,Po,sa,Gu,pr,Uy,B,Qe,Nn,Pt,En,Kt,_,Cp,Yr,_t,ca,nC,iC,oC,Zi,Dp,Ic,Sp,wp,Zu,Vu,Ap,Cc,Dc,Sc,jy,la,wc,Ac,Vi,Wi,zy,Pp,Re,Wu,Pc,$y=class $y extends Ae{constructor(t,n={}){var v,C,A,x,E,S,D,I,T,V,$,O,M,Z,z,re;super();R(this,pr);h(this,"options");h(this,"container");h(this,"Debug");R(this,xt);R(this,At);R(this,ua);R(this,zu);R(this,$u);R(this,Po);R(this,sa);R(this,Gu);h(this,"rendererDomElement");R(this,B,{geometry3DMap:new Map,geometry2DMap:new Map,geometry2DIdsInScene:new Set,geometry3DIdsInScene:new Set,geometryGroupIdsToLoad:new Set,geometry3DsInScene:new Set,geometry2DsInScene:new Set,geometryScene:new nr("__scene"),hoverColor:"#f6efff",text3dHoverColor:"white",insetsPadding:Xc,shouldMeasureCanvas:!0,pixelRatio:this.resolutionScale,canvasWidth:0,canvasHeight:0,internalTweenGroup:new Yd,externalTweenGroup:new Yd,cameraObject:new Mp,naturalBearing:0,containerOffset:[0,0],useStandaloneCamera:!1,directionalLight:new Zc(16777215,.3*Math.PI),ambientLight:new s4(16777215,.741*Math.PI),renderer:void 0,threeJSScene:new Xi});h(this,"camera");R(this,Qe);R(this,Nn);R(this,Pt);R(this,En);R(this,Kt);R(this,_,{});R(this,Cp,window.matchMedia("screen and (min-resolution: 2dppx)"));h(this,"map");R(this,Yr,o(()=>{var t,n;(t=this.signal)!=null&&t.aborted||!((n=c(this,_))!=null&&n.renderSystem)||(c(this,_).renderSystem.twoDdirty=!0)},"#invalidate2DEntities"));R(this,_t,o(()=>{var t,n;(t=this.signal)!=null&&t.aborted||!((n=c(this,_))!=null&&n.renderSystem)||(c(this,_).renderSystem.threeDdirty=!0)},"#invalidate3DEntities"));R(this,ca,o((t,n)=>{t.addEventListener("childadded",n),t.addEventListener("childremoved",n),this.onAbort(()=>{t.removeEventListener("childadded",n),t.removeEventListener("childremoved",n)})},"#addChildEventListeners"));R(this,Zi,"standalone");R(this,Dp,o(()=>{c(this,_).geometryDisposalSystem.dirty=!0,this.render()},"#setGeometryDisposalDirty"));R(this,Ic,o(t=>Math.trunc(t*10)/10,"#round10"));R(this,Sp,o(()=>{mt(this,pr,Uy).call(this,ts()),c(this,_).twoDDrawSystem.dirty=!0,c(this,Vu).call(this,void 0,void 0,!0)},"#handlePixelRatioChange"));R(this,wp,o(()=>{c(this,Vu).call(this)},"#handleWindowResizeWithEvent"));R(this,Zu);R(this,Vu,o((t,n,i=!1)=>{let a=t!=null?t:this.rendererDomElement.clientWidth,u=n!=null?n:this.rendererDomElement.clientHeight;if((a===0||u===0)&&!i)return;c(this,B).canvasWidth=a,c(this,B).canvasHeight=u,mt(this,pr,Uy).call(this,ts()),c(this,Sc).call(this),mt(this,pr,oC).call(this),c(this,_).cameraSystem.resize(this.canvasWidth,this.canvasHeight),c(this,_).cameraSystem.dirty=!0,this.map!=null&&(this.map.setMinZoom(this.camera.minZoomLevel),this.map.setMaxZoom(this.camera.maxZoomLevel)),c(this,_).watermarkSystem.resize(this.canvasWidth,this.canvasHeight),c(this,_).htmlControlsSystem.resize(this.canvasWidth),c(this,_).geometryInFocusSystem.resize(),c(this,_).occlusion2DSystem.resize();let{top:s,left:d}=this.container.getBoundingClientRect();c(this,B).containerOffset=[s,d],this.publish("resize"),this.render()},"#handleWindowResize"));R(this,Ap,o(()=>{this.renderSync()},"#renderFull"));R(this,Cc,new te);h(this,"project",o((t,n)=>{if(c(this,At).position.z+this.camera.elevation>n.z){c(this,Cc).copy(n);let i=c(this,Cc).project(c(this,Zu)),a=(i.x+1)/2*this.canvasWidth-0/2,u=(-i.y+1)/2*this.canvasHeight-0/2,s=c(this,Ic).call(this,a),d=c(this,Ic).call(this,u);t.x=s,t.y=d,t instanceof te&&(t.z=i.z)}else t.x=-1e3,t.y=-1e3,t instanceof te&&(t.z=1/0)},"project"));R(this,Dc,o((t,n)=>{c(this,Kt).setBufferSize(t,n),c(this,At).aspect=t/n,c(this,At).updateProjectionMatrix(),c(this,At).updateMatrixWorld(!0),c(this,$u).x=t,c(this,$u).y=n},"#setBufferSize"));R(this,Sc,o(()=>{var u;let t=c(this,B).canvasWidth=this.rendererDomElement.clientWidth,n=c(this,B).canvasHeight=this.rendererDomElement.clientHeight,i=Math.floor(t*this.resolutionScale),a=Math.floor(n*this.resolutionScale);c(this,Dc).call(this,i,a),(u=this.map)==null||u.resize(),c(this,B).shouldMeasureCanvas=!1},"#measureCanvas"));h(this,"getParentContainer",o((t,n=!0)=>{if(!t)return n?c(this,B).geometryScene:void 0;if(typeof t=="string"||typeof t=="number"){let i=c(this,B).geometry3DMap.get(t);return i instanceof nr?i:(Se.warn("Parent (".concat(typeof t=="object"?t.id:t,") is not a valid container, adding to scene")),n?c(this,B).geometryScene:void 0)}else if(t.type==="group-container"){let i=c(this,B).geometry3DMap.get(t.id);if(i instanceof nr)return i}return n?c(this,B).geometryScene:void 0},"getParentContainer"));h(this,"showCollisionBoxes",o(()=>{c(this,_).collisionSystem.showCollisionBoxes(),this.render()},"showCollisionBoxes"));h(this,"hideCollisionBoxes",o(()=>{c(this,_).collisionSystem.hideCollisionBoxes(),this.render()},"hideCollisionBoxes"));h(this,"projectScreenXYToCoordinate",o((t,n,i=!1)=>{var g,b;let a=this.container.getBoundingClientRect(),u=(t-a.left)/c(this,B).canvasWidth*2-1,s=-((n-a.top)/c(this,B).canvasHeight)*2+1,d=new $e(u,s),m,p;if(i)rC.setFromCamera(d,c(this,At)),m=(g=rC.intersectObject(c(this,Po),!1)[0])==null?void 0:g.point;else{let v=c(this,_).interactionSystem.getThreeDIntersectsFromXY(d);m=(b=v==null?void 0:v[0])==null?void 0:b.point,p=c(this,_).interactionSystem.getGroupContainerIntersectsFromXY(d)}if(m)return{coordinate:this.convert3DMapPositionToCoordinate(m),groupContainers:p}},"projectScreenXYToCoordinate"));h(this,"projectCoordinateToScreenXY",o(t=>{let n=this.convertTo3DMapPosition(t[1],t[0],t[2]||0),i=new $e;return this.project(i,n),{x:i.x,y:i.y}},"projectCoordinateToScreenXY"));h(this,"convert3DMapPositionToCoordinate",o(t=>{var a,u,s,d;let{lat:n,lon:i}=Jc((u=(a=c(this,B).center)==null?void 0:a[1])!=null?u:0,(d=(s=c(this,B).center)==null?void 0:s[0])!=null?d:0,t.x,t.y);return[i,n,t.z]},"convert3DMapPositionToCoordinate"));h(this,"setBackgroundColor",o((t,n)=>{c(this,Kt).setBackgroundColor(t,n)},"setBackgroundColor"));h(this,"getMetersPerPixel",o(()=>c(this,_).cameraSystem.getCurrentMetersPerPixel(),"getMetersPerPixel"));h(this,"hideOutdoorLayersIntersectingPolygons",o((t,n)=>{c(this,_).outdoorLayersSystem.hideLayersIntersectingPolygons(t,n),this.render()},"hideOutdoorLayersIntersectingPolygons"));R(this,la,new Ea);R(this,wc,new wr);R(this,Ac,o(t=>{var n;Se.error("Render failed: ",t,(n=t.stack)!=null?n:"No stack trace available"),this.publish("render-error",{error:t})},"#onRenderError"));h(this,"render",o(()=>{var t,n;if(!(((t=c(this,_))==null?void 0:t.renderSystem)==null||(n=this.signal)!=null&&n.aborted))if(this.map&&(this.mode==="outdoors-interleaved"||this.mode==="outdoors-overlay"))this.map.triggerRepaint();else return c(this,_).renderSystem.update().catch(c(this,Ac))},"render"));h(this,"renderSync",o(()=>{var t;return(t=this.signal)!=null&&t.aborted?Promise.resolve():c(this,_).renderSystem.update(!0).catch(c(this,Ac))},"renderSync"));R(this,Vi,Sa(()=>{this.publish("user-interaction-start",void 0)},0,!0));R(this,Wi,Sa(()=>{this.publish("user-interaction-end",void 0),this.render()},0,!0));h(this,"on",o((t,n,i)=>{let a=super.on(t,n,i);return["outdoor-view-loaded","outdoor-style-loaded"].includes(t)&&this.mode==="standalone"&&y.env.NODE_ENV!=="test"&&(Se.warn('"'.concat(t,'" was subscribed to but outdoor view is disabled. The event has been triggered immediately. Enable outdoor view or remove the listener.')),this.publish(t),a()),a},"on"));h(this,"off",o((t,n)=>{super.off(t,n)},"off"));h(this,"getCursor",o(()=>c(this,_).interactionSystem.getCursor(),"getCursor"));R(this,Pp,o(()=>{try{c(this,Zi)!=="outdoors-overlay"&&(this.map&&this.map.remove(),this.container&&this.rendererDomElement&&this.container.contains(this.rendererDomElement)&&this.container.removeChild(this.rendererDomElement)),this.container&&(c(this,En)&&this.container.contains(c(this,En))&&this.container.removeChild(c(this,En)),c(this,Qe)&&this.container.contains(c(this,Qe))&&this.container.removeChild(c(this,Qe)))}catch(t){Se.warn("Error during DOM cleanup, some elements may not have been removed:",t)}},"#cleanupDOMElements"));R(this,Re,o(t=>(this.onAbort(()=>{t&&typeof t=="object"&&("destroy"in t&&typeof t.destroy=="function"?t.destroy():"dispose"in t&&typeof t.dispose=="function"&&t.dispose())}),t),"#registerSystem"));h(this,"destroy",o(()=>{var t,n,i;!c(this,_)||(t=this.signal)!=null&&t.aborted||(super.destroy(),(n=globalThis.MappedinDebug)!=null&&n.__idleCallbackInteractionState&&(globalThis.MappedinDebug.__idleCallbackInteractionState.unregisterInteractionChecker(c(this,_).cameraSystem.isUserInteracting),globalThis.MappedinDebug.__idleCallbackInteractionState.unregisterInteractionChecker(c(this,_).cameraSystem.isCameraMoving)),this.remove("__scene"),c(this,Kt).destroy(),(i=c(this,xt))==null||i.traverse(a=>{fr(a),"dispose"in a&&typeof a.dispose=="function"&&a.dispose()}),K(this,xt,void 0),K(this,_,void 0),c(this,Pp).call(this),K(this,Kt,void 0))},"destroy"));R(this,Wu,new te);R(this,Pc,new te);if(c(this,B).useStandaloneCamera=(v=n.useStandaloneCamera)!=null?v:!1,c(this,B).naturalBearing=(C=n.naturalBearing)!=null?C:0,this.convertTo3DMapPosition=this.convertTo3DMapPosition.bind(this),!t.clientWidth||!t.clientHeight)throw new Error("[MappedinJS] Container width and height must be greater than 0");this.convertTo3DMapPosition=this.convertTo3DMapPosition.bind(this),(n.mode==="outdoors-interleaved"||n.mode==="outdoors-overlay")&&n.map&&(K(this,Zi,n.mode),this.map=n.map),c(this,ca).call(this,c(this,B).geometryScene,()=>{c(this,_t).call(this),c(this,Yr).call(this)}),c(this,B).geometry3DMap.set(c(this,B).geometryScene.userData.entityId,c(this,B).geometryScene),n.center&&(c(this,B).center=n.center?[...n.center]:[0,0]),this.options=n,this.container=t,mt(this,pr,nC).call(this),mt(this,pr,iC).call(this),c(this,_).htmlControlsSystem=c(this,Re).call(this,new Jd(this.container,{outdoorEnabled:!!this.map})),c(this,_).maskingSystem=c(this,Re).call(this,new vp(c(this,B))),c(this,Zi)!=="outdoors-overlay"&&c(this,_).htmlControlsSystem.addAttributionControl(this.options.attribution),window.MappedinDebug||(window.MappedinDebug={}),y.env.NODE_ENV==="test"&&(window.MappedinDebug.mapViewCoreInstance=this),K(this,Kt,new al({antialias:typeof n.antialias=="boolean"?n.antialias:!0,alpha:!1,canvas:this.mode!=="standalone"?(A=n.gl)==null?void 0:A.canvas:void 0,onWebGLContextCreationError:n.onWebGLContextCreationError,onWebGLContextLost:n.onWebGLContextLost,onWebGLContextRestored:o(k=>{var H;(H=n.onWebGLContextRestored)==null||H.call(n,k),c(this,Yr).call(this),c(this,_t).call(this),this.render()},"onWebGLContextRestored"),onWebGLRendererError:n.onWebGLRendererError,backgroundColor:n.backgroundColor||"#ffffff",backgroundAlpha:(x=n.backgroundAlpha)!=null?x:1})),c(this,B).renderer=c(this,Kt).renderer,K(this,xt,c(this,B).threeJSScene),c(this,xt).matrixWorldAutoUpdate=!1,c(this,Zi)!=="standalone"&&c(this,xt).add(T4()),c(this,xt).add(c(this,B).geometryScene);let i=window.__THREE_DEVTOOLS__;y.env.NODE_ENV==="dev"&&typeof i<"u"&&(i.dispatchEvent(new CustomEvent("observe",{detail:c(this,xt)})),i.dispatchEvent(new CustomEvent("observe",{detail:c(this,Kt)}))),K(this,At,new Mp(pk,this.aspect,50,1e5)),c(this,B).cameraObject=c(this,At),K(this,zu,new r4),c(this,At).renderOrder=999;let a=new Qr;a.add(c(this,At)),K(this,Gu,new Qr),c(this,Gu).add(a),c(this,xt).add(c(this,Gu)),c(this,At).updateProjectionMatrix(),c(this,At).updateMatrixWorld(!0),K(this,Zu,this.mode==="standalone"?c(this,At):c(this,zu)),this.referenceMap={scale:1,latitude:0,longitude:0,getNorth:o(()=>0,"getNorth"),georeference:[{target:{x:0,y:0}},{target:{x:0,y:0}},{target:{x:0,y:0}},{target:{x:0,y:0}}]},this.rendererDomElement=c(this,Kt).domElement(),K(this,$u,new $e);let u=new In(1e6,1e6),s=new _r({color:0,visible:!1});K(this,Po,new _e(u,s)),c(this,Po).name="worldPlane",c(this,xt).add(c(this,Po)),(E=n.gl)!=null&&E.canvas||t.appendChild(this.rendererDomElement),window.addEventListener("resize",c(this,wp),{capture:!1,signal:this.signal}),c(this,Cp).addEventListener("change",c(this,Sp),{signal:this.signal}),typeof ResizeObserver=="function"&&((S=y.env)==null?void 0:S.NODE_ENV)!=="test"&&(K(this,sa,new ResizeObserver(wa(k=>{c(this,Vu).call(this,k[0].contentRect.width,k[0].contentRect.height)},50))),(D=c(this,sa))==null||D.observe(t),c(this,sa)&&this.onAbort(()=>{var k;return(k=c(this,sa))==null?void 0:k.disconnect()})),t.classList.add("mappedin-map"),this.rendererDomElement.style.width=(I=globalThis.MappedinDebug)!=null&&I.TEST_IOS?"1080px":"100%",this.rendererDomElement.style.height=(T=globalThis.MappedinDebug)!=null&&T.TEST_IOS?"1920px":"100%",y.env.NODE_ENV==="test"&&this.rendererDomElement.setAttribute("data-testid","mappedin-canvas"),this.mode!=="outdoors-overlay"&&this.rendererDomElement.tabIndex!==void 0&&this.rendererDomElement.removeAttribute("tabindex"),c(this,B).canvasWidth=this.rendererDomElement.clientWidth,c(this,B).canvasHeight=this.rendererDomElement.clientHeight,this.rendererDomElement.style.touchAction="manipulation";let d=this.canvasWidth,m=this.canvasHeight;c(this,_).watermarkSystem=c(this,Re).call(this,new Fm(c(this,At),c(this,B),n==null?void 0:n.watermark)),c(this,_).watermarkSystem.on("texture-loaded",this.render),c(this,B).shouldMeasureCanvas=!0,c(this,B).pixelRatio=this.resolutionScale,c(this,Dc).call(this,Math.floor(d*this.resolutionScale),Math.floor(m*this.resolutionScale)),c(this,B).directionalLight.position.set(-150,-150,350),c(this,xt).add(c(this,B).directionalLight),c(this,xt).add(c(this,B).ambientLight),c(this,_).cameraSystem=c(this,Re).call(this,new Au(c(this,At),c(this,xt),c(this,Kt).renderer,c(this,B),{mode:this.mode,canvasHeight:m,canvasWidth:d})),(V=globalThis.MappedinDebug)!=null&&V.__idleCallbackInteractionState&&(globalThis.MappedinDebug.__idleCallbackInteractionState.registerInteractionChecker(c(this,_).cameraSystem.isUserInteracting),globalThis.MappedinDebug.__idleCallbackInteractionState.registerInteractionChecker(c(this,_).cameraSystem.isCameraMoving)),c(this,_).cameraSystem.on("user-dolly-start",c(this,Vi),{signal:this.signal}),c(this,_).cameraSystem.on("user-pan-start",c(this,Vi),{signal:this.signal}),c(this,_).cameraSystem.on("user-rotate-start",c(this,Vi),{signal:this.signal}),c(this,_).cameraSystem.on("user-zoom-start",c(this,Vi),{signal:this.signal}),c(this,_).cameraSystem.on("user-tilt-start",c(this,Vi),{signal:this.signal}),c(this,_).cameraSystem.on("user-pedestal-start",c(this,Vi),{signal:this.signal}),c(this,_).cameraSystem.on("user-dolly-end",c(this,Wi),{signal:this.signal}),c(this,_).cameraSystem.on("user-pan-end",c(this,Wi),{signal:this.signal}),c(this,_).cameraSystem.on("user-rotate-end",c(this,Wi),{signal:this.signal}),c(this,_).cameraSystem.on("user-zoom-end",c(this,Wi),{signal:this.signal}),c(this,_).cameraSystem.on("user-tilt-end",c(this,Wi),{signal:this.signal}),c(this,_).cameraSystem.on("user-pedestal-end",c(this,Wi),{signal:this.signal}),c(this,_).cameraSystem.on("change",()=>{this.publish("camera-change",this.camera),c(this,_).geometryInFocusSystem&&(c(this,_).geometryInFocusSystem.cameraDirty=!0),this.render()}),c(this,_).pathSystem=c(this,Re).call(this,new xc(c(this,B),this.convertTo3DMapPosition,this.getParentContainer,c(this,_).cameraSystem.convertZoomLevelToAltitude)),c(this,_).pathSystem.on("animate:path",this.render,{signal:this.signal}),c(this,_).panBoundsSystem=c(this,Re).call(this,new Mm(c(this,B),c(this,_).cameraSystem));let p=o(()=>{let{panBounds:k,fov:H,convertAltitudeToZoomLevel:q}=c(this,_).cameraSystem;if(c(this,_).panBoundsSystem.autoMinZoomLevel){if(k.radius<=0)return;let G=Math.min(c(this,B).canvasWidth/c(this,B).canvasHeight,1),ae=H*Math.PI/180*G,oe=Math.tan(ae/2),{radius:Y,center:le}=c(this,_).cameraSystem.panBounds,fe=Y/oe,xe=this.getThreeCamera().getWorldPosition(new te),be=le.distanceTo(xe),Fe=Math.abs(xe.z-le.z),De=fe*Fe/be,ht=q(De);O4(ht,this.camera.minZoomLevel)&&this.camera.setMinZoomLevel(ht)}this.publish("pan-bounds-change",c(this,_).cameraSystem.panBounds)},"handlePanBoundsUpdate");c(this,_).panBoundsSystem.on("update",p,{signal:this.signal}),this.camera=new sm(this,c(this,_),c(this,B));let g=o(()=>{c(this,_).geometryInFocusSystem&&c(this,_).geometryInFocusSystem.resize(),this.render()},"handlePaddingChange");this.camera.on("padding-change",g,{signal:this.signal}),this.camera.setZoomLevel(($=n.zoomLevel)!=null?$:p6),this.camera.setBearing((O=n.bearing)!=null?O:m6),this.camera.setPitch((M=n.pitch)!=null?M:d6),this.camera.setMaxZoomLevel(mk),this.camera.setMinZoomLevel(dk),c(this,_).domVisiblitySystem=c(this,Re).call(this,new Em(c(this,B),c(this,En))),c(this,_).domMutationSystem=c(this,Re).call(this,new Pm(c(this,B),c(this,En))),c(this,_).domMutationSystem.on("dimensions-update",()=>{c(this,_).collisionSystem.collidersDirty=!0,this.render()}),c(this,_).domDrawSystem=c(this,Re).call(this,new Am(c(this,B))),c(this,_).collisionSystem=c(this,Re).call(this,new cm(c(this,Nn),c(this,B),((Z=n.useCollisionWorker)!=null?Z:!0)&&((z=n.useWorkers)!=null?z:!0))),c(this,_).twoDDrawSystem=c(this,Re).call(this,new Cm(c(this,B),c(this,Pt),n.transformImageRequest)),c(this,_).twoDDrawSystem.on("img:loaded",this.render),c(this,_).interactionSystem=c(this,Re).call(this,new qs(this.rendererDomElement,c(this,B),c(this,At),c(this,Po),c(this,_).cameraSystem.isUserInteracting)),c(this,_).interactionSystem.on("doubletap-with-onefinger",k=>{var H;c(this,_).cameraSystem.enableZoom&&this.camera.animateTo({center:(H=this.projectScreenXYToCoordinate(k.clientX,k.clientY))==null?void 0:H.coordinate,zoomLevel:this.camera.zoomLevel+1,duration:jp,easing:"ease-out"})}),c(this,_).interactionSystem.on("singletap-with-twofinger",()=>{c(this,_).cameraSystem.enableZoom&&this.camera.animateTo({zoomLevel:this.camera.zoomLevel-1,duration:jp,easing:"ease-out"})}),c(this,_).interactionSystem.on("hover",this.render),c(this,_).interactionSystem.on("click",k=>{var oe,Y,le,fe,xe,be,Fe,De,ht;if(k.entity2D.some(vt=>vt.id==="watermark")&&typeof c(this,_).watermarkSystem.options.onClick=="function"&&c(this,_).watermarkSystem.options.interactive){c(this,_).watermarkSystem.options.onClick();return}let q=k.entity3D?[(oe=k.entity3D)==null?void 0:oe.id]:[];(fe=(le=(Y=k.entity3D)==null?void 0:Y.parentObject3D)==null?void 0:le.userData)!=null&&fe.entityId&&q.push((Fe=(be=(xe=k.entity3D)==null?void 0:xe.parentObject3D)==null?void 0:be.userData)==null?void 0:Fe.entityId);let G=[],ae=[];for(let vt of k.entity2D)vt.components[0]instanceof gi?G.push(vt.id):vt.components[0]instanceof hi&&ae.push(vt.id);this.publish("click",{coordinate:this.convert3DMapPositionToCoordinate(k.position),geometry:q,paths:((De=k.entity3D)==null?void 0:De.components[0])instanceof vo?[k.entity3D.id]:[],markers:G,models:((ht=k.entity3D)==null?void 0:ht.components[0])instanceof bo?[k.entity3D.id]:[],labels:ae,containers:Array.isArray(k.groupContainers)?k.groupContainers.map(vt=>vt.userData.entityId):[],pointerEvent:k.pointerEvent})}),c(this,_).interactionSystem.on("hover",k=>{var G,ae,oe;if(!k.position)return;let H=[],q=[];for(let Y of k.entity2D)Y.components[0]instanceof gi?H.push(Y.id):Y.components[0]instanceof hi&&q.push(Y.id);this.publish("hover",{coordinate:this.convert3DMapPositionToCoordinate(k.position),geometry:k.entity3D?[(G=k.entity3D)==null?void 0:G.id]:[],paths:((ae=k.entity3D)==null?void 0:ae.components[0])instanceof vo?[k.entity3D.id]:[],markers:H,models:((oe=k.entity3D)==null?void 0:oe.components[0])instanceof bo?[k.entity3D.id]:[],labels:q,containers:Array.isArray(k.groupContainers)?k.groupContainers.map(Y=>Y.userData.entityId):[]})}),c(this,_).geometryInFocusSystem=c(this,Re).call(this,new Zm(c(this,B),c(this,Zu)));let b=o(k=>{this.publish("geometry-in-focus",k)},"handleGeometryInFocus");c(this,_).geometryInFocusSystem.on("geometry-in-focus",b,{signal:this.signal}),c(this,_).twoDVisiblitySystem=c(this,Re).call(this,new Sm(c(this,B))),c(this,_).drawSystem=c(this,Re).call(this,new Dm(c(this,B),this.convertTo3DMapPosition)),c(this,_).twoDProjectionSystem=c(this,Re).call(this,new Im(c(this,B),this.project)),c(this,_).exporterSystem=c(this,Re).call(this,new Xs(c(this,B))),c(this,_).meshOptimizationSystem=c(this,Re).call(this,new xm(c(this,B),this.convertTo3DMapPosition)),c(this,_).meshOptimizationSystem.on("model-loaded",this.render,{signal:this.signal}),c(this,_).meshOptimizationSystem.on("geometry-2d-added",this.render,{signal:this.signal}),c(this,_).meshOptimizationSystem.on("geometry-group-added",c(this,Dp),{signal:this.signal}),c(this,_).meshDetachmentSystem=c(this,Re).call(this,new up(c(this,B))),c(this,_).meshModificationSystem=c(this,Re).call(this,new cp(c(this,B))),c(this,_).geometryDisposalSystem=c(this,Re).call(this,new gp(c(this,B))),c(this,_).textureSystem=c(this,Re).call(this,new yp(c(this,B))),c(this,_).textureSystem.on("texture-added",this.render,{signal:this.signal}),c(this,_).borderSystem=c(this,Re).call(this,new pb(c(this,B),this.convertTo3DMapPosition)),c(this,_).clippingPlaneSystem=c(this,Re).call(this,new xp(c(this,B))),c(this,_).renderOrderSystem=c(this,Re).call(this,new bp(c(this,B))),c(this,_).pluginSystem=c(this,Re).call(this,new Ep),c(this,_).customGeometrySystem=c(this,Re).call(this,new Tm(c(this,B),this.convertTo3DMapPosition)),c(this,_).outlineInterpolationSystem=c(this,Re).call(this,new Rm(c(this,B))),c(this,_).outlineInterpolationSystem.on("needs-render",this.render,{signal:this.signal}),c(this,_).renderSystem=c(this,Re).call(this,new wm(c(this,Kt),c(this,B),this.mode,c(this,xt),c(this,At),this.viewCamera,c(this,_))),c(this,_).imageSystem=c(this,Re).call(this,new $m(c(this,B),this.convertTo3DMapPosition,this.project,n.bearing,n.naturalBearing,n.imagePlacementOptions)),c(this,_).text3DSystem=c(this,Re).call(this,new _4(c(this,B),this.convertTo3DMapPosition,(re=n.useWorkers)!=null?re:!0)),c(this,_).text3DSystem.on("render",this.render,{signal:this.signal}),c(this,_).imageSystem.on("image-loaded",this.render,{signal:this.signal}),c(this,_).renderSystem.on("pre-render",()=>this.publish("pre-render"),{signal:this.signal}),c(this,_).renderSystem.on("post-render",()=>this.publish("post-render"),{signal:this.signal}),c(this,_).renderSystem.on("measure-canvas",c(this,Sc),{signal:this.signal}),c(this,_).outdoorLayersSystem=c(this,Re).call(this,new Qm(this.map)),c(this,_).occlusion2DSystem=c(this,Re).call(this,new hp(c(this,B),this.convertTo3DMapPosition,c(this,Kt))),n.occlusionEnabled&&c(this,_).occlusion2DSystem.enable(),this.Debug=new fp(this),n.environment!==!1&&K(this,ua,mt(this,pr,zy).call(this)),c(this,Ap).call(this)}get viewCamera(){return c(this,zu)}get canvasWidth(){return c(this,B).canvasWidth}get canvasHeight(){return c(this,B).canvasHeight}get resolutionScale(){var t,n;return(n=(t=this.map)==null?void 0:t._getClampedPixelRatio(this.canvasWidth,this.canvasHeight))!=null?n:ts()}get aspect(){return this.canvasWidth/this.canvasHeight}get mode(){return c(this,Zi)}addGroupContainer(t,n,i){if(!c(this,B).geometry3DMap.has(t)&&!c(this,B).geometry2DMap.has(t)){let a=new nr(t);c(this,ca).call(this,a,()=>{c(this,_t).call(this),c(this,Yr).call(this)}),(n==null?void 0:n.visible)!==void 0&&(a.visible=n.visible),(n==null?void 0:n.altitude)!==void 0&&a.setAltitude(n.altitude),(n==null?void 0:n.interactive)!==void 0&&$r(a,n.interactive,c(this,B)),(n==null?void 0:n.focusable)!==void 0&&il(a,n.focusable),(n==null?void 0:n.preloadGeometry)!==void 0&&(a.userData.preloadGeometry=n.preloadGeometry),c(this,B).geometry3DMap.set(t,a);let u=this.getParentContainer(i);u instanceof nr&&u.addEntity(a),c(this,_t).call(this),this.render()}else Se.error("Group container with ID '".concat(t,"' already exists. The group container cannot be added."));return{id:t,type:"group-container"}}addCustomGeometry(t,n,i,a,u){if(c(this,B).geometry3DMap.has(t))Se.error("Custom geometry with ID '".concat(t,"' already exists. The custom geometry cannot be added."));else{let s=new Mu(n,i),d=new at(s,new Wn(a));(a==null?void 0:a.interactive)!==void 0&&$r(d,a.interactive,c(this,B)),d.id=t,s.mesh.userData={entityId:t,type:"custom-geometry"},c(this,B).geometry3DMap.set(d.id,d);let m=this.getParentContainer(u);u&&m instanceof nr?m.addEntity(d):c(this,B).geometryScene.addEntity(d),c(this,_t).call(this),this.render()}return{id:t,type:"custom-geometry"}}registerPlugin(t){c(this,_).pluginSystem.registerPlugin(t)}unregisterPlugin(t){c(this,_).pluginSystem.unregisterPlugin(t)}addGeometryGroup(t,n,i,a){var u,s,m;if(!c(this,B).geometry3DMap.has(t)&&!c(this,B).geometry2DMap.has(t)){let p=new Hn(t);c(this,ca).call(this,p,()=>{c(this,_t).call(this),c(this,Yr).call(this)}),p.userData.dirty=!0,c(this,B).geometry3DMap.set(t,p);let g=typeof i=="function"?i(n.features[0]):i;for(let v of n.features){if(v.geometry==null||!["Polygon","MultiPolygon","LineString","MultiLineString"].includes(v.geometry.type))continue;let C=(v==null?void 0:v.id)||((u=v==null?void 0:v.properties)==null?void 0:u.id)||Aa(),A={color:ol};if(typeof i=="function")A=(s=i(v))!=null?s:{color:ol};else{let d=i||{color:ol},{visible:E}=d;A=Bo(d,["visible"])}let x=c(this,_).meshOptimizationSystem.createEntityFromFeature(C,v,N({outline:!0},A));c(this,B).geometry3DMap.set(C,x),p.userData.entities3D.add(C),c(this,_).textureSystem.dirty=!0}(g==null?void 0:g.__EXPERIMENTAL_maskEnabled)===!0&&Jp(p,{enabled:g.__EXPERIMENTAL_maskEnabled,maskId:g.__EXPERIMENTAL_maskId,effect:g.__EXPERIMENTAL_maskEffect,mode:g.__EXPERIMENTAL_maskMode}),p.setVisible((m=g==null?void 0:g.visible)!=null?m:!0);let b=this.getParentContainer(a);b instanceof nr&&b.addEntity(p),c(this,_t).call(this),this.render()}else Se.error("Geometry group with ID '".concat(t,"' already exists. The geometry group cannot be added."));return c(this,_).outlineInterpolationSystem.geometries3DDirty=!0,{id:t,type:"geometry-group"}}addOccluder(t,n){let i=this.getParentContainer(n),a=c(this,_).occlusion2DSystem.reserveOccluderId();return i==null||i.addOccluderFeature(t,a),a}addImage(t,n,i,a){try{Z6(t,n,i)}catch(u){Se.error(u);return}if(!c(this,B).geometry3DMap.has(t)&&!c(this,B).geometry2DMap.has(t)){let u=new zm(n),s=new at(u,new Wn(i));s.id=t||Aa(),u.mesh.userData={entityId:s.id,type:"path"},c(this,B).geometry3DMap.set(s.id,s);let d=this.getParentContainer(a);d instanceof nr&&d.addEntity(s),c(this,_t).call(this),this.render()}else Se.error("Image with ID '".concat(t,"' already exists. The image cannot be added."));return{id:t,type:"image"}}addModelGroup(t,n,i,{parent:a,onComplete:u}={}){var s,d;try{I6(t,n,i)}catch(m){Se.error(m);return}if(!c(this,B).geometry3DMap.has(t)&&!c(this,B).geometry2DMap.has(t)){let m=new Hn(t);c(this,ca).call(this,m,()=>{c(this,_t).call(this),c(this,Yr).call(this)}),c(this,B).geometry3DMap.set(t,m),m.userData.dirty=!0,m.userData.modelURL=i.url;for(let g of n.features){let b=g.id||g.properties.id||Aa(),v=c(this,_).meshOptimizationSystem.createModelFromFeature(b,g,N({},i));(g.properties.interactive!==void 0||i.interactive!=null)&&$r(v,(s=g.properties.interactive)!=null?s:i.interactive,c(this,B)),i.clippingPlaneZOffset!=null&&(v.components[7]=new W4,v.components[7].verticalOffset=i.clippingPlaneZOffset),v.parentId=m.userData.entityId,c(this,B).geometry3DMap.set(b,v),m.userData.entities3D.add(b)}let p=this.getParentContainer(a);p instanceof nr&&p.addEntity(m),c(this,_t).call(this),(d=this.render())==null||d.then(u)}else Se.error("Model group with ID '".concat(t,"' already exists. The model group cannot be added."));return{id:t,type:"geometry-group"}}addMarker2D(t,n,i,a){var s;let u=i==null?void 0:i.id;try{C4(t,n,i||{})}catch(d){Se.error(d);return}if(u===void 0||!c(this,B).geometry2DMap.has(u)&&!c(this,B).geometry3DMap.has(u)){let d=mt(this,pr,jy).call(this,t,new gi(n,i),i==null?void 0:i.occluderId,i==null?void 0:i.verticalOffset);d.id=u||String(d.id),u=d.id,(i==null?void 0:i.interactive)!=null&&i.interactive!=="pointer-events-auto"&&$r(d,i==null?void 0:i.interactive,c(this,B)),(i==null?void 0:i.enabled)!=null&&rl(d,i.enabled),(i==null?void 0:i.occlude)!=null&&Kp(d,i.occlude);let m=typeof(i==null?void 0:i.attachTo)=="string"||typeof(i==null?void 0:i.attachTo)=="number"?c(this,B).geometry3DMap.get(i.attachTo):void 0;m instanceof at&&m.attach(d),(s=this.getParentContainer(a))==null||s.addEntity(d),this.render()}else Se.error("Marker2D with ID '".concat(u,"' already exists. The marker cannot be added."));return{id:u,type:"marker"}}addText3D(t,n,i,a){if(!c(this,B).geometry3DMap.has(t)&&!c(this,B).geometry2DMap.has(t)){let u=new tl(Ce(N({},n),{properties:Ce(N({},n.properties),{id:t,content:n.properties.text})})),s=new at(u,new rs(i==null?void 0:i.appearance));s.id=t,u.mesh.userData.entityId=t.toString(),u.mesh.userData.type="text3d",c(this,B).geometry3DMap.set(t,s);let d=this.getParentContainer(a);d instanceof nr&&d.addEntity(s),c(this,_t).call(this),this.render()}else Se.error("Text3D with ID '".concat(t,"' already exists. The text3d cannot be added."));return{id:t,type:"text3d"}}labelText3D(t,n,i={}){var m,p;try{if(!n||!t)throw new Error("content and meshGeometryId are required");L4.parse(i)}catch(g){Se.error(g);return}let a=c(this,B).geometry3DMap.get(t);if((a==null?void 0:a.type)!=="geometry"){Se.error(".labelText3D failed: target incorrect");return}let u=a==null?void 0:a.components[0];if(!u.feature.properties.textArea)return;if(u.textEntityId){let g=c(this,B).geometry3DMap.get(u.textEntityId);if((g==null?void 0:g.type)!=="text3d"){Se.error(".labelText3D failed: existing text3d not found");return}return{id:g.id,type:g.type}}let s=new tl({type:"Feature",geometry:{coordinates:(m=u.feature.properties.textArea)==null?void 0:m.position,type:"Point"},properties:{textArea:u.feature.properties.textArea,content:n,id:Aa()}});s.polygonEntityId=t;let d=new at(s,new rs(i==null?void 0:i.appearance));return u.textEntityId=d.id.toString(),s.mesh.userData.entityId=d.id.toString(),s.mesh.userData.type="text3d",c(this,B).geometry3DMap.set(d.id.toString(),d),i.parentId&&((p=this.getParentContainer(i.parentId))==null||p.addEntity(d)),this.render(),{id:d.id,type:"text3d"}}addLabel2D(t,n,i,a){var s;let u=i==null?void 0:i.id;try{I4(t,n,i||{})}catch(d){Se.error(d);return}if(u===void 0||!c(this,B).geometry2DMap.has(u)&&!c(this,B).geometry3DMap.has(u)){let d=mt(this,pr,jy).call(this,t,new hi(n,i||{},c(this,B)),i==null?void 0:i.occluderId,i==null?void 0:i.verticalOffset);d.id=u||String(d.id),u=d.id,(i==null?void 0:i.interactive)!=null&&$r(d,i==null?void 0:i.interactive,c(this,B)),(i==null?void 0:i.enabled)!=null&&rl(d,i.enabled),(i==null?void 0:i.occlude)!=null&&Kp(d,i.occlude);let m=typeof(i==null?void 0:i.attachTo)=="string"||typeof(i==null?void 0:i.attachTo)=="number"?c(this,B).geometry3DMap.get(i.attachTo):void 0;m instanceof at&&m.attach(d),(s=this.getParentContainer(a))==null||s.addEntity(d),c(this,Yr).call(this),this.render()}else Se.error("Label2D with ID '".concat(u,"' already exists. The label cannot be added."));return{id:u,type:"label"}}addPath(t,n={},i){var d,m;try{O6(t,n||{})}catch(p){Se.error(p);return}let a=new vo(t,ub(n)),u=new at(a,new Wn({color:(d=n==null?void 0:n.color)!=null?d:"#ff834c",altitude:(m=n==null?void 0:n.verticalOffset)!=null?m:.1}));u.id=(n==null?void 0:n.id)||Aa(),a.mesh.userData={entityId:u.id,type:"path"},c(this,B).geometry3DMap.set(u.id,u),(n==null?void 0:n.interactive)!=null&&$r(u,n==null?void 0:n.interactive,c(this,B));let s=this.getParentContainer(i);return s instanceof nr&&s.addEntity(u),c(this,_t).call(this),this.render(),{id:u.id,type:"path"}}updateWatermark(t){c(this,_).watermarkSystem.options=t,c(this,_).watermarkSystem.dirty=!0,c(this,_).collisionSystem.collidersDirty=!0,this.render()}remove(t){var i,a;let n;if(typeof t=="string"||typeof t=="number"?(n=c(this,B).geometry2DMap.get(t),n==null&&(n=c(this,B).geometry3DMap.get(t))):typeof t.id=="string"||typeof t.id=="number"?(n=c(this,B).geometry2DMap.get(t.id),n==null&&(n=c(this,B).geometry3DMap.get(t.id))):n=t,n!=null){if(n.type==="custom-geometry")c(this,B).geometry3DMap.delete(n.id),n.object3d&&fr(n.object3d);else if(n.type==="group-container"){c(this,B).geometry3DMap.delete(n.userData.entityId);for(let u of n.childrenIds.values())this.remove(u),n.userData.entities2D.delete(u);fr(n)}else if(n.type==="geometry-group"){c(this,B).geometry3DMap.delete(n.userData.entityId);for(let u of n.userData.entities3D.values())this.remove(u),n.userData.entities3D.delete(u);fr(n)}else if(n.type==="geometry"||n.type==="model"||n.type==="path"){let u=n.components[0];if(n.entities2D.size>0){for(let d of n.entities2D.values())this.remove(d);n.removeAllEntities()}let s=(a=(i=n.parentObject3D)==null?void 0:i.userData.entityId)!=null?a:n.parentId;if(s){let d=c(this,B).geometry3DMap.get(s);d instanceof Hn&&d.userData.entities3D.delete(n.id)}if(n.object3d&&fr(n.object3d),n.type==="geometry"){let d=n.components[3];d&&(d.enabled=!1,d.dirty=!0)}"textMesh"in u&&u.textMesh!=null&&this.remove(u.textMesh.userData.entityId),c(this,B).geometry3DMap.delete(n.id)}else if(n.type==="marker"||n.type==="label"){let u=n.attachedTo;if(u){let s=c(this,B).geometry3DMap.get(u);s instanceof at&&s.detach(n)}n.object3d&&fr(n.object3d),n.type==="label"&&delete c(this,_).twoDDrawSystem.textCache[n.id],c(this,B).geometry2DMap.delete(n.id)}else if(n.type==="image")n.object3d&&fr(n.object3d),c(this,B).geometry3DMap.delete(n.id);else if(n.type==="text3d"){fr(n.object3d);let{batchedText:u,textMesh:s,polygonEntityId:d}=n.components[0];if(s&&(u&&u.removeText(s),fr(s)),d){c(this,_).text3DSystem.remove(d);let m=c(this,B).geometry3DMap.get(d);(m==null?void 0:m.type)==="geometry"&&(m.components[0].textMesh=void 0,m.components[0].textEntityId=void 0)}c(this,B).geometry3DMap.delete(n.id)}c(this,_t).call(this),c(this,Yr).call(this),this.render()}}getScene(){return this.getState("__scene")}getThreeScene(){return c(this,xt)}getThreeCamera(){return c(this,At)}async setEnvironment(t){if(c(this,xt))if(t==="basic"){c(this,ua)||K(this,ua,mt(this,pr,zy).call(this));let n=await c(this,ua);c(this,xt).environment=n}else c(this,xt).environment=null}getEnvironment(){var t;return(t=c(this,xt))!=null&&t.environment?"basic":!1}getCurrentSceneGLTF(t){return c(this,_).exporterSystem.getCurrentSceneGLTF(t)}getBoundingArea(t){(c(this,_).renderSystem.threeDdirty||c(this,_).renderSystem.twoDdirty)&&this.renderSync();let n=new rr;if(t==null)n.setFromObject(c(this,B).geometryScene);else{let i=_o(c(this,B),t);if((i==null?void 0:i.type)==="geometry"&&(i==null?void 0:i.object3d)!=null){let a=i.components[0],u=a instanceof zt?a.geometry:void 0;a.mesh instanceof zc&&u?(u.computeBoundingBox(),u.boundingBox&&n.union(u.boundingBox)):n.setFromObject(i.object3d)}else((i==null?void 0:i.type)==="geometry-group"||(i==null?void 0:i.type)==="group-container")&&(i==null?void 0:i.userData.entityId)!=null&&n.setFromObject(i)}if(qc(n))return D4(n).map(this.convert3DMapPositionToCoordinate)}hasState(t){return _o(c(this,B),t)!=null}getState(t){var i,a,u,s,d,m,p,g,b,v,C,A,x,E,S,D,I,T,V,$,O,M,Z,z,re;if(t==null)return{type:"map-view",hoverColor:c(this,B).hoverColor,text3dHoverColor:c(this,B).text3dHoverColor};let n=_o(c(this,B),t);if((n==null?void 0:n.type)==="custom-geometry"){let k=n.components[0],H=n.components[1];return{id:n.id,type:"custom-geometry",visible:H.visible,altitude:H.altitude,parent:(i=n.parentObject3D)==null?void 0:i.userData.entityId,position:this.convert3DMapPositionToCoordinate(k.position)}}else if((n==null?void 0:n.type)==="geometry-group"){let k=Array.from(n.userData.entities3D.values()),H=k==null?void 0:k[0],q=H?this.getState(H):{};return{id:n.userData.entityId,type:"geometry-group",visible:n.visible,altitude:q==null?void 0:q.altitude,initialColor:q==null?void 0:q.initialColor,color:q==null?void 0:q.color,side:(a=q==null?void 0:q.side)!=null?a:"double",opacity:q==null?void 0:q.opacity,height:q==null?void 0:q.height,texture:q==null?void 0:q.texture,topColor:q==null?void 0:q.topColor,topTexture:q==null?void 0:q.topTexture,interactive:Array.from(n.userData.entities3D.values()).map(G=>c(this,B).geometry3DMap.get(G)).every(G=>G&&G.components[2]!=null),children:k,bevel:q==null?void 0:q.bevel,maskId:(u=n.components[0])==null?void 0:u.maskId,maskEnabled:(s=n.components[0])==null?void 0:s.enabled,maskEffect:(d=n.components[0])==null?void 0:d.effect,maskMode:(m=n.components[0])==null?void 0:m.mode}}else{if((n==null?void 0:n.type)==="group-container")return{id:n.userData.entityId,type:"group-container",visible:n.visible,altitude:(p=n.getWorldPosition(fk).z)!=null?p:0,opacity:n.opacity,interactive:!!n.components[0],children:Array.from(n.childrenIds.values()).map(k=>this.getState(k)).filter(Boolean)};if((n==null?void 0:n.type)==="label"){let k=n.components[0],H=n.object3d.parent,q=H==null?void 0:H.userData.entityId;return{id:n.id,type:"label",text:k.text||"",parent:{id:q,type:H==null?void 0:H.type},position:this.convert3DMapPositionToCoordinate(n.position),enabled:k.enabled,visible:k.visible,initialRank:Qu(k.initialRank),options:{rank:Qu(k.rank),appearance:k.appearance,interactive:n.components[1]!=null,verticalOffset:n.verticalOffset,attachTo:n.attachedTo,occlude:(b=(g=n.components[2])==null?void 0:g.enabled)!=null?b:!1}}}else if((n==null?void 0:n.type)==="marker"){let k=n.components[0],H=n.object3d.parent,q=H==null?void 0:H.userData.entityId;return{id:n.id,type:"marker",enabled:k.enabled,visible:k.visible,placement:k.options.placement,dynamicResize:k.options.dynamicResize,parent:{id:q,type:H==null?void 0:H.type},position:this.convert3DMapPositionToCoordinate(n.position),element:k.containerEl,initialRank:Qu(k.initialRank),contentHTML:k.contentHtml,options:{rank:Qu(k.rank),interactive:n.components[1]!=null||!1,verticalOffset:n.verticalOffset,attachTo:n.attachedTo,lowPriorityPin:k.options.lowPriorityPin,occlude:(C=(v=n.components[2])==null?void 0:v.enabled)!=null?C:!1,zIndex:k.options.zIndex}}}else if((n==null?void 0:n.type)==="geometry"){let{color:k,hoverColor:H,initialColor:q,initialTopColor:G,topColor:ae,altitude:oe}=n.components[1],Y=n.components[0],le=n.components[4],fe=n.components[1],xe=n.components[6],be=n.components[2],Fe=n.components[3],De=n.parentObject3D;return{id:n.id,type:"geometry",opacity:fe.opacity,initialColor:q,color:k,focusable:le!=null&&le.vertices!=null&&le.vertices.length>0,initialTopColor:G,topColor:ae,side:fe.side,hoverColor:H,hovered:!!(be!=null&&be.hover),height:fe.height,visible:fe.visible,outline:Fe==null?void 0:Fe.enabled,showImage:fe.showImage,texture:(A=xe==null?void 0:xe.texture)==null?void 0:A.path,topTexture:(x=xe==null?void 0:xe.topTexture)==null?void 0:x.path,flipImageToFaceCamera:fe.flipImageToFaceCamera,enableImageCollisions:fe.enableImageCollisions,parent:{id:De==null?void 0:De.userData.entityId,type:De==null?void 0:De.type},altitude:oe,bevel:fe.bevel,position:this.convert3DMapPositionToCoordinate(Y.position),interactive:n.components[2]!=null,borderVisible:fe.borderVisible,borderColor:fe.borderColor,borderWidth:fe.borderWidth}}else if((n==null?void 0:n.type)==="model"){let k=n.components[0],H=n.components[1],q=n.components[2];return{id:n.id,type:"model",position:k.mesh?this.convert3DMapPositionToCoordinate((E=k.mesh)==null?void 0:E.getWorldPosition(new te)):this.convert3DMapPositionToCoordinate(k.position),interactive:q!=null,material:H.material,parent:(S=n.parentObject3D)!=null&&S.parent?{id:n.parentObject3D.parent.userData.entityId,type:n.parentObject3D.parent.type}:void 0,visible:H.visible,verticalOffset:H.verticalOffset,color:H.color,opacity:H.opacity,rotation:(D=H.rotation)!=null?D:Ma,scale:(I=H.scale)!=null?I:Oa}}else if((n==null?void 0:n.type)==="path"){let k=n.components[0],H=n.components[2],q=n.components[1];return{id:n.id,type:"path",position:this.convert3DMapPositionToCoordinate(k.position),visible:q.visible,interactive:H!=null,completeFraction:k.completeFraction,color:q.color,accentColor:k.accentColor,width:k.width,animateArrowsOnPath:k.animateArrowsOnPath,displayArrowsOnPath:k.displayArrowsOnPath,verticalOffset:q.altitude,highlightCompleteFraction:k.highlightCompleteFraction,highlightStartFraction:k.highlightStartFraction,highlightEndFraction:k.highlightEndFraction,highlightColor:k.highlightColor,highlightWidthMultiplier:k.highlightWidthMultiplier,xrayOpacity:k.xrayOpacity,smoothingTension:k.smoothingTension,smoothingCornerRadius:k.smoothingCornerRadius,dashed:k.dashed,dashLength:k.dashLength,dashGap:k.dashGap,dashRelativeToWidth:k.dashRelativeToWidth,dashSize:k.dashSize,gapSize:k.gapSize,dashAbsolute:k.dashAbsolute,dashMeters:k.dashMeters,gapMeters:k.gapMeters}}else if((n==null?void 0:n.type)==="image"){let k=n.components[0];return{id:n.id,type:"image",position:this.convert3DMapPositionToCoordinate(k.position),visible:n.components[1].visible,verticalOffset:(T=k.feature.properties.verticalOffset)!=null?T:0,opacity:n.components[1].opacity,flipImageToFaceCamera:n.components[1].flipImageToFaceCamera,width:(V=k.feature.properties.width)!=null?V:0,height:($=k.feature.properties.height)!=null?$:0,rotation:(O=k.feature.properties.rotation)!=null?O:0}}else if((n==null?void 0:n.type)==="text3d"&&n.components[0]instanceof tl&&"textArea"in n.components[0].feature.properties){sb(n);let k=n.components[0],H=n.components[1],{textMesh:q}=k,G=(M=k.mesh)==null?void 0:M.parent;G instanceof nr&&((Z=G.children.find(Y=>Y.type==="batchedtext"))==null||Z.getWorldPosition(c(this,Pc))),c(this,Wu).set(0,0,0);let ae=q?q.getWorldPosition(c(this,Wu)):c(this,Wu);return Object.assign({},Ba,H.getState(),{id:n.id,type:"text3d",position:this.convert3DMapPositionToCoordinate(ae.add(c(this,Pc))),visible:(z=k.visible)!=null?z:!1,content:(re=k.feature.properties.content)!=null?re:""})}else return}}getRenderedState(t){let n=typeof t=="string"||typeof t=="number"?t:t.id,i=_o(c(this,B),n);if(i&&i.type==="label")return{textVisible:i.components[0].textVisible}}setState(t,n){var a,u;if(typeof t=="object"&&n==null){"hoverColor"in t&&(y4(t.hoverColor)?c(this,B).hoverColor=(a=t.hoverColor)!=null?a:c(this,B).hoverColor:Se.warn('Failed to update global hover color. Invalid color "'.concat(t.hoverColor,'".'))),"text3dHoverColor"in t&&(c(this,B).text3dHoverColor=(u=t.text3dHoverColor)!=null?u:c(this,B).text3dHoverColor);return}let i=_o(c(this,B),t);if(i!=null){if(i.type==="custom-geometry"){let s=c(this,B).geometry3DMap.get(i.id);if(s instanceof at&&s.components[0]instanceof Mu){let d=n;eo(i,c(this,B),d.visible),Ta(i,c(this,B),d.altitude),Wp(i,d.position,this.convertTo3DMapPosition),Hp(i,this.getParentContainer(d.parent,!1)),$r(i,d.interactive,c(this,B))&&c(this,_t).call(this)}}else if(i.type==="path"){let s=n;$r(i,s.interactive,c(this,B))&&c(this,_t).call(this),Ta(i,c(this,B),s.verticalOffset),ab(i,c(this,B),s)}else if(i.type==="model"){let s=n;$r(i,s.interactive,c(this,B))&&c(this,_t).call(this),eo(i,c(this,B),s.visible),lb(i,s),db(i,s)}else if(i.type==="group-container"){let s=n;eo(i,c(this,B),s.visible)&&(c(this,_).pathSystem.verticalDistanceDirty=!0,c(this,_).geometryInFocusSystem.focusablesDirty=!0),Ta(i,c(this,B),s.altitude)&&(c(this,_).pathSystem.verticalDistanceDirty=!0),$r(i,s.interactive,c(this,B))&&c(this,_t).call(this),nl(i,c(this,B),s.opacity)&&(c(this,_).outlineInterpolationSystem.outlineOpacitiesDirty=!0),s.preloadGeometry&&i.userData.preloadGeometry!==!0&&(i.userData.preloadGeometry=!0,c(this,_).outlineInterpolationSystem.geometries3DDirty=!0),il(i,s.focusable)&&(c(this,_).geometryInFocusSystem.focusablesDirty=!0)}else if(i.type==="geometry-group"){let s=n;eo(i,c(this,B),s.visible),H4(i,c(this,B),s),Yp(i,c(this,B),s.outline),s.height!=null&&Vp(i,c(this,B),s.height),Ta(i,c(this,B),s.altitude),Xp(i,c(this,B),s)&&(c(this,_).textureSystem.dirty=!0),Xp(i,c(this,B),s),K4(i,c(this,B),s.shading),nl(i,c(this,B),s.opacity)&&(c(this,_).outlineInterpolationSystem.outlineOpacitiesDirty=!0),$r(i,s.interactive,c(this,B))&&(c(this,_t).call(this),c(this,Yr).call(this)),Qp(i,c(this,B),s.side),Jp(i,{maskId:s.maskId,enabled:s.maskEnabled,effect:s.maskEffect,mode:s.maskMode})}else if(i.type==="geometry"){if(i.components[0]instanceof zt){let s=n;eo(i,c(this,B),s.visible),Yp(i,c(this,B),s.outline),q4(i,s),il(i,s.focusable)&&(c(this,_).geometryInFocusSystem.focusablesDirty=!0),ib(i,s.renderOrder)&&(c(this,_).meshDetachmentSystem.dirty=!0),nb(i,s.opacity)&&(c(this,_).meshDetachmentSystem.dirty=!0,c(this,_).interactionSystem.dirty3D=!0,c(this,_).outlineInterpolationSystem.outlineOpacitiesDirty=!0),qp(i,s.flipImageToFaceCamera),tb(i,s.enableImageCollisions),Ta(i,c(this,B),s.altitude),s.height!=null&&Vp(i,c(this,B),s.height),rb(i,s)&&(c(this,_).meshDetachmentSystem.dirty=!0,c(this,_).textureSystem.dirty=!0),X4(i,s),Q4(i,s.hoverColor),$r(i,s.interactive,c(this,B)),eb(i,s.hovered),Qp(i,c(this,B),s.side),ob(i,s)}c(this,_t).call(this)}else if(i.type==="label"||i.type==="marker"){let s=n;Y4(i,s,c(this,B)),J4(i,s,c(this,B))&&(c(this,Yr).call(this),c(this,_).domMutationSystem.dirty=!0),Wp(i,s.position,this.convertTo3DMapPosition),Hp(i,this.getParentContainer(s.parent,!1))&&(c(this,Yr).call(this),c(this,_).panBoundsSystem.dirty=!0),rl(i,s.enabled),eo(i,c(this,B),s.visible)}else if(i.type==="image"){let s=n;eo(i,c(this,B),s.visible),nl(i,c(this,B),s.opacity),qp(i,s.flipImageToFaceCamera)}else if(i.type==="text3d"){let s=n;cb(i,c(this,B),s)}this.render()}}convertTo3DMapPosition(t,n,i=0,a){var d,m,p,g,b;if(Array.isArray(t))return this.convertTo3DMapPosition(t[1],t[0],(d=t[2])!=null?d:i,typeof n=="function"?n:void 0);if(typeof n!="number")throw new Error("convertTo3DMapPosition failed: longitude must be a number");let{x:u,y:s}=Yc((p=(m=c(this,B).center)==null?void 0:m[1])!=null?p:0,(b=(g=c(this,B).center)==null?void 0:g[0])!=null?b:0,t,n);return a?(a.set(u,s,i),a):new te(u,s,i)}get backgroundColor(){return typeof c(this,Kt).backgroundColor=="string"?c(this,Kt).backgroundColor:"#".concat(c(this,Kt).backgroundColor.getHexString())}get backgroundAlpha(){return c(this,Kt).backgroundAlpha}getThreeRenderer(){return c(this,Kt)}getCenter(t){let n=Array.isArray(t)?t:this.getBoundingArea(t);return n?B4(n):void 0}isInView(t){let n=_o(c(this,B),t);if(c(this,wc).identity().multiply(c(this,At).projectionMatrix).multiply(c(this,At).matrixWorldInverse),c(this,la).setFromProjectionMatrix(c(this,wc)),n instanceof Up)return c(this,la).containsPoint(n.position);if(n instanceof at){let i=n==null?void 0:n.components[0];if(i instanceof Mu||i instanceof bo)return c(this,la).containsPoint(this.convertTo3DMapPosition(i.feature.geometry.coordinates));if(i instanceof zt){let a=new rr(this.convertTo3DMapPosition(i.featureBbox[1],i.featureBbox[0],0),this.convertTo3DMapPosition(i.featureBbox[3],i.featureBbox[2],0));return c(this,la).intersectsBox(a)}}return!1}queryGeometry2DInView(t){let{screenOffsets:n,fullyContains:i}=t!=null?t:{},[a,u,s,d]=k4(this.container,n),m=new Pe(a,u,s,d);return c(this,_).collisionSystem.visibleCollidersQTree.queryRect(m).filter(v=>i?m.contains(v):m.intersects(v)).map(v=>c(this,B).geometry2DMap.get(v.userData.entityId)).filter(v=>v!=null).filter(v=>v.components[0]instanceof hi||v.components[0]instanceof gi).map(v=>v.id.toString())}onMapLibreEvent(t,n){if(!this.map){Se.warn('Tried to add event listener "'.concat(t,'" but MapLibre map is not initialized.'));return}let i=this.map.on(t,n);i!=null&&i.unsubscribe&&this.onAbort(()=>i.unsubscribe())}offMapLibreEvent(t,n){this.map&&this.map.off(t,n)}getSystems(){return c(this,_)}getInternalState(){return c(this,B)}getInternalTweenGroup(){return c(this,B).internalTweenGroup}getExternalTweenGroup(){return c(this,B).externalTweenGroup}computeMinZOffsetBetweenContainers(t,n,i){if(!t||!n)return-1;Np(t,"group-container"),Np(n,"group-container"),t.updateMatrixWorld(!0),n.updateMatrixWorld(!0);let a=Qc(t,this.getThreeCamera()),u=n.clone(!0);w4(u,!0),u.updateMatrixWorld();let s=Qc(u,this.getThreeCamera());if(!qc(a)||!qc(s))return-1;let d=0,m;i&&this.container.querySelectorAll(".debug-box").forEach(g=>g.remove());do{if(d>1e4)return-1;if(d+=20,u.setAltitude(d),s.makeEmpty(),Qc(u,c(this,At),s),m=a.intersectsBox(s),i){let p=Gp(a,"blue",this.container),g=Gp(s,m?"red":"green",this.container);p.classList.add("debug-box"),g.classList.add("debug-box")}}while(m);return d}};xt=new WeakMap,At=new WeakMap,ua=new WeakMap,zu=new WeakMap,$u=new WeakMap,Po=new WeakMap,sa=new WeakMap,Gu=new WeakMap,pr=new WeakSet,Uy=o(function(t){var n;c(this,Zi)!=="outdoors-overlay"&&((n=this.map)==null||n.setPixelRatio(t)),c(this,B).pixelRatio=this.resolutionScale},"#setResolutionScale"),B=new WeakMap,Qe=new WeakMap,Nn=new WeakMap,Pt=new WeakMap,En=new WeakMap,Kt=new WeakMap,_=new WeakMap,Cp=new WeakMap,Yr=new WeakMap,_t=new WeakMap,ca=new WeakMap,nC=o(function(){K(this,Qe,document.createElement("div")),c(this,Qe).classList.add("mappedin__smart-collision-engine__container"),K(this,Nn,document.createElement("canvas")),c(this,Nn).classList.add("mappedin__smart-collision-engine-debug__container"),this.container.appendChild(c(this,Qe)),K(this,Pt,document.createElement("canvas")),c(this,Pt).classList.add("mappedin__smart-collision-engine__container"),c(this,Pt).width=c(this,Qe).clientWidth*this.resolutionScale,c(this,Pt).height=c(this,Qe).clientHeight*this.resolutionScale,c(this,Pt).style.width=c(this,Qe).clientWidth+"px",c(this,Pt).style.height=c(this,Qe).clientHeight+"px",c(this,Qe).appendChild(c(this,Nn)),c(this,Qe).appendChild(c(this,Pt)),c(this,Nn).width=c(this,Qe).clientWidth,c(this,Nn).height=c(this,Qe).clientHeight,c(this,Pt).width=c(this,Qe).clientWidth*this.resolutionScale,c(this,Pt).height=c(this,Qe).clientHeight*this.resolutionScale,c(this,Pt).style.width=c(this,Qe).clientWidth+"px",c(this,Pt).style.height=c(this,Qe).clientHeight+"px"},"#renderEntity2DContainer"),iC=o(function(){K(this,En,document.createElement("div")),c(this,En).classList.add("mappedin-2d-entities"),Object.assign(c(this,En).style,{position:"absolute",top:"0",left:"0",bottom:"0",right:"0",pointerEvents:"none","transform-style":"preserve-3d"}),this.container.appendChild(c(this,En))},"#renderEntityDOMContainer"),oC=o(function(){c(this,Pt).width=c(this,Qe).clientWidth*this.resolutionScale,c(this,Pt).height=c(this,Qe).clientHeight*this.resolutionScale,c(this,Pt).style.width=c(this,Qe).clientWidth+"px",c(this,Pt).style.height=c(this,Qe).clientHeight+"px",c(this,Nn).width=c(this,Qe).clientWidth,c(this,Nn).height=c(this,Qe).clientHeight,c(this,Pt).width=c(this,Qe).clientWidth*this.resolutionScale,c(this,Pt).height=c(this,Qe).clientHeight*this.resolutionScale,c(this,Pt).style.width=c(this,Qe).clientWidth+"px",c(this,Pt).style.height=c(this,Qe).clientHeight+"px",c(this,_).collisionSystem.collidersDirty=!0},"#resizeCollisionCanvas"),Zi=new WeakMap,Dp=new WeakMap,Ic=new WeakMap,Sp=new WeakMap,wp=new WeakMap,Zu=new WeakMap,Vu=new WeakMap,Ap=new WeakMap,Cc=new WeakMap,Dc=new WeakMap,Sc=new WeakMap,jy=o(function(t,n,i,a){let u=new Up(n,this.convertTo3DMapPosition(t[1],t[0],t[2]||0),a);return u.components[2]=new Ip(i!=null?i:c(this,_).occlusion2DSystem.backgroundId),c(this,B).geometry2DMap.set(u.id,u),u},"#createEntity2D"),la=new WeakMap,wc=new WeakMap,Ac=new WeakMap,Vi=new WeakMap,Wi=new WeakMap,zy=o(async function(){return Eo.load(hb).then(t=>{var n;return c(this,xt)&&((n=c(this,xt).environment)==null||n.dispose(),t.mapping=Wy,c(this,xt).environment=t,this.render()),t})},"#loadEnvMap"),Pp=new WeakMap,Re=new WeakMap,Wu=new WeakMap,Pc=new WeakMap,o($y,"Core");var Ny=$y,fk=new te,vg=Ny;var Gy=class Gy extends Ae{constructor(t){super();h(this,"gl");h(this,"el",document.createElement("div"));h(this,"core");h(this,"origin");h(this,"map");h(this,"layer");h(this,"handleStyleChange",o(()=>{!this.map||!this.layer||this.map.getLayer(this.layer.id)||(this.map.addLayer(this.layer),this.core.camera.setMinZoomLevel(this.map.getMinZoom()),this.core.camera.setMaxZoomLevel(this.map.getMaxZoom()),this.core.camera.setMinPitch(this.map.getMinPitch()),this.core.camera.setMaxPitch(this.map.getMaxPitch()))},"handleStyleChange"));h(this,"handleMove",o(()=>{if(!this.map)return;let[t,n]=this.map.getCenter().toArray();this.core.getSystems().cameraSystem.setCenter(t,n),this.core.getSystems().cameraSystem.setZoomLevel(this.map.getZoom()),this.core.getSystems().cameraSystem.setRotation(Me.degToRad(this.map.getBearing())),this.core.getSystems().cameraSystem.setTilt(Me.degToRad(this.map.getPitch()))},"handleMove"));h(this,"handleError",o(t=>{Se.warn(t)},"handleError"));this.origin=t}onAdd(t){this.origin=this.origin||t.getCenter().toArray(),this.gl=t.painter.context.gl,this.core=new vg(t._container,{center:this.origin,zoomLevel:t.getZoom(),pitch:t.getPitch(),bearing:t.getBearing(),gl:this.gl,map:t,mode:"outdoors-overlay"}),this.map=t,this.core.camera.setMinZoomLevel(t.getMinZoom()),this.core.camera.setMaxZoomLevel(t.getMaxZoom()),this.core.camera.setMinPitch(t.getMinPitch()),this.core.camera.setMaxPitch(t.getMaxPitch()),this.map.on("error",this.handleError);let n=Bp.fromLngLat(this.origin,0);return this.layer=zp(n,this.core.viewCamera,()=>{this.core.renderSync()}),this.map.on("styledata",this.handleStyleChange),this.map.on("move",this.handleMove),this.handleStyleChange(),this.el}onRemove(){this.map&&(this.map.off("styledata",this.handleStyleChange),this.map.off("move",this.handleMove),this.map.off("error",this.handleError),this.layer&&this.map.removeLayer(this.layer.id)),this.layer=void 0,this.map=void 0,this.core&&this.core.destroy(),this.core=void 0}};o(Gy,"MapLibreOverlay");var Fp=Gy;l();var aC=Hc("",{prefix:"[MapLibreOverlay]"});l();var uC=o((e,{id:r}={})=>{let t=Array.isArray(e)?e:[e];if(!t.every(a=>typeof a=="string"))return;let n=t.join(""),i=null;if(r){let a=document.getElementById(r);a instanceof HTMLStyleElement&&(i=a)}i==null&&(i=document.createElement("style")),r&&r!==""&&(i.id=r),i.textContent=n,document.head.appendChild(i)},"injectCSS");var sC=".mappedin-marker {\n font-family: 'InterUI-Regular', Helvetica, Arial, sans-serif;\n font-weight: normal;\n top: 0;\n position: absolute;\n font-weight: bold;\n color: black;\n display: flex;\n flex-direction: row;\n will-change: transform, opacity;\n transition: opacity 150ms ease-in-out;\n justify-content: center;\n opacity: 0;\n}\n\n/* Low priority pin strategy styles */\n\n/* Hide child elements as well */\n.mappedin-marker[data-placement='hidden'] > .mappedin-marker-content {\n visibility: hidden;\n}\n\n/* Create the pin using ::before pseudo-element */\n.mappedin-marker::before {\n content: '';\n display: none;\n border-radius: 50%;\n position: relative;\n /* Default values - will be overridden by inline styles */\n width: var(--mappedin-pin-size, 2px);\n height: var(--mappedin-pin-size, 2px);\n background-color: var(--pin-color, #666);\n}\n\n.mappedin-marker[data-placement='hidden']::before {\n display: block;\n}\n";var cC=".mappedin__smart-collision-engine__container {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px;\n right: 0px;\n pointer-events: none;\n /* Enables colliders to use translate3D */\n transform-style: preserve-3d;\n font-family: 'InterUI-Regular', Helvetica, Arial, sans-serif;\n}\n\n.mappedin__smart-collision-engine-debug__container {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px;\n right: 0px;\n transition: opacity 300ms ease-in-out;\n pointer-events: none;\n will-change: opacity;\n &.interacting {\n opacity: 0.2;\n }\n}\n";var lC=".mappedin-map {\n .mappedin-interactive {\n cursor: grab;\n\n &:active {\n cursor: grabbing;\n }\n\n &.mappedin-interaction-hover {\n cursor: pointer;\n }\n }\n}\n";var dC=".mappedin-map {\n .mappedin-control-container {\n position: absolute;\n left: 0px;\n top: 0px;\n bottom: 0px;\n right: 0px;\n pointer-events: none;\n font-family: 'InterUI-Regular', Helvetica, Arial, sans-serif;\n\n .mappedin-ctrl-top-left,\n .mappedin-ctrl-top-right,\n .mappedin-ctrl-bottom-left,\n .mappedin-ctrl-bottom-right {\n position: absolute;\n pointer-events: none;\n }\n\n .mappedin-ctrl-top-left {\n top: 0;\n left: 0;\n }\n\n .mappedin-ctrl-top-right {\n top: 0;\n right: 0;\n }\n\n .mappedin-ctrl-bottom-left {\n bottom: 0;\n left: 0;\n }\n\n .mappedin-ctrl-bottom-right {\n bottom: 0;\n right: 0;\n }\n\n .mappedin-ctrl-attrib {\n display: block;\n position: relative;\n pointer-events: auto;\n font: 9px/11px 'InterUI-Regular', Helvetica, Arial, sans-serif;\n padding: 3px 5px 1px 5px;\n background-color: rgba(255, 255, 255, 0.5);\n margin: 0;\n min-width: 11px;\n min-height: 11px;\n user-select: none;\n\n summary.mappedin-ctrl-attrib-button {\n appearance: none;\n list-style: none;\n }\n\n summary.mappedin-ctrl-attrib-button::-webkit-details-marker {\n display: none;\n }\n\n &.mappedin-compact .mappedin-ctrl-attrib-button,\n &.mappedin-compact-show .mappedin-ctrl-attrib-inner {\n display: inline-block;\n }\n\n &.mappedin-compact {\n background-color: transparent;\n }\n\n &.mappedin-compact-show {\n min-width: 15px;\n min-height: 15px;\n box-sizing: border-box;\n background-color: rgba(255, 255, 255, 0.5);\n }\n }\n\n .mappedin-ctrl-attrib-top-left {\n float: left;\n border-bottom-right-radius: 4px;\n }\n\n .mappedin-ctrl-attrib-top-right {\n float: right;\n border-bottom-left-radius: 4px;\n }\n\n .mappedin-ctrl-attrib-bottom-left {\n float: left;\n border-top-right-radius: 4px;\n }\n\n .mappedin-ctrl-attrib-bottom-right {\n float: right;\n border-top-left-radius: 4px;\n }\n .mappedin-ctrl-attrib-top-left,\n .mappedin-ctrl-attrib-bottom-left {\n padding: 3px 5px 1px 20px;\n }\n\n .mappedin-ctrl-attrib-inner {\n display: inline-block;\n margin-right: 12px;\n }\n\n .mappedin-ctrl-attrib-inner,\n .mappedin-ctrl-attrib-inner a {\n color: rgba(0, 0, 0, 0.75);\n text-decoration: none;\n }\n\n .mappedin-ctrl-attrib-inner-bold,\n .mappedin-ctrl-attrib-inner-bold a {\n font-weight: bold;\n }\n\n .mappedin-ctrl-attrib-inner a:hover {\n color: #017ef1;\n text-decoration: underline;\n cursor: pointer;\n }\n\n .mappedin-ctrl-attrib-button {\n display: none;\n cursor: pointer;\n position: absolute;\n width: 15px;\n height: 15px;\n box-sizing: border-box;\n border-radius: 50%;\n top: 0;\n right: 2px;\n border: 1px;\n }\n .mappedin-ctrl-attrib-top-left .mappedin-ctrl-attrib-button,\n .mappedin-ctrl-attrib-bottom-left .mappedin-ctrl-attrib-button {\n left: 2px;\n }\n }\n}\n";var xk=[sC,cC,lC,dC],EIe=o((e,r)=>{Fc.instance!=null&&aC.warn("Only a single map venue is supported at this time.");let t=new Fc([e.mapCenter.longitude,e.mapCenter.latitude],e,r);return Fc.instance=t,t},"createMapLibreOverlay"),Ek=3,Ik={debug:!1,pitch:45,bearing:0,antialiasing:{enabled:!0},shadingAndOutlines:!0,outdoorView:{layersHiddenByGeometry:["building","building-top"]},imagePlacementOptions:{mode:"default"},flipImagesToFaceCamera:!0,multiFloorView:{enabled:!1,floorGap:Ek}},da,ma,Hu,Fo,pa,Bc=class Bc{constructor(r,t,n){R(this,da);R(this,ma);R(this,Hu);R(this,Fo);R(this,pa);h(this,"on",o((r,t)=>{c(this,da).on(r,t)},"on"));h(this,"off",o((r,t)=>{c(this,da).off(r,t)},"off"));K(this,da,new Ae),K(this,pa,new Fp(r)),K(this,ma,t),K(this,Hu,n)}onAdd(r){var i,a,u;let t=c(this,pa).onAdd(r),n=Ce(N(N({},Ik),(i=c(this,Hu))!=null?i:{}),{outdoorView:N({token:c(this,ma).outdoorViewToken},(a=c(this,Hu))==null?void 0:a.outdoorView)});return K(this,Fo,new vk(c(this,pa).core)),((u=n.injectStyles)==null||u)&&uC(xk,{id:"mappedin__styles"}),c(this,Fo).addMap(c(this,ma),n).then(()=>{c(this,da).publish("loaded",{mapView:c(this,Fo),mapData:c(this,ma)})}),t}onRemove(){c(this,Fo)&&c(this,Fo).clear(),Bc.instance=null,c(this,pa).onRemove()}};da=new WeakMap,ma=new WeakMap,Hu=new WeakMap,Fo=new WeakMap,pa=new WeakMap,o(Bc,"MappedinMapLibreOverlay"),h(Bc,"instance");var Fc=Bc;export{Ik as DEFAULT_MAP_OPTIONS,Ek as FLOOR_GAP,Fc as MappedinMapLibreOverlay,EIe as createMapLibreOverlay};