@mappedin/mappedin-js 6.0.1-beta.52 → 6.0.1-beta.53
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/{GLTFExporter-QN63B2QE.js → GLTFExporter-YFXXQH2L.js} +2 -2
- package/lib/esm/{GLTFLoader-7E66XH6W.js → GLTFLoader-LZNQSDLP.js} +2 -2
- package/lib/esm/{browser-UPE3UIJH.js → browser-L6WJGOEX.js} +2 -2
- package/lib/esm/{chunk-RMM4JL5D.js → chunk-BNEW6WES.js} +2 -2
- package/lib/esm/{chunk-EDIABNX3.js → chunk-EMVX4D2H.js} +2 -2
- package/lib/esm/{chunk-A2N3FISM.js → chunk-KKLQ3TRA.js} +3 -3
- package/lib/esm/{chunk-A2N3FISM.js.map → chunk-KKLQ3TRA.js.map} +3 -3
- package/lib/esm/{chunk-F3D2AS2N.js → chunk-LWBDZWW4.js} +2 -2
- package/lib/esm/chunk-ROCNZJLL.js +2 -0
- package/lib/esm/chunk-T5QQA4HH.js +2 -0
- package/lib/esm/{chunk-X26M5SQZ.js.map → chunk-T5QQA4HH.js.map} +1 -1
- package/lib/esm/chunk-W57RTQ3G.js +2214 -0
- package/lib/esm/{chunk-CUKGTP3B.js.map → chunk-W57RTQ3G.js.map} +4 -4
- package/lib/esm/{chunk-UQJ6CFWP.js → chunk-Y5QWL6TS.js} +2 -2
- package/lib/esm/{dist-33QC5I55.js → dist-HJXMUEN5.js} +2 -2
- package/lib/esm/index.d.ts +614 -480
- package/lib/esm/index.js +1 -1
- package/lib/esm/{inspector-2YAWFES6.js → inspector-FXVGOLBH.js} +2 -2
- package/lib/esm/{internal-GHV4UNDA.js → internal-7ECOLP5R.js} +2 -2
- package/lib/esm/{outdoor-context-v4-5AXRLXXA.js → outdoor-context-v4-IZYE32JG.js} +2 -2
- package/lib/esm/{roboto-regular-25PMWR2T.js → roboto-regular-R5KXKW73.js} +2 -2
- package/lib/esm/{text3d-3IUOJSOH.js → text3d-2TVGBQ3N.js} +18 -18
- package/lib/esm/{text3d-3IUOJSOH.js.map → text3d-2TVGBQ3N.js.map} +3 -3
- package/lib/index-rn.js +194 -194
- package/package.json +2 -2
- package/lib/esm/chunk-AHC6OWNT.js +0 -2
- package/lib/esm/chunk-CUKGTP3B.js +0 -2214
- package/lib/esm/chunk-X26M5SQZ.js +0 -2
- /package/lib/esm/{GLTFExporter-QN63B2QE.js.map → GLTFExporter-YFXXQH2L.js.map} +0 -0
- /package/lib/esm/{GLTFLoader-7E66XH6W.js.map → GLTFLoader-LZNQSDLP.js.map} +0 -0
- /package/lib/esm/{browser-UPE3UIJH.js.map → browser-L6WJGOEX.js.map} +0 -0
- /package/lib/esm/{chunk-RMM4JL5D.js.map → chunk-BNEW6WES.js.map} +0 -0
- /package/lib/esm/{chunk-EDIABNX3.js.map → chunk-EMVX4D2H.js.map} +0 -0
- /package/lib/esm/{chunk-F3D2AS2N.js.map → chunk-LWBDZWW4.js.map} +0 -0
- /package/lib/esm/{chunk-AHC6OWNT.js.map → chunk-ROCNZJLL.js.map} +0 -0
- /package/lib/esm/{chunk-UQJ6CFWP.js.map → chunk-Y5QWL6TS.js.map} +0 -0
- /package/lib/esm/{dist-33QC5I55.js.map → dist-HJXMUEN5.js.map} +0 -0
- /package/lib/esm/{inspector-2YAWFES6.js.map → inspector-FXVGOLBH.js.map} +0 -0
- /package/lib/esm/{internal-GHV4UNDA.js.map → internal-7ECOLP5R.js.map} +0 -0
- /package/lib/esm/{outdoor-context-v4-5AXRLXXA.js.map → outdoor-context-v4-IZYE32JG.js.map} +0 -0
- /package/lib/esm/{roboto-regular-25PMWR2T.js.map → roboto-regular-R5KXKW73.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Z as x,_ as y,u as A,v as w,w as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{Z as x,_ as y,u as A,v as w,w as g}from"./chunk-LWBDZWW4.js";import{a as b}from"./chunk-T5QQA4HH.js";b();function M(o,l=!1){let r=o[0].index!==null,f=new Set(Object.keys(o[0].attributes)),i=new Set(Object.keys(o[0].morphAttributes)),c={},e={},h=o[0].morphTargetsRelative,u=new y,d=0;for(let t=0;t<o.length;++t){let s=o[t],a=0;if(r!==(s.index!==null))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them."),null;for(let n in s.attributes){if(!f.has(n))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+'. All geometries must have compatible attributes; make sure "'+n+'" attribute exists among all geometries, or in none of them.'),null;c[n]===void 0&&(c[n]=[]),c[n].push(s.attributes[n]),a++}if(a!==f.size)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". Make sure all geometries have the same number of attributes."),null;if(h!==s.morphTargetsRelative)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". .morphTargetsRelative must be consistent throughout all geometries."),null;for(let n in s.morphAttributes){if(!i.has(n))return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". .morphAttributes must be consistent throughout all geometries."),null;e[n]===void 0&&(e[n]=[]),e[n].push(s.morphAttributes[n])}if(l){let n;if(r)n=s.index.count;else if(s.attributes.position!==void 0)n=s.attributes.position.count;else return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed with geometry at index "+t+". The geometry must have either an index or a position attribute"),null;u.addGroup(d,n,t),d+=n}}if(r){let t=0,s=[];for(let a=0;a<o.length;++a){let n=o[a].index;for(let m=0;m<n.count;++m)s.push(n.getX(m)+t);t+=o[a].attributes.position.count}u.setIndex(s)}for(let t in c){let s=B(c[t]);if(!s)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" attribute."),null;u.setAttribute(t,s)}for(let t in e){let s=e[t][0].length;if(s===0)break;u.morphAttributes=u.morphAttributes||{},u.morphAttributes[t]=[];for(let a=0;a<s;++a){let n=[];for(let p=0;p<e[t].length;++p)n.push(e[t][p][a]);let m=B(n);if(!m)return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the "+t+" morphAttribute."),null;u.morphAttributes[t].push(m)}}return u}function B(o){let l,r,f,i=-1,c=0;for(let d=0;d<o.length;++d){let t=o[d];if(l===void 0&&(l=t.array.constructor),l!==t.array.constructor)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes."),null;if(r===void 0&&(r=t.itemSize),r!==t.itemSize)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.itemSize must be consistent across matching attributes."),null;if(f===void 0&&(f=t.normalized),f!==t.normalized)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes."),null;if(i===-1&&(i=t.gpuType),i!==t.gpuType)return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."),null;c+=t.count*r}let e=new l(c),h=new x(e,r,f),u=0;for(let d=0;d<o.length;++d){let t=o[d];if(t.isInterleavedBufferAttribute){let s=u/r;for(let a=0,n=t.count;a<n;a++)for(let m=0;m<r;m++){let p=t.getComponent(a,m);h.setComponent(a+s,m,p)}}else e.set(t.array,u);u+=t.count*r}return i!==void 0&&(h.gpuType=i),h}function R(o,l){if(l===A)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),o;if(l===g||l===w){let r=o.getIndex();if(r===null){let e=[],h=o.getAttribute("position");if(h!==void 0){for(let u=0;u<h.count;u++)e.push(u);o.setIndex(e),r=o.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),o}let f=r.count-2,i=[];if(l===g)for(let e=1;e<=f;e++)i.push(r.getX(0)),i.push(r.getX(e)),i.push(r.getX(e+1));else for(let e=0;e<f;e++)e%2===0?(i.push(r.getX(e)),i.push(r.getX(e+1)),i.push(r.getX(e+2))):(i.push(r.getX(e+2)),i.push(r.getX(e+1)),i.push(r.getX(e)));i.length/3!==f&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");let c=o.clone();return c.setIndex(i),c.clearGroups(),c}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",l),o}export{M as a,R as b};
|
|
2
|
+
//# sourceMappingURL=chunk-Y5QWL6TS.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as X$}from"./chunk-RMM4JL5D.js";import{a}from"./chunk-X26M5SQZ.js";import{c as M,d as po,e as ou,f as z,g as ke,h as lo,i as Zi}from"./chunk-AHC6OWNT.js";var ts=M(Pe=>{"use strict";a();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Qi=class{};Pe._CodeOrName=Qi;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mo=class extends Qi{constructor(t){if(super(),!Pe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=mo;var dr=class extends Qi{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof mo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Pe._Code=dr;Pe.nil=new dr("");function ym(e,...t){let r=[e[0]],n=0;for(;n<t.length;)au(r,t[n]),r.push(e[++n]);return new dr(r)}Pe._=ym;var su=new dr("+");function hm(e,...t){let r=[es(e[0])],n=0;for(;n<t.length;)r.push(su),au(r,t[n]),r.push(su,es(e[++n]));return lw(r),new dr(r)}Pe.str=hm;function au(e,t){t instanceof dr?e.push(...t._items):t instanceof mo?e.push(t):e.push(yw(t))}Pe.addCodeArg=au;function lw(e){let t=1;for(;t<e.length-1;){if(e[t]===su){let r=dw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function dw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof mo||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof mo))return`"${e}${t.slice(1)}`}function mw(e,t){return t.emptyStr()?e:e.emptyStr()?t:hm`${e}${t}`}Pe.strConcat=mw;function yw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:es(Array.isArray(e)?e.join(","):e)}function hw(e){return new dr(es(e))}Pe.stringify=hw;function es(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Pe.safeStringify=es;function gw(e){return typeof e=="string"&&Pe.IDENTIFIER.test(e)?new dr(`.${e}`):ym`[${e}]`}Pe.getProperty=gw;function Iw(e){if(typeof e=="string"&&Pe.IDENTIFIER.test(e))return new dr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Pe.getEsmExportName=Iw;function xw(e){return new dr(e.toString())}Pe.regexpCode=xw});var uu=M(Jt=>{"use strict";a();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ValueScope=Jt.ValueScopeName=Jt.Scope=Jt.varKinds=Jt.UsedValueState=void 0;var Zt=ts(),cu=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},La;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(La||(Jt.UsedValueState=La={}));Jt.varKinds={const:new Zt.Name("const"),let:new Zt.Name("let"),var:new Zt.Name("var")};var Ua=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Zt.Name?t:this.name(t)}name(t){return new Zt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Jt.Scope=Ua;var Da=class extends Zt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Zt._)`.${new Zt.Name(r)}[${n}]`}};Jt.ValueScopeName=Da;var bw=(0,Zt._)`\n`,fu=class extends Ua{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?bw:Zt.nil}}get(){return this._scope}name(t){return new Da(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[i];if(c){let p=c.get(s);if(p)return p}else c=this._values[i]=new Map;c.set(s,o);let u=this._scope[i]||(this._scope[i]=[]),l=u.length;return u[l]=r.ref,o.setValue(r,{property:i,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Zt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Zt.nil;for(let s in t){let c=t[s];if(!c)continue;let u=n[s]=n[s]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,La.Started);let p=r(l);if(p){let m=this.opts.es5?Jt.varKinds.var:Jt.varKinds.const;i=(0,Zt._)`${i}${m} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,Zt._)`${i}${p}${this.opts._n}`;else throw new cu(l);u.set(l,La.Completed)})}return i}};Jt.ValueScope=fu});var te=M(ne=>{"use strict";a();Object.defineProperty(ne,"__esModule",{value:!0});ne.or=ne.and=ne.not=ne.CodeGen=ne.operators=ne.varKinds=ne.ValueScopeName=ne.ValueScope=ne.Scope=ne.Name=ne.regexpCode=ne.stringify=ne.getProperty=ne.nil=ne.strConcat=ne.str=ne._=void 0;var ce=ts(),jr=uu(),Bn=ts();Object.defineProperty(ne,"_",{enumerable:!0,get:function(){return Bn._}});Object.defineProperty(ne,"str",{enumerable:!0,get:function(){return Bn.str}});Object.defineProperty(ne,"strConcat",{enumerable:!0,get:function(){return Bn.strConcat}});Object.defineProperty(ne,"nil",{enumerable:!0,get:function(){return Bn.nil}});Object.defineProperty(ne,"getProperty",{enumerable:!0,get:function(){return Bn.getProperty}});Object.defineProperty(ne,"stringify",{enumerable:!0,get:function(){return Bn.stringify}});Object.defineProperty(ne,"regexpCode",{enumerable:!0,get:function(){return Bn.regexpCode}});Object.defineProperty(ne,"Name",{enumerable:!0,get:function(){return Bn.Name}});var Ga=uu();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Ga.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Ga.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Ga.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Ga.varKinds}});ne.operators={GT:new ce._Code(">"),GTE:new ce._Code(">="),LT:new ce._Code("<"),LTE:new ce._Code("<="),EQ:new ce._Code("==="),NEQ:new ce._Code("!=="),NOT:new ce._Code("!"),OR:new ce._Code("||"),AND:new ce._Code("&&"),ADD:new ce._Code("+")};var bn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},pu=class extends bn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?jr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Wo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ce._CodeOrName?this.rhs.names:{}}},qa=class extends bn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ce.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Wo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ce.Name?{}:{...this.lhs.names};return za(t,this.rhs)}},lu=class extends qa{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},du=class extends bn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},mu=class extends bn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},yu=class extends bn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},hu=class extends bn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Wo(this.code,t,r),this}get names(){return this.code instanceof ce._CodeOrName?this.code.names:{}}},rs=class extends bn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||($w(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>go(t,r.names),{})}},$n=class extends rs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},gu=class extends rs{},Vo=class extends $n{};Vo.kind="else";var yo=class e extends $n{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Vo(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(gm(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Wo(this.condition,t,r),this}get names(){let t=super.names;return za(t,this.condition),this.else&&go(t,this.else.names),t}};yo.kind="if";var ho=class extends $n{};ho.kind="for";var Iu=class extends ho{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Wo(this.iteration,t,r),this}get names(){return go(super.names,this.iteration.names)}},xu=class extends ho{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?jr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=za(super.names,this.from);return za(t,this.to)}},Ka=class extends ho{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Wo(this.iterable,t,r),this}get names(){return go(super.names,this.iterable.names)}},ns=class extends $n{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};ns.kind="func";var os=class extends rs{render(t){return"return "+super.render(t)}};os.kind="return";var bu=class extends $n{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&go(t,this.catch.names),this.finally&&go(t,this.finally.names),t}},is=class extends $n{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};is.kind="catch";var ss=class extends $n{render(t){return"finally"+super.render(t)}};ss.kind="finally";var $u=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
1
|
+
import{a as X$}from"./chunk-BNEW6WES.js";import{a}from"./chunk-T5QQA4HH.js";import{b as M,c as po,d as ou,e as z,f as ke,g as lo,h as Zi}from"./chunk-ROCNZJLL.js";var ts=M(Pe=>{"use strict";a();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.regexpCode=Pe.getEsmExportName=Pe.getProperty=Pe.safeStringify=Pe.stringify=Pe.strConcat=Pe.addCodeArg=Pe.str=Pe._=Pe.nil=Pe._Code=Pe.Name=Pe.IDENTIFIER=Pe._CodeOrName=void 0;var Qi=class{};Pe._CodeOrName=Qi;Pe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mo=class extends Qi{constructor(t){if(super(),!Pe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Pe.Name=mo;var dr=class extends Qi{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof mo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Pe._Code=dr;Pe.nil=new dr("");function ym(e,...t){let r=[e[0]],n=0;for(;n<t.length;)au(r,t[n]),r.push(e[++n]);return new dr(r)}Pe._=ym;var su=new dr("+");function hm(e,...t){let r=[es(e[0])],n=0;for(;n<t.length;)r.push(su),au(r,t[n]),r.push(su,es(e[++n]));return lw(r),new dr(r)}Pe.str=hm;function au(e,t){t instanceof dr?e.push(...t._items):t instanceof mo?e.push(t):e.push(yw(t))}Pe.addCodeArg=au;function lw(e){let t=1;for(;t<e.length-1;){if(e[t]===su){let r=dw(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function dw(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof mo||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof mo))return`"${e}${t.slice(1)}`}function mw(e,t){return t.emptyStr()?e:e.emptyStr()?t:hm`${e}${t}`}Pe.strConcat=mw;function yw(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:es(Array.isArray(e)?e.join(","):e)}function hw(e){return new dr(es(e))}Pe.stringify=hw;function es(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Pe.safeStringify=es;function gw(e){return typeof e=="string"&&Pe.IDENTIFIER.test(e)?new dr(`.${e}`):ym`[${e}]`}Pe.getProperty=gw;function Iw(e){if(typeof e=="string"&&Pe.IDENTIFIER.test(e))return new dr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Pe.getEsmExportName=Iw;function xw(e){return new dr(e.toString())}Pe.regexpCode=xw});var uu=M(Jt=>{"use strict";a();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.ValueScope=Jt.ValueScopeName=Jt.Scope=Jt.varKinds=Jt.UsedValueState=void 0;var Zt=ts(),cu=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},La;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(La||(Jt.UsedValueState=La={}));Jt.varKinds={const:new Zt.Name("const"),let:new Zt.Name("let"),var:new Zt.Name("var")};var Ua=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Zt.Name?t:this.name(t)}name(t){return new Zt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Jt.Scope=Ua;var Da=class extends Zt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Zt._)`.${new Zt.Name(r)}[${n}]`}};Jt.ValueScopeName=Da;var bw=(0,Zt._)`\n`,fu=class extends Ua{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?bw:Zt.nil}}get(){return this._scope}name(t){return new Da(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,c=this._values[i];if(c){let p=c.get(s);if(p)return p}else c=this._values[i]=new Map;c.set(s,o);let u=this._scope[i]||(this._scope[i]=[]),l=u.length;return u[l]=r.ref,o.setValue(r,{property:i,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Zt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Zt.nil;for(let s in t){let c=t[s];if(!c)continue;let u=n[s]=n[s]||new Map;c.forEach(l=>{if(u.has(l))return;u.set(l,La.Started);let p=r(l);if(p){let m=this.opts.es5?Jt.varKinds.var:Jt.varKinds.const;i=(0,Zt._)`${i}${m} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,Zt._)`${i}${p}${this.opts._n}`;else throw new cu(l);u.set(l,La.Completed)})}return i}};Jt.ValueScope=fu});var te=M(ne=>{"use strict";a();Object.defineProperty(ne,"__esModule",{value:!0});ne.or=ne.and=ne.not=ne.CodeGen=ne.operators=ne.varKinds=ne.ValueScopeName=ne.ValueScope=ne.Scope=ne.Name=ne.regexpCode=ne.stringify=ne.getProperty=ne.nil=ne.strConcat=ne.str=ne._=void 0;var ce=ts(),jr=uu(),Bn=ts();Object.defineProperty(ne,"_",{enumerable:!0,get:function(){return Bn._}});Object.defineProperty(ne,"str",{enumerable:!0,get:function(){return Bn.str}});Object.defineProperty(ne,"strConcat",{enumerable:!0,get:function(){return Bn.strConcat}});Object.defineProperty(ne,"nil",{enumerable:!0,get:function(){return Bn.nil}});Object.defineProperty(ne,"getProperty",{enumerable:!0,get:function(){return Bn.getProperty}});Object.defineProperty(ne,"stringify",{enumerable:!0,get:function(){return Bn.stringify}});Object.defineProperty(ne,"regexpCode",{enumerable:!0,get:function(){return Bn.regexpCode}});Object.defineProperty(ne,"Name",{enumerable:!0,get:function(){return Bn.Name}});var Ga=uu();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Ga.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Ga.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Ga.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Ga.varKinds}});ne.operators={GT:new ce._Code(">"),GTE:new ce._Code(">="),LT:new ce._Code("<"),LTE:new ce._Code("<="),EQ:new ce._Code("==="),NEQ:new ce._Code("!=="),NOT:new ce._Code("!"),OR:new ce._Code("||"),AND:new ce._Code("&&"),ADD:new ce._Code("+")};var bn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},pu=class extends bn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?jr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Wo(this.rhs,t,r)),this}get names(){return this.rhs instanceof ce._CodeOrName?this.rhs.names:{}}},qa=class extends bn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ce.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Wo(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ce.Name?{}:{...this.lhs.names};return za(t,this.rhs)}},lu=class extends qa{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},du=class extends bn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},mu=class extends bn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},yu=class extends bn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},hu=class extends bn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Wo(this.code,t,r),this}get names(){return this.code instanceof ce._CodeOrName?this.code.names:{}}},rs=class extends bn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||($w(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>go(t,r.names),{})}},$n=class extends rs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},gu=class extends rs{},Vo=class extends $n{};Vo.kind="else";var yo=class e extends $n{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Vo(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(gm(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Wo(this.condition,t,r),this}get names(){let t=super.names;return za(t,this.condition),this.else&&go(t,this.else.names),t}};yo.kind="if";var ho=class extends $n{};ho.kind="for";var Iu=class extends ho{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Wo(this.iteration,t,r),this}get names(){return go(super.names,this.iteration.names)}},xu=class extends ho{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?jr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=za(super.names,this.from);return za(t,this.to)}},Ka=class extends ho{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Wo(this.iterable,t,r),this}get names(){return go(super.names,this.iterable.names)}},ns=class extends $n{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};ns.kind="func";var os=class extends rs{render(t){return"return "+super.render(t)}};os.kind="return";var bu=class extends $n{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&go(t,this.catch.names),this.finally&&go(t,this.finally.names),t}},is=class extends $n{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};is.kind="catch";var ss=class extends $n{render(t){return"finally"+super.render(t)}};ss.kind="finally";var $u=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
2
2
|
`:""},this._extScope=t,this._scope=new jr.Scope({parent:t}),this._nodes=[new gu]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new pu(t,i,n)),i}const(t,r,n){return this._def(jr.varKinds.const,t,r,n)}let(t,r,n){return this._def(jr.varKinds.let,t,r,n)}var(t,r,n){return this._def(jr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new qa(t,r,n))}add(t,r){return this._leafNode(new lu(t,ne.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ce.nil&&this._leafNode(new hu(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,ce.addCodeArg)(r,o));return r.push("}"),new ce._Code(r)}if(t,r,n){if(this._blockNode(new yo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new yo(t))}else(){return this._elseNode(new Vo)}endIf(){return this._endBlockNode(yo,Vo)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Iu(t),r)}forRange(t,r,n,o,i=this.opts.es5?jr.varKinds.var:jr.varKinds.let){let s=this._scope.toName(t);return this._for(new xu(i,s,r,n),()=>o(s))}forOf(t,r,n,o=jr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ce.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ce._)`${s}.length`,c=>{this.var(i,(0,ce._)`${s}[${c}]`),n(i)})}return this._for(new Ka("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?jr.varKinds.var:jr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ce._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Ka("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(ho)}label(t){return this._leafNode(new du(t))}break(t){return this._leafNode(new mu(t))}return(t){let r=new os;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(os)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new bu;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new is(i),r(i)}return n&&(this._currNode=o.finally=new ss,this.code(n)),this._endBlockNode(is,ss)}throw(t){return this._leafNode(new yu(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ce.nil,n,o){return this._blockNode(new ns(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(ns)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof yo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ne.CodeGen=$u;function go(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function za(e,t){return t instanceof ce._CodeOrName?go(e,t.names):e}function Wo(e,t,r){if(e instanceof ce.Name)return n(e);if(!o(e))return e;return new ce._Code(e._items.reduce((i,s)=>(s instanceof ce.Name&&(s=n(s)),s instanceof ce._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof ce._Code&&i._items.some(s=>s instanceof ce.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function $w(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function gm(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ce._)`!${wu(e)}`}ne.not=gm;var ww=Im(ne.operators.AND);function Pw(...e){return e.reduce(ww)}ne.and=Pw;var Ow=Im(ne.operators.OR);function Fw(...e){return e.reduce(Ow)}ne.or=Fw;function Im(e){return(t,r)=>t===ce.nil?r:r===ce.nil?t:(0,ce._)`${wu(t)} ${e} ${wu(r)}`}function wu(e){return e instanceof ce.Name?e:(0,ce._)`(${e})`}});var Oe=M(ie=>{"use strict";a();Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Le=te(),Sw=ts();function Ew(e){let t={};for(let r of e)t[r]=!0;return t}ie.toHash=Ew;function Tw(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:($m(e,t),!wm(t,e.self.RULES.all))}ie.alwaysValidSchema=Tw;function $m(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||Fm(e,`unknown keyword: "${i}"`)}ie.checkUnknownRules=$m;function wm(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ie.schemaHasRules=wm;function vw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ie.schemaHasRulesButRef=vw;function _w({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Le._)`${r}`}return(0,Le._)`${e}${t}${(0,Le.getProperty)(n)}`}ie.schemaRefOrVal=_w;function Aw(e){return Pm(decodeURIComponent(e))}ie.unescapeFragment=Aw;function jw(e){return encodeURIComponent(Ou(e))}ie.escapeFragment=jw;function Ou(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Ou;function Pm(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=Pm;function kw(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ie.eachItem=kw;function xm({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,c)=>{let u=s===void 0?i:s instanceof Le.Name?(i instanceof Le.Name?e(o,i,s):t(o,i,s),s):i instanceof Le.Name?(t(o,s,i),i):r(i,s);return c===Le.Name&&!(u instanceof Le.Name)?n(o,u):u}}ie.mergeEvaluated={props:xm({mergeNames:(e,t,r)=>e.if((0,Le._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Le._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Le._)`${r} || {}`).code((0,Le._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Le._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Le._)`${r} || {}`),Fu(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Om}),items:xm({mergeNames:(e,t,r)=>e.if((0,Le._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Le._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Le._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Le._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Om(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Le._)`{}`);return t!==void 0&&Fu(e,r,t),r}ie.evaluatedPropsToName=Om;function Fu(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Le._)`${t}${(0,Le.getProperty)(n)}`,!0))}ie.setEvaluated=Fu;var bm={};function Nw(e,t){return e.scopeValue("func",{ref:t,code:bm[t.code]||(bm[t.code]=new Sw._Code(t.code))})}ie.useFunc=Nw;var Pu;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Pu||(ie.Type=Pu={}));function Rw(e,t,r){if(e instanceof Le.Name){let n=t===Pu.Num;return r?n?(0,Le._)`"[" + ${e} + "]"`:(0,Le._)`"['" + ${e} + "']"`:n?(0,Le._)`"/" + ${e}`:(0,Le._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Le.getProperty)(e).toString():"/"+Ou(e)}ie.getErrorPath=Rw;function Fm(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ie.checkStrictMode=Fm});var wn=M(Su=>{"use strict";a();Object.defineProperty(Su,"__esModule",{value:!0});var jt=te(),Cw={data:new jt.Name("data"),valCxt:new jt.Name("valCxt"),instancePath:new jt.Name("instancePath"),parentData:new jt.Name("parentData"),parentDataProperty:new jt.Name("parentDataProperty"),rootData:new jt.Name("rootData"),dynamicAnchors:new jt.Name("dynamicAnchors"),vErrors:new jt.Name("vErrors"),errors:new jt.Name("errors"),this:new jt.Name("this"),self:new jt.Name("self"),scope:new jt.Name("scope"),json:new jt.Name("json"),jsonPos:new jt.Name("jsonPos"),jsonLen:new jt.Name("jsonLen"),jsonPart:new jt.Name("jsonPart")};Su.default=Cw});var as=M(kt=>{"use strict";a();Object.defineProperty(kt,"__esModule",{value:!0});kt.extendErrors=kt.resetErrorsCount=kt.reportExtraError=kt.reportError=kt.keyword$DataError=kt.keywordError=void 0;var me=te(),Ba=Oe(),Kt=wn();kt.keywordError={message:({keyword:e})=>(0,me.str)`must pass "${e}" keyword validation`};kt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,me.str)`"${e}" keyword must be ${t} ($data)`:(0,me.str)`"${e}" keyword is invalid ($data)`};function Mw(e,t=kt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:c}=o,u=Tm(e,t,r);n??(s||c)?Sm(i,u):Em(o,(0,me._)`[${u}]`)}kt.reportError=Mw;function Lw(e,t=kt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,c=Tm(e,t,r);Sm(o,c),i||s||Em(n,Kt.default.vErrors)}kt.reportExtraError=Lw;function Uw(e,t){e.assign(Kt.default.errors,t),e.if((0,me._)`${Kt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,me._)`${Kt.default.vErrors}.length`,t),()=>e.assign(Kt.default.vErrors,null)))}kt.resetErrorsCount=Uw;function Dw({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,Kt.default.errors,c=>{e.const(s,(0,me._)`${Kt.default.vErrors}[${c}]`),e.if((0,me._)`${s}.instancePath === undefined`,()=>e.assign((0,me._)`${s}.instancePath`,(0,me.strConcat)(Kt.default.instancePath,i.errorPath))),e.assign((0,me._)`${s}.schemaPath`,(0,me.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,me._)`${s}.schema`,r),e.assign((0,me._)`${s}.data`,n))})}kt.extendErrors=Dw;function Sm(e,t){let r=e.const("err",t);e.if((0,me._)`${Kt.default.vErrors} === null`,()=>e.assign(Kt.default.vErrors,(0,me._)`[${r}]`),(0,me._)`${Kt.default.vErrors}.push(${r})`),e.code((0,me._)`${Kt.default.errors}++`)}function Em(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,me._)`new ${e.ValidationError}(${t})`):(r.assign((0,me._)`${n}.errors`,t),r.return(!1))}var Io={keyword:new me.Name("keyword"),schemaPath:new me.Name("schemaPath"),params:new me.Name("params"),propertyName:new me.Name("propertyName"),message:new me.Name("message"),schema:new me.Name("schema"),parentSchema:new me.Name("parentSchema")};function Tm(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,me._)`{}`:qw(e,t,r)}function qw(e,t,r={}){let{gen:n,it:o}=e,i=[Kw(o,r),zw(e,r)];return Gw(e,t,i),n.object(...i)}function Kw({errorPath:e},{instancePath:t}){let r=t?(0,me.str)`${e}${(0,Ba.getErrorPath)(t,Ba.Type.Str)}`:e;return[Kt.default.instancePath,(0,me.strConcat)(Kt.default.instancePath,r)]}function zw({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,me.str)`${t}/${e}`;return r&&(o=(0,me.str)`${o}${(0,Ba.getErrorPath)(r,Ba.Type.Str)}`),[Io.schemaPath,o]}function Gw(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:c}=e,{opts:u,propertyName:l,topSchemaRef:p,schemaPath:m}=c;n.push([Io.keyword,o],[Io.params,typeof t=="function"?t(e):t||(0,me._)`{}`]),u.messages&&n.push([Io.message,typeof r=="function"?r(e):r]),u.verbose&&n.push([Io.schema,s],[Io.parentSchema,(0,me._)`${p}${m}`],[Kt.default.data,i]),l&&n.push([Io.propertyName,l])}});var _m=M(Ho=>{"use strict";a();Object.defineProperty(Ho,"__esModule",{value:!0});Ho.boolOrEmptySchema=Ho.topBoolOrEmptySchema=void 0;var Bw=as(),Vw=te(),Ww=wn(),Hw={message:"boolean schema is false"};function Zw(e){let{gen:t,schema:r,validateName:n}=e;r===!1?vm(e,!1):typeof r=="object"&&r.$async===!0?t.return(Ww.default.data):(t.assign((0,Vw._)`${n}.errors`,null),t.return(!0))}Ho.topBoolOrEmptySchema=Zw;function Jw(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),vm(e)):r.var(t,!0)}Ho.boolOrEmptySchema=Jw;function vm(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Bw.reportError)(o,Hw,void 0,t)}});var Eu=M(Zo=>{"use strict";a();Object.defineProperty(Zo,"__esModule",{value:!0});Zo.getRules=Zo.isJSONType=void 0;var Yw=["string","number","integer","boolean","null","object","array"],Xw=new Set(Yw);function Qw(e){return typeof e=="string"&&Xw.has(e)}Zo.isJSONType=Qw;function eP(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Zo.getRules=eP});var Tu=M(Vn=>{"use strict";a();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.shouldUseRule=Vn.shouldUseGroup=Vn.schemaHasRulesForType=void 0;function tP({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Am(e,n)}Vn.schemaHasRulesForType=tP;function Am(e,t){return t.rules.some(r=>jm(e,r))}Vn.shouldUseGroup=Am;function jm(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Vn.shouldUseRule=jm});var cs=M(Nt=>{"use strict";a();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.reportTypeError=Nt.checkDataTypes=Nt.checkDataType=Nt.coerceAndCheckDataType=Nt.getJSONTypes=Nt.getSchemaTypes=Nt.DataType=void 0;var rP=Eu(),nP=Tu(),oP=as(),ee=te(),km=Oe(),Jo;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Jo||(Nt.DataType=Jo={}));function iP(e){let t=Nm(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}Nt.getSchemaTypes=iP;function Nm(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(rP.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Nt.getJSONTypes=Nm;function sP(e,t){let{gen:r,data:n,opts:o}=e,i=aP(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,nP.schemaHasRulesForType)(e,t[0]));if(s){let c=_u(t,n,o.strictNumbers,Jo.Wrong);r.if(c,()=>{i.length?cP(e,t,i):Au(e)})}return s}Nt.coerceAndCheckDataType=sP;var Rm=new Set(["string","number","integer","boolean","null"]);function aP(e,t){return t?e.filter(r=>Rm.has(r)||t==="array"&&r==="array"):[]}function cP(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,ee._)`typeof ${o}`),c=n.let("coerced",(0,ee._)`undefined`);i.coerceTypes==="array"&&n.if((0,ee._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,ee._)`${o}[0]`).assign(s,(0,ee._)`typeof ${o}`).if(_u(t,o,i.strictNumbers),()=>n.assign(c,o))),n.if((0,ee._)`${c} !== undefined`);for(let l of r)(Rm.has(l)||l==="array"&&i.coerceTypes==="array")&&u(l);n.else(),Au(e),n.endIf(),n.if((0,ee._)`${c} !== undefined`,()=>{n.assign(o,c),fP(e,c)});function u(l){switch(l){case"string":n.elseIf((0,ee._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,ee._)`"" + ${o}`).elseIf((0,ee._)`${o} === null`).assign(c,(0,ee._)`""`);return;case"number":n.elseIf((0,ee._)`${s} == "boolean" || ${o} === null
|
|
3
3
|
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(c,(0,ee._)`+${o}`);return;case"integer":n.elseIf((0,ee._)`${s} === "boolean" || ${o} === null
|
|
4
4
|
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(c,(0,ee._)`+${o}`);return;case"boolean":n.elseIf((0,ee._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(c,!1).elseIf((0,ee._)`${o} === "true" || ${o} === 1`).assign(c,!0);return;case"null":n.elseIf((0,ee._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(c,null);return;case"array":n.elseIf((0,ee._)`${s} === "string" || ${s} === "number"
|
|
@@ -59,4 +59,4 @@ Behavioral notes:
|
|
|
59
59
|
return ${bt(g.$id)}(value)
|
|
60
60
|
}`:`return ${W}`;return[...Ht,...Ge,xn].join(`
|
|
61
61
|
`)}function In(...g){let C={language:"javascript"},[I,W,L]=g.length===2&&Y(g[1])?[g[0],g[1],C]:g.length===2&&!Y(g[1])?[g[0],[],g[1]]:g.length===3?[g[0],g[1],g[2]]:g.length===1?[g[0],[],C]:[null,[],C];if(de.language=L.language,de.variables.clear(),de.functions.clear(),de.instances.clear(),!ue(I))throw new wf(I);for(let K of W)if(!ue(K))throw new wf(K);return lr(I,W,L)}e.Code=In;function Gn(g,C=[]){let I=In(g,C,{language:"javascript"}),W=globalThis.Function("kind","format","hash",I),L=new Map(de.instances);function K(Ar,Hr,sa){if(!ht.Has(Ar)||!L.has(Hr))return!1;let J$=ht.Get(Ar),Y$=L.get(Hr);return J$(Y$,sa)}function Ge(Ar,Hr){return Qt.Has(Ar)?Qt.Get(Ar)(Hr):!1}function Ht(Ar){return co(Ar)}let xn=W(K,Ge,Ht);return new ad(g,C,xn,I)}e.Compile=Gn})(Pf||(Pf={}));a();a();var ub={},TC=function(e,t,r,n,o){var i=new Worker(ub[t]||(ub[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 i.onmessage=function(s){var c=s.data,u=c.$e$;if(u){var l=new Error(u[0]);l.code=u[1],l.stack=u[2],o(l,null)}else o(null,c)},i.postMessage(r,n),i},Ke=Uint8Array,Wt=Uint16Array,ta=Int32Array,Ui=new Ke([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]),Di=new Ke([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]),Qs=new Ke([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mb=function(e,t){for(var r=new Wt(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var o=new ta(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return{b:r,r:o}},yb=mb(Ui,2),gd=yb.b,Tf=yb.r;gd[28]=258,Tf[258]=28;var hb=mb(Di,0),gb=hb.b,ld=hb.r,ea=new Wt(32768);for(Ee=0;Ee<32768;++Ee)qn=(Ee&43690)>>1|(Ee&21845)<<1,qn=(qn&52428)>>2|(qn&13107)<<2,qn=(qn&61680)>>4|(qn&3855)<<4,ea[Ee]=((qn&65280)>>8|(qn&255)<<8)>>1;var qn,Ee,vr=function(e,t,r){for(var n=e.length,o=0,i=new Wt(t);o<n;++o)e[o]&&++i[e[o]-1];var s=new Wt(t);for(o=1;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;var c;if(r){c=new Wt(1<<t);var u=15-t;for(o=0;o<n;++o)if(e[o])for(var l=o<<4|e[o],p=t-e[o],m=s[e[o]-1]++<<p,y=m|(1<<p)-1;m<=y;++m)c[ea[m]>>u]=l}else for(c=new Wt(n),o=0;o<n;++o)e[o]&&(c[o]=ea[s[e[o]-1]++]>>15-e[o]);return c},Kn=new Ke(288);for(Ee=0;Ee<144;++Ee)Kn[Ee]=8;var Ee;for(Ee=144;Ee<256;++Ee)Kn[Ee]=9;var Ee;for(Ee=256;Ee<280;++Ee)Kn[Ee]=7;var Ee;for(Ee=280;Ee<288;++Ee)Kn[Ee]=8;var Ee,Li=new Ke(32);for(Ee=0;Ee<32;++Ee)Li[Ee]=5;var Ee,Ib=vr(Kn,9,0),xb=vr(Kn,9,1),bb=vr(Li,5,0),$b=vr(Li,5,1),Ff=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Tr=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Sf=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},ra=function(e){return(e+7)/8|0},Uo=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Ke(e.subarray(t,r))},jf={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},wb=["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"],lt=function(e,t,r){var n=new Error(t||wb[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,lt),!r)throw n;return n},Pb=function(e,t,r,n){var o=e.length,i=n?n.length:0;if(!o||t.f&&!t.l)return r||new Ke(0);var s=!r,c=s||t.i!=2,u=t.i;s&&(r=new Ke(o*3));var l=function(I){var W=r.length;if(I>W){var L=new Ke(Math.max(W*2,I));L.set(r),r=L}},p=t.f||0,m=t.p||0,y=t.b||0,x=t.l,P=t.d,b=t.m,S=t.n,v=o*8;do{if(!x){p=Tr(e,m,1);var A=Tr(e,m+1,3);if(m+=3,A)if(A==1)x=xb,P=$b,b=9,S=5;else if(A==2){var R=Tr(e,m,31)+257,D=Tr(e,m+10,15)+4,k=R+Tr(e,m+5,31)+1;m+=14;for(var j=new Ke(k),re=new Ke(19),X=0;X<D;++X)re[Qs[X]]=Tr(e,m+X*3,7);m+=D*3;for(var V=Ff(re),vt=(1<<V)-1,Ye=vr(re,V,1),X=0;X<k;){var it=Ye[Tr(e,m,vt)];m+=it&15;var E=it>>4;if(E<16)j[X++]=E;else{var rt=0,Me=0;for(E==16?(Me=3+Tr(e,m,3),m+=2,rt=j[X-1]):E==17?(Me=3+Tr(e,m,7),m+=3):E==18&&(Me=11+Tr(e,m,127),m+=7);Me--;)j[X++]=rt}}var ct=j.subarray(0,R),de=j.subarray(R);b=Ff(ct),S=Ff(de),x=vr(ct,b,1),P=vr(de,S,1)}else lt(1);else{var E=ra(m)+4,O=e[E-4]|e[E-3]<<8,T=E+O;if(T>o){u&<(0);break}c&&l(y+O),r.set(e.subarray(E,T),y),t.b=y+=O,t.p=m=T*8,t.f=p;continue}if(m>v){u&<(0);break}}c&&l(y+131072);for(var xt=(1<<b)-1,bt=(1<<S)-1,_t=m;;_t=m){var rt=x[Sf(e,m)&xt],At=rt>>4;if(m+=rt&15,m>v){u&<(0);break}if(rt||lt(2),At<256)r[y++]=At;else if(At==256){_t=m,x=null;break}else{var yt=At-254;if(At>264){var X=At-257,ze=Ui[X];yt=Tr(e,m,(1<<ze)-1)+gd[X],m+=ze}var lr=P[Sf(e,m)&bt],In=lr>>4;lr||lt(3),m+=lr&15;var de=gb[In];if(In>3){var ze=Di[In];de+=Sf(e,m)&(1<<ze)-1,m+=ze}if(m>v){u&<(0);break}c&&l(y+131072);var Gn=y+yt;if(y<de){var g=i-de,C=Math.min(de,Gn);for(g+y<0&<(3);y<C;++y)r[y]=n[g+y]}for(;y<Gn;++y)r[y]=r[y-de]}}t.l=x,t.p=_t,t.b=y,t.f=p,x&&(p=1,t.m=b,t.d=P,t.n=S)}while(!p);return y!=r.length&&s?Uo(r,0,y):r.subarray(0,y)},yn=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Ci=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},Ef=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,i=r.slice();if(!o)return{t:xd,l:0};if(o==1){var s=new Ke(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(T,R){return T.f-R.f}),r.push({s:-1,f:25001});var c=r[0],u=r[1],l=0,p=1,m=2;for(r[0]={s:-1,f:c.f+u.f,l:c,r:u};p!=o-1;)c=r[r[l].f<r[m].f?l++:m++],u=r[l!=p&&r[l].f<r[m].f?l++:m++],r[p++]={s:-1,f:c.f+u.f,l:c,r:u};for(var y=i[0].s,n=1;n<o;++n)i[n].s>y&&(y=i[n].s);var x=new Wt(y+1),P=vf(r[p-1],x,0);if(P>t){var n=0,b=0,S=P-t,v=1<<S;for(i.sort(function(R,D){return x[D.s]-x[R.s]||R.f-D.f});n<o;++n){var A=i[n].s;if(x[A]>t)b+=v-(1<<P-x[A]),x[A]=t;else break}for(b>>=S;b>0;){var E=i[n].s;x[E]<t?b-=1<<t-x[E]++-1:++n}for(;n>=0&&b;--n){var O=i[n].s;x[O]==t&&(--x[O],++b)}P=t}return{t:new Ke(x),l:P}},vf=function(e,t,r){return e.s==-1?Math.max(vf(e.l,t,r+1),vf(e.r,t,r+1)):t[e.s]=r},dd=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Wt(++t),n=0,o=e[0],i=1,s=function(u){r[n++]=u},c=1;c<=t;++c)if(e[c]==o&&c!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(o),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(o);i=1,o=e[c]}return{c:r.subarray(0,n),n:t}},Mi=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},Id=function(e,t,r){var n=r.length,o=ra(t+2);e[o]=n&255,e[o+1]=n>>8,e[o+2]=e[o]^255,e[o+3]=e[o+1]^255;for(var i=0;i<n;++i)e[o+i+4]=r[i];return(o+4+n)*8},md=function(e,t,r,n,o,i,s,c,u,l,p){yn(t,p++,r),++o[256];for(var m=Ef(o,15),y=m.t,x=m.l,P=Ef(i,15),b=P.t,S=P.l,v=dd(y),A=v.c,E=v.n,O=dd(b),T=O.c,R=O.n,D=new Wt(19),k=0;k<A.length;++k)++D[A[k]&31];for(var k=0;k<T.length;++k)++D[T[k]&31];for(var j=Ef(D,7),re=j.t,X=j.l,V=19;V>4&&!re[Qs[V-1]];--V);var vt=l+5<<3,Ye=Mi(o,Kn)+Mi(i,Li)+s,it=Mi(o,y)+Mi(i,b)+s+14+3*V+Mi(D,re)+2*D[16]+3*D[17]+7*D[18];if(u>=0&&vt<=Ye&&vt<=it)return Id(t,p,e.subarray(u,u+l));var rt,Me,ct,de;if(yn(t,p,1+(it<Ye)),p+=2,it<Ye){rt=vr(y,x,0),Me=y,ct=vr(b,S,0),de=b;var xt=vr(re,X,0);yn(t,p,E-257),yn(t,p+5,R-1),yn(t,p+10,V-4),p+=14;for(var k=0;k<V;++k)yn(t,p+3*k,re[Qs[k]]);p+=3*V;for(var bt=[A,T],_t=0;_t<2;++_t)for(var At=bt[_t],k=0;k<At.length;++k){var yt=At[k]&31;yn(t,p,xt[yt]),p+=re[yt],yt>15&&(yn(t,p,At[k]>>5&127),p+=At[k]>>12)}}else rt=Ib,Me=Kn,ct=bb,de=Li;for(var k=0;k<c;++k){var ze=n[k];if(ze>255){var yt=ze>>18&31;Ci(t,p,rt[yt+257]),p+=Me[yt+257],yt>7&&(yn(t,p,ze>>23&31),p+=Ui[yt]);var lr=ze&31;Ci(t,p,ct[lr]),p+=de[lr],lr>3&&(Ci(t,p,ze>>5&8191),p+=Di[lr])}else Ci(t,p,rt[ze]),p+=Me[ze]}return Ci(t,p,rt[256]),p+Me[256]},Ob=new ta([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),xd=new Ke(0),Fb=function(e,t,r,n,o,i){var s=i.z||e.length,c=new Ke(n+s+5*(1+Math.ceil(s/7e3))+o),u=c.subarray(n,c.length-o),l=i.l,p=(i.r||0)&7;if(t){p&&(u[0]=i.r>>3);for(var m=Ob[t-1],y=m>>13,x=m&8191,P=(1<<r)-1,b=i.p||new Wt(32768),S=i.h||new Wt(P+1),v=Math.ceil(r/3),A=2*v,E=function(K){return(e[K]^e[K+1]<<v^e[K+2]<<A)&P},O=new ta(25e3),T=new Wt(288),R=new Wt(32),D=0,k=0,j=i.i||0,re=0,X=i.w||0,V=0;j+2<s;++j){var vt=E(j),Ye=j&32767,it=S[vt];if(b[Ye]=it,S[vt]=Ye,X<=j){var rt=s-j;if((D>7e3||re>24576)&&(rt>423||!l)){p=md(e,u,0,O,T,R,k,re,V,j-V,p),re=D=k=0,V=j;for(var Me=0;Me<286;++Me)T[Me]=0;for(var Me=0;Me<30;++Me)R[Me]=0}var ct=2,de=0,xt=x,bt=Ye-it&32767;if(rt>2&&vt==E(j-bt))for(var _t=Math.min(y,rt)-1,At=Math.min(32767,j),yt=Math.min(258,rt);bt<=At&&--xt&&Ye!=it;){if(e[j+ct]==e[j+ct-bt]){for(var ze=0;ze<yt&&e[j+ze]==e[j+ze-bt];++ze);if(ze>ct){if(ct=ze,de=bt,ze>_t)break;for(var lr=Math.min(bt,ze-2),In=0,Me=0;Me<lr;++Me){var Gn=j-bt+Me&32767,g=b[Gn],C=Gn-g&32767;C>In&&(In=C,it=Gn)}}}Ye=it,it=b[Ye],bt+=Ye-it&32767}if(de){O[re++]=268435456|Tf[ct]<<18|ld[de];var I=Tf[ct]&31,W=ld[de]&31;k+=Ui[I]+Di[W],++T[257+I],++R[W],X=j+ct,++D}else O[re++]=e[j],++T[e[j]]}}for(j=Math.max(j,X);j<s;++j)O[re++]=e[j],++T[e[j]];p=md(e,u,l,O,T,R,k,re,V,j-V,p),l||(i.r=p&7|u[p/8|0]<<3,p-=7,i.h=S,i.p=b,i.i=j,i.w=X)}else{for(var j=i.w||0;j<s+l;j+=65535){var L=j+65535;L>=s&&(u[p/8|0]=l,L=s),p=Id(u,p+1,e.subarray(j,L))}i.i=s}return Uo(c,0,n+ra(p)+o)},vC=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}(),_C=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=vC[r&255^t[n]]^r>>>8;e=r},d:function(){return~e}}};var Sb=function(e,t,r,n,o){if(!o&&(o={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new Ke(i.length+e.length);s.set(i),s.set(e,i.length),e=s,o.w=i.length}return Fb(e,t.level==null?6:t.level,t.mem==null?o.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,o)},bd=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},pb=function(e,t,r){for(var n=e(),o=e.toString(),i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<n.length;++s){var c=n[s],u=i[s];if(typeof c=="function"){t+=";"+u+"=";var l=c.toString();if(c.prototype)if(l.indexOf("[native code]")!=-1){var p=l.indexOf(" ",8)+1;t+=l.slice(p,l.indexOf("(",p))}else{t+=l;for(var m in c.prototype)t+=";"+u+".prototype."+m+"="+c.prototype[m].toString()}else t+=l}else r[u]=c}return t},Of=[],AC=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},jC=function(e,t,r,n){if(!Of[r]){for(var o="",i={},s=e.length-1,c=0;c<s;++c)o=pb(e[c],o,i);Of[r]={c:pb(e[s],o,i),e:i}}var u=bd({},Of[r].e);return TC(Of[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,u,AC(u),n)},kC=function(){return[Ke,Wt,ta,Ui,Di,Qs,gd,gb,xb,$b,ea,wb,vr,Ff,Tr,Sf,ra,Uo,lt,Pb,wd,kf,Eb]},NC=function(){return[Ke,Wt,ta,Ui,Di,Qs,Tf,ld,Ib,Kn,bb,Li,ea,Ob,xd,vr,yn,Ci,Ef,vf,dd,Mi,Id,md,ra,Uo,Fb,Sb,$d,kf]};var kf=function(e){return postMessage(e,[e.buffer])},Eb=function(e){return e&&{out:e.size&&new Ke(e.size),dictionary:e.dictionary}},Tb=function(e,t,r,n,o,i){var s=jC(r,n,o,function(c,u){s.terminate(),i(c,u)});return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}};var hn=function(e,t){return e[t]|e[t+1]<<8},Br=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},pd=function(e,t){return Br(e,t)+Br(e,t+4)*4294967296},Tt=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function RC(e,t,r){return r||(r=t,t={}),typeof r!="function"&<(7),Tb(e,t,[NC],function(n){return kf($d(n.data[0],n.data[1]))},0,r)}function $d(e,t){return Sb(e,t||{},0,0)}function CC(e,t,r){return r||(r=t,t={}),typeof r!="function"&<(7),Tb(e,t,[kC],function(n){return kf(wd(n.data[0],Eb(n.data[1])))},1,r)}function wd(e,t){return Pb(e,{i:2},t&&t.out,t&&t.dictionary)}var vb=function(e,t,r,n){for(var o in e){var i=e[o],s=t+o,c=n;Array.isArray(i)&&(c=bd(n,i[1]),i=i[0]),i instanceof Ke?r[s]=[i,c]:(r[s+="/"]=[new Ke(0),c],vb(i,s,r,n))}},lb=typeof TextEncoder<"u"&&new TextEncoder,yd=typeof TextDecoder<"u"&&new TextDecoder,MC=0;try{yd.decode(xd,{stream:!0}),MC=1}catch{}var LC=function(e){for(var t="",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:Uo(e,r-1)};o?o==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)):o&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)}};function _f(e,t){if(t){for(var r=new Ke(e.length),n=0;n<e.length;++n)r[n]=e.charCodeAt(n);return r}if(lb)return lb.encode(e);for(var o=e.length,i=new Ke(e.length+(e.length>>1)),s=0,c=function(p){i[s++]=p},n=0;n<o;++n){if(s+5>i.length){var u=new Ke(s+8+(o-n<<1));u.set(i),i=u}var l=e.charCodeAt(n);l<128||t?c(l):l<2048?(c(192|l>>6),c(128|l&63)):l>55295&&l<57344?(l=65536+(l&1047552)|e.charCodeAt(++n)&1023,c(240|l>>18),c(128|l>>12&63),c(128|l>>6&63),c(128|l&63)):(c(224|l>>12),c(128|l>>6&63),c(128|l&63))}return Uo(i,0,s)}function Pd(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(yd)return yd.decode(e);var o=LC(e),i=o.s,r=o.r;return r.length&<(8),i}}var UC=function(e,t){return t+30+hn(e,t+26)+hn(e,t+28)},DC=function(e,t,r){var n=hn(e,t+28),o=Pd(e.subarray(t+46,t+46+n),!(hn(e,t+8)&2048)),i=t+46+n,s=Br(e,t+20),c=r&&s==4294967295?qC(e,i):[s,Br(e,t+24),Br(e,t+42)],u=c[0],l=c[1],p=c[2];return[hn(e,t+10),u,l,o,i+hn(e,t+30)+hn(e,t+32),p]},qC=function(e,t){for(;hn(e,t)!=1;t+=4+hn(e,t+2));return[pd(e,t+12),pd(e,t+4),pd(e,t+20)]},hd=function(e){var t=0;if(e)for(var r in e){var n=e[r].length;n>65535&<(9),t+=n+4}return t},db=function(e,t,r,n,o,i,s,c){var u=n.length,l=r.extra,p=c&&c.length,m=hd(l);Tt(e,t,s!=null?33639248:67324752),t+=4,s!=null&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(i<0&&8),e[t++]=o&&8,e[t++]=r.compression&255,e[t++]=r.compression>>8;var y=new Date(r.mtime==null?Date.now():r.mtime),x=y.getFullYear()-1980;if((x<0||x>119)&<(10),Tt(e,t,x<<25|y.getMonth()+1<<21|y.getDate()<<16|y.getHours()<<11|y.getMinutes()<<5|y.getSeconds()>>1),t+=4,i!=-1&&(Tt(e,t,r.crc),Tt(e,t+4,i<0?-i-2:i),Tt(e,t+8,r.size)),Tt(e,t+12,u),Tt(e,t+14,m),t+=16,s!=null&&(Tt(e,t,p),Tt(e,t+6,r.attrs),Tt(e,t+10,s),t+=14),e.set(n,t),t+=u,m)for(var P in l){var b=l[P],S=b.length;Tt(e,t,+P),Tt(e,t+2,S),e.set(b,t+4),t+=4+S}return p&&(e.set(c,t),t+=p),t},KC=function(e,t,r,n,o){Tt(e,t,101010256),Tt(e,t+8,r),Tt(e,t+10,r),Tt(e,t+12,n),Tt(e,t+16,o)};function _b(e,t,r){r||(r=t,t={}),typeof r!="function"&<(7);var n={};vb(e,"",n,t);var o=Object.keys(n),i=o.length,s=0,c=0,u=i,l=new Array(i),p=[],m=function(){for(var S=0;S<p.length;++S)p[S]()},y=function(S,v){Af(function(){r(S,v)})};Af(function(){y=r});var x=function(){var S=new Ke(c+22),v=s,A=c-s;c=0;for(var E=0;E<u;++E){var O=l[E];try{var T=O.c.length;db(S,c,O,O.f,O.u,T);var R=30+O.f.length+hd(O.extra),D=c+R;S.set(O.c,D),db(S,s,O,O.f,O.u,T,c,O.m),s+=16+R+(O.m?O.m.length:0),c=D+T}catch(k){return y(k,null)}}KC(S,s,l.length,A,v),y(null,S)};i||x();for(var P=function(S){var v=o[S],A=n[v],E=A[0],O=A[1],T=_C(),R=E.length;T.p(E);var D=_f(v),k=D.length,j=O.comment,re=j&&_f(j),X=re&&re.length,V=hd(O.extra),vt=O.level==0?0:8,Ye=function(it,rt){if(it)m(),y(it,null);else{var Me=rt.length;l[S]=bd(O,{size:R,crc:T.d(),c:rt,f:D,m:re,u:k!=v.length||re&&j.length!=X,compression:vt}),s+=30+k+V+Me,c+=76+2*(k+V)+(X||0)+Me,--i||x()}};if(k>65535&&Ye(lt(11,0,1),null),!vt)Ye(null,E);else if(R<16e4)try{Ye(null,$d(E,O))}catch(it){Ye(it,null)}else p.push(RC(E,O,Ye))},b=0;b<u;++b)P(b);return m}var Af=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function Ab(e,t,r){r||(r=t,t={}),typeof r!="function"&<(7);var n=[],o=function(){for(var S=0;S<n.length;++S)n[S]()},i={},s=function(S,v){Af(function(){r(S,v)})};Af(function(){s=r});for(var c=e.length-22;Br(e,c)!=101010256;--c)if(!c||e.length-c>65558)return s(lt(13,0,1),null),o;var u=hn(e,c+8);if(u){var l=u,p=Br(e,c+16),m=p==4294967295||l==65535;if(m){var y=Br(e,c-12);m=Br(e,y)==101075792,m&&(l=u=Br(e,y+32),p=Br(e,y+48))}for(var x=t&&t.filter,P=function(S){var v=DC(e,p,m),A=v[0],E=v[1],O=v[2],T=v[3],R=v[4],D=v[5],k=UC(e,D);p=R;var j=function(X,V){X?(o(),s(X,null)):(V&&(i[T]=V),--u||s(null,i))};if(!x||x({name:T,size:E,originalSize:O,compression:A}))if(!A)j(null,Uo(e,k,k+E));else if(A==8){var re=e.subarray(k,k+E);if(O<524288||E>.8*O)try{j(null,wd(re,{out:new Ke(O)}))}catch(X){j(X,null)}else n.push(CC(re,{size:O},j))}else j(lt(14,"unknown compression type "+A,1),null);else j(null,null)},b=0;b<l;++b)P(b)}else s(null,{});return o}a();var zC=e=>{if(e!=null)return e.trim()===""?void 0:e},GC=e=>e!=null,Nf=(e,t,r=0)=>{if(h.IsNull(e))return"null";if(h.IsUndefined(e))return"undefined";if(h.IsString(e))return"<string>";if(h.IsNumber(e))return"<number>";if(h.IsBoolean(e))return"<boolean>";if(h.IsLiteral(e))return typeof e.const=="string"?`'${e.const}'`:`${e.const}`;if(h.IsRef(e)){let n=t.find(o=>o.$id===e.$ref);return n==null?e.$ref:Nf(n,t,r)}if(h.IsArray(e))return`${Nf(e.items,t,r+1)}[]`;if(h.IsUnion(e)&&(!(e.anyOf.length>5)||e.$id==null)){let o=`${e.anyOf.map(i=>Nf(i,t,r+1)).filter(GC).join(" | ")}`;return r>0?`(${o})`:o}return e.$id??""},BC=(e,t,r)=>{let n=t.message;return h.IsUnion(t.schema)&&(n=`Expected one of: ${Nf(t.schema,r)}`),`${`#/definitions/${e}${zC(t.path)??""}`}: ${n}`},Rf=(e,t,r)=>{let n=t.First();if(n!=null)return BC(e,n,r)};var qi;(function(e){e.Archive="Archive",e.Validate="Validate",e.Encode="Encode",e.Unknown="Unknown"})(qi||(qi={}));var Ki=class extends Error{constructor(r,n){super(n);z(this,"name");z(this,"kind");this.name="CompressError",this.kind=r}},VC=e=>new Ki(qi.Archive,e.message),WC=e=>{let t=Object.values(jf);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},HC=(e,t,r)=>new Ki(qi.Validate,Rf(e,t,r)??"Unknown validate error"),ZC=e=>new Ki(qi.Encode,e.message),JC=e=>new Ki(qi.Unknown,e instanceof Error?e.message:String(e)),Od=(e,t,r)=>t instanceof Ro?ZC(t):t instanceof Sr?HC(e,t,r):WC(t)?VC(t):JC(t);a();var zi;(function(e){e.Unarchive="Unarchive",e.Validate="Validate",e.Decode="Decode",e.Unknown="Unknown"})(zi||(zi={}));var Gi=class extends Error{constructor(r,n){super(n);z(this,"name");z(this,"kind");this.name="DecompressError",this.kind=r}},YC=e=>new Gi(zi.Unarchive,e.message),XC=e=>{let t=Object.values(jf);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},QC=(e,t,r)=>new Gi(zi.Validate,Rf(e,t,r)??"Unknown validate error"),eM=e=>new Gi(zi.Decode,e.message),tM=e=>new Gi(zi.Unknown,e instanceof Error?e.message:String(e)),Fd=(e,t,r)=>t instanceof No?eM(t):t instanceof Sr?QC(e,t,r):XC(t)?YC(t):tM(t);a();a();a();var rM=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,nM=[0,31,28,31,30,31,30,31,31,30,31,30,31],oM=e=>e%4===0&&(e%100!==0||e%400===0),Cf=e=>{let t=rM.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&oM(r)?29:nM[n])};a();var iM=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i,Mf=e=>{let t=iM.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3],i=t[4],s=t[5]==="-"?-1:1,c=+(t[6]||0),u=+(t[7]||0);if(c>23||u>59||!i)return!1;if(r<=23&&n<=59&&o<60)return!0;let l=n-u*s,p=r-c*s-(l<0?1:0);return(p===23||p===-1)&&(l===59||l===-1)&&o<61};var sM=/t|\s/i,jb=e=>{let t=e.split(sM);return t.length===2&&Cf(t[0])&&Mf(t[1])};a();var aM=/\/|:/,cM=/^(?:[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,kb=e=>aM.test(e)&&cM.test(e);var fM=[["date",Cf],["time",Mf],["date-time",jb],["uri",kb]],Nb=()=>{for(let[e,t]of fM)try{nf.Format(e,t)}catch(r){if(r instanceof Zs)continue;throw r}};a();a();a();var Rb=e=>e instanceof Error?e:new Error(String(e));var Lf=e=>(...t)=>{try{return U(e(...t))}catch(r){return q(Rb(r))}};var uM=Lf((e,t)=>{let r={};for(let n of t)for(let o of n.intoBundle(e))r[o.path]=_f(JSON.stringify(o.contents));return r}),Sd=async(e,t,r)=>uM(e,t).andThenAsync(n=>new Promise(o=>{_b(n,{...r,consume:!0},(i,s)=>{o(i?q(i):U(s))})}));a();a();function Uf(e,t,r=[]){let n={...e};for(let[o,i]of Object.entries(t))if(i!==void 0)if(o in n){let s=o;if(Array.isArray(i)&&i.length>0){let c=pM(i[0],r);if(c){let u=n[s];if(!Array.isArray(u))throw new Error(`Expected array at ${o}, got ${typeof u}`);let l=new Map(i.map(y=>[Cb(y,c),y])),m=u.map(y=>{let x=l.get(Cb(y,c));return x?Uf(y,x,r):y});n[s]=m}else n[s]=i}else{let c=n[s];typeof c=="object"&&c!==null&&typeof i=="object"&&i!==null?Object.keys(i).length===0?n[s]=i:n[s]=Uf(c,i,r):n[o]=i}}else n[o]=i;return n}function pM(e,t){function r(n){if(typeof n!="object"||n===null)return null;for(let o of t)if(o in n&&typeof n[o]<"u")return[o];if(Array.isArray(n))return null;for(let[o,i]of Object.entries(n)){let s=r(i);if(s)return[o,...s]}return null}return r(e)}function Cb(e,t){return t.reduce((r,n)=>{if(r&&typeof r=="object")return r[n]},e)}var lM=e=>e,dM=e=>JSON.parse(Pd(e)),mM=(e,t)=>t.some(r=>r.fromBundle(e.name,new Uint8Array,lM)!==void 0),yM=Lf((e,t)=>{let r={};for(let n of Object.keys(e)){let o=e[n];for(let i of t){let s=i.fromBundle(n,o,dM);if(s){r=Uf(r,s,[]);break}}}return r}),Ed=async(e,t)=>new Promise(r=>Ab(e,{filter:n=>mM(n,t)},(n,o)=>{r(n?q(n):U(o))})).then(r=>r.andThen(n=>yM(n,t)));a();var hM=e=>typeof e=="object"&&e!=null&&"$ref"in e&&typeof e.$ref=="string",gM=e=>{if(e.length<2)return!1;let t=e.filter(hM);if(t.length!==e.length)return!1;let r=t[0].$ref;return t.slice(1).every(n=>n.$ref===r)},Df=e=>typeof e=="object"&&e!=null&&"allOf"in e&&Array.isArray(e.allOf)&&gM(e.allOf)?e.allOf[0]:typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,Df(r)])):Array.isArray(e)?e.map(Df):e;a();var qf=e=>typeof e=="object"&&e!=null&&"$ref"in e?{...e,$ref:`#/definitions/${e.$ref}`}:typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,qf(r)])):Array.isArray(e)?e.map(qf):e;var Bi;(function(e){e.InvalidTypeboxSchema="InvalidTypeboxSchema",e.MissingReferenceId="MissingReferenceId",e.DuplicateReferenceId="DuplicateReferenceId",e.TypeboxError="TypeboxError",e.UnknownError="UnknownError"})(Bi||(Bi={}));var IM=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}}),xM=(...e)=>{let t=new Map;for(let r of IM(e)){if(!r.$id)continue;let n=t.get(r.$id);if(n!=null&&n!==r)return q({kind:Bi.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 U(t)},_r,Do,zn,Vr,Td=class Td{constructor(t,r,n,o){lo(this,_r);lo(this,Do);lo(this,zn,[]);lo(this,Vr);Zi(this,_r,t),Zi(this,Do,r),Zi(this,zn,n),Zi(this,Vr,o),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"){let n=f.Composite(t.extensions.map(i=>i.schema),{$id:r});if(!h.IsSchema(n))return q({kind:Bi.InvalidTypeboxSchema,message:"Attempting to merge schemas produced an invalid schema",schema:n});let o=xM(zl.values(),Cl.values(),Ll.values(),Dl.values(),ql.values(),Wl.values(),t.extensions.flatMap(i=>i.references??[]).values());if(!o.isOk())return o;try{Nb();let i=Pf.Compile(n,[...o.value.values()]);return U(new Td(n,i,t.extensions,o.value))}catch(i){return i instanceof H?q({kind:Bi.TypeboxError,message:i.message,original:i}):q({kind:Bi.UnknownError,message:"An unknown error occurred while compiling the schema",original:i})}}is(t){return ke(this,Do).Check(t)}parse(t){return ke(this,Do).Check(t)?U(t):q(ke(this,Do).Errors(t))}decode(t){try{return U(cb(ke(this,_r),[...ke(this,Vr).values()],t))}catch(r){return q(r)}}encode(t){try{return U(fb(ke(this,_r),[...ke(this,Vr).values()],t))}catch(r){return q(r)}}verify(t){for(let r of ke(this,zn))if(r.integrityCheck){let n=r.integrityCheck(t);if(n.isErr())return q(n.error)}return U(!0)}jsonSchema(){let t=JSON.parse(JSON.stringify([ke(this,_r),...ke(this,Vr).values()])),r=Df(qf({$id:`#/definitions/${ke(this,_r).$id??"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=>Sd(r,ke(this,zn))).then(r=>r.mapErr(n=>Od(ke(this,_r).$id??"CoreMVF",n,[...ke(this,Vr).values()])))}async compressUnsafe(t){return this.encode(t).andThenAsync(r=>Sd(r,ke(this,zn))).then(r=>r.mapErr(n=>Od(ke(this,_r).$id??"CoreMVF",n,[...ke(this,Vr).values()])))}async decompress(t){return Ed(t,ke(this,zn)).then(r=>r.andThen(n=>this.parse(n)).andThen(n=>this.decode(n)).mapErr(n=>Fd(ke(this,_r).$id??"CoreMVF",n,[...ke(this,Vr).values()])))}async decompressUnsafe(t){return Ed(t,ke(this,zn)).then(r=>r.andThen(n=>this.decode(n)).mapErr(n=>Fd(ke(this,_r).$id??"CoreMVF",n,[...ke(this,Vr).values()])))}};_r=new WeakMap,Do=new WeakMap,zn=new WeakMap,Vr=new WeakMap;var Kf=Td;var Vi,zf=class{constructor(){lo(this,Vi,[]);this.extend=this.extend.bind(this)}extend(t){return ke(this,Vi).push(t),this}extendOptional(t){let r={...t,schema:f.Partial(t.schema)};return ke(this,Vi).push(r),this}build(){return Kf.create(this)}get extensions(){return ke(this,Vi)}};Vi=new WeakMap;var Mb=()=>new zf().extend(wx).extend(Tx).extend(jx);var qo=Je("lcat","LocationCategoryId"),vd=f.Intersect([f.Object({id:f.Ref(qo),parent:f.Optional(f.Ref(qo))}),Ao(["name"]),zr],{$id:"LocationCategory"}),Lb=[qo,vd];a();a();var Ko;(function(e){e.UnknownCategoryError="UnknownCategoryError",e.UnknownParentCategoryError="UnknownParentCategoryError",e.UnknownParentLocationError="UnknownParentLocationError"})(Ko||(Ko={}));var Ub=e=>{if(e.locationCategories==null&&e.locations==null)return U(!0);let t=new Set(e.locationCategories?.map(o=>o.id)??[]);for(let o of e.locationCategories??[])if(o.parent!=null&&!t.has(o.parent))return q({kind:Ko.UnknownParentCategoryError,properties:{categoryId:o.id,parentCategoryId:o.parent}});let r=mt(e);for(let o of e.locations??[]){for(let i of o.categories)if(!t.has(i))return q({kind:Ko.UnknownCategoryError,properties:{locationId:o.id,categoryId:i}});for(let i of o.geometryAnchors){let s=r(i.floorId,i.geometryId);if(s.isErr())return s}}let n=new Set(e.locations?.map(o=>o.id)??[]);for(let o of e.locationInstances??[]){if(!n.has(o.parentId))return q({kind:Ko.UnknownParentLocationError,properties:{locationInstanceId:o.id,parentLocationId:o.parentId}});for(let i of o.categories??[])if(!t.has(i))return q({kind:Ko.UnknownCategoryError,properties:{locationId:o.id,categoryId:i}});for(let i of o.geometryAnchors??[]){let s=r(i.floorId,i.geometryId);if(s.isErr())return s}}return U(!0)};a();var zo=Je("loc","LocationId"),Gf=Je("loci","LocationInstanceId"),Db=f.Object({name:f.String(),url:f.String({format:"uri"})},{$id:"LocationSocial"}),qb=f.Object({url:f.String({format:"uri"})},{$id:"LocationImage"}),_d=f.Object({label:f.String(),url:f.String({format:"uri"})},{$id:"LocationLink"}),Ad=f.String({pattern:"^[0-2][0-9]:[0-6][0-9](:[0-6][0-9])?$",$id:"OpeningHoursTime"}),Kb=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"}),bM="PublicHolidays",jd=f.Union([Kb,f.Literal(bM)],{$id:"OpeningHoursDayOrPublicHoliday"}),Bf=f.Object({"@type":f.Optional(f.Literal("OpeningHoursSpecification",{description:"The type of opening hours"})),opens:f.Optional(f.Ref(Ad,{description:"The time the opening hours start"})),closes:f.Optional(f.Ref(Ad,{description:"The time the opening hours end"})),dayOfWeek:f.Optional(f.Union([f.Ref(jd),f.Array(f.Ref(jd))],{description:"The days of the week the opening hours apply to"})),validFrom:f.Optional(f.String({format:"date-time",description:"The date the opening hours start, in ISO 8601 format"})),validTo:f.Optional(f.String({format:"date-time",description:"The date the opening hours end, in ISO 8601 format"}))},{$id:"OpeningHoursSpecification"}),Vf=f.Intersect([f.Object({id:f.Ref(zo),categories:f.Array(f.Ref(qo)),logo:f.Optional(f.String({format:"uri"})),phone:f.Optional(f.String()),social:f.Array(f.Ref(Db)),images:f.Array(f.Ref(qb)),links:f.Array(f.Ref(_d)),website:f.Optional(f.Ref(_d)),openingHours:f.Optional(f.Array(f.Ref(Bf)))}),Ao(["name"]),jo(),zr],{$id:"Location"}),kd=f.Intersect([f.Object({id:f.Ref(Gf),parentId:f.Ref(zo)}),f.Partial(f.Omit(Vf,["id","parentId"]))],{$id:"LocationInstance"}),Wf=[zo,Gf,Db,qb,_d,Ad,Kb,jd,Bf,Vf,kd];var $M=f.Object({locations:f.Array(f.Ref(Vf)),locationCategories:f.Array(f.Ref(vd)),locationInstances:f.Optional(f.Array(f.Ref(kd)))},{$id:"LocationsExtensionSchema"}),zb="locations.json",Gb="location-categories.json",Bb="location-instances.json",Vb={name:"ext:locations",schema:$M,intoBundle:function*(e){e.locations!=null&&(yield{path:zb,contents:e.locations}),e.locationCategories!=null&&(yield{path:Gb,contents:e.locationCategories}),e.locationInstances!=null&&(yield{path:Bb,contents:e.locationInstances})},fromBundle:(e,t,r)=>{if(e===zb)return{locations:r(t)};if(e===Gb)return{locationCategories:r(t)};if(e===Bb)return{locationInstances:r(t)}},references:[...Lb,...Wf],integrityCheck:Ub};a();a();var gn;(function(e){e.UnknownEnterpriseLocationError="UnknownEnterpriseLocationError",e.EnterpriseLocationWithUnknownLocationError="EnterpriseLocationWithUnknownLocationError",e.EnterpriseCategoryWithUnknownLocationCategoryError="EnterpriseCategoryWithUnknownLocationCategoryError",e.InstanceWithUnknownLocationInstanceError="InstanceWithUnknownLocationInstanceError",e.InstanceWithUnknownEnterpriseLocationError="InstanceWithUnknownEnterpriseLocationError",e.EnterpriseLocationWithUnknownSibling="EnterpriseLocationWithUnknownSibling",e.EnterpriseLocationInstanceWithUnknownSibling="EnterpriseLocationInstanceWithUnknownSibling"})(gn||(gn={}));var Wb=e=>{if(e.enterprise==null)return U(!0);let t=e.enterprise,r=new Set(e.locationCategories?.map(u=>u.id)??[]);for(let u of t.categories??[])if(!r.has(u.categoryId))return q({kind:gn.EnterpriseCategoryWithUnknownLocationCategoryError,properties:{enterpriseCategoryId:u.id,locationCategoryId:u.categoryId}});let n=new Set(e.locations?.map(u=>u.id)??[]);for(let u of t.locations??[]){if(!n.has(u.locationId))return q({kind:gn.EnterpriseLocationWithUnknownLocationError,properties:{enterpriseLocationId:u.id,locationId:u.locationId}});for(let l of u.siblingGroups??[])for(let p of l.siblings??[])if(!n.has(p))return q({kind:gn.EnterpriseLocationWithUnknownSibling,properties:{enterpriseLocationId:u.id,siblingLocationId:p,label:l.label}})}let o=new Set(e.enterprise.locations?.map(u=>u.id)??[]);if(t.venue?.topLocations!=null){for(let u of t.venue.topLocations)if(!o.has(u))return q({kind:gn.UnknownEnterpriseLocationError,properties:{enterpriseLocationId:u}})}let i=new Set(e.locationInstances?.map(u=>u.id)??[]);for(let u of t.locationInstances??[]){if(!o.has(u.parentId))return q({kind:gn.InstanceWithUnknownEnterpriseLocationError,properties:{enterpriseLocationInstanceId:u.id,enterpriseLocationId:u.parentId}});if(!i.has(u.locationInstanceId))return q({kind:gn.InstanceWithUnknownLocationInstanceError,properties:{enterpriseLocationInstanceId:u.id,locationInstanceId:u.locationInstanceId}});for(let l of u.siblingGroups??[])for(let p of l.siblings??[])if(!n.has(p))return q({kind:gn.EnterpriseLocationInstanceWithUnknownSibling,properties:{enterpriseLocationInstanceId:u.id,siblingLocationId:p,label:l.label}})}let s=Mn(e),c=mt(e);for(let[u,l]of xe(t.floorText??{})){let p=s(u);if(p.isErr())return p;for(let m of l.features){if(!("geometryId"in m.properties))continue;let y=c(u,m.properties.geometryId);if(y.isErr())return y}}for(let[u,l]of xe(t.textures??{})){let p=s(u);if(p.isErr())return p;for(let m of l){let y=c(u,m.geometryId);if(y.isErr())return y}}for(let[u,l]of xe(t.layers??{})){let p=s(u);if(p.isErr())return p;for(let m of le(l??{})){let y=c(u,m);if(y.isErr())return y}}for(let[u,l]of xe(t.textAreas??{})){let p=s(u);if(p.isErr())return p;for(let m of l.features)if("geometryId"in m.properties){let y=c(u,m.properties.geometryId);if(y.isErr())return y}}return U(!0)};a();a();var Go=Je("el","EnterpriseLocationId"),Nd=Je("ec","EnterpriseCategoryId"),Rd=Je("eli","EnterpriseLocationInstanceId"),Cd=Je("ev","EnterpriseVenueId"),Md=Je("eft","EnterpriseFloorTextId"),Hb=[Go,Nd,Rd,Cd,Md];var Zb=f.Object({id:f.Ref(Nd),categoryId:f.Ref(qo),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"}),Ld=f.Object({categories:f.Optional(f.Array(f.Ref(Zb)))},{$id:"EnterpriseCategoriesSchema"}),Jb=[Zb,Ld];a();var Yb=or(["left","center","right"]),wM=Yb.schema,ute=Yb.values,Ud=f.Object({id:f.Ref(Md),text:f.String(),visible:f.Boolean({default:!0}),fontSize:f.Number({default:12,minimum:1}),fontFamily:f.String({default:"Droid Sans"}),color:f.String({default:"black"}),rotation:f.Number({minimum:0,maximum:360}),align:wM},{$id:"FloorTextCommonProperties"}),Dd=f.Intersect([f.Ref(Ud),Or],{$id:"AnchoredFloorTextProperties"}),qd=f.Intersect([f.Ref(Ud),f.Object({verticalOffset:f.Number()})],{$id:"FloatingFloorTextProperties"}),Xb=f.Union([f.Ref(Dd),f.Ref(qd)],{$id:"FloorTextProperties"}),Qb=Ft(Lt,f.Ref(Xb),{$id:"FloorTextFeature"}),PM=Ft(Lt,f.Ref(Dd),{$id:"AnchoredFloorTextFeature"}),OM=Ft(Lt,f.Ref(qd),{$id:"FloatingFloorTextFeature"}),e0=Vt(f.Ref(Qb),{$id:"EnterpriseFloorTextFeatureCollection"}),t0=f.Record(Ie,f.Ref(e0),{$id:"EnterpriseFloorTextCollectionsByFloor",additionalProperties:!1}),Kd=f.Object({floorText:f.Optional(f.Ref(t0))},{$id:"EnterpriseFloorTextSchema"}),r0=[Ud,Dd,qd,Xb,Qb,PM,OM,e0,t0,Kd];a();var n0=ot(f.Record(Mt,f.String({minLength:1}),{additionalProperties:!1,$id:"EnterpriseLayers"})),o0=ot(f.Record(Ie,f.Ref(n0),{additionalProperties:!1,$id:"EnterpriseLayersByFloor"})),zd=f.Object({layers:f.Optional(f.Ref(o0))},{$id:"EnterpriseLayersSchema"}),i0=[n0,o0,zd];a();a();a();var Gd=or(["closed-temporarily","new","pop-up","coming-soon","relocated"]),FM=Gd.schema,$te=Gd.values,wte=Gd.record,Bd=f.Object({type:FM,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."}),Vd=f.Object({label:f.String(),siblings:f.Array(f.Ref(zo))},{$id:"SiblingGroup"}),Hf=f.Object({name:f.String(),code:f.String()},{$id:"Language"}),s0=[Bd,Vd,Hf];var Zf=f.Object({id:f.Ref(Go),locationId:f.Ref(zo),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(Bd),{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(Vd))),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"}))},{$id:"EnterpriseLocation"}),Wd=f.Object({locations:f.Optional(f.Array(f.Ref(Zf)))},{$id:"EnterpriseLocationsSchema"}),a0=[Zf,Wd];var c0=f.Intersect([f.Object({id:f.Ref(Rd),parentId:f.Ref(Go),locationInstanceId:f.Ref(Gf)}),f.Partial(f.Omit(Zf,["id","parentId","locationId"]))],{$id:"EnterpriseLocationInstance",description:"A locationInstance is a particular instance of an Enterprise Location that has some properties different from the parent."}),Hd=f.Object({locationInstances:f.Optional(f.Array(f.Ref(c0)))},{$id:"EnterpriseLocationInstancesSchema"}),f0=[c0,Hd];a();var Zd=or(["near","center"],{$id:"EnterpriseTextAreaAlignment"}),u0=Zd.schema,qte=Zd.values,Kte=Zd.record,Jd=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(u0),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"}),p0=f.Intersect([f.Ref(Jd),Or],{$id:"EnterpriseAnchoredTextAreaProperties"}),l0=f.Intersect([f.Ref(Jd),f.Object({verticalOffset:f.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"EnterpriseFloatingTextAreaProperties"}),d0=f.Union([p0,l0],{$id:"EnterpriseTextAreaProperties"}),m0=Ft(f.Ref(Lt),d0,{$id:"EnterpriseTextAreaFeature"}),y0=Vt(f.Ref(m0),{$id:"EnterpriseTextAreaCollection"}),h0=f.Record(Ie,f.Ref(y0),{$id:"EnterpriseTextAreasByFloor",additionalProperties:!1}),g0=f.Object({textAreas:f.Optional(f.Ref(h0))},{$id:"EnterpriseTextAreasSchema"}),I0=[u0,Jd,p0,l0,d0,m0,y0,h0];a();var Yd=f.Object({u:f.Number(),v:f.Number()},{$id:"EnterpriseTextureUV"}),Xd=or(["top","side"],{$id:"EnterpriseTextureFace"}),x0=Xd.schema,Wte=Xd.values,Hte=Xd.record,Qd=or(["inside","outside","both"],{$id:"EnterpriseTextureSurface"}),b0=Qd.schema,Zte=Qd.values,Jte=Qd.record,$0=f.Tuple([Si,Ei,Si,Ei],{$id:"EnterpriseTextureBounds"}),w0=f.Intersect([f.Object({repeat:f.Ref(Yd),offset:f.Ref(Yd),rotation:f.Number({minimum:0,maximum:360}),path:f.String({format:"uri"}),face:f.Ref(x0),surface:f.Ref(b0),bounds:f.Ref($0)},{$id:"EnterpriseTextureProperties"}),Or],{$id:"EnterpriseTexture"}),P0=f.Array(f.Ref(w0),{$id:"EnterpriseTextures"}),O0=f.Record(Ie,f.Ref(P0),{$id:"EnterpriseTexturesByFloor",additionalProperties:!1}),em=f.Object({textures:f.Optional(f.Ref(O0))},{$id:"EnterpriseTexturesSchema"}),F0=[w0,P0,em,Yd,x0,b0,$0,O0];a();var S0=f.Intersect([f.Object({id:f.Ref(Cd),slug:f.String(),defaultLanguage:f.Ref(Hf),languages:f.Array(f.Ref(Hf)),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(Go))),operationHours:f.Optional(f.Array(f.Ref(Bf))),coverImage:f.Optional(f.String({format:"uri"}))}),Ao(["name"]),zr],{$id:"EnterpriseVenue"}),tm=f.Object({venue:f.Optional(f.Ref(S0))},{$id:"EnterpriseVenueSchema"}),E0=[S0,tm];var v0=f.Intersect([tm,Wd,Hd,Ld,em,Kd,zd,g0],{$id:"EnterpriseProperties"}),T0=f.Object({enterprise:f.Optional(f.Ref(v0))},{$id:"CMSExtensionSchema"}),SM=/^enterprise\/(?:([^/]+)\/)?([^/]+)\.(?:json|geojson)$/,_0={name:"ext:cms",schema:T0,intoBundle:function*(e){if(e.enterprise==null)return;let t=e.enterprise;for(let r of le(t))switch(r){case"floorText":for(let n of le(t.floorText??{}))yield{path:`enterprise/floorText/${n}.geojson`,contents:(t.floorText??{})[n]};continue;case"textures":for(let n of le(t.textures??{}))yield{path:`enterprise/textures/${n}.json`,contents:(t.textures??{})[n]};continue;case"textAreas":for(let n of le(t.textAreas??{}))yield{path:`enterprise/textAreas/${n}.geojson`,contents:(t.textAreas??{})[n]};continue;default:yield{path:`enterprise/${r}.json`,contents:t[r]};continue}},fromBundle:(e,t,r)=>{let n=e.match(SM);if(!n)return;let[,o,i]=n,s=r(t);switch(o){case"floorText":case"textures":case"textAreas":return{enterprise:{[o]:{[i]:s}}};default:return{enterprise:{[i]:s}}}},references:[v0,T0,...E0,...a0,...f0,...Jb,...F0,...i0,...r0,...I0,...Hb,...s0,...Wf],integrityCheck:Wb};a();a();a();a();var Wr;(function(e){e.NavigationFlagMissingDeclaration="NavigationFlagMissingDeclaration",e.NavigationFlagDuplicateBit="NavigationFlagDuplicateBit",e.NavigationFlagIncorrectFlagsLength="NavigationFlagIncorrectFlagsLength",e.NavigationFlagValueTooBig="NavigationFlagValueTooBig"})(Wr||(Wr={}));var A0=e=>{let{navigationFlags:t}=e;if(!t||Object.keys(t).length===0)return U(!0);let r=Object.entries(t).map(([i,s])=>({key:i,...s})).sort((i,s)=>i.index!==s.index?i.index-s.index:i.bit-s.bit),n=0,o=-1;for(let i of r){if(i.bit===o)return q({kind:Wr.NavigationFlagDuplicateBit,properties:{index:i.index,bit:i.bit,path:`navigationFlags.${i.key}`}});if(i.index!=n){if(o!=31)return q({kind:Wr.NavigationFlagMissingDeclaration,properties:{index:n,bit:o+1,path:"navigationFlags"}});if(i.index!=n+1||i.bit!=0)return q({kind:Wr.NavigationFlagMissingDeclaration,properties:{index:n+1,bit:0,path:"navigationFlags"}});n=i.index,o=0}else{if(i.bit!==o+1)return q({kind:Wr.NavigationFlagMissingDeclaration,properties:{index:i.index,bit:o+1,path:"navigationFlags"}});o=i.bit}}return U(!0)};a();function Wi(e,t){return t&&(e.flags[t.index]&1<<t.bit)!==0}a();var j0=2**32-1,na=e=>{let t=Object.keys(e.navigationFlags??{}).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}},Hi=(e,t,r)=>{if(t.index==-1&&e.length===0)return U(!0);let n=t.flag>0||t.index===-1?t.index+1:t.index;if(e.length!==n)return q({kind:Wr.NavigationFlagIncorrectFlagsLength,properties:{expected:n,actual:e.length,path:r}});for(let o=0;o<e.length;o++){let i=e[o];if(o<t.index){if(i>j0)return q({kind:Wr.NavigationFlagValueTooBig,properties:{index:o,flagValue:i,expectedMaxFlagValue:j0,path:r}});continue}else if(i>t.flag)return q({kind:Wr.NavigationFlagValueTooBig,properties:{index:o,flagValue:i,expectedMaxFlagValue:t.flag,path:r}})}return U(!0)};var EM=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"}),k0=f.Intersect([EM,Kr],{$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.'}),rm={accessible:"accessible",outdoors:"outdoors"},N0=f.Record(f.String(),k0,{$id:"NavigationFlagDeclarations",description:"Any well known and custom flags present in the MVF"}),TM=f.Object({navigationFlags:f.Ref(N0)},{$id:"NavigationFlagsSchema"}),Jf=f.Array(f.Integer({minimum:0,maximum:Math.pow(2,32)-1}),{$id:"Flags"}),nm=f.Object({flags:f.Ref(Jf)},{$id:"WithFlags"}),Bo=f.Intersect([Fi,nm],{$id:"FlaggedGeometryAnchor"}),vM=f.Object({geometryAnchor:Bo},{$id:"WithFlaggedGeometryAnchor"}),_M=f.Object({geometryAnchors:f.Array(Bo)},{$id:"WithFlaggedGeometryAnchors"}),R0={name:"ext:mvf-navigation-flags",schema:TM,intoBundle:function*(e){e.navigationFlags!=null&&(yield{path:"navigationFlags.json",contents:e.navigationFlags})},fromBundle:(e,t,r)=>e!=="navigationFlags.json"?void 0:{navigationFlags:r(t)},references:[k0,N0,Jf,Bo,vM,_M],integrityCheck:A0};a();var C0=e=>{if(e.connections==null)return U(!0);let t=mt(e),r=na(e);for(let[n,o]of e.connections.entries()){for(let[i,s]of o.entrances.entries()){let c=t(s.floorId,s.geometryId);if(c.isErr())return c;let u=Hi(s.flags,r,`connections[${n}].entrances[${i}]`);if(u.isErr())return u}for(let[i,s]of o.exits.entries()){let c=t(s.floorId,s.geometryId);if(c.isErr())return c;let u=Hi(s.flags,r,`connections[${n}].exits[${i}]`);if(u.isErr())return u}}return U(!0)};var L0=Je("c","ConnectionId"),{schema:AM,values:Yre,record:jM}=or(["elevator","escalator","travelator","stairs","door","ramp"],{$id:"ConnectionType"}),U0=AM;var om=jM,D0=f.Intersect([f.Object({id:f.Ref(L0,{description:"The unique identifier for the connection."}),entrances:f.Array(f.Ref(Bo)),exits:f.Array(f.Ref(Bo)),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(U0,{description:"The type of connection."})}),Kr,zr],{$id:"ConnectionsProperties"}),q0=f.Array(f.Ref(D0),{$id:"ConnectionsCollection"}),kM=f.Object({connections:f.Ref(q0)},{$id:"ConnectionsExtensionSchema"}),M0="connections.json",K0={name:"ext:connections",schema:kM,intoBundle:function*(e){e.connections!=null&&(yield{path:M0,contents:e.connections})},fromBundle:(e,t,r)=>{if(e===M0)return{connections:r(t)}},references:[D0,q0,U0,L0,Bo,Jf],integrityCheck:C0};a();a();var z0=e=>{if(e.defaultStyle==null)return U(!0);let t=mt(e);for(let r of Object.values(e.defaultStyle))if(r!=null)for(let n of r.geometryAnchors){let o=t(n.floorId,n.geometryId);if(o.isErr())return o}return U(!0)};var G0=f.Intersect([jo(),zr,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"}),B0=f.Record(f.String(),f.Ref(G0),{$id:"DefaultStyleCollection",additionalProperties:!1}),NM=f.Object({defaultStyle:f.Ref(B0)},{$id:"DefaultStyleSchema"}),V0={name:"ext:mvf-default-style",schema:NM,intoBundle:function*(e){e.defaultStyle!=null&&(yield{path:"default-style.json",contents:e.defaultStyle})},fromBundle:(e,t,r)=>{if(e==="default-style.json")return{defaultStyle:r(t)}},references:[G0,B0],integrityCheck:z0};a();a();a();a();var Yf;(function(e){e.InvalidDefaultFloorError="InvalidDefaultFloorError"})(Yf||(Yf={}));var W0=e=>{if(e.floorStacks==null)return U(!0);let t=Mn(e);for(let r of e.floorStacks){for(let n of r.floors){let o=t(n);if(o.isErr())return o}if(r.defaultFloor!=null&&!r.floors.includes(r.defaultFloor))return q({kind:Yf.InvalidDefaultFloorError,properties:{floorStackId:r.id,floorId:r.defaultFloor}})}return U(!0)};var Xf=Je("fs","FloorStackId"),Z0=f.Intersect([f.Object({id:f.Ref(Xf,{description:"The unique identifier for the floor stack."}),floors:f.Array(f.Ref(Ie),{uniqueItems:!0,minItems:1,description:"The floors that are part of this floor stack."}),defaultFloor:f.Optional(f.Ref(Ie,{description:"The default floor for the floor stack."}))}),Kr],{$id:"FloorStacksProperties"}),J0=f.Array(f.Ref(Z0),{$id:"FloorStackCollection"}),RM=f.Object({floorStacks:f.Ref(J0)},{$id:"FloorStackExtensionSchema"}),H0="floor-stacks.json",Y0={name:"ext:floor-stacks",schema:RM,intoBundle:function*(e){e.floorStacks!=null&&(yield{path:H0,contents:e.floorStacks})},fromBundle:(e,t,r)=>{if(e===H0)return{floorStacks:r(t)}},references:[Xf,Z0,J0],integrityCheck:W0};a();a();var oa;(function(e){e.MissingFloorStackError="MissingFloorStackError",e.UnknownFloorStackError="UnknownFloorStackError"})(oa||(oa={}));var X0=e=>{if(e.facade==null)return U(!0);if(e.floorStacks==null)return q({kind:oa.MissingFloorStackError,properties:null});let t=new Set(e.floorStacks.map(n=>n.id)),r=mt(e);for(let[n,o]of xe(e.facade))if(o!=null){if(!t.has(n))return q({kind:oa.UnknownFloorStackError,properties:{floorStackId:n}});for(let i of o.geometryAnchors){let s=r(i.floorId,i.geometryId);if(s.isErr())return s}}return U(!0)};var Q0=Je("fc","FacadeId"),e$=f.Intersect([f.Object({id:f.Ref(Q0)}),jo({minItems:1})],{$id:"FacadeProperties"}),CM=f.Object({facade:ot(f.Record(Xf,f.Ref(e$),{additionalProperties:!1}))},{$id:"FacadeExtensionSchema"}),MM=/^facade\/(.*)\.json$/,t$={name:"ext:facade",schema:CM,intoBundle:function*(e){if(e.facade!=null)for(let t of le(e.facade))yield{path:`facade/${t}.json`,contents:e.facade[t]}},fromBundle:(e,t,r)=>{let n=e.match(MM)?.[1];if(n)return{facade:{[n]:r(t)}}},references:[Q0,e$],integrityCheck:X0};a();a();var r$=e=>{if(e.floorImages==null)return U(!0);let t=mt(e);for(let[r,n]of xe(e.floorImages))if(n!=null)for(let o of n.features){if(!("geometryId"in o.properties))continue;let i=o.properties.geometryId,s=t(r,i);if(s.isErr())return s}return U(!0)};var im=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"}),n$=f.Intersect([f.Ref(im),Or],{$id:"AnchoredFloorImageProperties"}),o$=f.Intersect([f.Ref(im),f.Object({verticalOffset:f.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"FloatingFloorImageProperties"}),i$=f.Union([n$,o$],{$id:"FloorImageProperties"}),s$=Ft(f.Ref(Lt),i$,{$id:"FloorImageFeature"}),a$=Vt(f.Ref(s$),{$id:"FloorImageCollection"}),LM=f.Object({floorImages:ot(f.Record(Ie,f.Ref(a$),{additionalProperties:!1}))},{$id:"FloorImagesExtensionSchema"}),UM=/^floorImages\/(.*)\.geojson$/,c$={name:"ext:floor-images",schema:LM,intoBundle:function*(e){if(e.floorImages!=null)for(let t of le(e.floorImages))yield{path:`floorImages/${t}.geojson`,contents:e.floorImages[t]}},fromBundle:(e,t,r)=>{let n=e.match(UM)?.[1];if(n)return{floorImages:{[n]:r(t)}}},references:[im,n$,o$,i$,s$,a$],integrityCheck:r$};a();a();var f$=e=>{if(e.kinds==null)return U(!0);let t=mt(e);for(let[r,n]of xe(e.kinds))if(n!=null)for(let o of le(n)){let i=t(r,o);if(i.isErr())return i}return U(!0)};var{values:aoe,schema:DM,record:coe}=or(["room","hallway","wall","desk","poi","area","window"],{$id:"Kind"}),u$=DM;var p$=ot(f.Record(Mt,f.Ref(u$),{additionalProperties:!1,$id:"GeometryKinds"})),qM=f.Object({kinds:ot(f.Record(Ie,f.Ref(p$),{additionalProperties:!1}))},{$id:"KindsExtensionSchema"}),KM=/^kinds\/(.*)\.json$/,l$={name:"ext:kinds",schema:qM,intoBundle:function*(e){if(e.kinds!=null)for(let t of le(e.kinds))yield{path:`kinds/${t}.json`,contents:e.kinds[t]}},fromBundle:(e,t,r)=>{let n=e.match(KM)?.[1];if(n)return{kinds:{[n]:r(t)}}},references:[u$,p$],integrityCheck:f$};a();a();a();var Qf;(function(e){e.UnknownNeighbor="UnknownNeighbor"})(Qf||(Qf={}));var d$=e=>{if(e.nodes==null)return U(!0);let t=mt(e),r=na(e);for(let[n,o]of xe(e.nodes)){if(o==null)continue;let i=new Set(o.features.map(s=>s.properties.id));for(let[s,c]of o.features.entries()){for(let u of c.properties.geometryIds){let l=t(n,u);if(l.isErr())return l}for(let[u,l]of c.properties.neighbors.entries()){if(!i.has(l.id))return q({kind:Qf.UnknownNeighbor,properties:{floorId:n,nodeId:c.properties.id,neighborId:l.id}});let p=Hi(l.flags,r,`nodes["${n}"].features[${s}].properties.neighbors[${u}]`);if(p.isErr())return p}}}return U(!0)};var sm=Je("n","NodeId"),m$=f.Intersect([f.Object({id:f.Ref(sm,{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."})}),nm],{$id:"NodeNeighbor"}),y$=f.Intersect([f.Object({id:f.Ref(sm,{description:"The unique identifier for the node."}),neighbors:f.Array(f.Ref(m$),{description:"The neighbors of the node."})}),rf],{$id:"NodeProperties"}),h$=Ft(f.Ref(Lt),y$,{$id:"NodeFeature"}),g$=Vt(f.Ref(h$),{$id:"NodeCollection"}),zM=f.Object({nodes:ot(f.Record(Ie,f.Ref(g$),{additionalProperties:!1}))},{$id:"NodesExtensionSchema"}),GM=/^nodes\/(.*)\.json$/,I$={name:"ext:nodes",schema:zM,intoBundle:function*(e){if(e.nodes!=null)for(let t of le(e.nodes))yield{path:`nodes/${t}.json`,contents:e.nodes[t]}},fromBundle:(e,t,r)=>{let n=e.match(GM)?.[1];if(n)return{nodes:{[n]:r(t)}}},references:[sm,m$,y$,h$,g$],integrityCheck:d$};a();a();a();var eu;(function(e){e.FloorInFloorStackError="FloorInFloorStackError"})(eu||(eu={}));var x$=e=>{if(e.outdoors==null)return U(!0);let t=Mn(e);for(let r of e.outdoors.floors){let n=t(r);if(n.isErr())return n;if(e.floorStacks!=null){for(let o of e.floorStacks)if(o.floors.includes(r))return q({kind:eu.FloorInFloorStackError,properties:{floorId:r,floorStackId:o.id}})}}return U(!0)};var $$=f.Object({floors:f.Array(f.Ref(Ie),{uniqueItems:!0,description:"A list of floor IDs that should be considered to contain outdoor features."})},{$id:"Outdoors"}),BM=f.Object({outdoors:f.Ref($$)},{$id:"OutdoorsExtensionSchema"}),b$="outdoors.json",w$={name:"ext:outdoors",schema:BM,intoBundle:function*(e){e.outdoors!=null&&(yield{path:b$,contents:e.outdoors})},fromBundle:(e,t,r)=>{if(e===b$)return{outdoors:r(t)}},references:[$$],integrityCheck:x$};a();a();a();var tu;(function(e){e.TilesetDuplicateKeyError="TilesetDuplicateKeyError"})(tu||(tu={}));var P$=e=>{if(e.tileset==null)return U(!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 q({kind:tu.TilesetDuplicateKeyError,properties:{key:r.key}});t.add(r.key)}return U(!0)};var am=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."}),O$=f.Object({default:f.Ref(am,{description:"The default tileset style, which should be used."}),others:f.Optional(f.Array(f.Ref(am,{description:"Additional tileset styles that can be used."})))},{$id:"TilesetCollection"}),VM=f.Object({tileset:f.Ref(O$)},{$id:"TilesetExtensionSchema"}),F$={name:"ext:mvf-tileset",schema:VM,intoBundle:function*(e){e.tileset!=null&&(yield{path:"tileset.json",contents:e.tileset})},fromBundle:(e,t,r)=>{if(e==="tileset.json")return{tileset:r(t)}},references:[am,O$],integrityCheck:P$};a();var S$=f.Object({},{$id:"WalkableProperties"}),E$=f.Object({},{$id:"NonWalkableProperties"}),T$=ot(f.Record(Mt,f.Ref(S$),{$id:"WalkableGeometries",additionalProperties:!1})),v$=ot(f.Record(Mt,f.Ref(E$),{$id:"NonWalkableGeometries",additionalProperties:!1})),WM=f.Object({walkable:ot(f.Record(Ie,f.Ref(T$),{additionalProperties:!1})),nonwalkable:ot(f.Record(Ie,f.Ref(v$),{additionalProperties:!1}))},{$id:"TraversabilitySchema"}),HM=/^walkable\/(.*)\.json$/,ZM=/^nonwalkable\/(.*)\.json$/,_$={name:"ext:mvf-traversability",schema:WM,intoBundle:function*(e){if(e.walkable!=null)for(let t of le(e.walkable))yield{path:`walkable/${t}.json`,contents:e.walkable[t]};if(e.nonwalkable!=null)for(let t of le(e.nonwalkable))yield{path:`nonwalkable/${t}.json`,contents:e.nonwalkable[t]}},fromBundle:(e,t,r)=>{let n=e.match(HM)?.[1];if(n!=null)return{walkable:{[n]:r(t)}};let o=e.match(ZM)?.[1];if(o!=null)return{nonwalkable:{[o]:r(t)}}},references:[S$,E$,T$,v$]};a();a();function A$(e){return e.replace(/^g_/,"s_")}function JM(e){return e.replace(/^g_/,"o_")}function YM(e){return e.replace(/^g_/,"w_")}function XM(e){return e.replace(/^g_/,"ar_")}function QM(e,t,r){switch(e.geometry.type){case"MultiPoint":case"MultiLineString":case"MultiPolygon":{let n=[],o=0,i=e.geometry.type.replace("Multi","");for(let s of e.geometry.coordinates)n.push({...e,geometry:{type:i,coordinates:s},properties:{...e.properties,id:`${t}-${o++}`,kind:r}});return n}default:return[{...e,properties:{...e.properties,id:t,kind:r}}]}}function ia(e,t,r,n){let o=new Map;for(let{feature:i,floorId:s}of e){let c=i.properties.id,u=n.get(c);if(t.has(c)){let l=QM(i,r(c),u),p=l.map(y=>y.properties.id),m=p.map(y=>({geometryId:y,floorId:s}));o.set(c,{ids:p,features:l,anchors:m})}}return o}function j$(e){let t={space:new Map,obstruction:new Map,area:new Map,window:new Map};if(!e.geometry)return t;let r=new Map(Object.values(e.kinds??{}).filter(u=>u!==void 0).flatMap(xe)),n=xe(e.geometry).flatMap(([u,l])=>(l?.features??[]).map(p=>({feature:p,floorId:u}))).flat(),o=new Set(Object.values(e.walkable??{}).filter(u=>u!==void 0).flatMap(le)),i=new Set(Object.values(e.nonwalkable??{}).filter(u=>u!==void 0).flatMap(le)),s=new Set(Array.from(r.entries()).filter(([u,l])=>l==="area").map(([u])=>u)),c=new Set(Array.from(r.entries()).filter(([u,l])=>l==="window").map(([u])=>u));return o.size>0&&(t.space=ia(n,o,A$,r)),i.size>0&&(t.obstruction=ia(n,i,JM,r)),s.size>0&&(t.area=ia(n,s,XM,r)),c.size>0&&(t.window=ia(n,c,YM,r)),o.size===0&&i.size===0&&s.size===0&&(t.space=ia(n,new Set(n.map(u=>u.feature.properties.id)),A$,r)),t}function k$(e){let t=eL(e),r=j$(e),n=tL(e);return{geometryMaps:r,nodesByGeometryId:t,geometryFeatureById:n}}function eL(e){let t=new Map;for(let r of Object.values(e.nodes??{}))for(let n of r?.features??[])if(n.properties.geometryIds.length>0)for(let o of n.properties.geometryIds){let i=t.get(o)??[];i.push(n.properties.id),t.set(o,i)}return t}function tL(e){let t=new Map;for(let r of Object.values(e.geometry??{}))for(let n of r?.features??[])t.set(n.properties.id,n);return t}a();function N$(e,t){if(!e.annotations||!e.annotationSymbols||!e.geometry)return{};let r={};for(let[n,o]of xe(e.annotations)){if(!o||o.length===0||!e.geometry[n]||e.geometry[n].features.length===0)continue;let i=new Map(e.geometry[n].features.map(c=>[c.properties.id,c])),s={type:"FeatureCollection",features:[]};for(let c of o){let u=i.get(c.geometryId);if(!u||u.geometry.type!=="Point")continue;let l={id:c.id,externalId:c.externalId,symbolId:c.symbolKey};s.features.push({type:"Feature",geometry:u.geometry,properties:l})}r[n]=s}return{annotation:r}}a();function R$(e,{nodesByGeometryId:t}){let r={"connection.json":[],entrance:{}},n=e.navigationFlags?.[rm.accessible],o=e.navigationFlags?.[rm.outdoors],i=new Map(Object.values(e.geometry??{}).flatMap(s=>s?.features??[]).map(s=>[s.properties.id,s]));for(let s of e.connections??[]){if(cm(s,i)){let p=rL(s,i,t,o);for(let[m,y]of p)r.entrance[m]||(r.entrance[m]={type:"FeatureCollection",features:[]}),r.entrance[m].features.push(y);continue}let c=n!=null&&s.entrances.every(p=>Wi(p,n))&&s.exits.every(p=>Wi(p,n)),u=Array.from(new Set([...s.entrances.map(p=>t.get(p.geometryId)),...s.exits.map(p=>t.get(p.geometryId))].flat().filter(p=>p!=null))),l={id:s.id,externalId:s.details?.externalId??"",type:s.type,accessible:c,nodes:u};s.details?.name&&(l.details={name:s.details.name}),s.extra&&(l.extra=s.extra),r["connection.json"].push(l)}return r}function cm(e,t){return e.type==om.door&&e.entrances.every(r=>t.get(r.geometryId)?.geometry.type==="LineString")}function rL(e,t,r,n){if(e.type!==om.door)return[];let o=[];for(let i of e.entrances){let s=t.get(i.geometryId);if(s?.geometry.type==="LineString"){let c={type:"Feature",geometry:s.geometry,properties:{id:e.id,externalId:e.details?.externalId??"",isExterior:nL(e,n)}},u=e.details;u&&(c.properties.details={name:u.name,description:u.description},u.icon&&(c.properties.details.images=[{url:u.icon,altText:`${u.name} icon`}]));let l=r.get(i.geometryId);l&&l.length>0&&(c.properties.node=l[0]),o.push([i.floorId,c])}}return o}function nL(e,t){return e.entrances.some(r=>Wi(r,t))||e.exits.some(r=>Wi(r,t))}a();function M$(e,{geometryMaps:t,nodesByGeometryId:r}){if(!e.enterprise)return{};let n={categories:[],locations:[],locationInstances:[],layers:[],venue:{slug:"",name:"",externalId:"",defaultLanguage:{name:"",code:""},languages:[]}},o=e.manifest?.features[0];if(o&&(n.venue.defaultFloor=o.properties.defaultFloor,n.venue.tzid=o.properties.tzid,n.venue.name=o.properties.name),e.enterprise.venue){let A=e.enterprise.venue;n.venue={...n.venue,slug:A.slug,name:A.details.name??n.venue.name,externalId:A.details.externalId??"",defaultLanguage:A.defaultLanguage,languages:A.languages,countrycode:A.countrycode,coverImage:A.coverImage,logo:A.logo,icon:A.details.icon,extra:A.extra,mappedinWebUrl:A.mappedinWebUrl,operationHours:A.operationHours,topLocations:A.topLocations}}let i=new Map,s=new Map,c=e.locations,u=e.enterprise.locations;if(c&&u){let A=new Map(c.map(E=>[E.id,E]));for(let E of u){let O=A.get(E.locationId);if(O){let T=O.details,R={id:E.id,name:T.name,externalId:T.externalId??"",type:E.type,sortOrder:E.sortOrder,amenity:E.amenity,description:T.description,extra:O.extra,links:O.links,operationHours:O.openingHours,gallery:E.gallery,logo:O.logo,shortName:T.shortName,picture:E.picture,showFloatingLabelWhenImagePresent:E.showFloatingLabelWhenImagePresent,showLogo:E.showLogo,siblingGroups:E.siblingGroups,states:E.states,tags:E.tags,spaces:[],nodes:[],polygons:[]};O.phone&&(R.phone={number:O.phone});let D=C$(O.social);O.website&&(D.website=O.website.url),R.social=D;for(let k of O.geometryAnchors){let j=t.space.get(k.geometryId);if(j){let X=new Set(j.features.filter(V=>V.geometry.type==="Polygon").map(V=>V.properties.id));for(let V of j.anchors)R.spaces.push({floor:V.floorId,id:V.geometryId}),X.has(V.geometryId)&&R.polygons.push({map:V.floorId,id:V.geometryId})}let re=r.get(k.geometryId);for(let X of re??[])R.nodes.push({map:k.floorId,id:X})}n.locations.push(R);for(let k of O.categories)i.set(k,[...i.get(k)??[],E.id]);s.set(E.id,O.categories)}}}let l=e.enterprise.locationInstances,p=e.locationInstances;if(l&&p){let A=new Map(p.map(O=>[O.id,O])),E=[];for(let O of l){let T=A.get(O.locationInstanceId);if(T){let R={id:O.id,parent:O.parentId,name:T.details?.name,externalId:T.details?.externalId,type:O.type,sortOrder:O.sortOrder,amenity:O.amenity,description:T.details?.description,extra:T.extra,links:T.links,operationHours:T.openingHours,gallery:O.gallery,picture:O.picture,showFloatingLabelWhenImagePresent:O.showFloatingLabelWhenImagePresent,showLogo:O.showLogo,siblingGroups:O.siblingGroups,states:O.states,tags:O.tags,logo:T.logo,shortName:T.details?.shortName};T.phone&&(R.phone={number:T.phone});let D=C$(T.social??[]);if(T.website&&(D.website=T.website.url),Object.keys(D).length>0&&(R.social=D),T.geometryAnchors?.length){let k=T.geometryAnchors.flatMap(j=>t.space.get(j.geometryId)?.anchors??[]);k.length>0&&(R.spaces=k.map(j=>({floor:j.floorId,id:j.geometryId})))}if(T.geometryAnchors){R.spaces=[],R.polygons=[],R.nodes=[];for(let k of T.geometryAnchors){let j=t.space.get(k.geometryId);if(j){let X=new Set(j.features.filter(V=>V.geometry.type==="Polygon").map(V=>V.properties.id));for(let V of j.anchors)R.spaces.push({floor:V.floorId,id:V.geometryId}),X.has(V.geometryId)&&R.polygons.push({map:V.floorId,id:V.geometryId})}let re=r.get(k.geometryId);for(let X of re??[])R.nodes.push({map:k.floorId,id:X})}}E.push(R)}}E.length>0&&(n.locationInstances=E)}let m=e.locationCategories,y=e.enterprise.categories;if(m&&y){let A=[],E=new Map(m.map(D=>[D.id,D])),O=new Map(y.map(D=>[D.categoryId,D.id])),T=new Map;for(let D of m){let k=O.get(D.parent);if(k){let j=T.get(k)??[];j.push(D.id),T.set(k,j)}}for(let D of y){let k=E.get(D.categoryId);if(k){let re=(T.get(D.id)??[]).map(V=>O.get(V)).filter(V=>V!==void 0),X={id:D.id,name:k.details.name,externalId:k.details.externalId??"",sortOrder:D.sortOrder,children:re,locations:i.get(D.categoryId)??[],icon:k.details.icon,picture:D.picture,color:D.color,extra:k.extra,iconFromDefaultList:D.iconFromDefaultList};A.push(X)}}n.categories=A;let R={};for(let[D,k]of s.entries())R[D]=k.map(j=>O.get(j)).filter(j=>j!==void 0);n.categoryPriorities=R}let x={};for(let[A,E]of Object.entries(e.defaultStyle??{}))if(E.buffer>0){let O=E.geometryAnchors.flatMap(T=>t.space.get(T.geometryId)?.anchors??[]);x[A]={edgeOffset:E.buffer,geometryAnchors:O}}Object.keys(x).length>0&&(n.enterpriseStyles=x);let P=new Map;for(let A of Object.values(e.enterprise.layers??{}))if(A)for(let[E,O]of xe(A)){if(typeof O!="string")continue;let T=P.get(O)??{name:O,id:`ely_${O}`,spaces:[]};T.spaces.push(...t.space.get(E)?.anchors.map(R=>({floorId:R.floorId,spaceId:R.geometryId}))??[]),P.set(O,T)}P.size>0&&(n.layers=Array.from(P.values()));let b=[];for(let A of Object.values(e.enterprise.textures??{}))for(let E of A){let O=t.space.get(E.geometryId)?.anchors;!O||O.length<1||E.face==="unknown"||E.surface==="unknown"||b.push({repeat:E.repeat,offset:E.offset,rotation:E.rotation,path:E.path,face:E.face,surface:E.surface,bounds:E.bounds,geometryAnchors:O})}b.length>0&&(n.textures=b);let S={};for(let[A,E]of Object.entries(e.enterprise.floorText??{})){let O={type:"FeatureCollection",features:[]};for(let T of E.features){if(T.properties.align==="unknown")continue;let R={align:T.properties.align,color:T.properties.color,fontFamily:T.properties.fontFamily,fontSize:T.properties.fontSize,rotation:T.properties.rotation,text:T.properties.text,visible:T.properties.visible};"geometryId"in T.properties?R.geometryId=T.properties.geometryId:R.verticalOffset=T.properties.verticalOffset,O.features.push({type:"Feature",geometry:T.geometry,properties:R})}O.features.length>0&&(S[A]=O)}Object.keys(S).length>0&&(n.floorText=S);let v={enterprise:n};if(e.enterprise.textAreas){let A={};for(let[E,O]of xe(e.enterprise.textAreas)){let T={type:"FeatureCollection",features:[]};for(let R of O.features){if(R.properties.align==="unknown")continue;let D={align:R.properties.align,maxWidth:R.properties.maxWidth,maxHeight:R.properties.maxHeight,rotation:R.properties.rotation};"geometryId"in R.properties?D.anchorId=R.properties.geometryId:D.verticalOffset=R.properties.verticalOffset;let k={type:"Feature",geometry:R.geometry,properties:D};T.features.push(k)}A[E]=T}v.textAreas=A}return v}var oL=["facebook","instagram","twitter"];function C$(e){let t={};for(let{name:r,url:n}of e){let o=r.toLowerCase();oL.includes(o)&&(t[o]=n)}return t}a();function L$(e,{geometryMaps:t}){if(!e.facade)return{};let r={},n={};for(let[o,i]of xe(e.facade))i&&(n[o]={id:i.id,spaces:i.geometryAnchors.flatMap(({floorId:s,geometryId:c})=>t.space.get(c)?.ids.map(u=>({floorId:s,spaceId:u}))).filter(s=>s!==void 0)});return Object.keys(n).length>0&&(r.facade=n),r}a();function U$(e,t={}){let r={type:"FeatureCollection",features:[]},n=[];for(let o of e.floors.features)n.push({id:o.properties.id.replace(/^f_/,"m_"),externalId:o.properties.details?.externalId??"",elevation:o.properties.elevation,name:o.properties.details?.name??"",shortName:o.properties.details?.shortName??"",subtitle:o.properties.subtitle}),r.features.push({type:"Feature",geometry:o.geometry,properties:{id:o.properties.id,externalId:o.properties.details?.externalId??"",elevation:o.properties.elevation,name:o.properties.details?.name??"",shortName:o.properties.details?.shortName??"",subtitle:o.properties.subtitle}});return{"floor.geojson":r,"map.geojson":n}}a();function D$(e,{geometryMaps:t}){let r={},n={};for(let[o,i]of xe(e.floorImages??{})){let s={features:[],type:"FeatureCollection"};for(let c of i?.features??[])if("verticalOffset"in c.properties)s.features.push(c);else{let{geometryId:u,...l}=c.properties,p=t.space.get(u)?.ids[0]??t.obstruction.get(u)?.ids[0];if(!p)continue;let m={geometry:c.geometry,properties:{...l,anchorId:p},type:c.type};s.features.push(m)}n[o]=s}return Object.keys(n).length>0&&(r.floorImages=n),r}a();function q$(e,t={}){let r=[];for(let o of e?.floorStacks??[]){let i={id:o.id,floors:o.floors,maps:o.floors,externalId:o.details?.externalId??"",name:o.details?.name??"",shortName:o.details?.shortName??"",type:"Building"};o.defaultFloor&&(i.defaultFloor=o.defaultFloor),r.push(i)}if(e.outdoors){let o={id:"outdoors",floors:e.outdoors.floors,maps:e.outdoors.floors,type:"Outdoor",name:"Outdoors",externalId:"outdoors"};r.push(o)}return{"floorstack.json":r,"mapstack.geojson":r}}a();a();var G$=ou(z$(),1),fL=e=>{let t=e.geometry.coordinates[0],r=0;for(let n=0;n<t.length-1;n++)r+=t[n][0]*t[n+1][1]-t[n+1][0]*t[n][1];return Math.abs(r/2)},uL=(e,t)=>{let[r,n]=e,o=t.geometry.coordinates[0],i=!1;for(let s=0,c=o.length-1;s<o.length;c=s++){let[u,l]=o[s],[p,m]=o[c];l>n!=m>n&&r<(p-u)*(n-l)/(m-l)+u&&(i=!i)}return i},pL=e=>{let t=e.geometry.coordinates[0],r=0,n=0;for(let o=0;o<t.length-1;o++)r+=t[o][0],n+=t[o][1];return{geometry:{coordinates:[r/(t.length-1),n/(t.length-1)]}}},lL=e=>{let t=fL(e),r=Number.isFinite(t)?Math.max(t,1):1;return Math.sqrt(r)*1e-6},nu=e=>{try{let r=pL(e).geometry.coordinates;if(!uL(r,e)){let o=(0,G$.default)(e.geometry.coordinates,lL(e));return U([o[0],o[1]])}return U(r)}catch{return q(new Error("Unable to calculate center of polygon"))}};function um(e){return e?.geometry?.type==="Polygon"}function B$(e,{geometryMaps:t,nodesByGeometryId:r}){let n=gL(e.defaultStyle),o={},i={},s={},c={};for(let l of le(e.geometry)){let p=e.geometry[l];if(!p)continue;let m=[],y=[],x=[],P=[];for(let b of p.features){let S=b.properties.id,v=n.has(S),A=r.get(S)??[];for(let E of t.space.get(S)?.features??[])m.push(dL(E,A));for(let E of t.obstruction.get(S)?.features??[])y.push(mL(E,v));for(let E of t.area.get(S)?.features??[])x.push(yL(E,A));for(let E of t.window.get(S)?.features??[])P.push(hL(E))}m.length>0&&(o[l]={type:"FeatureCollection",features:m.filter(b=>b!==null)}),y.length>0&&(i[l]={type:"FeatureCollection",features:y.filter(b=>b!==null)}),x.length>0&&(s[l]={type:"FeatureCollection",features:x.filter(b=>b!==null)}),P.length>0&&(c[l]={type:"FeatureCollection",features:P.filter(b=>b!==null)})}let u={space:o,obstruction:i};return Object.keys(s).length>0&&(u.area=s),Object.keys(c).length>0&&(u.window=c),u}function dL(e,t){switch(e.geometry.type){case"MultiPoint":case"MultiLineString":case"MultiPolygon":return null}let r={type:"Feature",geometry:e.geometry,properties:{destinationNodes:t,id:e.properties.id,externalId:e.properties.details?.externalId??"",kind:e.properties.kind}};return e.properties.details&&(r.properties.details={name:e.properties.details.name,description:e.properties.details.description,images:e.properties.details.icon?[{url:e.properties.details.icon,altText:e.properties.details.name?`${e.properties.details.name} icon`:"icon"}]:void 0}),um(r)&&(r.properties.center=nu(r).unwrapOr(void 0)),r}function mL(e,t){switch(e.geometry.type){case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"Point":return null}let r=e.properties,n={type:"Feature",geometry:e.geometry,properties:{id:r.id,externalId:r.details?.externalId??"",entrances:[],kind:r.kind,footprintComponent:t}};return um(n)&&(n.properties.center=nu(n).unwrapOr(void 0)),r.details&&(n.properties.details={name:r.details.name,description:r.details.description,images:r.details.icon?[{url:r.details.icon,altText:r.details.name?`${r.details.name} icon`:"icon"}]:void 0}),n}function yL(e,t){if(e.geometry.type!=="Polygon")return null;let r=e.properties,n={type:"Feature",geometry:e.geometry,properties:{id:r.id,externalId:r.details?.externalId??"",destinationNodes:t}};return um(n)&&(n.properties.center=nu(n).unwrapOr(void 0)),r.details&&(n.properties.details={name:r.details.name,description:r.details.description,images:r.details.icon?[{url:r.details.icon,altText:r.details.name?`${r.details.name} icon`:"icon"}]:void 0}),n}function hL(e){return e.geometry.type!=="LineString"?null:{type:"Feature",geometry:e.geometry,properties:{id:e.properties.id}}}function gL(e){let t=[...e?.ExteriorWalls?.geometryAnchors??[],...e?.Walls?.geometryAnchors??[]];return new Set(t.map(n=>n.geometryId))}a();function V$(e,{geometryMaps:t,geometryFeatureById:r}){if(!e.locationCategories&&!e.locations)return{};let n={};if(e.locationCategories?.length){let o=[];for(let i of e.locationCategories){let s={id:i.id,name:i.details.name,icon:i.details.icon??""};i.parent&&(s.parent=i.parent),o.push(s)}n["category.json"]=o}if(e.locations?.length){let o=IL(e,{geometryFeatureById:r}),i=[];for(let s of e.locations){let c={id:s.id,name:s.details.name,categories:s.categories,spaces:[],obstructions:[],areas:[],annotations:[],connections:[],entrances:[],links:s.links,openingHoursSpecification:s.openingHours??[],pictures:s.images,social:s.social,description:s.details.description,externalId:s.details.externalId,icon:s.details.icon,logo:s.logo,phone:s.phone,website:s.website};i.push(c);for(let{geometryId:u,floorId:l}of s.geometryAnchors)c.spaces.push(...t.space.get(u)?.ids.map(p=>({id:p,floor:l}))??[]),c.obstructions.push(...t.obstruction.get(u)?.ids.map(p=>({id:p,floor:l}))??[]),c.areas.push(...t.area.get(u)?.ids.map(p=>({id:p,floor:l}))??[]),c.entrances.push(...o.entrancesByGeometryId.get(u)??[]),c.connections.push(...o.connectionsByGeometryId.get(u)??[]),c.annotations.push(...o.annotationsByGeometryId.get(u)??[])}n["location.json"]=i}return n}function IL(e,{geometryFeatureById:t}){let r={annotationsByGeometryId:new Map,connectionsByGeometryId:new Map,entrancesByGeometryId:new Map};if(e.annotations)for(let[n,o]of xe(e.annotations))for(let i of o??[]){let s=i.geometryId,c=i.id,u=r.annotationsByGeometryId.get(s)??[];u.push({floor:n,id:c}),r.annotationsByGeometryId.set(s,u)}if(e.connections)for(let n of e.connections){let o=cm(n,t),i=Array.from(new Map([...n.entrances,...n.exits].map(s=>[`${s.geometryId}_${s.floorId}`,s])).values());for(let s of i){let c=s.geometryId;if(o){let u=r.entrancesByGeometryId.get(c)??[];u.push({floor:s.floorId,id:n.id}),r.entrancesByGeometryId.set(c,u)}else{let u=r.connectionsByGeometryId.get(c)??[];u.push(n.id),r.connectionsByGeometryId.set(c,u)}}}return r}a();function W$(e,t){let r={features:[],type:"FeatureCollection"},n={"manifest.geojson":r},o=e.manifest;if(o.features.length>0){let i=o.features[0],s=i.properties,c={type:"Feature",geometry:i.geometry,properties:{folder_struct:[],version:"2.0.0",time:s.time,name:s.name,naturalBearing:s.naturalBearing,tzid:s.tzid,map:s.mapId,org_id:s.orgId,language:s.language}};r.features.push(c)}return n}a();function H$(e,{geometryMaps:t}){let r={"node.geojson":{type:"FeatureCollection",features:[]}},n=r["node.geojson"].features,o=new Map;for(let c of e.floors?.features??[])o.set(c.properties.id,c.properties.elevation);let i=new Map;for(let c of Object.values(e.nodes??{}))for(let u of c?.features??[])for(let l of u.properties.geometryIds)i.set(l,[...i.get(l)??[],u.properties.id]);let s=new Map;for(let c of e.connections??[]){let u=c.exits.map(l=>({...l,nodes:i.get(l.geometryId)??[]}));for(let l of c.entrances){let p=i.get(l.geometryId)??[];for(let m of p)for(let y of u){let x=Math.abs((o.get(l.floorId)??0)-(o.get(y.floorId)??0))*c.floorCostMultiplier,P=s.get(m)??[];P.push(...y.nodes.map(b=>({id:b,weight:x+c.entryCost}))),s.set(m,P)}}}for(let[c,u]of xe(e.nodes??{}))for(let l of u?.features??[]){let p=t.space.get(l.properties.geometryIds[0])?.features[0],m=p?.geometry.type==="Point"&&p?.properties.details?.externalId?p.properties.details.externalId:"",y={type:"Feature",geometry:l.geometry,properties:{id:l.properties.id,floor:c,space:l.properties.geometryIds.map(x=>t.space.get(x)?.ids).flat().filter(x=>x!==void 0),neighbors:[...l.properties.neighbors.map(x=>({id:x.id,weight:x.extraCost})),...s.get(l.properties.id)??[]],map:c,externalId:m}};n.push(y)}return r}a();function xL(e,t){let r={};for(let n of e){let o=t.get(n);o&&(r[o]??(r[o]=[]),r[o].push(n))}return r}function Z$(e,{geometryMaps:t}){if(!e.defaultStyle)return{};let r={},n={};r["styles.json"]=n;let o=[...Array.from(t.space.values()).map(s=>s.features),...Array.from(t.obstruction.values()).map(s=>s.features)],i=new Map(o.flatMap(s=>s.map(c=>[c.properties.id,c.geometry.type])));for(let[s,c]of xe(e.defaultStyle)){let u=xL(c.geometryAnchors.flatMap(l=>[...t.space.get(l.geometryId)?.ids??[],...t.obstruction.get(l.geometryId)?.ids??[]]),i);if(u.Point&&u.Point.length>0){let l={points:Array.from(u.Point.values()),showImage:c.extra?.showImage!==void 0?c.extra?.showImage===!0:c.opacity!==0};n[`${s}.Point`]=l}if(u.LineString&&u.LineString.length>0){let l={lineStrings:Array.from(u.LineString.values()),altitude:c.altitude,color:c.color,height:c.height,opacity:c.opacity,width:c.buffer};n[`${s}.LineString`]=l}if(u.Polygon&&u.Polygon.length>0){let l={polygons:Array.from(u.Polygon.values()),altitude:c.altitude,color:c.color,height:c.height,opacity:c.opacity};c.extra?.showImage!==void 0&&(l.showImage=c.extra.showImage===!0),n[`${s}.Polygon`]=l}}return r}var bL=Mb().extendOptional(R0).extendOptional(I$).extendOptional(K0).extendOptional(l$).extendOptional(_$).extendOptional(V0).extendOptional(Y0).extendOptional(w$).extendOptional(F$).extendOptional(c$).extendOptional(t$).extendOptional(Mx).extendOptional(Vb).extendOptional(_0).build().expect("Invalid parser, this should never happen. Likely a bug in the MVFv2 library, or one of the extensions.");function $L(e){let t=k$(e),r=U$(e,t),n=B$(e,t),o=H$(e,t),i=R$(e,t),s=Z$(e,t),c=q$(e,t),u=D$(e,t),l=L$(e,t),p=N$(e,t),m=V$(e,t),y=M$(e,t),x=W$(e,t);return{...r,...n,...o,...i,...s,...c,"tileset.json":e.tileset,...u,...l,...p,...m,...y,...x}}async function wL(e){let t=await bL.decompress(e);return t.isOk()?U($L(t.value)):q(t.error)}var _se=e=>{try{return ag(e)?mm(e):!1}catch{return!1}};export{wa as AnchoredFloorTextUnknownObstructionError,$a as AnchoredFloorTextUnknownSpaceError,Pa as AnchoredImageUnknownObstructionError,ba as AnchoredImageUnknownSpaceError,la as ConnectionUnknownNodeError,Ma as DuplicateTilesetKeyError,ja as EnterpriseCyclicalCategoryReferenceError,Aa as EnterpriseInconsistentMapError,ka as EnterpriseInvalidTimeZoneError,Fa as EnterpriseLayerUnknownSpaceError,va as EnterpriseLocationUnknownSpaceError,Sa as EnterpriseStyleGeometryAnchorsUnknownSpaceError,Ea as EnterpriseTextureUnknownSpaceError,_a as EnterpriseUnknownCategoryError,Ji as EnterpriseUnknownLocationError,Yi as EnterpriseUnknownMapError,Ra as FacadeUnknownFloorError,Na as FacadeUnknownFloorStackError,Ca as FacadeUnknownSpaceError,aa as FloorStackUnknownMapError,ft as IntegrityError,xa as InvalidStyleError,da as NodeUnknownFloorError,ya as NodeUnknownNeighborError,ma as NodeUnknownSpaceError,ua as ObstructionCollectionUnknownMapError,pa as ObstructionUnknownEntranceError,TD as PUBLIC_HOLIDAYS,ca as SpaceCollectionUnknownMapError,fa as SpaceUnknownNodeError,ga as StyleUnknownLineStringError,Ia as StyleUnknownPointError,ha as StyleUnknownPolygonError,Ta as TextAreaUnknownObstructionError,Oa as TextAreaUnknownSpaceError,_se as check,wL as extractAndConvertMVFv3,nT as getMvfValidationErrors,uT as rawToParsedMVF,ag as validateMvf,mm as verifyMvfIntegrity};
|
|
62
|
-
//# sourceMappingURL=dist-
|
|
62
|
+
//# sourceMappingURL=dist-HJXMUEN5.js.map
|